/* Global Styles */
:root {
    /* Terminal Amber Editorial palette */
    --bg: #0D0A06;
    --panel: #161009;
    --panel-2: #1C1410;
    --amber: #F5A623;
    --amber-deep: #E8821E;
    --amber-soft: rgba(245, 166, 35, 0.14);
    --cream: #F2EAD9;
    --muted: #A99F8C;
    --hairline: rgba(245, 166, 35, 0.14);
    --green: #37D28C;
    --red: #E8564A;
    --font-display: 'Fraunces', Georgia, serif;
    --font-body: 'Inter', 'Segoe UI', sans-serif;
    --font-mono: 'JetBrains Mono', 'Fira Code', monospace;

    /* Legacy aliases so untouched PHP pages keep working */
    --primary-color: #F5A623;
    --secondary-color: #E8821E;
    --bg-dark: #0D0A06;
    --bg-card: #1C1410;
    --text-light: #F2EAD9;
    --text-muted: #A99F8C;
    --font-main: 'Inter', 'Segoe UI', sans-serif;
    --font-heading: 'Fraunces', Georgia, serif;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes float {
    0% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-20px);
    }

    100% {
        transform: translateY(0px);
    }
}

@keyframes rotate-gradient {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

@keyframes blob-movement {
    0% {
        transform: translate(0, 0) scale(1);
    }

    33% {
        transform: translate(30px, -50px) scale(1.1);
    }

    66% {
        transform: translate(-20px, 20px) scale(0.9);
    }

    100% {
        transform: translate(0, 0) scale(1);
    }
}

@keyframes shine {
    0% {
        left: -100%;
    }

    20% {
        left: 100%;
    }

    100% {
        left: 100%;
    }
}

.reveal {
    animation: fadeInUp 0.8s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

/* Background Aurora Blobs */
.bg-blobs {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
    pointer-events: none;
}

.blob {
    position: absolute;
    width: 500px;
    height: 500px;
    border-radius: 50%;
    filter: blur(100px);
    opacity: 0.15;
    animation: blob-movement 20s infinite alternate cubic-bezier(0.4, 0, 0.2, 1);
}

.blob-1 {
    top: -10%;
    left: -10%;
    background: var(--primary-color);
}

.blob-2 {
    bottom: -10%;
    right: -10%;
    background: var(--secondary-color);
}

.blob-3 {
    top: 40%;
    left: 30%;
    background: #7000ff;
    width: 300px;
    height: 300px;
    animation-delay: -5s;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: var(--font-main);
    background-color: var(--bg-dark);
    color: var(--text-light);
    line-height: 1.6;
    overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-display);
    font-weight: 700;
    letter-spacing: -0.01em;
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

/* Utilities */
.container {
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 24px;
}

@media (max-width: 768px) {
    .container {
        padding: 0 15px;
    }
}

.text-primary {
    color: var(--primary-color) !important;
}

.bg-dark-glass {
    background-color: rgba(13, 10, 6, 0.85) !important;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--hairline);
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 32px;
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: none;
    gap: 10px;
}

.btn-primary {
    background: var(--amber) !important;
    color: #161009 !important;
    font-weight: 700;
    box-shadow: 0 6px 18px rgba(245, 166, 35, 0.25);
    position: relative;
    overflow: hidden;
}

.btn-primary::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.35), transparent);
    transition: 0.5s;
}

.btn-primary:hover::after {
    left: 100%;
}

.btn-primary:hover {
    background: var(--amber-deep) !important;
    transform: translateY(-2px);
    box-shadow: 0 10px 24px rgba(245, 166, 35, 0.4);
}

.btn-outline-light {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #fff;
}

.btn-outline-light:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: #fff;
    transform: translateY(-3px);
}

/* Navbar */
.navbar {
    padding: 15px 0;
}

.navbar-brand {
    font-size: 1.6rem;
    font-weight: 700;
    letter-spacing: -0.5px;
}

.nav-link {
    font-weight: 500;
    transition: color 0.3s ease;
}

/* Hero Section */
.hero {
    padding: 120px 0 80px;
    background: radial-gradient(circle at top right, rgba(0, 212, 255, 0.15), transparent 60%);
}

.hero h1 {
    font-size: 4.5rem;
    line-height: 1.1;
}

@media (max-width: 768px) {
    .hero h1 {
        font-size: 2.8rem;
    }
}

.particles-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
}

.hero-float-wrapper {
    animation: float 8s infinite ease-in-out;
    display: inline-block;
    width: 100%;
}

.hero-image-container {
    position: relative;
    z-index: 2;
    transition: transform 0.2s ease-out;
    /* Sharper response for mouse tracking */
    display: inline-block;
}

.hero-image-container:hover {
    /* No longer need transform here as it's handled by JS, but keeping for non-JS fallback */
    transform: perspective(1000px) scale(1.05);
}

.hero-image-container::before {
    content: '';
    position: absolute;
    top: -30px;
    left: -30px;
    right: -30px;
    bottom: -30px;
    background: radial-gradient(circle, rgba(0, 212, 255, 0.2) 0%, transparent 70%);
    border-radius: 50%;
    z-index: -1;
    pointer-events: none;
    filter: blur(40px);
}

/* Product Cards */
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
}

.product-card {
    background: var(--panel);
    border: 1px solid var(--hairline);
    border-radius: 14px;
    overflow: hidden;
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1), border-color 0.35s ease, box-shadow 0.35s ease;
    position: relative;
}

.product-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(245, 166, 35, 0.06), transparent);
    animation: shine 9s infinite;
    pointer-events: none;
}

.product-card:hover {
    border-color: rgba(245, 166, 35, 0.45);
    transform: translateY(-6px);
    box-shadow: 0 24px 48px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(245, 166, 35, 0.1), 0 8px 32px rgba(245, 166, 35, 0.07);
}

.product-image {
    height: 240px;
    background: linear-gradient(180deg, #100b07 0%, #0a0705 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.product-image img {
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.product-card:hover .product-image img {
    transform: scale(1.06);
}

.product-info {
    padding: 25px;
    position: relative;
    z-index: 1;
}

.product-title {
    font-size: 1.4rem;
    margin-bottom: 12px;
    font-family: var(--font-display);
}

.product-price {
    font-size: 1.35rem;
    font-weight: 700;
    font-family: var(--font-mono);
    color: var(--amber);
    margin-bottom: 20px;
}

/* Section Titles */
.section-title {
    font-size: 2.5rem;
    text-align: left;
    margin-bottom: 60px;
    position: relative;
    font-family: var(--font-display);
    color: var(--cream);
}

.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background: var(--amber);
    margin: 15px 0 0;
    border-radius: 2px;
}

/* Footer */
footer {
    background-color: #0A0704;
    padding: 80px 0 40px;
    border-top: 1px solid var(--hairline);
}

.footer-col h3 {
    font-size: 1.2rem;
    margin-bottom: 25px;
    color: var(--cream);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.footer-col ul li {
    margin-bottom: 12px;
}

.footer-col ul li a {
    color: var(--text-muted);
    font-size: 0.95rem;
}

.footer-col ul li a:hover {
    color: var(--primary-color);
    padding-left: 5px;
}

/* Mobile Bottom Navigation */
.mobile-bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 70px;
    background-color: rgba(13, 10, 6, 0.95);
    backdrop-filter: blur(20px);
    display: flex;
    justify-content: space-around;
    align-items: center;
    border-top: 1px solid var(--hairline);
    z-index: 1000;
}

.mobile-bottom-nav .nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    font-size: 0.75rem;
    font-weight: 500;
}

.mobile-bottom-nav .nav-item i {
    font-size: 1.4rem;
    margin-bottom: 4px;
}

.mobile-bottom-nav .nav-item.active {
    color: var(--primary-color);
}

/* Forms */
.form-control,
.form-select {
    background-color: rgba(255, 255, 255, 0.03) !important;
    border: 1px solid var(--hairline) !important;
    color: #fff !important;
    padding: 12px 20px !important;
    border-radius: 10px !important;
}

.form-control:focus {
    border-color: var(--amber) !important;
    box-shadow: 0 0 0 0.25rem rgba(245, 166, 35, 0.12) !important;
    background-color: rgba(255, 255, 255, 0.05) !important;
}

/* Animations Trigger */
.reveal-visible {
    opacity: 1;
    transform: translateY(0);
}

/* Marketing Banner Responsive Fixes */
@media (max-width: 768px) {
    .banner-headline {
        font-size: 1.1rem !important;
        padding: 10px 15px !important;
        width: 90% !important;
    }

    .banner-wrapper {
        max-height: 180px !important;
    }
}

/* Typewriter Effect */
.typewriter {
    display: inline;
}

.cursor {
    display: inline-block;
    color: var(--primary-color);
    animation: blink 1s step-end infinite;
    margin-left: 4px;
    font-weight: 200;
}

@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0; }
}