/* Navabharatha Modern SaaS Homepage Overrides - Light Mode */
/* ---------------------------------------------------- */

/* Global Typography & Colors tweaks for the homepage */
:root {
    --saas-bg: #ffffff; /* Pure white instead of gray */
    --saas-surface: rgba(255, 255, 255, 0.8);
    --saas-accent: #1a8ea5; /* Brand Secondary / Light Primary */
    --saas-accent-glow: rgba(26, 142, 165, 0.2);
    --saas-primary: #0e5e72; /* Updated to match new teal brand color */
    --saas-text-dark: #0f172a; /* Main text color */
    --saas-text-muted: #475569; /* Muted text color */
    --saas-gradient-border: linear-gradient(135deg, rgba(0,0,0,0.05), rgba(0,0,0,0));
    --saas-gradient-primary: linear-gradient(135deg, #0e5e72 0%, #16a3b6 100%);
}

body {
    background-color: var(--saas-bg);
    color: var(--saas-text-dark);
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    overflow-x: hidden;
}

/* Base Top Header modifications - Cleaned up to restore visibility */

/* Premium Aurora/Gradient Hero Background */
.hero {
    background: transparent !important;
    position: relative;
    padding-top: 100px !important;
    padding-bottom: 30px !important; /* Reduced from 80px */
    overflow: hidden;
    min-height: auto;
    display: flex;
    align-items: center;
}

.hero::before {
    content: '';
    position: absolute;
    top: -20%;
    left: -10%;
    width: 60%;
    height: 60%;
    background: radial-gradient(circle, rgba(14, 94, 114, 0.08) 0%, transparent 60%);
    filter: blur(80px);
    z-index: 0;
    animation: float 20s infinite alternate;
}

.hero::after {
    content: '';
    position: absolute;
    bottom: -10%;
    right: -10%;
    width: 70%;
    height: 70%;
    background: radial-gradient(circle, rgba(26, 142, 165, 0.08) 0%, transparent 60%);
    filter: blur(80px);
    z-index: 0;
    animation: float 25s infinite alternate-reverse;
}

.hero-bg-blobs {
    display: none; /* Hide old blobs */
}

.hero-container {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
    max-width: 1300px;
}

.hero-content {
    flex: 1;
    max-width: 600px;
    text-align: left;
}

.hero-title {
    font-size: 3.5rem !important;
    font-weight: 800;
    line-height: 1.2 !important;
    margin-bottom: 24px;
    letter-spacing: -0.01em;
    color: #0f172a !important;
    display: block;
    max-width: 500px;
}

.hero-title .accent-text {
    color: var(--saas-primary) !important; /* Solid accent color */
}

.hero-content p {
    font-size: 1.15rem;
    color: var(--saas-text-muted) !important;
    line-height: 1.6;
    margin-bottom: 32px;
}

/* Magnetic Buttons / Modern CTA */
.hero-content .btn-primary {
    background: var(--saas-gradient-primary) !important;
    border: none;
    padding: 16px 36px;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 8px;
    box-shadow: 0 10px 25px var(--saas-accent-glow);
    transition: transform 0.3s, box-shadow 0.3s;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: #fff !important;
}

.hero-content .btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 35px rgba(14, 94, 114, 0.3);
}

/* Animated UI Preview (Hero Right side) */
.hero-image {
    flex: 1;
    position: relative;
    perspective: 1000px;
}

.saas-ui-mockup {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(0,0,0,0.05);
    border-radius: 16px;
    padding: 20px;
    box-shadow: 0 25px 50px -12px rgba(0,0,0,0.1);
    transform: rotateY(-15deg) rotateX(5deg);
    transition: transform 0.5s ease;
    position: relative;
}

.saas-ui-mockup:hover {
    transform: rotateY(0deg) rotateX(0deg);
}

@keyframes floatUI {
    0%, 100% { transform: translateY(0) rotateY(-15deg) rotateX(5deg); }
    50% { transform: translateY(-20px) rotateY(-12deg) rotateX(8deg); }
}

.mockup-header {
    display: flex;
    gap: 8px;
    margin-bottom: 20px;
    border-bottom: 1px solid rgba(0,0,0,0.05);
    padding-bottom: 15px;
}
.mockup-dot { width: 12px; height: 12px; border-radius: 50%; background: #ef4444; }
.mockup-dot:nth-child(2) { background: #eab308; }
.mockup-dot:nth-child(3) { background: #10b981; }

.mockup-body {
    position: relative;
}

.mockup-body img {
    width: 100%;
    border-radius: 8px;
    border: 1px solid rgba(0,0,0,0.05);
}

/* Floating Elements around Mockup */
.hero-floating-badge {
    position: absolute;
    background: rgba(255,255,255,0.9);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(0,0,0,0.05);
    padding: 12px 20px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    gap: 12px;
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
    z-index: 3;
    animation: pulseGlow 4s infinite alternate;
}
.badge-1 { top: -20px; right: -20px; }
.badge-2 { bottom: 40px; left: -40px; animation-delay: 1s; }

.hero-floating-badge i {
    font-size: 1.5rem;
    color: var(--saas-primary);
}
.hero-floating-badge span {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--saas-text-dark);
}

@keyframes pulseGlow {
    0% { box-shadow: 0 0 0 0 rgba(14, 94, 114, 0.2); }
    100% { box-shadow: 0 0 20px 5px rgba(14, 94, 114, 0); }
}

/* Section Divider */
.section-divider svg path {
    fill: #ffffff !important; 
}

/* Services Section - Glassmorphism Restyle */
.services {
    background: #ffffff !important;
    position: relative;
    padding: 30px 0 40px; /* Reduced top padding from 80px */
}

.services-bg-blobs { display: none; }

.section-header h2 {
    color: var(--saas-text-dark) !important;
    font-size: 3rem;
    font-weight: 700;
}

.section-header p {
    color: var(--saas-text-muted) !important;
    font-size: 1.2rem;
}

.services .section-header {
    margin-bottom: 20px !important; /* Reduced from 60px */
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    padding: 0 0 40px; /* Removed top padding (was 24px) */
}

/* Mobile Slider Restoration */
@media (max-width: 991px) {
    .services-slider-container {
        overflow: hidden;
        width: 100%;
        position: relative;
    }

    .services-grid {
        display: flex !important;
        overflow-x: auto !important;
        grid-template-columns: none !important;
        gap: 20px !important;
        padding: 0 0 40px !important; /* Removed top padding (was 20px) */
        scroll-behavior: smooth !important;
        -webkit-overflow-scrolling: touch !important;
        scrollbar-width: none !important;
        scroll-snap-type: x mandatory !important;
    }

    .services-grid::-webkit-scrollbar {
        display: none !important;
    }

    .service-card {
        min-width: 280px !important;
        max-width: 85vw !important;
        flex: 0 0 auto !important;
        scroll-snap-align: center !important;
    }

    .slider-wrapper {
        position: relative;
        padding: 0 15px;
    }

    .scroll-btn {
        display: flex !important;
        position: absolute;
        top: 50%;
        transform: translateY(-50%);
        z-index: 10;
        width: 40px !important;
        height: 40px !important;
        background: #fff !important;
        border: 1px solid rgba(0,0,0,0.1) !important;
        box-shadow: 0 4px 10px rgba(0,0,0,0.1) !important;
        border-radius: 50% !important;
        align-items: center;
        justify-content: center;
        color: var(--saas-primary) !important;
    }

    .prev-btn { left: -5px !important; }
    .next-btn { right: -5px !important; }
}

@media (min-width: 992px) {
    .scroll-btn {
        display: none !important;
    }
}


.service-card {
    background: rgba(255, 255, 255, 0.9) !important;
    backdrop-filter: blur(12px);
    border: 1px solid rgba(0, 0, 0, 0.05);
    border-radius: 16px;
    padding: 40px 30px;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    transform-style: preserve-3d;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    text-align: left;
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; height: 1px;
    background: linear-gradient(90deg, transparent, rgba(0,0,0,0.05), transparent);
    opacity: 0;
    transition: opacity 0.3s;
}

.service-card:hover {
    transform: translateY(-10px) rotateX(2deg) rotateY(-2deg);
    border-color: rgba(14, 94, 114, 0.15);
    box-shadow: 0 20px 40px rgba(14, 94, 114, 0.1);
}

.service-card:hover::before { opacity: 1; }

.service-card .icon {
    width: 60px;
    height: 60px;
    background: rgba(14, 94, 114, 0.05);
    border: 1px solid rgba(14, 94, 114, 0.1);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
    transition: transform 0.3s;
}

.service-card:hover .icon {
    transform: scale(1.1) rotate(5deg);
    background: var(--saas-gradient-primary);
    border-color: transparent;
}

.service-card:hover .icon i {
    color: #fff;
}

.service-card .icon i {
    font-size: 1.5rem;
    color: var(--saas-primary);
    transition: color 0.3s;
}

.service-card h2 {
    color: var(--saas-text-dark) !important;
    font-size: 1.5rem;
    margin-bottom: 16px;
}

.service-card p {
    color: var(--saas-text-muted) !important;
    font-size: 1rem;
    line-height: 1.6;
}

.learn-more-btn, .visit-site-link {
    color: var(--saas-primary) !important;
}

/* Dashboard Section */
.dashboard-section {
    background: #ffffff !important;
    border-top: 1px solid rgba(0,0,0,0.05);
    padding: 20px 0 20px; /* Reduced from 40px */
    position: relative;
    overflow: hidden;
}

.dashboard-section .section-header {
    margin-bottom: 20px !important; /* Reduced from 60px */
}

.metric-card {
    background: rgba(255, 255, 255, 0.9) !important;
    border: 1px solid rgba(0,0,0,0.05) !important;
    backdrop-filter: blur(10px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.03);
}

.metric-card h2 { color: var(--saas-text-muted) !important; }
.metric-value { color: var(--saas-text-dark) !important; font-size: 2.5rem; }

.chart-container-large, .chart-container-side {
    background: rgba(255, 255, 255, 0.9) !important;
    border: 1px solid rgba(0,0,0,0.05) !important;
    backdrop-filter: blur(10px);
    border-radius: 16px;
    padding: 35px 35px 55px 35px !important;
    position: relative;
    box-sizing: border-box;
}

.chart-header h2 { color: var(--saas-text-dark) !important; }

/* Contact Section Enhancements */
.contact {
    background: #ffffff !important;
    padding: 20px 0 40px; /* Reduced top padding from 40px */
    position: relative;
    overflow: hidden;
}

/* Subtle Grid Background */
.contact::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        radial-gradient(circle at 2px 2px, rgba(14, 94, 114, 0.05) 1px, transparent 0);
    background-size: 40px 40px;
    pointer-events: none;
    z-index: 0;
}

.contact .container {
    position: relative;
    z-index: 1;
}

.contact-container {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 60px;
    align-items: start;
}

/* Modern Contact Info Cards */
.contact-cards {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.contact-card {
    background: #ffffff !important;
    border: 1px solid rgba(0, 0, 0, 0.05) !important;
    border-radius: 20px !important;
    padding: 30px !important;
    display: flex;
    align-items: center;
    gap: 24px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1) !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03) !important;
    cursor: default;
}

.contact-card:hover {
    transform: translateY(-8px) !important;
    box-shadow: 0 20px 40px rgba(14, 94, 114, 0.08) !important;
    border-color: rgba(14, 94, 114, 0.25) !important;
}

.contact-card-icon {
    width: 64px !important;
    height: 64px !important;
    background: rgba(14, 94, 114, 0.05) !important;
    color: var(--saas-primary) !important;
    border-radius: 16px !important;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px !important;
    transition: all 0.3s ease !important;
}

.contact-card:hover .contact-card-icon {
    background: var(--saas-gradient-primary) !important;
    color: #fff !important;
    transform: scale(1.1) rotate(5deg);
}

.contact-card-details h2 {
    font-size: 1.25rem !important;
    font-weight: 700 !important;
    margin-bottom: 4px !important;
    color: var(--saas-text-dark) !important;
}

.contact-card-details p, .contact-card-details p a {
    color: var(--saas-text-muted) !important;
    text-decoration: none;
    transition: color 0.3s;
    font-size: 1rem !important;
}

.contact-card-details p a:hover {
    color: var(--saas-primary) !important;
}

/* Premium Contact Form */
.contact-form-wrapper {
    background: #ffffff !important;
    border: 1px solid rgba(0, 0, 0, 0.05) !important;
    border-radius: 24px !important;
    padding: 50px !important;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.05) !important;
}

.contact-form .form-row {
    display: flex;
    gap: 24px;
    margin-bottom: 0; /* Handled by floating-group padding */
}

.contact-form .form-row .floating-group {
    flex: 1;
}

/* Floating Label Inputs */
.floating-group {
    position: relative;
    margin-bottom: 30px;
}

.floating-group input, 
.floating-group select, 
.floating-group textarea {
    width: 100%;
    padding: 16px !important;
    font-size: 1rem !important;
    border: 1px solid rgba(0, 0, 0, 0.1) !important;
    background: #ffffff !important;
    border-radius: 12px !important;
    outline: none !important;
    transition: all 0.3s ease !important;
    color: var(--saas-text-dark) !important;
}

.floating-group label {
    position: absolute;
    left: 16px;
    top: 16px;
    color: var(--saas-text-muted) !important;
    pointer-events: none;
    transition: all 0.3s ease;
    background: transparent;
    padding: 0 4px;
}

/* Floating Label Logic */
.floating-group input:focus ~ label,
.floating-group input:not(:placeholder-shown) ~ label,
.floating-group select:focus ~ label,
.floating-group select:valid ~ label,
.floating-group textarea:focus ~ label,
.floating-group textarea:not(:placeholder-shown) ~ label {
    top: -10px;
    left: 12px;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--saas-primary) !important;
    background: #ffffff;
}

/* Focus State */
.floating-group input:focus, 
.floating-group select:focus, 
.floating-group textarea:focus {
    border-color: var(--saas-primary) !important;
    background: #ffffff !important;
    box-shadow: 0 0 0 4px rgba(14, 94, 114, 0.08) !important;
}

/* Form Select fix */
.floating-group select {
    appearance: none;
    cursor: pointer;
    background-color: #ffffff !important;
}

.floating-group select option {
    background-color: #ffffff !important;
    color: #0f172a !important;
    padding: 10px;
}

/* Send Message Button */
.contact-form .btn-primary {
    width: 100%;
    padding: 18px !important;
    font-size: 1.1rem !important;
    font-weight: 700 !important;
    background: var(--saas-gradient-primary) !important;
    border: none !important;
    border-radius: 12px !important;
    color: #fff !important;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1) !important;
    box-shadow: 0 10px 20px rgba(14, 94, 114, 0.2) !important;
    text-transform: none !important;
}

.contact-form .btn-primary:hover {
    transform: translateY(-3px) !important;
    box-shadow: 0 15px 30px rgba(14, 94, 114, 0.3) !important;
    filter: brightness(1.1);
}

/* Footer Styling Overrides to match Light Theme */
footer {
    background: #105469 !important; /* Premium dark teal footer */
    border-top: none !important;
    position: relative;
    z-index: 10;
    padding: 30px 0 0 !important; /* Reduced from 60px */
}

.footer-heading { color: var(--accent-color) !important; }
.footer-tagline, .footer-about-text, .footer-links a { color: rgba(255,255,255,0.8) !important; }
.footer-links a:hover { color: #fff !important; text-decoration: underline; }
.footer-bottom { 
    background: transparent !important; 
    border-top: none !important; 
    padding: 15px 0 15px !important; /* Reduced from 30px */
    margin-top: 15px !important; /* Reduced from 30px */
}
.social-icon { background: rgba(255,255,255,0.1) !important; color: #fff !important; border: 1px solid rgba(255,255,255,0.2) !important; }
.social-icon:hover { background: #fff !important; color: #0e5e72 !important; border-color: transparent !important; }
.copyright-text, .designed-by { color: rgba(255,255,255,0.8) !important; }

/* Responsive Tweaks */
@media (max-width: 992px) {
    .hero {
        padding-top: 50px !important; /* Move entire hero section up on mobile */
    }
    .hero-container {
        flex-direction: column;
        text-align: center;
        padding-top: 30px; /* Reduced from 60px */
        gap: 15px !important; /* Significantly reduced gap between elements */
    }
    .hero-image {
        margin-bottom: 0 !important; /* Remove bottom margin from image container */
    }
    .hero-title {
        font-size: 2.2rem !important;
        text-align: center;
        margin-left: auto;
        margin-right: auto;
        max-width: 100%;
    }
    .saas-ui-mockup {
        transform: rotateY(0deg) rotateX(0deg);
        margin-top: 20px; /* Reduced from 40px */
    }

    /* Contact Section Mobile Fix */
    .contact {
        padding: 60px 0;
    }

    .contact-container {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .contact-form-wrapper {
        padding: 30px 20px !important;
    }

    .contact-form .form-row {
        flex-direction: column;
        gap: 0;
    }

    .contact-card {
        padding: 20px !important;
        gap: 15px;
    }

    .contact-card-icon {
        width: 50px !important;
        height: 50px !important;
        font-size: 20px !important;
        flex-shrink: 0;
    }
}
