/* DAMP Smart Drinkware - Main Stylesheet */
/* Copyright 2025 WeCr8 Solutions LLC */

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

/* Enhanced Safe Area Support */
:root {
    --safe-area-top: env(safe-area-inset-top);
    --safe-area-right: env(safe-area-inset-right);
    --safe-area-bottom: env(safe-area-inset-bottom);
    --safe-area-left: env(safe-area-inset-left);
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: linear-gradient(135deg, #0f0f23 0%, #1a1a2e 50%, #16213e 100%);
    color: white;
    line-height: 1.6;
    overflow-x: hidden;
    padding-top: 80px; /* Account for fixed header */
    padding-top: calc(80px + var(--safe-area-top)); /* Enhanced for safe areas */
}

/* Safe Area Utilities */
.safe-area-padding-top {
    padding-top: var(--safe-area-top);
}

.safe-area-padding-bottom {
    padding-bottom: var(--safe-area-bottom);
}

.safe-area-padding-left {
    padding-left: var(--safe-area-left);
}

.safe-area-padding-right {
    padding-right: var(--safe-area-right);
}

.safe-area-margin-top {
    margin-top: var(--safe-area-top);
}

.safe-area-margin-bottom {
    margin-bottom: var(--safe-area-bottom);
}

/* Main Content ID for Skip Links */
#main-content {
    outline: none;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    padding-left: max(20px, var(--safe-area-left));
    padding-right: max(20px, var(--safe-area-right));
}

/* Sections */
section {
    scroll-margin-top: 100px; /* Ensures proper spacing when navigating to sections */
    scroll-margin-top: calc(100px + var(--safe-area-top)); /* Enhanced for safe areas */
}

/* Navigation styles are now handled by navigation.css */
/* This removes conflicts with the enhanced DAMPHeader component */

/* Hero Section */
.hero-section {
    min-height: calc(100vh - 80px); /* Adjust for header */
    min-height: calc(100vh - 80px - var(--safe-area-top)); /* Enhanced for safe areas */
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    padding: 120px 0 80px;
}

.hero-content {
    z-index: 2;
    max-width: 600px;
}

.hero h1 {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 1rem;
    background: linear-gradient(45deg, #ffffff, #00d4ff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: fadeInUp 1s ease;
}

.hero .subtitle {
    font-size: 1.3rem;
    margin-bottom: 2rem;
    opacity: 0.9;
    animation: fadeInUp 1s ease 0.2s both;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    animation: fadeInUp 1s ease 0.4s both;
}

.btn {
    padding: 15px 30px;
    border: none;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background: linear-gradient(45deg, #00d4ff, #0099cc);
    color: white;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(0, 212, 255, 0.3);
}

.btn-secondary {
    background: transparent;
    color: white;
    border: 2px solid #00d4ff;
}

.btn-secondary:hover {
    background: rgba(0, 212, 255, 0.1);
    transform: translateY(-2px);
}

/* Enhanced Button Variants */
.btn-xl {
    padding: 18px 36px;
    font-size: 1.2rem;
}

.btn-lg {
    padding: 16px 32px;
    font-size: 1.1rem;
}

/* Analytics-Friendly Classes */
[data-analytics] {
    cursor: pointer;
}

[data-analytics]:hover {
    opacity: 0.9;
}

/* Floating Elements */
.floating-elements {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.floating-circle {
    position: absolute;
    border-radius: 50%;
    background: linear-gradient(45deg, rgba(0, 212, 255, 0.1), rgba(0, 153, 204, 0.1));
    animation: float 6s ease-in-out infinite;
}

.floating-circle-primary {
    width: 200px;
    height: 200px;
    top: 10%;
    right: 10%;
    animation-delay: 0s;
}

.floating-circle-secondary {
    width: 150px;
    height: 150px;
    top: 60%;
    right: 20%;
    animation-delay: 2s;
}

.floating-circle-accent {
    width: 100px;
    height: 100px;
    top: 80%;
    right: 60%;
    animation-delay: 4s;
}

/* Features Section */
.features {
    padding: 100px 0;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    background: linear-gradient(45deg, #ffffff, #00d4ff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
    margin-top: 60px;
}

.feature-card {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 40px 30px;
    text-align: center;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-10px);
    background: rgba(255, 255, 255, 0.15);
    box-shadow: 0 20px 40px rgba(0, 212, 255, 0.2);
}

.feature-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
    background: linear-gradient(45deg, #00d4ff, #0099cc);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
}

.feature-card h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: #00d4ff;
}

/* Products Section */
.products {
    padding: 100px 0;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 40px;
    margin-top: 60px;
}

.product-card {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.05));
    border-radius: 25px;
    padding: 40px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(15px);
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 25px 50px rgba(0, 212, 255, 0.3);
}

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

.product-card:hover::before {
    left: 100%;
}

.product-badge {
    position: absolute;
    top: 20px;
    right: 20px;
    background: linear-gradient(45deg, #00ff88, #00cc6a);
    color: #0f0f23;
    padding: 8px 15px;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: bold;
    text-transform: uppercase;
    box-shadow: 0 4px 15px rgba(0, 255, 136, 0.3);
    letter-spacing: 0.5px;
}

.product-name {
    font-size: 1.8rem;
    font-weight: bold;
    color: #00d4ff;
    margin-bottom: 15px;
}

.product-price {
    font-size: 2rem;
    font-weight: bold;
    color: white;
    margin-bottom: 10px;
}

.original-price {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.5);
    text-decoration: line-through;
    margin-left: 10px;
}

.early-bird {
    color: #00d4ff;
    font-weight: bold;
    font-size: 0.9rem;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.product-features {
    list-style: none;
    margin-bottom: 30px;
}

.product-features li {
    padding: 8px 0;
    position: relative;
    padding-left: 25px;
}

.product-features li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: #00d4ff;
    font-weight: bold;
}

/* App Section */
.app-section {
    padding: 100px 0;
    background: rgba(255, 255, 255, 0.05);
    text-align: center;
}

.app-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 40px;
    flex-wrap: wrap;
}

.app-btn {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px 25px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    text-decoration: none;
    color: white;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.app-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

.app-icon {
    width: 40px;
    height: 40px;
    background: linear-gradient(45deg, #00d4ff, #0099cc);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}

/* Footer */
footer {
    padding: 60px 0 30px;
    padding-bottom: calc(30px + var(--safe-area-bottom)); /* Enhanced for safe areas */
    background: rgba(0, 0, 0, 0.3);
    text-align: center;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
    text-align: left;
}

.footer-section h3 {
    color: #00d4ff;
    margin-bottom: 20px;
}

.footer-section a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    display: block;
    margin-bottom: 10px;
    transition: color 0.3s ease;
}

.footer-section a:hover {
    color: #00d4ff;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes float {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(180deg); }
}

@keyframes floatUp {
    from {
        transform: translateY(0) rotate(0deg);
        opacity: 1;
    }
    to {
        transform: translateY(-100vh) rotate(360deg);
        opacity: 0;
    }
}

/* Responsive */
@media (max-width: 768px) {
    body {
        padding-top: 70px; /* Slightly less padding on mobile */
        padding-top: calc(70px + var(--safe-area-top)); /* Enhanced for safe areas */
    }
    
    .hero-section {
        min-height: calc(100vh - 70px);
        min-height: calc(100vh - 70px - var(--safe-area-top)); /* Enhanced for safe areas */
    }
    
    .hero h1 {
        font-size: 2.5rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .product-grid {
        grid-template-columns: 1fr;
    }
    
    .app-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .hero .subtitle {
        font-size: 1.1rem;
    }
    
    .container {
        padding: 0 15px;
        padding-left: max(15px, var(--safe-area-left));
        padding-right: max(15px, var(--safe-area-right));
    }
}

/* Hamburger menu responsive styles are now handled by navigation.css */

/* Enhanced Mobile Support */
@media (max-width: 480px) {
    .hero h1 {
        font-size: 2rem;
    }
    
    .hero .subtitle {
        font-size: 1rem;
    }
    
    .btn {
        padding: 12px 24px;
        font-size: 1rem;
    }
    
    .btn-xl {
        padding: 15px 30px;
        font-size: 1.1rem;
    }
    
    .feature-card {
        padding: 30px 20px;
    }
    
    .product-card {
        padding: 30px 20px;
    }
}

/* Scroll effects */
.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateX(-50%) translateY(0);
    }
    40% {
        transform: translateX(-50%) translateY(-10px);
    }
    60% {
        transform: translateX(-50%) translateY(-5px);
    }
}

/* Device-Specific Styles */
.ios-device body {
    /* iOS-specific optimizations */
    -webkit-text-size-adjust: 100%;
}

.android-device body {
    /* Android-specific optimizations */
    text-size-adjust: 100%;
}

.has-notch .hero-section {
    /* Additional padding for devices with notches */
    padding-top: calc(120px + var(--safe-area-top));
}

/* Accessibility Enhancements */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

@media (prefers-contrast: high) {
    body {
        background: #000000;
    }
    
    .feature-card,
    .product-card {
        border: 2px solid #ffffff;
    }
}

/* Print Styles */
@media print {
    body {
        background: white;
        color: black;
        padding-top: 0;
    }
    
    .floating-elements,
    .hero-buttons,
    .app-buttons {
        display: none;
    }
}