/* =============================================
   ECHELON INFOTECH - Main Stylesheet
   Corporate IT Services Website
   ============================================= */

/* --- CSS Variables --- */
:root {
    --navy: #0f1b2d;
    --navy-light: #1a2d4a;
    --navy-mid: #243b5e;
    --blue: #2563eb;
    --blue-light: #3b82f6;
    --blue-pale: #dbeafe;
    --teal: #0d9488;
    --teal-light: #14b8a6;
    --gold: #d4a843;
    --white: #ffffff;
    --gray-50: #f8fafc;
    --gray-100: #f1f5f9;
    --gray-200: #e2e8f0;
    --gray-300: #cbd5e1;
    --gray-400: #94a3b8;
    --gray-500: #64748b;
    --gray-600: #475569;
    --gray-700: #334155;
    --gray-800: #1e293b;
    --gray-900: #0f172a;
    --red: #dc2626;
    --green: #16a34a;
    --font-heading: 'DM Serif Display', Georgia, serif;
    --font-body: 'DM Sans', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-mono: 'JetBrains Mono', monospace;
    --shadow-sm: 0 1px 2px rgba(0,0,0,0.06);
    --shadow: 0 4px 12px rgba(0,0,0,0.08);
    --shadow-lg: 0 12px 40px rgba(0,0,0,0.12);
    --shadow-xl: 0 20px 60px rgba(0,0,0,0.15);
    --radius: 8px;
    --radius-lg: 16px;
    --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* --- Reset & Base --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
    font-family: var(--font-body);
    color: var(--gray-800);
    line-height: 1.7;
    background: var(--white);
    overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; color: inherit; transition: color var(--transition); }
button { cursor: pointer; border: none; background: none; font-family: inherit; }
input, textarea, select { font-family: inherit; font-size: inherit; }

/* --- Typography --- */
h1, h2, h3, h4, h5 { font-family: var(--font-heading); font-weight: 400; line-height: 1.2; color: var(--navy); }
h1 { font-size: clamp(2.2rem, 5vw, 3.8rem); }
h2 { font-size: clamp(1.8rem, 3.5vw, 2.8rem); }
h3 { font-size: clamp(1.3rem, 2.5vw, 1.8rem); }
h4 { font-size: 1.25rem; }
p { margin-bottom: 1rem; color: var(--gray-600); }

/* --- Layout --- */
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.container-narrow { max-width: 800px; margin: 0 auto; padding: 0 24px; }
.section { padding: 100px 0; }
.section-sm { padding: 60px 0; }
.section-dark { background: var(--navy); color: var(--white); }
.section-dark h2, .section-dark h3, .section-dark h4 { color: var(--white); }
.section-dark p { color: var(--gray-300); }
.section-gray { background: var(--gray-50); }

.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 40px; align-items: center; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }

.text-center { text-align: center; }
.text-gold { color: var(--gold); }
.text-blue { color: var(--blue); }
.text-teal { color: var(--teal); }
.mb-1 { margin-bottom: 8px; }
.mb-2 { margin-bottom: 16px; }
.mb-3 { margin-bottom: 24px; }
.mb-4 { margin-bottom: 40px; }
.mb-5 { margin-bottom: 60px; }

.section-label {
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 13px;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--teal);
    display: block;
    margin-bottom: 12px;
}
.section-dark .section-label { color: var(--gold); }

.section-desc {
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto 50px;
    color: var(--gray-500);
}

/* --- Buttons --- */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 32px;
    border-radius: var(--radius);
    font-weight: 600;
    font-size: 15px;
    letter-spacing: 0.3px;
    transition: all var(--transition);
    border: 2px solid transparent;
}
.btn-primary {
    background: var(--blue);
    color: var(--white);
    border-color: var(--blue);
}
.btn-primary:hover {
    background: #1d4ed8;
    border-color: #1d4ed8;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(37,99,235,0.3);
}
.btn-outline {
    background: transparent;
    color: var(--blue);
    border-color: var(--blue);
}
.btn-outline:hover {
    background: var(--blue);
    color: var(--white);
    transform: translateY(-2px);
}
.btn-white {
    background: var(--white);
    color: var(--navy);
    border-color: var(--white);
}
.btn-white:hover {
    background: var(--gray-100);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(255,255,255,0.2);
}
.btn-gold {
    background: var(--gold);
    color: var(--navy);
    border-color: var(--gold);
}
.btn-gold:hover {
    background: #c09533;
    transform: translateY(-2px);
}
.btn-lg { padding: 18px 40px; font-size: 16px; }
.btn-sm { padding: 10px 20px; font-size: 14px; }
.btn-block { width: 100%; justify-content: center; }
.btn-group { display: flex; gap: 16px; flex-wrap: wrap; }

/* --- Header / Navigation --- */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(15, 27, 45, 0.95);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255,255,255,0.06);
    transition: all var(--transition);
}
.header-scrolled {
    background: rgba(15, 27, 45, 0.98);
    box-shadow: 0 4px 20px rgba(0,0,0,0.3);
}
.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 24px;
    height: 72px;
    max-width: 1200px;
    margin: 0 auto;
}
.logo {
    font-family: var(--font-heading);
    font-size: 1.6rem;
    color: var(--white);
    letter-spacing: 2px;
}
.logo span { color: var(--gold); font-size: 0.6em; display: block; letter-spacing: 4px; font-family: var(--font-body); font-weight: 300; font-size: 10px; text-transform: uppercase; }
.nav { display: flex; align-items: center; gap: 32px; }
.nav a {
    color: var(--gray-300);
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 0.3px;
    transition: color var(--transition);
    position: relative;
}
.nav a:hover, .nav a.active { color: var(--white); }
.nav a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gold);
    transition: width var(--transition);
}
.nav a:hover::after, .nav a.active::after { width: 100%; }
.nav-cta {
    background: var(--blue) !important;
    color: var(--white) !important;
    padding: 10px 24px;
    border-radius: var(--radius);
    font-weight: 600 !important;
}
.nav-cta::after { display: none !important; }
.nav-cta:hover { background: #1d4ed8 !important; }

/* Mobile nav toggle */
.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    padding: 8px;
}
.nav-toggle span {
    width: 24px;
    height: 2px;
    background: var(--white);
    transition: all var(--transition);
}

/* Hero styles are now inline in index.html */

/* --- Services Cards --- */
.service-card {
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-lg);
    padding: 36px;
    transition: all var(--transition);
    position: relative;
    overflow: hidden;
}
.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--blue), var(--teal));
    opacity: 0;
    transition: opacity var(--transition);
}
.service-card:hover {
    border-color: var(--blue-pale);
    box-shadow: var(--shadow-lg);
    transform: translateY(-4px);
}
.service-card:hover::before { opacity: 1; }
.service-icon {
    width: 56px;
    height: 56px;
    background: var(--blue-pale);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    font-size: 24px;
    color: var(--blue);
}
.service-card h3 { margin-bottom: 12px; font-size: 1.25rem; }
.service-card p { font-size: 0.95rem; margin-bottom: 16px; }
.service-card .card-link {
    color: var(--blue);
    font-weight: 600;
    font-size: 14px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}
.service-card .card-link:hover { gap: 10px; }

/* --- Pricing Cards --- */
.pricing-card {
    background: var(--white);
    border: 2px solid var(--gray-200);
    border-radius: var(--radius-lg);
    padding: 40px 32px;
    text-align: center;
    transition: all var(--transition);
    position: relative;
    display: flex;
    flex-direction: column;
}
.pricing-card .btn { margin-top: auto; }
.pricing-card.featured {
    border-color: var(--blue);
    box-shadow: var(--shadow-xl);
    transform: scale(1.04);
}
.pricing-card.featured .pricing-badge {
    position: absolute;
    top: -14px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--blue);
    color: var(--white);
    padding: 6px 20px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
}
.pricing-tier {
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--teal);
    margin-bottom: 8px;
}
.pricing-card h3 { margin-bottom: 16px; }
.pricing-price {
    font-family: var(--font-heading);
    font-size: 2.8rem;
    color: var(--navy);
    margin-bottom: 4px;
}
.pricing-price span { font-size: 1rem; color: var(--gray-500); font-family: var(--font-body); }
.pricing-note { font-size: 13px; color: var(--gray-400); margin-bottom: 24px; }
.pricing-features {
    list-style: none;
    text-align: left;
    margin-bottom: 32px;
}
.pricing-features li {
    padding: 10px 0;
    border-bottom: 1px solid var(--gray-100);
    font-size: 14px;
    color: var(--gray-600);
    display: flex;
    align-items: flex-start;
    gap: 10px;
}
.pricing-features li::before {
    content: '\2713';
    color: var(--teal);
    font-weight: 700;
    flex-shrink: 0;
}
.pricing-timeline {
    background: var(--gray-50);
    padding: 12px;
    border-radius: var(--radius);
    font-size: 13px;
    color: var(--gray-600);
    margin-bottom: 24px;
}

/* --- Testimonials --- */
.testimonial-card {
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-lg);
    padding: 32px;
}
.testimonial-text { font-style: italic; font-size: 1.05rem; color: var(--gray-700); margin-bottom: 20px; }
.testimonial-author { display: flex; align-items: center; gap: 12px; }
.testimonial-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--blue-pale);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    color: var(--blue);
    font-size: 18px;
}
.testimonial-name { font-weight: 600; color: var(--navy); font-size: 15px; }
.testimonial-role { font-size: 13px; color: var(--gray-400); }

/* --- Contact / Form --- */
.form-group { margin-bottom: 20px; }
.form-label {
    display: block;
    margin-bottom: 6px;
    font-weight: 600;
    font-size: 14px;
    color: var(--gray-700);
}
.form-input, .form-textarea, .form-select {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid var(--gray-200);
    border-radius: var(--radius);
    font-size: 15px;
    color: var(--gray-800);
    background: var(--white);
    transition: border-color var(--transition);
}
.form-input:focus, .form-textarea:focus, .form-select:focus {
    outline: none;
    border-color: var(--blue);
}
.form-textarea { min-height: 140px; resize: vertical; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-note { font-size: 13px; color: var(--gray-400); margin-top: 4px; }

/* --- CTA Section --- */
.cta-section {
    background: linear-gradient(135deg, var(--navy) 0%, var(--navy-mid) 100%);
    padding: 80px 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}
.cta-section::before {
    content: '';
    position: absolute;
    top: -100px;
    right: -100px;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(212,168,67,0.1) 0%, transparent 70%);
    border-radius: 50%;
}
.cta-section h2 { color: var(--white); margin-bottom: 16px; }
.cta-section p { color: var(--gray-300); max-width: 500px; margin: 0 auto 32px; }

/* --- Footer --- */
.footer {
    background: var(--navy);
    color: var(--gray-400);
    padding: 60px 0 0;
}
.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
    padding-bottom: 40px;
    border-bottom: 1px solid rgba(255,255,255,0.08);
}
.footer-brand .logo { margin-bottom: 16px; display: inline-block; }
.footer-brand p { font-size: 14px; line-height: 1.7; color: var(--gray-400); max-width: 280px; }
.footer h4 { color: var(--white); font-size: 14px; font-family: var(--font-body); font-weight: 700; letter-spacing: 1px; text-transform: uppercase; margin-bottom: 20px; }
.footer-links { list-style: none; }
.footer-links li { margin-bottom: 10px; }
.footer-links a { font-size: 14px; color: var(--gray-400); transition: color var(--transition); }
.footer-links a:hover { color: var(--white); }
.footer-bottom {
    padding: 24px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 13px;
    color: var(--gray-500);
}
.footer-legal { display: flex; gap: 24px; }
.footer-legal a { color: var(--gray-500); }
.footer-legal a:hover { color: var(--gray-300); }

/* --- Page Header (inner pages) --- */
.page-header {
    background: linear-gradient(145deg, var(--navy), var(--navy-light));
    padding: 140px 0 60px;
    text-align: center;
    position: relative;
    overflow: hidden;
}
.page-header::before {
    content: '';
    position: absolute;
    top: -200px;
    right: -100px;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(37,99,235,0.08) 0%, transparent 70%);
    border-radius: 50%;
}
.page-header h1 { color: var(--white); margin-bottom: 12px; font-size: clamp(2rem, 4vw, 3rem); }
.page-header p { color: var(--gray-300); font-size: 1.1rem; max-width: 500px; margin: 0 auto; }
.breadcrumb { margin-top: 16px; font-size: 14px; }
.breadcrumb a { color: var(--gray-400); }
.breadcrumb a:hover { color: var(--white); }
.breadcrumb span { color: var(--gold); }

/* --- Service Detail Page --- */
.service-hero { padding: 140px 0 60px; background: linear-gradient(145deg, var(--navy), var(--navy-light)); }
.service-content { padding: 60px 0; }
.service-content h2 { margin-bottom: 16px; }
.service-content p { margin-bottom: 16px; }
.tech-stack { display: flex; flex-wrap: wrap; gap: 10px; margin: 20px 0; }
.tech-tag {
    background: var(--gray-100);
    color: var(--gray-700);
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 500;
}
.use-cases { margin: 24px 0; }
.use-case-item {
    padding: 16px 0;
    border-bottom: 1px solid var(--gray-100);
    display: flex;
    align-items: flex-start;
    gap: 12px;
}
.use-case-item::before {
    content: '\2192';
    color: var(--teal);
    font-weight: 700;
    flex-shrink: 0;
    margin-top: 2px;
}

/* --- Checkout & Payment --- */
.checkout-section { padding: 140px 0 60px; }
.checkout-grid { display: grid; grid-template-columns: 1.2fr 0.8fr; gap: 40px; }
.order-summary {
    background: var(--gray-50);
    border-radius: var(--radius-lg);
    padding: 32px;
    border: 1px solid var(--gray-200);
    position: sticky;
    top: 100px;
}
.order-summary h3 { margin-bottom: 20px; }
.summary-row {
    display: flex;
    justify-content: space-between;
    padding: 12px 0;
    border-bottom: 1px solid var(--gray-200);
    font-size: 15px;
}
.summary-row.total {
    border-bottom: none;
    font-weight: 700;
    font-size: 18px;
    color: var(--navy);
    padding-top: 16px;
}

/* Payment page */
.payment-container {
    max-width: 560px;
    margin: 0 auto;
    text-align: center;
    padding: 140px 24px 60px;
}
.payment-amount {
    font-family: var(--font-heading);
    font-size: 3rem;
    color: var(--navy);
    margin: 16px 0;
}
.payment-qr { margin: 24px 0; }
.payment-qr img { max-width: 240px; margin: 0 auto; border-radius: var(--radius); }
.upi-apps {
    display: flex;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
    margin: 24px 0;
}
.upi-app-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 16px 24px;
    border: 2px solid var(--gray-200);
    border-radius: var(--radius);
    transition: all var(--transition);
    font-weight: 600;
    font-size: 14px;
    color: var(--gray-700);
    min-width: 100px;
}
.upi-app-btn:hover {
    border-color: var(--blue);
    background: var(--blue-pale);
}
.payment-status-box {
    background: var(--gray-50);
    border-radius: var(--radius-lg);
    padding: 40px;
    margin-top: 32px;
}
.status-pending { color: var(--gold); }
.status-success { color: var(--green); }
.status-failed { color: var(--red); }
.spinner {
    width: 40px;
    height: 40px;
    border: 4px solid var(--gray-200);
    border-top-color: var(--blue);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    margin: 0 auto 16px;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* --- Legal Pages --- */
.legal-content { padding: 60px 0; }
.legal-content h2 { margin: 40px 0 16px; font-size: 1.5rem; }
.legal-content h3 { margin: 24px 0 12px; font-size: 1.2rem; }
.legal-content p, .legal-content li { font-size: 15px; line-height: 1.8; }
.legal-content ul, .legal-content ol { padding-left: 24px; margin-bottom: 16px; }
.legal-content li { margin-bottom: 8px; color: var(--gray-600); }

/* --- Benefits / Features --- */
.benefit-item {
    text-align: center;
    padding: 32px 20px;
}
.benefit-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 16px;
    background: var(--blue-pale);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    color: var(--blue);
}
.section-dark .benefit-icon { background: rgba(37,99,235,0.15); }

/* --- Info Box --- */
.info-box {
    background: var(--gray-50);
    border-left: 4px solid var(--blue);
    padding: 20px 24px;
    border-radius: 0 var(--radius) var(--radius) 0;
    margin: 24px 0;
}
.info-box p { margin: 0; font-size: 14px; }

/* --- Contact Info --- */
.contact-info-item {
    display: flex;
    gap: 16px;
    margin-bottom: 24px;
}
.contact-icon {
    width: 48px;
    height: 48px;
    background: var(--blue-pale);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 20px;
    color: var(--blue);
}
.contact-detail strong { display: block; font-size: 14px; color: var(--navy); margin-bottom: 4px; }
.contact-detail span, .contact-detail a { font-size: 14px; color: var(--gray-500); }
.contact-detail a:hover { color: var(--blue); }

/* --- Alert messages --- */
.alert {
    padding: 14px 20px;
    border-radius: var(--radius);
    margin-bottom: 20px;
    font-size: 14px;
    font-weight: 500;
}
.alert-success { background: #f0fdf4; color: #166534; border: 1px solid #bbf7d0; }
.alert-error { background: #fef2f2; color: #991b1b; border: 1px solid #fecaca; }
.alert-info { background: #eff6ff; color: #1e40af; border: 1px solid #bfdbfe; }

/* --- Animations --- */
.fade-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}
.fade-up.visible {
    opacity: 1;
    transform: translateY(0);
}

/* --- Map --- */
.map-container {
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid var(--gray-200);
    margin-top: 40px;
}
.map-container iframe { display: block; width: 100%; height: 400px; border: none; }

/* --- Responsive --- */
@media (max-width: 1024px) {
    .grid-4 { grid-template-columns: repeat(2, 1fr); }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .pricing-card.featured { transform: scale(1); }
}
@media (max-width: 768px) {
    .nav { 
        display: none; 
        position: fixed; 
        top: 72px; left: 0; right: 0; 
        background: var(--navy); 
        flex-direction: column; 
        padding: 24px; 
        gap: 16px;
        border-top: 1px solid rgba(255,255,255,0.06);
    }
    .nav.active { display: flex; }
    .nav-toggle { display: flex; }
    .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
    .checkout-grid { grid-template-columns: 1fr; }
    .form-row { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; }
    .footer-bottom { flex-direction: column; gap: 12px; text-align: center; }
    .footer-legal { flex-wrap: wrap; justify-content: center; }
    .section { padding: 60px 0; }
    .btn-group { flex-direction: column; }
    .btn-group .btn { width: 100%; justify-content: center; }
}
@media (max-width: 480px) {
    .container, .container-narrow { padding: 0 16px; }
}
