/* Reset & Base Styles */
:root {
    --bg-color: #000000;
    --text-color: #ffffff;
    --accent-color: #00d6df;
    --font-heading: 'Oswald', sans-serif;
    --font-body: 'Roboto', sans-serif;
}

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

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    font-family: var(--font-body);
    overflow-x: hidden;
    height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Header */
.main-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 2rem 4rem;
    position: relative;
    z-index: 10;
    max-width: 1600px;
    margin: 0 auto;
    width: 100%;
}

.logo-container {
    display: flex;
    flex-direction: column;
}

.logo-text {
    font-family: var(--font-heading);
    line-height: 1;
}

.logo-main {
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: 1px;
    display: block;
}

.logo-main img {
    width: 100px;
    height: auto;
}

.logo-sub {
    font-size: 0.6rem;
    letter-spacing: 2px;
    color: #aaa;
}

.logo-partner {
    font-size: 0.5rem;
    margin-top: 5px;
    color: #888;
    display: flex;
    align-items: center;
    gap: 5px;
}

.main-nav {
    display: flex;
    gap: 2rem;
}

.main-nav a {
    color: var(--text-color);
    text-decoration: none;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 0.9rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    transition: color 0.3s;
}

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

.btn-join {
    border: 1px solid rgba(255, 255, 255, 0.5);
    padding: 10px 25px;
    color: var(--text-color);
    text-decoration: none;
    font-family: var(--font-heading);
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    transition: all 0.3s;
}

.btn-join:hover {
    background-color: var(--text-color);
    color: var(--bg-color);
}

/* Hero Section */
.hero-section {
    flex: 1;
    display: flex;
    align-items: center;
    padding: 0 4rem;
    position: relative;
    overflow: hidden;
    height: 75vh;
    max-width: 1600px;
    margin: 0 auto;
    width: 100%;
}

/* Gallery Specifics */
.gallery-section {
    background-color: #ffffff;
    padding: 6rem 4rem;
    position: relative;
    /* overflow: hidden; Removed to fix sticky positioning of cards */
}

.gallery-section .section-heading {
    color: #000000;
}

.gallery-lines {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    right: 4rem;
    display: flex;
    gap: 3rem;
    height: 60%; /* Or fixed height */
    z-index: 1;
}

.hero-content {
    z-index: 5;
    margin-top: 5rem;
    /* Push down slightly */
}

.hero-title {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 8rem;
    line-height: 0.9;
    text-transform: uppercase;
}

.line-1,
.line-2 {
    color: var(--text-color);
}

.line-3 {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.outline-text {
    color: transparent;
    -webkit-text-stroke: 2px var(--text-color);
}

/* Arrows */
.arrows {
    display: flex;
    gap: 5px;
}

.arrow {
    width: 20px;
    height: 40px;
    border-right: 8px solid var(--accent-color);
    border-top: 8px solid transparent;
    border-bottom: 8px solid transparent;
    transform: skewX(20deg);
    /* Adjust for chevron look */
}

/* Better arrow implementation using pseudo-elements for chevrons */
.arrow {
    width: 30px;
    height: 60px;
    background: transparent;
    border: none;
    position: relative;
    transform: none;
}

.arrow::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    border-top: 30px solid transparent;
    border-bottom: 30px solid transparent;
    border-left: 20px solid var(--accent-color);
    /* This creates a right pointing triangle */
}

/* Let's try a simpler chevron approach */
.arrows {
    display: flex;
    align-items: center;
    margin-left: 10px;
}

.arrow {
    display: inline-block;
    width: 20px;
    height: 20px;
    border-top: 8px solid var(--accent-color);
    border-right: 8px solid var(--accent-color);
    transform: rotate(45deg);
    margin-left: -5px;
    /* Overlap slightly if needed */
    width: 40px;
    height: 40px;
    border-width: 12px;
}

/* Refining the arrow to match image '>>' style blocks */
.arrows {
    display: flex;
    gap: 10px;
    height: 100%;
    align-items: center;
}

.arrow {
    width: 0;
    height: 0;
    border-top: 30px solid transparent;
    border-bottom: 30px solid transparent;
    border-left: 30px solid #00818a;
    /* Darker first */
    transform: none;
    border-width: 0;
}

/* Re-doing arrows precisely as chevrons/blocks */
.arrows {
    display: flex;
    gap: 5px;
}

.arrow {
    width: 30px;
    height: 70px;
    background: #00818a;
    /* Default dark */
    clip-path: polygon(75% 0%, 100% 50%, 75% 100%, 0% 100%, 25% 50%, 0% 0%);
    background-color: #00818a;
}

.arrow:nth-child(2) {
    background-color: #00aab4;
}

/* Dark gold */
.arrow:nth-child(3) {
    background-color: var(--accent-color);
}

/* Graphics */
.hero-graphics {
    position: absolute;
    top: 0;
    right: 0;
    width: 60%;
    height: 100%;
    pointer-events: none;
}

.graphic-rectangle {
    position: absolute;
    top: -10%;
    right: 15%;
    width: 400px;
    height: 600px;
    border: 2px solid #333;
    transform: rotate(15deg);
    z-index: 1;
}

.graphic-circle {
    position: absolute;
    bottom: -20%;
    right: 5%;
    width: 600px;
    height: 600px;
    border: 2px dashed #333;
    border-radius: 50%;
    z-index: 1;
}

.graphic-steps {
    position: absolute;
    bottom: 20%;
    right: 0;
    display: flex;
    flex-direction: column;
    gap: 15px;
    z-index: 2;
}

.step-item {
    display: flex;
    align-items: center;
    justify-content: flex-end;
}

.step-line {
    width: 80px;
    height: 4px;
    background-color: var(--accent-color);
    margin-right: 15px;
}

.step-number {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--accent-color);
    transform: rotate(90deg);
    /* Numbers are rotated in some designs, checking image... they look upright but let's stick to simple horizontal first. Re-checking image: they are upright. width lines are horizontal. */
    transform: none;
}

/* Side Accent */
.side-accent {
    position: fixed;
    top: 20%;
    left: 0;
    width: 4px;
    height: 100px;
    background-color: cyan;
    /* Contrast accent from image left edge */
    box-shadow: 0 0 10px cyan;
}

/* Responsive */
@media (max-width: 1024px) {
    .hero-title {
        font-size: 5rem;
    }

    /* Hide decorative lines on mobile/tablet */
    .hero-graphics,
    .side-accent,
    .gallery-lines {
        display: none !important;
    }
}

/* About Section */
.about-section {
    background-color: #ffffff;
    padding: 6rem 4rem;
    position: relative;
    display: block;
}

.about-container {
    z-index: 2;
}

.about-title {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 5rem;
    line-height: 1;
    color: #000000;
    text-transform: uppercase;
}

.text-outline-dark {
    color: transparent;
    -webkit-text-stroke: 2px #aaa;
    /* Grey outline for contrast */
    display: block;
    margin-top: 0.5rem;
}

.about-lines {
    display: flex;
    gap: 3rem;
    margin-right: 2rem;
    height: 100%;
}

.v-line {
    width: 6px;
    height: 400px;
    /* specific height to match visual */
    background-color: var(--accent-color);
}

@media (max-width: 1024px) {
    .about-title {
        font-size: 3.5rem;
    }

    .about-section {
        padding: 4rem 2rem;
    }

    .v-line {
        height: 300px;
    }

    .v-line {
        height: 300px;
    }
}

.about-text {
    font-family: var(--font-body);
    font-size: 1.1rem;
    line-height: 1.6;
    color: #333;
    margin-top: 1.5rem;
    max-width: 500px;
}

.about-image img {
    max-width: 100%;
    height: auto;
    max-height: 500px;
    object-fit: contain;
}

/* Services Section */
.services-section {
    background-color: #000000;
    color: #ffffff;
    padding: 6rem 4rem;
}

.section-heading {
    font-family: var(--font-heading);
    font-size: 4rem;
    text-align: center;
    margin-bottom: 4rem;
    text-transform: uppercase;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.service-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.service-subheading {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--accent-color);
}

.service-img-container {
    width: 100%;
    aspect-ratio: 4/3;
    margin-bottom: 1rem;
    overflow: hidden;
    background-color: #222;
}

.service-img-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(100%);
    transition: transform 0.3s;
}

.service-card:hover .service-img-container img {
    transform: scale(1.05);
}

.service-desc {
    margin-top: 1rem;
    font-family: var(--font-body);
    font-size: 1rem;
    line-height: 1.5;
    color: #ccc;
    max-width: 300px;
}

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

    .section-heading {
        font-size: 3rem;
    }


}

@media (max-width: 1024px) {
    .about-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .about-visuals {
        flex-direction: column-reverse;
        /* adjust if needed, but side-by-side might be too cramped */
        gap: 2rem;
    }

    .about-lines {
        display: none;
        /* Hide lines on mobile if complex, or adjust */
    }
}

/* Container for max-width */
.container {
    max-width: 1600px;
    margin: 0 auto;
    width: 100%;
}

/* Ensure grid parents work with container */
.about-content {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 4rem;
    align-items: center;
    width: 100%;
}

.about-visuals {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    height: 100%;
}

.about-image {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}/* Gallery Stacking Cards */
#cards {
    --numcards: 4;
    view-timeline-name: --cards-element-scrolls-in-body;
    padding-bottom: 20vh; /* space for last card to scroll out if needed */
    width: 100%;
}

.card {
    --index0: calc(var(--index) - 1);
    /* 0-based index */
    --reverse-index: calc(var(--numcards) - var(--index0));
    /* reverse index */
    --reverse-index0: calc(var(--reverse-index) - 1);
    /* 0-based reverse index */
    
    height: 70vh; /* Adjust scrolling length */
    position: sticky; /* Helps keep context space */
    top: 0;
    width: 100%;
    margin-bottom: 5vh; /* spacing */
}

.card__content {
    --start-range: calc(var(--index0) / var(--numcards) * 100%);
    --end-range: calc((var(--index)) / var(--numcards) * 100%);
    
    position: sticky;
    top: 15vh; /* Center vertically */
    
    /* Animation */
    animation: linear scale forwards;
    animation-timeline: --cards-element-scrolls-in-body;
    animation-range: exit-crossing var(--start-range) exit-crossing var(--end-range);
    
    /* Decoration */
    background: #111;
    border: 1px solid #333;
    border-radius: 20px;
    padding: 0; /* remove padding to let image fill */
    width: 80%;
    max-width: 1000px;
    margin: 0 auto;
    height: 60vh;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    overflow: hidden;
    
    display: flex;
    flex-direction: row;
    align-items: stretch;
}

@keyframes scale {
    to {
        transform: scale(calc(1.1 - calc(0.1 * var(--reverse-index))));
        /* filter: brightness(0.5); Optional: dim cards as they move back */
    }
}

.card__visual {
    flex: 1.5;
    background: #000;
    position: relative;
    overflow: hidden;
}

.card__visual img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

.card__content:hover .card__visual img {
    transform: scale(1.05);
}

.card__text {
    flex: 1;
    padding: 3rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background: #1a1a1a;
    border-left: 1px solid #333;
}

.card__text h3 {
    font-family: var(--font-heading);
    font-size: 3rem;
    margin-bottom: 1rem;
    color: var(--accent-color);
}

.card__text p {
    font-family: var(--font-body);
    font-size: 1.2rem;
    color: #ccc;
    line-height: 1.6;
}

@media (max-width: 768px) {
    .card__content {
        flex-direction: column;
        height: 70vh;
        width: 90%;
    }
    
    .card__visual {
        flex: 1;
    }
    
    .card__text {
        flex: 0.8;
        padding: 1.5rem;
    }
    
    .card__text h3 {
        font-size: 2rem;
    }
}
/* Contact Section */
.contact-section {
    background-color: #000000;
    color: #ffffff;
    padding: 6rem 4rem;
    position: relative;
    overflow: hidden;
    min-height: 80vh;
    display: flex;
    align-items: center;
}

.contact-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.contact-content {
    flex: 1;
    z-index: 10;
}

.contact-title {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 6rem;
    line-height: 0.9;
    text-transform: uppercase;
    display: flex;
    flex-direction: column;
    margin-bottom: 3rem;
}

.title-fill {
    color: #ffffff;
}

.title-outline {
    color: transparent;
    -webkit-text-stroke: 2px #ffffff;
}

.btn-pass {
    display: inline-block;
    border: 1px solid #ffffff;
    padding: 15px 40px;
    color: #ffffff;
    text-decoration: none;
    font-family: var(--font-heading);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    transition: all 0.3s;
}

.btn-pass:hover {
    background-color: #ffffff;
    color: #000000;
}

/* Visuals */
.contact-visuals {
    flex: 1;
    position: relative;
    height: 600px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.chevron-bg {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    gap: 20px;
    z-index: 1;
    opacity: 0.8;
}

.chevron {
    width: 100px;
    height: 400px;
    background-color: var(--accent-color);
    clip-path: polygon(0% 0%, 70% 0%, 100% 50%, 70% 100%, 0% 100%, 30% 50%);
}

.runner-img {
    height: 110%; /* Slight overflow for dynamic look */
    width: auto;
    object-fit: contain;
    position: relative;
    z-index: 2;
    mix-blend-mode: lighten; /* Ensures black background blends */
}

@media (max-width: 1024px) {
    .contact-container {
        flex-direction: column;
        text-align: center;
    }
    
    .contact-title {
        font-size: 5rem;
        align-items: center;
    }
    
    .contact-visuals {
        margin-top: 1.5rem;
        width: 100%;
        height: 280px; /* Significantly reduced height */
    }
    
    .runner-img {
        height: 70%; /* Much smaller image */
        width: 80%;
    }
    
    .chevron {
        width: 40px;
        height: 160px; /* Small arrows */
    }
    
    .chevron-bg {
        gap: 10px;
    }
}
/* Footer Section */
.main-footer {
    background-color: #000000;
    color: #ffffff;
    padding: 6rem 4rem 2rem;
    border-top: 1px solid #222;
}

.footer-top {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 4rem;
    margin-bottom: 4rem;
}

.footer-brand {
    flex: 1;
    min-width: 250px;
}

.footer-logo {
    max-width: 200px;
    height: auto;
    margin-bottom: 1rem;
}

.partner-text {
    font-size: 0.8rem;
    letter-spacing: 2px;
    color: #888;
    text-transform: uppercase;
}

.footer-links {
    flex: 2;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.footer-column h4 {
    font-family: var(--font-heading);
    font-size: 1rem;
    margin-bottom: 1.5rem;
    color: #ffffff;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.footer-column a,
.footer-column p {
    display: block;
    font-family: var(--font-body);
    font-size: 0.9rem;
    color: #ccc;
    text-decoration: none;
    margin-bottom: 0.8rem;
    transition: color 0.3s;
}

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

.footer-bottom {
    border-top: 1px solid #222;
    padding-top: 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.copyright {
    font-size: 0.8rem;
    color: #888;
}

.copyright a {
    color: #888;
    text-decoration: none;
    margin-left: 1rem;
    transition: color 0.3s;
}

.copyright a:hover {
    color: #fff;
}

.social-icons {
    display: flex;
    gap: 1rem;
}

.social-icon {
    width: 30px;
    height: 30px;
    background-color: #222;
    color: #fff;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 4px; /* Slight roundness like reference icons */
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: bold;
    transition: background-color 0.3s;
}

.social-icon:hover {
    background-color: var(--accent-color);
    color: #000;
}

@media (max-width: 1024px) {
    .footer-top {
        flex-direction: column;
        gap: 2rem;
        align-items: center; /* Center flex items */
        text-align: center;  /* Center text */
    }
    
    .footer-links {
        grid-template-columns: 1fr;
        gap: 2rem;
        width: 100%; /* Ensure full width for centering */
        text-align: center;
    }

    .footer-brand {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .social-icons {
        justify-content: center;
    }
    
    .footer-bottom {
        flex-direction: column;
        text-align: center;
        gap: 1.5rem;
    }
}
/* Mobile Header Styles */
.mobile-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    align-items: flex-end; /* Right align lines */
    width: 35px;
    height: 22px;
    background: none;
    border: none;
    cursor: pointer;
    z-index: 1001;
    padding: 0;
}

.mobile-toggle .line {
    height: 2px;
    background-color: #fff;
    transition: all 0.3s ease;
}

/* Unequal lines for the custom look */
.mobile-toggle .line-1 { width: 100%; }
.mobile-toggle .line-2 { width: 75%; }
.mobile-toggle .line-3 { width: 50%; }

/* Mobile Overlay */
.mobile-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #000000;
    z-index: 1000;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s ease, visibility 0.4s;
}

.mobile-overlay.active {
    opacity: 1;
    visibility: visible;
}

.mobile-close {
    position: absolute;
    top: 2rem;
    right: 2rem;
    background: none;
    border: none;
    color: #fff;
    font-size: 3rem;
    cursor: pointer;
    line-height: 1;
}

.mobile-nav {
    display: flex;
    flex-direction: column;
    align-items: flex-start; /* Left align text roughly */
    gap: 1.5rem;
}

.mobile-link {
    font-family: var(--font-heading);
    font-size: 3rem;
    font-weight: 700;
    color: #fff;
    text-decoration: none;
    text-transform: uppercase;
    transition: color 0.3s;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.4s ease, transform 0.4s ease, color 0.3s;
}

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

/* Staggered animation for links */
.mobile-overlay.active .mobile-link {
    opacity: 1;
    transform: translateY(0);
}

.mobile-overlay.active .mobile-link:nth-child(1) { transition-delay: 0.1s; }
.mobile-overlay.active .mobile-link:nth-child(2) { transition-delay: 0.15s; }
.mobile-overlay.active .mobile-link:nth-child(3) { transition-delay: 0.2s; }
.mobile-overlay.active .mobile-link:nth-child(4) { transition-delay: 0.25s; }
.mobile-overlay.active .mobile-link:nth-child(5) { transition-delay: 0.3s; }

/* Responsive Trigger */
@media (max-width: 1024px) {
    .main-nav,
    .btn-join {
        display: none;
    }

    .mobile-toggle {
        display: flex;
    }
}
