/* =========================================
   VARIABLES & THEMING
   ========================================= */
:root {
    /* Colors */
    --bg-color: #030712; /* Very dark blue/black */
    --bg-darker: #02040a;
    --text-primary: #f8fafc;
    --text-secondary: #94a3b8;
    
    --accent-primary: #f97316; /* Orange */
    --accent-secondary: #7e22ce; /* Purple (matches right side of KESARI text) */
    --accent-glow: rgba(249, 115, 22, 0.4);
    
    --card-bg: rgba(15, 23, 42, 0.6);
    --border-color: rgba(255, 255, 255, 0.08);

    /* Gradients */
    --gradient-primary: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
    
    /* Typography */
    --font-sans: 'Inter', sans-serif;
    --font-heading: 'Outfit', sans-serif;
    
    /* Spacing & Layout */
    --container-width: 1200px;
    --section-pad: 5rem 0;
    
    /* Transitions */
    --transition-fast: 0.2s ease-in-out;
    --transition-smooth: 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

/* =========================================
   RESET & BASE STYLES
   ========================================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px; /* Account for sticky nav */
}

body {
    font-family: var(--font-sans);
    background-color: var(--bg-color);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3, h4, .logo {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.2;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color var(--transition-fast);
}

img {
    max-width: 100%;
    display: block;
}

.container {
    width: 100%;
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 1.5rem;
}

.section {
    padding: var(--section-pad);
}

.bg-darker {
    background-color: var(--bg-darker);
}

/* Typography Utilities */
.accent {
    color: var(--accent-primary);
}

.accent-gradient {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* =========================================
   COMPONENTS
   ========================================= */
/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.875rem 1.75rem;
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    transition: transform var(--transition-smooth), box-shadow var(--transition-smooth), background-color var(--transition-fast);
    border: none;
    font-size: 1rem;
}

.btn:hover {
    transform: translateY(-2px);
}

.btn-primary {
    background: var(--gradient-primary);
    color: white;
    box-shadow: 0 4px 15px var(--accent-glow);
}

.btn-primary:hover {
    box-shadow: 0 8px 25px var(--accent-glow);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-primary);
    backdrop-filter: blur(10px);
    border: 1px solid var(--border-color);
}

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

.btn-outline {
    background: transparent;
    color: var(--text-primary);
    border: 1px solid var(--border-color);
}

.btn-outline:hover {
    border-color: var(--accent-primary);
    color: var(--accent-primary);
}

.btn-whatsapp {
    background-color: #25D366;
    color: white;
    margin-top: 1.5rem;
}

.btn-whatsapp:hover {
    background-color: #1ebc5a;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.3);
}

/* =========================================
   NAVIGATION
   ========================================= */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    height: 80px;
    display: flex;
    align-items: center;
    z-index: 1000;
    transition: background-color var(--transition-fast), backdrop-filter var(--transition-fast);
    border-bottom: 1px solid transparent;
}

.navbar.scrolled {
    background-color: rgba(3, 7, 18, 0.85);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-color);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: inline-flex;
    align-items: center;
}

.logo-img {
    height: 48px;
    width: auto;
    object-fit: contain;
}

.nav-links {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.nav-links a:not(.btn) {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-secondary);
}

.nav-links a:not(.btn):hover {
    color: white;
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
}

/* =========================================
   HERO SECTION
   ========================================= */
.hero {
    position: relative;
    padding-top: 160px;
    padding-bottom: 100px;
    min-height: 100vh;
    display: flex;
    align-items: center;
}

.hero-bg-glow {
    position: absolute;
    top: -20%;
    left: 50%;
    transform: translateX(-50%);
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(249,115,22,0.2) 0%, rgba(3,7,18,0) 70%);
    filter: blur(60px);
    z-index: -1;
}

.hero-container {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 4rem;
    align-items: center;
}

.badge {
    display: inline-block;
    padding: 0.4rem 1rem;
    border-radius: 50px;
    background: rgba(249, 115, 22, 0.1);
    border: 1px solid rgba(249, 115, 22, 0.3);
    color: var(--accent-primary);
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
}

.hero-title {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
}

.hero-subtitle {
    font-size: 1.125rem;
    color: var(--text-secondary);
    margin-bottom: 2.5rem;
    max-width: 500px;
}

.hero-cta {
    display: flex;
    gap: 1rem;
    margin-bottom: 3rem;
}

.trust-indicators {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.avatars {
    display: flex;
}

.avatars img, .avatar-more {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 2px solid var(--bg-color);
    margin-left: -12px;
}

.avatars img:first-child {
    margin-left: 0;
}

.avatar-more {
    background: #1e293b;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    color: white;
    font-size: 0.75rem;
}

.hero-visual {
    position: relative;
    height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-image-placeholder {
    width: 300px;
    height: 300px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(249,115,22,0.1), rgba(251,146,60,0.1));
    border: 1px solid rgba(255,255,255,0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.large-icon {
    font-size: 5rem;
    color: var(--accent-primary);
    filter: drop-shadow(0 0 20px var(--accent-glow));
}

.circle-pulse {
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    border: 1px solid var(--accent-primary);
    animation: pulse 3s infinite;
}

@keyframes pulse {
    0% { transform: scale(1); opacity: 0.5; }
    100% { transform: scale(1.5); opacity: 0; }
}

.floating-card {
    position: absolute;
    background: rgba(15, 23, 42, 0.8);
    backdrop-filter: blur(10px);
    border: 1px solid var(--border-color);
    padding: 1rem 1.5rem;
    border-radius: 12px;
    font-weight: 600;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    display: flex;
    align-items: center;
    gap: 0.75rem;
    animation: float 6s ease-in-out infinite;
}

.floating-card i {
    color: #25D366;
    font-size: 1.25rem;
}

.floating-card.card-1 {
    top: 20%;
    left: 0;
}

.floating-card.card-2 {
    bottom: 25%;
    right: 0;
    animation-delay: 2s;
}

.floating-card.card-2 i {
    color: var(--accent-primary);
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-15px); }
}

/* =========================================
   SECTION HEADERS
   ========================================= */
.section-header {
    text-align: center;
    margin-bottom: 4rem;
    max-width: 700px;
    margin-inline: auto;
}

.section-header h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

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

/* =========================================
   SERVICES SECTION
   ========================================= */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 1.5rem;
}

.service-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 2.5rem 2rem;
    transition: transform var(--transition-smooth), border-color var(--transition-fast), box-shadow var(--transition-smooth);
}

.service-card:hover {
    transform: translateY(-5px);
    border-color: rgba(249, 115, 22, 0.4);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.4);
    background: rgba(30, 41, 59, 0.6);
}

.icon-wrapper {
    width: 60px;
    height: 60px;
    border-radius: 14px;
    background: rgba(249, 115, 22, 0.1);
    color: var(--accent-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    margin-bottom: 1.5rem;
    border: 1px solid rgba(249, 115, 22, 0.2);
}

.service-card h3 {
    font-size: 1.25rem;
    margin-bottom: 1rem;
}

.service-card p {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
}

.service-card .outcome {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    font-weight: 600;
    color: #e2e8f0;
    border-top: 1px solid var(--border-color);
    padding-top: 1.25rem;
}

.service-card .outcome i {
    color: var(--accent-primary);
}

/* =========================================
   GROWTH SYSTEM SECTION
   ========================================= */
.system-timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
}

.system-timeline::before {
    content: '';
    position: absolute;
    top: 0;
    left: 30px;
    height: 100%;
    width: 2px;
    background: linear-gradient(to bottom, var(--accent-primary), var(--accent-secondary), transparent);
    border-radius: 2px;
}

.timeline-step {
    display: flex;
    margin-bottom: 3rem;
    position: relative;
}

.timeline-step:last-child {
    margin-bottom: 0;
}

.step-number {
    width: 62px;
    height: 62px;
    border-radius: 50%;
    background: var(--bg-color);
    border: 2px solid var(--accent-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.25rem;
    z-index: 2;
    margin-right: 2rem;
    flex-shrink: 0;
    box-shadow: 0 0 20px var(--accent-glow);
}

.step-content {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 2rem;
    flex-grow: 1;
    transition: transform var(--transition-fast);
}

.step-content:hover {
    transform: translateX(10px);
    border-color: rgba(255, 255, 255, 0.15);
}

.step-content h3 {
    font-size: 1.35rem;
    margin-bottom: 0.75rem;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.step-content h3 i {
    color: var(--text-secondary);
    font-size: 1rem;
}

.step-content p {
    color: var(--text-secondary);
}

/* =========================================
   PORTFOLIO SECTION
   ========================================= */
.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
}

.case-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    overflow: hidden;
    transition: transform var(--transition-smooth);
}

.case-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.5);
}

.case-img {
    height: 200px;
    background-size: cover;
    background-position: center;
    position: relative;
}

/* Gradient placeholders for portfolio images */
.ecommerce-bg { background: linear-gradient(135deg, #1e3a8a, #0f172a); }
.realestate-bg { background: linear-gradient(135deg, #064e3b, #0f172a); }
.b2b-bg { background: linear-gradient(135deg, #4c1d95, #0f172a); }

.case-content {
    padding: 2rem;
}

.case-tag {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-secondary);
    margin-bottom: 0.75rem;
    font-weight: 600;
}

.case-content h3 {
    margin-bottom: 0.5rem;
    font-size: 1.35rem;
}

.case-content p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
}

.metrics {
    display: flex;
    justify-content: space-between;
    border-top: 1px solid var(--border-color);
    padding-top: 1.25rem;
}

.metric strong {
    display: block;
    font-family: var(--font-heading);
    font-size: 1.5rem;
    color: var(--accent-primary);
    line-height: 1.2;
}

/* =========================================
   TESTIMONIALS SECTION
   ========================================= */
.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 2rem;
}

.testimonial-card {
    background: linear-gradient(to bottom right, rgba(30, 41, 59, 0.4), var(--bg-color));
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 3rem 2.5rem;
    position: relative;
}

.testimonial-card::before {
    content: '"';
    position: absolute;
    top: 20px;
    right: 30px;
    font-family: serif;
    font-size: 5rem;
    color: rgba(255, 255, 255, 0.05);
    line-height: 1;
}

.stars {
    color: #fbbf24;
    margin-bottom: 1.5rem;
    font-size: 0.9rem;
    display: flex;
    gap: 0.2rem;
}

.quote {
    font-size: 1.125rem;
    font-style: italic;
    color: #e2e8f0;
    margin-bottom: 2rem;
    line-height: 1.7;
}

.client-info {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.client-info img {
    border-radius: 50%;
    width: 50px;
    height: 50px;
}

.client-info h4 {
    font-size: 1rem;
    margin-bottom: 0.2rem;
}

.client-info span {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

/* =========================================
   ABOUT SECTION
   ========================================= */
.about-container {
    display: flex;
    justify-content: center;
}

.about-content {
    max-width: 800px;
    text-align: left;
    background: var(--card-bg);
    padding: 4rem;
    border-radius: 24px;
    border: 1px solid var(--border-color);
    position: relative;
    overflow: hidden;
}

.about-content::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 200px;
    height: 200px;
    background: var(--accent-primary);
    filter: blur(80px);
    opacity: 0.2;
    border-radius: 50%;
}

.about-content h2 {
    font-size: 2.25rem;
    margin-bottom: 1.5rem;
}

.about-content p {
    color: #cbd5e1;
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
}

.about-stats {
    display: flex;
    gap: 3rem;
    margin-top: 3rem;
    border-top: 1px solid var(--border-color);
    padding-top: 2rem;
}

.about-stats .stat span {
    font-size: 2.5rem;
    font-family: var(--font-heading);
    font-weight: 800;
}

/* =========================================
   CONTACT / LEAD SECTION
   ========================================= */
.contact-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.contact-info h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.contact-info p {
    color: var(--text-secondary);
    font-size: 1.1rem;
    margin-bottom: 2rem;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 2rem;
}

.contact-method {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 1.1rem;
    color: #e2e8f0;
}

.contact-method i {
    color: var(--accent-primary);
    font-size: 1.25rem;
}

.contact-form-wrapper {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 24px;
    padding: 3rem;
    box-shadow: 0 20px 40px rgba(0,0,0,0.3);
}

.contact-form-wrapper h3 {
    font-size: 1.5rem;
    margin-bottom: 2rem;
}

.form-group {
    margin-bottom: 1.25rem;
}

input, select, textarea {
    width: 100%;
    background: rgba(30, 41, 59, 0.5);
    border: 1px solid var(--border-color);
    padding: 1rem 1.25rem;
    border-radius: 8px;
    color: white;
    font-family: var(--font-sans);
    font-size: 1rem;
    transition: border-color var(--transition-fast), background var(--transition-fast), box-shadow var(--transition-fast);
}

input::placeholder, textarea::placeholder {
    color: #64748b;
}

input:focus, select:focus, textarea:focus {
    outline: none;
    border-color: var(--accent-primary);
    background: rgba(30, 41, 59, 0.8);
    box-shadow: 0 0 0 3px rgba(249, 115, 22, 0.2);
}

select {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml;charset=US-ASCII,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22292.4%22%20height%3D%22292.4%22%3E%3Cpath%20fill%3D%22%2394a3b8%22%20d%3D%22M287%2069.4a17.6%2017.6%200%200%200-13-5.4H18.4c-5%200-9.3%201.8-12.9%205.4A17.6%2017.6%200%200%200%200%2082.2c0%205%201.8%209.3%205.4%2012.9l128%20127.9c3.6%203.6%207.8%205.4%2012.8%205.4s9.2-1.8%2012.8-5.4L287%2095c3.5-3.5%205.4-7.8%205.4-12.8%200-5-1.9-9.2-5.5-12.8z%22%2F%3E%3C%2Fsvg%3E");
    background-repeat: no-repeat;
    background-position: right 1.25rem top 50%;
    background-size: 0.65rem auto;
}

select option {
    background: var(--bg-darker);
    color: white;
}

.submit-btn {
    width: 100%;
    margin-top: 1rem;
}

.success-message {
    text-align: center;
    padding: 2rem 0;
}

.success-message i {
    font-size: 3rem;
    color: #25D366;
    margin-bottom: 1rem;
}

.success-message h4 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.success-message p {
    color: var(--text-secondary);
}

/* =========================================
   FOOTER
   ========================================= */
.footer {
    border-top: 1px solid var(--border-color);
    padding-top: 4rem;
    background: var(--bg-darker);
}

.footer-container {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-brand p {
    color: var(--text-secondary);
    margin: 1rem 0 1.5rem;
    max-width: 300px;
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-links a {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--border-color);
    transition: all var(--transition-fast);
}

.social-links a:hover {
    background: var(--accent-primary);
    border-color: var(--accent-primary);
    color: white;
}

.footer-links h4 {
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
}

.footer-links a {
    display: block;
    color: var(--text-secondary);
    margin-bottom: 0.75rem;
    font-size: 0.95rem;
}

.footer-links a:hover {
    color: white;
}

.copyright {
    border-top: 1px solid var(--border-color);
    padding: 2rem 1.5rem;
    text-align: center;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

/* =========================================
   ANIMATIONS & RESPONSIVE
   ========================================= */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

@media (max-width: 992px) {
    .hero-title { font-size: 2.8rem; }
    .hero-container, .contact-container {
        grid-template-columns: 1fr;
    }
    .hero-container {
        text-align: center;
    }
    .hero-subtitle {
        margin-inline: auto;
    }
    .hero-cta {
        justify-content: center;
    }
    .trust-indicators {
        justify-content: center;
    }
    .hero-visual {
        margin-top: 3rem;
        height: 400px;
    }
}

@media (max-width: 768px) {
    :root {
        --section-pad: 4rem 0;
    }
    
    .nav-links {
        position: fixed;
        top: 80px;
        left: 0;
        width: 100%;
        background: rgba(3, 7, 18, 0.98);
        backdrop-filter: blur(10px);
        flex-direction: column;
        padding: 2rem;
        border-bottom: 1px solid var(--border-color);
        transform: translateY(-150%);
        transition: transform var(--transition-smooth);
        z-index: 999;
    }

    .nav-links.active {
        transform: translateY(0);
    }

    .mobile-menu-btn {
        display: block;
    }

    .hero-title { font-size: 2.3rem; }
    
    .hero-cta {
        flex-direction: column;
    }

    .testimonials-grid {
        grid-template-columns: 1fr;
    }

    .about-content {
        padding: 2rem;
    }
    
    .about-stats {
        flex-direction: column;
        gap: 1.5rem;
    }

    .footer-container {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .system-timeline::before {
        left: 20px;
    }
    
    .step-number {
        width: 40px;
        height: 40px;
        font-size: 1rem;
        margin-right: 1rem;
    }
}
