/* =========================================
   1. CORE SETTINGS & VARIABLES
   ========================================= */
:root {
    /* Branding Palette */
    --brand-blue: #2CA9E0;       /* Bright Cyan/Teal (TECHNOLOGY) */
    --brand-blue-rgb: 44, 169, 224;
    --brand-blue-dark: #1F8FB0;
    --brand-blue-dark-rgb: 31, 143, 176;
    --brand-orange: #E34551;     /* Warm Red/Pink (logo match) */
    --brand-orange-rgb: 227, 69, 81;
    --brand-orange-hover: #CD3E49;
    --accent-green: #28C76F;    /* Service Icon Accent */
    --accent-green-rgb: 40, 199, 111;
    --accent-purple: #845EF7;
    --accent-purple-rgb: 132, 94, 247;
    --accent-cyan: #00CFE8;
    --accent-cyan-rgb: 0, 207, 232;
    --light-bg: #f8f9fa;
    --text-dark: #333333;
    --text-muted: #6c757d;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Roboto', sans-serif;
    color: var(--text-dark);
    overflow-x: hidden;
    /* Ensure footer pushes down on short pages */
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    background-color: #f8f9fa;
}

/* Allow main content to grow to push footer down */
main {
    flex: 1;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
}

a {
    text-decoration: none;
    transition: all 0.3s ease;
}

a:hover {
    color: var(--brand-orange);
}

/* =========================================
   1.5 ANIMATIONS & KEYFRAMES
   ========================================= */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideUpButton {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Additional keyframes for hero enhancements */
@keyframes bounceDown {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(8px); }
}

@keyframes floatShape {
    0% { transform: translateY(0) translateX(0) rotate(0deg); }
    50% { transform: translateY(-6px) translateX(2px) rotate(3deg); }
    100% { transform: translateY(0) translateX(0) rotate(0deg); }
}

@keyframes pulseGlow {
    0% { box-shadow: 0 0 0 0 rgba(var(--brand-blue-rgb), 0.0); }
    50% { box-shadow: 0 0 24px 8px rgba(var(--brand-blue-rgb), 0.25); }
    100% { box-shadow: 0 0 0 0 rgba(var(--brand-blue-rgb), 0.0); }
}

/* Wave animations for hero wave decoration */
@keyframes waveFlow {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

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

/* Page header animations */
@keyframes headerShapeFloat {
    0% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-15px) rotate(5deg); }
    100% { transform: translateY(0) rotate(0deg); }
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Animated Gradient Shift - cycles through brand colors */
@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* Floating Particle Animations - subtle vertical movement */
@keyframes particleFloat1 {
    0% { transform: translateY(0) translateX(0) scale(1); opacity: 0.15; }
    50% { transform: translateY(-40px) translateX(15px) scale(1.1); opacity: 0.25; }
    100% { transform: translateY(0) translateX(0) scale(1); opacity: 0.15; }
}

@keyframes particleFloat2 {
    0% { transform: translateY(0) translateX(0) scale(0.8); opacity: 0.1; }
    50% { transform: translateY(-60px) translateX(-20px) scale(0.95); opacity: 0.2; }
    100% { transform: translateY(0) translateX(0) scale(0.8); opacity: 0.1; }
}

@keyframes particleFloat3 {
    0% { transform: translateY(0) translateX(0) scale(1.1); opacity: 0.12; }
    50% { transform: translateY(-35px) translateX(25px) scale(1.2); opacity: 0.22; }
    100% { transform: translateY(0) translateX(0) scale(1.1); opacity: 0.12; }
}

@keyframes particleFloat4 {
    0% { transform: translateY(0) translateX(0) scale(0.9); opacity: 0.08; }
    50% { transform: translateY(-50px) translateX(-30px) scale(1.05); opacity: 0.18; }
    100% { transform: translateY(0) translateX(0) scale(0.9); opacity: 0.08; }
}

/* =========================================
   2. UTILITIES & BUTTONS
   ========================================= */
.text-brand-blue { color: var(--brand-blue) !important; }
.text-brand-orange { color: var(--brand-orange) !important; }
.text-brand-blue-dark { color: var(--brand-blue-dark); }

.bg-brand-blue { background-color: var(--brand-blue) !important; }
.bg-brand-orange { background-color: var(--brand-orange) !important; }
.bg-brand-blue-light { background-color: rgba(var(--brand-blue-rgb), 0.1); }
.bg-brand-orange-light { background-color: rgba(var(--brand-orange-rgb), 0.1); }

.section-padding {
    padding: 80px 0;
}

@media (max-width: 768px) {
    .section-padding { padding: 60px 0; }
}

@media (max-width: 576px) {
    .section-padding { padding: 40px 0; }
}

.section-title {
    margin-bottom: 50px;
    position: relative;
    display: inline-block;
}

@media (max-width: 768px) {
    .section-title { margin-bottom: 40px; font-size: 1.8rem; }
}

@media (max-width: 576px) {
    .section-title { margin-bottom: 30px; font-size: 1.4rem; }
}

.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background: var(--brand-orange);
    margin: 15px auto 0;
}

/* Buttons */
.btn-brand-orange {
    background-color: var(--brand-orange);
    color: white;
    border: 2px solid var(--brand-orange);
    padding: 10px 30px;
    border-radius: 50px;
    font-weight: 500;
    transition: all 0.4s cubic-bezier(0.23, 1, 0.320, 1);
}

.btn-brand-orange:hover {
    background-color: transparent;
    color: #e34551;
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(var(--brand-orange-rgb), 0.25);
}

.btn-outline-white {
    color: white;
    border: 2px solid white;
    padding: 10px 30px;
    border-radius: 50px;
    font-weight: 500;
    transition: all 0.4s cubic-bezier(0.23, 1, 0.320, 1);
}

.btn-outline-white:hover {
    background-color: white;
    color: var(--brand-blue);
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(255, 255, 255, 0.25);
}

.btn-brand-blue {
    background-color: var(--brand-blue);
    color: white;
    border: 2px solid var(--brand-blue);
    padding: 10px 30px;
    border-radius: 50px;
    font-weight: 500;
    transition: all 0.4s cubic-bezier(0.23, 1, 0.320, 1);
}

.btn-brand-blue:hover {
    background-color: var(--brand-blue-dark);
    border-color: var(--brand-blue-dark);
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(var(--brand-blue-rgb), 0.35);
}

/* Map toggle buttons (small, consistent style) */
.btn-map {
    padding: 6px 12px;
    border-radius: 8px;
    font-weight: 500;
    border: 2px solid rgba(var(--brand-orange-rgb), 0.15);
    color: var(--brand-orange);
    background: transparent;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
}
.btn-map .fa {
    margin-right: 8px;
}
.btn-map:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(var(--brand-orange-rgb), 0.08);
}
.btn-map.active,
.btn-map[aria-pressed="true"] {
    background-color: var(--brand-orange);
    color: #fff;
    border-color: var(--brand-orange);
}
.btn-map.active .fa,
.btn-map[aria-pressed="true"] .fa {
    color: rgba(255,255,255,0.95);
}

/* =========================================
   3. NAVIGATION & LOGO
   ========================================= */
.navbar {
    transition: all 0.4s ease;
    padding: 15px 0;
    background-color: white;
    position: sticky;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
}

.navbar.scrolled {
    background-color: white;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    padding: 10px 0;
}

.navbar.hide-nav {
    transform: translateY(-100%);
}

.navbar-brand {
    padding: 0;
    margin: 0;
    display: flex;
    align-items: center;
}

/* Logo Sizing & Switching */
.nav-logo {
    height: 45px;
    width: auto;
    transition: all 0.4s cubic-bezier(0.23, 1, 0.320, 1);
    display: block;
    max-height: 45px;
    object-fit: contain;
}
.navbar:hover .nav-logo {
    transform: scale(1.08);
    filter: drop-shadow(0 2px 8px rgba(var(--brand-blue-rgb), 0.2));
}

/* Navbar Spacer for separation */
.navbar-spacer {
    height: 76px;
    background-color: transparent;
}

/* Default State (White Header with Dark Logo) */
.logo-white { display: none; }
.logo-dark { display: block; }

/* Scrolled State (White Header) */
.navbar.scrolled .logo-white { display: none; }
.navbar.scrolled .logo-dark { display: block; }

/* Nav Links */
.nav-link {
    color: var(--brand-blue) !important;
    font-weight: 500;
    font-family: 'Poppins', sans-serif;
    margin-left: 15px;
    position: relative;
    text-transform: none;
    letter-spacing: 0.3px;
}

.navbar.scrolled .nav-link {
    color: var(--brand-blue) !important;
}

.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 0;
    background-color: var(--brand-orange);
    transition: width 0.3s;
}

.nav-link:hover::after, .nav-link.active::after {
    width: 100%;
}

/* Mobile Toggle */
.navbar-toggler { border: none; }
.navbar-toggler-icon { background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba(44,169,224,0.9)' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e"); }
.navbar.scrolled .navbar-toggler-icon { background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba(44,169,224,0.9)' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e"); }

/* Mobile Responsive Adjustments */
@media (max-width: 991px) {
    .navbar { background-color: white; padding: 10px 0; }
    .nav-logo { height: 35px; }
    .navbar-spacer { height: 60px; }
    .navbar.scrolled { background-color: white; }
    .navbar.scrolled .navbar-toggler-icon { background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba(44,169,224,0.9)' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e"); }
    
    /* Ensure mobile menu text is visible on white bg */
    .nav-link { color: var(--brand-blue) !important; }
    .navbar.scrolled .nav-link { color: var(--brand-blue) !important; }
}

/* =========================================
   4. PAGE HEADERS & HERO
   ========================================= */
/* Main Home Hero */
#hero {
    position: relative;
    min-height: 600px; /* increased for better display */
    display: flex;
    align-items: center;
    color: #fff;
    overflow: hidden;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.45) 0%, rgba(0, 0, 0, 0.40) 50%, rgba(0, 0, 0, 0.45) 100%), 
                url('../img/innetwork_technology_hero_bg.webp') center / cover no-repeat;
    background-attachment: fixed;
}

.hero-media {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

.hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: saturate(0.95) contrast(1.05) brightness(1.1);
  opacity: 0.75; /* Increased for better visibility with dark overlay */
  transform: scale(1.02); /* subtle crop */
  will-change: transform;
}

/* Semi-transparent dark overlay for text visibility over background image */
.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: transparent;
  backdrop-filter: blur(0px);
}

/* Tech grid/mesh pattern overlay */
.hero-overlay::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image: 
    linear-gradient(0deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 40px 40px;
  opacity: 1;
  pointer-events: none;
}

/* Floating geometric accents */
.hero-decor {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 2; /* sits with content, low opacity */
}
.hero-decor .shape {
    position: absolute;
    opacity: 0.25; /* Increased from 0.10 for better visibility */
    animation: floatShape 6s ease-in-out infinite;
}
.hero-decor .shape--circle {
    width: 120px; height: 120px; border-radius: 50%;
    background: radial-gradient(circle at 30% 30%, rgba(var(--brand-blue-rgb),0.9), rgba(0, 207, 232,0.3));
    top: 12%; left: 6%;
    box-shadow: 0 0 40px rgba(0, 207, 232, 0.4);
}
.hero-decor .shape--ring {
    width: 140px; height: 140px; border-radius: 50%;
    box-shadow: inset 0 0 0 6px rgba(0, 207, 232, 0.6), 0 0 35px rgba(44, 169, 224, 0.3);
    top: 20%; right: 8%;
    animation-duration: 8s;
}
.hero-decor .shape--diamond {
    width: 90px; height: 90px; transform: rotate(45deg);
    background: linear-gradient(135deg, rgba(0, 207, 232, 0.6), rgba(44, 169, 224, 0.3));
    bottom: 18%; left: 12%;
    animation-duration: 7s;
    box-shadow: 0 0 30px rgba(44, 169, 224, 0.3);
}

/* Floating Particles - subtle, performance-optimized */
.hero-particles {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 2;
    overflow: hidden;
}

.particle {
    position: absolute;
    border-radius: 50%;
    will-change: transform;
    filter: blur(0.5px);
}

/* Particle 1 - Brand Blue, Top-Left */
.particle:nth-child(1) {
    width: 60px;
    height: 60px;
    background: radial-gradient(circle at 35% 35%, rgba(44, 169, 224, 0.8), rgba(44, 169, 224, 0.2));
    top: 15%;
    left: 8%;
    box-shadow: 0 0 20px rgba(44, 169, 224, 0.3);
    animation: particleFloat1 8s ease-in-out infinite;
}

/* Particle 2 - Accent Cyan, Top-Right */
.particle:nth-child(2) {
    width: 45px;
    height: 45px;
    background: radial-gradient(circle at 35% 35%, rgba(0, 207, 232, 0.7), rgba(0, 207, 232, 0.15));
    top: 25%;
    right: 10%;
    box-shadow: 0 0 15px rgba(0, 207, 232, 0.25);
    animation: particleFloat2 10s ease-in-out infinite;
}

/* Particle 3 - Brand Blue, Center-Left */
.particle:nth-child(3) {
    width: 70px;
    height: 70px;
    background: radial-gradient(circle at 35% 35%, rgba(31, 143, 176, 0.6), rgba(31, 143, 176, 0.1));
    top: 45%;
    left: 5%;
    box-shadow: 0 0 25px rgba(31, 143, 176, 0.2);
    animation: particleFloat3 9s ease-in-out infinite 0.5s;
}

/* Particle 4 - Accent Cyan, Bottom-Right */
.particle:nth-child(4) {
    width: 50px;
    height: 50px;
    background: radial-gradient(circle at 35% 35%, rgba(0, 207, 232, 0.6), rgba(0, 207, 232, 0.12));
    bottom: 20%;
    right: 12%;
    box-shadow: 0 0 18px rgba(0, 207, 232, 0.2);
    animation: particleFloat4 11s ease-in-out infinite;
}

/* Hide particles for cleaner background image appearance */
.hero-particles {
    display: none;
}

@media (max-width: 768px) {
    .hero-particles {
        display: none;
    }
}

/* Wave decoration at bottom of hero */
.hero-wave {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100px;
    z-index: 3;
    overflow: hidden;
    line-height: 0;
    filter: drop-shadow(0 -4px 12px rgba(var(--brand-blue-rgb), 0.15));
}

.hero-wave svg {
    position: relative;
    display: block;
    width: calc(200% + 1.3px); /* Double width for seamless loop */
    height: 100px;
    animation: waveFlow 25s linear infinite;
}

/* Individual wave path styling with brand gradient and parallax */
.hero-wave .wave-shape {
    fill: url(#waveGradient);
    animation: waveVertical 6s ease-in-out infinite;
}

.hero-wave .wave-shape:nth-child(1) {
    fill: rgba(var(--brand-blue-rgb), 0.3);
    animation: waveVertical 7s ease-in-out infinite;
}

.hero-wave .wave-shape:nth-child(2) {
    fill: rgba(var(--accent-cyan-rgb), 0.4);
    animation: waveVertical 9s ease-in-out infinite 0.3s;
}

.hero-wave .wave-shape:nth-child(3) {
    fill: #f8f9fa; /* Match the next section background */
    animation: waveVertical 11s ease-in-out infinite 0.6s;
    filter: drop-shadow(0 -2px 8px rgba(var(--brand-blue-rgb), 0.1));
}

/* Add gradient overlay for extra depth */
.hero-wave::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 30px;
    background: linear-gradient(to top, rgba(var(--accent-cyan-rgb), 0.08), transparent);
    pointer-events: none;
    z-index: 2;
}

/* Respect reduced motion preferences */
@media (prefers-reduced-motion: reduce) {
    .hero-wave svg,
    .hero-wave .wave-shape {
        animation: none !important;
    }
    .hero-wave {
        filter: none;
    }
}

/* Hero content sits above image + overlay */
.hero .container,
.hero-content {
  position: relative;
  z-index: 2;
  color: #fff;
  text-shadow: 0 3px 12px rgba(0,0,0,0.4);
}

/* Responsive tweaks */
@media (max-width: 768px) {
  .hero {
    min-height: 420px;
    padding: 3rem 0;
  }
  .hero-overlay { background: linear-gradient(135deg, rgba(31, 143, 176, 0.75) 0%, rgba(0, 0, 0, 0.55) 100%); }
}

/* Optional: gentle parallax on scroll (no dependency, low-cost) */
@media (min-width: 992px) {
  .hero-img { transition: transform 0.6s ease; }
  .hero:hover .hero-img { transform: scale(1.04); }
}

.hero-content h1 { 
    font-size: 3.5rem; 
    margin-bottom: 20px;
    color: #ffffff;
    font-weight: 700;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    animation: fadeInUp 0.8s ease-out 0.2s both;
    line-height: 1.1;
    letter-spacing: -0.5px;
}
.hero-content p { 
    font-size: 1.2rem; 
    margin-bottom: 30px; 
    opacity: 1;
    color: #ffffff;
    font-weight: 400;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
    animation: fadeInUp 0.8s ease-out 0.4s both;
    line-height: 1.6;
}

/* Hero button animations - staggered */
.hero-content .d-flex {
    animation: fadeInUp 0.8s ease-out 0.6s both;
}

.hero-content .btn {
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    position: relative;
    overflow: hidden;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.hero-content .btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.2);
    transition: left 0.4s ease;
    z-index: 0;
}

.hero-content .btn:hover::before {
    left: 100%;
}

.hero-content .btn:hover {
    transform: translateY(-4px) scale(1.02);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.35), 0 0 20px rgba(44, 169, 224, 0.2);
}

.hero-content .btn:active {
    transform: translateY(-1px) scale(0.98);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25);
}

.hero-content .btn-brand-orange:hover {
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.35), 0 0 20px rgba(227, 69, 81, 0.25);
}

.hero-content .btn-brand-blue:hover {
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.35), 0 0 20px rgba(44, 169, 224, 0.3);
}

.hero-content .btn:first-child {
    animation: slideUpButton 0.8s ease-out 0.6s both;
}

.hero-content .btn:last-child {
    animation: slideUpButton 0.8s ease-out 0.75s both;
}

/* Pulse glow for primary CTA */
.hero-content .btn.pulse {
    animation: pulseGlow 3.2s ease-in-out 1.2s infinite;
}

/* Scroll indicator */
.scroll-indicator {
    position: absolute;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%);
    color: #fff;
    opacity: 0.85;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px; height: 42px;
    border-radius: 50%;
    box-shadow: 0 0 0 2px rgba(255,255,255,0.25);
    background: rgba(0,0,0,0.15);
    animation: bounceDown 2s ease-in-out infinite;
}
.scroll-indicator i { font-size: 1.1rem; }

/* Credibility badge under CTA */
.cred-badge {
    display: inline-flex;
    align-items: center;
    gap: 2px;
    padding: 8px 14px;
    border-radius: 999px;
    background: linear-gradient(135deg, rgba(var(--brand-blue-rgb), 0.9), rgba(var(--accent-cyan-rgb), 0.9));
    color: #fff;
    font-size: 0.9rem;
    box-shadow: 0 8px 24px rgba(0,0,0,0.25);
    animation: fadeInUp 0.8s ease-out 0.9s both;
}
.cred-badge .text-separator { opacity: 0.85; }

/* Accessibility: respect reduced motion preferences */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.001ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.001ms !important;
    }
    .hero-decor .shape,
    .scroll-indicator,
    .hero-content .btn,
    .hero-content h1,
    .hero-content p,
    .hero-content .d-flex,
    .cred-badge {
        animation: none !important;
    }
}

@media (max-width: 991px) {
    #hero { height: auto; padding: 180px 0 100px; text-align: center; }
    .hero-content h1 { font-size: 2.5rem; }
}

@media (max-width: 768px) {
    #hero { padding: 150px 20px 80px; }
    .hero-content h1 { font-size: 1.8rem; line-height: 1.3; }
    .hero-content p { font-size: 1rem; margin-bottom: 20px; }
    .d-flex.gap-3 { flex-direction: column !important; }
    .btn { width: 100%; margin-bottom: 10px; }
    .btn-lg { padding: 12px 20px !important; font-size: 0.95rem; }
}

@media (max-width: 576px) {
    #hero { padding: 120px 15px 60px; }
    .hero-content h1 { font-size: 1.4rem; }
    .hero-content p { font-size: 0.9rem; }
    .d-flex.gap-3 { gap: 0 !important; }
}

/* Subpage Headers - Enhanced */
.page-header {
    height: 60vh;
    background-color: #f8f9fa;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    color: #fff;
    position: relative;
    overflow: hidden;
}

/* Animated gradient overlay */
.page-header::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, 
        rgba(var(--brand-blue-dark-rgb), 0.92) 0%, 
        rgba(var(--brand-blue-rgb), 0.88) 50%, 
        rgba(var(--accent-cyan-rgb), 0.85) 100%);
    z-index: 1;
}

/* Tech grid pattern overlay */
.page-header::after {
    content: '';
    position: absolute;
    inset: 0;
    background-image: 
        linear-gradient(0deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
    background-size: 30px 30px;
    opacity: 1;
    z-index: 2;
    pointer-events: none;
}

/* Floating decorative shapes */
.page-header .container {
    position: relative;
    z-index: 3;
}

/* Add floating shapes with pseudo-elements on header content */
.page-header h1 {
    position: relative;
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 15px;
    color: #ffffff;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    animation: fadeInDown 0.8s ease-out;
    letter-spacing: -0.5px;
}

.page-header h1::before {
    content: '';
    position: absolute;
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(var(--accent-cyan-rgb), 0.3), transparent);
    top: -40px;
    left: -60px;
    animation: headerShapeFloat 8s ease-in-out infinite;
    pointer-events: none;
    z-index: -1;
}

.page-header h1::after {
    content: '';
    position: absolute;
    width: 100px;
    height: 100px;
    border: 3px solid rgba(var(--brand-orange-rgb), 0.25);
    border-radius: 50%;
    top: -30px;
    right: -70px;
    animation: headerShapeFloat 10s ease-in-out infinite 1s;
    pointer-events: none;
    z-index: -1;
}

/* Breadcrumb styling enhancements */
.breadcrumb {
    background: rgba(0, 0, 0, 0.2);
    padding: 10px 20px;
    border-radius: 50px;
    backdrop-filter: blur(10px);
    display: inline-flex;
    animation: slideInLeft 0.8s ease-out 0.2s both;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.breadcrumb-item {
    color: rgba(255, 255, 255, 0.9);
    font-weight: 500;
    transition: all 0.3s ease;
}

.breadcrumb-item a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: all 0.3s ease;
}

.breadcrumb-item a:hover {
    color: var(--brand-orange);
    text-shadow: 0 0 10px rgba(var(--brand-orange-rgb), 0.5);
}

.breadcrumb-item.active {
    color: var(--brand-orange);
    font-weight: 600;
}

.breadcrumb-item + .breadcrumb-item::before { 
    color: rgba(255, 255, 255, 0.6);
    content: '/';
    padding: 0 10px;
}

/* Decorative accent line under title */
.page-header .text-center::after {
    content: '';
    display: block;
    width: 80px;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--brand-orange), transparent);
    margin: 20px auto 0;
    border-radius: 2px;
    animation: fadeInDown 0.8s ease-out 0.3s both;
}

@media (max-width: 768px) {
    .page-header { height: 40vh; padding: 60px 20px; }
    .page-header h1 { font-size: 2rem; }
    .page-header h1::before,
    .page-header h1::after { display: none; }
}

@media (max-width: 576px) {
    .page-header { height: auto; min-height: 35vh; padding: 40px 15px; }
    .page-header h1 { font-size: 1.6rem; margin-bottom: 15px; }
    .breadcrumb { padding: 8px 15px; font-size: 0.85rem; }
}

/* Respect reduced motion */
@media (prefers-reduced-motion: reduce) {
    .page-header h1,
    .page-header h1::before,
    .page-header h1::after,
    .breadcrumb {
        animation: none !important;
    }
}

/* Specific Page Header Backgrounds */
.page-header { /* Default */
    background-image: url('../img/innetwork_technology_about_header.webp');
}
.page-header-aboutus {
    background-image: url('../img/innetwork_technology_services_hero.webp');
}
.page-header-services {
    background-image: url('../img/innetwork_technology_services_hero.webp');
}
.page-header-portfolio {
    height: 50vh;
    background-image: url('../img/innetwork_technology_services_hero.webp');
}
.page-header-legal {
    height: 40vh;
    background-image: url('../img/innetwork_technology_privacy_hero.webp');
}
.page-header-privacy {
    height: 50vh;
    background-image: url('../img/innetwork_technology_privacy_hero.webp');
}
.page-header-blog {
    background-image: url('../img/innetwork_technology_services_hero.webp');
}

/* About Section */
#about { padding: 80px 0; }

@media (max-width: 768px) {
    #about { padding: 60px 0; }
    .about-img { margin-bottom: 30px; }
    .about-img { text-align: center; }
    .col-lg-6.ps-lg-5 { padding-left: 0 !important; }
}

@media (max-width: 576px) {
    #about { padding: 40px 0; }
    .about-img { margin-bottom: 25px; }
}

/* =========================================
   IMAGE HOVER EFFECTS & ANIMATIONS
   ========================================= */

/* General Image Transitions */
img {
    transition: all 0.4s cubic-bezier(0.23, 1, 0.320, 1);
}

/* About Section Image */
.about-img {
    position: relative;
    overflow: hidden;
    border-radius: 10px;
}
.about-img img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.5s ease, filter 0.5s ease;
}
.about-img:hover img {
    transform: scale(1.08) rotate(0.5deg);
    filter: brightness(1.05);
}

/* Experience Badge */
.experience-badge {
    position: absolute;
    bottom: 20px;
    right: 20px;
    background: var(--brand-orange);
    color: white;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    transition: all 0.4s ease;
}
.about-img:hover .experience-badge {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(var(--brand-orange-rgb), 0.4);
}

/* Portfolio Image Containers */
.portfolio-img-wrap {
    position: relative;
    overflow: hidden;
    height: 240px;
    background: linear-gradient(135deg, #f0f0f0 0%, #e0e0e0 100%);
}
.portfolio-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s cubic-bezier(0.23, 1, 0.320, 1), filter 0.4s ease;
}
.portfolio-item:hover .portfolio-img-wrap img {
    transform: scale(1.12) rotate(-1deg);
    filter: brightness(1.1) contrast(1.1);
}

/* Testimonial Images with Border Hover */
.carousel-item img {
    border: 4px solid var(--brand-blue);
    transition: all 0.4s cubic-bezier(0.23, 1, 0.320, 1);
}
.carousel-item:hover img {
    border-color: var(--brand-orange);
    transform: scale(1.1);
    box-shadow: 0 0 20px rgba(var(--brand-orange-rgb), 0.3);
}

/* -------------------------
   Global Content Image Hover-Zoom (desktop only)
   Applies to content/portfolio/about images but excludes logos and partner badges
   ------------------------- */
@media (hover: hover) and (pointer: fine) {
    .about-img img,
    .portfolio-img-wrap img,
    .portfolio-card img,
    .portfolio-item img,
    .img-fluid.w-100,
    .img-fluid.hover-zoom,
    .service-card img {
        transition: transform 0.5s cubic-bezier(0.23, 1, 0.320, 1), filter 0.35s ease;
        transform-origin: center center;
        will-change: transform;
        display: block;
    }

    .about-img:hover img,
    .portfolio-img-wrap:hover img,
    .portfolio-card:hover img,
    .portfolio-item:hover .portfolio-img-wrap img,
    .service-card:hover img {
        transform: scale(1.08) rotate(0.3deg);
        filter: brightness(1.04) contrast(1.02);
    }
}

/* Respect users' reduced-motion preference */
@media (prefers-reduced-motion: reduce) {
    .about-img img,
    .portfolio-img-wrap img,
    .portfolio-card img,
    .portfolio-item img,
    .img-fluid.hover-zoom,
    .service-card img {
        transition: none !important;
        transform: none !important;
    }
}

/* Mobile spacing sweep: tighten paddings and ensure portfolio images don't force large heights */
@media (max-width: 576px) {
    .section-padding { padding: 30px 0; }
    .conversion-banner { padding: 20px 16px !important; }
    .portfolio-img-wrap { height: auto; }
    .portfolio-img-wrap img { height: auto; object-fit: cover; }
    .row.g-4 { gap: 16px; }
}

/* End global image hover/spacing updates */

/* Partner Logo Images */
.partner-logo img {
    transition: all 0.4s ease;
    filter: grayscale(100%);
    opacity: 0.6;
}
.partner-card:hover .partner-logo img {
    filter: grayscale(0%);
    opacity: 1;
    transform: scale(1.15) translateY(-8px);
}

/* =========================================
   TOUCH-FRIENDLY ADJUSTMENTS
   ========================================= */
/* Disable complex hover effects on touch devices */
@media (hover: none) and (pointer: coarse) {
    .about-img img,
    .portfolio-img-wrap img,
    .carousel-item img {
        transition: none;
    }
}
.service-card {
    background: white;
    padding: 40px 30px;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    transition: transform 0.3s, box-shadow 0.3s;
    height: 100%;
    border-bottom: 3px solid transparent;
    outline: none; /* we'll add focus-visible explicitly */
}
.service-card:hover,
.service-card:focus-visible,
.service-card:focus {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.1);
    border-bottom: 3px solid var(--brand-orange);
}
.service-card:focus-visible {
    box-shadow: 0 0 0 4px rgba(var(--brand-blue-rgb), 0.12), 0 18px 48px rgba(0,0,0,0.06);
    border-bottom: 3px solid var(--brand-orange);
}
.service-icon {
    width: 70px;
    height: 70px;
    background: rgba(var(--brand-blue-rgb), 0.1);
    color: var(--brand-blue);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    margin-bottom: 25px;
    transition: transform 0.32s cubic-bezier(0.23, 1, 0.320, 1), box-shadow 0.32s ease, background 0.32s ease;
}
.service-card:hover .service-icon,
.service-card:focus .service-icon {
    background: var(--brand-blue);
    color: white;
    transform: scale(1.15) rotate(10deg);
    box-shadow: 0 10px 30px rgba(var(--brand-blue-rgb), 0.3);
}

/* Respect users' reduced-motion settings */
@media (prefers-reduced-motion: reduce) {
    .service-card, .service-icon, .service-card:hover, .service-card:focus, .service-card:focus-visible {
        transition: none !important;
        transform: none !important;
    }
}

/* Badge positioning - ensure not to clip on small screens */
.service-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    font-size: 0.75rem;
    padding: 6px 10px;
    border-radius: 999px;
    font-weight: 700;
    color: white;
    background: linear-gradient(135deg, rgba(var(--brand-blue-rgb),0.95), rgba(var(--brand-blue-rgb),0.8));
    box-shadow: 0 6px 18px rgba(0,0,0,0.08);
}
@media (max-width: 576px) {
    .service-badge { position: static; display: inline-block; margin-bottom: 10px; }
}

@media (max-width: 768px) {
    .service-card { padding: 30px 20px; margin-bottom: 20px; }
    .service-icon { width: 60px; height: 60px; font-size: 24px; }
    .service-card h3 { font-size: 1.2rem; }
}

@media (max-width: 576px) {
    .service-card { padding: 20px 12px; }
    .service-card p { font-size: 0.95rem; }
    .service-icon { width: 56px; height: 56px; font-size: 20px; margin-bottom: 14px; }
}

/* Screen-reader only utility */
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

/* Process Cards (Workflow) */
.process-card {
    background: #fff;
    padding: 40px 25px;
    border-radius: 15px;
    position: relative;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    height: 100%;
    border-bottom: 4px solid transparent;
    z-index: 1;
}
.process-card:hover {
    transform: translateY(-15px);
    border-bottom: 4px solid var(--brand-orange);
    box-shadow: 0 15px 30px rgba(0,0,0,0.2);
}
.process-icon-wrapper {
    position: relative;
    width: 80px;
    height: 80px;
    margin: 0 auto;
    background: var(--light-bg);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.4s ease;
}
.process-card:hover .process-icon-wrapper {
    background: var(--brand-orange);
    color: white;
}
.process-number {
    position: absolute;
    font-size: 3rem;
    font-weight: 900;
    color: rgba(0, 0, 0, 0.05);
    top: -15px;
    right: -10px;
    transition: all 0.4s ease;
}
.process-icon {
    font-size: 1.8rem;
    color: var(--brand-blue);
    z-index: 2;
    transition: all 0.4s ease;
}
.process-card:hover .process-icon {
    color: white;
    transform: rotateY(360deg);
}
@media (min-width: 992px) {
    .process-card::after {
        content: '';
        position: absolute;
        top: 80px;
        right: -50%;
        width: 100%;
        height: 2px;
        background-image: linear-gradient(to right, var(--brand-orange) 33%, rgba(255,255,255,0) 0%);
        background-position: bottom;
        background-size: 10px 2px;
        background-repeat: repeat-x;
        z-index: -1;
    }
    .col-lg-3:last-child .process-card::after { display: none; }
}

/* Partner Cards */
.partner-card {
    background: #fff;
    border: 1px solid #eee;
    border-radius: 10px;
    padding: 30px 15px;
    text-align: center;
    position: relative;
    overflow: hidden;
    height: 180px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: all 0.4s ease;
    box-shadow: 0 5px 15px rgba(0,0,0,0.03);
}
.partner-logo img {
    max-width: 100px;
    max-height: 60px;
    filter: grayscale(100%);
    opacity: 0.6;
    transition: all 0.4s ease;
}
.partner-info {
    margin-top: 15px;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.4s ease;
}
.partner-card:hover {
    border-bottom: 3px solid var(--brand-orange);
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.1);
}
.partner-card:hover .partner-logo img {
    filter: grayscale(0%);
    opacity: 1;
    transform: scale(1.15) translateY(-8px);
}
.partner-card:hover .partner-info {
    opacity: 1;
    transform: translateY(0);
}

@media (max-width: 768px) {
    .partner-card { height: auto; padding: 25px 15px; }
    .partner-logo img { max-width: 80px; max-height: 50px; }
    .partner-info { opacity: 1; transform: none; margin-top: 10px; }
}

@media (max-width: 576px) {
    .partner-card { padding: 20px 10px; }
    .partner-info h3 { font-size: 0.9rem; }
    .partner-info p { font-size: 0.8rem; }
}

/* Portfolio */
.portfolio-filters {
    list-style: none;
    padding: 0;
    margin-bottom: 40px;
    text-align: center;
}
.portfolio-filters li {
    display: inline-block;
    padding: 8px 20px;
    margin: 0 5px;
    cursor: pointer;
    font-weight: 500;
    border-radius: 50px;
    transition: all 0.3s;
    border: 1px solid #ddd;
}
.portfolio-filters li:hover, .portfolio-filters li.filter-active {
    background: var(--brand-blue);
    color: white;
    border-color: var(--brand-blue);
}

@media (max-width: 768px) {
    .portfolio-filters li { padding: 6px 12px; margin: 4px 2px; font-size: 0.85rem; }
    .portfolio-filters { margin-bottom: 30px; }
}

@media (max-width: 576px) {
    .portfolio-filters li { padding: 5px 10px; margin: 3px; font-size: 0.8rem; }
}
.portfolio-item {
    margin-bottom: 30px;
    transition: all 0.4s ease-in-out;
}
.portfolio-card {
    border-radius: 10px;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.23, 1, 0.320, 1);
    height: 100%;
    background: white;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
}
.portfolio-card:hover {
    transform: translateY(-12px);
    box-shadow: 0 20px 45px rgba(0,0,0,0.2);
}
.portfolio-img-wrap {
    position: relative;
    overflow: hidden;
    height: 240px;
}
.portfolio-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}
.portfolio-card:hover .portfolio-img-wrap img {
    transform: scale(1.1);
}
.portfolio-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(var(--brand-blue-rgb), 0.85);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.23, 1, 0.320, 1);
    backdrop-filter: blur(0px);
}
.portfolio-card:hover .portfolio-overlay { 
    opacity: 1;
    backdrop-filter: blur(2px);
}

/* Portfolio Info Section */
.portfolio-info {
    position: relative;
    background: white;
    padding: 20px;
    text-align: center;
    transition: all 0.4s ease;
}
.portfolio-card:hover .portfolio-info {
    padding: 25px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

/* Contact & Maps */
.map-container {
    width: 100%;
    height: 400px;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    transition: all 0.4s ease;
}
.map-container:hover {
    box-shadow: 0 15px 50px rgba(0,0,0,0.15);
    transform: translateY(-5px);
}
.map-container iframe {
    transition: all 0.4s ease;
}
.map-container:hover iframe {
    filter: brightness(1.05);
}

@media (max-width: 768px) {
    .map-container { height: 300px; }
    .contact-wrapper { margin: 0; }
    .contact-wrapper .row { flex-direction: column !important; }
    .contact-wrapper .col-lg-5 { padding: 40px 25px !important; }
    .contact-wrapper .col-lg-7 { padding: 30px 25px !important; }
}

@media (max-width: 576px) {
    .map-container { height: 250px; }
    .contact-wrapper .col-lg-5,
    .contact-wrapper .col-lg-7 { padding: 25px 20px !important; }
    .contact-wrapper h3 { font-size: 1.3rem; }
}

/* Quote Modal Items */
.service-select-card {
    cursor: pointer;
    transition: all 0.2s ease;
    border: 2px solid transparent !important;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}
.service-select-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    border-color: #eee !important;
}
.service-select-card.selected {
    background-color: var(--brand-blue) !important;
    border-color: var(--brand-blue) !important;
    color: white;
}
.service-select-card.selected i { color: white !important; }
.modal-header .btn-close-white { filter: invert(1) grayscale(100%) brightness(200%); }

/* Location Cards */
.location-card {
    background: white;
    padding: 30px 20px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    transition: all 0.4s cubic-bezier(0.23, 1, 0.320, 1);
    border-bottom: 3px solid transparent;
}
.location-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.1);
    border-bottom: 3px solid var(--brand-orange);
}
.location-icon {
    font-size: 3rem;
    margin-bottom: 15px;
    transition: all 0.4s ease;
}
.location-card:hover .location-icon {
    transform: scale(1.2) rotate(-10deg);
}
.location-card h4 {
    font-size: 1.2rem;
    color: var(--brand-blue);
    margin-bottom: 10px;
    font-weight: 700;
}
.location-card a {
    transition: all 0.3s ease;
}
.location-card a:hover {
    color: var(--brand-orange);
    text-decoration: underline;
}

@media (max-width: 768px) {
    .location-card { padding: 25px 15px; margin-bottom: 15px; }
    .location-card h4 { font-size: 1.1rem; }
    .location-icon { font-size: 2.5rem; }
}

@media (max-width: 576px) {
    .location-card { padding: 20px 12px; }
    .location-card h4 { font-size: 1rem; }
    .location-icon { font-size: 2rem; }
    .location-card p { font-size: 0.85rem; }
}
.trust-card {
    background: white;
    padding: 30px 20px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    transition: all 0.4s cubic-bezier(0.23, 1, 0.320, 1);
    border-top: 3px solid transparent;
    height: 100%;
}
.trust-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.1);
    border-top: 3px solid var(--brand-orange);
}
.trust-icon {
    font-size: 2.5rem;
    transition: all 0.4s ease;
}
.trust-card:hover .trust-icon {
    transform: scale(1.2) rotate(5deg);
}
.trust-card h4 {
    font-size: 1.1rem;
    color: var(--brand-blue);
}

/* Certifications / Authorizations */
.certifications { padding-top: 8px; padding-bottom: 8px; }
.certifications h3 { font-size: 1.25rem; }
.certifications-logos { gap: 1.25rem; }
.cert-logo { max-height: 48px; opacity: 0.78; filter: grayscale(100%); transition: all 0.28s ease; }
.cert-logo:hover { opacity: 1; filter: none; transform: translateY(-4px) scale(1.02); }
.cert-badge { display: inline-flex; flex-direction: column; align-items: center; justify-content: center; min-width: 120px; height: 56px; border-radius: 8px; border: 1px solid rgba(var(--brand-blue-rgb), 0.08); background-color: rgba(var(--brand-blue-rgb), 0.04); color: var(--brand-blue); padding: 6px 10px; }
.cert-badge .badge-title { font-size: 0.95rem; }
.cert-badge .badge-sub { font-size: 0.8rem; }

/* Conversion Banner */
.conversion-banner {
    border: 2px solid var(--brand-orange);
    position: relative;
    overflow: hidden;
}
.conversion-banner::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transition: left 0.6s ease;
    z-index: 0;
}
.conversion-banner:hover::before {
    left: 100%;
}
.conversion-banner > * {
    position: relative;
    z-index: 1;
}
.conversion-banner h3 {
    font-size: 1.8rem;
    letter-spacing: 0.5px;
}
.conversion-banner p {
    font-weight: 300;
}

@media (max-width: 768px) {
    .trust-card { padding: 25px 15px; margin-bottom: 15px; }
    .trust-card h4 { font-size: 1rem; }
    .trust-icon { font-size: 2rem; }
    .conversion-banner h3 { font-size: 1.4rem; }
    .conversion-banner p { font-size: 0.95rem; }
}

@media (max-width: 576px) {
    .trust-card { padding: 20px 12px; }
    .trust-card h4 { font-size: 0.95rem; }
    .trust-icon { font-size: 1.8rem; }
    .conversion-banner { padding: 30px 20px !important; }
    .conversion-banner h3 { font-size: 1.2rem; }
    .conversion-banner p { font-size: 0.85rem; }
    .conversion-banner .btn { width: 100%; margin-bottom: 10px; }
}

/* FAQ Enhancements */
.faq-badge { font-size: 0.75rem; padding: 6px 10px; border-radius: 999px; font-weight: 700; color: white; }
.faq-badge--support { background: linear-gradient(135deg, rgba(var(--accent-green-rgb),0.95), rgba(var(--accent-green-rgb),0.8)); }
.faq-badge--sales { background: linear-gradient(135deg, rgba(var(--brand-orange-rgb),0.95), rgba(var(--brand-orange-rgb),0.8)); }
.faq-badge--web { background: linear-gradient(135deg, rgba(var(--brand-blue-rgb),0.95), rgba(var(--brand-blue-rgb),0.8)); }
.faq-badge--security { background: linear-gradient(135deg, rgba(var(--accent-purple-rgb),0.95), rgba(var(--accent-purple-rgb),0.8)); }
.faq-icon { width: 22px; height: 22px; display: inline-flex; align-items: center; justify-content: center; }
.faq-question { display: inline-block; vertical-align: middle; }

/* Focus & hover for accordion buttons */
.accordion-button .faq-icon { opacity: 0.85; }
.accordion-button:focus-visible { box-shadow: 0 0 0 4px rgba(var(--brand-blue-rgb), 0.12) !important; }

/* Small screens: compact controls */


/* Form Styles */
.form-control, .form-select {
    border: 1px solid #ddd;
    padding: 12px 15px;
    border-radius: 5px;
    font-size: 1rem;
    transition: all 0.3s;
}

/* Contact Form UX */
#contactStatus { transition: opacity 0.32s ease; }
#contactStatus.d-none { opacity: 0; display: none; }
#contactStatus.alert { display: block; opacity: 1; }

.btn[disabled], .form-control[disabled], .form-select[disabled], textarea[disabled] { opacity: 0.65; cursor: not-allowed; }

/* Small adjustments for Quick Quote button next to submit */
@media (min-width: 768px) {
    .btn-outline-white { min-width: 140px; }
}

/* Ensure spinner shows when not d-none */
.spinner-border.d-none { display: none !important; }
.spinner-border:not(.d-none) { display: inline-block; }

/* Quick Quote Popup */
.quick-quote-wrapper { position: relative; display: inline-block; }
.quick-quote-popup { position: absolute; z-index: 50; top: 110%; left: 0; background: #fff; border: 1px solid rgba(0,0,0,0.06); padding: 8px; border-radius: 8px; box-shadow: 0 6px 18px rgba(0,0,0,0.08); min-width: 220px; }
.quick-quote-popup .qq-option { margin: 4px; }
.quick-quote-popup .qq-more { margin: 4px; font-size: 0.9rem; }

/* Form loading overlay */
.form-loading { position: relative; }
.form-loading::after {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(255,255,255,0.7);
    border-radius: inherit;
    display: block;
    z-index: 1;
}
.form-loading button { position: relative; z-index: 2; }
.form-loading .spinner-border { display: inline-block !important; }

/* Service card selected state */
.service-select-card.selected { border-color: rgba(var(--brand-blue-rgb),0.9); box-shadow: 0 10px 30px rgba(31,143,176,0.12); transform: translateY(-4px); }

.form-control:focus, .form-select:focus {
    border-color: var(--brand-blue);
    box-shadow: 0 0 0 0.2rem rgba(var(--brand-blue-rgb), 0.15);
}
.form-floating > label {
    color: var(--text-muted);
}
.form-floating > .form-control:focus ~ label,
.form-floating > .form-control:not(:placeholder-shown) ~ label {
    color: var(--brand-blue);
}

@media (max-width: 768px) {
    .form-control, .form-select { padding: 10px 12px; font-size: 0.95rem; }
    .form-floating { margin-bottom: 15px; }
    .modal-body { padding: 20px; }
}

@media (max-width: 576px) {
    .form-control, .form-select { padding: 10px; font-size: 0.9rem; }
    .form-floating { margin-bottom: 12px; }
    .modal-body { padding: 15px; }
    .service-select-card { padding: 15px; margin-bottom: 10px; }
}

/* Floating WhatsApp */
.whatsapp-float {
    position: fixed;
    width: 60px;
    height: 60px;
    bottom: 40px;
    right: 40px;
    background-color: #25d366;
    color: #FFF;
    border-radius: 50px;
    text-align: center;
    font-size: 30px;
    box-shadow: 2px 2px 3px #999;
    z-index: 1000;
    transition: all 0.3s ease;
}
.whatsapp-float:hover {
    background-color: #128c7e;
    transform: scale(1.1);
    color: white;
}
.my-float { margin-top: 16px; }

@media (max-width: 576px) {
    .whatsapp-float {
        width: 50px;
        height: 50px;
        bottom: 20px;
        right: 20px;
        font-size: 24px;
    }
    .my-float { margin-top: 12px; }
}

/* FAQ */
.accordion-item { border: 1px solid #eee !important; }
.accordion-button {
    background-color: #fff;
    color: var(--brand-blue-dark);
    box-shadow: none !important;
    padding: 20px;
    font-size: 1.1rem;
    transition: all 0.3s;
}
.accordion-button:not(.collapsed) {
    color: var(--brand-orange);
    background-color: rgba(var(--brand-orange-rgb), 0.05);
}
.accordion-button:not(.collapsed)::after {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23E34551'%3e%3cpath fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3e%3c/svg%3e");
}
.accordion-body {
    padding: 20px 20px 30px;
    line-height: 1.6;
}

@media (max-width: 768px) {
    .accordion-button { padding: 15px; font-size: 1rem; }
    .accordion-body { padding: 15px 15px 20px; font-size: 0.9rem; }
}

@media (max-width: 576px) {
    .accordion-button { padding: 12px; font-size: 0.95rem; }
    .accordion-body { padding: 12px 12px 15px; font-size: 0.85rem; }
}

/* =========================================
   6. FOOTER
   ========================================= */
footer {
    background: var(--brand-blue-dark);
    color: white;
    padding: 60px 0 20px;
    margin-top: auto; /* Pushes footer to bottom if body is flex column */
}
.footer-logo {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 20px;
    display: inline-block;
}
.footer-logo span { color: var(--brand-orange); }
.footer-links h4 {
    color: white;
    font-size: 18px;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 10px;
}
.footer-links ul { list-style: none; padding: 0; }
.footer-links li { margin-bottom: 10px; }
.footer-links a {
    color: rgba(255,255,255,0.7);
    text-decoration: none;
    transition: 0.3s;
}
.footer-links a:hover {
    color: var(--brand-orange);
    padding-left: 5px;
}
.social-links a {
    display: inline-block;
    width: 40px;
    height: 40px;
    background: rgba(255,255,255,0.1);
    color: white;
    border-radius: 50%;
    text-align: center;
    line-height: 40px;
    margin-right: 10px;
    transition: all 0.4s cubic-bezier(0.23, 1, 0.320, 1);
}
.social-links a:hover { 
    background: var(--brand-orange);
    transform: translateY(-5px) scale(1.15);
    box-shadow: 0 10px 25px rgba(var(--brand-orange-rgb), 0.3);
}

@media (max-width: 768px) {
    footer { padding: 50px 0 20px; }
    .footer-logo { font-size: 20px; }
    .footer-links h4 { font-size: 16px; margin-bottom: 15px; }
    .col-lg-2, .col-lg-4 { margin-bottom: 30px; }
}

@media (max-width: 576px) {
    footer { padding: 40px 0 20px; }
    .footer-logo { font-size: 18px; margin-bottom: 15px; }
    .footer-links h4 { font-size: 15px; margin-bottom: 12px; }
    .footer-links li { margin-bottom: 8px; }
    .footer-links a { font-size: 0.9rem; }
}

/* Stats Section */
.section-stats { padding: 60px 0; }

@media (max-width: 768px) {
    .section-stats { padding: 50px 0; }
    .section-stats .counter, .section-stats .display-4 { font-size: 2.5rem; }
    .section-stats p { font-size: 0.95rem; }
}

@media (max-width: 576px) {
    .section-stats { padding: 40px 0; }
    .section-stats .counter, .section-stats .display-4 { font-size: 1.8rem; }
    .section-stats .col-6 { margin-bottom: 20px; }
    .section-stats p { font-size: 0.85rem; }
}

/* Testimonials */
.carousel-item { padding: 20px; }

.testimonial-card {
    background: white;
    padding: 40px 30px;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
    transition: all 0.4s cubic-bezier(0.23, 1, 0.320, 1);
}
.testimonial-card:hover {
    box-shadow: 0 15px 40px rgba(0,0,0,0.12);
    transform: translateY(-5px);
}
.testimonial-card .stars {
    font-size: 1.2rem;
}
.testimonial-card img { 
    border: 4px solid var(--brand-orange);
    transition: all 0.4s ease;
}
.testimonial-card:hover img {
    border-color: var(--brand-blue);
    transform: scale(1.05);
    box-shadow: 0 0 20px rgba(var(--brand-orange-rgb), 0.2);
}

@media (max-width: 768px) {
    .carousel-item img { width: 80px !important; height: 80px !important; }
    .carousel-item p { font-size: 1rem; }
    .testimonial-card { padding: 30px 20px; }
}

@media (max-width: 576px) {
    .carousel-item { padding: 15px; }
    .carousel-item img { width: 70px !important; height: 70px !important; }
    .carousel-item p { font-size: 0.9rem; }
    .testimonial-card { padding: 25px 15px; }
    .carousel-item blockquote { margin: 0; }
}

/* Legal Layout */
.legal-content {
    line-height: 1.8;
    font-size: 1.05rem;
    color: #444;
}
.legal-content h3 {
    margin-top: 2rem;
    border-bottom: 2px solid rgba(0,0,0,0.05);
    padding-bottom: 10px;
}
.legal-sidebar { transition: all 0.3s ease; }
.legal-nav .nav-link {
    color: var(--text-muted) !important;
    padding: 10px 15px;
    border-radius: 5px;
    transition: all 0.2s ease;
    margin-bottom: 5px;
    font-size: 0.95rem;
    border-left: 3px solid transparent;
}
.legal-nav .nav-link:hover {
    background-color: var(--light-bg);
    color: var(--brand-blue) !important;
    padding-left: 20px;
}
.legal-nav .nav-link.active {
    background-color: rgba(var(--brand-blue-rgb), 0.1);
    color: var(--brand-blue) !important;
    font-weight: 600;
    border-left: 3px solid var(--brand-orange);
}

@media (max-width: 768px) {
    .legal-content { font-size: 1rem; line-height: 1.7; }
    .legal-sidebar { margin-top: 40px; }
    .legal-nav { display: flex; flex-wrap: wrap; gap: 5px; }
    .legal-nav .nav-link { padding: 8px 12px; font-size: 0.85rem; }
}

@media (max-width: 576px) {
    .legal-content { font-size: 0.95rem; }
    .legal-content h3 { margin-top: 1.5rem; font-size: 1.1rem; }
}
.legal-card {
    border-left: 4px solid transparent;
    transition: transform 0.3s ease;
}
.legal-card:hover {
    border-left: 4px solid var(--brand-orange);
    transform: translateY(-2px);
}
.custom-list { list-style: none; padding-left: 0; }
.custom-list li {
    position: relative;
    padding-left: 25px;
    margin-bottom: 12px;
}
.custom-list li::before {
    content: '\f00c';
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    position: absolute;
    left: 0;
    top: 2px;
    color: var(--brand-orange);
    font-size: 0.9rem;
}

/* Privacy Specifics */
.privacy-card-top {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border-bottom: 4px solid transparent;
}
.privacy-card-top:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.15) !important;
    border-bottom: 4px solid var(--brand-orange);
}
.icon-circle {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}
#privacyAccordion .accordion-button {
    background-color: #f8f9fa;
    color: var(--brand-blue-dark);
}
#privacyAccordion .accordion-button:not(.collapsed) {
    background-color: rgba(var(--brand-blue-rgb), 0.05);
    color: var(--brand-blue);
    box-shadow: inset 0 -1px 0 rgba(0,0,0,.125);
}

/* 404 Page */
.error-page-body {
    height: 100vh;
    width: 100%;
    /* CORRECTED: Using innetwork_technology_ prefix */
    background: url('../img/innetwork_technology_hero_bg.webp') no-repeat center center/cover;
    overflow: hidden;
    font-family: 'Poppins', sans-serif;
}
.error-overlay {
    background: rgba(0, 30, 50, 0.95);
    height: 100%;
    width: 100%;
}
.error-code {
    font-size: 10rem;
    font-weight: 900;
    line-height: 1;
    color: white;
    text-shadow: 0 0 20px rgba(var(--brand-orange-rgb), 0.5);
    position: relative;
    display: inline-block;
}
.radar-circle {
    display: inline-block;
    width: 140px;
    height: 140px;
    background: transparent;
    border: 8px solid var(--brand-orange);
    border-radius: 50%;
    position: relative;
    vertical-align: middle;
    margin: 0 10px;
    box-shadow: 0 0 30px var(--brand-orange);
}
.radar-circle::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, transparent 50%, var(--brand-orange) 50%);
    opacity: 0.3;
    border-radius: 50%;
    transform-origin: 0 0;
    animation: radarSpin 2s linear infinite;
}
.error-card {
    display: block;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    padding: 30px 20px;
    border-radius: 15px;
    text-decoration: none;
    color: white;
    transition: all 0.3s ease;
}
.error-card:hover {
    background: rgba(255,255,255,0.1);
    transform: translateY(-10px);
    border-color: var(--brand-orange);
    color: white;
}
.hover-lift {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.hover-lift:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1) !important;
}

/* Maintenance Page */
.maintenance-body-advanced {
    min-height: 100vh;
    overflow-x: hidden;
    background-color: #002a3d;
    font-family: 'Poppins', sans-serif;
}
.maintenance-body {
    min-height: 100vh;
    width: 100%;
    /* CORRECTED: Using innetwork_technology_ prefix */
    background: url('../img/innetwork_technology_hero_bg.webp') no-repeat center center/cover;
    font-family: 'Poppins', sans-serif;
}
.maintenance-overlay {
    background: rgba(var(--brand-blue-dark-rgb), 0.95);
    min-height: 100vh;
    width: 100%;
    padding: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.bg-brand-blue-dark { background-color: #002a3d; }

.abstract-circle {
    position: absolute;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(var(--brand-orange-rgb), 0.1) 0%, rgba(255, 255, 255, 0) 70%);
    z-index: 1;
}
.circle-1 {
    width: 600px;
    height: 600px;
    top: -200px;
    left: -200px;
}
.circle-2 {
    width: 400px;
    height: 400px;
    bottom: -100px;
    right: -100px;
    background: radial-gradient(circle, rgba(var(--brand-blue-rgb), 0.2) 0%, rgba(255, 255, 255, 0) 70%);
}

.status-dot {
    width: 10px;
    height: 10px;
    background-color: #25d366;
    border-radius: 50%;
    display: inline-block;
    box-shadow: 0 0 10px #25d366;
}
.blink { animation: blinker 1.5s linear infinite; }
@keyframes blinker { 50% { opacity: 0.3; } }

.object-fit-cover { object-fit: cover; }
.bg-brand-blue-overlay {
    background: linear-gradient(to right, #002a3d 0%, rgba(0, 42, 61, 0.4) 100%);
}
.glass-card-small {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}
.glass-card {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    box-shadow: 0 25px 50px rgba(0,0,0,0.3);
    max-width: 800px;
    width: 100%;
}
.maintenance-logo-large {
    max-width: 200px;
    height: auto;
    margin-bottom: 1.5rem;
}
.letter-spacing-2 { letter-spacing: 2px; }

/* Animation Keyframes */
@keyframes fadeInUp {
    to { opacity: 1; transform: translateY(0); }
}
@keyframes radarSpin {
    0% { transform: rotate(0deg) translate(-50%, -50%); }
    100% { transform: rotate(360deg) translate(-50%, -50%); }
}

/* About & Teams Extras */
.about-img {
    position: relative;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 15px 30px rgba(0,0,0,0.15);
}
.experience-badge {
    position: absolute;
    bottom: 20px;
    right: 20px;
    background: var(--brand-orange);
    color: white;
    padding: 20px;
    border-radius: 5px;
    text-align: center;
    box-shadow: 0 10px 20px rgba(0,0,0,0.2);
}


/* =========================================
   PRIVACY "TRUST CENTER" STYLES
   ========================================= */

.page-header-privacy {
    height: 50vh; /* Taller header to accommodate the overlap */
    background: linear-gradient(rgba(var(--brand-blue-dark-rgb), 0.95), rgba(var(--brand-blue-rgb), 0.9)), url('../img/innetwork_technology_privacy_hero.webp');
    background-size: cover;
    background-position: center;
    margin-top: -76px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 1; /* Lower z-index for the background */
}

/* Container for the cards */
.privacy-highlights {
    position: relative;
    z-index: 10; /* Higher z-index to force it ON TOP of the header */
    margin-top: -80px; /* Pulls the section up */
}

/* Floating Cards that overlap the header */
.privacy-card-top {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border-bottom: 4px solid transparent;
    background: white; /* Ensure background is solid */
    position: relative; /* Needed for z-index to take effect locally */
}

.privacy-card-top:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.15) !important;
    border-bottom: 4px solid var(--brand-orange);
}

/* =========================================
   COMPREHENSIVE TOUCH DEVICE OPTIMIZATION
   ========================================= */
/* Disable complex hover animations on touch devices */
@media (hover: none) and (pointer: coarse) {
    /* Disable smooth transitions that cause janky touch experiences */
    .about-img img,
    .portfolio-img-wrap img,
    .carousel-item img,
    .partner-logo img,
    .service-icon,
    .btn-brand-orange,
    .btn-brand-blue,
    .btn-outline-white,
    .portfolio-card,
    .service-card,
    .social-links a,
    .nav-logo,
    .nav-link,
    .accordion-button {
        transition: none;
    }
    
    /* Allow instant active states instead */
    .about-img:active img,
    .portfolio-img-wrap:active img,
    .carousel-item:active img {
        transform: scale(1.02);
    }
    
    .btn-brand-orange:active,
    .btn-brand-blue:active,
    .btn-outline-white:active {
        transform: scale(0.97);
    }
    
    .portfolio-card:active,
    .service-card:active {
        opacity: 0.9;
    }
}

/* =========================================
   SOCIAL SHARE BAR STYLING
   ========================================= */
.social-share-btn {
    font-size: 0.85rem;
    font-weight: 500;
    transition: all 0.3s ease;
    border-width: 1.5px;
    white-space: nowrap;
}

.social-share-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.social-share-btn[data-platform="facebook"]:hover {
    background-color: #1877F2;
    border-color: #1877F2;
    color: white;
}

.social-share-btn[data-platform="twitter"]:hover {
    background-color: #1DA1F2;
    border-color: #1DA1F2;
    color: white;
}

.social-share-btn[data-platform="linkedin"]:hover {
    background-color: #0A66C2;
    border-color: #0A66C2;
    color: white;
}

.social-share-btn[data-platform="whatsapp"]:hover {
    background-color: #25D366;
    border-color: #25D366;
    color: white;
}

.social-share-btn[data-platform="copy"]:hover {
    background-color: var(--brand-blue);
    border-color: var(--brand-blue);
    color: white;
}

/* Mobile optimization for share bar */
@media (max-width: 768px) {
    .social-share-btn {
        font-size: 0.75rem;
        padding: 0.4rem 0.6rem;
    }
    
    .social-share-btn i {
        margin-right: 0.3rem;
    }
}
