/* ============================================
   Analog Infotech - Modern SEO-Optimized CSS
   ============================================ */

:root {
    --primary: #2563eb;
    --primary-dark: #1d4ed8;
    --primary-light: #3b82f6;
    --secondary: #0f172a;
    --accent: #06b6d4;
    --success: #10b981;
    --warning: #f59e0b;
    --danger: #ef4444;
    --text: #1e293b;
    --text-light: #64748b;
    --text-muted: #94a3b8;
    --bg: #ffffff;
    --bg-alt: #f8fafc;
    --bg-dark: #0f172a;
    --border: #e2e8f0;
    --shadow: 0 4px 6px -1px rgba(0,0,0,0.07), 0 2px 4px -2px rgba(0,0,0,0.05);
    --shadow-lg: 0 10px 15px -3px rgba(0,0,0,0.08), 0 4px 6px -4px rgba(0,0,0,0.05);
    --radius: 12px;
    --radius-sm: 8px;
    --transition: all 0.3s ease;
    --font: 'Inter', system-ui, -apple-system, sans-serif;
    --font-heading: 'Poppins', 'Inter', sans-serif;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; font-size: 16px; }

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

img { max-width: 100%; height: auto; display: block; }
a { color: var(--primary); text-decoration: none; transition: var(--transition); }
a:hover { color: var(--primary-dark); }
ul { list-style: none; }
h1,h2,h3,h4,h5,h6 { font-family: var(--font-heading); font-weight: 700; line-height: 1.25; color: var(--secondary); }

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 28px;
    font-size: 15px;
    font-weight: 600;
    border-radius: 50px;
    border: 2px solid transparent;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
    line-height: 1.4;
}
.btn-primary {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
}
.btn-primary:hover {
    background: var(--primary-dark);
    border-color: var(--primary-dark);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(37,99,235,0.3);
}
.btn-outline {
    background: transparent;
    color: var(--primary);
    border-color: var(--primary);
}
.btn-outline:hover {
    background: var(--primary);
    color: #fff;
}
.btn-white {
    background: #fff;
    color: var(--primary);
    border-color: #fff;
}
.btn-white:hover {
    background: transparent;
    color: #fff;
    border-color: #fff;
}
.btn-sm { padding: 8px 18px; font-size: 13px; }

/* Top Bar */
.top-bar {
    background: var(--secondary);
    color: #cbd5e1;
    font-size: 13px;
    padding: 8px 0;
}
.top-bar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}
.top-bar a { color: #cbd5e1; margin-right: 20px; }
.top-bar a:hover { color: #fff; }
.top-bar-left, .top-bar-right { display: flex; align-items: center; gap: 4px; }

/* Header */
.header {
    background: #fff;
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: var(--transition);
}
.header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 72px;
}
.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--secondary);
    font-weight: 700;
    font-size: 1.25rem;
}
.logo:hover { color: var(--secondary); }
.logo-icon {
    width: 42px;
    height: 42px;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    color: #fff;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 16px;
}
.logo-text strong { color: var(--primary); }

.nav-list {
    display: flex;
    align-items: center;
    gap: 4px;
}
.nav-list > li > a {
    padding: 10px 14px;
    color: var(--text);
    font-weight: 500;
    font-size: 14.5px;
    border-radius: 8px;
}
.nav-list > li > a:hover,
.nav-list > li > a.active {
    color: var(--primary);
    background: #eff6ff;
}
.has-dropdown { position: relative; }
.has-dropdown .arrow { font-size: 10px; margin-left: 2px; }
.dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    background: #fff;
    min-width: 220px;
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-lg);
    padding: 8px 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: var(--transition);
    z-index: 100;
}
.has-dropdown:hover .dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}
.dropdown a {
    display: block;
    padding: 10px 18px;
    color: var(--text);
    font-size: 14px;
}
.dropdown a:hover {
    background: #eff6ff;
    color: var(--primary);
}
.header-cta { margin-left: 12px; }
.mobile-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
}
.mobile-toggle span {
    width: 24px;
    height: 2.5px;
    background: var(--secondary);
    border-radius: 2px;
    transition: var(--transition);
}

/* Hero */
.hero {
    background: linear-gradient(135deg, #0f172a 0%, #1e3a5f 50%, #1e40af 100%);
    color: #fff;
    padding: 100px 0 90px;
    position: relative;
    overflow: hidden;
}
.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(37,99,235,0.25) 0%, transparent 70%);
    border-radius: 50%;
}
.hero .container {
    position: relative;
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 50px;
    align-items: center;
}
.hero-badge {
    display: inline-block;
    background: rgba(255,255,255,0.12);
    border: 1px solid rgba(255,255,255,0.2);
    padding: 6px 16px;
    border-radius: 50px;
    font-size: 13px;
    font-weight: 500;
    margin-bottom: 20px;
    color: #93c5fd;
}
.hero h1 {
    font-size: clamp(2rem, 4vw, 2.9rem);
    color: #fff;
    margin-bottom: 18px;
    line-height: 1.2;
}
.hero h1 span { color: #60a5fa; }
.hero p {
    font-size: 1.1rem;
    color: #cbd5e1;
    margin-bottom: 30px;
    max-width: 540px;
}
.hero-btns { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}
.stat-card {
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: var(--radius);
    padding: 24px;
    text-align: center;
    backdrop-filter: blur(8px);
}
.stat-card .number {
    font-size: 2.2rem;
    font-weight: 800;
    color: #60a5fa;
    font-family: var(--font-heading);
}
.stat-card .label {
    font-size: 13px;
    color: #94a3b8;
    margin-top: 4px;
}

/* Section Common */
.section { padding: 80px 0; }
.section-alt { background: var(--bg-alt); }
.section-header {
    text-align: center;
    max-width: 680px;
    margin: 0 auto 50px;
}
.section-header .subtitle {
    display: inline-block;
    color: var(--primary);
    font-weight: 600;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 10px;
}
.section-header h2 {
    font-size: clamp(1.7rem, 3vw, 2.3rem);
    margin-bottom: 14px;
}
.section-header p {
    color: var(--text-light);
    font-size: 1.05rem;
}

/* About Preview */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}
.about-content .subtitle { color: var(--primary); font-weight: 600; font-size: 14px; text-transform: uppercase; letter-spacing: 1px; }
.about-content h2 { font-size: 2rem; margin: 10px 0 18px; }
.about-content p { color: var(--text-light); margin-bottom: 16px; }
.about-features {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin: 24px 0 30px;
}
.about-features li {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14.5px;
    font-weight: 500;
}
.about-features li::before {
    content: '✓';
    color: var(--success);
    font-weight: 700;
    background: #d1fae5;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    flex-shrink: 0;
}
.about-image {
    background: linear-gradient(135deg, #eff6ff, #dbeafe);
    border-radius: var(--radius);
    padding: 40px;
    text-align: center;
    min-height: 360px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}
.about-image .big-icon {
    width: 100px;
    height: 100px;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    border-radius: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 40px;
    color: #fff;
    margin-bottom: 20px;
    font-weight: 800;
}

/* Services Grid */
.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}
.service-card {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 32px 28px;
    transition: var(--transition);
    height: 100%;
}
.service-card:hover {
    border-color: var(--primary);
    box-shadow: var(--shadow-lg);
    transform: translateY(-6px);
}
.service-icon {
    width: 56px;
    height: 56px;
    background: #eff6ff;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    margin-bottom: 18px;
    color: var(--primary);
}
.service-card h3 {
    font-size: 1.2rem;
    margin-bottom: 10px;
}
.service-card p {
    color: var(--text-light);
    font-size: 14.5px;
    margin-bottom: 16px;
}
.service-card .read-more {
    font-weight: 600;
    font-size: 14px;
    color: var(--primary);
}
.service-card .read-more:hover { text-decoration: underline; }

/* Solutions / Products */
.solutions-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}
.solution-card {
    background: #fff;
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid var(--border);
    transition: var(--transition);
}
.solution-card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-4px);
}
.solution-badge {
    position: absolute;
    top: 14px;
    left: 14px;
    background: var(--danger);
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    padding: 4px 12px;
    border-radius: 50px;
    text-transform: uppercase;
}
.solution-badge.popular { background: var(--primary); }
.solution-img {
    height: 180px;
    background: linear-gradient(135deg, #1e3a5f, #2563eb);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 48px;
    position: relative;
}
.solution-body { padding: 24px; }
.solution-body h3 { font-size: 1.15rem; margin-bottom: 10px; }
.solution-body p { color: var(--text-light); font-size: 14px; margin-bottom: 16px; }

/* Blog Cards */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}
.blog-card {
    background: #fff;
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid var(--border);
    transition: var(--transition);
}
.blog-card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-4px);
}
.blog-img {
    height: 180px;
    background: linear-gradient(135deg, #0f172a, #334155);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #94a3b8;
    font-size: 14px;
    font-weight: 600;
}
.blog-body { padding: 22px; }
.blog-meta {
    display: flex;
    gap: 12px;
    font-size: 12.5px;
    color: var(--text-muted);
    margin-bottom: 10px;
}
.blog-cat {
    color: var(--primary);
    font-weight: 600;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.blog-body h3 {
    font-size: 1.1rem;
    margin-bottom: 10px;
    line-height: 1.4;
}
.blog-body p {
    color: var(--text-light);
    font-size: 14px;
    margin-bottom: 14px;
}

/* CTA Section */
.cta-section {
    background: linear-gradient(135deg, #1e40af, #2563eb);
    color: #fff;
    padding: 70px 0;
    text-align: center;
}
.cta-section h2 {
    color: #fff;
    font-size: 2rem;
    margin-bottom: 14px;
}
.cta-section p {
    color: #bfdbfe;
    max-width: 560px;
    margin: 0 auto 28px;
    font-size: 1.05rem;
}
.cta-btns { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* Contact */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 40px;
}
.contact-info-card {
    background: var(--bg-alt);
    border-radius: var(--radius);
    padding: 32px;
}
.contact-info-card h3 { margin-bottom: 24px; }
.contact-item {
    display: flex;
    gap: 16px;
    margin-bottom: 22px;
}
.contact-item .icon {
    width: 46px;
    height: 46px;
    background: #eff6ff;
    color: var(--primary);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    flex-shrink: 0;
}
.contact-item strong { display: block; margin-bottom: 2px; }
.contact-item p, .contact-item a { color: var(--text-light); font-size: 14.5px; }

.contact-form {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 32px;
}
.contact-form h3 { margin-bottom: 20px; }
.form-group { margin-bottom: 18px; }
.form-group label {
    display: block;
    font-weight: 500;
    font-size: 14px;
    margin-bottom: 6px;
    color: var(--text);
}
.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    font-size: 15px;
    font-family: var(--font);
    transition: var(--transition);
    background: #fff;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(37,99,235,0.15);
}
.form-group textarea { min-height: 120px; resize: vertical; }
.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}
.form-message {
    padding: 14px 18px;
    border-radius: var(--radius-sm);
    margin-bottom: 18px;
    font-size: 14.5px;
}
.form-message.success { background: #d1fae5; color: #065f46; }
.form-message.error { background: #fee2e2; color: #991b1b; }

/* Page Banner */
.page-banner {
    background: linear-gradient(135deg, #0f172a, #1e3a5f);
    color: #fff;
    padding: 60px 0;
    text-align: center;
}
.page-banner h1 {
    color: #fff;
    font-size: 2.2rem;
    margin-bottom: 10px;
}
.page-banner p { color: #94a3b8; max-width: 600px; margin: 0 auto; }
.breadcrumb {
    display: flex;
    justify-content: center;
    gap: 8px;
    font-size: 14px;
    margin-top: 16px;
    color: #64748b;
}
.breadcrumb a { color: #93c5fd; }
.breadcrumb span { color: #94a3b8; }

/* Footer */
.footer {
    background: var(--bg-dark);
    color: #94a3b8;
    padding: 70px 0 0;
}
.footer-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
    gap: 40px;
    padding-bottom: 50px;
    border-bottom: 1px solid #1e293b;
}
.footer-logo { margin-bottom: 16px; color: #fff; }
.footer-logo .logo-text { color: #fff; }
.footer-about p {
    font-size: 14px;
    line-height: 1.7;
    margin-bottom: 20px;
}
.footer h4 {
    color: #fff;
    font-size: 1.05rem;
    margin-bottom: 20px;
}
.footer ul li { margin-bottom: 10px; }
.footer ul a {
    color: #94a3b8;
    font-size: 14px;
}
.footer ul a:hover { color: #fff; }
.contact-info li {
    margin-bottom: 16px;
    font-size: 14px;
    line-height: 1.5;
}
.contact-info strong {
    color: #e2e8f0;
    font-size: 13px;
}
.contact-info a { color: #94a3b8; }
.contact-info a:hover { color: #fff; }
.social-links {
    display: flex;
    gap: 10px;
}
.social-icon {
    width: 38px;
    height: 38px;
    background: #1e293b;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #94a3b8;
    font-size: 13px;
    font-weight: 700;
}
.social-icon:hover {
    background: var(--primary);
    color: #fff;
}
.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 22px 0;
    font-size: 13.5px;
    flex-wrap: wrap;
    gap: 10px;
}


/* Floating Call Button */
.call-float {
    position: fixed;
    bottom: 96px;
    right: 28px;
    width: 56px;
    height: 56px;
    background: #0b63ce;
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 16px rgba(11,99,206,0.38);
    z-index: 999;
    transition: var(--transition);
}
.call-float:hover {
    transform: scale(1.1);
    color: #fff;
}

/* WhatsApp Float */
.whatsapp-float {
    position: fixed;
    bottom: 28px;
    right: 28px;
    width: 56px;
    height: 56px;
    background: #25d366;
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 16px rgba(37,211,102,0.4);
    z-index: 999;
    transition: var(--transition);
}
.whatsapp-float:hover {
    transform: scale(1.1);
    color: #fff;
}

/* Utility */
.text-center { text-align: center; }
.mt-30 { margin-top: 30px; }
.mb-20 { margin-bottom: 20px; }

/* Responsive */
@media (max-width: 992px) {
    .hero .container { grid-template-columns: 1fr; text-align: center; }
    .hero p { margin-left: auto; margin-right: auto; }
    .hero-btns { justify-content: center; }
    .hero-stats { max-width: 400px; margin: 0 auto; }
    .about-grid, .contact-grid { grid-template-columns: 1fr; }
    .services-grid, .solutions-grid, .blog-grid { grid-template-columns: 1fr 1fr; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .header-cta { display: none; }
}

@media (max-width: 768px) {
    .top-bar { display: none; }
    .mobile-toggle { display: flex; }
    .nav {
        position: fixed;
        top: 72px;
        left: 0;
        right: 0;
        background: #fff;
        box-shadow: var(--shadow-lg);
        padding: 20px;
        transform: translateY(-120%);
        opacity: 0;
        visibility: hidden;
        transition: var(--transition);
        max-height: calc(100vh - 72px);
        overflow-y: auto;
    }
    .nav.open {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }
    .nav-list {
        flex-direction: column;
        align-items: stretch;
        gap: 0;
    }
    .nav-list > li > a {
        display: block;
        padding: 14px 16px;
        border-bottom: 1px solid var(--border);
    }
    .dropdown {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        display: none;
        padding-left: 16px;
    }
    .has-dropdown.open .dropdown { display: block; }
    .services-grid, .solutions-grid, .blog-grid { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; gap: 30px; }
    .form-row { grid-template-columns: 1fr; }
    .about-features { grid-template-columns: 1fr; }
    .hero { padding: 60px 0 50px; }
    .section { padding: 60px 0; }
}

@media (max-width: 480px) {
    .hero h1 { font-size: 1.7rem; }
    .btn { padding: 11px 22px; font-size: 14px; }
    .hero-stats { grid-template-columns: 1fr 1fr; gap: 12px; }
    .stat-card { padding: 16px; }
    .stat-card .number { font-size: 1.6rem; }
}
