/* IcePro Manager - Material Design Theme */
/* Color palette inspired by app: deep navy, electric blue, cyan accents */

:root {
    --primary-dark: #0a1628;
    --primary-blue: #0d2847;
    --accent-blue: #2196F3;
    --accent-cyan: #4fc3f7;
    --accent-light: #81d4fa;
    --text-white: #ffffff;
    --text-light: #b0bec5;
    --text-muted: #78909c;
    --surface-dark: #102a43;
    --surface-card: #1a3a5c;
    --gradient-start: #0a1628;
    --gradient-end: #1e3a5f;
    --success: #4caf50;
    --warning: #ff9800;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Roboto', sans-serif;
    background: linear-gradient(135deg, var(--gradient-start) 0%, var(--gradient-end) 100%);
    color: var(--text-white);
    min-height: 100vh;
    margin: 0;
    padding: 0;
    line-height: 1.6;
}

/* Navigation */
nav.nav-extended {
    background: linear-gradient(180deg, var(--primary-dark) 0%, var(--primary-blue) 100%) !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.nav-wrapper {
    padding: 0 20px;
}

.brand-logo {
    font-weight: 700 !important;
    font-size: 1.4rem !important;
    display: flex !important;
    align-items: center;
    gap: 10px;
}

.brand-logo i {
    color: var(--accent-cyan);
}

nav ul a {
    font-weight: 500;
    transition: color 0.3s ease, background-color 0.3s ease;
    border-radius: 8px;
    margin: 0 4px;
}

nav ul a:hover {
    background-color: rgba(79, 195, 247, 0.15);
    color: var(--accent-cyan);
}

.sidenav {
    background: var(--primary-dark);
}

.sidenav li > a {
    color: var(--text-white);
    font-weight: 500;
}

.sidenav li > a:hover {
    background-color: rgba(79, 195, 247, 0.15);
}

.sidenav .user-view {
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--surface-card) 100%);
    padding: 32px 20px;
}

/* Hero Section */
.hero-section {
    min-height: 85vh;
    display: flex;
    align-items: center;
    padding: 60px 0;
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 80%;
    height: 150%;
    background: radial-gradient(ellipse, rgba(33, 150, 243, 0.08) 0%, transparent 70%);
    pointer-events: none;
}

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

.hero-content h1 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 20px;
    line-height: 1.2;
}

.hero-content h1 span {
    color: var(--accent-cyan);
}

.hero-content p.lead {
    font-size: 1.3rem;
    color: var(--text-light);
    margin-bottom: 30px;
    max-width: 500px;
}

.hero-buttons {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

/* Device Mockup */
.device-mockup-container {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

.device-mockup {
    position: relative;
    max-width: 280px;
    margin: 0 auto;
}

.device-frame {
    position: relative;
    background: linear-gradient(145deg, #2a2a2a, #1a1a1a);
    border-radius: 36px;
    padding: 12px;
    box-shadow:
        0 25px 50px rgba(0, 0, 0, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.device-frame::before {
    content: '';
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 24px;
    background: #0a0a0a;
    border-radius: 12px;
}

.device-screen {
    border-radius: 24px;
    overflow: hidden;
    background: var(--primary-dark);
}

.device-screen img {
    width: 100%;
    height: auto;
    display: block;
    max-height: 500px;
    object-fit: cover;
    object-position: top;
}

/* Buttons */
.btn, .btn-large {
    border-radius: 10px !important;
    text-transform: none !important;
    font-weight: 600 !important;
    letter-spacing: 0.3px;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.3s ease !important;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2) !important;
}

.btn-primary {
    background: linear-gradient(135deg, var(--accent-blue) 0%, var(--accent-cyan) 100%) !important;
    color: white !important;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(33, 150, 243, 0.4) !important;
}

.btn-secondary {
    background: transparent !important;
    border: 2px solid var(--accent-cyan) !important;
    color: var(--accent-cyan) !important;
}

.btn-secondary:hover {
    background: rgba(79, 195, 247, 0.1) !important;
    transform: translateY(-2px);
}

/* Features Section */
.features-section {
    padding: 80px 0;
    background: linear-gradient(180deg, transparent 0%, rgba(10, 22, 40, 0.5) 100%);
}

.section-title {
    text-align: center;
    margin-bottom: 50px;
}

.section-title h2 {
    font-size: 2.2rem;
    font-weight: 700;
    margin-bottom: 15px;
}

.section-title p {
    color: var(--text-light);
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto;
}

.feature-card {
    background: linear-gradient(145deg, var(--surface-card) 0%, var(--surface-dark) 100%);
    border-radius: 16px;
    padding: 30px 24px;
    height: 100%;
    transition: all 0.3s ease;
    border: 1px solid rgba(79, 195, 247, 0.1);
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
    border-color: rgba(79, 195, 247, 0.3);
}

.feature-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--accent-blue) 0%, var(--accent-cyan) 100%);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

.feature-icon i {
    font-size: 28px;
    color: white;
}

.feature-card h3 {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 12px;
    color: var(--text-white);
}

.feature-card p {
    color: var(--text-light);
    font-size: 0.95rem;
    text-align: left;
    line-height: 1.6;
    margin: 0;
}

/* Screenshots Section */
.screenshots-section {
    padding: 60px 0;
    max-height: 500px;
    overflow: hidden;
}

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

.carousel-container {
    position: relative;
    height: 380px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.carousel-track {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    transition: transform 0.4s ease;
}

.screenshot-item {
    flex-shrink: 0;
    opacity: 0.4;
    transform: scale(0.8);
    transition: all 0.4s ease;
    cursor: pointer;
}

.screenshot-item.active {
    opacity: 1;
    transform: scale(1);
}

.screenshot-frame {
    background: linear-gradient(145deg, #333, #1a1a1a);
    border-radius: 24px;
    padding: 8px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4);
}

.screenshot-frame img {
    border-radius: 18px;
    width: 180px;
    height: 320px;
    object-fit: cover;
    object-position: top;
    display: block;
    filter: blur(0);
    transition: filter 0.3s ease;
}

.screenshot-frame img.loading {
    filter: blur(5px);
}

.carousel-nav {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    margin-top: 20px;
}

.carousel-btn {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--surface-card);
    border: 2px solid var(--accent-cyan);
    color: var(--accent-cyan);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.carousel-btn:hover {
    background: var(--accent-cyan);
    color: var(--primary-dark);
}

.carousel-dots {
    display: flex;
    gap: 10px;
}

.carousel-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--text-muted);
    cursor: pointer;
    transition: all 0.3s ease;
}

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

/* CTA Section */
.cta-section {
    padding: 80px 0;
    text-align: center;
    background: linear-gradient(180deg, rgba(10, 22, 40, 0.5) 0%, var(--primary-dark) 100%);
}

.cta-section h2 {
    font-size: 2rem;
    margin-bottom: 20px;
}

.cta-section p {
    color: var(--text-light);
    margin-bottom: 30px;
    font-size: 1.1rem;
}

/* Footer */
footer.page-footer {
    background: var(--primary-dark) !important;
    padding-top: 40px;
    border-top: 1px solid rgba(79, 195, 247, 0.1);
}

footer h5 {
    color: var(--accent-cyan);
    font-weight: 600;
    margin-bottom: 20px;
}

footer ul li a {
    color: var(--text-light) !important;
    transition: color 0.3s ease;
}

footer ul li a:hover {
    color: var(--accent-cyan) !important;
}

.footer-copyright {
    background: rgba(0, 0, 0, 0.2) !important;
    padding: 15px 0;
}

/* Page Content Styles */
.page-header {
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--surface-card) 100%);
    padding: 80px 0 60px;
    text-align: center;
    margin-bottom: 40px;
}

.page-header h1 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 10px;
}

.page-header p {
    color: var(--text-light);
    font-size: 1.1rem;
}

.content-section {
    max-width: 900px;
    margin: 0 auto;
    padding: 40px 20px 80px;
}

.content-card {
    background: var(--surface-card);
    border-radius: 16px;
    padding: 40px;
    margin-bottom: 30px;
    border: 1px solid rgba(79, 195, 247, 0.1);
}

.content-card h2 {
    font-size: 1.5rem;
    color: var(--accent-cyan);
    margin-bottom: 20px;
    font-weight: 600;
}

.content-card h3 {
    font-size: 1.2rem;
    color: var(--text-white);
    margin: 25px 0 15px;
    font-weight: 600;
}

.content-card p {
    color: var(--text-light);
    text-align: left;
    line-height: 1.8;
    margin-bottom: 15px;
}

.content-card ul, .content-card ol {
    color: var(--text-light);
    text-align: left;
    padding-left: 25px;
    margin-bottom: 20px;
}

.content-card li {
    margin-bottom: 10px;
    line-height: 1.6;
}

.content-card a {
    color: var(--accent-cyan);
    text-decoration: none;
    transition: color 0.3s ease;
}

.content-card a:hover {
    color: var(--accent-light);
    text-decoration: underline;
}

/* Contact Form */
.contact-form {
    max-width: 700px;
    margin: 0 auto;
}

.input-field input,
.input-field textarea {
    background: var(--surface-dark) !important;
    border: 1px solid rgba(79, 195, 247, 0.2) !important;
    border-radius: 10px !important;
    color: var(--text-white) !important;
    padding: 15px !important;
    height: auto !important;
    box-sizing: border-box !important;
}

.input-field input:focus,
.input-field textarea:focus {
    border-color: var(--accent-cyan) !important;
    box-shadow: 0 0 0 1px var(--accent-cyan) !important;
}

.input-field label {
    color: var(--text-light) !important;
    left: 15px !important;
}

.input-field label.active {
    transform: translateY(-28px) scale(0.85);
    color: var(--accent-cyan) !important;
}

.input-field .prefix {
    color: var(--accent-cyan);
}

.file-field .btn {
    background: var(--accent-blue) !important;
}

.file-field .file-path-wrapper input {
    background: var(--surface-dark) !important;
    border: 1px solid rgba(79, 195, 247, 0.2) !important;
    border-radius: 10px !important;
    color: var(--text-white) !important;
}

/* Privacy Accept Button */
.privacy-accept-container {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(180deg, transparent 0%, var(--primary-dark) 30%);
    padding: 30px 20px 25px;
    z-index: 9999;
    text-align: center;
}

.privacy-accept-btn {
    background: linear-gradient(135deg, var(--success) 0%, #66bb6a 100%) !important;
    color: white !important;
    font-size: 1.1rem !important;
    padding: 0 50px !important;
    height: 56px !important;
    line-height: 56px !important;
    box-shadow: 0 8px 25px rgba(76, 175, 80, 0.4) !important;
}

.privacy-accept-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(76, 175, 80, 0.5) !important;
}

/* Lightbox */
.lightbox-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.95);
    z-index: 10000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.lightbox-overlay.active {
    display: flex;
}

.lightbox-content {
    max-width: 90vw;
    max-height: 90vh;
    position: relative;
}

.lightbox-content img {
    max-width: 100%;
    max-height: 85vh;
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.lightbox-close {
    position: absolute;
    top: -50px;
    right: 0;
    width: 44px;
    height: 44px;
    background: var(--accent-cyan);
    border: none;
    border-radius: 50%;
    color: var(--primary-dark);
    font-size: 24px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Responsive */
@media screen and (max-width: 992px) {
    .hero-content h1 {
        font-size: 2.4rem;
    }

    .hero-section {
        min-height: auto;
        padding: 40px 0;
    }

    .device-mockup {
        max-width: 220px;
        margin-top: 40px;
    }

    .device-screen img {
        max-height: 400px;
    }
}

@media screen and (max-width: 768px) {
    .hero-content h1 {
        font-size: 2rem;
        text-align: center;
    }

    .hero-content p.lead {
        text-align: center;
        margin-left: auto;
        margin-right: auto;
    }

    .hero-buttons {
        justify-content: center;
    }

    .device-mockup {
        max-width: 200px;
    }

    .section-title h2 {
        font-size: 1.8rem;
    }

    .feature-card {
        padding: 24px 20px;
    }

    .screenshot-frame img {
        width: 140px;
        height: 250px;
    }

    .carousel-container {
        height: 320px;
    }

    .content-card {
        padding: 25px 20px;
    }

    .page-header h1 {
        font-size: 2rem;
    }

    .brand-logo {
        font-size: 1.1rem !important;
    }

    nav ul a {
        padding: 0 12px !important;
        font-size: 0.9rem;
    }
}

@media screen and (max-width: 480px) {
    .hero-content h1 {
        font-size: 1.7rem;
    }

    .hero-content p.lead {
        font-size: 1.1rem;
    }

    .btn-large {
        padding: 0 24px !important;
        height: 48px !important;
        line-height: 48px !important;
        font-size: 0.95rem !important;
    }

    .device-mockup {
        max-width: 180px;
    }

    .screenshot-frame img {
        width: 120px;
        height: 220px;
    }

    .carousel-container {
        height: 280px;
    }

    .screenshots-section {
        max-height: 400px;
    }
}

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

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

.animate-delay-1 { animation-delay: 0.1s; }
.animate-delay-2 { animation-delay: 0.2s; }
.animate-delay-3 { animation-delay: 0.3s; }
.animate-delay-4 { animation-delay: 0.4s; }

/* Utility */
.text-accent {
    color: var(--accent-cyan);
}

.text-left {
    text-align: left;
}

.mb-0 { margin-bottom: 0; }
.mt-2 { margin-top: 20px; }
.mt-4 { margin-top: 40px; }
