:root {
    --background: #000000;
    --text: #ffffff;
    --secondary-text: #eeeeee;
    --accent: #007AFF;
    --box-shadow: 0 4px 15px #007bffb6;
    --box-shadow-idle: 0 4px 15px #007bff40;
    --card-bg: #1c1c1e;
    --nav-bg: rgba(255, 255, 255, 0);
    --course-bg: #2c2c2e;
    --nav-text: #ffffff;
    --font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
}

[data-theme="light"] {
    --background: #ffffff;
    --text: #000000;
    --secondary-text: #666666;
    --accent: #004187;
    --box-shadow: 0 4px 15px #004187;
    --card-bg: #f5f5f7;
    --course-bg: #f0f0f3;
    --nav-text: #000000;
}


* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-family);
    background-color: var(--background);
    color: var(--text);
    transition: background-color 0.3s, color 0.3s;
}



.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 1rem 2rem;
    background: none;
    backdrop-filter: blur(10px);
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1000;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.nav-brand {
    font-size: 1.2rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text);
}

.brand-icon {
    color: var(--accent);
    font-size: 1.4rem;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.nav-brand:hover .brand-icon {
    transform: scale(1.05);
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    z-index: 1001;
}

.hamburger {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--text);
    position: relative;
    transition: all 0.3s ease;
}

.hamburger::before,
.hamburger::after {
    content: '';
    position: absolute;
    width: 24px;
    height: 2px;
    background: var(--text);
    transition: all 0.3s ease;
}

.hamburger::before {
    top: -6px;
}

.hamburger::after {
    bottom: -6px;
}

.mobile-menu-btn.active .hamburger {
    background: transparent;
}

.mobile-menu-btn.active .hamburger::before {
    transform: rotate(45deg);
    top: 0;
}

.mobile-menu-btn.active .hamburger::after {
    transform: rotate(-45deg);
    bottom: 0;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 1rem;
    border-radius: 0.8rem;
}

.nav-links a {
    color: var(--text);
    text-decoration: none;
    font-size: 1.1rem;
    padding: 0.5rem 1rem;
    border-radius: 0.8rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    border: 2px solid transparent;
    transform: scale(1);
}

.nav-links a:hover {
    border-color: var(--accent);
    transform: scale(1.05);
    box-shadow: var(--box-shadow);
}

.nav-links a:active {
    transform: scale(0.98);
    box-shadow: var(--box-shadow);
}

.nav-links a.active {
    border-color: var(--accent);
    background-color: rgba(0, 122, 255, 0.2);
    transform: scale(1.05);
    box-shadow: var(--box-shadow);}

.nav-links a.active:hover {
    transform: scale(1.05);
}

.nav-links a.active:active {
    transform: scale(0.98);
}

.nav-controls {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.theme-toggle {
    --size: 18px;
    background: none;
    border: none;
    padding: 0;
    inline-size: var(--size);
    block-size: var(--size);
    aspect-ratio: 1;
    border-radius: 50%;
    cursor: pointer;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
    outline-offset: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text);
}

.theme-toggle > svg {
    inline-size: 100%;
    block-size: 100%;
    stroke-linecap: round;
    color: var(--text);
}

@media (max-width: 768px) {
    .navbar {
        padding: 1rem;
    }

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

    .nav-links {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        background: var(--background);
        flex-direction: column;
        justify-content: center;
        gap: 2rem;
        transform: translateX(-100%);
        transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        padding: 2rem;
    }

    .nav-links.active {
        transform: translateX(0);
    }

    .nav-links a {
        font-size: 1.2rem;
        padding: 1rem;
        width: 100%;
        justify-content: center;
    }

    .nav-links a i {
        font-size: 1.2rem;
    }

    .nav-controls {
        margin-left: auto;
    }

    .theme-toggle {
        --size: 18px;
    }
}



.hero {
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    position: relative;
    overflow: hidden;
    padding: 1.5rem;
}

.hero::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 135%;
    height: 135%;
    background-image: url('https://github.com/hamitcf1/Web2o/blob/main/assets/my-notion-face-transparent.png?raw=true');
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0.04;
    z-index: -1;
    filter: grayscale(100%);
    animation: float 4s ease-in-out infinite;
}

@keyframes float {
    0% {
        transform: translate(-50%, -50%);
    }
    50% {
        transform: translate(-50%, -52%);
    }
    100% {
        transform: translate(-50%, -50%);
    }
}

.hero-content {
    text-align: center;
    transform: translateY(20px);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    z-index: 1;
    text-align: center;
    line-height: 1.6;
    margin-left: auto;
    margin-right: auto;
}

.hero h1 {
    font-size: 4rem;
    color: var(--text);
    margin-bottom: 1rem;
    font-weight: 700;
    line-height: 1.6;
    word-spacing: 0.2rem;
}

.hero p {
    font-size: 1.2rem;
    color: var(--secondary-text);
    margin-bottom: 0.2rem;
    max-width: 600px;
    text-align: center;
    line-height: 1.6;
    margin-left: auto;
    margin-right: auto;
}

.location {
    align-items: center;
    gap: 0.5rem;
    font-size: 1.2rem;
    color: var(--text);
    max-width: 600px;
    text-align: center;
    line-height: 1.6;
    margin-left: auto;
    margin-right: auto;
    margin-top: -1.2rem;
    margin-bottom: 0.7rem;

}

.location i {
    transition: transform 0.3s ease;
}

.location:hover i {
    transform: scale(1.2);
    color: var(--accent);
}

.age {
    align-items: center;
    gap: 1rem;
    font-size: 1.2rem;
    color: var(--text);
    max-width: 600px;
    text-align: center;
    line-height: 1.6;
    margin-left: auto;
    margin-right: auto;
    margin-top: -1rem;
    margin-bottom: 0.7rem;
}

.age:hover i {
    transform: scale(1.2);
    color: var(--accent);
}



.cta-button {
    background-color: var(--accent);
    color: white;
    border: none;
    padding: 1rem 2rem;
    border-radius: 2rem;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.cta-button:hover {
    transform: scale(1.05);
    box-shadow: var(--box-shadow);}

.cta-button:active {
    transform: scale(1);
}

.projects {
    padding: 4rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.projects h2 {
    text-align: center;
    font-size: 2.5rem;
    padding: 2rem;
    margin-bottom: 3rem;
}

.todo-title {
    font-size: 2rem;
    margin-bottom: 1rem;
    padding-left: 61rem;
}


.projects p {
    text-align: center;
    font-size: 1.2rem;
}

.projects-header-1, .projects-subtitle-1 {
    text-align: center;
    font-size: 2.5rem;
    padding-bottom: 1rem;
}

.project-grid {
    display: grid;
    /* columns are set dynamically by JS through --project-columns; minmax preserves responsive behavior */
    grid-template-columns: repeat(var(--project-columns, 3), minmax(220px, 1fr));
    gap: 2.5rem; /* larger gap helps prevent shadow overlap */
    grid-auto-rows: 1fr; /* ensure each row's tracks are equal height */
    align-items: stretch; /* make grid items stretch to match row height */
    align-content: start; /* pack rows to the top when grid has extra space */
    --project-columns: 3; /* default fallback */
    padding-bottom: 1rem;
}

.project-card {
    --title-size: 1.5rem; /* JS will override per-card when needed */
    --desc-size: 1rem;   /* JS will override per-card when needed */
    border-radius: 1.5rem;
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.35s;
    /* softened shadow to reduce visual overlap while keeping glow */
    box-shadow: 0 10px 28px rgba(0,0,0,0.56), 0 0 36px rgba(12, 45, 80, 0.08);
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    background: var(--card-bg);
    border: 2px solid transparent;
    transform: scale(1);
    transform-origin: center top; /* keep top edges aligned when scaling */
    min-height: 440px; /* consistent card height */
    height: 100%;
} 

/* Reduce min-height on smaller screens */
@media (max-width: 900px) {
    .project-card { min-height: 380px; }
}
@media (max-width: 600px) {
    .project-card { min-height: 320px; }
}


.project-card:hover {
    border-color: var(--accent);
    transform: scale(1.05);
    box-shadow: var(--box-shadow);}

.project-card:active {
    transform: scale(0.98);
    box-shadow: var(--box-shadow);}

.project-content {
    background: var(--card-bg);
    padding: 2rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}



.project-title {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.project-title h3 {
    margin: 0;
    font-size: var(--title-size, 1.5rem);
    color: var(--text);
    line-height: 1.15;
    display: flex;
    align-items: center;
    transition: font-size 0.14s ease;
} 

.project-icon {
    color: var(--accent);
    font-size: 1.2rem;
    opacity: 0.8;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    line-height: 1;
    height: 1.5rem;
}

.project-card:hover .project-icon {
    transform: scale(1.2);
    opacity: 1;
}

.project-card p {
    color: var(--secondary-text);
    margin-bottom: 1.5rem;
    line-height: 1.45;
    flex: 1;
    font-size: var(--desc-size, 1rem);
    transition: font-size 0.14s ease;
} 

.project-links {
    display: flex;
    gap: 0.75rem;
    justify-content: center; /* center the buttons */
    flex-wrap: wrap; /* allow wrapping on small screens */
    align-items: center;
    margin-top: auto;
    padding-top: 1rem;
}

.project-link {
    color: var(--accent);
    text-decoration: none;
    font-size: 0.9rem;
    padding: 0.45rem 0.9rem;
    border-radius: 1.2rem;
    transition: transform 0.18s ease, background 0.18s ease, box-shadow 0.18s ease;
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.04);
    position: relative;
    z-index: 3;
    cursor: pointer;
    flex: 0 1 auto; /* don't force full width */
    min-width: 110px; /* keep buttons a usable size */
    text-align: center;
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    box-sizing: border-box;
}

.project-link i { font-size: 0.95rem; }
.project-link:hover { transform: translateY(-2px); background: var(--accent); color: #fff; box-shadow: 0 8px 20px rgba(11,64,140,0.25); }


@media (max-width: 480px) {
    .project-links {
        gap: 0.6rem;
    }
    .project-link {
        width: 100%;
        min-width: unset;
    }
}

.project-link:hover {
    background: var(--accent);
    color: white;
    transform: scale(1.05);
    box-shadow: var(--box-shadow);}

.project-link.disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.project-link.disabled:hover {
    background: rgba(0, 122, 255, 0.1);
    color: var(--accent);
    transform: none;
    box-shadow: none;
}

.project-link i {
    font-size: 1rem;
}

.project-image {
    width: 100%;
    height: 180px; /* slightly reduced to allow more room for content */
    min-height: 140px;
    background-color: rgba(255,255,255,0.03);
    border-radius: 1.5rem 1.5rem 0 0;
    margin-bottom: 0;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
}


.bugun-img {
    background: linear-gradient(45deg, #1a1a1a, #333);
    display: flex;
    align-items: center;
    justify-content: center;
}

.bugun-img::after {
    content: '\f4fd';
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    font-size: 4rem;
    color: #fff;
    opacity: 0.8;
}

.telegram-img {
    background: linear-gradient(45deg, #1a1a1a, #333);
    display: flex;
    align-items: center;
    justify-content: center;
}

.telegram-img::after {
    content: '\f544';
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    font-size: 4rem;
    color: #fff;
    opacity: 0.8;
}

.retro-img {
    background: linear-gradient(45deg, #1a1a1a, #333);
    display: flex;
    align-items: center;
    justify-content: center;
}

.retro-img::after {
    content: '\f11b';
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    font-size: 4rem;
    color: #fff;
    opacity: 0.8;
}

.pearly-img {
    background: linear-gradient(45deg, #1a1a1a, #333);
    display: flex;
    align-items: center;
    justify-content: center;
}

.pearly-img::after {
    content: '\f1ad';
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    font-size: 4rem;
    color: #fff;
    opacity: 0.8;
}

.grid-img {
    background: linear-gradient(45deg, #1a1a1a, #333);
    display: flex;
    align-items: center;
    justify-content: center;
}

.grid-img::after {
    content: '\f00a';
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    font-size: 4rem;
    color: #fff;
    opacity: 0.8;
}

.upcoming-img {
    background: linear-gradient(45deg, #1a1a1a, #333);
    display: flex;
    align-items: center;
    justify-content: center;
}

.upcoming-img::after {
    content: '\f023';
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    font-size: 4rem;
    color: #fff;
    opacity: 0.8;
}

.year_calculation-img {
    background: linear-gradient(45deg, #1a1a1a, #333);
    display: flex;
    align-items: center;
    justify-content: center;
}

.year_calculation-img::after {
    content: '\f073';
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    font-size: 4rem;
    color: #fff;
    opacity: 0.8;
}

/* Skyrim Aetherius preview badge */
.skyaetherius-img {
    background: linear-gradient(45deg, #0f1412, #2b261f);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.skyaetherius-img::after {
    content: 'SKYRIM COMPATIBLE';
    font-family: 'Helvetica Neue', Arial, sans-serif;
    font-weight: 700;
    font-size: 0.95rem;
    color: #d9b36a;
    letter-spacing: 0.12rem;
    background: rgba(0,0,0,0.25);
    padding: 0.45rem 0.8rem;
    border-radius: 0.25rem;
    transform: translateY(-0.2rem);
}

@media (max-width: 768px) {
    .project-grid {
        grid-template-columns: 1fr;
    }

    .hero h1 {
        font-size: 2.5rem;
    }

    .hero p {
        font-size: 1.2rem;
    }

    .nav-links {
        gap: 1rem;
    }
}

.section {
    padding: 6rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.section h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    padding: 0 2rem;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    color: var(--text);
}

/* Timeline styles for Experience */
.experience-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    padding: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.experience-card {
    background: var(--card-bg);
    border-radius: 1rem;
    padding: 2rem;
    box-shadow: var(--box-shadow-idle);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    border: 2px solid transparent;
}

.experience-card::before {
    display: none;
}

.experience-header {
    margin-bottom: 1.5rem;
    text-align: center;
}

.experience-header i {
    font-size: 2rem;
    color: var(--accent);
    margin-bottom: 1rem;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.experience-card:hover .experience-header i {
    transform: scale(1.1) rotate(10deg);
    color: var(--accent);
}

.experience-header h3 {
    font-size: 1.4rem;
    margin-bottom: 0.5rem;
    color: var(--text);
}

.experience-header .company {
    font-size: 1.1rem;
    color: var(--secondary-text);
    margin-bottom: 0.3rem;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.experience-card:hover .experience-header .company {
    color: var(--accent);
    transform: scale(1.05);
}


.experience-details {
    list-style: none;
    padding: 0;
}

.experience-details li {
    margin-bottom: 0.8rem;
    padding-left: 1.5rem;
    position: relative;
    color: var(--secondary-text);
    font-size: 1rem;
    line-height: 1.5;
    transition: all 0.3s ease;
}

.experience-details li::before {
    content: "•";
    position: absolute;
    left: 0;
    color: var(--accent);
}

.experience-card:hover .experience-details li {
    color: var(--text);
    transform: translateX(5px);
}

/* Education styles */
.education-content {
    background: var(--card-bg);
    padding: 2.5rem;
    border-radius: 1.5rem;
    box-shadow: var(--box-shadow-idle);
    transition: all 0.3s ease;
    border: 2px solid transparent;
    transform: scale(1);
    width: 100%;
    max-width: 100%;
}

.education-main {
    margin-bottom: 2rem;
    text-align: center;
}

.education-main h3 {
    font-size: 1.8rem;
    color: var(--text);
    margin-bottom: 0.5rem;
}

.degree {
    color: var(--accent);
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
}

.courses h4 {
    text-align: center;
    color: var(--text);
    margin-bottom: 1.5rem;
    font-size: 1.2rem;
}

.courses ul {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.2rem;
    padding: 0;
    margin: 0;
    list-style: none;
}

@media screen and (max-width: 1200px) {
    .courses ul {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media screen and (max-width: 992px) {
    .courses ul {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media screen and (max-width: 576px) {
    .courses ul {
        grid-template-columns: 1fr;
    }
}

.courses li,
.course-item {
    opacity: 0;
    transform: translateY(20px);
    padding: 1rem;
    background-color: var(--course-bg);
    border: 2px solid transparent;
    border-radius: 1rem;
    color: var(--text);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    gap: 0.8rem;
    position: relative;
    z-index: 1;
    cursor: pointer;
    min-height: 60px;
}

.courses li.animate,
.course-item.animate {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.courses li:hover,
.course-item:hover {
    background: var(--card-bg);
    border-color: var(--accent);
    transform: translateY(-2px);
    box-shadow: var(--box-shadow);
    z-index: 10;
}

.courses li:nth-child(1) { animation-delay: 0.1s; }
.courses li:nth-child(2) { animation-delay: 0.2s; }
.courses li:nth-child(3) { animation-delay: 0.3s; }
.courses li:nth-child(4) { animation-delay: 0.4s; }
.courses li:nth-child(5) { animation-delay: 0.5s; }
.courses li:nth-child(6) { animation-delay: 0.6s; }
.courses li:nth-child(7) { animation-delay: 0.7s; }
.courses li:nth-child(8) { animation-delay: 0.8s; }
.courses li:nth-child(9) { animation-delay: 0.9s; }

.course-icon {
    color: var(--accent);
    font-size: 1.1rem;
    opacity: 0.8;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    min-width: 1.5rem;
    text-align: center;
}

.courses li:hover .course-icon,
.course-item:hover .course-icon {
    transform: scale(1.2);
    opacity: 1;
}

.education-content:hover {
    border-color: var(--accent);
    transform: scale(1.05);
    box-shadow: var(--box-shadow);
}

.education-content:active {
    transform: scale(0.98);
    box-shadow: var(--box-shadow);
}

/* Reviews styles */
.reviews-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    padding: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.review-card {
    background: var(--card-bg);
    padding: 2rem;
    border-radius: 1.5rem;
    box-shadow: var(--box-shadow-idle);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    min-height: 300px;
    border: 2px solid transparent;
}

.review-card::before {
    display: none;
}

.review-icon {
    color: var(--accent);
    font-size: 2rem;
    opacity: 0.3;
    margin-bottom: 1rem;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    z-index: 1;
}

.review-card:hover .review-icon {
    opacity: 1;
    transform: scale(1.1) rotate(-10deg);
}

.review-text {
    color: var(--secondary-text);
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    font-family: var(--font-family);
    position: relative;
    z-index: 1;
    flex-grow: 1;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    line-height: 1.6;
}

.review-card:hover .review-text {
    color: var(--text);
}

.reviewer {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-top: auto;
    padding-top: 1rem;
    border-top: 1px solid rgba(0, 122, 255, 0.2);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    z-index: 1;
}

.reviewer-avatar {
    color: var(--accent);
    font-size: 2rem;
    opacity: 0.8;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    flex-shrink: 0;
}

.review-card:hover .reviewer-avatar {
    transform: scale(1.1) rotate(10deg);
    opacity: 1;
}

.reviewer-info {
    flex: 1;
    min-width: 0;
}

.reviewer-name {
    color: var(--secondary-text);
    font-weight: 500;
    margin-bottom: 0.3rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.review-card:hover .reviewer-name {
    color: var(--accent);
    transform: translateX(5px);
}

.reviewer-title {
    color: var(--secondary-text);
    font-size: 0.9rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.review-card:hover .reviewer-title {
    transform: translateX(5px);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .section {
        padding: 4rem 1rem;
    }

    .section h2 {
        font-size: 2rem;
        margin-bottom: 2rem;
    }

    .timeline-content {
        padding: 1.5rem;
    }

    .education-content {
        padding: 1.5rem;
    }

    .courses ul {
        grid-template-columns: 1fr;
    }
}

/* Smooth scrolling for the whole page */
html {
    scroll-behavior: smooth;
}

/* Add transition properties to animated elements */
.project-card,
.timeline-item,
.education-content,
.review-card {
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}



/* Add subtle gradient border on hover */
.card-shine {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 50%;
    height: 100%;
    background: linear-gradient(90deg, 
        transparent 0%,
        rgba(0, 122, 255, 0.4) 50%,
        transparent 100%
    );
    transform: skewX(-25deg);
    transition: all 0.7s ease-in-out;
    z-index: 1;
    pointer-events: none;
    opacity: 0;
}

.review-card:hover .card-shine,
.experience-card:hover .card-shine {
    left: 150%;
    opacity: 1;
}

.project-card:hover .card-shine,
.timeline-content:hover .card-shine,
.education-content:hover .card-shine,
.courses li:hover .card-shine {
    left: 150%;
    transition: left 0.7s ease-in-out;
}

/* Add relative positioning for gradient border */
.project-card,
.timeline-content,
.education-content,
.review-card,
.courses li {
    position: relative;
}

/* Modal styles */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(5px);
    z-index: 2000;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.modal.show {
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 1;
}

.modal-content {
    background: var(--card-bg);
    padding: 2.5rem;
    border-radius: 1.5rem;
    position: relative;
    width: 90%;
    max-width: 500px;
    box-shadow: var(--box-shadow-idle);
}

.modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--text);
    width: 2rem;
    height: 2rem;
    border-radius: 50%;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.modal-close:hover {
    color: var(--accent);
    background: rgba(0, 0, 0, 0.1);
    transform: rotate(90deg);
}

.contact-links {
    display: grid;
    gap: 1rem;
    margin-top: 2rem;
}

.contact-link {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    border-radius: 1rem;
    background: rgba(53, 51, 51, 0.5);
    color: var(--text);
    text-decoration: none;
}

.contact-link:hover {
    border: 1px solid transparent;
    border-color: var(--accent);
    background: rgba(53, 51, 51, 0.5);
    box-shadow: var(--box-shadow);
}

.contact-link:hover i {
    color: var(--accent);
}

/* Update course items styling */
.courses ul {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
}

/* Ensure the content inside cards is clickable */
.project-card *,
.timeline-content *,
.education-content *,
.review-card * {
    position: relative;
    z-index: 2;
}

.scroll-animation {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.scroll-animation.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Add staggered delays for multiple elements */
.scroll-animation:nth-child(2) { transition-delay: 0.2s; }
.scroll-animation:nth-child(3) { transition-delay: 0.4s; }
.scroll-animation:nth-child(4) { transition-delay: 0.6s; }

/* Footer styles */
.footer {
    background: var(--nav-bg);
    backdrop-filter: blur(10px);
    padding: 2rem;
    margin-top: 4rem;
    text-align: center;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
}

.my-name {
    color: var(--accent);
}

.footer-links {
    display: flex;
    gap: 2rem;
}

.footer-links a {
    color: var(--nav-text);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: var(--accent);
}

@media screen and (max-width: 768px) {
    .footer-content {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
    
    .footer-links {
        flex-wrap: wrap;
        justify-content: center;
    }
}

/* Add these styles for the disabled project links */
.project-link.disabled {
    background: rgba(128, 128, 128, 0.2);
    color: var(--secondary-text);
    cursor: not-allowed;
    pointer-events: none;
    flex: 1;
    text-align: center;
    white-space: nowrap;
}

/* Fix project links alignment */
.project-links {
    display: flex;
    gap: 1rem;
    justify-content: space-between;
    margin-top: auto;
    padding-top: 1rem;
}

.project-card {
    display: flex;
    flex-direction: column;
    height: 100%;
}

/* Align experience section with header */
.section {
    padding: 6rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
    align-content: center;
}

/* Style for upcoming project images */
.upcoming-img {
    background: linear-gradient(45deg, var(--card-bg), var(--secondary-text));
    opacity: 0.5;
}

.nav-links .theme-toggle {
    padding: 0.5rem 1rem;
    border-radius: 0.8rem;
    background: none;
    color: var(--text);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.nav-links .theme-toggle svg {
    width: 18px;
    height: 18px;
}

/* Common styles for all cards */
.timeline-content,
.education-content,
.project-card,
.review-card,
.courses li {
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Timeline content hover */
.timeline-item:hover .timeline-content {
    border-color: var(--accent);
    transform: scale(1.05);
    box-shadow: var(--box-shadow);
}

/* Education content hover */
.education-content:hover {
    border-color: var(--accent);
    transform: scale(1.05);
    box-shadow: var(--box-shadow);
}

/* Project card hover */
.project-card:hover {
    border-color: var(--accent);
    transform: scale(1.05);
    box-shadow: var(--box-shadow);
}

/* Review card hover */
.review-card:hover {
    border-color: var(--accent);
    transform: scale(1.05);
    box-shadow: var(--box-shadow);
}

/* Course item hover */
.courses li:hover {
    border-color: var(--accent);
    transform: scale(1.05);
    box-shadow: var(--box-shadow);
}

/* Dark theme hover effects */
[data-theme="dark"] .timeline-content:hover,
[data-theme="dark"] .education-content:hover,
[data-theme="dark"] .project-card:hover,
[data-theme="dark"] .review-card:hover,
[data-theme="dark"] .courses li:hover {
    background: rgba(255, 255, 255, 0.15);
}

/* Switch Button Styling */
.switch-button {
    background-color: var(--accent);
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 30px;
    cursor: pointer;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    box-shadow: var(--box-shadow);
}

.switch-button:hover {
    background-color: #005ecb;
    transform: translateY(-3px);
    box-shadow: var(--box-shadow);
}

.switch-button:active {
    transform: translateY(1px);
    box-shadow: var(--box-shadow);
}

/* Back to Portfolio Button Styling */
.back-to-portfolio {
    background-color: transparent;
    color: var(--accent);
    border: 2px solid var(--accent);
    padding: 0.75rem 1.5rem;
    border-radius: 30px;
    cursor: pointer;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
}

.back-to-portfolio:hover {
    background-color: var(--accent);
    color: white;
    transform: translateY(-3px);
    box-shadow: var(--box-shadow);
}

.back-to-portfolio:active {
    transform: translateY(1px);
    box-shadow: var(--box-shadow);
}

/* Course item popup styles */
.course-item {
    position: relative;
    z-index: 1;
}

.course-item:hover {
    z-index: 10;
}

.course-popup {
    position: absolute;
    left: 100%;
    top: 0;
    background-color: var(--card-bg);
    border: 2px solid var(--accent);
    border-radius: 0.8rem;
    padding: 1rem;
    width: max-content;
    min-width: 200px;
    box-shadow: var(--box-shadow);
    opacity: 0;
    visibility: hidden;
    transform: translateX(10px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 100;
}

.course-popup::before {
    content: '';
    position: absolute;
    left: -10px;
    top: 15px;
    width: 0;
    height: 0;
    border-top: 10px solid transparent;
    border-bottom: 10px solid transparent;
    border-right: 10px solid var(--accent);
}

.course-popup ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.5rem;
}

.course-popup li {
    padding: 0.5rem;
    border-radius: 0.5rem;
    background-color: var(--course-bg);
    transition: all 0.3s ease;
    opacity: 1;
    transform: none;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.course-popup li:hover {
    background-color: var(--card-bg);
    transform: scale(1.05);
}

.course-popup-title {
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--accent);
    text-align: center;
}

.course-item:hover .course-popup {
    opacity: 1;
    visibility: visible;
    transform: translateX(0);
}

/* Responsive adjustments for popups */
@media screen and (max-width: 992px) {
    .course-popup {
        left: 0;
        top: 100%;
        transform: translateY(10px);
        width: max-content;
        min-width: 180px;
    }
    
    .course-popup::before {
        left: 20px;
        top: -10px;
        transform: rotate(-90deg);
        border-right: 10px solid var(--accent);
    }
    
    .course-item:hover .course-popup {
        transform: translateY(0);
    }
    
    .courses ul {
        grid-template-columns: 1fr;
    }
}

@media screen and (max-width: 576px) {
    .course-popup {
        position: absolute;
        left: 0;
        top: 100%;
        transform: translateY(10px);
        width: 100%;
        min-width: 100%;
    }
    
    .course-popup::before {
        left: 20px;
        top: -10px;
        transform: rotate(-90deg);
        border-right: 10px solid var(--accent);
    }
    
    .course-item:hover .course-popup {
        transform: translateY(0);
    }
}

/* Nested popups - second level */
.course-popup li {
    position: relative;
}

.nested-popup {
    position: absolute;
    left: 100%;
    top: 0;
    background-color: var(--card-bg);
    border: 2px solid var(--accent);
    border-radius: 0.8rem;
    padding: 1rem;
    width: max-content;
    min-width: 180px;
    box-shadow: var(--box-shadow);
    opacity: 0;
    visibility: hidden;
    transform: translateX(10px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 101;
}

.nested-popup::before {
    content: '';
    position: absolute;
    left: -10px;
    top: 15px;
    width: 0;
    height: 0;
    border-top: 10px solid transparent;
    border-bottom: 10px solid transparent;
    border-right: 10px solid var(--accent);
}

.nested-popup ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.5rem;
}

.nested-popup li {
    padding: 0.5rem;
    border-radius: 0.5rem;
    background-color: var(--course-bg);
    transition: all 0.3s ease;
    opacity: 1;
    transform: none;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.nested-popup li:hover {
    background-color: var(--card-bg);
    border-color: var(--accent);
    transform: scale(1.05);
}

.nested-popup-title {
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--accent);
    text-align: center;
}

.course-popup li:hover .nested-popup {
    opacity: 1;
    visibility: visible;
    transform: translateX(0);
}

/* Responsive adjustments for nested popups */
@media screen and (max-width: 992px) {
    .nested-popup {
        left: 100%;
        top: 0;
        transform: translateX(10px);
        width: max-content;
        min-width: 180px;
    }
    
    .nested-popup::before {
        left: -10px;
        top: 15px;
        transform: none;
        border-right: 10px solid var(--accent);
    }
    
    .course-popup li:hover .nested-popup {
        transform: translateX(0);
    }
}

@media screen and (max-width: 576px) {
    .nested-popup {
        position: absolute;
        left: 0;
        top: 100%;
        transform: translateY(10px);
        width: 100%;
        min-width: 100%;
    }
    
    .nested-popup::before {
        left: 20px;
        top: -10px;
        transform: rotate(-90deg);
        border-right: 10px solid var(--accent);
    }
    
    .course-popup li:hover .nested-popup {
        transform: translateY(0);
    }
}

/* Nested indicator styling */
.nested-indicator {
    margin-left: auto;
    font-size: 0.8rem;
    color: var(--accent);
    opacity: 0.7;
    transition: all 0.3s ease;
}

.nested-item:hover .nested-indicator {
    opacity: 1;
    transform: translateX(3px);
}

/* Adjust course-popup li to accommodate the indicator */
.course-popup li {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 0.5rem;
    padding: 0.5rem 0.8rem;
}

@media screen and (max-width: 576px) {
    .nested-indicator {
        transform: rotate(90deg);
    }
    
    .nested-item:hover .nested-indicator {
        transform: rotate(90deg) translateY(3px);
    }
}

.experience-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    padding: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.experience-card {
    background: var(--card-bg);
    border-radius: 1rem;
    padding: 2rem;
    box-shadow: var(--box-shadow);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.experience-card:hover {
    transform: translateY(-5px);
    border-color: var(--accent);
    box-shadow: var(--box-shadow);
}

.experience-header {
    margin-bottom: 1.5rem;
    text-align: center;
}

.experience-header i {
    font-size: 2rem;
    color: var(--accent);
    margin-bottom: 1rem;
}

.experience-header h3 {
    font-size: 1.4rem;
    margin-bottom: 0.5rem;
    color: var(--text);
}

.experience-header .company {
    font-size: 1.1rem;
    color: var(--accent);
    margin-bottom: 0.3rem;
}

.experience-header .date {
    font-size: 0.9rem;
    color: var(--secondary-text);
}

.experience-header .location {
    margin-top: 0.3rem;
    font-size: 0.9rem;
    color: var(--secondary-text);
}

.experience-header .location i {
    margin-right: 0.5rem;
    font-size: 1rem;
    color: var(--accent);
    transform-origin: center;
}

.experience-details {
    list-style: none;
    padding: 0;
}

.experience-details li {
    margin-bottom: 0.8rem;
    padding-left: 1.5rem;
    position: relative;
    color: var(--secondary-text);
    font-size: 1rem;
    line-height: 1.5;
}

.experience-details li::before {
    content: "•";
    position: absolute;
    left: 0;
    color: var(--accent);
}

.experience-card {
    background: var(--card-bg);
    border-radius: 1rem;
    padding: 2rem;
    box-shadow: var(--box-shadow);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 2px solid transparent;
    position: relative;
    overflow: hidden;
}

.experience-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 50%;
    height: 100%;
    background: linear-gradient(90deg, 
        transparent,
        var(--accent),
        transparent
    );
    transform: skewX(-25deg);
    transition: all 0.7s ease-in-out;
    z-index: 1;
}

.experience-card:hover::before {
    left: 150%;
}

.review-card::before,
.experience-card::before {
    display: none;
}

.review-card:hover::before,
.experience-card:hover::before {
    display: none;
}

.review-card,
.experience-card {
    position: relative;
    overflow: hidden;
}

.card-shine {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 50%;
    height: 100%;
    background: linear-gradient(90deg, 
        transparent 0%,
        var(--accent) 50%,
        transparent 100%
    );
    transform: skewX(-25deg);
    transition: all 0.7s ease-in-out;
    z-index: 1;
    pointer-events: none;
    opacity: 0;
}

.review-card:hover .card-shine,
.experience-card:hover .card-shine {
    left: 150%;
    opacity: 1;
}

.hourglass.fade-out {
  opacity: 0;
  transform: rotate(90deg);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.hourglass.fade-in {
  opacity: 1;
  transform: rotate(0deg);
  transition: opacity 0.8s ease, transform 0.8s ease;
}