@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;600;700&display=swap');

:root {
    --bg-color: #f9fafb; /* Slightly off-white for depth */
    --text-color: #1f0f0f;
    --primary-color: #2a0f0f; /* Rich dark slate/black */
    --accent-color: #D31217; /* DBK Red */
    --red: #ff0000; 
    --secondary-bg: #ffffff;
    --nav-bg: rgba(255, 255, 255, 0.85); /* More translucent for glass effect */
    --card-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --hover-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    --transition-speed: 0.3s;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    color: var(--text-color);
    background-color: var(--bg-color);
    line-height: 1.6;
    overflow-x: hidden;
    background-image: radial-gradient(#e5e7eb 1px, transparent 1px);
    background-size: 20px 20px; /* Subtle dot pattern */
}

/* Header */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: var(--nav-bg);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(0,0,0,0.05);
    transition: all var(--transition-speed);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative; /* For z-index context */
}

/* Mobile Toggle Button */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 21px;
    background: transparent;
    border: none;
    cursor: pointer;
    z-index: 1001; /* Above mobile menu */
    padding: 0;
}

.mobile-menu-toggle span {
    width: 100%;
    height: 3px;
    background-color: var(--primary-color);
    border-radius: 3px;
    transition: all 0.3s ease-in-out;
}

/* Hamburger Animation */
.mobile-menu-toggle.active span:nth-child(1) {
    transform: translateY(9px) rotate(45deg);
    background-color: var(--accent-color);
}

.mobile-menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.active span:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
    background-color: var(--accent-color);
}

.logo img {
    height: 50px;
    width: auto;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.1));
}

nav ul {
    display: flex;
    list-style: none;
    gap: 2rem;
}

nav a {
    text-decoration: none;
    color: var(--text-color);
    font-weight: 600;
    position: relative;
    padding-bottom: 0.25rem;
    transition: color var(--transition-speed);
}

nav a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 0;
    background-color: var(--accent-color);
    transition: width var(--transition-speed) ease-in-out;
}

nav a:hover {
    color: var(--accent-color);
}

nav a:hover::after {
    width: 100%;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding-top: 80px;
    position: relative;
    overflow: hidden;
    background: linear-gradient(180deg, rgba(255,255,255,0) 0%, rgba(211, 18, 23, 0.05) 100%);
}

.hero-logo {
    margin-bottom: 2rem;
    margin-top: 5rem;
    max-height: 200px;

    width: auto;
    opacity: 0;
    animation: fadeInUp 1s forwards 0.5s;
}

@media (max-width: 768px) {
    .hero-logo {
        max-height: 120px;
        margin-top: unset;
    }
}

.hero-logo:hover {
    transform: scale(1.05);
}   

.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -20%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(211, 18, 23, 0.1) 0%, rgba(255,255,255,0) 70%);
    border-radius: 50%;
    z-index: -1;
}

.hero h1 {
    font-size: 4.5rem;
    font-weight: 800;
    margin-bottom: 1rem;
    opacity: 0;
    animation: fadeInUp 1s forwards 0.5s;
    color: var(--primary-color);
    letter-spacing: -0.02em;
    text-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.hero p {
    font-size: 1.5rem;
    color: #4b5563;
    margin-bottom: 3rem;
    max-width: 800px;
    opacity: 0;
    animation: fadeInUp 1s forwards 0.8s;
}

/* Nectar Scrolling Text (Carousel) */
.nectar-scrolling-text {
    width: 100vw;
    overflow: hidden;
    white-space: nowrap;
    /* background: var(--secondary-bg); Black background */
    color: var(--text-color);
    padding: 2rem 0;
    margin: 4rem 0;
    position: relative;
    transform: rotate(-2deg) scale(1.05); /* Dynamic angle */
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    border-top: 4px solid var(--accent-color);
    border-bottom: 4px solid var(--accent-color);
}

@media (max-width: 768px) {
    .nectar-scrolling-text {
        transform: rotate(-1deg) scale(1.02);
        padding: 0rem 0;
        margin: 1rem 0;
    }
}

.scrolling-wrapper {
    display: inline-block;
    padding-left: 20%;
    animation: scroll 120s linear infinite;
}

.scrolling-content {
    display: inline-block;
    font-size: 5rem;
    font-weight: 800;
    /* text-transform: uppercase; */
    letter-spacing: 2px;
}

.carousel-item {
    margin: 0 3rem;
    display: inline-flex;
    align-items: baseline;
}

.carousel-item::after {
    content: '';
    display: inline-block;
    width: 12px;
    height: 12px;
    background: var(--accent-color);
    border-radius: 50%;
    margin-left: 3rem;
    box-shadow: 0 0 10px var(--accent-color);
}

.outline-text {
    color: #fff;
    -webkit-text-stroke: 3px #000;
    paint-order: stroke fill;
    font-weight: 800;
}

.highlight-letter {
    color: var(--red);
    font-size: 1.8em; /* Significantly larger */
    font-weight: 800;
    margin-right: 2px;
    vertical-align: middle;
}


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

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Sections General */
section {
    padding: 8rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
}

.section-title {
    font-size: 3rem;
    margin-bottom: 4rem;
    text-align: center;
    position: relative;
    color: var(--primary-color);
    font-weight: 800;
}

.section-title::after {
    content: '';
    display: block;
    width: 80px;
    height: 6px;
    background: var(--accent-color);
    margin: 1.5rem auto 0;
    border-radius: 3px;
    box-shadow: 0 2px 10px rgba(211, 18, 23, 0.3);
}

/* Who We Are */
.who-we-are {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
}

.highlight-box {
    background: var(--secondary-bg);
    padding: 3rem;
    border-radius: 20px;
    border-left: 8px solid var(--accent-color);
    box-shadow: var(--card-shadow);
    transition: transform var(--transition-speed);
}

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


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

/* Projects List */
.projects-container {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    margin-bottom: 4rem;
}

.projects-row {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.projects-row-top .project-card-link {
    flex: 0 1 450px; /* Wider cards for top row to fill space nicely */
}

.projects-row-bottom .project-card-link {
    flex: 0 1 300px; /* Standard width for 3-up */
}

.project-card-link {
    background: var(--secondary-bg);
    padding: 3rem 2rem;
    border-radius: 20px;
    box-shadow: var(--card-shadow);
    text-decoration: none;
    color: var(--primary-color);
    font-weight: 700;
    text-align: center;
    transition: all 0.4s ease;
    border: 1px solid rgba(0,0,0,0.05);
    position: relative;
    overflow: hidden;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
}

.logo-wrapper {
    position: relative;
    width: 100%;
    height: 80px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.card-logo, .card-logo-hover {
    max-height: 80px;
    width: auto;
    object-fit: contain;
    transition: all 0.4s ease;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.card-logo {
    opacity: 1;
}

.card-logo-hover {
    opacity: 0;
}

.project-card-link:hover .card-logo {
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.9);
}

.project-card-link:hover .card-logo-hover {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1.1);
}

.project-card-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--accent-color);
    z-index: -1;
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s ease;
}

.project-card-link:hover {
    transform: translateY(-10px);
    box-shadow: var(--hover-shadow);
    color: #fff;
    border-color: transparent;
}

.project-card-link:hover::before {
    transform: scaleX(1);
}

/* Project Detail Sections */
.project-detail {
    margin-bottom: 8rem;
    padding: 3rem;
    background: var(--secondary-bg);
    border-radius: 30px;
    box-shadow: var(--card-shadow);
    border: 1px solid rgba(0,0,0,0.03);
    position: relative;
    overflow: hidden;
}

.project-detail::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 200px;
    height: 200px;
    background: linear-gradient(135deg, transparent 50%, rgba(211, 18, 23, 0.03) 50%);
    z-index: 0;
}

.project-header {
    display: flex ;
    align-items: center;
    justify-content: space-between;
    /* gap: 3rem; */
    margin-bottom: 3rem;
    flex-wrap: wrap;
    position: relative;
    z-index: 1;
    /* padding-bottom: 2rem; */
    border-bottom: 2px solid rgba(0,0,0,0.05);
}

.project-logos {
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
    align-items: center;
    margin-bottom: 2rem;
}

.project-logo-main {
    max-height: 120px;
    width: auto;
    filter: drop-shadow(0 4px 6px rgba(0,0,0,0.05));
    transition: transform 0.3s;
}

.project-logo-main:hover {
    transform: scale(1.05);
}

.project-logo-sub {
    max-height: 45px;
    width: auto;
    /* opacity: 0.7; */
    /* filter: grayscale(100%); */
    /* transition: all 0.3s; */
    opacity: 1;
    filter: grayscale(0%);
}

.project-logo-sub:hover {
    opacity: 1;
    filter: grayscale(0%);
}

.project-content {
    display: grid;
    grid-template-columns: 1fr;
    gap: 4rem;
    position: relative;
    z-index: 1;
}

@media (min-width: 900px) {
    .project-content {
        grid-template-columns: 1.2fr 0.8fr;
    }
}

.project-text h3 {
    font-size: 1.8rem;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
}

.project-text p {
    margin-bottom: 1.5rem;
    font-size: 1.05rem;
    color: #4b5563;
}

.project-image img {
    width: 100%;
    border-radius: 20px;
    box-shadow: 0 20px 40px -5px rgba(0, 0, 0, 0.15);
    transition: transform 0.5s ease;
}

.project-image img:hover {
    transform: scale(1.02);
}

.project-links {
    margin-top: 2rem;
}

.project-links a {
    display: inline-flex;
    align-items: center;
    margin-right: 1.5rem;
    margin-top: 1rem;
    color: var(--accent-color);
    text-decoration: none;
    font-weight: 700;
    font-size: 1.1rem;
    transition: transform 0.2s;
}

.project-links a::after {
    content: '→';
    margin-left: 8px;
    transition: margin-left 0.2s;
}

.project-links a:hover {
    transform: translateX(5px);
}

.project-links a:hover::after {
    margin-left: 12px;
}

/* Location */
.location-section {
    background: var(--primary-color);
    color: #fff;
    padding: 6rem 2rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.location-section::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(255,255,255,0.05) 0%, rgba(255,255,255,0) 70%);
    z-index: 0;
}

.location-content {
    position: relative;
    z-index: 1;
    background: rgba(255,255,255,0.1);
    backdrop-filter: blur(10px);
    display: inline-block;
    padding: 3rem 5rem;
    border-radius: 30px;
    border: 1px solid rgba(255,255,255,0.1);
    box-shadow: 0 20px 40px rgba(0,0,0,0.3);
}

.location-content h3 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.location-content p {
    font-size: 1.25rem;
    opacity: 0.9;
    margin: 0.5rem 0;
}

/* Animations Trigger Class */
.fade-in-section {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s cubic-bezier(0.25, 1, 0.5, 1), transform 0.8s cubic-bezier(0.25, 1, 0.5, 1);
    will-change: opacity, transform;
}

.fade-in-section.is-visible {
    opacity: 1;
    transform: none;
}

@media (max-width: 768px) {
    .hero h1 { font-size: 3rem; }
    
    .nav-container { 
        padding: 1rem 1.5rem; 
        /* Removed flex-direction column to keep logo and toggle side-by-side */
    }

    .mobile-menu-toggle {
        display: flex; /* Show on mobile */
    }

    .main-nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 100%;
        height: 100vh;
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(15px);
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        transition: right 0.4s ease-in-out;
        z-index: 1000;
        box-shadow: -5px 0 15px rgba(0,0,0,0.1);
    }

    .main-nav.active {
        right: 0;
    }

    .main-nav ul {
        flex-direction: column;
        gap: 3rem;
        text-align: center;
    }

    .main-nav a {
        font-size: 1.5rem;
        font-weight: 700;
        color: var(--primary-color);
    }

    .scrolling-content { font-size: 3rem; } /* Reduced from 5rem for mobile safety */
    .project-detail { padding: 2rem 1.5rem; }

    .project-header {
        flex-direction: column;
        justify-content: center;
        text-align: center;
        gap: 1.5rem;
    }
    
    .project-header h3 {
        text-align: center;
    }

    .project-logos {
        justify-content: center;
    }

    .project-logo-sub {
        opacity: 1;
        filter: grayscale(0%);
    }
}

/* Section Separator */
.section-separator {
    border: 0;
    height: 2px;
    background-image: linear-gradient(to right, transparent, var(--accent-color), transparent);
    margin: 0 auto;
    width: 60%;
    opacity: 0.6;
}

/* Lightbox Styles */
.zoomable-image {
    cursor: zoom-in;
    transition: transform 0.3s;
}

.lightbox {
    display: none; /* Hidden by default */
    position: fixed;
    z-index: 2000;
    padding-top: 50px;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.9);
    backdrop-filter: blur(5px);
}

.lightbox-content {
    margin: auto;
    display: block;
    width: 80%;
    max-width: 1200px;
    max-height: 90vh;
    object-fit: contain;
    animation-name: zoom;
    animation-duration: 0.4s;
    border-radius: 8px;
    box-shadow: 0 0 20px rgba(0,0,0,0.5);
    cursor: zoom-out;
}

@keyframes zoom {
    from {transform:scale(0)} 
    to {transform:scale(1)}
}

.close-lightbox {
    position: absolute;
    top: 20px;
    right: 35px;
    color: #f1f1f1;
    font-size: 40px;
    font-weight: bold;
    transition: 0.3s;
    cursor: pointer;
    z-index: 2001;
}

.close-lightbox:hover,
.close-lightbox:focus {
    color: var(--accent-color);
    text-decoration: none;
    cursor: pointer;
}

/* Caption if needed later */
#lightbox-caption {
    margin: auto;
    display: block;
    width: 80%;
    max-width: 700px;
    text-align: center;
    color: #ccc;
    padding: 10px 0;
    height: 150px;
}

/* Click outside to close */
.lightbox {
    cursor: zoom-out;
}


