/* Reset and Base Styles */
* { margin:0; padding:0; box-sizing:border-box; }
html { scroll-behavior:smooth; }

/* Mobile-first responsive typography */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #2c3e50;
    background: 
        url('assets/images/pexels-kavya-kodiya-515709-3381571.jpg') center center / cover no-repeat fixed,
        linear-gradient(135deg, rgba(245, 247, 250, 0.95) 0%, rgba(255, 255, 255, 0.9) 100%);
    background-attachment: fixed;
    position: relative;
    /* Improve text rendering on mobile */
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

/* Prevent horizontal scrolling on mobile */
html, body {
    overflow-x: hidden;
    width: 100%;
}

/* Ensure proper touch scrolling */
* {
    -webkit-overflow-scrolling: touch;
}

/* (Removed overly broad max-height constraints that caused cut-off content) */

/* Card Icon Styles (restored) */
.card-icon {
    width: 56px;
    height: 56px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 26px;
    font-weight: 600;
    margin: 0 0 0.75rem;
    box-shadow: 0 4px 12px rgba(0,0,0,0.12);
    backdrop-filter: blur(6px);
    background: rgba(255,255,255,0.9); /* neutral so it never blends with card color */
    border: 2px solid transparent;
}

/* (Removed earlier constrained hero-intro block; full-width version defined later) */
/* Variant borders + (for non-card contexts) colored backgrounds */
.icon-purple { border-color:#bdb2ff; background: linear-gradient(135deg,#bdb2ff,#d9d3ff); }
.icon-yellow { border-color:#fdffb6; background: linear-gradient(135deg,#fdffb6,#fff9d1); }
.icon-green  { border-color:#caffbf; background: linear-gradient(135deg,#caffbf,#e6ffd5); }
.icon-red    { border-color:#ffadad; background: linear-gradient(135deg,#ffadad,#ffc5c5); }

/* Accessible darker glyph colors for contrast on white */
.icon-purple i { color:#5a4fb5; }
.icon-yellow i { color:#a08f00; }
.icon-green  i { color:#268c3c; }
.icon-red    i { color:#c44141; }

/* Fallback if no variant class present */
.card-icon i { color:#222; }

/* Slight hover lift for icons within cards */
.card:hover .card-icon { transform: translateY(-3px); transition: transform .25s ease; }

/* Contrasting colored icon backgrounds (rotate palette so icon never matches card) */
/* Section cards (opaque versions) */
.section .card:nth-child(1) .card-icon { background: linear-gradient(135deg,#fdffb6,#fff9d1); border-color:#fdffb6; }
.section .card:nth-child(2) .card-icon { background: linear-gradient(135deg,#caffbf,#e6ffd5); border-color:#caffbf; }
.section .card:nth-child(3) .card-icon { background: linear-gradient(135deg,#ffadad,#ffc5c5); border-color:#ffadad; }
.section .card:nth-child(4) .card-icon { background: linear-gradient(135deg,#bdb2ff,#d7cfff); border-color:#bdb2ff; }
.section .card:nth-child(5) .card-icon { background: linear-gradient(135deg,#fdffb6,#fff9d1); border-color:#fdffb6; }
.section .card:nth-child(6) .card-icon { background: linear-gradient(135deg,#caffbf,#e6ffd5); border-color:#caffbf; }

/* Transparent / generic cards outside .section (still rotate independently) */
.card:nth-child(1) .card-icon { background: linear-gradient(135deg,#ffadad,#ffc5c5); border-color:#ffadad; }
.card:nth-child(2) .card-icon { background: linear-gradient(135deg,#bdb2ff,#d7cfff); border-color:#bdb2ff; }
.card:nth-child(3) .card-icon { background: linear-gradient(135deg,#fdffb6,#fff9d1); border-color:#fdffb6; }
.card:nth-child(4) .card-icon { background: linear-gradient(135deg,#caffbf,#e6ffd5); border-color:#caffbf; }
.card:nth-child(5) .card-icon { background: linear-gradient(135deg,#ffadad,#ffc5c5); border-color:#ffadad; }
.card:nth-child(6) .card-icon { background: linear-gradient(135deg,#bdb2ff,#d7cfff); border-color:#bdb2ff; }

/* Ensure glyphs stay readable over the new colored backgrounds INSIDE rotated card rules */
/* (Leave earlier variant-specific glyph colors intact) */

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(circle at 15% 25%, rgba(181, 238, 203, 0.12) 0%, transparent 50%),
        radial-gradient(circle at 85% 15%, rgba(252, 236, 165, 0.10) 0%, transparent 50%),
        radial-gradient(circle at 75% 85%, rgba(203, 199, 252, 0.11) 0%, transparent 50%),
        radial-gradient(circle at 25% 75%, rgba(254, 200, 167, 0.09) 0%, transparent 50%);
    pointer-events: none;
    z-index: -1;
}

/* Header and Navigation */
header {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    color: #2c3e50;
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
    border-bottom: 1px solid rgba(181, 238, 203, 0.3);
}



/* Professional animation for subtle hover effects */
@keyframes subtleFloat {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-3px); }
    100% { transform: translateY(0px); }
}

nav {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 1.5rem;
    gap: 1rem;
}

/* Hamburger (hidden on desktop) */
.nav-toggle { display: none; }
.hamburger { display: none; cursor: pointer; padding: .5rem; border-radius: 10px; border: 1px solid rgba(181,238,203,0.3); background: rgba(255,255,255,0.8); }
.hamburger span,
.hamburger span::before,
.hamburger span::after { display:block; width: 24px; height: 2px; background:#2c3e50; position: relative; transition: all .3s ease; }
.hamburger span::before { content:""; position:absolute; top:-7px; left:0; }
.hamburger span::after  { content:""; position:absolute; top:7px; left:0; }

/* Checkbox checked -> animate to X */
.nav-toggle:checked + label.hamburger span { background: transparent; }
.nav-toggle:checked + label.hamburger span::before { top:0; transform: rotate(45deg); }
.nav-toggle:checked + label.hamburger span::after  { top:0; transform: rotate(-45deg); }

.logo {
    font-size: 1.6rem;
    font-weight: bold;
    text-decoration: none;
    color: #2c3e50;
    flex-shrink: 0;
    margin-right: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.8rem;
    transition: all 0.3s ease;
    padding: 0.5rem 1rem;
    border-radius: 15px;
    background: rgba(255, 255, 255, 0.8);
    border: 1px solid rgba(181, 238, 203, 0.3);
}

.logo:hover {
    transform: translateY(-2px);
    background: rgba(181, 238, 203, 0.15);
    border-color: rgba(181, 238, 203, 0.5);
    box-shadow: 0 4px 15px rgba(181, 238, 203, 0.2);
}

.logo-image {
    height: 45px;
    width: auto;
    transition: all 0.3s ease;
    border-radius: 50%;
    border: 2px solid rgba(181, 238, 203, 0.3);
}

.logo:hover .logo-image {
    border-color: rgba(181, 238, 203, 0.6);
    box-shadow: 0 3px 10px rgba(181, 238, 203, 0.3);
}

.logo-text {
    font-size: 1.6rem;
    font-weight: bold;
    color: #2c3e50;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 1rem;
    margin: 0;
    padding: 0;
    align-items: center;
    flex: 1;
    justify-content: flex-end;
}

.nav-menu li {
    margin: 0;
}

.nav-menu a {
    color: #2c3e50;
    text-decoration: none;
    padding: 0.6rem 1rem;
    border-radius: 4px;
    transition: all 0.3s ease;
    font-weight: 500;
    display: block;
    white-space: nowrap;
    position: relative;
    font-size: 0.9rem;
    background: rgba(255, 255, 255, 0.6);
    border: 1px solid transparent;
    /* Ensure proper touch targets on mobile */
    min-height: 44px;
    min-width: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.nav-menu a:hover, .nav-menu a.active {
    background: #b5eecb;
    color: #2c3e50;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(181, 238, 203, 0.3);
    border-color: rgba(181, 238, 203, 0.4);
    font-weight: 600;
}

/* Main Content */
main {
    min-height: calc(100vh - 120px);
    padding: 2rem 0;
    position: relative;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    position: relative;
    z-index: 1;
}

/* Hero Section */
.hero {
    background: 
        rgba(255, 255, 255, 0.85),
        url('assets/images/pexels-kavya-kodiya-515709-3381571.jpg') center center / cover no-repeat;
    color: #2c3e50;
    padding: 5rem 0;
    text-align: center;
    position: relative;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(circle at 20% 80%, rgba(181, 238, 203, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(252, 236, 165, 0.12) 0%, transparent 50%),
        radial-gradient(circle at 40% 40%, rgba(203, 199, 252, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 60% 70%, rgba(254, 200, 167, 0.12) 0%, transparent 50%);
    pointer-events: none;
}

.hero h1 {
    font-size: 3.2rem;
    margin-bottom: 1rem;
    font-weight: 700;
    animation: fadeInUp 1s ease-out;
    position: relative;
    z-index: 1;
    color: #2c3e50;
    text-shadow: none;
    text-align: center;
    background: linear-gradient(135deg,#b5eecb,#caffbf);
    padding: 1rem 2rem;
    border-radius: 0;
    display: block;
    width: 100vw;
    position: relative;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
    margin-bottom: 2rem;
    border-top: 1px solid rgba(0,0,0,0.05);
    border-bottom: 1px solid rgba(0,0,0,0.08);
}

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

.hero-intro {
    font-size: 1.25rem;
    line-height: 1.6;
    position: relative;
    z-index: 1;
    color: #2c3e50;
    font-weight: 500;
    text-shadow: none;
    text-align: center;
    background: linear-gradient(135deg,#bdb2ff,#cbc7fc);
    padding: 0.8rem 2rem;
    border-radius: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100vw;
    max-width: none;
    position: relative;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
    margin-top: 0;
    margin-bottom: 1.5rem;
    border-top: 1px solid rgba(0,0,0,0.05);
    border-bottom: 1px solid rgba(0,0,0,0.08);
}

/* (Removed earlier wrapped hero-tagline variant; full-width version below) */
.hero-stat {
    background:rgba(255,255,255,0.85);
    backdrop-filter:blur(6px);
    border:2px solid rgba(203,199,252,0.5);
    border-radius:18px;
    padding:.9rem 1.25rem;
    min-width:160px;
    text-align:left;
    position:relative;
    box-shadow:0 4px 15px rgba(0,0,0,0.12);
    transition:all .3s ease;
}
.hero-stat:before {
    content:"";
    position:absolute;
    inset:0;
    border-radius:16px;
    color: #2c3e50;
    background:linear-gradient(135deg,#bdb2ff,#caffbf,#ffadad,#fdffb6);
    text-shadow: none;
    text-align: center;
    background: linear-gradient(135deg,#fdffb6,#fceca5);
            mask-composite: exclude;
    opacity:.85;
}
.hero-stat:hover { transform:translateY(-6px) scale(1.03); box-shadow:0 10px 25px rgba(0,0,0,0.18); }
.hero-stat h5 { margin:0 0 .25rem; font-size:.85rem; letter-spacing:.5px; text-transform:uppercase; color:#555; font-weight:600; }
.hero-stat .value { font-size:1.55rem; font-weight:700; line-height:1.1; background:linear-gradient(135deg,#6a5acd,#ff7f50); -webkit-background-clip:text; background-clip:text; color:transparent; }
.hero-stat .sub { font-size:.7rem; font-weight:500; letter-spacing:.5px; color:#666; }

@media (max-width:640px){
  .hero-stat { min-width:46%; padding:.8rem 1rem; }
  .hero-stat .value { font-size:1.35rem; }
}

.hero-tagline {
    border-top: 1px solid rgba(0,0,0,0.05);
    border-bottom: 1px solid rgba(0,0,0,0.08);
    font-size: 1.5rem;
    line-height: 1.6;
    position: relative;
    z-index: 1;
    color: #ffffff;
    font-weight: 600;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
    text-align: center;
    background: rgba(0, 0, 0, 0.5);
    padding: 0.8rem 2rem;
    border-radius: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100vw;
    max-width: none;
    position: relative;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
    margin-top: 0;
    margin-bottom: 1.5rem;
}

/* Professional Buttons */
.btn {
    display: inline-block;
    padding: 14px 28px;
    margin: 0.5rem;
    text-decoration: none;
    border-radius: 25px;
    transition: all 0.3s ease;
    font-weight: 600;
    border: none;
    cursor: pointer;
    position: relative;
    font-size: 1rem;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.btn-primary {
    background: #b5eecb;
    color: #2c3e50;
    border: 2px solid #b5eecb;
}

.btn-primary:hover {
    background: #a0e4b8;
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(181, 238, 203, 0.4);
    border-color: #a0e4b8;
}

.btn-secondary {
    background: #cbc7fc;
    color: #2c3e50;
    border: 2px solid #cbc7fc;
}

.btn-secondary:hover {
    background: #b8b3f7;
    color: #2c3e50;
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(203, 199, 252, 0.4);
    border-color: #b8b3f7;
}

/* Additional button color variations */
.btn-tertiary {
    background: #fceca5;
    color: #2c3e50;
    border: 2px solid #fceca5;
}

.btn-tertiary:hover {
    background: #fae492;
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(252, 236, 165, 0.4);
    border-color: #fae492;
}

.btn-quaternary {
    background: #fec8a7;
    color: #2c3e50;
    border: 2px solid #fec8a7;
}

.btn-quaternary:hover {
    background: #fdb794;
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(254, 200, 167, 0.4);
    border-color: #fdb794;
}

.btn-quinary {
    background: #b7daff;
    color: #2c3e50;
    border: 2px solid #b7daff;
}

.btn-quinary:hover {
    background: #a0cdff;
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(183, 218, 255, 0.4);
    border-color: #a0cdff;
}

/* Section Styles */
.section {
    padding: 4rem 0;
    position: relative;
}

.section h2 {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 3rem;
    color: #ffffff;
    position: relative;
    animation: fadeInUp 0.8s ease-out;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
    background: rgba(0, 0, 0, 0.5);
    padding: 1rem 2rem;
    border-radius: 12px;
    display: block;
    width: fit-content;
    margin-left: auto;
    margin-right: auto;
}

/* Override for sections with light backgrounds - use dark text */
.section div[style*="background-color: #f8f9fa"] h2 {
    color: #2c3e50;
    text-shadow: none;
    background: transparent;
    padding: 0;
}

/* Override for sections with white container backgrounds - use simple dark text */
.section .container h2 {
    color: #2c3e50 !important;
    text-shadow: none !important;
    background: transparent !important;
    padding: 0 !important;
    margin-bottom: 3rem !important;
}

/* Override for sections with white backgrounds - use dark text */
.section[style*="background: rgba(255, 255, 255"] h2 {
    color: #2c3e50 !important;
    text-shadow: none !important;
    background: transparent !important;
    padding: 0 !important;
}

.section[style*="background: rgba(255, 255, 255"] h3 {
    color: #2c3e50 !important;
    text-shadow: none !important;
    background: transparent !important;
    padding: 0 !important;
    display: block !important;
}

.section[style*="background: rgba(255, 255, 255"] h4:not(.card h4) {
    color: #2c3e50 !important;
    text-shadow: none !important;
    background: transparent !important;
    padding: 0 !important;
    display: block !important;
}

.section[style*="background: rgba(255, 255, 255"] p:not(.card p) {
    color: #2c3e50 !important;
    text-shadow: none !important;
}

/* Override for verticals section with light background */
.section.verticals h2 {
    color: #2c3e50 !important;
    text-shadow: none !important;
    background: transparent !important;
    padding: 0 !important;
}

.section h2::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: #b5eecb;
    border-radius: 2px;
}

.section h3 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
    color: #ffffff;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
}

/* Override for sections with light backgrounds - use dark text */
.section div[style*="background-color: #f8f9fa"] h3 {
    color: #2c3e50;
    text-shadow: none;
}

/* Section h4 headings that appear over background */
.section h4:not(.card h4) {
    color: #ffffff;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.8);
}

/* Override for sections with light backgrounds - use dark text */
.section div[style*="background-color: #f8f9fa"] h4 {
    color: #2c3e50;
    text-shadow: none;
}

/* Give content sections a subtle background overlay for better readability */
.section .container {
    background: rgba(255, 255, 255, 0.95);
    padding: 3rem 2rem;
    border-radius: 12px;
    backdrop-filter: blur(10px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

/* Override section text to use dark colors when container has background */
.section .container h2,
.section .container h3,
.section .container h4 {
    color: #2c3e50 !important;
    text-shadow: none !important;
}

/* Override only paragraphs and lists that don't have inline color styles */
.section .container p:not([style*="color"]):not(.card p),
.section .container li:not([style*="color"]) {
    color: #2c3e50 !important;
    text-shadow: none !important;
}

/* Ensure white text override doesn't apply to elements in white containers */
.section .container p[style*="color: #666"] {
    color: #666 !important;
    text-shadow: none !important;
    background: transparent !important;
    padding: 0 !important;
    border-radius: 0 !important;
    backdrop-filter: none !important;
}

/* Section paragraphs that appear over background */
.section p:not(.card p) {
    color: #ffffff;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.8);
}

/* Override inline color styles for better visibility over background images */
.section p[style*="color: #666"] {
    color: #ffffff !important;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.8) !important;
    background: rgba(0, 0, 0, 0.4) !important;
    padding: 1rem 1.5rem !important;
    border-radius: 8px !important;
    backdrop-filter: blur(3px) !important;
}

/* Override for paragraphs that already have their own white/light backgrounds */
.section p[style*="background: rgba(255, 255, 255"] {
    color: #2c3e50 !important;
    text-shadow: none !important;
}

/* Override for sections with light backgrounds - use dark text */
.section div[style*="background-color: #f8f9fa"] p {
    color: #2c3e50;
    text-shadow: none;
}

/* Section lists that appear over background */
.section ul:not(.card ul) li {
    color: #ffffff;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.8);
}

/* Override for sections with light backgrounds - use dark text */
.section div[style*="background-color: #f8f9fa"] ul li {
    color: #2c3e50;
    text-shadow: none;
}

/* Grid Layouts */
.grid {
    display: grid;
    gap: 2rem;
    margin-top: 2rem;
}

.grid-3 {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    align-items: stretch;
    align-content: stretch;
}

.grid-2 {
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
}

/* Professional Cards */
.card {
    backdrop-filter: blur(5px);
    padding: 2.5rem;
    border-radius: 15px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    position: relative;
    /* Increased transparency to show background image */
    background: rgba(255, 255, 255, 0.25);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: #2c3e50;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 280px;
    /* Better touch interaction on mobile */
    -webkit-tap-highlight-color: transparent;
    user-select: none;
}

/* Cards that should be opaque (not transparent) over background images */
.section .card {
    background: #bdb2ff; /* Light purple */
    border: 1px solid rgba(189, 178, 255, 0.8);
    color: #2c3e50;
}

/* Add more spacing between manually stacked cards (apply class 'stacked-cards' to parent) */
.stacked-cards > .card + .card {
    margin-top: 2rem;
}

/* Ensure grid cards never inherit unintended top margins */
.grid.grid-3 > .card, .grid.grid-2 > .card {
    margin-top: 0 !important;
}

/* Override general card styles for verticals - ensure bright colors */
.verticals .card {
    background: #bdb2ff; /* Light purple by default */
    border: 1px solid rgba(189, 178, 255, 0.8);
    color: #2c3e50;
}

/* Different colored cards for sections over background */
.section .card:nth-child(1) {
    background: #bdb2ff; /* Light purple */
    border-color: rgba(189, 178, 255, 0.8);
}

.section .card:nth-child(2) {
    background: #fdffb6; /* Light yellow */
    border-color: rgba(253, 255, 182, 0.8);
}

.section .card:nth-child(3) {
    background: #caffbf; /* Light green */
    border-color: rgba(202, 255, 191, 0.8);
}

.section .card:nth-child(4) {
    background: #ffadad; /* Light pink */
    border-color: rgba(255, 173, 173, 0.8);
}

.section .card:nth-child(5) {
    background: #bdb2ff; /* Light purple - cycle back */
    border-color: rgba(189, 178, 255, 0.8);
}

.section .card:nth-child(6) {
    background: #fdffb6; /* Light yellow - cycle back */
    border-color: rgba(253, 255, 182, 0.8);
}

.card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
    background: rgba(255, 255, 255, 0.35);
    border-color: rgba(255, 255, 255, 0.5);
}

/* Hover state for opaque cards over background */
.section .card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
    /* Removed brightness filter to preserve icon colors */
}

.section .card:nth-child(1):hover {
    background: #ffffff !important; /* White on hover */
}

.section .card:nth-child(2):hover {
    background: #ffffff !important; /* White on hover */
}

.section .card:nth-child(3):hover {
    background: #ffffff !important; /* White on hover */
}

.section .card:nth-child(4):hover {
    background: #ffffff !important; /* White on hover */
}

.section .card:nth-child(5):hover {
    background: #ffffff !important; /* White on hover */
}

.section .card:nth-child(6):hover {
    background: #ffffff !important; /* White on hover */
}

/* Card text styling for readability */
.card h3, .card h4 {
    color: #2c3e50;
    font-weight: 600;
    margin-bottom: 1rem;
}

.card p {
    color: #34495e;
    line-height: 1.6;
}

.card strong {
    color: #2c3e50;
}

/* Card content wrapper for flex alignment */
.card .btn {
    margin-top: auto;
    align-self: center;
    text-align: center;
}

/* Ensure perfect alignment for grid-3 cards */
.grid-3 .card {
    height: 100%;
    min-height: 320px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    margin: 0;
    align-self: stretch;
    position: relative;
}

.grid-3 .card h4 {
    margin-bottom: 1rem;
    flex-shrink: 0;
    margin-top: 0;
}

.grid-3 .card p {
    flex-grow: 1;
    margin-bottom: 1.5rem;
    margin-top: 0;
}

.grid-3 .card .btn {
    margin-top: auto;
    flex-shrink: 0;
}

/* Different colored cards (transparent versions for non-section cards) */
.card:nth-child(1) {
    background: rgba(181, 238, 203, 0.3); /* Light green with transparency */
    border-color: rgba(181, 238, 203, 0.4);
}

.card:nth-child(2) {
    background: rgba(252, 236, 165, 0.3); /* Light yellow with transparency */
    border-color: rgba(252, 236, 165, 0.4);
}

.card:nth-child(3) {
    background: rgba(203, 199, 252, 0.3); /* Light purple with transparency */
    border-color: rgba(203, 199, 252, 0.4);
}

.card:nth-child(4) {
    background: rgba(254, 200, 167, 0.3); /* Light orange with transparency */
    border-color: rgba(254, 200, 167, 0.4);
}

.card:nth-child(5) {
    background: rgba(181, 238, 203, 0.3); /* Light green with transparency */
    border-color: rgba(181, 238, 203, 0.4);
}

.card:nth-child(6) {
    background: rgba(252, 236, 165, 0.3); /* Light yellow with transparency */
    border-color: rgba(252, 236, 165, 0.4);
}

.card h4 {
    color: #2c3e50;
    margin-bottom: 1.5rem;
    font-weight: 600;
    font-size: 1.4rem;
}

/* Professional Verticals Section */
.verticals {
    background: rgba(248, 249, 250, 0.9);
    backdrop-filter: blur(3px);
    border-top: 1px solid rgba(181, 238, 203, 0.3);
    border-bottom: 1px solid rgba(181, 238, 203, 0.3);
}

/* Override card hover behavior for verticals section */
.verticals .card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
    filter: none; /* Remove brightness filter */
    /* Keep the same background colors as default state */
}

/* Default bright colors for verticals cards */
.verticals .grid .card:nth-child(1) {
    background: #bdb2ff !important; /* Light purple */
    border-color: rgba(189, 178, 255, 0.8) !important;
}

.verticals .grid .card:nth-child(2) {
    background: #fdffb6 !important; /* Light yellow */
    border-color: rgba(253, 255, 182, 0.8) !important;
}

.verticals .grid .card:nth-child(3) {
    background: #caffbf !important; /* Light green */
    border-color: rgba(202, 255, 191, 0.8) !important;
}

.verticals .grid .card:nth-child(4) {
    background: #ffadad !important; /* Light pink */
    border-color: rgba(255, 173, 173, 0.8) !important;
}

.verticals .grid .card:nth-child(5) {
    background: #bdb2ff !important; /* Light purple */
    border-color: rgba(189, 178, 255, 0.8) !important;
}

/* Hover states for verticals cards (white background on hover) */
.verticals .grid .card:nth-child(1):hover {
    background: #ffffff !important; /* White on hover */
    border-color: rgba(189, 178, 255, 0.8) !important;
}

.verticals .grid .card:nth-child(2):hover {
    background: #ffffff !important; /* White on hover */
    border-color: rgba(253, 255, 182, 0.8) !important;
}

.verticals .grid .card:nth-child(3):hover {
    background: #ffffff !important; /* White on hover */
    border-color: rgba(202, 255, 191, 0.8) !important;
}

.verticals .grid .card:nth-child(4):hover {
    background: #ffffff !important; /* White on hover */
    border-color: rgba(255, 173, 173, 0.8) !important;
}

.verticals .grid .card:nth-child(5):hover {
    background: #ffffff !important; /* White on hover */
    border-color: rgba(189, 178, 255, 0.8) !important;
}

.vertical-item {
    text-align: center;
    padding: 1.5rem;
}


/* Professional Footer */
footer {
    background: rgba(248, 249, 250, 0.95);
    backdrop-filter: blur(5px);
    color: #2c3e50;
    padding: 4rem 0 1rem;
    border-top: 1px solid rgba(181, 238, 203, 0.3);
    position: relative;
}



.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.footer-section h4 {
    margin-bottom: 1.5rem;
    color: #2c3e50;
    font-weight: 700;
    font-size: 1.3rem;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.8rem;
}

.footer-section ul li a {
    color: #34495e;
    text-decoration: none;
    transition: all 0.4s ease;
    padding: 0.5rem 1rem;
    display: inline-block;
    border-left: 4px solid transparent;
    border-radius: 8px;
    font-weight: 500;
}

.footer-section ul li a:hover {
    color: #2c3e50;
    border-left-color: rgba(181, 238, 203, 0.6);
    transform: translateX(5px);
    background: rgba(181, 238, 203, 0.15);
    font-weight: 600;
}

/* Enhanced social media links styling */
.footer-section:last-child ul li a {
    color: #2c3e50;
    font-weight: 700;
    padding: 1rem 1.5rem;
    margin: 0.5rem 0;
    border-radius: 25px;
    background: #fceca5;
    border: 2px solid rgba(203, 199, 252, 0.5);
    display: inline-block;
    width: 100%;
    text-align: center;
    transition: all 0.4s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.footer-section:last-child ul li a:hover {
    background: #fec8a7;
    border-color: #fec8a7;
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 8px 20px rgba(203, 199, 252, 0.4);
    color: #2c3e50;
}

/* Social media brand icon colors (used in contact page social buttons) */
.brand-facebook i { color:#1877F2; }
.brand-twitter i { color:#1DA1F2; }
.brand-linkedin i { color:#0A66C2; }
.brand-instagram i { color:#E4405F; }
.brand-youtube i { color:#FF0000; }

/* Provide subtle hover emphasis without changing official brand hue */
.social-btn:hover i { filter: brightness(1.1); }

/* Impact metric number complementary colors */
.impact-metric { font-size:3rem; font-weight:700; margin-bottom:1rem; }
.impact-blue { color:#1f5f85; }    /* complements light purple card */
.impact-crimson { color:#a83232; }  /* complements light red/pink card */
.impact-forest { color:#1d7a3d; }   /* complements light green card */
.impact-amber { color:#b06d00; }    /* complements light yellow card */
.impact-violet { color:#6a2c91; }   /* complements lighter lavender/purple */
.impact-teal { color:#138272; }     /* complements aqua/green variant */

/* Slight text-shadow for readability on very light backgrounds */
.impact-metric { text-shadow: 0 1px 2px rgba(0,0,0,0.08); }

/* Leading emoji styling for paragraphs without card icons */
.emoji-lead { display:inline-flex; align-items:center; gap:.5rem; }
.emoji-lead .emoji { font-size:1.9rem; line-height:1; filter: drop-shadow(0 2px 4px rgba(0,0,0,0.15)); }
.emoji-theme-earth { background:linear-gradient(135deg,#bdb2ff,#caffbf); -webkit-background-clip:text; background-clip:text; color:transparent; }

/* Fallback for systems not rendering gradient clip */
@supports not (-webkit-background-clip:text) {
    .emoji-theme-earth { color:#6a5acd; background:none; }
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    margin-top: 2rem;
    border-top: 2px solid rgba(203, 199, 252, 0.4);
    color: #34495e;
    font-weight: 500;
}

/* Utility: responsive inline subscribe row */
.subscribe-inline {
    display: flex;
    gap: 0.75rem;
    align-items: center;
    flex-wrap: wrap;
}
.subscribe-inline input[type="email"],
.subscribe-inline input[type="text"],
.subscribe-inline input[type="tel"] {
    flex: 1 1 220px;
    min-width: 0; /* allow shrink to avoid overflow */
}

/* Utility: social buttons row wrap */
.social-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

@media (max-width: 480px) {
  .subscribe-inline {
      gap: 0.5rem;
  }
  .subscribe-inline .btn {
      width: 100%;
  }
}

/* Responsive Design */
@media (max-width: 1200px) {
    nav {
        max-width: 100%;
        padding: 0 1rem;
    }
    
    .nav-menu {
        gap: 0.8rem;
    }
    
    .nav-menu a {
        padding: 0.4rem 0.7rem;
        font-size: 0.85rem;
        border-radius: 3px;
    }
    
    .hero h1, .hero-tagline, .hero-intro {
        padding: 1rem 1.5rem;
    }
    
    .hero h1 {
        font-size: 2.8rem;
    }
    
    .grid-2 {
        grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    }
    
    .grid-3 {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    }
}

@media (max-width: 992px) {
    nav {
        padding: 0 1rem;
    }
    
    .nav-menu {
        gap: 0.6rem;
    }
    
    .nav-menu a {
        padding: 0.3rem 0.5rem;
        font-size: 0.8rem;
        border-radius: 3px;
    }
    
    .logo {
        font-size: 1.5rem;
    }
    
    .hero h1 {
        font-size: 2.4rem;
    }
    
    .hero-tagline {
        font-size: 1.3rem;
    }
    
    .hero-intro {
        font-size: 1.1rem;
    }
    
    .grid-2 {
        grid-template-columns: 1fr;
    }
    
    .grid-3 {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    }
    
    .section {
        padding: 3rem 0;
    }
    
    .section .container {
        padding: 2rem 1.5rem;
    }
    
    .card {
        padding: 2rem;
        min-height: 240px;
    }
}

@media (max-width: 768px) {
    /* Let header scroll away on mobile so menu doesn't block content */
    header { position: static; }
    
    nav {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
        padding: 1rem;
    }
    
    .logo {
        font-size: 1.5rem;
        margin-bottom: 0.5rem;
        margin-right: 0;
        flex-direction: column;
        gap: 0.5rem;
        flex-shrink: 0; /* Prevent logo from shrinking */
    }
    
    .logo-image {
        height: 35px;
    }
    
    .logo-text {
        font-size: 1.4rem;
    }
    
    /* Show hamburger and collapse menu by default */
    .hamburger { display: inline-flex; align-items:center; justify-content:center; }
    .nav-menu { display: none; flex-direction: column; gap: .5rem; width: 100%; }
    .nav-toggle:checked ~ .nav-menu { display: flex; }
    
    .nav-menu a {
        padding: 0.75rem 1rem;
        border-radius: 25px;
        width: 100%;
        text-align: center;
    }
    
    .hero {
        padding: 3rem 0;
    }
    
    .hero h1 {
        font-size: 2rem;
        padding: 1rem;
    }
    
    .hero-tagline {
        font-size: 1.2rem;
        padding: 0.8rem;
    }
    
    .hero-intro {
        font-size: 1rem;
        padding: 0.8rem;
    }
    
    .container {
        padding: 0 1rem;
    }
    
    .section h2 {
        font-size: 2rem;
        padding: 0.8rem 1.5rem;
    }
    
    .grid {
        gap: 1.5rem;
    }
    
    .grid-2, .grid-3 {
        grid-template-columns: 1fr;
    }
    
    .card {
        padding: 1.8rem;
        min-height: 200px;
    }
    
    .card-icon {
        width: 48px;
        height: 48px;
        font-size: 22px;
    }
    
    .btn {
        border-radius: 20px;
        padding: 12px 24px;
        font-size: 0.9rem;
        width: auto; /* Avoid forcing full-width; prevents overflow in inline rows */
        margin: 0.3rem 0;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        text-align: center;
    }
    
    /* Mobile-specific Who We Are layout */
    .section .container > div[style*="display:flex"] {
        margin-bottom: 1.5rem !important;
    }
    
    .section .container > div[style*="display:flex"] .card {
        max-width: 100% !important;
        padding: 1.5rem !important;
    }
}

@media (max-width: 480px) {
    nav {
        padding: 0 0.5rem;
        gap: 0.5rem; /* Reduce gap to fit more items */
    }
    
    .logo {
        font-size: 1.3rem;
        flex-direction: row;
        gap: 0.4rem;
        margin-bottom: 0.3rem; /* Reduce spacing */
    }
    
    .logo-image {
        height: 30px;
    }
    
    .logo-text {
        font-size: 1.2rem;
    }
    
    .nav-menu {
        gap: 0.3rem; /* Tighter spacing */
    }
    
    .nav-menu a {
        font-size: 0.9rem;
        padding: 0.6rem 0.8rem;
        /* Ensure touch targets remain accessible but compact */
        min-height: 40px;
    }
    
    .hero {
        padding: 2rem 0;
    }
    
    .hero h1 {
        font-size: 1.6rem;
        padding: 0.8rem;
        line-height: 1.3;
    }
    
    .hero-tagline {
        font-size: 1rem;
        padding: 0.6rem;
    }
    
    .hero-intro {
        font-size: 0.9rem;
        padding: 0.6rem;
        line-height: 1.5;
    }
    
    .container {
        padding: 0 0.8rem;
    }
    
    .section {
        padding: 2rem 0;
    }
    
    .section .container {
        padding: 1.5rem 1rem;
    }
    
    .section h2 {
        font-size: 1.6rem;
        padding: 0.6rem 1rem;
        margin-bottom: 2rem;
    }
    
    .section h3 {
        font-size: 1.4rem;
    }
    
    .section h4 {
        font-size: 1.2rem;
    }
    
    .card {
        padding: 1.5rem;
        min-height: 180px;
    }
    
    .card h3 {
        font-size: 1.3rem;
    }
    
    .card h4 {
        font-size: 1.2rem;
        margin-bottom: 1rem;
    }
    
    .card p {
        font-size: 0.95rem;
        line-height: 1.6;
    }
    
    .card-icon {
        width: 42px;
        height: 42px;
        font-size: 20px;
        margin-bottom: 1rem;
    }
    
    .btn {
        padding: 10px 20px;
        font-size: 0.85rem;
        border-radius: 18px;
        min-height: 44px; /* Touch target size */
        min-width: 120px;
    }
    
    .hero-actions {
        display: flex;
        flex-direction: column;
        gap: 0.8rem;
        align-items: center;
        margin-top: 1.5rem;
    }
    
    .hero-actions .btn {
        width: 100%;
        max-width: 280px;
        text-align: center;
    }
    
    .footer-section h4 {
        font-size: 1.2rem;
        margin-bottom: 1rem;
    }
    
    .footer-section ul li a {
        padding: 0.8rem 1rem;
        font-size: 0.9rem;
    }
    
    /* Extra small mobile optimization for Our Name card */
    .section .container > div[style*="display:flex"] .card {
        padding: 1.2rem !important;
    }
    
    .section .container > div[style*="display:flex"] .card h4 {
        font-size: 1.1rem;
    }
    
    .section .container > div[style*="display:flex"] .card p {
        font-size: 0.9rem;
    }
}