/* ===================================
   SparkGo - Custom CSS Stylesheet
   ================================== */

/* CSS Variables */
:root {
    --primary-navy: #0A1F44;
    --primary-red: #FF3347;
    --accent-gold: #F4C430;
    --dark-green: #1B4D3E;
    --text-dark: #1a1a1a;
    --text-light: #6c757d;
    --bg-light: #f8f9fa;
    --bg-white: #ffffff;
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.08);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.12);
    --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.16);
    --shadow-xl: 0 12px 48px rgba(0, 0, 0, 0.2);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    color: var(--text-dark);
    background-color: var(--bg-white);
    overflow-x: hidden;
    line-height: 1.6;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
    line-height: 1.2;
}

/* ===================================
   Navigation
   ================================== */
.navbar {
    background: rgba(10, 31, 68, 0.95);
    backdrop-filter: blur(10px);
    padding: 1rem 0;
    transition: var(--transition);
    box-shadow: var(--shadow-sm);
}

.navbar.scrolled {
    background: rgba(10, 31, 68, 0.98);
    box-shadow: var(--shadow-md);
}

.navbar-brand .logo-img {
    height: 70px;
    transition: var(--transition);
}

.navbar-brand:hover .logo-img {
    transform: scale(1.05);
}

.nav-link {
    color: rgba(255, 255, 255, 0.9) !important;
    font-weight: 500;
    padding: 0.5rem 1rem !important;
    position: relative;
    transition: var(--transition);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--primary-red);
    transition: var(--transition);
    transform: translateX(-50%);
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary-red) !important;
}

.nav-link:hover::after {
    width: 60%;
}

/* ===================================
   Hero Section
   ================================== */
.hero-section {
    position: relative;
    background: linear-gradient(135deg, var(--primary-navy) 0%, var(--dark-green) 100%);
    overflow: hidden;
    padding-top: 80px;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('../assets/images/hero-bg.png') center/cover no-repeat;
    opacity: 0.3;
    z-index: 0;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 30% 50%, rgba(255, 51, 71, 0.1) 0%, transparent 50%);
    z-index: 1;
}

.hero-section .container {
    position: relative;
    z-index: 2;
}

.badge-pill {
    display: inline-block;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    padding: 0.5rem 1.5rem;
    border-radius: 50px;
    font-weight: 500;
    color: white;
    animation: fadeInDown 0.8s ease-out;
}

.hero-title {
    font-size: clamp(2rem, 5vw, 3.5rem);
    line-height: 1.2;
}

.text-gradient {
    background: linear-gradient(135deg, #FFD700 0%, var(--primary-red) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: block;
}

.hero-subtitle {
    color: rgba(255, 255, 255, 0.9);
    font-size: clamp(1rem, 2vw, 1.25rem);
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-red) 0%, #ff1a35 100%);
    border: none;
    padding: 0.875rem 2rem;
    font-weight: 600;
    border-radius: 50px;
    transition: var(--transition);
    box-shadow: 0 4px 15px rgba(255, 51, 71, 0.4);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(255, 51, 71, 0.6);
    background: linear-gradient(135deg, #ff1a35 0%, var(--primary-red) 100%);
}

.btn-outline-light {
    border: 2px solid rgba(255, 255, 255, 0.3);
    padding: 0.875rem 2rem;
    font-weight: 600;
    border-radius: 50px;
    backdrop-filter: blur(10px);
    background: rgba(255, 255, 255, 0.05);
    transition: var(--transition);
}

.btn-outline-light:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: white;
    transform: translateY(-3px);
}

.hero-stats {
    animation: fadeInUp 1s ease-out 0.5s both;
}

.stat-item h3 {
    color: var(--accent-gold);
    font-size: 2rem;
}

.stat-item p {
    color: rgba(255, 255, 255, 0.7);
}

.hero-image {
    animation: fadeInRight 1s ease-out 0.3s both;
    transition: var(--transition);
    border: 4px solid rgba(255, 255, 255, 0.1);
}

.hero-image:hover {
    transform: scale(1.05) rotate(2deg);
}

.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 3;
}

.scroll-down {
    display: inline-block;
    color: white;
    font-size: 1.5rem;
    animation: bounce 2s infinite;
    transition: var(--transition);
}

.scroll-down:hover {
    color: var(--primary-red);
}

/* ===================================
   Services Section
   ================================== */
.services-section {
    background: linear-gradient(to bottom, #f8f9fa 0%, #ffffff 100%);
    padding: 6rem 0;
}

.section-badge {
    display: inline-block;
    background: linear-gradient(135deg, var(--primary-red) 0%, #ff6b7a 100%);
    color: white;
    padding: 0.5rem 1.5rem;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.875rem;
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.section-title {
    color: var(--primary-navy);
    margin-bottom: 1rem;
}

.section-subtitle {
    font-size: 1.125rem;
    max-width: 600px;
    margin: 0 auto;
}

.glass-card {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 2rem;
    border: 1px solid rgba(255, 255, 255, 0.5);
    box-shadow: var(--shadow-md);
    transition: var(--transition);
}

.service-card {
    overflow: hidden;
    position: relative;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 51, 71, 0.1), transparent);
    transition: var(--transition);
}

.service-card:hover::before {
    left: 100%;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-red);
}

.service-icon-wrapper {
    width: 120px;
    height: 120px;
    margin: 0 auto 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.service-icon {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: var(--transition);
}

.service-card:hover .service-icon {
    transform: scale(1.1) rotate(5deg);
}

.service-link {
    color: var(--primary-navy);
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
}

.service-link:hover {
    color: var(--primary-red);
    transform: translateX(5px);
}

.coming-soon-card {
    opacity: 0.7;
}

.bg-gradient-custom {
    background: linear-gradient(135deg, var(--primary-navy) 0%, var(--dark-green) 100%);
}

/* ===================================
   Why Us Section
   ================================== */
.why-us-section {
    background: linear-gradient(135deg, var(--primary-navy) 0%, var(--dark-green) 100%);
    color: white;
    padding: 6rem 0;
    position: relative;
    overflow: hidden;
}

.why-us-section::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(255, 51, 71, 0.2) 0%, transparent 70%);
    border-radius: 50%;
}

.feature-card {
    text-align: center;
    transition: var(--transition);
    height: 100%;
}

.feature-card:hover {
    transform: translateY(-10px);
}

.feature-icon {
    width: 80px;
    height: 80px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    color: white;
    transition: var(--transition);
}

.feature-card:hover .feature-icon {
    transform: scale(1.1) rotate(360deg);
}

.bg-gradient-red {
    background: linear-gradient(135deg, #FF3347 0%, #ff6b7a 100%);
}

.bg-gradient-blue {
    background: linear-gradient(135deg, #3B82F6 0%, #60A5FA 100%);
}

.bg-gradient-green {
    background: linear-gradient(135deg, #10B981 0%, #34D399 100%);
}

.bg-gradient-gold {
    background: linear-gradient(135deg, #F4C430 0%, #FFD700 100%);
}

.feature-list-item {
    display: flex;
    align-items: start;
    padding: 1rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    animation: fadeIn 0.6s ease-out;
}

.feature-list-item:last-child {
    border-bottom: none;
}

/* ===================================
   Download Section
   ================================== */
.download-section {
    background: linear-gradient(to bottom, #ffffff 0%, #f8f9fa 100%);
    padding: 6rem 0;
}

.app-store-btn {
    display: inline-flex;
    align-items: center;
    gap: 1rem;
    padding: 0.875rem 1.5rem;
    background: var(--primary-navy);
    color: white;
    text-decoration: none;
    border-radius: 12px;
    transition: var(--transition);
    box-shadow: var(--shadow-md);
}

.app-store-btn:hover {
    background: var(--primary-red);
    color: white;
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}

.app-store-text {
    text-align: left;
}

.app-store-text small {
    display: block;
    font-size: 0.75rem;
    opacity: 0.9;
}

.app-store-text strong {
    display: block;
    font-size: 1rem;
}

.download-info {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.info-badge {
    background: rgba(10, 31, 68, 0.1);
    padding: 0.5rem 1rem;
    border-radius: 50px;
    font-weight: 500;
    font-size: 0.875rem;
}

.phone-mockup {
    position: relative;
    animation: float 3s ease-in-out infinite;
}

/* ===================================
   Contact Section
   ================================== */
.contact-section {
    background: linear-gradient(to bottom, #f8f9fa 0%, #ffffff 100%);
    padding: 6rem 0;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: rgba(10, 31, 68, 0.05);
    border-radius: 15px;
    transition: var(--transition);
}

.contact-item:hover {
    background: rgba(10, 31, 68, 0.08);
    transform: translateX(10px);
}

.contact-icon {
    width: 60px;
    height: 60px;
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
    flex-shrink: 0;
}

.contact-details a {
    color: var(--primary-navy);
    text-decoration: none;
    transition: var(--transition);
}

.contact-details a:hover {
    color: var(--primary-red);
}

.social-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    background: linear-gradient(135deg, var(--primary-navy) 0%, var(--dark-green) 100%);
    color: white;
    border-radius: 50%;
    margin-right: 0.75rem;
    text-decoration: none;
    transition: var(--transition);
    box-shadow: var(--shadow-sm);
}

.social-icon:hover {
    background: linear-gradient(135deg, var(--primary-red) 0%, #ff6b7a 100%);
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
    color: white;
}

.contact-form-wrapper {
    padding: 2.5rem;
}

.form-control {
    border: 2px solid #e9ecef;
    border-radius: 10px;
    padding: 0.75rem 1rem;
    transition: var(--transition);
    font-family: 'Inter', sans-serif;
}

.form-control:focus {
    border-color: var(--primary-red);
    box-shadow: 0 0 0 0.2rem rgba(255, 51, 71, 0.15);
}

.form-label {
    font-weight: 600;
    color: var(--primary-navy);
    margin-bottom: 0.5rem;
}

#formMessage {
    padding: 1rem;
    border-radius: 10px;
    display: none;
}

#formMessage.success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
    display: block;
}

#formMessage.error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
    display: block;
}

/* ===================================
   Footer
   ================================== */
.footer {
    background: linear-gradient(135deg, var(--primary-navy) 0%, #0a3a5e 100%);
    color: #ffffff;
}

.footer-logo {
    height: 80px;
    margin-bottom: 1rem;
}

.footer h5 {
    color: #ffffff;
    font-weight: 700;
}

.footer-links {
    list-style: none;
    padding: 0;
}

.footer-links li {
    margin-bottom: 0.75rem;
}

.footer-links a {
    color: #ffffff;
    text-decoration: none;
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--primary-red);
    padding-left: 5px;
}

.social-icon-footer {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border-radius: 50%;
    margin-left: 0.5rem;
    text-decoration: none;
    transition: var(--transition);
}

.social-icon-footer:hover {
    background: var(--primary-red);
    transform: translateY(-3px);
    color: white;
}

.footer p {
    color: #ffffff;
}

/* ===================================
   Back to Top Button
   ================================== */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--primary-red) 0%, #ff6b7a 100%);
    color: white;
    border: none;
    border-radius: 50%;
    font-size: 1.25rem;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    box-shadow: var(--shadow-lg);
    z-index: 1000;
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-xl);
}

/* ===================================
   Animations
   ================================== */
@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes bounce {

    0%,
    20%,
    50%,
    80%,
    100% {
        transform: translateY(0);
    }

    40% {
        transform: translateY(-10px);
    }

    60% {
        transform: translateY(-5px);
    }
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-20px);
    }
}

.animate-fade-in {
    animation: fadeInDown 0.8s ease-out 0.2s both;
}

.animate-fade-in-delay {
    animation: fadeInDown 0.8s ease-out 0.4s both;
}

.animate-fade-in-delay-2 {
    animation: fadeInDown 0.8s ease-out 0.6s both;
}

.animate-float {
    animation: float 3s ease-in-out infinite;
}

.pulse-animation {
    animation: pulse 2s infinite;
}

@keyframes pulse {

    0%,
    100% {
        box-shadow: 0 4px 15px rgba(255, 51, 71, 0.4);
    }

    50% {
        box-shadow: 0 8px 30px rgba(255, 51, 71, 0.7);
    }
}

/* ===================================
   Utility Classes
   ================================== */
.text-purple {
    color: #8B5CF6;
}

.shadow-2xl {
    box-shadow: var(--shadow-xl);
}

/* Scroll Animation Observer */
.scroll-fade {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.scroll-fade.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ===================================
   Responsive Design
   ================================== */
@media (max-width: 991px) {
    .hero-title {
        font-size: 2.5rem;
    }

    .why-us-content {
        padding-left: 0 !important;
        margin-top: 2rem;
    }

    .app-store-btn {
        font-size: 0.875rem;
        padding: 0.75rem 1.25rem;
    }
}

@media (max-width: 767px) {
    .hero-stats {
        flex-wrap: wrap;
        justify-content: center;
    }

    .stat-item {
        flex: 0 0 calc(50% - 1rem);
        text-align: center;
    }

    .app-store-buttons {
        display: flex;
        flex-direction: column;
        gap: 1rem;
    }

    .app-store-btn {
        width: 100%;
        justify-content: center;
    }

    .social-icon {
        width: 40px;
        height: 40px;
    }
}

@media (max-width: 575px) {
    .hero-buttons .btn {
        width: 100%;
        margin-bottom: 1rem;
    }

    .section-badge {
        font-size: 0.75rem;
        padding: 0.4rem 1rem;
    }

    .contact-item {
        flex-direction: column;
        text-align: center;
    }
}

/* ===================================
   Dark Mode Styles
   ================================== */
body.dark-mode {
    --text-dark: #e9ecef;
    --text-light: #adb5bd;
    --bg-light: #1a1a1a;
    --bg-white: #212529;
}

body.dark-mode {
    background-color: #121212;
    color: #e9ecef;
}

body.dark-mode .navbar {
    background: rgba(18, 18, 18, 0.95);
}

body.dark-mode .services-section,
body.dark-mode .download-section,
body.dark-mode .contact-section {
    background: linear-gradient(to bottom, #1a1a1a 0%, #212529 100%);
}

body.dark-mode .glass-card {
    background: rgba(33, 37, 41, 0.95);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

body.dark-mode .section-title {
    color: #ffffff;
}

body.dark-mode .service-card:hover {
    border-color: var(--primary-red);
    background: rgba(255, 51, 71, 0.1);
}

body.dark-mode .form-control {
    background: #2b2b2b;
    border-color: #3a3a3a;
    color: #ffffff;
}

body.dark-mode .form-control:focus {
    background: #2b2b2b;
    border-color: var(--primary-red);
}

body.dark-mode .form-label {
    color: #e9ecef;
}

body.dark-mode .contact-item {
    background: rgba(255, 255, 255, 0.05);
}

body.dark-mode .contact-item:hover {
    background: rgba(255, 255, 255, 0.08);
}

body.dark-mode .contact-details a {
    color: #e9ecef;
}

body.dark-mode .info-badge {
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
}

/* Theme Toggle Button */
.theme-toggle {
    position: fixed;
    bottom: 100px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--primary-red) 0%, #ff6b7a 100%);
    color: white;
    border: none;
    border-radius: 50%;
    font-size: 1.25rem;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: var(--shadow-lg);
    z-index: 1000;
}

.theme-toggle:hover {
    transform: translateY(-5px) rotate(20deg);
    box-shadow: var(--shadow-xl);
}

/* Language Toggle */
.language-toggle {
    position: fixed;
    bottom: 170px;
    right: 30px;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    z-index: 1000;
}

.lang-btn {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--primary-navy) 0%, var(--dark-green) 100%);
    color: white;
    border: 2px solid transparent;
    border-radius: 50%;
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: var(--shadow-md);
}

.lang-btn:hover {
    transform: scale(1.1);
    box-shadow: var(--shadow-lg);
}

.lang-btn.active {
    background: linear-gradient(135deg, var(--primary-red) 0%, #ff6b7a 100%);
    border-color: white;
}