@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;700;800&family=Roboto+Mono&display=swap');

:root {
    /* Brand Colors - From MedinaHacks Brand Identity */
    --brand-green: #21C45D;
    --brand-green-dark: #1A9C4A;
    --muted-earth: #A68A6D;
    --brand-gold: #E0A40D;
    --brand-gold-dark: #B1820A;

    /* Neutral Palette */
    --bg-light: #FAFAFA;
    --fg-dark: #282E39;
    --card-white: #FFFFFF;
    --muted-fg: #4D5668;

    /* Gradients */
    --golf-gradient: linear-gradient(135deg, #21C45D 0%, #1A9C4A 100%);
    --gold-gradient: linear-gradient(135deg, #E0A40D 0%, #B1820A 100%);

    /* Fonts */
    --font-primary: 'Inter', sans-serif;
    --font-mono: 'Roboto Mono', monospace;

    --transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
    scroll-behavior: smooth;
    font-size: 100%;
    /* Base 16px */
}

body {
    background-color: var(--bg-light);
    color: var(--fg-dark);
    font-family: var(--font-primary);
    line-height: 1.5;
}

/* Typography Scales */
h1,
h2,
h3,
h4 {
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1.25;
}

.text-sm {
    font-size: 0.875rem;
    line-height: 1.25rem;
}

.text-base {
    font-size: 1rem;
    line-height: 1.5rem;
}

.text-lg {
    font-size: 1.125rem;
}

.text-xl {
    font-size: 1.25rem;
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.section-padding {
    padding: 100px 0;
}

/* Header & Logo - Now as an Overlay */
.logo-overlay {
    position: absolute;
    top: 1.5rem;
    left: 2rem;
    z-index: 20;
}

.main-logo {
    height: 120px !important;
    width: 120px !important;
    object-fit: contain !important;
    border-radius: 50% !important;
    /* Makes the white square a circle */
    background: white !important;
    /* Keeps the emblem clear */
    filter: drop-shadow(0 6px 12px rgba(0, 0, 0, 0.4)) !important;
    z-index: 21 !important;
    display: block !important;
}

/* Hero Section */
.hero {
    position: relative;
    height: 90vh;
    min-height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--card-white);
    background: linear-gradient(rgba(40, 46, 57, 0.6), rgba(40, 46, 57, 0.8)), url('golf_bg.png');
    background-size: cover;
    background-position: center;
    overflow: hidden;
    /* Contain the video */
}

.video-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    overflow: hidden;
    pointer-events: none;
}

#video-container {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100vw;
    height: 56.25vw;
    /* 16:9 Aspect Ratio */
    min-height: 100vh;
    min-width: 177.77vh;
    /* 100 * 16 / 9 */
    transform: translate(-50%, -50%);
    pointer-events: none;
}

#video-container iframe {
    width: 100% !important;
    height: 100% !important;
    border: none;
}

.video-overlay-shade {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    /* Darkens video for text readability */
    z-index: 2;
}

.hero-content-wrapper {
    position: relative;
    z-index: 10;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 3rem 2rem;
    text-align: center;
}

.hero-top {
    padding-top: 2rem;
}

.hero-bottom {
    padding-bottom: 2rem;
}

.hero-controls {
    position: absolute;
    bottom: 1.5rem;
    right: 2rem;
    z-index: 30;
    background: rgba(255, 255, 255, 0.1);
    padding: 0.6rem 1.2rem;
    border-radius: 100px;
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    display: flex;
    align-items: center;
    gap: 1rem;
    transition: var(--transition);
}

.hero-controls:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-2px);
}

.control-toggle {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: white;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    cursor: pointer;
    user-select: none;
}

.control-divider {
    width: 1px;
    height: 16px;
    background: rgba(255, 255, 255, 0.2);
}

.control-btn {
    background: none;
    border: none;
    color: white;
    font-size: 1.2rem;
    cursor: pointer;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.control-btn:hover {
    transform: scale(1.1);
}

/* Custom Switch Appearance */
.control-toggle input {
    appearance: none;
    width: 30px;
    height: 16px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 20px;
    position: relative;
    cursor: pointer;
    transition: var(--transition);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.control-toggle input::before {
    content: '';
    position: absolute;
    width: 12px;
    height: 12px;
    background: white;
    border-radius: 50%;
    top: 1px;
    left: 1px;
    transition: var(--transition);
}

.control-toggle input:checked {
    background: var(--brand-green);
}

.control-toggle input:checked::before {
    left: 15px;
}

.hero h1 {
    font-size: clamp(3rem, 10vw, 5.5rem);
    font-weight: 800;
    margin-bottom: 1rem;
    line-height: 1.1;
}

.hero p {
    font-size: 1.25rem;
    margin-bottom: 2.5rem;
    opacity: 0.9;
}

/* Buttons - From Brand Identity */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 0.375rem;
    /* rounded-md */
    font-weight: 500;
    font-size: 0.875rem;
    /* text-sm */
    padding: 0.625rem 1.25rem;
    transition: var(--transition);
    cursor: pointer;
    text-decoration: none;
    border: 1px solid transparent;
}

.btn-lg {
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
}

.btn-primary {
    background: var(--brand-green);
    color: var(--card-white);
}

.btn-primary:hover {
    filter: brightness(0.9);
    /* 10% dark overlay */
}

/* Special Button for the Hero CTA */
.btn-hero {
    background: var(--brand-green);
    color: white;
    border: 2px solid var(--brand-gold);
    font-size: 1.125rem;
    padding: 1rem 2.5rem;
    font-weight: 700;
    text-transform: uppercase;
}

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

/* Features/Ease of Use */
.ease-of-use {
    background-color: var(--bg-light);
}

.section-title {
    text-align: center;
    margin-bottom: 4rem;
}

.section-title h2 {
    font-size: 2.5rem;
    color: var(--brand-green);
    margin-bottom: 1rem;
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2.5rem;
}

.feature-card {
    background: var(--card-white);
    padding: 2.5rem;
    border-radius: 0.75rem;
    border: 1px solid rgba(0, 0, 0, 0.05);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.02);
}

.feature-card h3 {
    color: var(--brand-green);
    margin-bottom: 1rem;
}

.feature-card p {
    color: var(--muted-fg);
}

/* Benefits Section */
.benefits {
    background-color: var(--fg-dark);
    color: var(--card-white);
}

.benefit-item {
    padding: 3rem;
    border-left: 6px solid var(--brand-gold);
    background: rgba(255, 255, 255, 0.03);
    border-radius: 0.5rem;
    margin-bottom: 2rem;
}

.benefit-item h3 {
    color: var(--brand-gold);
    margin-bottom: 0.5rem;
}

/* Showcase Section */
.showcase {
    background: var(--card-white);
}

.showcase-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 3rem;
}

.showcase-item {
    text-align: center;
}

.showcase-item img {
    width: 100%;
    max-width: 380px;
    /* Consistency Cap */
    display: block;
    margin-left: auto;
    margin-right: auto;
    border-radius: 0.75rem;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    margin-bottom: 1.5rem;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

/* Video Placeholder */
.video-placeholder {
    width: 100%;
    max-width: 900px;
    margin: 4rem auto;
    aspect-ratio: 16/9;
    background: #000;
    color: var(--brand-gold);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border: 4px dashed var(--brand-gold);
    border-radius: 12px;
}

/* Testimonials */
.testimonials {
    background: var(--bg-light);
}

.testimonial-card {
    background: var(--card-white);
    padding: 2.5rem;
    border-radius: 1rem;
    border: 1px solid rgba(0, 0, 0, 0.05);
    margin-bottom: 2rem;
    font-style: italic;
    font-size: 1.125rem;
    position: relative;
}

.testimonial-author {
    margin-top: 1rem;
    font-weight: 700;
    color: var(--brand-green);
    font-style: normal;
    font-family: var(--font-mono);
}

/* Installation Section */
.install-section {
    background: var(--bg-light);
}

.install-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 3rem;
    margin-top: 3rem;
}

.install-card {
    background: var(--card-white);
    padding: 2.5rem;
    border-radius: 1rem;
    border: 1px solid rgba(0, 0, 0, 0.05);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    text-align: left;
}

.install-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    text-align: center;
}

.install-card h3 {
    color: var(--brand-green);
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    text-align: center;
}

.install-steps {
    list-style: none;
    counter-reset: step-counter;
    padding: 0;
}

.install-steps li {
    counter-increment: step-counter;
    margin-bottom: 1rem;
    padding-left: 2.5rem;
    position: relative;
    line-height: 1.6;
    color: var(--muted-fg);
}

.install-steps li::before {
    content: counter(step-counter);
    position: absolute;
    left: 0;
    top: 0;
    background: var(--brand-green);
    color: white;
    width: 1.75rem;
    height: 1.75rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.875rem;
}

.icon-inline {
    font-size: 1.2rem;
    vertical-align: middle;
}

/* Tooltip - Now a Link */
#pwa-tooltip {
    display: none;
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--brand-green);
    color: white;
    padding: 1rem 2rem;
    border-radius: 50px;
    border: 3px solid var(--brand-gold);
    z-index: 1000;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    text-decoration: none;
    transition: var(--transition);
    cursor: pointer;
}

#pwa-tooltip:hover {
    transform: translateX(-50%) translateY(-3px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
}

@media (max-width: 768px) {
    .container {
        padding: 0 1.5rem;
    }

    /* Fix video truncation on mobile - scale based on height instead of width */
    #video-container {
        width: 177.78vh;
        /* 16:9 ratio based on height */
        height: 100vh;
        min-width: 100vw;
        min-height: 56.25vw;
    }

    .video-overlay-shade {
        background: rgba(0, 0, 0, 0.5);
        /* Slightly darker on mobile for better text contrast */
    }

    /* Reduce logo to original size on mobile */
    .main-logo {
        height: 60px !important;
        width: 60px !important;
        filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.3)) !important;
    }

    .logo-overlay {
        top: 1rem;
        left: 1rem;
    }

    /* Adjust hero layout for mobile */
    .hero {
        min-height: 100vh;
        height: auto;
    }

    .hero-content-wrapper {
        padding: 2rem 1.5rem;
        justify-content: space-between;
        min-height: 100vh;
    }

    .hero-top {
        padding-top: 4rem;
    }

    .hero-bottom {
        padding-bottom: 1rem;
    }

    /* Reduce header size on mobile */
    .hero h1 {
        font-size: 2rem;
        line-height: 1.2;
        margin-bottom: 0.5rem;
    }

    .hero p {
        font-size: 1rem;
        margin-bottom: 1.5rem;
    }

    /* Adjust CTA button for mobile */
    .btn-hero {
        font-size: 0.875rem;
        padding: 0.75rem 1.5rem;
    }

    /* Adjust video controls for mobile */
    .hero-controls {
        bottom: 1rem;
        right: 1rem;
        padding: 0.5rem 0.8rem;
        gap: 0.75rem;
    }

    .control-toggle {
        font-size: 0.65rem;
        gap: 0.5rem;
    }

    .control-toggle input {
        width: 26px;
        height: 14px;
    }

    .control-toggle input::before {
        width: 10px;
        height: 10px;
    }

    .control-toggle input:checked::before {
        left: 13px;
    }

    .control-btn {
        font-size: 1rem;
    }

    .section-padding {
        padding: 60px 0;
    }
}

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

    .hero p {
        font-size: 0.9rem;
    }

    .btn-hero {
        font-size: 0.8rem;
        padding: 0.65rem 1.25rem;
    }

    .hero-top {
        padding-top: 3rem;
    }
}
/* CTA Buttons Group */
.cta-group {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
    margin-top: 1rem;
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.1) !important;
    backdrop-filter: blur(4px);
    border: 2px solid white !important;
    color: white !important;
}

.btn-secondary:hover {
    background: white !important;
    color: var(--brand-green) !important;
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

@media (max-width: 480px) {
    .cta-group {
        flex-direction: column;
        align-items: center;
        width: 100%;
    }
    
    .cta-group .btn {
        width: 100%;
        max-width: 300px;
    }
}

/* Expandable Story Section */
.story-toggle {
    margin-top: 1rem;
    background: transparent;
    border: 1px solid var(--brand-green);
    color: var(--brand-green);
    padding: 0.5rem 1rem;
    border-radius: 2rem;
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.story-toggle:hover {
    background: var(--brand-green);
    color: white;
}

.story-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    text-align: left;
    background: #fcfcfc;
    border-radius: 0.5rem;
    margin-top: 1rem;
}

.story-content.open {
    max-height: 2000px;
    border: 1px solid rgba(33, 196, 93, 0.1);
}

.story-inner {
    padding: 1.5rem;
}

.story-intro {
    font-size: 0.95rem;
    color: var(--fg-dark);
    margin-bottom: 1.5rem;
    line-height: 1.6;
    border-bottom: 1px solid #eee;
    padding-bottom: 1rem;
}

.story-content h4 {
    color: var(--brand-green-dark);
    font-size: 1rem;
    margin-top: 1.5rem;
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.story-features {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.story-feature-item dt {
    font-weight: 700;
    color: var(--brand-dark);
    margin-bottom: 0.25rem;
    font-size: 0.9rem;
}

.story-feature-item dd {
    font-size: 0.85rem;
    color: var(--muted-fg);
    margin-left: 0;
    line-height: 1.5;
}

/* Order Deadline Banner */
.order-deadline-banner {
    background: rgba(0, 0, 0, 0.6);
    border: 1px solid var(--brand-gold);
    border-radius: 0.5rem;
    padding: 1rem 1.5rem;
    margin: 1.5rem auto 0;
    max-width: 600px;
    backdrop-filter: blur(4px);
    animation: pulse-border 2s infinite;
}

@keyframes pulse-border {
    0% { border-color: var(--brand-gold); box-shadow: 0 0 0 0 rgba(224, 164, 13, 0.4); }
    70% { border-color: var(--brand-gold-dark); box-shadow: 0 0 0 10px rgba(224, 164, 13, 0); }
    100% { border-color: var(--brand-gold); box-shadow: 0 0 0 0 rgba(224, 164, 13, 0); }
}

.order-countdown {
    display: block;
    margin-top: 0.5rem;
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--brand-gold);
    font-family: var(--font-mono);
}
