
   :root {
    --yellow: #FCB600;
    --white: #fff;
}

/* Roaster Font Face */
@font-face {
    font-family: 'Ginger';
    src: 
        url('../src/fonts/Ginger.otf') format('woff'),
        url('../src/fonts/Ginger.ttf') format('truetype'),
        url('../src/fonts/Ginger.otf') format('opentype');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Roaster';
    src: 
        url('../src/fonts/roaster.regular.otf') format('opentype');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

* {
    box-sizing: border-box;
}

h1,
h2,
h3,
h5 {
    font-family: 'Roaster', sans-serif;
}

p,
a,
span,
li,
select,
input,
textarea,
button {
    font-family: 'Poppins', sans-serif;
}

/* Split Menu for Non-Hero Sections */
#split-menu {
    background: transparent !important;
    background-color: transparent !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    opacity: 1 !important;
    visibility: visible !important;
    transform: translateY(0) !important;
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    padding: 1rem 2rem !important;
}

/* Logo container styling */
#split-menu .logo-container {
    opacity: 1 !important;
    visibility: visible !important;
    transform: translate3d(0, 0, 0) !important;
    display: block !important;
    position: relative !important;
    z-index: 10 !important;
    cursor: pointer !important;
}

/* Logo link styling */
#split-menu .logo-container a {
    display: block !important;
    text-decoration: none !important;
    cursor: pointer !important;
}

#split-menu .logo-container a:hover {
    opacity: 0.8 !important;
    transition: opacity 0.3s ease !important;
}

/* Logo image styling */
#split-menu .logo-container img {
    display: block !important;
    opacity: 1 !important;
    visibility: visible !important;
    width: auto !important;
    height: 2rem !important;
    position: relative !important;
    z-index: 11 !important;
}

/* Blog-specific hero styles */
.blog-hero {
    position: relative;
    overflow: hidden;
    height: 70vh; /* Default desktop height */
}

.blog-content {
    position: relative;
    z-index: 20;
}

/* Blog hero content - default desktop */
.blog-hero .hero-content {
    position: absolute;
    bottom: 2rem;
    left: 2rem;
    text-align: left;
    max-width: 50%;
    word-wrap: break-word;
}

.blog-hero #blog-title {
    font-size: 2.5rem; /* 40px */
    margin-bottom: 0;
    font-weight: 600;
    line-height: 1.2;
}

.blog-hero .back-button {
    top: 7rem;
    left: 3rem;
    padding: 0.5rem;
}

.blog-hero .back-button img {
    width: 1rem;
    height: 1rem;
}

.blog-hero .author-info {
    bottom: 2rem;
    right: 2rem;
    gap: 1rem;
    padding: 0.5rem 1rem;
    max-width: 40%;
}

.blog-hero .author-info img {
    width: 3rem;
    height: 3rem;
}

.blog-hero .author-info #author-name {
    font-size: 1rem;
    margin-bottom: 0.25rem;
}

.blog-hero .author-info #blog-date {
    padding: 0.25rem 0.75rem;
    font-size: 0.875rem;
    display: inline-block;
    width: fit-content;
}

.blog-hero .author-info #blog-read-time {
    font-size: 0.75rem;
    display: block;
}

.blog-article {
    max-width: 56rem;
    padding: 4rem 2rem;
}

.geometric-section {
    position: relative;
    overflow: hidden;
}

.geometric-container {
    position: relative;
    z-index: 20;
}

.geometric-video-container {
    position: relative;
}

.geometric-video-container video {
    filter: brightness(0.8);
}

.projects-section::-webkit-scrollbar {
    display: none;
    /* Chrome, Safari, Opera */
}

/* Projects Section - Smooth Infinite Scroll */
.section-5-container {
    height: 100%;
    margin: 0 auto;
    padding: 3rem 0;
}

.projects-container {
    overflow-x: auto;
    overflow-y: hidden;
    -ms-overflow-style: none;
    /* IE and Edge */
    scrollbar-width: none;
    /* Firefox */
    width: 100%;
    height: 600px;
}

.projects-container::-webkit-scrollbar {
    display: none;
}

.projects-row {
    display: flex;
    gap: 1.5rem;
    /* animation: scroll-projects 40s linear infinite; */ /* DISABLED */
    white-space: nowrap;
    height: 100%;
}

/* .projects-row:hover {
    animation-play-state: paused;
} */ /* DISABLED */

.project-column {
    flex-shrink: 0;
    height: 100%;
    width: 260px;
    /* Fixed width for consistent sizing */
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.project-card {
    flex: 1;
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    /* transition: transform 0.3s ease; */ /* DISABLED */
}

/* .project-card:hover {
    transform: scale(1.02);
} */ /* DISABLED */

/* Default pattern: Tall top, Short bottom */
.project-column .project-card:first-child {
    flex: 0 0 55%;
}

.project-column .project-card:last-child {
    flex: 0 0 40%;
}

/* Alternating pattern: Short top, Tall bottom for even columns */
.project-column:nth-child(even) .project-card:first-child {
    flex: 0 0 40%;
}

.project-column:nth-child(even) .project-card:last-child {
    flex: 0 0 55%;
}

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

/* Bigger cards (55% height) - eliminate whitespaces while showing logos */
.project-column .project-card:first-child .project-image img,
.project-column:nth-child(even) .project-card:last-child .project-image img {
    object-fit: fill;
    width: 100%;
    height: 100%;
}

/* Smaller cards (40% height) - zoom to cover full container, no whitespaces */
.project-column .project-card:last-child .project-image img,
.project-column:nth-child(even) .project-card:first-child .project-image img {
    object-fit: cover;
    object-position: center center;
    width: 100%;
    height: 100%;
    min-width: 100%;
    min-height: 100%;
}

.footer-section {
    position: relative;
    z-index: 1;
    min-height: 100vh;
    background: #000000;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 2.5rem 0;
}

.das-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 80vh;
    width: 100%;
    position: relative;
    z-index: 10;
}

.das-logo img {
    filter: brightness(1.1);
    opacity: 1 !important;
    visibility: visible !important;
    display: block !important;
    height: 100%;
    width: auto;
    max-width: 100%;
    object-fit: contain;
}

.contact-info {
    position: relative;
    z-index: 3;
}

.contact-icon {
    transition: all 0.3s ease;
}

.contact-icon:hover {
    transform: scale(1.1);
    background-color: #FFC107 !important;
}

.social-icon {
    transition: all 0.3s ease;
}

.social-icon:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 215, 0, 0.3);
}

/* Hero Section Base Styles */
.hero-section {
    height: 100vh; /* Default desktop height */
    position: relative;
    overflow: hidden;
}

.hero-title {
    font-size: 10rem;
    font-family: 'Roaster', sans-serif;
    font-weight: 300;
    letter-spacing: 0.02em;
    line-height: 1;
}

/* Mobile Responsive Design (≤767px) */
@media (max-width: 767px) {
    /* Header Responsive for Blog Pages */
    #split-menu {
        display: flex !important;
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        z-index: 100;
        background: transparent !important;
        background-color: transparent !important;
        padding: 0.75rem 1rem;
        height: 60px;
        visibility: visible !important;
        opacity: 1 !important;
        transform: translateY(0) !important;
    }

    .logo-container img {
        height: 32px !important;
    }

    #header-menu-button {
        padding: 0.5rem !important;
        width: 40px !important;
        height: 40px !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        border-radius: 10px !important;
        background-color: #444 !important;
        border: none !important;
        box-shadow: #18274B !important;
        color: white !important;
        transition: all 0.3s ease !important;
    }

    /* Hero Section Mobile */
    .hero-section {
        height: 35dvh !important;
        margin-top: 60px; /* Account for fixed header */
    }
    
    .hero-title {
        font-size: 3rem !important;
        line-height: 1;
        margin: 0;
    }
    
    .section-5-header h1 {
        font-size: 3rem;
    }

    .project-column {
        width: 280px;
        /* Smaller width for mobile */
        gap: 1rem;
    }

    .projects-grid {
        gap: 1rem;
    }
    
    .contact-info .space-y-4 {
        flex-direction: column;
        gap: 1rem;
    }
    
    .footer-bottom .container {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
    
    .hero-bottom-bar {
        padding: 1rem 0;
    }
    
    .hero-bottom-bar span {
        font-size: 1.1rem;
    }
    
    /* Featured Posts Mobile - Vertical Stack */
    .featured-posts {
        height: auto !important;
        flex-direction: column !important;
        gap: 1rem !important;
        padding: 0 1rem !important;
    }
    
    .featured-left {
        width: 100% !important;
        height: auto !important;
    }
    
    .featured-right {
        width: 100% !important;
        height: auto !important;
        padding-left: 0 !important;
        gap: 1rem !important;
    }
    
    .card-1 {
        height: 350px !important;
        min-height: 350px !important;
    }
    
    .card-2, .card-3 {
        height: 300px !important;
        min-height: 300px !important;
    }
    
    .section-title {
        font-size: 2rem !important;
        margin-bottom: 1rem !important;
    }
    
    /* Uniform font sizes for all cards on mobile */
    .card-1 .post-title,
    .card-2 .post-title,
    .card-3 .post-title {
        font-size: 1.125rem !important; /* 18px - same for all cards */
    }
    
    .card-1 .post-date,
    .card-2 .post-date,
    .card-3 .post-date {
        font-size: 0.75rem !important; /* 12px - same for all cards */
        padding: 0.25rem 0.75rem !important;
    }
    
    .card-1 .category-tag,
    .card-2 .category-tag,
    .card-3 .category-tag {
        font-size: 0.75rem !important; /* 12px - same for all cards */
        padding: 0.25rem 0.75rem !important;
    }
    
    /* Search and Date Filter Mobile */
    .search-filter .flex {
        flex-direction: row !important;
        gap: 0.5rem !important;
    }
    
    .search-input {
        flex: 1 !important;
        min-width: 0 !important;
    }
    
    .date-filter {
        flex-shrink: 0 !important;
        width: auto !important;
    }
    
    .date-filter input {
        width: 40px !important;
        padding-left: 2.5rem !important;
        padding-right: 0.5rem !important;
        font-size: 0.875rem !important;
    }
    
    .search-input input {
        padding-left: 2.5rem !important;
        padding-right: 2.5rem !important;
        font-size: 0.875rem !important;
    }
    
    .search-icon,
    .calendar-icon {
        left: 0.75rem !important;
    }
    
    .search-icon svg,
    .calendar-icon svg {
        width: 16px !important;
        height: 16px !important;
    }
    
    /* Date dropdown - fixed width on mobile */
    #date-dropdown {
        left: auto !important;
        right: 0 !important;
        width: 200px !important;
        min-width: 200px !important;
    }
    
    /* Footer Section Mobile */
    .footer-section {
        min-height: 35dvh !important;
        height: 35dvh !important;
        padding: 1rem 0 !important;
    }
    
    .das-logo {
        height: 100% !important;
        padding: 0.5rem !important;
    }
    
    .das-logo img {
        max-width: 90vw !important;
        height: auto !important;
        max-height: 30dvh !important;
    }
    
    /* Blog Hero Section Mobile */
    .blog-hero {
        height: 35dvh !important;
        margin-top: 60px; /* Account for fixed header */
    }
    
    .blog-hero .hero-content {
        position: absolute !important;
        bottom: 1rem !important;
        left: 1rem !important;
        right: auto !important;
        text-align: left !important;
        max-width: 45% !important;
        word-wrap: break-word !important;
    }
    
    .blog-hero #blog-title {
        font-size: 0.875rem !important; /* 14px - smaller to avoid collision */
        margin-bottom: 0 !important;
        line-height: 1.2;
        font-weight: 600 !important;
    }
    
    .blog-hero .back-button {
        top: 4rem !important;
        left: 1rem !important;
        padding: 0.375rem !important;
    }
    
    .blog-hero .back-button img {
        width: 0.75rem !important;
        height: 0.75rem !important;
    }
    
    .blog-hero .author-info {
        position: absolute !important;
        bottom: 1rem !important;
        right: 1rem !important;
        flex-direction: row !important;
        gap: 0.5rem !important;
        padding: 0.5rem 0.75rem !important;
        border: 1px solid white !important;
        max-width: 45% !important;
    }
    
    .blog-hero .author-info img {
        width: 1.75rem !important;
        height: 1.75rem !important;
    }
    
    .blog-hero .author-info #author-name {
        font-size: 0.75rem !important;
        line-height: 1.2;
        margin-bottom: 0.25rem !important;
    }
    
    .blog-hero .author-info #blog-date {
        padding: 0.125rem 0.5rem !important;
        font-size: 0.625rem !important;
        border: 1px solid black !important;
        display: inline-block !important;
        width: fit-content !important;
    }
    
    .blog-hero .author-info #blog-read-time {
        font-size: 0.625rem !important;
        display: block !important;
        margin-top: 0.25rem !important;
    }
    
    .blog-hero .author-info > div {
        display: flex !important;
        flex-direction: column !important;
        gap: 0 !important;
    }
    
    .blog-hero .author-info > div > div {
        display: flex !important;
        flex-direction: column !important;
        gap: 0.25rem !important;
    }
    
    /* Blog Article Mobile */
    .blog-article {
        padding: 2rem 1rem !important;
    }
    
    .blog-article .prose {
        font-size: 0.875rem !important;
    }
    
    .blog-article .prose h2 {
        font-size: 1.5rem !important;
        margin-bottom: 1rem !important;
    }
}

/* Tablet Responsive Design (768px-1023px) */
@media (min-width: 768px) and (max-width: 1023px) {
    /* Header Responsive for Blog Pages */
    #split-menu {
        display: flex !important;
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        z-index: 100;
        background: transparent !important;
        background-color: transparent !important;
        padding: 0.75rem 2rem;
        height: 70px;
        visibility: visible !important;
        opacity: 1 !important;
        transform: translateY(0) !important;
    }

    .logo-container img {
        height: 40px !important;
    }

    #header-menu-button {
        padding: 0.5rem !important;
        width: 44px !important;
        height: 44px !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        border-radius: 10px !important;
        background-color: #444 !important;
        border: none !important;
        box-shadow: #18274B !important;
        color: white !important;
        transition: all 0.3s ease !important;
    }

    /* Hero Section Tablet */
    .hero-section {
        height: 35dvh !important;
        margin-top: 70px; /* Account for fixed header */
    }
    
    .hero-title {
        font-size: 4rem !important;
        line-height: 1;
    }
    
    /* Featured Posts Tablet - Vertical Stack */
    .featured-posts {
        height: auto !important;
        flex-direction: column !important;
        gap: 1.5rem !important;
        padding: 0 2rem !important;
    }
    
    .featured-left {
        width: 100% !important;
        height: auto !important;
    }
    
    .featured-right {
        width: 100% !important;
        height: auto !important;
        padding-left: 0 !important;
        gap: 1.5rem !important;
    }
    
    .card-1 {
        height: 400px !important;
        min-height: 400px !important;
    }
    
    .card-2, .card-3 {
        height: 350px !important;
        min-height: 350px !important;
    }
    
    .section-title {
        font-size: 2.5rem !important;
        margin-bottom: 1.5rem !important;
    }
    
    /* Uniform font sizes for all cards on tablet */
    .card-1 .post-title,
    .card-2 .post-title,
    .card-3 .post-title {
        font-size: 1.25rem !important; /* 20px - same for all cards */
    }
    
    .card-1 .post-date,
    .card-2 .post-date,
    .card-3 .post-date {
        font-size: 0.875rem !important; /* 14px - same for all cards */
    }
    
    .card-1 .category-tag,
    .card-2 .category-tag,
    .card-3 .category-tag {
        font-size: 0.75rem !important; /* 12px - same for all cards */
    }
    
    /* Search and Date Filter Tablet */
    .search-filter .flex {
        gap: 1rem !important;
    }
    
    .date-filter input {
        width: 140px !important;
        font-size: 0.875rem !important;
    }
    
    .search-input input {
        font-size: 1rem !important;
    }
    
    /* Date dropdown - fixed width on tablet */
    #date-dropdown {
        left: auto !important;
        right: 0 !important;
        width: 220px !important;
        min-width: 220px !important;
    }
    
    /* Footer Section Tablet */
    .footer-section {
        min-height: 35dvh !important;
        height: 35dvh !important;
        padding: 1rem 0 !important;
    }
    
    .das-logo {
        height: 100% !important;
        padding: 0.75rem !important;
    }
    
    .das-logo img {
        max-width: 85vw !important;
        height: auto !important;
        max-height: 30dvh !important;
    }
    
    /* Blog Hero Section Tablet */
    .blog-hero {
        height: 35dvh !important;
        margin-top: 70px; /* Account for fixed header */
    }
    
    .blog-hero .hero-content {
        position: absolute !important;
        bottom: 1.5rem !important;
        left: 2rem !important;
        right: auto !important;
        text-align: left !important;
        max-width: 50% !important;
        word-wrap: break-word !important;
    }
    
    .blog-hero #blog-title {
        font-size: 1.5rem !important; /* 24px */
        margin-bottom: 0 !important;
        line-height: 1.2;
        font-weight: 600 !important;
    }
    
    .blog-hero .back-button {
        top: 5rem !important;
        left: 2rem !important;
        padding: 0.5rem !important;
    }
    
    .blog-hero .back-button img {
        width: 0.875rem !important;
        height: 0.875rem !important;
    }
    
    .blog-hero .author-info {
        position: absolute !important;
        bottom: 1.5rem !important;
        right: 2rem !important;
        gap: 0.75rem !important;
        padding: 0.5rem 1rem !important;
        border: 1px solid white !important;
        max-width: 40% !important;
    }
    
    .blog-hero .author-info img {
        width: 2rem !important;
        height: 2rem !important;
    }
    
    .blog-hero .author-info #author-name {
        font-size: 0.875rem !important;
        margin-bottom: 0.25rem !important;
    }
    
    .blog-hero .author-info #blog-date {
        padding: 0.125rem 0.5rem !important;
        font-size: 0.75rem !important;
        border: 1px solid black !important;
        display: inline-block !important;
        width: fit-content !important;
    }
    
    .blog-hero .author-info #blog-read-time {
        font-size: 0.75rem !important;
        display: block !important;
        margin-top: 0.25rem !important;
    }
    
    /* Blog Article Tablet */
    .blog-article {
        padding: 3rem 2rem !important;
    }
    
    .blog-article .prose {
        font-size: 1rem !important;
    }
    
    .blog-article .prose h2 {
        font-size: 2rem !important;
    }
}

/* Desktop Styles (≥1024px) */
@media (min-width: 1024px) {
    /* Header Desktop */
    #split-menu {
        display: flex;
        background: transparent !important;
        background-color: transparent !important;
        height: 80px;
        padding: 1rem 2rem;
    }
    
    /* Ensure hamburger is hidden on desktop */
    .hamburger-icon {
        display: none !important;
    }
    
    /* Ensure text is shown on desktop */
    .hidden.lg\\:inline {
        display: inline !important;
    }
    
    /* Reset button styling for desktop */
    #header-menu-button {
        padding: 0.375rem 1rem !important;
        width: auto !important;
        height: auto !important;
        background-color: black !important;
        border: 2px solid white !important;
        border-radius: 9999px !important;
    }

    /* Hero Section Desktop - Original height */
    .hero-section {
        height: 100vh !important;
    }
    
    .hero-title {
        font-size: 10rem !important;
        line-height: 1;
    }
    
    /* Featured Posts Desktop - Original horizontal layout */
    .featured-posts {
        height: 70vh !important;
        flex-direction: row !important;
    }
    
    .featured-left {
        width: 65% !important;
    }
    
    .featured-right {
        width: 35% !important;
        padding-left: 1rem !important;
    }
    
    .card-1 {
        height: 85% !important;
    }
    
    .card-2, .card-3 {
        height: 48% !important;
    }
    
    /* Ensure animations work on desktop - DISABLED */
    /* .featured-posts * {
        animation: auto !important;
    } */
    
    /* Footer Section Desktop - Original height */
    .footer-section {
        min-height: 100vh !important;
        height: auto !important;
        padding: 2.5rem 0 !important;
    }
    
    .das-logo {
        height: 80vh !important;
        padding: 0 !important;
    }
    
    .das-logo img {
        max-width: none !important;
        height: 100% !important;
        max-height: none !important;
    }
    
    /* Blog Hero Section Desktop - Original height */
    .blog-hero {
        height: 70vh !important;
    }
    
    .blog-hero .hero-content {
        position: absolute !important;
        bottom: 2rem !important;
        left: 2rem !important;
        right: auto !important;
        text-align: left !important;
        max-width: 50% !important;
        word-wrap: break-word !important;
    }
    
    .blog-hero #blog-title {
        font-size: 2.5rem !important; /* 40px */
        margin-bottom: 0 !important;
        font-weight: 600 !important;
        line-height: 1.2;
    }
    
    .blog-hero .back-button {
        top: 7rem !important;
        left: 3rem !important;
    }
    
    .blog-hero .author-info {
        position: absolute !important;
        bottom: 2rem !important;
        right: 2rem !important;
        gap: 1rem !important;
        padding: 0.5rem 1rem !important;
        max-width: 40% !important;
    }
    
    .blog-hero .author-info img {
        width: 3rem !important;
        height: 3rem !important;
    }
    
    .blog-hero .author-info #author-name {
        font-size: 1rem !important;
        margin-bottom: 0.25rem !important;
    }
    
    .blog-hero .author-info #blog-date {
        padding: 0.25rem 0.75rem !important;
        font-size: 0.875rem !important;
        display: inline-block !important;
        width: fit-content !important;
    }
    
    .blog-hero .author-info #blog-read-time {
        font-size: 0.75rem !important;
        display: block !important;
        margin-top: 0.25rem !important;
    }
    
    /* Blog Article Desktop */
    .blog-article {
        max-width: 56rem !important;
        padding: 4rem 2rem !important;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-section {
        height: 30dvh !important;
    }
    
    .project-column {
        width: 240px;
        /* Even smaller for very small screens */
    }
    
    .das-logo {
        height: 300px;
    }
    
    .hero-bottom-bar span {
        font-size: 1rem;
    }
}

/* @keyframes scroll-projects {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
} */ /* DISABLED */

/* Blog-specific animations */
.blog-hero {
    opacity: 1;
    transform: translateY(0);
}

.blog-content {
    opacity: 1;
    transform: translateY(0);
}