@font-face {
    font-family: "Prompt-Regular";
    src: url(fonts/Prompt-Regular.ttf);
}
@font-face {
    font-family: "Prompt-Light";
    src: url(fonts/Prompt-Light.ttf);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Prompt-Regular";
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Arial', sans-serif;
    background-color: #1a1a1a;
    color: #ffffff;
    line-height: 1.6;
    overflow-x: hidden;
}

/* Navigation */
nav {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(26, 26, 26, 0.95);
    backdrop-filter: blur(10px);
    padding: 1rem 0;
    z-index: 1000;
    border-bottom: 1px solid #333;
}

.nav-container {
    max-width: 100%;
    margin: 0;
    display: flex;
    justify-content: left;
    padding: 0 1.5rem;
}

.main-icon {
    height: 30px;
    width: 30px;
}
.main-icon img {
    height: 30px;
    width: 30px;
}

.nav-gap {
    width: 100%;
}
.nav-links {
    display: flex;
    list-style: none;
    gap: 3rem;
}

.nav-links a {
    color: #cccccc;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
    padding: 0.5rem 0;
}

.nav-links a:hover {
    color: #ffffff;
}

.nav-links a.active {
    color: #ffffff;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: #ffffff;
    transition: width 0.3s ease;
}

.nav-links a:hover::after,
.nav-links a.active::after {
    width: 100%;
}

/* Mobile Navigation */
.mobile-menu {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.mobile-menu span {
    width: 25px;
    height: 3px;
    background: #ffffff;
    margin: 3px 0;
    transition: 0.3s;
}

/* Main Content */
main {
    margin-top: 80px;
}

section {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 1.5rem;
}

h1 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
    color: #ffffff;
}

h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: #ffffff;
    font-weight: 400;
}

h3 {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
    color: #ffffff;
    font-family: "Prompt-Light";
}

p {
    color: #cccccc;
    margin-bottom: 0.5rem;
    line-height: 1.7;
    font-family: "Prompt-Light";
}

/* Bio Section */
#about {
    text-align: left;
    padding-top: 6rem;
}

/* Academics Section */
.academic-item {
    background: #2a2a2a;
    margin-bottom: 1rem;
    overflow: hidden;
    transition: all 0.3s ease;
}

.academic-header {
    padding: 0.75rem;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #333;
    transition: background 0.3s ease;
}

.academic-header:hover {
    background: #404040;
}

.academic-header h3 {
    margin: 0;
    font-size: 1rem;
    font-weight: 200;
}

.dropdown-arrow {
    transition: transform 0.3s ease;
    font-size: 0.8rem;
}

.dropdown-arrow.open {
    transform: rotate(180deg);
}

.academic-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    background: #2a2a2a;
}

.academic-content.open {
    max-height: 1000vh;
}

.academic-details {
    padding: 1.5rem;
}
.academic-details p {
    margin-bottom: 1rem;
}

.grade-badge {
    display: inline-block;
    background: #404040;
    color: #ffffff;
    padding: 0.3rem 0.8rem;
    font-size: 0.9rem;
    margin: 0.2rem;
    border: 1px solid #555;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
}

.grade-badge:hover {
    background: #ffffff;
    color: #1a1a1a;
    border-color: #ffffff;
}

/* Certificates Section */
.certificate-item {
    background: #2a2a2a;
    margin-bottom: 1rem;
    overflow: hidden;
    transition: all 0.3s ease;
}

.certificate-header {
    padding: 0.75rem;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #333;
    transition: background 0.3s ease;
}

.certificate-header:hover {
    background: #404040;
}

.certificate-header h3 {
    margin: 0;
    font-size: 1rem;
    font-weight: 200;
}

.certificate-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    background: #2a2a2a;
}

.certificate-content.open {
    max-height: 1000vh;
}

.certificate-details {
    padding: 1.5rem;
}
.certificate-details p {
    margin-bottom: 1rem;
}

.certificate-badge {
    display: inline-block;
    background: #404040;
    color: #ffffff;
    padding: 0.3rem 0.8rem;
    font-size: 0.9rem;
    margin: 0.2rem;
    border: 1px solid #555;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
}

.certificate-badge:hover {
    background: #ffffff;
    color: #1a1a1a;
    border-color: #ffffff;
}

#image-overlay {
    background-color: rgba(0, 0, 0, 0.9);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10000;
    transition: opacity 0.3s ease;
}

#image-overlay img {
    max-width: 90%;
    max-height: 90vh;
    border: 5px solid white;
    border-radius: 5px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.6);
}

#image-overlay .close-btn {
    position: absolute;
    top: 20px;
    right: 20px;
    color: white;
    font-size: 30px;
    font-weight: bold;
    cursor: pointer;
    background: rgba(0, 0, 0, 0.5);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: all 0.3s ease;
}

#image-overlay .close-btn:hover {
    background: rgba(255, 255, 255, 0.3);
}

/* Skills Section */
.skills-description {
    margin-bottom: 2rem;
    text-align: justify;
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 1rem;
    margin-bottom: 1rem;
}

.skill-item {
    text-align: center;
    padding: 1rem;
    background: #2a2a2a;
    transition: all 0.3s ease;
    aspect-ratio: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

/* .skill-item:hover {
    transform: translateY(-5px);
    background: #333;
    box-shadow: 0 10px 30px rgba(255, 255, 255, 0.1);
} */

.skill-icon {
    width: 57px;
    height: 57px;
    margin-bottom: 0.5rem;
    transition: all 0.3s ease;
}

.skill-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

/* .skill-item:hover .skill-icon {
    transform: scale(1.1);
} */

.skill-name {
    font-weight: 100;
    color: #aaaaaa;
    font-size: 0.85rem;
    font-family: "Prompt-Light";
}

/* Projects Section */
.projects-description {
    margin-bottom: 2rem;
    text-align: justify;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 1rem;
    margin-top: 1.25rem;
}

.project-card {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    background: #2a2a2a;
    padding: 1rem;
    transition: all 0.3s ease;
    cursor: pointer;
    border: 1px solid #333;
    position: relative;
    overflow: hidden;
}

.project-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transition: left 0.5s ease;
}

.project-card:hover::before {
    left: 100%;
}

.project-card:hover {
    transform: translateY(-8px);
    border-color: #ffffff;
    box-shadow: 0 15px 40px rgba(255, 255, 255, 0.15);
}

.project-header {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
}

.project-icon {
    min-width: 40px;
    min-height: 40px;
    max-width: 40px;
    max-height: 40px;
    width: 40px;
    height: 40px;
    margin-right: 1rem;
    transition: all 0.3s ease;
}

.project-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.project-card:hover .project-icon {
    transform: scale(1.1);
}

.project-title {
    font-size: 1.2rem;
    font-weight: 600;
    color: #ffffff;
    margin: 0;
}

.project-description {
    color: #cccccc;
    margin-bottom: 1rem;
    line-height: 1.6;
}

.project-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: auto;
}

.tech-badge {
    background: #404040;
    color: #ffffff;
    padding: 0.3rem 0.8rem;
    font-size: 0.8rem;
    border: 1px solid #555;
    transition: all 0.3s ease;
}

.project-card:hover .tech-badge {
    background: #ffffff;
    color: #1a1a1a;
    border-color: #ffffff;
}

/* Message/Contact Section */
.contact-form {
    max-width: 100%;
    margin: 0 auto;
}

.form-group {
    margin-bottom: 1rem;
    width: 100%;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.6rem;
    background: #2a2a2a;
    border: 1px solid #444;
    color: #ffffff;
    font-size: 1rem;
    transition: all 0.3s ease;
    box-sizing: border-box;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #ffffff;
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.form-buttons {
    display: flex;
    gap: 1rem;
    justify-content: flex-start;
}

.btn {
    padding: 0.4rem 2rem;
    border: none;
    cursor: pointer;
    font-size: 1rem;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    text-align: center;
}

.btn-primary {
    background: #e6e6e6;
    color: #1a1a1a;
}

.btn-primary:hover {
    background: #e6e6e6;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 255, 255, 0.3);
}

.btn-secondary {
    background: transparent;
    color: #cccccc;
    border: 1px solid #444;
}

.btn-secondary:hover {
    background: #333;
    color: #ffffff;
    border-color: #666;
}

/* Links Section */
.social-links {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-top: 2rem;
}

.social-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #cccccc;
    text-decoration: none;
    transition: all 0.3s ease;
    padding: 0.75rem;
    background: #2a2a2a;
    border: 1px solid #333;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.social-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transition: left 0.5s ease;
}

.social-link:hover::before {
    left: 100%;
}

.social-link:hover {
    color: #ffffff;
    transform: translateY(-3px);
    background: #333;
    border-color: #ffffff;
    box-shadow: 0 10px 30px rgba(255, 255, 255, 0.15);
}

.social-icon {
    width: 24px;
    height: 24px;
}

.social-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: rgba(26, 26, 26, 0.98);
        flex-direction: column;
        text-align: center;
        padding: 2rem 0;
        gap: 1rem;
    }

    .nav-links.active {
        display: flex;
    }

    .main-icon {
        display: none;
    }

    .mobile-menu {
        display: flex;
    }

    .nav-container {
        justify-content: space-between;
        align-items: center;
    }

    h1 {
        font-size: 2rem;
    }

    h2 {
        font-size: 1.5rem;
    }

    section {
        padding: 3rem 1rem;
    }

    .skills-grid {
        grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
        gap: 1rem;
    }

    .projects-grid {
        grid-template-columns: 1fr;
    }

    .social-links {
        flex-direction: column;
        align-items: center;
    }

    .grade-badge {
        width: 100%;
    }

    #links {
        margin-bottom: 0;
    }
}

@media (max-width: 480px) {
    .form-buttons {
        flex-direction: column;
    }

    .project-card {
        padding: 1.5rem;
    }

    .skills-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}
