/* =========================================
   0. VARIABLES & RESET
   ========================================= */
:root {
--primary-color: antiquewhite;
--highlight-color: white;
/* Remove the line: --color-accent: #90ee90; */
--font-main: 'Poppins', sans-serif;
--line-transition: transform 0.3s ease;
}
html {
    box-sizing: border-box;
    font-size: 16px; /* Base for REM calculations */
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
*, *::before, *::after {
    box-sizing: inherit;
}

body {
    background: black;
    height: 100vh;
    overflow: hidden;
    font-family: var(--font-main);
    font-weight: 100;
    color: var(--primary-color);
    margin: 0;
    padding: 0;
    width: 100vw;
    min-height: 100vh;
}

/* Default state: Overlay is hidden */
body::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0); /* Start transparent */
    pointer-events: none; /* Allows clicks/taps to pass through */
    z-index: 40; /* Needs to be below the navbar (z-index 50) */
    transition: background-color 0.4s ease; /* Smooth transition */
}

/* State when the menu is open (applied via JS) */
body.nav-open::before {
    background-color: rgba(0, 0, 0, 0.7); /* Darken the background */
    pointer-events: auto; /* IMPORTANT: Blocks clicks/taps on background content */
}

/* =========================================
   1. MAIN LAYOUT & VIDEO
   ========================================= */
main {
    position: relative;
    width: 100%;
    display: flex;
    align-items: flex-start;
    height: 100vh;
    overflow: hidden;
    z-index: 1;
}

main:has(.welcome-section) { 
    align-items: center; 
    justify-content: center; 
    padding-bottom: 8rem;
}

main video {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    object-fit: cover;
    z-index: -1; 
    filter: brightness(75%) contrast(110%) blur(2px) saturate(70%);
    will-change: transform, opacity;
}

/* =========================================
   2. SHARED ANIMATION STYLES (The Lines)
   ========================================= */
/* Consolidates the shared logic for all expanding lines */
.logo::after,
nav .nav-links a::after,
.welcome-text h1::after,
.card-title::after,
.title::after {
    content: "";
    position: absolute;
    left: 0;
    width: 100%;
    background-color: var(--primary-color);
    transform-origin: center; 
    transform: scaleX(var(--line-scale));
    will-change: transform;
}

/* =========================================
   3. NAVIGATION
   ========================================= */
nav {
    padding: 0.5rem 2rem; 
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
    z-index: 50;
    background: rgba(0, 0, 0, 0.75);
    border-bottom: 1px solid rgba(0, 0, 0, 0.1); 
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    /* Glass Effect */
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    transition: backdrop-filter 0.8s ease-out, -webkit-backdrop-filter 0.8s ease-out, background 0.8s ease-out;
}

nav:hover {
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px); 
    background: rgba(0, 0, 0, 0.85);
}

/* Logo */
.logo-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    line-height: 1.5;
    margin-top: -0.7rem;
}

.logo-link {
    text-decoration: none;
    color: inherit;
}

.logo {
    font-size: 3rem;
    font-weight: 200;
    position: relative;
    display: inline-block;
    --line-scale: 0.00;
}

.logo::after {
    height: 2px;
    bottom: 0.5rem; /* Adjusted up slightly as requested */
}

.sublogo {
    font-size: 1.5rem;
    font-weight: 200;
    line-height: 1;
}

/* Logo Hover Effect */
.logo, .sublogo { transition: color 0.5s ease, text-shadow 0.3s ease; }

.logo-link:hover .logo,
.logo-link:hover .sublogo {
    color: var(--highlight-color);
}

/* Nav Links */
nav .nav-links {
    list-style: none;
    display: flex;
    gap: 4rem;
}

nav .nav-links a {
    color: var(--primary-color);
    text-decoration: none;
    font-size: 1.5rem;
    font-weight: 200; 
    position: relative;
    display: inline-block;
    --line-scale: 0.00; 
    transition: color 0.3s ease, text-shadow 0.3s ease, transform 0.3s ease;
}

nav .nav-links a::after {
    height: 1px;
    bottom: 1px; /* Moved up by 1px */
    transition: none;
}

/* Nav Link Hover "Light Up" Effect */
nav .nav-links a:hover {
    color: var(--highlight-color);
}

/* =========================================
   4. WELCOME SECTION (Home)
   ========================================= */
.welcome-section {
    z-index: 5;
    display: flex; 
    flex-direction: column;
    align-items: center;
    padding: 2rem 2rem 3rem 2rem;
    text-align: center;
    max-width: 700px;
    margin: 0 auto;
    background: rgba(0, 0, 0, 0.25);
    border: 1px solid rgba(0, 0, 0, 0.1); 
    backdrop-filter: blur(6px); 
    -webkit-backdrop-filter: blur(6px);
    transition: backdrop-filter 0.5s ease-out, -webkit-backdrop-filter 0.5s ease-out;
}

.welcome-section:hover {
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.photo-stack {
    width: 30vw; 
    height: 18vw;
    position: relative;
    margin: 0 auto 2rem auto; 
    overflow: hidden; 
}

.profile-photo {
    width: 100%; height: 100%;
    object-fit: cover;
    position: absolute;
    top: 0; left: 0;
}

.hover-photo { opacity: 0; }

.welcome-text h1 {
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 200;
    margin-bottom: 0.5rem;
    --line-scale: 0.00;
    position: relative;
    display: inline-block;
}

.welcome-text h1::after {
    height: 1px;
    bottom: 1px; /* Moved up by 1px */
}

.welcome-text p {
    font-size: clamp(1.2rem, 2.5vw, 2.2rem);
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.85);
    font-weight: 200;
    margin-top: -0.2rem;
}

/* Social Links */
.social-links {
    opacity: 0;
    display: flex; 
    gap: 2rem;
    position: absolute;
    left: 50%;
    bottom: 15px; 
    transform: translateX(-50%);
}

.social-links a {
    color: var(--primary-color);
    font-size: 1.5rem;
    transition: color 0.3s ease, transform 0.3s ease, text-shadow 0.3s ease;
}

.social-links a:hover {
    transform: scale(1.2);
    color: var(--highlight-color);
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.5), 0 0 20px rgba(255, 255, 255, 0.2);
}

.hamburger-menu {
    display: none; 
    background: none;
    border: none;
    cursor: pointer;
    font-size: 1.5rem;
    color: var(--primary-color);
    z-index: 100;
    margin-left: auto; 
}
/* Optional: Add hover effect to the button container */
.hamburger-menu:hover .hamburger-bar {
    background-color: var(--highlight-color); 
}


.nav-menu {
    display: block; 
    transition: max-height 0.4s ease-out, opacity 0.4s ease; 
    overflow: hidden;
}


/* =========================================
   5. PORTFOLIO GRID & CARDS
   ========================================= */
.project-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr)); 
    gap: 3rem;
    padding: 4.4rem 2rem 5.8rem 2rem;
    max-width: 1400px; 
    margin: 0 auto;
}

.project-card {
    text-decoration: none;
    color: inherit;
    display: block;
    transition: transform 0.3s ease-in-out, box-shadow 0.3s ease-in-out;
    position: relative; 
    z-index: 10;
}

.project-card:hover { transform: translateY(-5px); }

.card-title {
    font-weight: 300;
    font-size: 1.3rem;
    position: relative;
    display: block; 
    width: fit-content; 
    margin: auto; 
    --line-scale: 0.00;
}

.card-title::after {
    height: 1px;
    bottom: 1px; /* Moved up by 1px */
    transition: none;
}

/* Card Media */
.card-image-wrapper {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
    height: 0;
    overflow: hidden;
    border-radius: 3px;
    cursor: pointer;
}

.card-image-wrapper img {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    object-fit: cover; 
    transition: transform 0.6s ease;
}

.card-image-wrapper iframe, 
.card-image-wrapper video {
    position: absolute;
    top: 0;
    width: 100%; height: 100%;
    background-color: #000;
}

.project-card:hover .card-image-wrapper img { transform: scale(1.05); }

.play-overlay {
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    font-size: 3rem;
    color: rgba(255, 255, 255, 0.85);
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none; 
    text-shadow: 0 0 10px rgba(0, 0, 0, 1);
}

.project-card:hover .play-overlay { opacity: 1; }

/* =========================================
   6. GLASS CONTAINERS (Portfolio & Contact)
   ========================================= */
.glass-content-container {
    padding-top: 1.5rem;
    position: relative;
    width: 90%; 
    max-width: 1390px;
    max-height: 90%;
    margin: 3rem auto 2rem auto; 
    height: calc(90vh - 6rem); 
    overflow-y: auto; 
    background: rgba(0, 0, 0, 0.55);
    border: 1px solid rgba(0, 0, 0, 0.1); 
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    z-index: 5;
    transition: transform 0.3s ease, backdrop-filter 2s ease-out, -webkit-backdrop-filter 2s ease-out, background-color 4s ease;
    opacity: 0;
    scrollbar-width: none; 
    -ms-overflow-style: none;
}

/* Contact Variation */
.glass-content-container.contact {
    max-width: 400px;
    margin: 2.8rem auto 1rem auto; 
    height: calc(90vh - 6.8rem); 
}

.glass-content-container:hover,
.glass-content-container.contact:hover {
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
}

.glass-content-container::-webkit-scrollbar {
    width: 0; height: 0;
    background: transparent;
}


.title {
    text-align: center;
    position: absolute;
    top: 2%; left: 50%;
    transform: translateX(-50%); 
    z-index: 10;
    font-size: 2rem;
    font-weight: 200;
    display: inline-block;
    --line-scale: 0.00;
}

.title::after {
    height: 1px;
    bottom: 1px; 
}

.glass-content-container .social-links { 
    top: 3.6rem; 
    z-index: 1000;
    height: fit-content;
    width: fit-content;
    padding: 0.5rem;
    pointer-events: none; 
}

.glass-content-container .social-links a {
    pointer-events: auto; 
    transition: none; 
}

.glass-content-container .social-links a i {
    display: inline-block;
    transition: transform 0.3s ease, color 0.3s ease, text-shadow 0.3s ease;
}

.glass-content-container .social-links a:hover {
    transform: none; 
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.5), 0 0 20px rgba(255, 255, 255, 0.2);
    color: var(--highlight-color);
}

.glass-content-container .social-links a:hover i {
    transform: scale(1.2) translateY(-8%); 
}

.scroll-indicator {
    position: fixed;
    left: 50%;
    transform: translateX(-50%);
    color: rgba(255, 255, 255, 0.7);
    font-size: 1.6rem;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.scroll-indicator.down-arrow { 
    bottom: 0.8rem;
    z-index: 100; 
}
.scroll-indicator.up-arrow {
     top: 7.8rem; 
     z-index: 100;
    }
    /* Ensure the indicators are hidden when the main content is fading out */
.glass-content-container.news.fade-out ~ .scroll-indicator {
    opacity: 0 !important; /* Force hide the indicators */
}
/* =========================================
   6. ABOUT SECTION
   ========================================= */
.glass-content-container.about {
    max-width: 600px;
    margin: 3rem auto 1rem auto; 
    height: calc(90vh - 6.8rem); 
}

.glass-content-container:hover,
.glass-content-container.about:hover {
    background-color: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
}

.glass-content-container::-webkit-scrollbar {
    width: 0; height: 0;
    background: transparent;
}

.about-text{
    padding: 6.5rem 3rem 3rem 3rem;
    font-size: 1.2rem;
    line-height: 1.6;
    color: var(--primary-color);
    font-weight: 200;
    text-align: left;
    opacity: 0;
    visibility: visible;
    transform: translateY(-20px);
}

.about-text p {
    margin-bottom: 2.5rem; 
}



/* =========================================
   7. CONTACT FORM
   ========================================= */
.contact-form-wrapper {
    /* Ensures the form wrapper fits within the glass container, adding horizontal space */
    padding: 0 3rem; 
    /* Constrains the form's overall width relative to the page */
    max-width: 800px;
    margin: 4rem auto 0 auto; /* Center it below the title */
}

.form-group {
    margin-bottom: 1.5rem;
    display: flex;
    flex-direction: column;
}

.contact-form-wrapper label {
    font-size: 1rem;
    margin-bottom: 0.4rem;
    font-weight: 200;
}

.contact-form-wrapper input,
.contact-form-wrapper textarea {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: var(--primary-color);
    padding: 0.5rem 1rem;
    font-size: 1rem;
    font-family: inherit; /* Fixed: Inherits Poppins now */
    outline: none;
    border-radius: 3px;
    transition: border-color 0.3s ease, background 0.3s ease;
    resize: vertical;
}

.submit-button {
    font-family: inherit;
    font-size: 1rem;
    font-weight: 400;
    color: black;
    background-color: var(--primary-color);
    border: none;
    padding: 0.2rem;
    cursor: pointer;
    border-radius: 3px;
    width: 100%;
    margin-top: 0rem;
    transition: background-color 0.3s ease, transform 0.1s ease;
}

.submit-button:hover {
    background-color: var(--highlight-color);
    transform: translateY(1px);
}

.form-status {
    text-align: center;
    margin-top: 1rem;
    font-size: 0.8rem;
    font-weight: 300;
}

/* =========================================
   9. NEWS 
   ========================================= */
.glass-content-container.news {
    position: relative; 
    max-width: 1000px;
    background-color: rgba(0, 0, 0, 0.8); 
    backdrop-filter: blur(12px);
}
.date{
    font-family: inherit;
    font-weight: 300;
}

.news-article-list {
    padding: 6rem 3rem 5rem 3rem; 
    display: flex;
    flex-direction: column;
    gap: 4rem; /* Spacing between articles */
    max-width: 800px; /* Constrain article width for readability */
    margin: 0 auto; 
}

.news-post {
    color: var(--primary-color);
    padding-bottom: 2rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.article-title {
    font-size: 2rem;
    font-weight: 300;
    margin-bottom: 2rem;
}
.article-body {
  max-height: 80px; /* MUST match COLLAPSED_HEIGHT */
  overflow: hidden;
  transition: none; /* important: GSAP handles animation, not CSS */
  margin-top: 1rem;
}

.article-body p {
    margin-bottom: 1.1rem;
    line-height: 1.6;
}

.article-body.expanded {
    padding-bottom: -10rem;    
}

.read-more {
    background: none;
    border: none;
    color: antiquewhite;
    font-size: 1rem;
    cursor: pointer;
    margin-top: 0;
    font-weight: 500;
    text-decoration: underline;
    transition: color 0.3s ease;
}

.read-more:hover {
    color: white;
}

.article-body .picture-box{
    margin: 2rem 0;
    text-align: left;
    max-width: 100%;
    display: block;
}
.article-body .picture-box img{
    max-width: 100%;
    height: auto;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}
.article-body .picture-box figcaption{
    margin-top: 0.5rem;
    font-style: italic;
    font-size: 0.9rem;
    color: #ccc;
}

/* ===================================================
   MODAL / LIGHTBOX STYLES (For projects.html)
   =================================================== */

.project-modal {
    /* Overlay and visibility */
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9); /* Dark, transparent overlay */
    z-index: 1000; /* Ensure it's on top of everything */
    opacity: 0;
    visibility: hidden; /* Controlled by JavaScript/GSAP */
    transition: opacity 0.3s, visibility 0.3s;
    overflow-y: auto; /* Allows the modal content to scroll if it's too long */
    padding: 20px 0; /* Vertical padding for breathing room on mobile */
}
.project-grid.two-column-limit {
    display: grid;
    grid-template-columns: repeat(2, 1fr); 
    gap: 30px; 
}

.modal-dialog {
    /* Modal container properties */
    background: rgba(40, 40, 40, 0.85); /* Slightly darker glass base */
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 2px;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.4);
    
    /* Centering and sizing */
    width: 90%;
    max-width: 850px; /* Maximum size for the modal */
    margin: 60px auto; /* Centers horizontally and provides top/bottom margin */
    position: relative;
    color: #f0f0f0;
    overflow: hidden; /* Contains the header image */
}

/* Header with background image */
.modal-header {
    height: 250px;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: flex-end;
    padding: 20px;
}

.modal-header h2 {
    font-size: 2.2em;
    font-weight: 700;
    color: white;
    text-shadow: 0 0 10px rgba(0, 0, 0, 0.8);
    margin: 0;
}

/* Body content */
.modal-body {
    padding: 25px 35px;
    line-height: 1.6;
    font-weight: 300;
}

.modal-body p {
    margin-bottom: 25px;
}

/* Video Embed Container (16:9 aspect ratio) */
.modal-video-embed {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 aspect ratio (9/16 * 100) */
    height: 0;
    margin-bottom: 30px;
    border-radius: 4px;
    overflow: hidden;
}

.modal-video-embed iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

/* Close button style */
.modal-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: #fc6a50;
    color: white;
    border: none;
    border-radius: 50%;
    width: 35px;
    height: 35px;
    font-size: 1.5em;
    cursor: pointer;
    line-height: 1;
    z-index: 1001;
    transition: background-color 0.2s;
}

.modal-close:hover {
    background: #e93b19;
}

/* Steam Link Button */
.steam-link {
    display: inline-block;
    padding: 10px 20px;
    background: #171a21; /* Steam/Dark color */
    color: white;
    text-decoration: none;
    border-radius: 2px;
    font-weight: 500;
    transition: background-color 0.2s;
}

.steam-link:hover {
    background: #2a303c;
}

/* Global body class to disable background scrolling when modal is open */
body.modal-open {
    overflow: hidden;
}
.card-image-wrapper img {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    object-fit: cover;
    transform: scale(1) !important;
}

.project-card:hover .card-image-wrapper img { 
    transition: transform 0.6s ease;
    transform: scale(1.05) !important;
}

.project-card:not(:hover) .card-image-wrapper img {
    transition: transform 0.6s ease;
}

/* --- Responsive Adjustments for Mobile --- */
@media (max-width: 768px) {
    .modal-dialog {
        width: 95%;
        margin: 20px auto;
        min-height: calc(100vh - 40px); /* Fill most of the screen vertically */
    }
    
    .modal-header {
        height: 150px;
        padding: 10px;
    }

    .modal-header h2 {
        font-size: 1.8em;
    }

    .modal-body {
        padding: 20px;
    }
        .project-grid.two-column-limit {
        display: grid;
        grid-template-columns: repeat(1, 1fr); 
        gap: 30px; 
    }
}



/* ===================================================
   MULTI-VIDEO LAYOUT (NEW: Vertical Stacking)
   =================================================== */

/* Container for two stacked videos */
.modal-multi-video-container {
    /* REMOVED: display: flex; */
    /* REMOVED: gap: 15px; */
    margin-bottom: 30px;
}

/* Ensure each individual embed takes up the full width */
.modal-multi-video-container .modal-video-embed {
    width: 100%; 
    /* The padding-bottom: 56.25% in the base .modal-video-embed 
       will correctly handle the 16:9 aspect ratio for each video. */
    margin-bottom: 15px; /* Add spacing between the two videos */
}

/* H3 title above the videos */
.modal-multi-video-container + h3 {
    text-align: center;
    margin-bottom: 15px;
    font-size: 1.2em;
    color: #ffd700; 
}


/* --- Responsive Adjustment --- */
/* The layout is already vertical, so no media query is strictly needed 
   to change the direction, but keep the width rule for clarity. */
@media (max-width: 600px) {
    /* On all screens, the videos will now appear stacked. */
    .modal-multi-video-container .modal-video-embed {
        width: 100%;
    }
}




/* =========================================
       22. 600px
       ========================================= */

@media (max-width: 768px) {

    /* 1. GLOBAL LAYOUT & CONTAINERS */
    html {
        font-size: 14px; /* Base for all mobile */
    }
    
    main { 
        /* Adjust height for the 5rem (80px) nav bar */
        height: calc(100vh - 5rem); 
    }

    .glass-content-container {
        width: 95%; 
        padding: 1rem;
        max-width: 700px; /* Kept for consistency */
    }

    .social-links a { 
        font-size: 1.6rem;
    }
    /* Target all standard form fields: text inputs, emails, textareas, etc. */
    input[type="text"], 
    input[type="email"], 
    textarea {
        /* This prevents the zoom trigger */
        font-size: 16px !important; 
    }

    /* =========================================
       2. NAVIGATION & HAMBURGER
       ========================================= */
    nav { 
        padding: 0.5rem 2rem 0.5rem 1rem;
        height: 5rem; 
        justify-content: space-between;
        align-items: center;
    }

    /* A. Hamburger Button (The clickable area) */
    .hamburger-menu {
        display: flex; /* CRITICAL: SHOW THE BUTTON */
        align-items: center;
        justify-content: center;
        width: 40px; 
        height: 40px; 
        z-index: 1000;
        cursor: pointer;
        background: transparent;
        border: none;
        padding: 0;
    }

    /* B. Hamburger Bars Container (The visual icon) */
    .hamburger-bars {
        width: 35px; 
        height: 30px; 
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        position: relative;
    }

    /* C. Individual Bars */
    .hamburger-bar {
        width: 100%;
        height: 2px; 
        background-color: var(--primary-color);
        border-radius: 1px;
        will-change: transform, opacity; 
    }

    /* D. GSAP Transform Origins (Crucial for X animation) */
    .hamburger-bar.top {
        transform-origin: 0% 50%;
    }

    .hamburger-bar.bottom {
        transform-origin: 0% 50%;
    }

    /* E. Hamburger Hover Effect */
    .hamburger-menu:hover .hamburger-bar {
        background-color: white;
    }

    /* F. Mobile Menu (Closed State) */
    .nav-menu {
        position: absolute;
        top: 5rem;
        right: 0;
        width: 100%;
        background: rgba(0, 0, 0, 0.9);
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.4);
        z-index: 55;
        backdrop-filter: blur(8px);
        max-height: 0; 
        opacity: 0;
        overflow: hidden;
        pointer-events: none;
        display: block; 
    }

    /* G. Mobile Menu (Open State) */
    .nav-menu.open {
        max-height: 500px;
        opacity: 1;
        pointer-events: auto;
    }

    /* H. Vertical Link Styling */
    .nav-links {
        flex-direction: column;
        align-items: center;
        padding: 0;
    }
    .nav-links li {
        width: 100%;
        text-align: center;
        padding: 0;
        margin: 0.1rem 0;
    }
    .nav-links li:first-child{
        margin-top: 1rem;
    }
    .nav-links li:last-child {
        margin-bottom: 3rem;
    }
    .nav-links li:first-child {
        margin-top: 3rem;
    }
    .nav-links a { 
        display: block;
        padding: 0rem 1rem !important; 
        font-size: 1.2rem;
        transition: none;
    }
    

    /* I. Logo Styling */
    nav .logo { 
        font-size: 2.4rem;
        line-height: 3.4rem;
    }
    .logo::after {
        height: 1px;
        bottom: 0.3rem; 
    }
    .sublogo { 
        font-size: 1.2rem;
    }

    .title{
        font-size: 2rem;
    }

    /* =========================================
       3. HOMEPAGE SECTION
       ========================================= */
    .welcome-section { 
        padding: 2rem 1rem; 
        max-width: 95%; 
        margin-top: 7rem;
    }
    
    .photo-stack { 
        width: 80vw; 
        padding-bottom: 60vw; 
    }

    .welcome-text h1 { 
        font-size: 2.5rem; 
    }
    .welcome-text p { 
        font-size: 1.55rem;
        padding-bottom: 1.5rem;
        line-height: 1.4;
        margin-bottom: 1rem;
    }
    
    .welcome-section .social-links { 
        gap: 2.5rem; 
        padding-bottom: 0.2rem;
        margin-top: 0.5rem;
    }

    /* Social links inside glass container */
    
    .glass-content-container .social-links { 
        opacity: 1 !important; 
        position: absolute; 
        top: 3.6rem; 
        z-index: 1000;
        pointer-events: auto;
    }
    .welcome-section .social-links{
        opacity: 0;
    }

    /* =========================================
       4. PORTFOLIO
       ========================================= */
    .project-grid { 
        grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); 
        gap: 2rem;
        padding: 4rem 2rem 2rem 2rem;
        margin-top: 1.8rem;
    }
    
    .scroll-indicator.down-arrow { 
        bottom: 2.4rem;
        z-index: 100; 
    }
    .scroll-indicator.up-arrow {
        top: 6.5rem; 
        z-index: 100;
    }
    #portfolio-container{
        margin-top: 2.3rem;
        margin-bottom: 1rem;
        width: 90vw;
    }
    #portfolio-container .social-links a{
        margin-top: 0.2rem;
    }
     #portfolio-container .social-links{
        gap: 2.2rem;
    }
    #portfolio-container{
        margin-top: 3rem;
    }

    .card-title{
        font-size: 1.4rem;
        margin-top: 0.4rem;
    }

    /* =========================================
       5. ABOUT SECTION
       ========================================= */
    .glass-content-container.about {
        background-color: rgba(0, 0, 0, 0.8);
        padding: 2rem 2rem 1rem 2rem;
        margin-bottom: 10rem;
        max-width: 85vw;
    }
    .about-text{
        padding: 6.2rem 0rem 0rem 0rem;
        font-size: 0.8rem;
        line-height: 1.;
        text-align: left;
        color: var(--primary-color);
        margin-top: 0.5rem;
    }
    .about-text p{
        padding-bottom: 1rem;
        margin: 0;
        font-size: 1.1rem;
    }
    .about .social-links a{
        margin-top: 0rem;
    }

    /* =========================================
       NEWS SECTION
       ========================================= */
       .glass-content-container.news{
        margin-top: 2.5rem;
       }
    
       .news-article-list {
        max-width: none; 
        width: 100%;
        padding: 0.5rem;
    }
    .news .social-links a{
        margin-top: 0.0rem;
    }
    .news-article-list > .news-post:first-child {
        margin-top: 3.5rem;
        padding-top: 1rem; 
    }
    .news-article-list > .news-post {
        margin-top: -3.5rem;
    }
    .article-title {
        font-size: 1.5rem;
        font-weight: 300;
        margin-bottom: 1rem;
        margin-top: 2rem;
    }
    .date{
        font-size: 1rem;
    }
    .article-body {
        max-height: 80px; 
        overflow: hidden;
        transition: none;
    }
    .article-body p {
        margin-bottom: 1.1rem;
        line-height: 1.4;
        font-size: 0.9rem;
        font-weight: 300;
    }

    .article-body .picture-box figcaption{
        margin-top: 0.2rem;
        font-style: italic;
        font-size: 0.6rem;
        color: #ccc;
        margin-bottom: -1.5rem;
    }
    .read-more{
        font-size: 0.8rem;
    }

    main.news-page .scroll-indicator.down-arrow { 
        bottom: 2.8rem;
        z-index: 100;
    }

    main.news-page .scroll-indicator.up-arrow { 
        top: 6.1rem;
        z-index: 100;
    }

      /* =========================================
       CONTACT
       ========================================= */
       .glass-content-container.contact{
        margin: 5rem auto 1rem auto;
        height: 75vh;
       }

    .form-group {
        margin-bottom: 1rem;
    }
    .contact-form-wrapper label:first-child {
    margin-top: -0.5rem; 
}

    .contact-form-wrapper label {
        font-size: 0.8rem;
        margin-bottom: 0.2rem;
        margin-top: 0.2rem;
    }

    .submit-button {
        font-size: 0.8rem;
        width: 100%;
        margin-top: 0.5rem;
    }

    .form-status {
        text-align: center;
        margin-top: 0.5rem;
        font-size: 0.8rem;
    }
   .contact-form-wrapper {
    padding: 1rem 0; 
    width: 100%;
    max-width: none; 
    }

    .contact-form-wrapper input,
    .contact-form-wrapper textarea {
        padding: 0.5rem 0.5rem;
        font-size: 0.8rem;
        width: 100%; 
        }
        #contactForm{
            margin-top: 2rem;
        }
        /* =========================================
23.1 media 500px 
   ========================================= */
   @media (max-width: 500px) {
         
    .social-links a { 
        font-size: 1.4rem;
    }

    /* =========================================
       2. NAVIGATION & HAMBURGER
       ========================================= */
            .title{
                font-size: 1.5rem;
            }
        nav { 
            padding: 0.5rem 1rem 0.5rem 1rem;
            height: 6rem; 
        }
        nav .logo { 
            font-size: 2.6rem;
            line-height: 3.2rem;
        }
        .sublogo { 
            font-size: 1.3rem;
        }

        /* =========================================
        3. HOMEPAGE SECTION
        ========================================= */
    
        .photo-stack { 
            width: 75vw; 
        }

        .welcome-section .social-links { 
            gap: 2rem; 
        }
        .welcome-section .social-links a{ 
            margin-top: -2.5rem; 
        }

        .welcome-section{
            margin-top: 1rem;
        }

        /* =========================================
        4. PORTFOLIO
        ========================================= */
        
        .scroll-indicator.down-arrow { 
            bottom: 1.8rem;
            z-index: 100; 
        }
        .scroll-indicator.up-arrow {
            top: 6.7rem; 
            z-index: 100;
        }
        
        #portfolio-container .social-links a{
            margin-top: -1rem;
        }
        #portfolio-container .social-links{
            gap: 1.6rem;
        }
        #portfolio-container{
            margin-top: 2.4rem;
            height: 65vh;
        }

        .card-title{
            font-size: 1.1rem;
            margin-top: 0.6rem;
        }

        /* =========================================
        5. ABOUT SECTION
        ========================================= */
    
        .about-text{
            margin-top: -0.75rem;
        }
        .about-text p{
            font-size: 1rem;
            line-height: 1.3rem;
        }
        .about .social-links{
            gap: 1.2rem;
        }
        .about .title{
            margin-top: 1rem;
        }
        .about .social-links a{
            margin-top: 0rem;
        }

        .glass-content-container.about{
            height: 65vh;
        }

        /* =========================================
        NEWS SECTION
        ========================================= */
        .glass-content-container.news{
            margin-top: 2.5rem;
            height: 65vh;
        }
        
        .news-article-list {
            max-width: none; 
            width: 100%;
            padding: 0.5rem;
        }
        .news .social-links a{
            margin-top: -1rem;
        }
        .news-article-list > .news-post:first-child {
            margin-top: 3.5rem;
            padding-top: 1rem; 
        }
        .news-article-list > .news-post {
            margin-top: -3.5rem;
        }
        .article-title {
            font-size: 1.5rem;
            font-weight: 300;
            margin-bottom: 1rem;
            margin-top: 2rem;
        }
        .date{
            font-size: 1rem;
        }
        .article-body {
            max-height: 80px; 
            overflow: hidden;
            transition: none;
        }
        .article-body p {
            margin-bottom: 1.1rem;
            line-height: 1.4;
            font-size: 0.9rem;
            font-weight: 300;
        }
        .read-more{
            font-size: 0.8rem;
        }

        main.news-page .scroll-indicator.down-arrow { 
            bottom: 2.2rem;
            z-index: 100;
        }

        main.news-page .scroll-indicator.up-arrow { 
            top: 6.9rem;
            z-index: 100;
        }

        /* =========================================
        CONTACT
        ========================================= */
        .glass-content-container.contact{
            margin: 2rem auto 2rem auto;
            height: 68vh;
            width: 40vh;
        }
        .contact .social-links {
            gap: 1rem;
        }
        .contact .social-links a{
            margin-top: -1rem;
        }

        .contact-form-wrapper label:first-child {
        margin-top: -0.5em; 
    }

        .submit-button {
            margin-top: 0.5rem;
            padding: 0.6rem;
        }
        .contact-form-wrapper{
            margin-top: 2rem;
            margin-bottom: 0;
        }
     .contact-form-wrapper #message{
    /* Reduced Padding: Change 1rem to a smaller value (e.g., 0.5rem) */
    padding: 0.5rem; 
    
    /* Set an explicit Height: Required for textarea to visually shrink on mobile */
    height: 100px; /* Use a fixed size like 100px, or a responsive 12vh */
}

    .contact-form-wrapper input,
    .contact-form-wrapper textarea {
        padding: 0.1rem 0.1rem;
        font-size: 0.8rem;
        width: 100%; 
        }
        


    }


        /* =========================================
23.2 media 400px 
   ========================================= */

    @media (max-width: 400px) {
         
    .social-links a { 
        font-size: 1.4rem;
    }

    /* =========================================
       2. NAVIGATION & HAMBURGER
       ========================================= */
        .title{
            font-size: 1.5rem;
        }
       nav { 
        padding: 0.5rem 1rem 0.5rem 1rem;
        height: 5rem; 
    }
    nav .logo { 
        font-size: 2rem;
        line-height: 2.9rem;
    }
    .sublogo { 
        font-size: 1rem;
    }

    /* =========================================
       3. HOMEPAGE SECTION
       ========================================= */
   
    .photo-stack { 
        width: 75vw; 
    }

    .welcome-section .social-links { 
        gap: 2rem; 
    }
      .welcome-section .social-links a{ 
        margin-top: -2.5rem; 
    }

    /* =========================================
       4. PORTFOLIO
       ========================================= */
    .project-grid { 
        margin-top: 0rem;
    }
    
    .scroll-indicator.down-arrow { 
        bottom: 1.8rem;
        z-index: 100; 
    }
    .scroll-indicator.up-arrow {
        top: 5.9rem; 
        z-index: 100;
    }
    
    #portfolio-container .social-links a{
        margin-top: -0.5rem;
    }
     #portfolio-container .social-links{
        gap: 1.6rem;
    }
    #portfolio-container{
        margin-top: 2.4rem;
        height: 74vh;
    }

    .card-title{
        font-size: 1.1rem;
        margin-top: 0.6rem;
    }
    

    /* =========================================
       5. ABOUT SECTION
       ========================================= */
   
    .about-text{
        margin-top: -0.75rem;
    }
    .about-text p{
        font-size: 1rem;
        line-height: 1.3rem;
    }
    .about .social-links{
        gap: 1.2rem;
    }
    .about .title{
        margin-top: 1rem;
    }
    .about .social-links a{
        margin-top: 0.5rem;
    }

    .glass-content-container.about{
        height: 65vh;
    }

    /* =========================================
       NEWS SECTION
       ========================================= */
       .glass-content-container.news{
        margin-top: 2.5rem;
        height: 68vh;
       }
    
       .news-article-list {
        max-width: none; 
        width: 100%;
        padding: 0.5rem;
    }
    .news .social-links a{
        margin-top: -0.5rem;
    }
    .news-article-list > .news-post:first-child {
        margin-top: 3.5rem;
        padding-top: 1rem; 
    }
    .news-article-list > .news-post {
        margin-top: -3.5rem;
    }
    .article-title {
        font-size: 1.5rem;
        font-weight: 300;
        margin-bottom: 1rem;
        margin-top: 2rem;
    }
    .date{
        font-size: 1rem;
    }
    .article-body {
        max-height: 80px; 
        overflow: hidden;
        transition: none;
    }
    .article-body p {
        margin-bottom: 1.1rem;
        line-height: 1.4;
        font-size: 0.9rem;
        font-weight: 300;
    }

    .article-body .picture-box figcaption{
        margin-top: 0.2rem;
        font-style: italic;
        font-size: 0.6rem;
        color: #ccc;
        margin-bottom: -1.5rem;
    }
    .read-more{
        font-size: 0.8rem;
    }

    main.news-page .scroll-indicator.down-arrow { 
        bottom: 2.2rem;
        z-index: 100;
    }

    main.news-page .scroll-indicator.up-arrow { 
        top: 6.1rem;
        z-index: 100;
    }

      /* =========================================
       CONTACT
       ========================================= */
       .glass-content-container.contact{
        margin: 2rem auto 2rem auto;
        height: 75vh;
        width: 40vh;
       }

    .contact-form-wrapper label:first-child {
    margin-top: -0.6em; 
}
    .submit-button {
        margin-top: 0.5rem;
        padding: 0.6rem;
    }
    .contact .social-links{
        gap: 1.1rem;
    }
    .contact .social-links a{
        margin-top: -0.5rem;
    }

    }
}

/* =========================================
       25. TABLETS 768+
       ========================================= */
       @media (min-width: 768px) and (max-width: 1023px) {
        
       /* =========================================
   3. NAVIGATION
   ========================================= */
    nav {
        padding: 0.5rem 2rem 0.5rem 0.5rem; 
        height: 5rem;
    }
    

    /* Logo */
    .logo-container {
        line-height: 1.5;
        margin-top: -0.7rem;
    }
    nav .logo { 
            font-size: 1.8rem;
            line-height: 3.4rem;
        }

    .sublogo {
        font-size: 0.9rem;
    }

    nav .nav-links {
        gap: 2rem;
    }

    nav .nav-links a {
        font-size: 1.2rem;
    }
    
        .logo::after {
            height: 1px;
            bottom: 0.3rem; 
        }
        
        .title{
            font-size: 2rem;
        }
        .social-links{
            opacity: 1;
        }


    /* =========================================
    4. WELCOME SECTION (Home)
    ========================================= */
    .welcome-section {
        padding: 2rem 2rem 3rem 2rem;
        max-width: 80vw;
    }


    .photo-stack {
        width: 70vw; 
        height: 50vw;
    }

    .welcome-text h1 {
        font-size: clamp(2rem, 5vw, 3.5rem);
        font-weight: 200;
        margin-bottom: 0.5rem;
    }

    .welcome-text p {
        font-size: clamp(1.5rem, 2.5vw, 2.2rem);
        margin-bottom: 0.5rem;
    }

    .social-links a {
        font-size: 1.5rem;
    }





    /* =========================================
    5. PORTFOLIO GRID & CARDS
    ========================================= */

    .card-title {
        margin-top: 0.5rem;
        font-size: 1.4rem;
    }
    .project-grid{
        margin-top: 2rem;
    }

    .card-title::after {
        height: 1px;
        bottom: 1px; /* Moved up by 1px */
        transition: none;
    }

    .glass-content-container .social-links a {
        margin-top: 0.5rem;
    }

    .scroll-indicator.down-arrow { 
        bottom: 3.8rem;
        z-index: 100; 
    }
    .scroll-indicator.up-arrow {
        top: 6.5rem; 
        z-index: 100;
        }
        
    /* =========================================
    6. ABOUT SECTION
    ========================================= */
    .glass-content-container.about {
    max-width: 80vw;
    margin: 3rem auto 1rem auto; 
    height: calc(90vh - 6.8rem); 

    display: inline-flex;
    align-items: center; 
    flex-direction: column;
}

    .about-text{
        padding: 6.5rem 1rem 3rem 1rem;
        font-size: 1.4rem;
        margin-top: 2rem;
    }

    .about-text p {
        margin-bottom: 2.5rem; 
    }


    /* =========================================
CONTACT FORM 
    ========================================= */
   
    .glass-content-container.contact {
        width: 70vw;
        max-width: none !important;
    }

    .form-group {
        margin-bottom: 2rem;
    }
    .contact-form-wrapper{
        margin-top: 8rem;
    }

    .contact-form-wrapper label {
        font-size: 1.2rem;
    }

    .contact-form-wrapper input,
    .contact-form-wrapper textarea {
        font-size: 1.2rem;
    }

    .submit-button {
        font-size: 1.2rem;
        padding: 1rem;
        margin-top: 1.2rem;
    }

    .submit-button:hover {
        background-color: var(--highlight-color);
        transform: translateY(1px);
    }

    .form-status {
        text-align: center;
        margin-top: 1rem;
        font-size: 0.9rem;
    }

    /* =========================================
    9. NEWS 
    ========================================= */
    .glass-content-container.news {
        position: relative; 
        max-width: 1000px;
        background-color: rgba(0, 0, 0, 0.8); 
        backdrop-filter: blur(12px);
    }
    .date{
        font-family: inherit;
        font-weight: 300;
    }

    .news-article-list {
        padding: 6rem 3rem 5rem 3rem; 
        display: flex;
        flex-direction: column;
        gap: 4rem; /* Spacing between articles */
        max-width: 800px; /* Constrain article width for readability */
        margin: 0 auto; 
    }

    .news-post {
        color: var(--primary-color);
        padding-bottom: 2rem;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }

    .article-title {
        font-size: 2rem;
        font-weight: 300;
        margin-bottom: 2rem;
    }
    .article-body {
    max-height: 80px; /* MUST match COLLAPSED_HEIGHT */
    overflow: hidden;
    transition: none; /* important: GSAP handles animation, not CSS */
    margin-top: 1rem;
    }

    .article-body p {
        margin-bottom: 1.1rem;
        line-height: 1.6;
    }

    .article-body.expanded {
        padding-bottom: -10rem;    
    }

    .read-more {
        background: none;
        border: none;
        color: antiquewhite;
        font-size: 1rem;
        cursor: pointer;
        margin-top: 0;
        font-weight: 500;
        text-decoration: underline;
        transition: color 0.3s ease;
    }

    .read-more:hover {
        color: white;
    }

    .article-body .picture-box{
        margin: 2rem 0;
        text-align: left;
        max-width: 100%;
        display: block;
    }
    .article-body .picture-box img{
        max-width: 100%;
        height: auto;
        box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    }
    .article-body .picture-box figcaption{
        margin-top: 0.5rem;
        font-style: italic;
        font-size: 0.9rem;
        color: #ccc;
    }
}

/*25.1 bigger tablets*/
@media (min-width: 1024px) and (max-width: 1200px) {


    nav {
        padding: 1rem 2rem 1rem 1rem; 
        height: 6rem;
    }

    /* Logo */
    .logo-container {
        line-height: 1.5;
        margin-top: -0.7rem;
    }
    nav .logo { 
            font-size: 2.8rem;
            line-height: 3.4rem;
        }

    .sublogo {
        font-size: 1.4rem;
    }

    nav .nav-links {
        gap: 2rem;
    }

        .social-links{
            opacity: 1;
        }


    /* =========================================
    4. WELCOME SECTION (Home)
    ========================================= */
    .welcome-section {
        padding: 2rem 2rem 3rem 2rem;
        max-width: 80vw;
    }

    .photo-stack {
        width: 70vw; 
        height: 50vw;
    }

    .welcome-text h1 {
        font-size: clamp(2rem, 5vw, 3.5rem);
        font-weight: 200;
        margin-bottom: 0.5rem;
    }

    .welcome-text p {
        font-size: clamp(1.9rem, 2.5vw, 2.2rem);
        margin-bottom: 2rem;
    }


    .social-links a {
        font-size: 2.3rem;
    }



    /* =========================================
    5. PORTFOLIO GRID & CARDS
    ========================================= */

    .card-title {
        margin-top: 0.5rem;
        font-size: 1.4rem;
    }
    .project-grid{
        margin-top: 2rem;
    }

    .card-title::after {
        height: 1px;
        bottom: 1px; /* Moved up by 1px */
        transition: none;
    }

    .glass-content-container .social-links a {
        margin-top: 0.5rem;
    }

    .scroll-indicator.down-arrow { 
        bottom: 3.8rem;
        z-index: 100; 
    }
    .scroll-indicator.up-arrow {
        top: 7.1rem; 
        z-index: 100;
        }
        
    /* =========================================
    6. ABOUT SECTION
    ========================================= */
    .glass-content-container.about {
    max-width: 80vw;
    margin: 3rem auto 1rem auto; 
    height: calc(90vh - 6.8rem); 

    display: inline-flex;
    align-items: center; 
    flex-direction: column;
}

    .about-text{
        padding: 6.5rem 1rem 3rem 1rem;
        font-size: 1.8rem;
        margin-top: 6rem;
    }

    .about-text p {
        margin-bottom: 2.5rem; 
    }


    /* =========================================
CONTACT FORM 
    ========================================= */
   
    .glass-content-container.contact {
        width: 70vw;
        max-width: none !important;
    }

    .form-group {
        margin-bottom: 2rem;
    }
    .contact-form-wrapper{
        margin-top: 8rem;
    }

    .contact-form-wrapper label {
        font-size: 1.2rem;
    }

    .contact-form-wrapper input,
    .contact-form-wrapper textarea {
        font-size: 1.2rem;
    }

    .submit-button {
        font-size: 1.2rem;
        padding: 1rem;
        margin-top: 1.2rem;
    }

    .submit-button:hover {
        background-color: var(--highlight-color);
        transform: translateY(1px);
    }

    .form-status {
        text-align: center;
        margin-top: 1rem;
        font-size: 0.9rem;
    }

    /* =========================================
    9. NEWS 
    ========================================= */
    .glass-content-container.news {
        position: relative; 
        max-width: 1000px;
        background-color: rgba(0, 0, 0, 0.8); 
        backdrop-filter: blur(12px);
    }
    .date{
        font-family: inherit;
        font-weight: 300;
    }

    .news-article-list {
        padding: 6rem 3rem 5rem 3rem; 
        display: flex;
        flex-direction: column;
        gap: 4rem; /* Spacing between articles */
        max-width: 800px; /* Constrain article width for readability */
        margin-top: 5rem;
    }

    .news-post {
        color: var(--primary-color);
        padding-bottom: 2rem;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }

    .article-title {
        font-size: 2rem;
        font-weight: 300;
        margin-bottom: 2rem;
    }
    .article-body {
    max-height: 80px; /* MUST match COLLAPSED_HEIGHT */
    overflow: hidden;
    transition: none; /* important: GSAP handles animation, not CSS */
    margin-top: 1rem;
    }

    .article-body p {
        margin-bottom: 1.1rem;
        line-height: 1.6;
    }

    .article-body.expanded {
        padding-bottom: -10rem;    
    }

    .read-more {
        background: none;
        border: none;
        color: antiquewhite;
        font-size: 1rem;
        cursor: pointer;
        margin-top: 0;
        font-weight: 500;
        text-decoration: underline;
        transition: color 0.3s ease;
    }

    .read-more:hover {
        color: white;
    }

    .article-body .picture-box{
        margin: 2rem 0;
        text-align: left;
        max-width: 100%;
        display: block;
    }
    .article-body .picture-box img{
        max-width: 100%;
        height: auto;
        box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    }
    .article-body .picture-box figcaption{
        margin-top: 0.5rem;
        font-style: italic;
        font-size: 0.9rem;
        color: #ccc;
    }
    
}


/* =========================================
30. media 2560px and up
   ========================================= */
@media (min-width: 2560px) {
    /*NAV  AND GLOBAL*/
    nav {
    padding: 0.2rem 3rem; 
    }
    .logo-container {
        margin-top: -0.5rem;
    }
    .logo {
        font-size: 4.6rem;
        line-height: 6.5rem;
    }
    .sublogo {
        font-size: 2.3rem;
        line-height: 1.4;
    }
    nav .nav-links a {
        font-size: 2.8rem;
    }

    .title {
    font-size: 3rem;
    }
     .social-links a { 
        font-size: 2.2rem;
    }
    .social-links {
        margin-top: 2rem;
        gap: 2rem;
    }
    
    /*WELCOME SECTION */
    .welcome-section {
        margin-top: -50px;
        max-width: 1800px; 
        padding: 3.5rem 3.5rem 0rem 3.5rem;
    }
    .main-content-wrapper,
    .glass-content-container.news {
        max-width: 1600px; 
        margin-left: auto;
        margin-right: auto;
    }
    .photo-stack {
        width: 32vw; 
        height: 18vw; 
    }
    body {
        font-size: 1.15rem; 
    }
    .main-content-wrapper {
        padding-top: 2rem;
        padding-bottom: 2rem;
    }
    .welcome-text h1 {
    font-size: clamp(4rem, 5vw, 5rem);
    line-height: 6.5rem;
    }
    .welcome-text p {
    font-size: clamp(3.1rem, 2.5vw, 3rem);
    margin-top: -0.5rem;
    margin-bottom: -2rem;
    padding: 0;
    }

    .welcome-section .social-links{
        position: relative;
        width: fit-content;
        margin-left: auto;
        margin-right: auto;
        left: 0;
        transform: none;
        padding: 1rem;
    }

    /*PORTFOLIO SECTION */
    .project-grid {
        max-width: 100%;
        gap: 3.5rem;
        padding: 8rem 2.5rem 5.8rem 2.5rem;
        grid-template-columns: 1fr 1fr 1fr;
        }
    .card-title {
        font-size: 1.8rem;
        }
    #portfolio-container { 
        margin-top: 4.8rem;
        margin-left: auto;
        margin-right: auto;
        padding-top: 2rem;
        padding-bottom: 4rem;
        max-height: 72vh;
        max-width: 80vw;
    }
    .scroll-indicator.down-arrow { 
       font-size: 2.5rem;
        bottom: 2rem;
        z-index: 100; 
        }
     .scroll-indicator.up-arrow {
            font-size: 2.5rem;
            top: 11rem; 
            z-index: 100;
        }
        #portfolio-container .social-links{
            gap: 3.5rem;
        }
        

        /*NEWS SECTION */

    .glass-content-container.news {
        height: 78vh;
        
        max-width: 1400px; 
    }

    .news-article-list {
        max-width: 100%; 
        padding: 8rem 2.5rem 5rem 2.5rem; 
    }

    .news-post {
        max-width: 90%; 
        margin-left: auto;
        margin-right: auto;
        padding-bottom: 3rem; 
    }

    .article-title {
        font-size: 2.5rem;
        margin-top: 3.5rem;
    }

    .article-body p {
        font-size: 1.5rem;
    }


    .article-body.expanded {
        padding-bottom: 2rem; 
    }

    .read-more {
        font-size: 1.5rem;
    }

    .article-body .picture-box figcaption{
        font-size: 1.5rem;
    }

    /*ABOUT SECTION */
    .glass-content-container.about {
    max-width: 35vw;
    margin: 3rem auto 1rem auto; 
    height: calc(90vh - 6.8rem); 
    max-height: 75vh;
    }


    .about-text{
        padding: 10rem 3rem 3rem 3rem;
        font-size: 1.6rem;
        line-height: 1.8;
    }

    .about-text p {
        margin-bottom: 2.5rem; 
    }

    /*CONTACT*/

    .glass-content-container.contact{
        max-width: 50vh;
        max-height: 79vh;
    }

    .glass-content-container.contact .social-links a i {
        font-size: 2.2rem; 
    }
    
    .contact-form-wrapper {
    padding: 2rem; 
    margin: 7rem auto 0 auto; 
    }

    .form-group {
        margin-bottom: 1.5rem;
        display: flex;
        flex-direction: column;
    }

    .contact-form-wrapper label {
        font-size: 1.2rem;
        margin-bottom: 0.4rem;
        font-weight: 200;
    }

    .contact-form-wrapper input,
    .contact-form-wrapper textarea {
        font-size: 1.5rem;
    }
}

    /* =========================================
12. media 3840px and up
   ========================================= */
@media (min-width: 3840px) {
    /*NAV  AND GLOBAL*/
    nav {
    padding: 1.5rem 3rem; 
    }
    .logo-container {
        margin-top: -0.2rem;
    }
    .logo {
        font-size: 6.6rem;
        line-height: 8.5rem;
    }
    .sublogo {
        font-size: 3.3rem;
        line-height: 1.4;
    }
    nav .nav-links{
        gap: 8rem;
    }
    nav .nav-links a {
        font-size: 3.8rem;
    }
    .title {
    font-size: 5rem;
    }
     .social-links a { 
        font-size: 4.2rem;
    }
    .social-links {
        margin-top: 2rem;
        gap: 6rem;
    }
    
    /*WELCOME SECTION */
    .photo-stack {
        width: 34vw; 
        height: 20vw; 
    }
    .welcome-text h1 {
    font-size: clamp(7rem, 5vw, 5rem);
    line-height: 10.5rem;
    }
    .welcome-text p {
    font-size: clamp(4.3rem, 2.5vw, 3rem);
    }


    /*PORTFOLIO SECTION */
    .project-grid {
        max-width: 100%;
        gap: 5rem;
        padding: 20rem 2.5rem 5.8rem 2.5rem;
        grid-template-columns: 1fr 1fr 1fr;
        }
    .card-title {
        font-size: 2.8rem;
        }
    #portfolio-container { 
        margin-top: 8.8rem;
        margin-left: auto;
        margin-right: auto;
        padding-top: 2rem;
        padding-bottom: 4rem;
        max-height: 72vh;
        max-width: 80vw;
    }
    .scroll-indicator.down-arrow { 
       font-size: 4.5rem;
        bottom: 4.5rem;
        z-index: 100; 
        }
     .scroll-indicator.up-arrow {
            font-size: 4.5rem;
            top: 18rem; 
            z-index: 100;
        }
        #portfolio-container .title{
            margin-top: 3rem;
        }
        #portfolio-container .social-links{
            gap: 5rem;
            margin-top:10rem;
        }
        

    /*NEWS SECTION */

    .glass-content-container.news {
        margin-top: 7rem;
        height: 78vh;
        max-width: 2200px; 
    }
    .glass-content-container.news .social-links {
    margin-top: 7rem;
    }

    .news-article-list {
        max-width: 100%; 
        padding: 8rem 2.5rem 5rem 2.5rem; 
    }

    .news-post {
        max-width: 90%; 
        margin-left: auto;
        margin-right: auto;
        padding-bottom: 3rem; 
    }
    .news-post:first-child{
        margin-top: 8.5rem;
    }

    .article-title {
        font-size: 3.5rem;
        margin-top: 2.5rem;
    }

    .article-body p {
        font-size: 2.5rem;
        margin-bottom: 5rem;
    }

    .article-body.expanded {
        padding-bottom: 2rem; 
    }

    .read-more {
        font-size: 2.5rem;
    }

    .article-body .picture-box figcaption{
        font-size: 2rem;
    }

    /*ABOUT SECTION */
    .glass-content-container.about{
        margin-top: 9rem;
    }

    .glass-content-container.about .social-links {
        margin-top: 7rem;
    }

    .about-text{
        padding: 20rem 3rem 3rem 3rem;
        font-size: 2.8rem;
        line-height: 1.8;
    }

    .about-text p {
        margin-bottom: 2.5rem; 
    }

    .news .social-links a li{
            gap: 2em;
            margin-top:6rem;
        }

    /*CONTACT*/
    .glass-content-container.contact .social-links {
    gap: 5rem; 

    margin-top: 6rem; 
    }

    .glass-content-container.contact{
        max-width: 50vh;
        max-height: 79vh;
    }

    .glass-content-container.contact .social-links a i {
        font-size: 3.2rem; 
    }
    
    .contact-form-wrapper {
    padding: 2rem; 
    margin: 11rem auto 0 auto; 
    }

    .form-group {
        margin-top: 6rem;
        margin-bottom: 1.5rem;
        display: flex;
        flex-direction: column;
    }

    .contact-form-wrapper label {
        font-size: 2.2rem;
        margin-bottom: 0.4rem;
        font-weight: 200;
    }

    .contact-form-wrapper input,
    .contact-form-wrapper textarea {
        font-size: 2.2rem;
    }
    .submit-button {
    font-size: 2rem;
    padding: 0.8rem;
    margin-top: 2.5rem;
    }
    

    
}