/* =====================================================================
   iCubix InfoTech Pvt. Ltd. — Stylesheet
   Design language: deep navy + circuit-red traces + vibrant-green trust
   accents, echoing the shield-and-circuit logo. Signature element: the
   "circuit divider" — a radiating node-and-trace line between sections.
   ===================================================================== */

:root {
    /* ---- Brand palette (sampled from the logo) ---- */
    --blue:        #2F6690;
    --blue-dark:   #1B3F57;
    --blue-deeper: #11293A;
    --green:       #3FBF4A;
    --green-dark:  #2E9639;
    --red:         #E8431F;
    --red-dark:    #A83A2E;

    --bg:          #F6F8FA;
    --bg-alt:      #EEF2F5;
    --white:       #FFFFFF;
    --ink:         #16222E;
    --ink-soft:    #51626F;
    --border:      #DCE3E8;

    --font-display: 'Montserrat', 'Segoe UI', sans-serif;
    --font-body:    'Inter', 'Segoe UI', sans-serif;

    --radius-sm: 6px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --shadow-sm: 0 2px 8px rgba(17, 41, 58, 0.08);
    --shadow-md: 0 8px 24px rgba(17, 41, 58, 0.12);
    --shadow-lg: 0 20px 48px rgba(17, 41, 58, 0.18);
    --container-w: 1200px;
}

/* ---- Reset ---- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    font-family: var(--font-body);
    color: var(--ink);
    background: var(--bg);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; margin: 0; padding: 0; }
h1, h2, h3, h4 {
    font-family: var(--font-display);
    color: var(--blue-dark);
    line-height: 1.2;
    margin: 0 0 .6em;
}
h1 { font-size: clamp(2.1rem, 4vw, 3.2rem); font-weight: 800; }
h2 { font-size: clamp(1.7rem, 3vw, 2.4rem); font-weight: 700; }
h3 { font-size: 1.25rem; font-weight: 700; }
p { margin: 0 0 1em; color: var(--ink-soft); }
.container { max-width: var(--container-w); margin: 0 auto; padding: 0 24px; }

.skip-link {
    position: absolute; left: -999px; top: 0; background: var(--green);
    color: #fff; padding: 12px 20px; z-index: 999; border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; }

:focus-visible { outline: 3px solid var(--green); outline-offset: 2px; }

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; scroll-behavior: auto !important; }
}

/* ---- Buttons ---- */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    padding: 14px 28px; border-radius: var(--radius-sm); font-weight: 600;
    font-size: .95rem; border: 2px solid transparent; cursor: pointer;
    transition: transform .15s ease, background-color .15s ease, border-color .15s ease, box-shadow .15s ease;
}
.btn-primary { background: var(--green); color: #fff; box-shadow: var(--shadow-sm); }
.btn-primary:hover, .btn-primary:focus-visible { background: var(--green-dark); transform: translateY(-2px); box-shadow: var(--shadow-md); }
.btn-outline { background: transparent; border-color: rgba(255,255,255,.5); color: #fff; }
.btn-outline:hover, .btn-outline:focus-visible { border-color: var(--red); background: rgba(232,67,31,.12); }
.btn-dark { background: var(--blue-dark); color: #fff; }
.btn-dark:hover, .btn-dark:focus-visible { background: var(--red); }
.btn-block { width: 100%; }

/* ---- Header / Nav ---- */
.site-header {
    position: sticky; top: 0; z-index: 100; background: rgba(255,255,255,.96);
    backdrop-filter: blur(6px); border-bottom: 1px solid var(--border);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; padding: 10px 24px; gap: 24px; }

.brand { display: inline-flex; align-items: center; }
.header-brand-logo { height: 42px; width: auto; max-width: 90px; display: block; }
.brand-logo { height: 58px; width: auto; display: block; }
.brand-footer .brand-logo { height: 52px; }

.primary-nav { display: flex; align-items: center; gap: 28px; }
.primary-nav > ul { display: flex; gap: 26px; }
.primary-nav a { font-weight: 600; font-size: .95rem; color: var(--blue-dark); padding: 8px 2px; position: relative; }
.primary-nav a::after {
    content: ''; position: absolute; left: 0; bottom: 0; width: 0; height: 2px; background: var(--red);
    transition: width .2s ease;
}
.primary-nav a:hover::after, .primary-nav a.is-active::after { width: 100%; }
.primary-nav a.is-active { color: var(--red); }

.has-dropdown { position: relative; }
.dropdown {
    position: absolute; top: 100%; left: 0; min-width: 240px; background: #fff;
    border-radius: var(--radius-sm); box-shadow: var(--shadow-md); padding: 10px;
    opacity: 0; visibility: hidden; transform: translateY(8px); transition: all .18s ease;
}
.has-dropdown:hover .dropdown, .has-dropdown:focus-within .dropdown { opacity: 1; visibility: visible; transform: translateY(0); }
.dropdown li a { display: block; padding: 10px 12px; border-radius: 6px; }
.dropdown li a:hover { background: var(--bg-alt); color: var(--red); }
.dropdown li a::after { display: none; }

.nav-toggle { display: none; flex-direction: column; justify-content: center; gap: 5px; width: 40px; height: 40px; background: none; border: none; cursor: pointer; }
.nav-toggle span { display: block; width: 24px; height: 2px; background: var(--blue-dark); border-radius: 2px; }

/* ---- Circuit divider — signature motif (animated: lines appear to flow, like an active secure connection) ---- */
.circuit-divider {
    height: 46px;
    background-repeat: repeat-x;
    background-size: 220px 46px;
    background-position: center;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='46' viewBox='0 0 220 46'%3E%3Cg fill='none' stroke='%23E8431F' stroke-width='2' opacity='0.55'%3E%3Cpath d='M0 23 L40 23 L52 11 L80 11 M52 23 L60 35 L92 35'/%3E%3Cpath d='M110 23 L150 23 L162 11 L190 11 M162 23 L170 35 L202 35'/%3E%3C/g%3E%3Cg fill='%23E8431F' opacity='0.75'%3E%3Ccircle cx='40' cy='23' r='3'/%3E%3Ccircle cx='80' cy='11' r='3'/%3E%3Ccircle cx='92' cy='35' r='3'/%3E%3Ccircle cx='150' cy='23' r='3'/%3E%3Ccircle cx='190' cy='11' r='3'/%3E%3Ccircle cx='202' cy='35' r='3'/%3E%3C/g%3E%3C/svg%3E");
    animation: circuitFlow 14s linear infinite;
}
@keyframes circuitFlow {
    from { background-position: 0 center; }
    to   { background-position: -880px center; }
}

/* ---- Hero ---- */
.hero {
    position: relative; overflow: hidden; color: #fff;
    background: radial-gradient(circle at 82% 20%, #234f6d 0%, var(--blue-dark) 45%, var(--blue-deeper) 100%);
    padding: 36px 0 80px;
}
.hero::before {
    content: ''; position: absolute; inset: 0; pointer-events: none;
    background: radial-gradient(circle at 82% 15%, rgba(232,67,31,.10), transparent 55%);
}
.hero-circuit {
    position: absolute; top: -20px; right: -40px; width: 640px; height: 640px;
    pointer-events: none; z-index: 0;
}
.circuit-node {
    fill: var(--red);
    transform-origin: center;
    transform-box: fill-box;
    animation: nodePulse 3.6s ease-in-out infinite;
}
@keyframes nodePulse {
    0%, 100% { opacity: .45; transform: scale(1); filter: drop-shadow(0 0 0 rgba(232,67,31,0)); }
    50%      { opacity: 1;   transform: scale(1.7); filter: drop-shadow(0 0 6px rgba(232,67,31,.9)); }
}
.hero-inner { position: relative; z-index: 1; display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: center; }
.hero-eyebrow {
    display: inline-flex; align-items: center; gap: 8px; background: rgba(63,191,74,.15);
    border: 1px solid rgba(63,191,74,.4); color: var(--green); font-weight: 600; font-size: .8rem;
    letter-spacing: .04em; text-transform: uppercase; padding: 6px 14px; border-radius: 999px; margin-bottom: 20px;
}
.hero h1 { color: #fff; }
.hero h1 span { color: var(--green); }
.hero-lead { color: #C9D6DF; font-size: 1.1rem; max-width: 55ch; }
.hero-actions { display: flex; gap: 16px; margin-top: 32px; flex-wrap: wrap; }
.hero-stats { display: flex; gap: 32px; margin-top: 48px; flex-wrap: wrap; }
.hero-stats div strong { display: block; font-family: var(--font-display); font-size: 1.8rem; color: var(--green); }
.hero-stats div span { color: #AFC0CC; font-size: .85rem; }

.hero-shield {
    position: relative; display: flex; align-items: center; justify-content: center;
}
.hero-shield img { max-width: 420px; width: 100%; filter: drop-shadow(0 20px 40px rgba(0,0,0,.35)); position: relative; z-index: 1; }
.hero-shield-glow {
    position: absolute; inset: -10%; z-index: 0; border-radius: 50%;
    background: radial-gradient(circle, rgba(63,191,74,.28) 0%, rgba(232,67,31,.16) 45%, transparent 70%);
    animation: shieldPulse 3.4s ease-in-out infinite;
}
@keyframes shieldPulse {
    0%, 100% { transform: scale(0.94); opacity: .7; }
    50%      { transform: scale(1.04); opacity: 1; }
}

/* ---- Sections ---- */
.section { padding: 88px 0; }
.section-alt { background: var(--white); }
.section-head { max-width: 700px; margin: 0 auto 52px; text-align: center; }
.eyebrow {
    display: inline-block; color: var(--red); font-weight: 700; font-size: .8rem;
    letter-spacing: .08em; text-transform: uppercase; margin-bottom: 12px;
}

/* ---- Service / feature cards ---- */
.grid { display: grid; gap: 28px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

.card {
    background: #fff; border: 1px solid var(--border); border-radius: var(--radius-md);
    padding: 32px; box-shadow: var(--shadow-sm); transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: var(--red); }
.card-icon {
    width: 56px; height: 56px; border-radius: 14px; display: flex; align-items: center; justify-content: center;
    background: linear-gradient(135deg, var(--green), var(--green-dark)); margin-bottom: 20px;
}
.card-icon svg { width: 28px; height: 28px; fill: #fff; }
.card h3 { margin-bottom: 10px; }
.card a.card-link { color: var(--blue); font-weight: 600; font-size: .9rem; display: inline-flex; align-items: center; gap: 6px; margin-top: 10px; }
.card a.card-link:hover { color: var(--red); }

/* ---- Trust badges strip ---- */
.trust-strip { background: var(--blue-dark); padding: 40px 0; }
.trust-strip .grid-4 { align-items: center; text-align: center; color: #fff; }
.trust-strip strong { display: block; font-family: var(--font-display); font-size: 1.5rem; color: var(--green); }
.trust-strip span { font-size: .82rem; color: #C9D6DF; }

/* ---- Process (real sequence — numbering is meaningful here) ---- */
.process-list { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; counter-reset: step; }
.process-step { position: relative; padding: 28px 20px 20px; background: #fff; border: 1px solid var(--border); border-radius: var(--radius-md); }
.process-step::before {
    counter-increment: step; content: counter(step, decimal-leading-zero);
    font-family: var(--font-display); font-weight: 800; font-size: 1.6rem; color: var(--red); display: block; margin-bottom: 10px;
}

/* ---- Why-us split ---- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.check-list li { display: flex; gap: 12px; margin-bottom: 14px; align-items: flex-start; }
.check-list svg { flex-shrink: 0; width: 22px; height: 22px; fill: var(--green); margin-top: 3px; }

/* ---- CTA band ---- */
.cta-band {
    background: linear-gradient(120deg, var(--blue-dark), var(--blue-deeper));
    color: #fff; padding: 64px 0; text-align: center; position: relative; overflow: hidden;
}
.cta-band h2 { color: #fff; }
.cta-band p { color: #C9D6DF; max-width: 60ch; margin: 0 auto 28px; }

/* ---- Testimonials / logos (optional light section) ---- */
.testimonial { background: var(--bg-alt); border-radius: var(--radius-md); padding: 32px; }
.testimonial p { font-size: 1.05rem; color: var(--ink); }
.testimonial footer { font-weight: 700; color: var(--blue-dark); font-size: .9rem; }

/* ---- Contact page ---- */
.contact-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; }
.contact-info-card { background: var(--blue-dark); color: #fff; border-radius: var(--radius-lg); padding: 40px; }
.contact-info-card h3 { color: #fff; }
.contact-info-card .info-row { display: flex; gap: 14px; margin-bottom: 22px; align-items: flex-start; }
.contact-info-card .info-row svg { flex-shrink: 0; width: 22px; height: 22px; fill: var(--green); }
.contact-info-card a { color: #fff; }
.contact-info-card a:hover { color: var(--green); }

.form-card { background: #fff; border-radius: var(--radius-lg); padding: 40px; box-shadow: var(--shadow-md); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form-group { margin-bottom: 20px; }
.form-group label { display: block; font-weight: 600; font-size: .88rem; margin-bottom: 7px; color: var(--blue-dark); }
.form-group input, .form-group select, .form-group textarea {
    width: 100%; padding: 13px 14px; border: 1.5px solid var(--border); border-radius: var(--radius-sm);
    font-family: var(--font-body); font-size: .95rem; color: var(--ink); background: #fbfcfd; transition: border-color .15s ease, box-shadow .15s ease;
}
.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
    outline: none; border-color: var(--green); box-shadow: 0 0 0 4px rgba(63,191,74,.15);
}
.form-group textarea { resize: vertical; min-height: 130px; }
.form-note { font-size: .78rem; color: var(--ink-soft); margin-top: 6px; }
#formStatus { margin-top: 16px; padding: 14px 16px; border-radius: var(--radius-sm); font-weight: 600; font-size: .9rem; display: none; }
#formStatus.success { display: block; background: rgba(63,191,74,.12); color: var(--green-dark); border: 1px solid rgba(63,191,74,.3); }
#formStatus.error { display: block; background: rgba(232,67,31,.1); color: var(--red-dark); border: 1px solid rgba(232,67,31,.3); }
.field-error { color: var(--red); font-size: .78rem; margin-top: 5px; display: none; }
.form-group.has-error input, .form-group.has-error select, .form-group.has-error textarea { border-color: var(--red); }
.form-group.has-error .field-error { display: block; }

/* ---- Footer ---- */
.site-footer { background: var(--blue-deeper); color: #C9D6DF; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.3fr; gap: 40px; padding: 56px 24px 40px; }
.footer-col h3 { color: #fff; font-size: 1rem; margin-bottom: 18px; }
.footer-col ul li { margin-bottom: 10px; }
.footer-col a:hover { color: var(--green); }
.footer-brand p { color: #A9BAC5; font-size: .9rem; margin-top: 14px; }
.social-icons { display: flex; gap: 12px; margin-top: 18px; }
.social-icons a {
    width: 38px; height: 38px; border-radius: 50%; background: rgba(255,255,255,.08);
    display: flex; align-items: center; justify-content: center; transition: background .2s ease, transform .2s ease;
}
.social-icons a:hover { background: var(--red); transform: translateY(-3px); }
address { font-style: normal; font-size: .9rem; }
address p { color: #A9BAC5; margin-bottom: 10px; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.08); padding: 18px 0; }
.footer-bottom p { color: #7E92A0; font-size: .82rem; text-align: center; margin: 0; }

/* ---- WhatsApp floating button ---- */
.whatsapp-fab {
    position: fixed; right: 22px; bottom: 22px; z-index: 200; width: 60px; height: 60px; border-radius: 50%;
    background: #25D366; display: flex; align-items: center; justify-content: center; box-shadow: 0 8px 20px rgba(0,0,0,.25);
    transition: transform .2s ease, box-shadow .2s ease;
}
.whatsapp-fab:hover, .whatsapp-fab:focus-visible { transform: scale(1.08); box-shadow: 0 10px 26px rgba(0,0,0,.32); }
.whatsapp-fab::after {
    content: ''; position: absolute; inset: 0; border-radius: 50%; border: 2px solid #25D366; animation: pulse 2.2s ease-out infinite;
}
@keyframes pulse { 0% { transform: scale(1); opacity: .6; } 100% { transform: scale(1.6); opacity: 0; } }

/* ---- Inner/service page hero (smaller than home hero) ---- */
.page-hero { background: linear-gradient(120deg, var(--blue-dark), var(--blue-deeper)); color: #fff; padding: 64px 0 56px; position: relative; overflow: hidden; }
.page-hero .breadcrumb { color: #9FB3C0; font-size: .85rem; margin-bottom: 12px; }
.page-hero .breadcrumb a { color: #C9D6DF; }
.page-hero .breadcrumb a:hover { color: var(--green); }
.page-hero h1 { color: #fff; margin-bottom: 8px; }
.page-hero p { color: #C9D6DF; max-width: 65ch; }

/* ---- Reveal-on-scroll (subtle, respects reduced motion) ---- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.reveal.is-visible { opacity: 1; transform: translateY(0); }

/* =====================================================================
   Responsive
   ===================================================================== */
@media (max-width: 991px) {
    .hero-inner { grid-template-columns: 1fr; text-align: center; }
    .hero-stats { justify-content: center; }
    .hero-shield img { max-width: 240px; }
    .hero-circuit { opacity: .5; width: 460px; height: 460px; }
    .split { grid-template-columns: 1fr; }
    .grid-4 { grid-template-columns: repeat(2, 1fr); }
    .grid-3 { grid-template-columns: repeat(2, 1fr); }
    .process-list { grid-template-columns: repeat(2, 1fr); }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .contact-layout { grid-template-columns: 1fr; }
}

@media (max-width: 767px) {
    .nav-toggle { display: flex; }
    .primary-nav {
        position: fixed; inset: 70px 0 0 0; background: #fff; flex-direction: column; align-items: flex-start;
        padding: 28px 24px; gap: 20px; transform: translateX(100%); transition: transform .25s ease; overflow-y: auto;
    }
    .primary-nav.is-open { transform: translateX(0); }
    .primary-nav > ul { flex-direction: column; gap: 6px; width: 100%; }
    .primary-nav a { display: block; padding: 12px 4px; }
    .dropdown { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; display: none; padding-left: 12px; }
    .has-dropdown.is-open .dropdown { display: block; }
    .nav-cta { width: 100%; text-align: center; }

    .hero { padding: 64px 0 56px; }
    .hero-actions { flex-direction: column; }
    .hero-actions .btn { width: 100%; }
    .section { padding: 60px 0; }
    .grid-2, .grid-3, .grid-4, .process-list { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; padding: 44px 24px 28px; }
    .form-row { grid-template-columns: 1fr; }
    .whatsapp-fab { right: 16px; bottom: 16px; width: 54px; height: 54px; }
}
