/* Jalpi Trak Landing Page Styles - Light & Dark Mode Support */

/* Light Theme (Default) */
:root,
[data-theme="light"] {
    --primary-color: #1a73e8;
    --primary-dark: #1557b0;
    --secondary-color: #34a853;
    --text-primary: #202124;
    --text-secondary: #5f6368;
    --text-muted: #80868b;
    --bg-primary: #ffffff;
    --bg-secondary: #f8f9fa;
    --bg-tertiary: #f1f3f4;
    --border-color: #e0e0e0;
    --border-light: #f0f0f0;
    --shadow-sm: 0 2px 4px rgba(0,0,0,0.08);
    --shadow-md: 0 4px 12px rgba(0,0,0,0.1);
    --shadow-lg: 0 10px 30px rgba(0,0,0,0.15);
    --hero-gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --card-bg: #ffffff;
    --navbar-bg: rgba(255, 255, 255, 0.95);
    --footer-bg: #1a1a1a;
    --footer-text: #ffffff;
    --footer-link: rgba(255, 255, 255, 0.7);
    --input-bg: #ffffff;
    --input-border: #e0e0e0;
    --input-focus-border: #1a73e8;
}

/* Dark Theme */
[data-theme="dark"] {
    --primary-color: #4285f4;
    --primary-dark: #3367d6;
    --secondary-color: #34a853;
    --text-primary: #e8eaed;
    --text-secondary: #bdc1c6;
    --text-muted: #9aa0a6;
    --bg-primary: #1a1a1a;
    --bg-secondary: #2d2d2d;
    --bg-tertiary: #3a3a3a;
    --border-color: #3a3a3a;
    --border-light: #2d2d2d;
    --shadow-sm: 0 2px 4px rgba(0,0,0,0.3);
    --shadow-md: 0 4px 12px rgba(0,0,0,0.4);
    --shadow-lg: 0 10px 30px rgba(0,0,0,0.5);
    --hero-gradient: linear-gradient(135deg, #4a5568 0%, #2d3748 100%);
    --card-bg: #2d2d2d;
    --navbar-bg: rgba(26, 26, 26, 0.95);
    --footer-bg: #0f0f0f;
    --footer-text: #e8eaed;
    --footer-link: rgba(232, 234, 237, 0.7);
    --input-bg: #2d2d2d;
    --input-border: #3a3a3a;
    --input-focus-border: #4285f4;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    color: var(--text-primary);
    background-color: var(--bg-primary);
    line-height: 1.6;
    overflow-x: hidden;
    transition: background-color 0.3s ease, color 0.3s ease;
}

/* Navigation */
.navbar {
    padding: 1rem 0;
    background-color: var(--navbar-bg) !important;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
    border-bottom: 1px solid var(--border-color);
}

.navbar-brand {
    font-size: 1.5rem;
    color: var(--primary-color) !important;
    display: flex;
    align-items: center;
    padding: 0.25rem 0;
}

.logo-img {
    transition: opacity 0.3s ease, transform 0.3s ease;
    height: 36px;
    width: auto;
}

.navbar-brand:hover .logo-img {
    transform: scale(1.05);
}

/* Logo adapts to theme automatically via SVG gradients */
[data-theme="dark"] .navbar-brand .logo-img {
    /* SVG gradient will work in both themes */
    opacity: 0.95;
}

.navbar-nav .nav-link {
    font-weight: 500;
    color: var(--text-primary) !important;
    margin: 0 0.5rem;
    transition: color 0.3s ease;
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
    color: var(--primary-color) !important;
}

/* Theme Toggle Button */
.theme-toggle-btn {
    background: none;
    border: none;
    color: var(--text-primary);
    font-size: 1.2rem;
    padding: 0.5rem;
    cursor: pointer;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.theme-toggle-btn:hover {
    background-color: var(--bg-secondary);
    color: var(--primary-color);
}

.theme-icon-light,
.theme-icon-dark {
    transition: opacity 0.3s ease, transform 0.3s ease;
}

[data-theme="dark"] .theme-icon-light {
    display: none !important;
}

[data-theme="dark"] .theme-icon-dark {
    display: block !important;
}

[data-theme="light"] .theme-icon-light {
    display: block !important;
}

[data-theme="light"] .theme-icon-dark {
    display: none !important;
}

/* Hero Section */
.hero-section {
    padding: 120px 0 80px;
    background: var(--hero-gradient);
    color: white;
    min-height: 100vh;
    display: flex;
    align-items: center;
    transition: background 0.3s ease;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 1.5rem;
}

.hero-subtitle {
    font-size: 1.25rem;
    font-weight: 400;
    margin-bottom: 2rem;
    opacity: 0.95;
}

.hero-buttons .btn {
    padding: 0.75rem 2rem;
    font-weight: 600;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.hero-buttons .btn-primary {
    background: white;
    color: var(--primary-color);
    border: none;
}

.hero-buttons .btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.2);
}

.hero-buttons .btn-outline-primary {
    border: 2px solid white;
    color: white;
    background: transparent;
}

.hero-buttons .btn-outline-primary:hover {
    background: white;
    color: var(--primary-color);
}

.hero-stats {
    margin-top: 3rem;
}

.stat-item {
    text-align: center;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 0.9rem;
    opacity: 0.9;
    margin: 0;
}

.hero-image img {
    animation: float 3s ease-in-out infinite;
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: var(--shadow-lg);
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-20px);
    }
}

/* Section Styles */
.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-bottom: 3rem;
}

/* About Section */
.about-section {
    padding: 80px 0;
    background-color: var(--bg-primary);
}

.about-content p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-secondary);
}

.about-content .lead {
    font-size: 1.3rem;
    font-weight: 500;
    color: var(--text-primary);
}

/* Features Section */
.features-section {
    padding: 80px 0;
    background-color: var(--bg-secondary);
}

.feature-card {
    background: var(--card-bg);
    padding: 2.5rem;
    border-radius: 12px;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
    height: 100%;
    text-align: center;
    opacity: 0;
    transform: translateY(20px);
    border: 1px solid var(--border-color);
}

.feature-card.animate-in {
    opacity: 1;
    transform: translateY(0);
    transition: all 0.6s ease;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.feature-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    color: white;
    font-size: 2rem;
}

.feature-card h4 {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.feature-card p {
    color: var(--text-secondary);
    line-height: 1.6;
}

/* Pricing Section */
.pricing-section {
    padding: 80px 0;
    background-color: var(--bg-primary);
}

.pricing-card {
    background: var(--card-bg);
    border: 2px solid var(--border-color);
    border-radius: 16px;
    padding: 2.5rem;
    text-align: center;
    transition: all 0.3s ease;
    height: 100%;
    position: relative;
    opacity: 0;
    transform: translateY(20px);
}

.pricing-card.animate-in {
    opacity: 1;
    transform: translateY(0);
    transition: all 0.6s ease;
}

.pricing-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-md);
}

.pricing-card.featured {
    border-color: var(--primary-color);
    border-width: 3px;
    transform: scale(1.05);
}

.pricing-card.featured.animate-in {
    transform: scale(1.05) translateY(0);
}

.pricing-badge {
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--primary-color);
    color: white;
    padding: 0.5rem 1.5rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
}

.pricing-header h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.pricing-price {
    margin: 1.5rem 0;
}

.pricing-price .currency {
    font-size: 1.5rem;
    vertical-align: top;
}

.pricing-price .amount {
    font-size: 3.5rem;
    font-weight: 800;
    color: var(--primary-color);
    display: block;
}

.pricing-price .period {
    font-size: 1rem;
    color: var(--text-secondary);
    display: block;
    margin-top: 0.5rem;
}

.pricing-features {
    list-style: none;
    padding: 0;
    margin: 2rem 0;
    text-align: left;
}

.pricing-features li {
    padding: 0.75rem 0;
    color: var(--text-secondary);
    border-bottom: 1px solid var(--border-color);
}

.pricing-features li:last-child {
    border-bottom: none;
}

.pricing-features li i {
    color: var(--secondary-color);
    margin-right: 0.5rem;
}

/* Contact Section */
.contact-section {
    padding: 80px 0;
    background-color: var(--bg-secondary);
}

.contact-form-card {
    background: var(--card-bg);
    padding: 3rem;
    border-radius: 16px;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-color);
}

.contact-form-card .form-label {
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.contact-form-card .form-control {
    background-color: var(--input-bg);
    border: 2px solid var(--input-border);
    border-radius: 8px;
    padding: 0.75rem 1rem;
    color: var(--text-primary);
    transition: all 0.3s ease;
}

.contact-form-card .form-control:focus {
    background-color: var(--input-bg);
    border-color: var(--input-focus-border);
    color: var(--text-primary);
    box-shadow: 0 0 0 0.2rem rgba(26, 115, 232, 0.1);
}

.contact-form-card .form-control::placeholder {
    color: var(--text-muted);
}

/* Footer */
.footer {
    margin-top: 80px;
    background-color: var(--footer-bg) !important;
    color: var(--footer-text);
}

.footer h5, .footer h6 {
    color: var(--footer-text);
}

.footer a {
    color: var(--footer-link);
    transition: color 0.3s ease;
}

.footer a:hover {
    color: var(--footer-text) !important;
}

.social-links a {
    font-size: 1.5rem;
    transition: transform 0.3s ease, color 0.3s ease;
    color: var(--footer-link);
}

.social-links a:hover {
    transform: translateY(-3px);
    color: var(--footer-text);
}

.footer hr {
    border-color: var(--border-color);
    opacity: 0.3;
}

/* Buttons */
.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
}

.btn-primary:hover {
    background-color: var(--primary-dark);
    border-color: var(--primary-dark);
}

.btn-outline-primary {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.btn-outline-primary:hover {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
}

/* Alerts */
.alert {
    border: 1px solid var(--border-color);
    background-color: var(--card-bg);
    color: var(--text-primary);
}

.alert-success {
    background-color: rgba(52, 168, 83, 0.1);
    border-color: var(--secondary-color);
    color: var(--secondary-color);
}

.alert-danger {
    background-color: rgba(234, 67, 53, 0.1);
    border-color: #ea4335;
    color: #ea4335;
}

/* Responsive */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .pricing-card.featured {
        transform: scale(1);
    }
    
    .pricing-card.featured.animate-in {
        transform: scale(1) translateY(0);
    }
    
    .contact-form-card {
        padding: 2rem;
    }
    
    .hero-section {
        padding: 100px 0 60px;
    }
    
    .theme-toggle-btn {
        margin-left: 0.5rem;
    }
}

/* Smooth Scroll */
html {
    scroll-behavior: smooth;
}

/* Navbar scroll effect */
.navbar.scrolled {
    background: var(--navbar-bg) !important;
    backdrop-filter: blur(10px);
}

/* Image filter for dark mode */
[data-theme="dark"] img {
    filter: brightness(0.9) contrast(1.1);
}

/* Dashboard placeholder */
.dashboard-placeholder {
    background: rgba(255,255,255,0.1);
    border: 2px dashed rgba(255,255,255,0.3);
}

[data-theme="dark"] .dashboard-placeholder {
    background: rgba(0,0,0,0.2);
    border-color: rgba(255,255,255,0.2);
}
