/* 888 Squad Organizer - Custom Styles */
/* Design: Material Design with Natural Green Theme */

:root {
    --primary-green: #3D5A3D;
    --primary-dark: #2D4A2D;
    --primary-light: #4CAF50;
    --accent-green: #66BB6A;
    --background-light: #F5F7F5;
    --background-white: #FFFFFF;
    --text-dark: #1B2E1B;
    --text-medium: #4A5A4A;
    --text-light: #6B7B6B;
    --border-color: #D0DCD0;
    --shadow-color: rgba(61, 90, 61, 0.15);
    --gradient-start: #3D5A3D;
    --gradient-end: #2D4A2D;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

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

/* Navigation Styles */
.nav-wrapper {
    padding: 0 20px;
}

nav {
    background: linear-gradient(135deg, var(--gradient-start), var(--gradient-end)) !important;
    box-shadow: 0 4px 20px var(--shadow-color);
}

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

nav .brand-logo i {
    font-size: 1.6rem;
}

nav ul li a {
    font-weight: 500;
    letter-spacing: 0.5px;
    transition: background-color 0.3s ease;
}

nav ul li a:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

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

.sidenav li > a {
    color: white !important;
    font-weight: 500;
}

.sidenav li > a:hover {
    background-color: var(--primary-dark);
}

.sidenav .user-view {
    background: linear-gradient(135deg, var(--gradient-start), var(--gradient-end));
    padding: 20px;
}

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, var(--primary-green) 0%, var(--primary-dark) 100%);
    min-height: 85vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    padding: 80px 0;
}

.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"><circle cx="50" cy="50" r="40" fill="none" stroke="rgba(255,255,255,0.05)" stroke-width="2"/><line x1="10" y1="50" x2="90" y2="50" stroke="rgba(255,255,255,0.03)" stroke-width="1"/><line x1="50" y1="10" x2="50" y2="90" stroke="rgba(255,255,255,0.03)" stroke-width="1"/></svg>') center/200px repeat;
    opacity: 0.5;
}

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

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

.hero-content p {
    font-size: 1.25rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 30px;
    max-width: 500px;
}

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

.hero-buttons .btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 0 28px;
    height: 48px;
    font-weight: 600;
    border-radius: 24px;
    text-transform: none;
    font-size: 1rem;
}

.btn-primary {
    background-color: var(--accent-green) !important;
    color: white !important;
}

.btn-primary:hover {
    background-color: var(--primary-light) !important;
}

.btn-secondary {
    background-color: transparent !important;
    border: 2px solid white !important;
    color: white !important;
}

.btn-secondary:hover {
    background-color: rgba(255, 255, 255, 0.1) !important;
}

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

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

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

.device-mockup img {
    width: 100%;
    border-radius: 24px;
    display: block;
}

/* Features Section */
.features-section {
    padding: 80px 0;
    background-color: var(--background-white);
}

.section-title {
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--text-dark);
    text-align: center;
    margin-bottom: 15px;
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--text-medium);
    text-align: center;
    margin-bottom: 50px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.feature-card {
    background: white;
    border-radius: 16px;
    padding: 30px;
    height: 100%;
    box-shadow: 0 4px 20px var(--shadow-color);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid var(--border-color);
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 40px var(--shadow-color);
}

.feature-icon {
    width: 64px;
    height: 64px;
    background: linear-gradient(135deg, var(--primary-green), var(--accent-green));
    border-radius: 16px;
    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;
    color: var(--text-dark);
    margin-bottom: 12px;
}

.feature-card p {
    color: var(--text-medium);
    font-size: 0.95rem;
    text-align: left;
    line-height: 1.7;
}

/* Screenshots Section */
.screenshots-section {
    padding: 60px 0;
    background: linear-gradient(180deg, var(--background-light) 0%, var(--background-white) 100%);
    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-slide {
    display: none;
    animation: fadeIn 0.5s ease;
}

.carousel-slide.active {
    display: block;
}

@keyframes fadeIn {
    from { opacity: 0; transform: scale(0.95); }
    to { opacity: 1; transform: scale(1); }
}

.carousel-device {
    position: relative;
    max-width: 200px;
    margin: 0 auto;
    padding: 10px;
    background: linear-gradient(145deg, #2a2a2a, #1a1a1a);
    border-radius: 30px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.carousel-device::before {
    content: '';
    position: absolute;
    top: 6px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 18px;
    background: #1a1a1a;
    border-radius: 0 0 10px 10px;
    z-index: 10;
}

.carousel-device img {
    width: 100%;
    border-radius: 20px;
    display: block;
    max-height: 320px;
    object-fit: cover;
}

.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(--primary-green);
    color: white;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.carousel-btn:hover {
    background: var(--primary-dark);
    transform: scale(1.1);
}

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

.carousel-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--border-color);
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

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

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

.lightbox.active {
    display: flex;
}

.lightbox-content {
    max-width: 90%;
    max-height: 90%;
}

.lightbox-content img {
    max-width: 100%;
    max-height: 85vh;
    border-radius: 12px;
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 30px;
    font-size: 40px;
    color: white;
    cursor: pointer;
    transition: transform 0.2s ease;
}

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

/* CTA Section */
.cta-section {
    padding: 80px 0;
    background: linear-gradient(135deg, var(--primary-green) 0%, var(--primary-dark) 100%);
    text-align: center;
}

.cta-section h2 {
    font-size: 2.2rem;
    color: white;
    margin-bottom: 15px;
}

.cta-section p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.1rem;
    margin-bottom: 30px;
}

.cta-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

/* Footer */
footer {
    background: var(--primary-dark);
    padding: 50px 0 20px;
}

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

.footer-section h4 {
    color: white;
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 20px;
}

.footer-section ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-section ul li {
    margin-bottom: 10px;
}

.footer-section ul li a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section ul li a:hover {
    color: white;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 20px;
    text-align: center;
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.9rem;
}

/* Page Header */
.page-header {
    background: linear-gradient(135deg, var(--primary-green) 0%, var(--primary-dark) 100%);
    padding: 100px 0 60px;
    text-align: center;
}

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

.page-header p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 1.1rem;
}

/* Content Sections */
.content-section {
    padding: 60px 0;
    background: var(--background-white);
}

.content-card {
    background: white;
    border-radius: 16px;
    padding: 40px;
    box-shadow: 0 4px 20px var(--shadow-color);
    max-width: 900px;
    margin: 0 auto;
}

.content-card h2 {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-top: 30px;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--border-color);
}

.content-card h2:first-child {
    margin-top: 0;
}

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

.content-card ul {
    color: var(--text-medium);
    padding-left: 20px;
    margin-bottom: 20px;
}

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

.content-card a {
    color: var(--primary-green);
    text-decoration: none;
    font-weight: 500;
}

.content-card a:hover {
    text-decoration: underline;
}

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

.input-field {
    margin-bottom: 25px;
}

.input-field input,
.input-field textarea {
    border: 2px solid var(--border-color) !important;
    border-radius: 12px !important;
    padding: 15px !important;
    font-size: 1rem !important;
    transition: border-color 0.3s ease !important;
    box-sizing: border-box !important;
}

.input-field input:focus,
.input-field textarea:focus {
    border-color: var(--primary-green) !important;
    box-shadow: none !important;
}

.input-field label {
    color: var(--text-medium) !important;
    font-size: 1rem;
}

.input-field label.active {
    color: var(--primary-green) !important;
}

.file-field .btn {
    background-color: var(--primary-green);
    border-radius: 8px;
}

.file-field .file-path-wrapper input {
    border-bottom: 2px solid var(--border-color) !important;
}

.submit-btn {
    width: 100%;
    height: 52px;
    background: linear-gradient(135deg, var(--primary-green), var(--accent-green)) !important;
    border-radius: 26px !important;
    font-size: 1.1rem !important;
    font-weight: 600 !important;
    text-transform: none !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

.submit-btn:hover {
    background: linear-gradient(135deg, var(--primary-dark), var(--primary-green)) !important;
}

/* Privacy Accept Button */
.privacy-accept-container {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(180deg, transparent, rgba(0,0,0,0.9) 30%);
    padding: 30px 20px 25px;
    z-index: 9999;
    display: none;
}

.privacy-accept-container.visible {
    display: block;
}

.privacy-accept-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    max-width: 400px;
    margin: 0 auto;
    padding: 16px 32px;
    background: linear-gradient(135deg, var(--accent-green), var(--primary-light));
    color: white;
    font-size: 1.2rem;
    font-weight: 700;
    border: none;
    border-radius: 30px;
    cursor: pointer;
    box-shadow: 0 8px 25px rgba(76, 175, 80, 0.4);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

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

.privacy-accept-btn:active {
    transform: translateY(0);
}

/* Success Message */
.success-message {
    display: none;
    background: linear-gradient(135deg, var(--accent-green), var(--primary-light));
    color: white;
    padding: 20px 30px;
    border-radius: 12px;
    text-align: center;
    margin-bottom: 30px;
}

.success-message.show {
    display: block;
    animation: slideDown 0.5s ease;
}

@keyframes slideDown {
    from { opacity: 0; transform: translateY(-20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Responsive Design */
@media screen and (max-width: 992px) {
    .hero-section {
        padding: 60px 0;
        min-height: auto;
    }

    .hero-content h1 {
        font-size: 2.2rem;
    }

    .hero-content {
        text-align: center;
        margin-bottom: 40px;
    }

    .hero-content p {
        margin-left: auto;
        margin-right: auto;
    }

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

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

@media screen and (max-width: 768px) {
    nav .brand-logo {
        font-size: 1.1rem;
    }

    .hero-content h1 {
        font-size: 1.8rem;
    }

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

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

    .feature-card {
        padding: 25px;
    }

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

    .carousel-container {
        height: 300px;
    }

    .carousel-device {
        max-width: 160px;
    }

    .carousel-device img {
        max-height: 260px;
    }

    .content-card {
        padding: 25px;
        margin: 0 15px;
    }

    .page-header {
        padding: 80px 0 40px;
    }

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

    .cta-section h2 {
        font-size: 1.6rem;
    }

    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
}

@media screen and (max-width: 480px) {
    .hero-buttons .btn {
        width: 100%;
        max-width: 280px;
    }

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

    .carousel-device {
        max-width: 140px;
    }

    .carousel-device img {
        max-height: 220px;
    }

    .carousel-btn {
        width: 38px;
        height: 38px;
    }
}

/* Utility Classes */
.text-center {
    text-align: center;
}

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

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

/* Loading Animation */
.loading {
    filter: blur(5px);
    transition: filter 0.3s ease;
}

.loaded {
    filter: blur(0);
}
