/* ===== RESET & BASE STYLES ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 90px;
}

body {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--bg-color);
    transition: var(--transition);
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.section {
    padding: 80px 0;
}

.section,
.project-card,
.timeline-item,
.skill-item,
.media-card {
    animation: fadeInUpSoft 0.6s ease both;
    animation-timeline: view();
    animation-range: entry 0% cover 35%;
}

@keyframes fadeInUpSoft {
    from {
        opacity: 0;
        transform: translateY(18px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hover-lift {
    transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.hover-lift:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-hover);
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 40px;
    color: var(--primary-color);
    display: flex;
    align-items: center;
    gap: 15px;
}

.section-title i {
    font-size: 2rem;
}

.section-subtitle {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 30px;
    color: var(--accent-color);
}

/* ===== NAVBAR ===== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: var(--bg-color);
    box-shadow: var(--shadow);
    z-index: 1000;
    padding: 15px 0;
    transition: var(--transition);
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--primary-color);
    text-decoration: none;
}

.logo-text {
    font-family: 'Poppins', sans-serif;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 30px;
}

.nav-link {
    color: var(--text-color);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
    position: relative;
}

.nav-link:hover {
    color: var(--primary-color);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: var(--transition);
}

.nav-link:hover::after {
    width: 100%;
}

.dark-mode-toggle {
    background: none;
    border: none;
    color: var(--text-color);
    font-size: 1.2rem;
    cursor: pointer;
    transition: var(--transition);
}

.dark-mode-toggle:hover {
    color: var(--primary-color);
    transform: rotate(30deg);
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--text-color);
    cursor: pointer;
}

.mobile-menu {
    display: none;
    position: fixed;
    top: 70px;
    left: 0;
    right: 0;
    background: var(--bg-color);
    box-shadow: var(--shadow);
    padding: 20px;
    z-index: 999;
}

.mobile-menu.active {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.mobile-nav-link {
    color: var(--text-color);
    text-decoration: none;
    padding: 10px 0;
    border-bottom: 1px solid var(--border-color);
}

/* ===== HERO SECTION ===== */
.hero-section {
    position: relative;
    margin-top: 70px;
}

.cover-image-container {
    height: 400px;
    overflow: hidden;
    border-radius: 0 0 20px 20px;
}

.cover-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.cover-image-placeholder {
    height: 100%;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-align: center;
}

.placeholder-content h1 {
    font-size: 3rem;
    margin-bottom: 10px;
}

.placeholder-content p {
    font-size: 1.2rem;
    opacity: 0.9;
}

.profile-card-container {
    position: relative;
    margin-top: -100px;
}

.profile-card {
    background: var(--bg-color);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-hover);
    padding: 30px;
    display: flex;
    align-items: center;
    gap: 30px;
    max-width: 800px;
    margin: 0 auto;
}

.profile-image-wrapper {
    flex-shrink: 0;
}

.profile-image {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
    border: 5px solid var(--bg-color);
    box-shadow: var(--shadow);
}

.profile-image-placeholder {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    background: var(--primary-light);
    display: flex;
    align-items: center;
    justify-content: center;
    border: 5px solid var(--bg-color);
    box-shadow: var(--shadow);
}

.profile-image-placeholder i {
    font-size: 60px;
    color: var(--primary-color);
}

.profile-info h1 {
    font-size: 2.5rem;
    margin-bottom: 10px;
    color: var(--text-color);
}

.profile-info .headline {
    font-size: 1.2rem;
    color: var(--primary-color);
    margin-bottom: 15px;
    font-weight: 500;
}

.profile-meta {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.profile-meta span {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-light);
}

.profile-meta i {
    color: var(--primary-color);
}

.profile-social {
    display: flex;
    gap: 15px;
}

.social-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.2rem;
    transition: var(--transition);
    text-decoration: none;
}

.social-btn:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-hover);
}

.social-btn.linkedin {
    background: #0077b5;
}

.social-btn.github {
    background: #333;
}

.social-btn.twitter {
    background: #1da1f2;
}

/* ===== ABOUT SECTION ===== */
.about-content {
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 30px;
}

.about-content p {
    margin-bottom: 20px;
}

.action-buttons {
    display: flex;
    gap: 20px;
    margin-top: 30px;
}

.btn {
    padding: 12px 30px;
    border-radius: 30px;
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    transition: var(--transition);
    border: none;
    cursor: pointer;
    font-size: 1rem;
}

.btn-primary {
    background: var(--primary-color);
    color: white;
}

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-3px);
    box-shadow: var(--shadow-hover);
}

.btn-secondary {
    background: var(--bg-light);
    color: var(--text-color);
    border: 2px solid var(--border-color);
}

.btn-secondary:hover {
    background: var(--border-color);
    transform: translateY(-3px);
}

/* ===== EXPERIENCE SECTION ===== */
.timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 30px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: var(--primary-color);
}

.timeline-item {
    position: relative;
    margin-bottom: 40px;
    padding-left: 80px;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: 22px;
    top: 0;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--bg-color);
    border: 3px solid var(--primary-color);
    z-index: 1;
}

.timeline-content {
    background: var(--bg-light);
    padding: 25px;
    border-radius: var(--border-radius);
    border-left: 4px solid var(--primary-color);
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.timeline-content:hover {
    transform: translateX(10px);
    box-shadow: var(--shadow-hover);
}

.company-logo {
    width: 60px;
    height: 60px;
    border-radius: 10px;
    margin-bottom: 15px;
    object-fit: cover;
}

.timeline-header h3 {
    font-size: 1.3rem;
    margin-bottom: 5px;
    color: var(--text-color);
}

.company-info {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 10px;
    flex-wrap: wrap;
}

.company-name {
    font-weight: 600;
    color: var(--primary-color);
    text-decoration: none;
}

.company-name:hover {
    text-decoration: underline;
}

.company-location {
    color: var(--text-light);
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 5px;
}

.timeline-period {
    color: var(--text-light);
    font-size: 0.9rem;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 5px;
}

.timeline-description {
    color: var(--text-color);
    line-height: 1.6;
}

/* ===== PROJECTS SECTION ===== */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 30px;
}

.project-card {
    background: var(--bg-light);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.project-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-hover);
}

.project-card.featured {
    border: 2px solid var(--primary-color);
}

.project-thumbnail {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.project-content {
    padding: 25px;
}

.project-content h3 {
    font-size: 1.3rem;
    margin-bottom: 15px;
    color: var(--text-color);
}

.project-description {
    color: var(--text-light);
    margin-bottom: 20px;
    line-height: 1.6;
}

.project-technologies {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 20px;
}

.tech-tag {
    background: var(--primary-light);
    color: var(--primary-color);
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
}

.project-links {
    display: flex;
    gap: 15px;
}

.project-link {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 0.9rem;
    transition: var(--transition);
}

.project-link:hover {
    color: var(--primary-dark);
}

/* ===== SKILLS SECTION ===== */
.skills-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 40px;
}

.skill-category {
    margin-bottom: 30px;
}

.category-title {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 20px;
    color: var(--accent-color);
    padding-bottom: 10px;
    border-bottom: 2px solid var(--border-color);
}

.skill-items {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.skill-item {
    background: var(--bg-light);
    padding: 20px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
}

.skill-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
}

.skill-icon {
    font-size: 1.5rem;
    color: var(--primary-color);
}

.skill-name {
    font-weight: 600;
    flex-grow: 1;
}

.skill-level {
    padding: 3px 10px;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 500;
    text-transform: uppercase;
}

.skill-level.beginner {
    background: #ffebee;
    color: #c62828;
}

.skill-level.intermediate {
    background: #fff3e0;
    color: #ef6c00;
}

.skill-level.advanced {
    background: #e8f5e9;
    color: #2e7d32;
}

.skill-level.expert {
    background: #e3f2fd;
    color: #1565c0;
}

.skill-progress {
    height: 10px;
    background: var(--border-color);
    border-radius: 5px;
    overflow: hidden;
}

.progress-bar {
    height: 100%;
    background: var(--primary-color);
    border-radius: 5px;
    position: relative;
    transition: width 1s ease;
}

.progress-text {
    position: absolute;
    right: 10px;
    top: -25px;
    font-size: 0.8rem;
    color: var(--text-color);
}

/* ===== CONTACT SECTION ===== */
.contact-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 50px;
}

.contact-info h3,
.contact-form h3 {
    font-size: 1.5rem;
    margin-bottom: 30px;
    color: var(--text-color);
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 20px;
}

.contact-item i {
    font-size: 1.2rem;
    color: var(--primary-color);
    margin-top: 5px;
}

.contact-item div {
    flex-grow: 1;
}

.contact-item strong {
    display: block;
    margin-bottom: 5px;
    color: var(--text-color);
}

.contact-item a,
.contact-item span {
    color: var(--text-light);
    text-decoration: none;
    transition: var(--transition);
}

.contact-item a:hover {
    color: var(--primary-color);
}

.form-group {
    margin-bottom: 20px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 15px;
    border: 2px solid var(--border-color);
    border-radius: var(--border-radius);
    background: var(--bg-light);
    color: var(--text-color);
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    transition: var(--transition);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
}

.form-group textarea {
    resize: vertical;
    min-height: 150px;
}

/* ===== FOOTER ===== */
.footer {
    background: var(--bg-light);
    padding: 60px 0 30px;
    border-top: 1px solid var(--border-color);
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-section h3,
.footer-section h4 {
    margin-bottom: 20px;
    color: var(--text-color);
}

.footer-section p {
    color: var(--text-light);
    line-height: 1.6;
}

.footer-section a {
    display: block;
    color: var(--text-light);
    text-decoration: none;
    margin-bottom: 10px;
    transition: var(--transition);
}

.footer-section a:hover {
    color: var(--primary-color);
    padding-left: 5px;
}

.social-links {
    display: flex;
    gap: 15px;
}

.social-link {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-color);
    text-decoration: none;
    transition: var(--transition);
}

.social-link:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-3px);
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid var(--border-color);
    color: var(--text-light);
}

.built-with {
    margin-top: 10px;
    font-size: 0.9rem;
    opacity: 0.7;
}

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 992px) {
    .section-title {
        font-size: 2rem;
    }

    .profile-card {
        flex-direction: column;
        text-align: center;
        padding: 20px;
    }

    .profile-meta {
        justify-content: center;
    }

    .action-buttons {
        justify-content: center;
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
    }

    .mobile-menu-btn {
        display: block;
    }

    .cover-image-container {
        height: 300px;
    }

    .profile-card-container {
        margin-top: -80px;
    }

    .profile-image,
    .profile-image-placeholder {
        width: 120px;
        height: 120px;
    }

    .profile-info h1 {
        font-size: 2rem;
    }

    .timeline::before {
        left: 20px;
    }

    .timeline-item {
        padding-left: 50px;
    }

    .timeline-item::before {
        left: 12px;
    }

    .contact-container {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 576px) {
    .section {
        padding: 60px 0;
    }

    .section-title {
        font-size: 1.8rem;
    }

    .projects-grid {
        grid-template-columns: 1fr;
    }

    .skills-container {
        grid-template-columns: 1fr;
    }

    .action-buttons {
        flex-direction: column;
        align-items: center;
    }

    .btn {
        width: 100%;
        justify-content: center;
    }
}

/* ===== ANIMATIONS ===== */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.fade-in {
    animation: fadeIn 0.6s ease-out;
}

.slide-in-left {
    animation: slideInLeft 0.6s ease-out;
}

.slide-in-right {
    animation: slideInRight 0.6s ease-out;
}

/* ===== DARK MODE ===== */
body.dark-mode {
    color-scheme: dark;
}

/* ===== PRINT STYLES ===== */
@media print {

    .navbar,
    .footer,
    .btn,
    .social-btn,
    .mobile-menu-btn,
    .dark-mode-toggle {
        display: none !important;
    }

    body {
        color: #000 !important;
        background: #fff !important;
    }

    .profile-card {
        box-shadow: none !important;
        border: 1px solid #ddd !important;
    }

    .section {
        padding: 40px 0 !important;
    }
}

/* ===== DYNAMIC SECTIONS ===== */
.dynamic-section {
    position: relative;
}

.dynamic-section-content {
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 30px;
}

.dynamic-section-content p {
    margin-bottom: 20px;
}

/* Gallery Layout */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 30px;
}

.gallery-item {
    position: relative;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.gallery-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.gallery-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.gallery-icon {
    width: 100%;
    height: 200px;
    background: var(--primary-light);
    display: flex;
    align-items: center;
    justify-content: center;
}

.gallery-icon i {
    font-size: 48px;
    color: var(--primary-color);
}

.gallery-caption {
    padding: 15px;
    background: var(--bg-color);
}

.gallery-caption h3 {
    font-size: 1.1rem;
    margin-bottom: 8px;
}

.gallery-caption p {
    font-size: 0.9rem;
    color: var(--text-light);
    margin: 0;
}

/* Testimonials Layout */
.testimonials-slider {
    max-width: 800px;
    margin: 0 auto;
}

.testimonial-item {
    background: var(--bg-light);
    padding: 30px;
    border-radius: var(--border-radius);
    margin-bottom: 30px;
    box-shadow: var(--shadow);
}

.testimonial-content {
    font-size: 1.1rem;
    line-height: 1.8;
    font-style: italic;
    color: var(--text-color);
    margin-bottom: 20px;
    position: relative;
}

.testimonial-content::before {
    content: '"';
    font-size: 4rem;
    color: var(--primary-color);
    opacity: 0.2;
    position: absolute;
    top: -20px;
    left: -10px;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 15px;
}

.author-image {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
}

.author-info h4 {
    margin-bottom: 5px;
    color: var(--text-color);
}

.author-info p {
    color: var(--text-light);
    margin: 0;
    font-size: 0.9rem;
}

/* Services Layout */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 30px;
}

.service-item {
    background: var(--bg-light);
    padding: 30px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.service-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.service-icon {
    width: 60px;
    height: 60px;
    background: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

.service-icon i {
    font-size: 24px;
    color: white;
}

.service-content h3 {
    font-size: 1.3rem;
    margin-bottom: 15px;
    color: var(--text-color);
}

.service-content p {
    color: var(--text-light);
    margin-bottom: 20px;
    line-height: 1.6;
}

.service-link {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    transition: var(--transition);
}

.service-link:hover {
    color: var(--primary-dark);
    gap: 10px;
}

/* Awards Layout */
.awards-timeline {
    max-width: 800px;
    margin: 30px auto 0;
}

.award-item {
    display: flex;
    gap: 30px;
    margin-bottom: 30px;
    padding-bottom: 30px;
    border-bottom: 1px solid var(--border-color);
}

.award-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.award-date {
    flex-shrink: 0;
    width: 100px;
    font-weight: 600;
    color: var(--primary-color);
    font-size: 1.1rem;
}

.award-content {
    flex-grow: 1;
}

.award-content h3 {
    font-size: 1.2rem;
    margin-bottom: 8px;
    color: var(--text-color);
}

.award-org {
    color: var(--text-light);
    font-weight: 500;
    margin-bottom: 10px;
}

.award-description {
    color: var(--text-color);
    line-height: 1.6;
}

/* Default List Layout */
.section-items-list {
    margin-top: 30px;
}

.section-item {
    display: flex;
    gap: 20px;
    padding: 20px;
    background: var(--bg-light);
    border-radius: var(--border-radius);
    margin-bottom: 15px;
    transition: var(--transition);
}

.section-item:hover {
    background: var(--primary-light);
    transform: translateX(5px);
}

.item-icon {
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-top: 5px;
    flex-shrink: 0;
}

.item-content {
    flex-grow: 1;
}

.item-content h3 {
    font-size: 1.1rem;
    margin-bottom: 5px;
    color: var(--text-color);
}

.item-subtitle {
    color: var(--primary-color);
    font-weight: 500;
    margin-bottom: 8px;
}

.item-description {
    color: var(--text-color);
    line-height: 1.6;
    margin-bottom: 10px;
}

.item-date {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    color: var(--text-light);
    font-size: 0.9rem;
    margin-right: 15px;
}

.item-link {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 0.9rem;
}

.item-link:hover {
    color: var(--primary-dark);
}

/* Layout Styles */
.dynamic-section.card {
    background: var(--bg-light);
    padding: 40px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
}

.dynamic-section.minimal .section-title {
    font-size: 1.8rem;
    margin-bottom: 20px;
}

.dynamic-section.highlight {
    background: linear-gradient(135deg, var(--primary-light), transparent);
    padding: 60px 0;
}

.dynamic-section.highlight .section-title {
    color: var(--primary-dark);
}

/* ===== MOBILE MENU BACKDROP ===== */
.mobile-menu-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 998;
    display: none;
    animation: fadeIn 0.3s ease-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

/* Prevent body scroll when menu is open */
body.menu-open {
    overflow: hidden;
}

/* Mobile menu slide-in animation */
.mobile-menu {
    display: none;
    position: fixed;
    top: 70px;
    left: 0;
    right: 0;
    background: var(--bg-color);
    box-shadow: var(--shadow);
    padding: 20px;
    z-index: 999;
    transform: translateY(-20px);
    opacity: 0;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.mobile-menu.active {
    display: flex;
    flex-direction: column;
    gap: 15px;
    transform: translateY(0);
    opacity: 1;
}

.mobile-menu-btn.active i {
    color: var(--primary-color);
    transform: rotate(90deg);
    transition: transform 0.3s ease;
}

/* Mobile menu link hover effects */
.mobile-nav-link {
    color: var(--text-color);
    text-decoration: none;
    padding: 12px 0;
    border-bottom: 1px solid var(--border-color);
    font-size: 1.1rem;
    font-weight: 500;
    transition: var(--transition);
}

.mobile-nav-link:hover {
    color: var(--primary-color);
    padding-left: 10px;
}

.mobile-nav-link:last-child {
    border-bottom: none;
}

/* Close button styling */
.mobile-menu-btn i {
    transition: var(--transition);
}

/* ===== EDUCATION SECTION SPECIFIC STYLES ===== */
.timeline-grade {
    color: var(--text-light);
    font-size: 0.9rem;
    margin-bottom: 15px;
    padding: 5px 10px;
    background: var(--primary-light);
    border-radius: 4px;
    display: inline-block;
}

.timeline-grade strong {
    color: var(--primary-color);
}