/* SeedTech Premium Theme - Emerald & Gold */
:root {
    --primary-dark: #051a05;
    --primary-green: #0a2e0a;
    --accent-green: #1a4d1a;
    --highlight-green: #2d5a2d;
    --gold-light: #FFD700;
    --gold-dark: #C5A000;
    --glass-bg: rgba(255, 255, 255, 0.05);
    --glass-border: rgba(255, 215, 0, 0.2);
    --text-light: #ffffff;
    --text-dim: rgba(255, 255, 255, 0.8);
}

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

body {
    font-family: 'Inter', sans-serif;
    color: var(--text-light);
    background-color: transparent;
    overflow-x: hidden;
    min-height: 100vh;
    position: relative;
}

/* Fixed background using pseudo-element (Safari-compatible) */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    /* Using vh to avoid mobile browser resize jumps */
    background-color: var(--primary-dark);
    background-image:
        linear-gradient(rgba(5, 26, 5, 0.6), rgba(5, 26, 5, 0.8)),
        url('vintage_hawaii_bg.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    z-index: -1;
    -webkit-transform: translate3d(0, 0, 0);
    /* Trigger hardware acceleration */
    transform: translate3d(0, 0, 0);
}

h1,
h2,
h3,
h4,
.serif-font {
    font-family: 'Montserrat', sans-serif;
    letter-spacing: -0.02em;
}

.handwritten-font {
    font-family: 'Caveat', cursive;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    font-weight: 700;
}

/* Glassmorphism Utilities */
.glass {
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.3);
}

.text-gold {
    background: linear-gradient(135deg, var(--gold-light), var(--gold-dark));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0px 0px 20px rgba(255, 215, 0, 0.3);
}

.gold-border-bottom {
    position: relative;
}

.gold-border-bottom::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 50px;
    height: 2px;
    background: linear-gradient(90deg, var(--gold-light), transparent);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.section {
    padding: 100px 0;
    position: relative;
}

/* Nav Styles */
nav {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    max-width: 1200px;
    z-index: 1000;
    border-radius: 50px;
    transition: all 0.3s ease;
    padding: 15px 30px !important;
}

nav.scrolled {
    top: 0;
    width: 100%;
    border-radius: 0;
    border-bottom: 1px solid var(--glass-border);
    border-left: none;
    border-right: none;
    border-top: none;
}

.nav-links {
    display: flex;
    gap: 25px;
}

.nav-link {
    position: relative;
    color: var(--text-light);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    letter-spacing: 0.5px;
    padding: 5px 10px;
    transition: color 0.3s;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 1px;
    background: var(--gold-light);
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.nav-link:hover {
    color: var(--gold-light);
}

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

/* Hero Section */
.hero-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    padding-top: 80px;
    background: transparent;
    /* Allow body background to show */
}

.hero-bg-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100vw;
    height: 100vh;
    background: radial-gradient(circle at center, rgba(10, 46, 10, 0.4) 0%, transparent 70%);
    z-index: -1;
    animation: pulse-glow 8s infinite alternate;
}

.hero-content {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 50px;
    align-items: center;
}

.main-title {
    font-size: 4.5rem;
    line-height: 1.1;
    margin-bottom: 25px;
    letter-spacing: -1px;
}

.hero-logo {
    width: clamp(220px, 30vw, 350px);
    max-width: 350px;
    height: auto;
    margin: 20px auto;
    display: block;
    border-radius: 50%;
    filter: drop-shadow(0 0 15px rgba(255, 215, 0, 0.3));
    opacity: 0.95;
    transition: transform 0.3s ease;
}

.hero-logo:hover {
    transform: scale(1.05);
    filter: drop-shadow(0 0 20px rgba(255, 215, 0, 0.5));
}

.subtitle {
    font-size: 1.2rem;
    font-weight: 300;
    color: var(--text-dim);
    margin-bottom: 40px;
    max-width: 600px;
    line-height: 1.8;
}

/* Premium Buttons */
.cta-button {
    background: linear-gradient(135deg, var(--gold-dark), var(--gold-light));
    color: #000;
    padding: 16px 36px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 1px;
    display: inline-block;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(197, 160, 0, 0.3);
    border: none;
    position: relative;
    overflow: hidden;
    cursor: pointer;
}

.cta-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    transition: 0.5s;
}

.cta-button:hover::before {
    left: 100%;
}

.cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(197, 160, 0, 0.5);
    background: linear-gradient(135deg, var(--gold-light), #ffd900);
}

.cta-button.secondary {
    background: transparent;
    border: 1px solid var(--gold-light);
    color: var(--gold-light);
    box-shadow: none;
}

.cta-button.secondary:hover {
    background: rgba(255, 215, 0, 0.1);
    color: #fff;
}

/* Seed Cards */
.seeds-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin: 60px 0;
}

.seed-card {
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    overflow: hidden;
    transition: all 0.4s ease;
    position: relative;
}

.seed-card:hover {
    transform: translateY(-10px);
    border-color: var(--gold-light);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.4);
}

.seed-image {
    height: 250px;
    width: 100%;
    background: linear-gradient(45deg, #0e290e, #1a4d1a);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.seed-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.seed-card:hover .seed-image img {
    transform: scale(1.1);
}

.seed-info {
    padding: 25px;
}

.seed-name {
    font-family: 'Playfair Display', serif;
    font-size: 1.6rem;
    color: var(--gold-light);
    margin-bottom: 5px;
}

.seed-vendor {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-dim);
    margin-bottom: 15px;
}

.seed-details {
    margin-bottom: 20px;
    font-size: 0.95rem;
    color: var(--text-dim);
    line-height: 1.5;
}

.seed-price {
    font-size: 1.8rem;
    font-weight: 700;
    color: white;
    display: block;
    margin-bottom: 20px;
}

/* Feature Cards */
.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.feature-card {
    background: linear-gradient(160deg, rgba(255, 255, 255, 0.05) 0%, rgba(255, 255, 255, 0.02) 100%);
    border: 1px solid rgba(255, 255, 255, 0.05);
    padding: 40px 30px;
    border-radius: 24px;
    text-align: center;
    transition: all 0.3s ease;
}

.feature-card:hover {
    background: linear-gradient(160deg, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0.05) 100%);
    border-color: var(--gold-light);
    transform: translateY(-5px);
}

.feature-icon {
    font-size: 2.5rem;
    color: var(--gold-light);
    margin-bottom: 20px;
    text-shadow: 0 0 15px rgba(255, 215, 0, 0.4);
}

/* Animations */
@keyframes pulse-glow {
    0% {
        opacity: 0.3;
        transform: translate(-50%, -50%) scale(0.8);
    }

    100% {
        opacity: 0.6;
        transform: translate(-50%, -50%) scale(1.1);
    }
}

@keyframes float {
    0% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-15px);
    }

    100% {
        transform: translateY(0px);
    }
}

.animate-float {
    animation: float 6s ease-in-out infinite;
}

/* Cart */
.cart-icon {
    background: rgba(10, 46, 10, 0.5) !important;
    backdrop-filter: blur(10px);
    border: 1px solid var(--gold-light) !important;
    box-shadow: 0 0 15px rgba(255, 215, 0, 0.2);
    transition: all 0.3s ease;
}

.cart-icon:hover {
    box-shadow: 0 0 25px rgba(255, 215, 0, 0.5);
    transform: scale(1.1);
}

.cart-count {
    background: var(--gold-light) !important;
    color: #000 !important;
}

/* Mobile */
@media (max-width: 768px) {
    .main-title {
        font-size: 2.5rem;
        /* Reduced from 3rem */
        text-align: center;
    }

    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-image {
        display: none;
    }

    /* Mobile Nav */
    nav {
        width: 100%;
        top: 0;
        left: 0;
        transform: none;
        padding: 15px 20px !important;
        border-radius: 0;
        border-bottom: 1px solid var(--glass-border);
        background: rgba(5, 26, 5, 0.95);
        /* darker background for readability */
    }

    #mobileMenuToggle {
        display: block !important;
        cursor: pointer;
        z-index: 1001;
    }

    .nav-links {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        background: rgba(5, 26, 5, 0.98);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 40px !important;
        z-index: 1000;
        padding-top: 60px;
    }

    .nav-links.active {
        display: flex;
        animation: fadeIn 0.3s ease;
    }

    .nav-link {
        font-size: 1.5rem;
    }

    /* Grid Adjustments */
    .seeds-grid {
        grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
        /* Narrower cards to fit small screens */
        gap: 20px;
    }

    .hero-logo {
        width: clamp(200px, 60vw, 280px);
        /* Responsive sizing for mobile */
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

/* Forms & Checkout Styles */
input,
select,
textarea {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: white;
    padding: 12px;
    border-radius: 8px;
    width: 100%;
    margin-bottom: 15px;
    font-family: inherit;
    transition: all 0.3s ease;
}

input:focus,
select:focus,
textarea:focus {
    outline: none;
    border-color: var(--gold-light);
    background: rgba(255, 255, 255, 0.1);
    box-shadow: 0 0 10px rgba(255, 215, 0, 0.1);
}

label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: var(--gold-light);
}

/* Table Styles (for Cart) */
table {
    width: 100%;
    border-collapse: collapse;
}

th {
    text-align: left;
    padding: 15px;
    border-bottom: 1px solid var(--glass-border);
    color: var(--gold-light);
    font-family: 'Playfair Display', serif;
}

td {
    padding: 15px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

/* Breadcrumbs / Page Headers */
.page-header {
    padding-top: 150px;
    padding-bottom: 50px;
    text-align: center;
    background: radial-gradient(circle at center, rgba(10, 46, 10, 0.4) 0%, transparent 70%);
}