/* ========== BASE STYLES ========== */
body {
    background-color: black;
    color: white;
    font-family: var(--body-font), var(--fallback-fonts);
    margin: 0;
    padding: 0;
    overflow-x: hidden;
}

/* Typography - Headers */
h1,
h2,
h3,
h4,
h5,
h6,
.project-header,
.logo {
    font-family: var(--header-font), var(--fallback-fonts);
    font-weight: var(--font-weight-bold);
    letter-spacing: -0.02em;
    line-height: var(--line-height-header);
}

h1,
.project-header {
    font-size: var(--font-size-h1);
    margin-bottom: 1.5rem;
}

h2 {
    font-size: var(--font-size-h2);
    margin-bottom: 1.2rem;
}

h3 {
    font-size: var(--font-size-h3);
    margin-bottom: 1rem;
}

h4 {
    font-size: var(--font-size-h4);
    margin-bottom: 0.8rem;
}

/* ========== IMAGE CAPTIONS ========== */
.image-caption {
    font-family: var(--body-font), var(--fallback-fonts);
    font-size: var(--font-size-caption);
    font-weight: var(--font-weight-normal);
    font-style: italic;
    line-height: var(--line-height-small);
    color: #ccc;
    text-align: center;
    margin: 8px 0 15px;
    max-width: 100%;
}

.image-caption a {
    color: #00bfff;
    text-decoration: none;
    transition: color 0.3s;
}

.image-caption a:hover {
    color: #66d9ff;
    text-decoration: underline;
}

/* ========== NAVIGATION ========== */
.top-menu {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    background-color: white;
    color: black;
    padding: 15px 30px;
    box-sizing: border-box;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.logo {
    font-size: var(--font-size-logo);
    font-weight: var(--font-weight-bold);
    color: black;
    position: relative;
    display: inline-block;
    cursor: default;
}

.logo.no-hover:hover {
    color: inherit;
    transform: none;
}

.logo.no-hover::after {
    display: none;
}

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

.nav-link {
    color: black;
    text-decoration: none;
    font-size: var(--font-size-nav);
    font-family: var(--body-font), var(--fallback-fonts);
    transition: color 0.3s;
    position: relative;
    display: inline-block;
}

.nav-link:hover {
    color: #00bfff;
}

.project-text ul li {
    font-family: var(--body-font), var(--fallback-fonts);
    font-size: var(--font-size-caption);
    font-weight: var(--font-weight-normal);
    font-style: italic;
    line-height: var(--line-height-small);
    color: #ccc;
    padding-left: 15px;
    margin-bottom: 4px;
}

.project-text ul li:before {
    content: "•";
    position: absolute;
    left: 0;
    color: #00bfff;
}

.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -3px;
    left: 0;
    background-color: #00bfff;
    transition: width 0.3s ease;
}

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

.about-link {
    color: black;
    text-decoration: none;
    font-size: var(--font-size-nav);
    font-family: var(--body-font), var(--fallback-fonts);
    transition: color 0.3s;
}

.about-link:hover {
    color: #00bfff;
}

/* ========== HEADER SECTION ========== */
header {
    display: flex;
    padding: 80px 5% 60px 5%;
    justify-content: space-between;
    align-items: center;
    gap: 40px;
}

.header-text {
    flex: 1;
    max-width: 60%;
}

.header-text h3 {
    font-size: var(--font-size-h3);
    font-weight: var(--font-weight-normal);
    line-height: var(--line-height-large);
    margin-bottom: 25px;
}

.header-text .intro {
    font-weight: var(--font-weight-bold);
}

.header-image {
    flex: 0 0 35%;
    max-width: 35%;
}

.header-image img {
    width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

/* ========== MAJOR PROJECTS SECTION ========== */
.project-container {
    padding-bottom: 50px;
}

.project-section {
    margin-bottom: 80px;
    padding: 0 5%;
    position: relative;
}

.project-section:not(:last-of-type)::after {
    content: "";
    position: absolute;
    bottom: -40px;
    left: 5%;
    right: 5%;
    height: 1px;
    background: linear-gradient(to right, rgba(255, 255, 255, 0), rgba(255, 255, 255, 0.2), rgba(255, 255, 255, 0));
}

.project-header {
    font-size: var(--font-size-h2);
    margin-bottom: 20px;
    color: #fff;
}

.project-link {
    text-decoration: none;
    color: inherit;
    display: block;
    transition: transform 0.3s ease;
}

.project-link:hover {
    transform: translateY(-5px);
}

.project-content {
    display: flex;
    gap: 40px;
    align-items: flex-start;
}

.project-image {
    flex: 0 0 60%;
    position: relative;
    overflow: hidden;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    aspect-ratio: 16/9;
}

.static-image,
.hover-image,
.hover-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: opacity 0.3s ease;
}

.hover-image,
.hover-video {
    position: absolute;
    top: 0;
    left: 0;
    opacity: 0;
}

.project-link:hover .static-image {
    opacity: 0;
}

.project-link:hover .hover-image,
.project-link:hover .hover-video {
    opacity: 1;
}

.project-text {
    flex: 0 0 34%;
    padding-top: 10px;
}

.project-text p {
    font-family: var(--body-font), var(--fallback-fonts);
    font-size: var(--font-size-body);
    line-height: var(--line-height-body);
    margin-bottom: 15px;
    color: #ddd;
}

.project-text ul {
    list-style-type: none;
    padding: 0;
    margin: 0;
}

.project-text li {
    font-family: var(--body-font), var(--fallback-fonts);
    font-size: var(--font-size-body-small);
    margin-bottom: 5px;
    color: #aaa;
    padding-left: 15px;
    position: relative;
}

.project-text li:before {
    content: "•";
    position: absolute;
    left: 0;
    color: #00bfff;
}

/* ========== MINOR PROJECTS SECTION ========== */
.minor-projects-section {
    margin: 60px 0 80px 0;
    padding: 0 5%;
}

.minor-projects-separator {
    margin: 60px 0 30px 0;
    height: 1px;
    background: linear-gradient(to right, rgba(255, 255, 255, 0), rgba(255, 255, 255, 0.15), rgba(255, 255, 255, 0));
    width: 50%;
}

.minor-projects-container {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-top: 40px;
}

.minor-project {
    flex: 1 1 calc(25% - 15px);
    min-width: 220px;
    max-width: calc(25% - 15px);
}

.minor-project .project-link {
    display: block;
    text-decoration: none;
    color: inherit;
    transition: transform 0.3s ease;
}

.minor-project .project-link:hover {
    transform: translateY(-5px);
}

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

.minor-project .project-image {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    aspect-ratio: 16/9;
}

.minor-project .static-image,
.minor-project .hover-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: opacity 0.3s ease;
}

.minor-project .hover-image,
.minor-project .hover-video {
    position: absolute;
    top: 0;
    left: 0;
    opacity: 0;
}

.minor-project .project-link:hover .static-image {
    opacity: 0;
}

.minor-project .project-link:hover .hover-image,
.minor-project .project-link:hover .hover-video {
    opacity: 1;
}

.minor-project-text {
    padding: 15px 0;
}

.minor-project-text h3 {
    font-size: var(--font-size-h4);
    margin: 0 0 8px 0;
    color: #fff;
}

.minor-project-text p {
    font-family: var(--body-font), var(--fallback-fonts);
    font-size: var(--font-size-body-small);
    margin: 0 0 5px 0;
    color: #bbb;
}

/* Social intro text styling */
.social-intro {
    color: white;
    font-family: var(--body-font), var(--fallback-fonts);
    font-size: var(--font-size-body);
    text-align: center;
    margin: 0 0 15px 0;
    opacity: 0.9;
    font-weight: 300;
}

/* ...existing code... */

/* ========== FIX EXTRA SPACE AT BOTTOM ========== */
.project-container {
    padding-bottom: 0;
}

.minor-projects-section {
    margin-bottom: 0;
    padding-bottom: 0;
}

.social-links {
    margin-bottom: 0;
    padding-bottom: 0;
}

/* ...existing code...

/* ========== SOCIAL LINKS ========== */
.social-links {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    margin: 60px auto 20px;
    padding: 15px 0 0;
    background-color: transparent;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.social-links-container {
    display: flex;
    flex-direction: row;
    justify-content: center;
    gap: 30px;
    width: 100%;
}

.social-link {
    color: white;
    text-decoration: none;
    font-family: var(--body-font), var(--fallback-fonts);
    font-size: var(--font-size-social-link);
    transition: color 0.3s;
    display: flex;
    align-items: center;
    gap: 8px;
}

.social-link:hover {
    color: #00bfff;
}

.social-link i {
    width: 20px;
    text-align: center;
}

/* ========== TRANSITIONS & ANIMATIONS ========== */

.project-image,
.minor-project .project-image {
    border: 2px solid rgba(255, 255, 255, 0.1);
    box-shadow:
        0 5px 15px rgba(0, 0, 0, 0.3),
        0 0 0 1px rgba(255, 255, 255, 0.05);
    transition: all 0.3s ease;
}

.project-image:hover,
.minor-project .project-image:hover {
    border: 2px solid rgba(255, 255, 255, 0.2);
    box-shadow:
        0 8px 25px rgba(0, 0, 0, 0.4),
        0 0 0 1px rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
}

.page-transition {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: black;
    z-index: 9999;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.5s ease;
}

.page-transition.active {
    opacity: 1;
    pointer-events: all;
}

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

.no-animation {
    opacity: 1;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.hidden-project {
    display: none;
}

/* ========== RESPONSIVE STYLES ========== */

/* 1. MacBook Pro screens (1280px - 1728px) */
@media (min-width: 1025px) and (max-width: 1728px) {
    header {
        padding: 60px 3% 40px 3%;
        gap: 30px;
    }

    .header-text {
        max-width: 65%;
    }

    .header-image {
        max-width: 30%;
    }

    .project-content {
        gap: 30px;
    }

    .project-section {
        margin-bottom: 60px;
        padding: 0 3%;
    }

    .minor-projects-section {
        margin: 40px 0 60px 0;
        padding: 0 3%;
    }

    .minor-projects-container {
        gap: 15px;
        margin-top: 30px;
    }

    .minor-project {
        min-width: 180px;
        max-width: calc(25% - 10px);
    }

    .social-links {
        display: flex;
        flex-direction: column;
        align-items: center;
        width: 100%;
        margin: 60px auto 20px;
        padding: 15px 0 0;
        background-color: transparent;
        border-top: 1px solid rgba(255, 255, 255, 0.1);
    }

    .social-links-container {
        display: flex;
        flex-direction: row;
        justify-content: center;
        gap: 30px;
        width: 100%;
    }
}

/* 2. Tablet (up to 1024px) */
@media (max-width: 1024px) {
    header {
        flex-direction: column;
        padding: 40px 3% 30px 3%;
        gap: 20px;
    }

    .header-text {
        max-width: 100%;
        text-align: center;
    }

    .header-image {
        max-width: 70%;
        margin: 0 auto;
    }

    .project-content {
        flex-direction: column;
        gap: 20px;
    }

    .project-section {
        margin-bottom: 40px;
        padding: 0 3%;
    }

    .minor-projects-section {
        margin: 30px 0 40px 0;
        padding: 0 3%;
    }

    .minor-projects-container {
        gap: 10px;
        margin-top: 20px;
    }

    .minor-project {
        min-width: 140px;
        max-width: calc(50% - 10px);
    }

    .social-links {
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        width: 100% !important;
        margin: 60px auto 20px !important;
        padding: 15px 0 0 !important;
        background-color: transparent !important;
        border-top: 1px solid rgba(255, 255, 255, 0.1) !important;
    }

    .social-links-container {
        display: flex !important;
        flex-direction: row !important;
        justify-content: center !important;
        gap: 30px !important;
        width: 100% !important;
    }
}

/* 3. Mobile (up to 767px) */
@media (max-width: 767px) {
    header {
        flex-direction: column;
        padding: 30px 2% 20px 2%;
        gap: 15px;
    }

    .header-text {
        max-width: 100%;
        text-align: center;
    }

    .header-image {
        max-width: 100%;
        margin: 0 auto;
    }

    .project-content {
        flex-direction: column;
        gap: 15px;
    }

    .project-section {
        margin-bottom: 30px;
        padding: 0 2%;
    }

    .minor-projects-section {
        margin: 20px 0 30px 0;
        padding: 0 2%;
    }

    .minor-projects-container {
        gap: 8px;
        margin-top: 10px;
        flex-direction: column;
    }

    .minor-project {
        min-width: 100px;
        max-width: 100%;
    }

    .social-links {
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        width: 100% !important;
        margin: 40px auto 15px !important;
        padding: 15px 0 0 !important;
        background-color: transparent !important;
        border-top: 1px solid rgba(255, 255, 255, 0.1) !important;
    }

    .social-links-container {
        display: flex !important;
        flex-direction: row !important;
        justify-content: center !important;
        gap: 30px !important;
        width: 100% !important;
    }
}

/* 4. Small phones (up to 480px) */
@media (max-width: 480px) {
    header {
        flex-direction: column;
        padding: 20px 1% 10px 1%;
        gap: 10px;
    }

    .header-text {
        max-width: 100%;
        text-align: center;
    }

    .header-image {
        max-width: 100%;
        margin: 0 auto;
    }

    .project-content {
        flex-direction: column;
        gap: 10px;
    }

    .project-section {
        margin-bottom: 15px;
        padding: 0 1%;
    }

    .minor-projects-section {
        margin: 10px 0 15px 0;
        padding: 0 1%;
    }

    .minor-projects-container {
        gap: 5px;
        margin-top: 5px;
        flex-direction: column;
    }

    .minor-project {
        min-width: 80px;
        max-width: 100%;
    }

    .social-links {
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        width: 100% !important;
        margin: 30px auto 10px !important;
        padding: 10px 0 0 !important;
        background-color: transparent !important;
        border-top: 1px solid rgba(255, 255, 255, 0.1) !important;
    }

    .social-links-container {
        display: flex !important;
        flex-direction: row !important;
        justify-content: center !important;
        gap: 30px !important;
        width: 100% !important;
    }
}