/**
 * IISLTech - Master Design System & Stylesheet
 * Brand Colors: Deep Navy, Bright Professional Blue, Strategic Accent Red
 */

:root {
    /* Primary Colors - Tuned Directly to IISLTech Logo */
    --primary-navy: #081839;
    --primary-dark: #073871;
    --primary: #0d5eb5;
    --primary-hover: #0a4b92;
    --primary-light: #1672da;
    --primary-subtle: #ebf3fc;

    /* Strategic Red Accent - Exact Match to Logo Swoosh & Brackets */
    --accent: #df161d;
    --accent-hover: #c41016;
    --accent-light: #fff1f2;
    --accent-glow: rgba(223, 22, 29, 0.32);

    /* Neutral & Background Tones */
    --bg-light: #f8fafc;
    --bg-alt: #f1f5f9;
    --surface: #ffffff;
    --border-color: #e2e8f0;
    --border-subtle: rgba(15, 23, 42, 0.07);

    /* Typography Colors */
    --text-navy: #081839;
    --text-dark: #0f172a;
    --text-body: #334155;
    --text-muted: #64748b;
    --text-light: #94a3b8;

    /* Shadows & Radii */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 22px;
    --radius-pill: 9999px;

    --shadow-subtle: 0 4px 16px -2px rgba(11, 37, 89, 0.05), 0 1px 3px rgba(0, 0, 0, 0.03);
    --shadow-md: 0 10px 25px -4px rgba(11, 37, 89, 0.08), 0 4px 10px -2px rgba(0, 0, 0, 0.03);
    --shadow-lg: 0 20px 35px -8px rgba(11, 37, 89, 0.12), 0 8px 16px -4px rgba(0, 0, 0, 0.04);
    --shadow-glow: 0 8px 24px var(--accent-glow);

    /* Transitions */
    --transition-fast: 0.18s ease;
    --transition-base: 0.25s ease;
    --transition-smooth: 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Base Global Reset */
html {
    scroll-behavior: smooth;
    box-sizing: border-box;
}

*, *::before, *::after {
    box-sizing: inherit;
}

body {
    font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    color: var(--text-body);
    background-color: #ffffff;
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

/* Accessibility Skip Link */
.skip-to-content {
    position: absolute;
    top: -100px;
    left: 20px;
    background: var(--accent);
    color: #fff;
    padding: 10px 20px;
    z-index: 99999;
    border-radius: var(--radius-sm);
    font-weight: 700;
    transition: top var(--transition-fast);
}
.skip-to-content:focus {
    top: 20px;
}

/* Typography Helpers */
h1, h2, h3, h4, h5, h6 {
    color: var(--text-navy);
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1.25;
}

.text-navy { color: var(--text-navy) !important; }
.text-accent { color: var(--accent) !important; }
.text-primary-light { color: var(--primary-light) !important; }
.bg-navy { background-color: var(--primary-navy) !important; }
.bg-primary-dark { background-color: var(--primary-dark) !important; }
.bg-alt-light { background-color: var(--bg-light) !important; }

/* Focus styles */
:focus-visible {
    outline: 2px solid var(--primary-light);
    outline-offset: 2px;
}

/* Header & Navigation */
.header-topbar {
    background-color: #ffffff;
    font-size: 0.8125rem;
    color: var(--text-muted);
}
.site-header {
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    transition: all var(--transition-base);
    border-bottom: 1px solid var(--border-subtle);
    z-index: 1030;
}
.site-header.scrolled {
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 4px 20px rgba(8, 24, 57, 0.08);
}

.brand-logo-img {
    height: 42px;
    width: auto;
    max-height: 46px;
    object-fit: contain;
    transition: transform var(--transition-fast);
}
.navbar-brand:hover .brand-logo-img {
    transform: scale(1.02);
}

.brand-name {
    font-size: 1.45rem;
    font-weight: 800;
    letter-spacing: -0.03em;
}
.brand-sub {
    font-size: 0.65rem;
    letter-spacing: 0.12em;
    color: var(--text-muted);
}

.nav-link {
    color: var(--text-navy) !important;
    font-size: 0.95rem;
    transition: color var(--transition-fast);
    padding: 0.5rem 0.8rem;
    border-radius: var(--radius-sm);
}
.nav-link:hover, .nav-link.active {
    color: var(--primary) !important;
}

/* Mega Menu */
.dropdown-mega {
    position: static !important;
}
.mega-menu-content {
    width: 100%;
    max-width: 1240px;
    left: 50% !important;
    transform: translateX(-50%) !important;
    border: 1px solid var(--border-color);
    box-shadow: 0 20px 45px rgba(8, 24, 57, 0.12);
    background: #ffffff;
    animation: fadeInSlide 0.22s ease-out;
}
@keyframes fadeInSlide {
    from { opacity: 0; transform: translate(-50%, 10px); }
    to { opacity: 1; transform: translate(-50%, 0); }
}

.mega-nav-list li {
    margin-bottom: 0.5rem;
}
.mega-link {
    display: block;
    padding: 0.45rem 0.65rem;
    border-radius: var(--radius-sm);
    text-decoration: none;
    transition: background var(--transition-fast);
}
.mega-link:hover {
    background: var(--bg-light);
}
.mega-link-title {
    display: block;
    font-weight: 600;
    font-size: 0.875rem;
    color: var(--text-navy);
}
.mega-link:hover .mega-link-title {
    color: var(--primary);
}
.mega-link-desc {
    display: block;
    font-size: 0.75rem;
    color: var(--text-muted);
}

.mega-promo-card {
    background: linear-gradient(145deg, var(--primary-dark) 0%, var(--primary-navy) 100%);
    border: 1px solid rgba(255, 255, 255, 0.1);
}
.promo-bg-glow {
    position: absolute;
    width: 150px;
    height: 150px;
    background: radial-gradient(circle, var(--accent) 0%, transparent 70%);
    opacity: 0.25;
    top: -30px;
    right: -30px;
    pointer-events: none;
}

/* Buttons */
.btn {
    border-radius: var(--radius-sm);
    font-weight: 600;
    padding: 0.625rem 1.4rem;
    font-size: 0.95rem;
    min-height: 46px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-base);
}
.btn-lg {
    min-height: 52px;
    padding: 0.85rem 2rem;
    font-size: 1.05rem;
    border-radius: var(--radius-md);
}

.btn-accent {
    background-color: var(--accent);
    color: #ffffff;
    border: 1px solid var(--accent);
}
.btn-accent:hover, .btn-accent:focus {
    background-color: var(--accent-hover);
    border-color: var(--accent-hover);
    color: #ffffff;
    box-shadow: var(--shadow-glow);
    transform: translateY(-1px);
}

.btn-primary-blue {
    background-color: var(--primary);
    color: #ffffff;
    border: 1px solid var(--primary);
}
.btn-primary-blue:hover, .btn-primary-blue:focus {
    background-color: var(--primary-hover);
    border-color: var(--primary-hover);
    color: #ffffff;
    box-shadow: 0 6px 20px rgba(11, 77, 187, 0.25);
    transform: translateY(-1px);
}

.btn-outline-primary {
    border: 1.5px solid var(--primary);
    color: var(--primary);
    background: transparent;
}
.btn-outline-primary:hover {
    background: var(--primary);
    color: #ffffff;
}

/* Section Styling & Layout Rhythm */
.section-py {
    padding-top: 5.5rem;
    padding-bottom: 5.5rem;
}
.section-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.35rem 0.9rem;
    font-size: 0.8125rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    border-radius: var(--radius-pill);
    background-color: var(--primary-subtle);
    color: var(--primary);
    margin-bottom: 1rem;
}
.section-badge.badge-accent {
    background-color: var(--accent-light);
    color: var(--accent);
}
.section-badge.badge-dark {
    background-color: rgba(255, 255, 255, 0.12);
    color: #ffffff;
}

.section-title {
    font-size: clamp(2rem, 3.2vw, 2.75rem);
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 1.2rem;
}
.section-desc {
    font-size: 1.05rem;
    color: var(--text-muted);
    max-width: 680px;
    margin-left: auto;
    margin-right: auto;
}

/* Hero Section */
.hero-section {
    position: relative;
    background: radial-gradient(circle at 10% 20%, rgba(232, 240, 254, 0.6) 0%, rgba(255, 255, 255, 1) 60%);
    padding-top: 4.5rem;
    padding-bottom: 5.5rem;
    overflow: hidden;
}
.hero-bg-grid {
    position: absolute;
    inset: 0;
    background-size: 40px 40px;
    background-image: 
        linear-gradient(to right, rgba(11, 77, 187, 0.03) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(11, 77, 187, 0.03) 1px, transparent 1px);
    pointer-events: none;
}
.hero-glow-blob {
    position: absolute;
    width: 450px;
    height: 450px;
    border-radius: 50%;
    filter: blur(90px);
    opacity: 0.12;
    pointer-events: none;
}
.hero-glow-1 {
    top: -100px;
    right: 5%;
    background: var(--primary);
}
.hero-glow-2 {
    bottom: 50px;
    left: -100px;
    background: var(--accent);
}

.hero-headline {
    font-size: clamp(2.4rem, 4.4vw, 3.75rem);
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -0.03em;
}
.hero-subcopy {
    font-size: 1.15rem;
    color: var(--text-body);
    line-height: 1.7;
}

.hero-visual-wrapper {
    position: relative;
}
.hero-main-img-card {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    border: 1px solid rgba(255, 255, 255, 0.8);
}
.hero-main-img {
    width: 100%;
    height: 460px;
    object-fit: cover;
    display: block;
    transition: transform var(--transition-smooth);
}
.hero-main-img-card:hover .hero-main-img {
    transform: scale(1.02);
}

/* Floating Badges on Hero Visual */
.floating-metric-badge {
    position: absolute;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    padding: 0.85rem 1.25rem;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    gap: 0.85rem;
    z-index: 3;
    animation: floatSlow 4s ease-in-out infinite alternate;
}
.badge-top-right {
    top: 25px;
    right: -15px;
}
.badge-bottom-left {
    bottom: 25px;
    left: -15px;
    animation-delay: -2s;
}
@keyframes floatSlow {
    from { transform: translateY(0px); }
    to { transform: translateY(-8px); }
}

/* Trust / Technology Strip */
.trust-strip {
    background-color: #ffffff;
    border-top: 1px solid var(--border-subtle);
    border-bottom: 1px solid var(--border-subtle);
    padding: 1.8rem 0;
}
.tech-pill-item {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.5rem 1.15rem;
    background-color: var(--bg-light);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-pill);
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-navy);
    transition: all var(--transition-fast);
}
.tech-pill-item:hover {
    background-color: #ffffff;
    border-color: var(--primary-light);
    box-shadow: var(--shadow-subtle);
    transform: translateY(-2px);
    color: var(--primary);
}

/* Clean Cards System */
.feature-card {
    background: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 2rem;
    height: 100%;
    transition: all var(--transition-base);
    position: relative;
    display: flex;
    flex-direction: column;
}
.feature-card:hover {
    border-color: rgba(11, 77, 187, 0.3);
    box-shadow: var(--shadow-md);
    transform: translateY(-4px);
}

.feature-card .card-icon-wrap {
    width: 52px;
    height: 52px;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.45rem;
    margin-bottom: 1.35rem;
    background-color: var(--primary-subtle);
    color: var(--primary);
    transition: all var(--transition-fast);
}
.feature-card:hover .card-icon-wrap {
    background-color: var(--primary);
    color: #ffffff;
}

/* Service Card Enhancements */
.service-card-meta {
    margin-top: auto;
    padding-top: 1.25rem;
    border-top: 1px solid var(--border-subtle);
}
.learn-more-link {
    font-weight: 700;
    font-size: 0.9rem;
    color: var(--primary);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    transition: gap var(--transition-fast);
}
.learn-more-link:hover {
    color: var(--accent);
    gap: 0.65rem;
}

/* AI Solutions Visual Workflow Section */
.ai-workflow-container {
    background: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 2rem;
    box-shadow: var(--shadow-subtle);
}
.workflow-step-node {
    background: var(--bg-light);
    border: 1.5px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 1.25rem 1rem;
    text-align: center;
    position: relative;
    transition: all var(--transition-fast);
}
.workflow-step-node:hover {
    background: #ffffff;
    border-color: var(--primary);
    box-shadow: var(--shadow-subtle);
}
.workflow-step-number {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--primary);
    color: #ffffff;
    font-weight: 700;
    font-size: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 0.75rem;
}
.workflow-arrow-divider {
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-light);
    font-size: 1.4rem;
}

/* Process Timeline */
.process-step-card {
    background: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 1.85rem;
    position: relative;
    height: 100%;
    transition: all var(--transition-base);
}
.process-step-card:hover {
    border-color: var(--accent);
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}
.process-step-badge {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--accent);
    margin-bottom: 0.75rem;
    display: inline-block;
}

/* Realistic Smartphone Device Mockup for Mobile Section */
.phone-mockup-frame {
    width: 100%;
    max-width: 320px;
    margin: 0 auto;
    border-radius: 40px;
    background: #0f172a;
    padding: 12px;
    box-shadow: 0 25px 50px -12px rgba(8, 24, 57, 0.35);
    border: 4px solid #334155;
    position: relative;
}
.phone-notch {
    width: 120px;
    height: 20px;
    background: #0f172a;
    border-radius: 0 0 14px 14px;
    position: absolute;
    top: 12px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
}
.phone-screen {
    border-radius: 30px;
    overflow: hidden;
    position: relative;
    height: 520px;
    background: #ffffff;
}
.phone-screen img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Portfolio Cards */
.portfolio-card {
    background: #ffffff;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
    overflow: hidden;
    transition: all var(--transition-base);
    display: flex;
    flex-direction: column;
    height: 100%;
}
.portfolio-card:hover {
    border-color: var(--primary);
    box-shadow: var(--shadow-lg);
    transform: translateY(-5px);
}
.portfolio-img-wrapper {
    position: relative;
    height: 240px;
    overflow: hidden;
    background: var(--primary-navy);
}
.portfolio-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-smooth);
}
.portfolio-card:hover .portfolio-img-wrapper img {
    transform: scale(1.05);
}
.portfolio-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    z-index: 2;
}

/* Blog Cards */
.blog-card {
    background: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    height: 100%;
    transition: all var(--transition-base);
}
.blog-card:hover {
    box-shadow: var(--shadow-md);
    border-color: var(--primary);
    transform: translateY(-4px);
}
.blog-img-wrapper {
    height: 200px;
    overflow: hidden;
    position: relative;
}
.blog-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-smooth);
}
.blog-card:hover .blog-img-wrapper img {
    transform: scale(1.05);
}

/* Testimonial Cards */
.testimonial-card {
    background: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 2.25rem;
    box-shadow: var(--shadow-subtle);
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}
.testimonial-quote {
    font-size: 1.05rem;
    line-height: 1.7;
    color: var(--text-dark);
    margin-bottom: 1.5rem;
}
.testimonial-author-img {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--primary-subtle);
}

/* CTA Section */
.cta-banner-section {
    position: relative;
    background: linear-gradient(135deg, var(--primary-navy) 0%, #0d2e6b 60%, #4a0d17 100%);
    color: #ffffff;
    border-radius: var(--radius-xl);
    padding: 4.5rem 3rem;
    overflow: hidden;
}
.cta-glow-element {
    position: absolute;
    width: 350px;
    height: 350px;
    background: radial-gradient(circle, var(--accent) 0%, transparent 70%);
    opacity: 0.2;
    top: -80px;
    right: -80px;
    pointer-events: none;
}

/* Footer Styling */
.site-footer {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}
.footer-ambient-glow {
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, var(--primary) 0%, transparent 70%);
    opacity: 0.07;
    pointer-events: none;
}
.footer-ambient-glow-2 {
    width: 350px;
    height: 350px;
    background: radial-gradient(circle, var(--accent) 0%, transparent 70%);
    opacity: 0.05;
    pointer-events: none;
}
.footer-link {
    color: #94a3b8;
    text-decoration: none;
    font-size: 0.9rem;
    margin-bottom: 0.65rem;
    display: inline-block;
    transition: all var(--transition-fast);
}
.footer-link:hover {
    color: #ffffff;
    transform: translateX(4px);
}
.tech-tag {
    display: inline-block;
    background: rgba(255, 255, 255, 0.07);
    color: #cbd5e1;
    font-size: 0.78rem;
    padding: 0.3rem 0.65rem;
    border-radius: var(--radius-sm);
    border: 1px solid rgba(255, 255, 255, 0.1);
}
.social-btn {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    color: #cbd5e1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: all var(--transition-fast);
}
.social-btn:hover {
    background: var(--accent);
    color: #ffffff;
    transform: translateY(-2px);
}
.bg-white-10 {
    background: rgba(255, 255, 255, 0.08);
}
.border-white-10 {
    border-color: rgba(255, 255, 255, 0.1) !important;
}

/* Back to top */
.btn-back-to-top {
    position: fixed;
    bottom: 25px;
    right: 25px;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    transition: all var(--transition-fast);
}

/* Reduced motion preference */
@media (prefers-reduced-motion: reduce) {
    *, ::before, ::after {
        animation-delay: -1ms !important;
        animation-duration: 1ms !important;
        animation-iteration-count: 1 !important;
        background-attachment: initial !important;
        scroll-behavior: auto !important;
        transition-duration: 0s !important;
        transition-delay: 0s !important;
    }
}
