/* --- Variables & Reset --- */
:root {
    --primary-yellow: #FAD961;
    --primary-teal: #54A8B3;
    --dark-bg: #1A1A1A;
    --text-white: #FFFFFF;
    --border-color: #000000;
    --wave-white: #F9F9F4;
}

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

html {
    scroll-behavior: smooth;
}

section {
    scroll-margin-top: 50px;
}

body {
    font-family: 'Rubik', sans-serif;
    background-color: var(--dark-bg);
    color: var(--text-white);
    overflow-x: hidden;
    -webkit-text-size-adjust: 100%;
    /* Prevent automatic text resizing on mobile */
    text-size-adjust: 100%;
    /* 1. Yellow Line at the Top */
}

/* --- Navigation --- */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 3rem;
    /* Compact padding */
    background-color: var(--dark-bg);
    /* Cleaner look over bg */
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 6px solid var(--primary-yellow);
}

.nav-left {
    display: flex;
    align-items: center;
    gap: 15px;
}

.nav-logo img {
    height: 50px;
    /* Slightly bigger logo */
    width: 50px;
    object-fit: contain;
    border-radius: 50%;
}

.brand-name {
    font-family: 'Rubik Mono One', sans-serif;
    color: var(--primary-yellow);
    font-size: 1.5rem;
    letter-spacing: 1px;
}

.nav-right {
    display: flex;
    align-items: center;
    gap: 30px;
    /* More space between items */
}

.nav-link {
    text-decoration: none;
    color: var(--text-white);
    font-weight: 700;
    text-transform: uppercase;
    font-size: 1rem;
    font-family: 'Rubik Mono One', sans-serif;
    transition: color 0.3s ease;
}

/* 3. Hover Effect: Yellow on hover */
.nav-link:hover {
    color: var(--primary-yellow);
}

.nav-btn-outline {
    text-decoration: none;
    color: var(--text-white);
    font-family: 'Rubik Mono One', sans-serif;
    background-color: #222;
    padding: 8px 16px;
    border: 3px solid white;
    border-radius: 6px;
    font-size: 0.9rem;
    box-shadow: 3px 3px 0px #54A8B3;
    transition: all 0.2s ease;
}

.nav-btn-outline:hover {
    color: var(--primary-yellow);
    border-color: var(--primary-yellow);
    box-shadow: 3px 3px 0px var(--primary-yellow);
}

.nav-btn-solid {
    text-decoration: none;
    background-color: var(--primary-yellow);
    color: black;
    font-family: 'Rubik Mono One', sans-serif;
    padding: 10px 20px;
    border: 3px solid black;
    font-size: 1rem;
    box-shadow: 4px 4px 0px black;
    transition: transform 0.2s ease;
}

.nav-btn-solid:hover {
    transform: translate(-2px, -2px);
    box-shadow: 6px 6px 0px black;
}

/* --- Hero Section --- */
.hero {
    position: relative;
    width: 100%;
    height: calc(100vh - 90px);
    /* Account for navbar height */
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    /* padding-top: -100px; */
    padding-bottom: 60px;
    /* Reduced to fit wave in viewport */

    /* Background Image */
    background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url('assets/hero-bg.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    /* Cool parallax effect */
}

/* 2. Center Logo - Layered spinning background with static text */
.hero-logo-container {
    position: relative;
    width: 320px;
    max-width: 80vw;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 60px;
    margin-bottom: 70px;
    height: 6em;
    /* Matching user request */
    will-change: filter;
    transition: filter 300ms;
}

/* Spinning background circle */
.logo-spin {
    position: absolute;
    width: 65%;
    height: auto;
    filter: drop-shadow(0px 10px 20px rgba(0, 0, 0, 0.5));
}

/* Static text overlay */
.logo-text {
    position: absolute;
    width: 40%;
    height: auto;
    z-index: 2;
    filter: drop-shadow(0px 5px 10px rgba(0, 0, 0, 0.5));
}

.hero-logo-container:hover .logo-spin {
    filter: drop-shadow(0 0 2em #FAD961);
    /* Yellow glow */
}

@keyframes logo-spin {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

@media (prefers-reduced-motion: no-preference) {
    .logo-spin {
        animation: logo-spin infinite 20s linear;
    }
}

/* Hero Typography */
.hero-content {
    z-index: 5;
    max-width: 1280px;
    /* Updated from 1200px */
    padding: 2rem;
    /* Updated from 0 20px */
    text-align: center;
    /* Enforce center */
}

.hero-content h1 {
    font-family: 'Rubik Mono One', sans-serif;
    /* 4. Massive Font Size */
    font-size: 4.4rem;
    color: var(--primary-yellow);
    text-transform: uppercase;
    text-shadow: 6px 6px 0px #000;
    line-height: 1.1;
    margin-bottom: 30px;
}

.subtitle {
    font-size: 1.6rem;
    color: var(--text-white);
    margin-bottom: 50px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    font-weight: 500;
    line-height: 1.6;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
}

/* CTA Buttons */
.cta-container {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-bottom: 60px;
    /* Increased spacing to wave */
    /* Reduced to fit wave in viewport */
}

.btn {
    text-decoration: none;
    font-family: 'Rubik Mono One', sans-serif;
    padding: 20px 40px;
    /* Chunky padding */
    border: 4px solid black;
    /* Thicker border */
    text-transform: uppercase;
    font-size: 1.3rem;
    transition: all 0.2s ease;
    display: inline-block;
}

.btn:hover {
    transform: translate(-4px, -4px);
    box-shadow: 8px 8px 0px black;
}

.btn-teal {
    background-color: var(--primary-teal);
    color: white;
}

.btn-yellow {
    background-color: var(--primary-yellow);
    color: black;
}

/* --- Wave Divider --- */
.wave-divider {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    line-height: 0;
    z-index: 1;
}

.wave-divider svg {
    display: block;
    width: 100%;
    height: 150px;
    /* Adjusted to be visible but not overwhelming */
}

/* Responsive Tweaks */
@media (max-width: 1024px) {
    .hero-content h1 {
        font-size: 4rem;
    }
}

@media (max-width: 768px) {
    .navbar {
        display: none;
    }

    .nav-right {
        flex-direction: column;
        width: 100%;
        gap: 15px;
    }

    /* Prevent iOS zoom on inputs */
    input,
    select,
    textarea {
        font-size: 16px !important;
    }

    /* Fix Mobile Hero Layout */
    .hero {
        height: auto !important;
        min-height: 100vh;
        padding-top: 50px !important;
        /* Push logo down from top */
        padding-bottom: 120px !important;
        /* Space for wave at bottom */
        background-attachment: scroll !important;
        /* Fix zoomed background */
        background-position: center top !important;
        /* Ensure top of image shows */
        background-size: cover !important;
        /* Retains cover but scroll helps feel less zoomed */
        /* If user wants 'zoomed out', maybe 120%? default cover is fine usually with scroll, let's try scroll first */
    }

    .hero-content {
        padding-top: 10px !important;
    }

    .hero-content h1 {
        font-size: 40px;
        /* 2.5rem fixed to px for consistency */
    }

    .hero-logo-container {
        width: 260px;
    }

    .cta-container {
        flex-direction: column;
        width: 100%;
        align-items: center;
    }

    .btn {
        width: 100%;
        text-align: center;
        padding: 20px 10px;
        /* Reduced side padding to prevent wrapping */
    }

    .wave-divider {
        bottom: -1px;
    }

    .about-card,
    .contact-card,
    .feature-box,
    .profile-circle {
        box-shadow: none !important;
    }

    .about-us {
        padding-top: 30px !important;
        padding-bottom: 40px !important;
        /* Reduced from default */
        margin-top: -1px;
    }

    .contact-section {
        padding-top: 20px !important;
        /* Reduced top spacing */
        margin-top: -1px;
    }
}

/* --- About Us Section --- */
.about-us {
    background-color: var(--wave-white);
    padding: 100px 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    z-index: 2;
}

.content-wrapper {
    width: 100%;
    max-width: 1000px;
    text-align: center;
}

.section-title {
    font-family: 'Rubik Mono One', sans-serif;
    font-size: 3.5rem;
    color: #000;
    text-transform: uppercase;
    margin-bottom: 40px;
    letter-spacing: 2px;
}

.about-card {
    background-color: #FFFFFF;
    border: 4px solid #000;
    padding: 60px 80px;
    box-shadow: 15px 15px 0px rgba(0, 0, 0, 1);
    text-align: left;
    position: relative;
    margin: 0 auto;
}

/* --- About Us Layout Update (Floated) --- */
.about-text-container {
    display: block;
    margin-bottom: 40px;
}

.profile-circle {
    width: 11rem;
    height: 11rem;
    border-radius: 50%;
    border: 4px solid black;
    object-fit: cover;
    float: left;
    margin-right: 30px;
    margin-bottom: 10px;
    margin-top: 10px;
    box-shadow: 6px 6px 0px #000;
    /* Circular styling reuse */
    background-color: #ddd;
    overflow: hidden;
    position: relative;
    shape-outside: circle(50%);
    /* Better text wrapping */
}

.profile-circle:hover {
    transform: translate(-2px, -2px);
    box-shadow: 8px 8px 0px #000;
}

.profile-circle img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.about-text p {
    font-family: 'Rubik', sans-serif;
    font-size: 1.2rem;
    line-height: 1.8;
    color: #333;
    margin-bottom: 25px;
    font-weight: 400;
}

/* Clear float after text */
.about-text::after {
    content: "";
    display: table;
    clear: both;
}

/* Responsive update */
@media (max-width: 768px) {
    .profile-circle {
        float: none;
        margin: 0 auto 30px auto;
        /* Center on mobile */
    }

    .about-text {
        text-align: center;
    }
}

.highlight-text {
    color: var(--primary-teal);
    font-weight: 700;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.feature-box {
    background-color: var(--primary-yellow);
    border: 3px solid #000;
    padding: 20px 10px;
    text-align: center;
    box-shadow: 6px 6px 0px #000;
    transition: transform 0.2s;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.feature-box h3 {
    font-family: 'Rubik Mono One', sans-serif;
    font-size: 1.4rem;
    margin-bottom: 5px;
    color: #000;
    text-transform: uppercase;
}

.feature-box span {
    font-family: 'Rubik', sans-serif;
    font-size: 0.9rem;
    font-weight: 700;
    color: #000;
    display: block;
    text-transform: capitalize;
}

.feature-box:hover {
    transform: translate(-2px, -2px);
    box-shadow: 8px 8px 0px #000;
}

/* Responsive adjustments for About Us */
@media (max-width: 900px) {
    .about-card {
        padding: 40px;
    }
}

@media (max-width: 768px) {
    .section-title {
        font-size: 2.5rem;
    }

    .about-card {
        padding: 30px 20px;
        box-shadow: 10px 10px 0px #000;
    }

    .features-grid {
        grid-template-columns: 1fr;
    }

    .feature-box {
        padding: 15px;
    }
}

/* --- Contact Section --- */
.contact-section {
    background-color: var(--wave-white);
    padding: 50px 20px 100px 20px;
    display: flex;
    justify-content: center;
    position: relative;
    z-index: 2;
}

.section-subtitle {
    font-family: 'Rubik', sans-serif;
    font-size: 1.2rem;
    color: #666;
    margin-top: -30px;
    margin-bottom: 50px;
    font-weight: 500;
}

.contact-card {
    background-color: #FFFFFF;
    border: 4px solid #000;
    padding: 60px 80px;
    box-shadow: 15px 15px 0px rgba(0, 0, 0, 1);
    text-align: left;
    max-width: 800px;
    margin: 0 auto;
}

.form-group {
    margin-bottom: 30px;
}

.form-group label {
    display: block;
    font-family: 'Rubik Mono One', sans-serif;
    font-size: 1rem;
    margin-bottom: 10px;
    color: #000;
    text-transform: uppercase;
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 15px;
    background-color: #F9F9F9;
    border: 2px solid #999;
    font-family: 'Rubik', sans-serif;
    font-size: 1rem;
    line-height: 1.5;
    color: #333;
    transition: all 0.2s;
}

.form-group select {
    appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    background-size: 1em;
}

.form-group select:invalid {
    color: #999;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #000;
    background-color: #FFF;
    box-shadow: 4px 4px 0px #DDD;
}

/* File Upload styling */
.file-upload-wrapper {
    position: relative;
    overflow: hidden;
    display: inline-block;
    width: 100%;
}

.file-upload-wrapper input[type=file] {
    font-family: 'Rubik', sans-serif;
    font-size: 1rem;
    background: #F9F9F9;
    border: 2px solid #999;
    padding: 10px;
    width: 100%;
    cursor: pointer;
}

.file-custom {
    display: block;
    margin-top: 8px;
    font-family: 'Rubik', sans-serif;
    font-size: 0.9rem;
    color: #555;
    font-style: italic;
}

/* Submit Button Override */
.btn-submit {
    width: 100%;
    font-size: 1.2rem;
    margin-top: 10px;
    cursor: pointer;
}

/* Responsive adjustments for Contact */
@media (max-width: 768px) {
    .contact-card {
        padding: 30px 20px;
    }
}

/* Image Preview Styling */
.preview-box {
    display: none;
    margin-top: 15px;
    padding: 10px;
    border: 2px dashed #000;
    background-color: #f0f0f0;
    text-align: center;
}

.preview-box p {
    font-family: 'Rubik Mono One', sans-serif;
    font-size: 0.8rem;
    margin-bottom: 10px;
    color: #333;
    text-transform: uppercase;
}

#image-preview {
    max-width: 100%;
    max-height: 300px;
    border: 2px solid #000;
    display: block;
    margin: 0 auto;
}

/* --- Footer --- */
.site-footer {
    background-color: #0E0E0E;
    color: var(--text-white);
    padding: 80px 20px 30px;
    border-top: 6px solid var(--primary-yellow);
    /* Nice top border to separate */
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 60px;
    margin-bottom: 60px;
}

/* Logo Section */
.footer-logo-wrapper {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
}

.footer-logo {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    /*border: 2px solid white;*/
}

.footer-brand {
    font-family: 'Rubik Mono One', sans-serif;
    color: var(--primary-yellow);
    font-size: 1.2rem;
    letter-spacing: 1px;
}

.footer-text {
    font-family: 'Rubik', sans-serif;
    color: #ccc;
    font-size: 1rem;
    line-height: 1.6;
    max-width: 400px;
}

/* Headings */
.footer-heading {
    font-family: 'Rubik Mono One', sans-serif;
    font-size: 1.1rem;
    color: var(--text-white);
    margin-bottom: 25px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Links */
.footer-links {
    list-style: none;
    padding: 0;
}

.footer-links li {
    margin-bottom: 15px;
}

.footer-links a {
    color: #ccc;
    text-decoration: none;
    font-family: 'Rubik', sans-serif;
    font-weight: 500;
    transition: all 0.3s;
    font-size: 1rem;
    display: inline-block;
}

.footer-links a:hover {
    color: var(--primary-yellow);
    transform: translateX(5px);
}

/* Contact & Social */
.footer-email {
    display: block;
    color: #ccc;
    text-decoration: none;
    font-family: 'Rubik', sans-serif;
    font-size: 1rem;
    margin-bottom: 30px;
    transition: color 0.3s;
}

.footer-email:hover {
    color: var(--primary-yellow);
}

.social-icons {
    display: flex;
    gap: 15px;
}

.social-icon {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 45px;
    height: 45px;
    background-color: var(--primary-yellow);
    color: #000;
    font-family: 'Rubik Mono One', sans-serif;
    font-size: 0.9rem;
    text-decoration: none;
    border: 2px solid transparent;
    transition: all 0.2s ease;
    font-weight: bold;
}

.social-icon:hover {
    transform: translateY(-3px);
    background-color: #fff;
    box-shadow: 0 5px 15px rgba(255, 255, 255, 0.1);
}

/* Copyright */
.footer-bottom {
    border-top: 1px solid #333;
    padding-top: 30px;
    text-align: center;
}

.footer-bottom p {
    font-family: 'Rubik', sans-serif;
    color: #555;
    font-size: 0.85rem;
}

/* Responsive */
@media (max-width: 900px) {
    .footer-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .footer-logo-wrapper,
    .footer-text,
    .footer-heading,
    .footer-links,
    .footer-email,
    .social-icons {
        text-align: center;
        justify-content: center;
        /* for flex items */
    }

    .footer-text {
        margin: 0 auto;
    }
}

@media (max-width: 768px) {
    .footer-links-section {
        display: none;
    }
}