/* ============================================
   HIGHGROWTH DRONES — Apple-Inspired Design
   ============================================ */

:root {
    --primary: #0071e3;
    --primary-hover: #0077ED;
    --dark: #1d1d1f;
    --dark-bg: #000000;
    --dark-card: #161617;
    --gray-bg: #f5f5f7;
    --text-primary: #1d1d1f;
    --text-secondary: #86868b;
    --text-light: #f5f5f7;
    --border: rgba(255, 255, 255, 0.08);
    --transition: all 0.3s cubic-bezier(0.25, 0.1, 0.25, 1);
    --font: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font);
    color: var(--text-primary);
    background: #fff;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

main {
    flex: 1;
}

/* ============================================
   GLASSMORPHISM NAVBAR
   ============================================ */

.navbar-glass {
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: saturate(180%) blur(20px);
    -webkit-backdrop-filter: saturate(180%) blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    padding: 0 0;
    transition: var(--transition);
    z-index: 1000;
}

.navbar-glass .navbar-brand {
    color: var(--text-light) !important;
    font-weight: 600;
    font-size: 1.1rem;
    letter-spacing: -0.01em;
}

.navbar-glass .nav-link {
    color: rgba(245, 245, 247, 0.8) !important;
    font-size: 0.85rem;
    font-weight: 400;
    padding: 1rem 0.75rem !important;
    transition: var(--transition);
}

.navbar-glass .nav-link:hover {
    color: #fff !important;
}

.brand-icon {
    display: inline-block;
    font-size: 1rem;
    margin-right: 2px;
}

.cart-badge {
    position: absolute;
    top: 4px;
    right: -4px;
    background: var(--primary);
    color: #fff;
    font-size: 0.6rem;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
}

.dropdown-glass {
    background: rgba(30, 30, 30, 0.95);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 0.5rem;
}

.dropdown-glass .dropdown-item {
    color: rgba(255, 255, 255, 0.85);
    border-radius: 8px;
    padding: 0.5rem 1rem;
    font-size: 0.85rem;
}

.dropdown-glass .dropdown-item:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
}

.dropdown-glass .dropdown-divider {
    border-color: rgba(255, 255, 255, 0.1);
}

/* ============================================
   HERO SECTION
   ============================================ */

.hero-apple {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #000;
    background-image:
        radial-gradient(ellipse at 50% 0%, rgba(0, 113, 227, 0.15) 0%, transparent 60%),
        radial-gradient(ellipse at 80% 50%, rgba(100, 60, 180, 0.1) 0%, transparent 50%),
        radial-gradient(ellipse at 20% 80%, rgba(0, 113, 227, 0.08) 0%, transparent 50%);
    overflow: hidden;
}

.hero-bg-overlay {
    position: absolute;
    inset: 0;
    background: url('https://images.unsplash.com/photo-1527977966376-1c8408f9f108?w=1920&q=80') center/cover no-repeat;
    opacity: 0.2;
    filter: blur(1px);
}

.hero-content {
    position: relative;
    z-index: 2;
    padding: 120px 0 80px;
}

.hero-eyebrow {
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.15em;
    color: var(--text-secondary);
    margin-bottom: 1rem;
    text-transform: uppercase;
}

.hero-title {
    font-size: clamp(3rem, 8vw, 5.5rem);
    font-weight: 800;
    color: var(--text-light);
    line-height: 1.05;
    letter-spacing: -0.03em;
    margin-bottom: 1.5rem;
    background: linear-gradient(to right, #fff, rgba(255,255,255,0.7));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: clamp(1.1rem, 2.5vw, 1.5rem);
    color: var(--text-secondary);
    font-weight: 400;
    margin-bottom: 2.5rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.hero-cta {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.hero-scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
}

.scroll-line {
    width: 1px;
    height: 60px;
    background: linear-gradient(to bottom, rgba(255,255,255,0.4), transparent);
    animation: scrollPulse 2s ease-in-out infinite;
}

@keyframes scrollPulse {
    0%, 100% { opacity: 0.3; transform: scaleY(0.5); }
    50% { opacity: 1; transform: scaleY(1); }
}

/* ============================================
   BUTTONS — Apple Style
   ============================================ */

.btn-apple-primary {
    display: inline-block;
    padding: 12px 28px;
    background: var(--primary);
    color: #fff;
    border-radius: 980px;
    font-size: 0.95rem;
    font-weight: 500;
    text-decoration: none;
    transition: var(--transition);
    border: none;
    cursor: pointer;
}

.btn-apple-primary:hover {
    background: var(--primary-hover);
    color: #fff;
    transform: scale(1.02);
}

.btn-apple-primary.btn-lg {
    padding: 16px 36px;
    font-size: 1.05rem;
}

.btn-apple-secondary {
    display: inline-block;
    padding: 12px 28px;
    background: transparent;
    color: var(--text-light);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 980px;
    font-size: 0.95rem;
    font-weight: 500;
    text-decoration: none;
    transition: var(--transition);
}

.btn-apple-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    border-color: rgba(255, 255, 255, 0.5);
}

.btn-apple-link {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    color: var(--primary);
    font-size: 1.1rem;
    font-weight: 500;
    text-decoration: none;
    transition: var(--transition);
}

.btn-apple-link:hover {
    color: var(--primary-hover);
    gap: 0.7rem;
}

/* ============================================
   STATS SECTION
   ============================================ */

.stats-section {
    background: var(--dark-bg);
    padding: 4rem 0;
    border-bottom: 1px solid var(--border);
}

.stat-number {
    font-size: 3rem;
    font-weight: 700;
    color: var(--text-light);
    letter-spacing: -0.02em;
}

.stat-label {
    font-size: 0.85rem;
    color: var(--text-secondary);
    font-weight: 500;
    margin-top: 0.25rem;
}

/* ============================================
   SECTION STYLES
   ============================================ */

.section-dark {
    background: var(--dark-bg);
    padding: 7rem 0;
    color: var(--text-light);
}

.section-light {
    background: var(--gray-bg);
    padding: 7rem 0;
}

.section-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto;
}

.section-eyebrow {
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    color: var(--text-secondary);
    text-transform: uppercase;
    margin-bottom: 0.75rem;
}

.section-title {
    font-size: clamp(2rem, 5vw, 3.2rem);
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1.1;
    margin-bottom: 1rem;
}

.section-dark .section-title {
    color: var(--text-light);
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--text-secondary);
    font-weight: 400;
    line-height: 1.5;
}

/* ============================================
   PRODUCT CARDS — Apple Style
   ============================================ */

.product-card-apple {
    background: var(--dark-card);
    border-radius: 20px;
    overflow: hidden;
    transition: var(--transition);
    position: relative;
    height: 100%;
}

.product-card-apple:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
}

.badge-apple {
    position: absolute;
    top: 16px;
    left: 16px;
    background: #ff3b30;
    color: #fff;
    padding: 4px 12px;
    border-radius: 980px;
    font-size: 0.75rem;
    font-weight: 600;
    z-index: 2;
}

.product-image-wrap {
    height: 240px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: linear-gradient(135deg, #1a1a2e, #16213e);
}

.product-image-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.25, 0.1, 0.25, 1);
}

.product-card-apple:hover .product-image-wrap img {
    transform: scale(1.08);
}

.product-placeholder {
    font-size: 3.5rem;
    color: rgba(255, 255, 255, 0.3);
}

.product-info {
    padding: 1.5rem;
}

.product-brand {
    font-size: 0.75rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-weight: 500;
}

.product-name {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-light);
    margin: 0.25rem 0 0.75rem;
    letter-spacing: -0.01em;
}

.product-price {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.price-now {
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--text-light);
}

.price-was {
    font-size: 0.85rem;
    color: var(--text-secondary);
    text-decoration: line-through;
}

/* ============================================
   HIGHLIGHT SECTIONS
   ============================================ */

.section-highlight {
    background: #fff;
    padding: 7rem 0;
    overflow: hidden;
}

.highlight-image-wrap {
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
}

.highlight-image {
    width: 100%;
    height: 450px;
    object-fit: cover;
    transition: transform 0.8s cubic-bezier(0.25, 0.1, 0.25, 1);
}

.highlight-image-wrap:hover .highlight-image {
    transform: scale(1.05);
}

.highlight-content {
    padding: 2rem 0 2rem 3rem;
}

@media (max-width: 991px) {
    .highlight-content {
        padding: 2rem 0 0 0;
    }
}

.highlight-title {
    font-size: clamp(1.8rem, 4vw, 2.8rem);
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1.1;
    margin-bottom: 1.5rem;
}

.section-dark .highlight-title {
    color: var(--text-light);
}

.highlight-text {
    font-size: 1.05rem;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 1.5rem;
}

/* ============================================
   CATEGORY CARDS
   ============================================ */

.category-card-apple {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    height: 280px;
    background: #e8e8ed;
    transition: var(--transition);
}

.category-card-apple:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.12);
}

.category-card-apple img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.25, 0.1, 0.25, 1);
}

.category-card-apple:hover img {
    transform: scale(1.08);
}

.category-placeholder {
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    color: rgba(0, 0, 0, 0.15);
    background: linear-gradient(135deg, #e8e8ed, #d2d2d7);
}

.category-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 2rem 1.5rem;
    background: linear-gradient(to top, rgba(0,0,0,0.7), transparent);
}

.category-overlay h3 {
    font-size: 1.3rem;
    font-weight: 600;
    color: #fff;
    margin-bottom: 0.25rem;
}

.category-cta {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.8);
    font-weight: 500;
}

/* ============================================
   FEATURES SECTION
   ============================================ */

.section-features {
    background: #fff;
    padding: 7rem 0;
}

.feature-card-apple {
    text-align: center;
    padding: 2rem 1rem;
}

.feature-icon-apple {
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 16px;
    background: var(--gray-bg);
    color: var(--primary);
    font-size: 1.4rem;
    margin: 0 auto 1.25rem;
    transition: var(--transition);
}

.feature-card-apple:hover .feature-icon-apple {
    background: var(--primary);
    color: #fff;
    transform: scale(1.1);
}

.feature-card-apple h4 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    letter-spacing: -0.01em;
}

.feature-card-apple p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* ============================================
   CTA SECTION
   ============================================ */

.section-cta {
    background: linear-gradient(135deg, #1a1a2e 0%, #0f3460 100%);
    padding: 7rem 0;
}

.cta-title {
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 700;
    color: var(--text-light);
    letter-spacing: -0.02em;
    margin-bottom: 1rem;
}

.cta-subtitle {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
}

/* ============================================
   FOOTER — Apple Style
   ============================================ */

.footer-apple {
    background: var(--dark-bg);
    color: var(--text-secondary);
    padding-top: 3rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-top {
    padding-bottom: 1.5rem;
}

.footer-brand {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--text-light);
    margin-bottom: 0.75rem;
}

.footer-desc {
    font-size: 0.85rem;
    line-height: 1.6;
    color: var(--text-secondary);
}

.footer-social {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.footer-social a {
    color: var(--text-secondary);
    font-size: 1.2rem;
    transition: var(--transition);
}

.footer-social a:hover {
    color: var(--text-light);
    transform: translateY(-2px);
}

.footer-heading {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-light);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 1rem;
}

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

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

.footer-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.85rem;
    transition: var(--transition);
}

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

.footer-contact li {
    font-size: 0.85rem;
    margin-bottom: 0.5rem;
}

.footer-contact i {
    margin-right: 0.5rem;
    width: 16px;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding: 1.5rem 0;
    text-align: center;
}

.footer-bottom p {
    font-size: 0.8rem;
    margin: 0;
    color: var(--text-secondary);
}

/* ============================================
   PRODUCT LIST PAGE
   ============================================ */

.product-card {
    transition: var(--transition);
    border: none;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 32px rgba(0,0,0,0.12);
}

.product-card .card-img-top {
    height: 220px;
    object-fit: cover;
}

/* Badge styles */
.discount-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    z-index: 1;
    border-radius: 980px;
    font-size: 0.75rem;
    padding: 4px 10px;
}

.featured-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    z-index: 1;
    border-radius: 980px;
    font-size: 0.75rem;
    padding: 4px 10px;
}

/* Price */
.price-current {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--primary);
}

.price-original {
    font-size: 0.9rem;
    text-decoration: line-through;
    color: #999;
}

/* Rating stars */
.stars {
    color: #ffc107;
}

/* Product detail gallery */
.product-gallery img {
    cursor: pointer;
    border: 2px solid transparent;
    border-radius: 8px;
    transition: var(--transition);
}

.product-gallery img:hover,
.product-gallery img.active {
    border-color: var(--primary);
}

/* Spec table */
.spec-table th {
    width: 40%;
    background-color: var(--gray-bg);
}

/* Cart quantity */
.quantity-input {
    width: 80px;
    text-align: center;
}

/* Category cards (list page) */
.category-card {
    transition: var(--transition);
    overflow: hidden;
    border-radius: 16px;
    border: none;
}

.category-card:hover {
    transform: translateY(-3px);
}

.category-card .card-img-top {
    height: 180px;
    object-fit: cover;
}

/* Why choose us (non-home pages) */
.feature-icon {
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: #e7f1ff;
    color: var(--primary);
    font-size: 1.5rem;
    margin: 0 auto 1rem;
}

/* Checkout */
.order-summary {
    background: var(--gray-bg);
    border-radius: 16px;
    padding: 1.5rem;
}

/* Placeholder image */
.placeholder-img {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 3rem;
}

/* ============================================
   TWO-FACTOR AUTH FORMS
   ============================================ */

.card input[type="text"],
.card input[type="password"],
.card input[type="number"],
.card select {
    display: block;
    width: 100%;
    padding: 0.5rem 0.75rem;
    font-size: 1rem;
    line-height: 1.5;
    color: #212529;
    background-color: #fff;
    border: 1px solid #dee2e6;
    border-radius: 10px;
    transition: var(--transition);
}

.card input[type="text"]:focus,
.card input[type="password"]:focus,
.card input[type="number"]:focus {
    border-color: var(--primary);
    outline: 0;
    box-shadow: 0 0 0 3px rgba(0, 113, 227, 0.15);
}

/* ============================================
   RESPONSIVE
   ============================================ */

@media (max-width: 768px) {
    .hero-content {
        padding: 100px 1rem 60px;
    }

    .section-dark,
    .section-light,
    .section-highlight,
    .section-features,
    .section-cta {
        padding: 4rem 0;
    }

    .highlight-image {
        height: 300px;
    }

    .category-card-apple {
        height: 200px;
    }

    .stat-number {
        font-size: 2rem;
    }
}
