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

:root {
    --primary: #F0C481;
    --primary-rgb: 240, 196, 129;
    --bg-dark: #F5F5F5;
    --bg-card: #FFFFFF;
    --text-main: #1A1A1A;
    --text-muted: #666666;
    --border: rgba(0, 0, 0, 0.08);
    --glass-bg: rgba(255, 255, 255, 0.7);
    --glass-blur: 15px;
    --transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    --container-width: 1200px;
}


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

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-dark);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

h1 {
    font-family: 'Outfit', sans-serif;
    font-weight: 600;
    font-size: clamp(2.5rem, 8vw, 5rem);
    line-height: 1.1;
}

h2 {
    font-family: 'Outfit', sans-serif;
    font-weight: 600;
    font-size: clamp(2rem, 6vw, 3.5rem);
    line-height: 1.2;
}

h3 {
    font-family: 'Outfit', sans-serif;
    font-weight: 600;
    font-size: clamp(1.25rem, 4vw, 1.75rem);
}

h4,
.font-heading {
    font-family: 'Outfit', sans-serif;
    font-weight: 600;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
}

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 2rem;
}

/* Utilities */
.text-primary {
    color: var(--primary);
}

.bg-primary {
    background-color: var(--primary);
}

.glass {
    background: var(--glass-bg);
    backdrop-filter: blur(var(--glass-blur));
    -webkit-backdrop-filter: blur(var(--glass-blur));
    border: 1px solid var(--border);
}

/* Header & Nav */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 1.5rem 0;
    transition: var(--transition);
    background: transparent;
}

header.scrolled {
    padding: 0.8rem 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

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


.logo img {
    height: 45px;
    width: auto;
    transition: var(--transition);
}

header.scrolled .logo img {
    height: 35px;
}


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


.nav-links a {
    font-size: 0.8125rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-muted);
    white-space: nowrap;
}


.nav-links a:hover,
.nav-links a.active {
    color: var(--primary);
}

/* Hero Section */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background-size: cover;
    background-position: center;
    position: relative;
    color: #FFFFFF;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
}

.hero-content h1 {
    /* Font size now handled by global h1 clamp */
    margin-bottom: 1.5rem;
    color: #FFFFFF;
}

.hero-content p {
    font-size: clamp(1rem, 3vw, 1.125rem);
    color: rgba(255, 255, 255, 0.9);
    max-width: 600px;
    margin: 0 auto 2.5rem;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 1rem 2.5rem;
    border-radius: 0;
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    cursor: pointer;
    transition: var(--transition);
}

.btn-primary {
    background-color: var(--primary);
    color: var(--bg-dark);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(var(--primary-rgb), 0.2);
}

.btn-outline {
    border: 1px solid var(--primary);
    color: var(--primary);
}

.btn-outline:hover {
    background-color: var(--primary);
    color: var(--bg-dark);
}

/* Footer */
footer {
    padding: 5rem 0 2rem;
    background: #EAEAEA;
    border-top: 1px solid var(--border);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 4rem;
    margin-bottom: 4rem;
}

.footer-logo {
    margin-bottom: 1.5rem;
}

.footer-section h4 {
    margin-bottom: 1.5rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-size: 0.875rem;
}

.footer-links li {
    margin-bottom: 0.75rem;
}

.footer-links a {
    color: var(--text-muted);
}

.footer-links a:hover {
    color: var(--primary);
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    padding-top: 2rem;
    border-top: 1px solid var(--border);
    font-size: 0.75rem;
    color: var(--text-muted);
}

/* Visualiser */
.visualiser-container {
    position: relative;
    width: 100%;
    aspect-ratio: auto;
    overflow: hidden;
    box-shadow: 0 40px 80px rgba(0, 0, 0, 0.1);
}

.visualiser-wall {
    position: absolute;
    top: 7.5%;
    left: 15.5%;
    width: 49.5%;
    height: 64.5%;
    background-size: cover;
    z-index: 2;
    opacity: 1;
    transition: var(--transition);
    box-shadow: inset 0 0 50px rgba(0, 0, 0, 0.2);
}

.visualiser-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 3;
    pointer-events: none;
    background: transparent;
}


/* Micro-animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.reveal {
    animation: fadeInUp 0.8s ease forwards;
}

/* Mobile Nav Toggle */
.hamburger {
    display: none;
    cursor: pointer;
    background: none;
    border: none;
    z-index: 2000;
    padding: 10px;
    margin-right: -10px;
}

.hamburger span {
    display: block;
    width: 25px;
    height: 2px;
    background: var(--text-main);
    margin: 6px 0;
    transition: var(--transition);
}

/* Specific adjustments for navbar when on dark backgrounds */
header:not(.scrolled) .hamburger span {
    background: #FFFFFF;
}

header.scrolled .hamburger span {
    background: var(--text-main);
}

.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
}

/* Responsive */
@media (max-width: 1200px) {
    .nav-links {
        gap: 1.5rem;
    }
}

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

    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 100%;
        height: 100vh;
        background: #FFFFFF;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 2rem;
        transition: 0.5s cubic-bezier(0.16, 1, 0.3, 1);
        z-index: 1050;
        padding: 2rem;
    }

    header.scrolled .nav-links {
        background: #FFFFFF;
    }

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

    .nav-links a {
        font-size: 1.25rem;
        color: var(--text-main);
    }

    .hamburger {
        display: block;
    }

    .header-cta {
        display: none;
    }
}

@media (max-width: 768px) {
    section {
        padding: 5rem 0 !important;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
        text-align: center;
    }

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

    .footer-bottom {
        flex-direction: column;
        align-items: center;
        gap: 1.5rem;
        text-align: center;
    }

    .btn {
        width: 100%;
        text-align: center;
    }

    .btn+.btn {
        margin-left: 0 !important;
        margin-top: 1rem;
    }

    .container {
        padding: 0 1.5rem;
    }
}

/* Extra small screens */
@media (max-width: 480px) {
    .hero-content h1 {
        font-size: 2.5rem;
    }
}

/* Carousel Styles Refinements for Mobile */
@media (max-width: 768px) {
    .carousel-item {
        flex: 0 0 280px;
    }

    .carousel-track {
        gap: 1rem;
    }
}

/* Carousel Styles */
.carousel-container {
    padding: 4rem 0;
    overflow: hidden;
}

.carousel-section-title {
    margin-bottom: 3rem;
}

.carousel-track {
    display: flex;
    overflow-x: auto;
    gap: 2rem;
    padding: 1rem 0;
    scrollbar-width: thin;
    scrollbar-color: var(--primary) transparent;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
}

.carousel-track::-webkit-scrollbar {
    height: 4px;
}

.carousel-track::-webkit-scrollbar-thumb {
    background: var(--primary);
}

.carousel-item {
    flex: 0 0 350px;
    scroll-snap-align: start;
    transition: var(--transition);
}

.carousel-item:hover {
    transform: translateY(-8px);
}

.carousel-image-placeholder {
    width: 100%;
    aspect-ratio: 1/1;
    background: #EAEAEA;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    color: var(--text-muted);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.carousel-item-caption {
    font-size: 0.8125rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-main);
}