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

:root {
    --bg: #000000;
    --fg: #ffffff;
    --accent: #ffffff;
    --dim: #666666;
    --border: #333333;
    --transition: 0.5s cubic-bezier(0.19, 1, 0.22, 1);
}

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

body {
    background-color: var(--bg);
    color: var(--fg);
    font-family: 'Inter', sans-serif;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    /* Prevent text overflow globally */
    word-wrap: break-word;
    overflow-wrap: break-word;
}

/* Background Texture */
body::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('https://www.transparenttextures.com/patterns/carbon-fibre.png');
    opacity: 0.03;
    pointer-events: none;
    z-index: 100;
}

/* Typography Hierarchy (Size Theory) */
h1,
h2,
h3,
h4 {
    font-family: 'Syne', sans-serif;
    text-transform: uppercase;
    font-weight: 800;
    line-height: 1.1;
}

h1 {
    font-size: clamp(2.5rem, 9vw, 6.5rem);
    letter-spacing: -2px;
    margin-bottom: 2rem;
    line-height: 0.95;
}

h2 {
    font-size: clamp(1.6rem, 6vw, 3.5rem);
    letter-spacing: -1px;
    margin-bottom: 2rem;
}

h3 {
    font-size: clamp(1.1rem, 2vw, 1.5rem);
    letter-spacing: -0.5px;
    margin-bottom: 1rem;
    line-height: 1.2;
}

h4 {
    font-size: clamp(0.9rem, 2vw, 1.1rem);
    font-family: 'Syncopate', sans-serif;
    letter-spacing: 2px;
    margin-bottom: 1rem;
}

p {
    font-size: clamp(1rem, 1.5vw, 1.15rem);
    line-height: 1.6;
    color: var(--dim);
}

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

.outline-text:hover {
    color: var(--fg);
}

/* Navigation */
nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 1.5rem 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1000;
    background: transparent;
    border-bottom: 1px solid transparent;
    transition: all 0.4s ease;
}

nav.scrolled {
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(15px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    padding: 1rem 5%;
}

.logo {
    display: flex;
    align-items: center;
    gap: 1rem;
    text-decoration: none;
    color: var(--fg);
}

.logo img {
    height: 40px;
    width: auto;
}

.logo span {
    font-family: 'Syncopate', sans-serif;
    font-size: 1.2rem;
    font-weight: 700;
    letter-spacing: -1px;
}

.nav-links {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.nav-links a {
    text-decoration: none;
    color: var(--fg);
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--fg);
    transition: var(--transition);
}

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

/* Layout */
section {
    padding: clamp(6rem, 15vh, 12rem) 8%;
    min-height: auto;
}

/* Menu Button Base */
.menu-btn {
    display: none;
    background: none;
    border: none;
    color: var(--fg);
    font-family: 'Syncopate', sans-serif;
    font-weight: 700;
    font-size: 0.8rem;
    letter-spacing: 2px;
    padding: 0.5rem;
}

.hero {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    background: radial-gradient(circle at center, #111 0%, #000 100%);
}

.hero h1 {
    margin-bottom: 3rem;
}

.hero p {
    max-width: 700px;
    margin-bottom: 4rem;
}

/* Buttons */
.btn {
    padding: 1.2rem 3rem;
    background: var(--fg);
    color: var(--bg);
    text-decoration: none;
    font-weight: 900;
    text-transform: uppercase;
    transition: var(--transition);
    border: 1px solid var(--fg);
    display: inline-block;
}

.btn:hover {
    background: transparent;
    color: var(--fg);
    transform: translateY(-5px) rotate(-3deg);
    box-shadow: 10px 10px 0px var(--fg);
}

/* Grid & Cards */
.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 400px), 1fr));
    gap: clamp(1.5rem, 4vw, 3rem);
    margin-top: clamp(3rem, 8vh, 5rem);
    align-items: stretch;
}

.card {
    border: 1px solid var(--border);
    padding: clamp(1rem, 2vw, 1.5rem);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    background: #0a0a0a;
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--fg);
    transform: scaleX(0);
    transform-origin: left;
    transition: var(--transition);
}

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

.card:hover {
    border-color: var(--fg);
    transform: translateY(-15px);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.5);
}

.card h3 {
    /* Uses global H3 */
}

.card p {
    /* Uses global p */
}

/* Wall of Fame */
.gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr));
    gap: 1rem;
}

.gallery-item {
    aspect-ratio: 4/5;
    position: relative;
    overflow: hidden;
    background: #111;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(100%) contrast(1.2);
    transition: var(--transition);
}

.gallery-item:hover img {
    filter: grayscale(0%) contrast(1);
    transform: scale(1.1);
}

.gallery-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 2rem;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
    opacity: 0;
    transition: var(--transition);
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

/* Forms */
.contact-section {
    max-width: 800px;
    margin: 0 auto;
}

.form-group {
    margin-bottom: 2rem;
}

label {
    display: block;
    text-transform: uppercase;
    font-weight: 700;
    margin-bottom: 0.5rem;
    font-size: 0.8rem;
    letter-spacing: 1px;
}

input,
textarea {
    width: 100%;
    background: transparent;
    border: none;
    border-bottom: 2px solid var(--border);
    padding: 1rem 0;
    color: var(--fg);
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    transition: var(--transition);
}

input:focus,
textarea:focus {
    outline: none;
    border-color: var(--fg);
}

/* Footer */
footer {
    padding: clamp(6rem, 12vh, 10rem) 8% 4rem;
    border-top: 1px solid var(--border);
    background: #050505;
}

.footer-container {
    width: 100%;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 4rem;
    margin-bottom: 6rem;
}

@media (max-width: 900px) {
    .footer-container {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-family: 'Syncopate', sans-serif;
    font-weight: 700;
    text-transform: uppercase;
}

.footer-logo img {
    height: 30px;
    filter: brightness(1);
}

.socials {
    display: flex;
    gap: 2rem;
}

.socials a {
    color: var(--fg);
    text-decoration: none;
    font-size: 0.8rem;
    font-weight: 600;
}

/* Marquee */
.marquee {
    width: 100%;
    white-space: nowrap;
    overflow: hidden;
    background: var(--fg);
    color: var(--bg);
    padding: 1rem 0;
}

.marquee-content {
    display: inline-block;
    animation: marquee 20s linear infinite;
}

.marquee-item {
    font-family: 'Syncopate', sans-serif;
    font-weight: 700;
    font-size: 2rem;
    margin-right: 4rem;
}

@keyframes marquee {
    from {
        transform: translateX(0);
    }

    to {
        transform: translateX(-50%);
    }
}

/* Animations */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: 0.8s cubic-bezier(0.19, 1, 0.22, 1);
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* Mobile */
@media (max-width: 768px) {
    nav {
        padding: 1.2rem 5%;
        background: rgba(0, 0, 0, 0.8);
        backdrop-filter: blur(10px);
        mix-blend-mode: normal;
    }

    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        height: 100vh;
        background: var(--bg);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        transition: var(--transition);
        z-index: 99;
    }

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

    .nav-links a {
        font-size: 1.5rem;
        margin-bottom: 2rem;
    }

    .stat-item h4 {
        font-size: 2.5rem;
    }

    .stat-item p {
        font-size: 0.7rem;
    }

    .menu-btn {
        display: block !important;
        z-index: 101;
    }

    .hero h1 {
        font-size: clamp(2.2rem, 12vw, 3rem);
    }

    section {
        padding: 6rem 6% 3rem;
    }

    .hero,
    main>section:first-of-type {
        padding-top: 7rem;
    }

    .grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        margin-top: 2rem;
    }

    h1 {
        font-size: clamp(1.8rem, 12vw, 3rem);
        margin-top: 1rem;
    }

    h2 {
        font-size: 26px !important;
    }

    h3 {
        font-size: 1.3rem;
    }

    h4 {
        font-size: 0.75rem;
    }

    body {
        font-size: 0.85rem;
    }

    .card {
        padding: 1.25rem;
        min-height: auto;
    }

    .card h3 {
        font-size: 1.2rem;
    }

    .card p {
        font-size: 0.85rem;
        line-height: 1.5;
    }

    .stats-grid {
        gap: 2rem;
        margin-top: 3rem;
    }

    footer {
        flex-direction: column;
        gap: 2rem;
        text-align: center;
        padding: 4rem 5%;
    }
}

/* Stats */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 4rem;
    text-align: center;
    margin-top: 4rem;
}

.stat-item h4 {
    font-size: clamp(3rem, 8vw, 5rem);
    font-family: 'Syncopate', sans-serif;
    margin-bottom: 1.5rem;
}

.stat-item p {
    color: var(--dim);
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 0.8rem;
}

/* Testimonials */
.testimonial-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 450px), 1fr));
    gap: 3rem;
    margin-top: 4rem;
}

.testimonial-card {
    background: #0a0a0a;
    padding: clamp(2rem, 5vw, 4rem);
    border: 1px solid var(--border);
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.testimonial-card::after {
    content: '"';
    position: absolute;
    top: 1rem;
    right: 2rem;
    font-size: 8rem;
    color: #111;
    font-family: 'Syne', sans-serif;
    line-height: 1;
}

.testimonial-text {
    font-size: clamp(1.1rem, 2vw, 1.4rem);
    font-style: italic;
    color: var(--fg);
    margin-bottom: 2.5rem;
    line-height: 1.6;
    position: relative;
    z-index: 1;
}

.testimonial-author {
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 0.9rem;
    color: var(--fg);
    display: flex;
    align-items: center;
    gap: 1rem;
}

.testimonial-author::before {
    content: '';
    width: 30px;
    height: 2px;
    background: var(--fg);
}


/* Menu Button Base */
.menu-btn {
    display: none;
    background: none;
    border: none;
    color: var(--fg);
    font-family: 'Syncopate', sans-serif;
    font-weight: 700;
    font-size: 0.8rem;
    letter-spacing: 2px;
    padding: 0.5rem;
}