/* Sports Pulse - Material Design Enhanced Styles */

/* Import Materialize CSS and Google Fonts */
@import url('https://cdnjs.cloudflare.com/ajax/libs/materialize/1.0.0/css/materialize.min.css');
@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@300;400;500;700&display=swap');
@import url('https://fonts.googleapis.com/icon?family=Material+Icons');

/* Root Variables - Energetic Sports Theme */
:root {
    --primary-color: #ff5722;        /* Deep Orange - Energetic */
    --primary-light: #ff8a50;
    --primary-dark: #c41c00;
    --secondary-color: #2196f3;      /* Blue - Sports */
    --secondary-light: #6ec6ff;
    --secondary-dark: #0069c0;
    --accent-color: #4caf50;         /* Green - Success */
    --warning-color: #ff9800;        /* Amber */
    --error-color: #f44336;          /* Red */
    --text-primary: #212121;
    --text-secondary: #757575;
    --divider-color: #e0e0e0;
    --background-light: #fafafa;
    --card-shadow: 0 4px 6px rgba(0,0,0,0.1), 0 1px 3px rgba(0,0,0,0.08);
    --border-radius: 10px;
    --transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* Global Styles */
* {
    box-sizing: border-box;
}

body {
    font-family: 'Roboto', sans-serif;
    margin: 0;
    padding: 0;
    line-height: 1.6;
    color: var(--text-primary);
    background-color: var(--background-light);
}

/* Typography Enhancements */
h1, h2, h3, h4, h5, h6 {
    font-weight: 500;
    margin: 1.5rem 0 1rem 0;
    color: var(--text-primary);
}

h1 { font-size: 2.5rem; font-weight: 700; }
h2 { font-size: 2rem; font-weight: 600; }
h3 { font-size: 1.5rem; font-weight: 500; }

p {
    margin: 0 0 1rem 0;
    color: var(--text-secondary);
    line-height: 1.8;
}

/* Enhanced Navigation */
.navbar-fixed {
    position: fixed;
    top: 0;
    z-index: 1000;
}

.nav-wrapper {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    box-shadow: var(--card-shadow);
    padding: 0 2rem;
}

.brand-logo {
    font-size: 1.8rem;
    font-weight: 700;
    display: flex;
    align-items: center;
}

.brand-logo i {
    margin-right: 0.5rem;
    font-size: 2rem;
}

nav ul a {
    font-weight: 500;
    transition: var(--transition);
    border-radius: var(--border-radius);
    margin: 0 0.25rem;
}

nav ul a:hover {
    background-color: rgba(255,255,255,0.1);
    transform: translateY(-1px);
}

/* Main Content Spacing */
main {
    margin-top: 64px;
    min-height: calc(100vh - 64px);
}

/* Hero Section - Split Layout */
.hero-section {
    background: linear-gradient(135deg, #e3f2fd 0%, #bbdefb 50%, #90caf9 100%);
    padding: 4rem 0;
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grid" width="10" height="10" patternUnits="userSpaceOnUse"><path d="M 10 0 L 0 0 0 10" fill="none" stroke="rgba(255,255,255,0.1)" stroke-width="0.5"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
    opacity: 0.3;
}

.hero-content {
    position: relative;
    z-index: 2;
}

.hero-text {
    padding: 2rem 0;
}

.hero-title {
    font-size: 3rem;
    font-weight: 700;
    color: var(--primary-dark);
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.1);
}

.hero-subtitle {
    font-size: 1.2rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
    font-weight: 400;
}

/* Device Mockup */
.device-mockup {
    max-width: 350px;
    margin: 0 auto;
    position: relative;
    transition: var(--transition);
}

.device-mockup:hover {
    transform: translateY(-5px) scale(1.02);
}

.device-frame {
    background: linear-gradient(145deg, #f0f0f0, #ffffff);
    border-radius: 25px;
    padding: 20px;
    box-shadow: 
        0 20px 40px rgba(0,0,0,0.15),
        0 10px 20px rgba(0,0,0,0.1),
        inset 0 1px 0 rgba(255,255,255,0.8);
    position: relative;
}

.device-frame::before {
    content: '';
    position: absolute;
    top: 10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: #333;
    border-radius: 2px;
}

.device-screen {
    width: 100%;
    height: auto;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: inset 0 2px 4px rgba(0,0,0,0.1);
}

.device-screen img {
    width: 100%;
    height: auto;
    display: block;
    transition: var(--transition);
}

/* Enhanced Cards */
.feature-card {
    margin: 2rem 0;
    transition: var(--transition);
    border-radius: var(--border-radius);
    overflow: hidden;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.card-content {
    padding: 2rem;
    text-align: left;
}

.card-title {
    color: var(--primary-color);
    font-weight: 600;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
}

.card-title i {
    margin-right: 0.75rem;
    font-size: 1.5rem;
}

/* Screenshot Carousel - Compact Design */
.screenshot-section {
    background: white;
    padding: 4rem 0;
    max-height: 500px;
    overflow: hidden;
}

.screenshot-carousel {
    max-width: 900px;
    margin: 0 auto;
    position: relative;
    height: 400px;
}

.carousel-container {
    position: relative;
    height: 100%;
    overflow: hidden;
    border-radius: var(--border-radius);
    box-shadow: var(--card-shadow);
}

.carousel-slides {
    display: flex;
    height: 100%;
    transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.carousel-slide {
    min-width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    background: linear-gradient(135deg, #f5f5f5, #eeeeee);
    position: relative;
}

.carousel-slide img {
    max-height: 350px;
    max-width: 200px;
    width: auto;
    height: auto;
    object-fit: contain;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    transition: var(--transition);
    cursor: pointer;
}

.carousel-slide img:hover {
    transform: scale(1.05);
}

.carousel-nav {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 10;
}

.carousel-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255,255,255,0.5);
    cursor: pointer;
    transition: var(--transition);
}

.carousel-dot.active {
    background: var(--primary-color);
    transform: scale(1.2);
}

.carousel-controls {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255,255,255,0.9);
    border: none;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
    z-index: 10;
}

.carousel-controls:hover {
    background: white;
    box-shadow: var(--card-shadow);
    transform: translateY(-50%) scale(1.1);
}

.carousel-prev { left: 20px; }
.carousel-next { right: 20px; }

/* Enhanced Buttons */
.btn-large, .btn {
    border-radius: var(--border-radius);
    font-weight: 500;
    text-transform: none;
    transition: var(--transition);
    box-shadow: var(--card-shadow);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    line-height: 1;
    padding: 0.75rem 2rem;
}

.btn-large {
    padding: 1rem 2.5rem;
    font-size: 1.1rem;
}

.btn:hover, .btn-large:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
}

.btn-secondary {
    background: linear-gradient(135deg, var(--secondary-color), var(--secondary-dark));
}

.btn i {
    margin-right: 0.5rem;
}

/* Download Buttons */
.download-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    justify-content: center;
    margin: 2rem 0;
}

.download-btn {
    min-width: 200px;
    text-decoration: none;
}

/* Contact Form Enhancements */
.contact-form {
    background: white;
    padding: 3rem;
    border-radius: var(--border-radius);
    box-shadow: var(--card-shadow);
    max-width: 600px;
    margin: 0 auto;
}

.file-field {
    margin: 1rem 0;
}

.file-field .btn {
    background: var(--secondary-color);
}

/* Privacy Accept Button - CRITICAL */
.privacy-accept-btn {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 9999;
    background: linear-gradient(135deg, var(--accent-color), #388e3c);
    color: white;
    border: none;
    padding: 1rem 2rem;
    border-radius: var(--border-radius);
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 6px 20px rgba(76, 175, 80, 0.4);
    transition: var(--transition);
    min-width: 200px;
    text-align: center;
}

.privacy-accept-btn:hover {
    transform: translateX(-50%) translateY(-3px);
    box-shadow: 0 8px 25px rgba(76, 175, 80, 0.5);
}

.privacy-accept-btn:active {
    transform: translateX(-50%) translateY(-1px);
}

/* Footer */
.page-footer {
    background: linear-gradient(135deg, var(--text-primary), #424242);
    padding: 3rem 0 1rem 0;
    margin-top: 4rem;
}

.footer-content {
    color: rgba(255,255,255,0.8);
}

.footer-content h5 {
    color: white;
    font-weight: 600;
}

.footer-content a {
    color: rgba(255,255,255,0.8);
    transition: var(--transition);
}

.footer-content a:hover {
    color: var(--primary-light);
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .device-mockup {
        max-width: 250px;
    }
    
    .screenshot-carousel {
        height: 300px;
    }
    
    .carousel-slide img {
        max-height: 250px;
        max-width: 150px;
    }
    
    .download-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .download-btn {
        width: 100%;
        max-width: 300px;
    }
    
    .contact-form {
        padding: 2rem 1rem;
        margin: 0 1rem;
    }
}

@media (max-width: 600px) {
    .nav-wrapper {
        padding: 0 1rem;
    }
    
    .brand-logo {
        font-size: 1.5rem;
    }
    
    .hero-section {
        padding: 2rem 0;
    }
}

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

.fade-in-up {
    animation: fadeInUp 0.6s ease-out;
}

/* Lightbox */
.lightbox {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.9);
    z-index: 10000;
    justify-content: center;
    align-items: center;
}

.lightbox.active {
    display: flex;
}

.lightbox img {
    max-width: 90%;
    max-height: 90%;
    object-fit: contain;
    border-radius: var(--border-radius);
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: white;
    border: none;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 1.5rem;
    transition: var(--transition);
}

.lightbox-close:hover {
    transform: scale(1.1);
}