/* ========================================
   KRMAAZHA UMBRELLA BRAND STYLES
   ======================================== */

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&display=swap');

:root {
    --color-bg-dark: #0b0f19;
    --color-surface-dark: #121827;
    --color-surface-card: #1a2336;
    --color-tech-cyan: #00f2fe;
    --color-tech-blue: #4facfe;
    --color-edtech-purple: #a855f7;
    --color-edtech-pink: #ec4899;
    --color-creative-amber: #f59e0b;
    --color-creative-rose: #f43f5e;
}

body {
    font-family: 'Plus Jakarta Sans', sans-serif !important;
}

/* Navigation Styling & Logo */
.nav {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    z-index: 1000 !important;
    background: rgba(8, 18, 16, 0.72) !important;
    backdrop-filter: blur(20px) !important;
    -webkit-backdrop-filter: blur(20px) !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25) !important;
}

.nav.scrolled {
    background: rgba(8, 18, 16, 0.95) !important;
    border-bottom-color: rgba(52, 211, 153, 0.25) !important;
    box-shadow: 0 6px 25px rgba(0, 0, 0, 0.45) !important;
}

.nav-link {
    color: #e2e8f0 !important;
    font-weight: 500;
}

.nav-link:hover {
    color: #34d399 !important;
}

.brand-logo-img {
    width: 38px;
    height: 38px;
    object-fit: cover;
    border-radius: 8px;
    margin-right: 10px;
    border: 1px solid rgba(255, 255, 255, 0.25);
    box-shadow: 0 2px 10px rgba(0, 242, 254, 0.35);
    vertical-align: middle;
    display: inline-block;
}

.logo-text {
    font-size: 1.25rem;
    font-weight: 800;
    letter-spacing: 0.05em;
    color: #ffffff !important;
    vertical-align: middle;
    text-shadow: 0 1px 10px rgba(255, 255, 255, 0.25);
}

.logo-badge {
    font-size: 0.65rem;
    font-weight: 800;
    letter-spacing: 0.15em;
    background: linear-gradient(135deg, #00f2fe, #4facfe);
    color: #0b0f19;
    padding: 2px 6px;
    border-radius: 4px;
    margin-left: 6px;
    vertical-align: middle;
}

.btn-nav-cta {
    background: linear-gradient(135deg, #2d6a4f, #52b788);
    color: white !important;
    padding: 0.6rem 1.2rem;
    font-size: 0.875rem;
    border-radius: 50px;
    font-weight: 600;
    transition: var(--transition);
}

.btn-nav-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(82, 183, 136, 0.4);
}

/* Hero Umbrella Extensions with Morning Nature & Moving Clouds */
.hero-umbrella {
    background: #090d16 !important;
    color: #ffffff !important;
    position: relative;
    padding-top: 140px;
    padding-bottom: 90px;
    overflow: hidden;
    text-align: center;
}

.hero-nature-backdrop {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    overflow: hidden;
    pointer-events: none;
}

.nature-landscape-image {
    position: absolute;
    top: -5%;
    left: -5%;
    width: 110%;
    height: 110%;
    background-image: url('../images/morning-nature-hero.jpg');
    background-size: cover;
    background-position: center 30%;
    opacity: 0.65;
    filter: saturate(1.15) contrast(1.1);
    animation: natureSlowPan 40s ease-in-out infinite alternate;
    will-change: transform;
}

@keyframes natureSlowPan {
    0% { transform: scale(1.0) translateY(0); }
    100% { transform: scale(1.08) translateY(-18px); }
}

/* Morning Sunbeam & Dawn Golden Atmosphere */
.nature-morning-glow {
    position: absolute;
    top: 20%;
    left: 55%;
    width: 750px;
    height: 750px;
    transform: translate(-50%, -50%);
    background: radial-gradient(circle, rgba(254, 215, 170, 0.45) 0%, rgba(245, 158, 11, 0.22) 30%, rgba(168, 85, 247, 0.12) 55%, transparent 75%);
    pointer-events: none;
    filter: blur(40px);
    animation: morningPulse 12s ease-in-out infinite alternate;
}

@keyframes morningPulse {
    0% { opacity: 0.7; transform: translate(-50%, -50%) scale(0.95); }
    100% { opacity: 1; transform: translate(-50%, -50%) scale(1.12); }
}

/* Moving Cloud Layers */
.nature-cloud-layer {
    position: absolute;
    top: 0;
    left: 0;
    width: 300%;
    height: 100%;
    background-image: url('../images/morning-clouds-mist.jpg');
    background-repeat: repeat-x;
    background-size: contain;
    pointer-events: none;
    mix-blend-mode: screen;
}

.cloud-layer-1 {
    opacity: 0.4;
    animation: cloudDriftSlow 80s linear infinite;
    top: 5%;
}

.cloud-layer-2 {
    opacity: 0.3;
    animation: cloudDriftFast 50s linear infinite;
    top: 18%;
    filter: hue-rotate(15deg) brightness(1.15);
}

@keyframes cloudDriftSlow {
    0% { transform: translateX(0); }
    100% { transform: translateX(-33.333%); }
}

@keyframes cloudDriftFast {
    0% { transform: translateX(-15%); }
    100% { transform: translateX(-48.333%); }
}

/* Mist Gradient Veil ensuring crisp text readability and smooth transition to dark theme */
.nature-mist-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        180deg,
        rgba(8, 12, 22, 0.5) 0%,
        rgba(11, 15, 25, 0.6) 45%,
        rgba(13, 19, 34, 0.92) 85%,
        #0d1322 100%
    );
    pointer-events: none;
}

.hero-container {
    position: relative;
    z-index: 2;
    text-align: center;
}

.hero-header-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 16px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    color: #e2e8f0;
    margin: 0 auto 1.5rem auto;
}

.pulse-dot {
    width: 8px;
    height: 8px;
    background-color: #00f2fe;
    border-radius: 50%;
    box-shadow: 0 0 10px #00f2fe;
    animation: pulseGlow 2s infinite;
}

@keyframes pulseGlow {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.4); opacity: 0.5; }
}

.hero-main-title {
    font-size: clamp(2.2rem, 5vw, 4rem);
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -0.02em;
    max-width: 900px;
    margin: 0 auto 1.5rem;
    color: #ffffff !important;
    text-align: center;
}

.gradient-text-tech {
    background: linear-gradient(135deg, #00f2fe, #4facfe);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.gradient-text-edtech {
    background: linear-gradient(135deg, #c084fc, #f472b6);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.gradient-text-creative {
    background: linear-gradient(135deg, #fbbf24, #f43f5e);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-subtitle {
    font-size: 1.15rem;
    color: #94a3b8 !important;
    max-width: 760px;
    margin: 0 auto 2.5rem;
    line-height: 1.7;
}

.hero-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.hero-actions .btn-primary {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%) !important;
    color: #ffffff !important;
    border: none !important;
    font-weight: 600;
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.3);
}

.hero-actions .btn-primary span,
.hero-actions .btn-primary * {
    color: #ffffff !important;
}

.hero-actions .btn-secondary {
    background: rgba(255, 255, 255, 0.08) !important;
    color: #ffffff !important;
    border: 1px solid rgba(255, 255, 255, 0.3) !important;
    font-weight: 600;
    backdrop-filter: blur(8px);
}

.hero-actions .btn-secondary span,
.hero-actions .btn-secondary * {
    color: #ffffff !important;
}

.hero-actions .btn-secondary:hover {
    background: rgba(255, 255, 255, 0.2) !important;
    border-color: #ffffff !important;
    color: #ffffff !important;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(255, 255, 255, 0.2);
}

.hero-pillars-preview {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-top: 3.5rem;
    text-align: left;
}

.pillar-mini-card {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 1.25rem 1.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    backdrop-filter: blur(10px);
}

.pillar-mini-card:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.08);
}

.pillar-tech:hover { border-color: #00f2fe; box-shadow: 0 10px 25px rgba(0, 242, 254, 0.2); }
.pillar-edtech:hover { border-color: #c084fc; box-shadow: 0 10px 25px rgba(192, 132, 252, 0.2); }
.pillar-creative:hover { border-color: #fbbf24; box-shadow: 0 10px 25px rgba(251, 191, 36, 0.2); }

.pillar-icon {
    font-size: 2rem;
    flex-shrink: 0;
}

.pillar-info h3 {
    font-size: 1.05rem;
    font-weight: 700;
    color: #ffffff !important;
    margin-bottom: 0.25rem;
}

.pillar-info p {
    font-size: 0.825rem;
    color: #94a3b8 !important;
    line-height: 1.4;
}

.pillar-arrow {
    margin-left: auto;
    font-size: 1.2rem;
    color: #64748b;
    transition: transform 0.3s ease;
}

.pillar-mini-card:hover .pillar-arrow {
    transform: translateX(4px);
    color: #ffffff;
}

.credentials-bar {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1.5rem;
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.cred-item {
    font-size: 0.875rem;
    font-weight: 600;
    color: #cbd5e1;
    background: rgba(255, 255, 255, 0.05);
    padding: 0.4rem 1rem;
    border-radius: 50px;
}

/* Section Common Styling */
.section-header {
    text-align: center !important;
    max-width: 850px;
    margin: 0 auto 3rem auto;
}

.section-header.text-center {
    text-align: center !important;
}

.section-badge {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 0.15em;
    color: #2d6a4f;
    background: rgba(45, 106, 79, 0.1);
    padding: 0.3rem 0.9rem;
    border-radius: 50px;
    margin: 0 auto 1rem auto;
    text-align: center;
}

.section-title {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 700;
    color: #0f172a;
    line-height: 1.25;
    margin: 0 auto 1rem auto;
    text-align: center;
}

.section-description {
    font-size: 1.05rem;
    color: #64748b;
    line-height: 1.7;
    max-width: 680px;
    margin: 0 auto;
    text-align: center;
}

.text-center { text-align: center !important; }

/* Divisions Section */
.divisions-section {
    padding: 100px 0;
    background: #faf9f7;
}

.divisions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.division-card {
    background: #ffffff;
    border: 1px solid #e8e4dc;
    border-radius: 20px;
    padding: 2.25rem;
    display: flex;
    flex-direction: column;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.04);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.division-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 6px;
}

.div-tech::before { background: linear-gradient(90deg, #00f2fe, #4facfe); }
.div-edtech::before { background: linear-gradient(90deg, #a855f7, #ec4899); }
.div-creative::before { background: linear-gradient(90deg, #f59e0b, #f43f5e); }

.division-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
}

.div-badge-wrap {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.div-icon { font-size: 1.75rem; }

.div-tag {
    font-size: 0.7rem;
    font-weight: 800;
    letter-spacing: 0.1em;
    color: #64748b;
    background: #f1f5f9;
    padding: 0.2rem 0.6rem;
    border-radius: 4px;
}

.division-card h3 {
    font-size: 1.4rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 0.5rem;
}

.div-subtitle {
    font-size: 0.95rem;
    color: #64748b;
    margin-bottom: 1.5rem;
    line-height: 1.5;
}

.div-service-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.875rem;
    margin-bottom: 1.75rem;
}

.div-service-list li {
    font-size: 0.925rem;
    color: #334155;
    line-height: 1.5;
}

.div-service-list .check {
    color: #2d6a4f;
    font-weight: bold;
    margin-right: 6px;
}

.div-tech-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: auto;
    padding-top: 1.25rem;
    border-top: 1px solid #f1f5f9;
}

.div-tech-tags span {
    font-size: 0.75rem;
    font-weight: 600;
    background: #f8fafc;
    color: #475569;
    padding: 0.25rem 0.65rem;
    border-radius: 6px;
    border: 1px solid #e2e8f0;
}

.division-footer {
    margin-top: 1.5rem;
}

.btn-outline {
    display: inline-block;
    width: 100%;
    text-align: center;
    padding: 0.8rem 1.2rem;
    border: 1px solid rgba(255, 255, 255, 0.25) !important;
    border-radius: 12px;
    font-weight: 700;
    font-size: 0.925rem;
    color: #ffffff !important;
    background: rgba(255, 255, 255, 0.06) !important;
    transition: all 0.25s ease;
    text-decoration: none;
    position: relative;
    z-index: 10;
}

.div-tech .btn-outline {
    color: #00f2fe !important;
    border-color: rgba(0, 242, 254, 0.4) !important;
    background: rgba(0, 242, 254, 0.08) !important;
}

.div-tech .btn-outline:hover {
    background: linear-gradient(135deg, #00f2fe, #0284c7) !important;
    color: #0b0f19 !important;
    border-color: #00f2fe !important;
    box-shadow: 0 4px 18px rgba(0, 242, 254, 0.35) !important;
    transform: translateY(-2px);
}

.div-edtech .btn-outline {
    color: #c084fc !important;
    border-color: rgba(168, 85, 247, 0.4) !important;
    background: rgba(168, 85, 247, 0.08) !important;
}

.div-edtech .btn-outline:hover {
    background: linear-gradient(135deg, #a855f7, #7e22ce) !important;
    color: #ffffff !important;
    border-color: #a855f7 !important;
    box-shadow: 0 4px 18px rgba(168, 85, 247, 0.35) !important;
    transform: translateY(-2px);
}

.div-creative .btn-outline {
    color: #fbbf24 !important;
    border-color: rgba(245, 158, 11, 0.4) !important;
    background: rgba(245, 158, 11, 0.08) !important;
}

.div-creative .btn-outline:hover {
    background: linear-gradient(135deg, #f59e0b, #d97706) !important;
    color: #0b0f19 !important;
    border-color: #f59e0b !important;
    box-shadow: 0 4px 18px rgba(245, 158, 11, 0.35) !important;
    transform: translateY(-2px);
}

/* 10 Services Matrix */
.services-matrix-section {
    padding: 100px 0;
    background: #ffffff;
}

.service-filters {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.75rem;
    margin-top: 2rem;
}

.filter-btn {
    padding: 0.6rem 1.4rem;
    font-size: 0.9rem;
    font-weight: 600;
    border-radius: 50px;
    border: 1px solid #e2e8f0;
    background: #f8fafc;
    color: #475569;
    cursor: pointer;
    transition: all 0.2s ease;
}

.filter-btn:hover, .filter-btn.active {
    background: #2d6a4f;
    color: #ffffff;
    border-color: #2d6a4f;
    box-shadow: 0 4px 12px rgba(45, 106, 79, 0.25);
}

.services-grid-10 {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 1.75rem;
    margin-top: 3rem;
}

.service-matrix-card {
    background: #faf9f7;
    border: 1px solid #e8e4dc;
    border-radius: 16px;
    padding: 1.75rem;
    display: flex;
    flex-direction: column;
    transition: all 0.3s ease;
}

.service-matrix-card.hide {
    display: none !important;
}

.service-matrix-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 25px rgba(0, 0, 0, 0.06);
    border-color: #2d6a4f;
}

.card-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.25rem;
}

.s-icon { font-size: 2.2rem; }

.s-cat-badge {
    font-size: 0.7rem;
    font-weight: 700;
    padding: 0.25rem 0.65rem;
    border-radius: 50px;
    text-transform: uppercase;
}

.tech-badge { background: rgba(0, 242, 254, 0.15); color: #00f2fe; border: 1px solid rgba(0, 242, 254, 0.3); }
.edtech-badge { background: rgba(168, 85, 247, 0.15); color: #c084fc; border: 1px solid rgba(168, 85, 247, 0.3); }
.creative-badge { background: rgba(245, 158, 11, 0.15); color: #fbbf24; border: 1px solid rgba(245, 158, 11, 0.3); }

.service-matrix-card h3 {
    font-size: 1.25rem;
    font-weight: 700;
    color: #ffffff !important;
    margin-bottom: 0.75rem;
}

.service-matrix-card p {
    font-size: 0.925rem;
    color: #cbd5e1 !important;
    line-height: 1.65;
    margin-bottom: 1.25rem;
}

.card-deliverables {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    margin-top: auto;
    margin-bottom: 1.25rem;
}

.card-deliverables span {
    font-size: 0.78rem;
    background: rgba(255, 255, 255, 0.08) !important;
    color: #f1f5f9 !important;
    padding: 0.25rem 0.6rem;
    border-radius: 6px;
    border: 1px solid rgba(255, 255, 255, 0.16) !important;
}

.service-inquire-btn {
    font-size: 0.9rem;
    font-weight: 700;
    color: #00f2fe !important;
    text-decoration: none;
    transition: transform 0.2s ease, text-shadow 0.2s ease;
    display: inline-block;
}

.service-inquire-btn:hover {
    transform: translateX(4px);
    color: #38bdf8 !important;
    text-shadow: 0 0 10px rgba(0, 242, 254, 0.5);
}

/* Bootcamp Highlight Section */
.bootcamp-highlight-section {
    padding: 90px 0;
    background: #0f172a;
    color: #ffffff;
}

.bootcamp-box {
    background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 24px;
    padding: 3.5rem 3rem;
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 3rem;
    align-items: center;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.3);
}

@media (max-width: 900px) {
    .bootcamp-box { grid-template-columns: 1fr; padding: 2.5rem 1.5rem; }
}

.bc-badge {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 800;
    color: #f59e0b;
    letter-spacing: 0.1em;
    margin-bottom: 1rem;
}

.bootcamp-content h2 {
    font-size: 2.2rem;
    font-weight: 800;
    margin-bottom: 1rem;
}

.bc-lead {
    font-size: 1.05rem;
    color: #94a3b8;
    line-height: 1.6;
    margin-bottom: 2rem;
}

.bc-features-grid {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    margin-bottom: 2.5rem;
}

.bc-feat {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.feat-icon { font-size: 1.5rem; }

.bc-feat h4 {
    font-size: 1rem;
    font-weight: 700;
    color: #f8fafc;
    margin-bottom: 0.25rem;
}

.bc-feat p {
    font-size: 0.875rem;
    color: #94a3b8;
}

.bc-cta-group {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.bc-cta-group .btn-primary {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%) !important;
    color: #ffffff !important;
    border: none !important;
    font-weight: 600;
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.3);
}

.bc-cta-group .btn-primary span,
.bc-cta-group .btn-primary * {
    color: #ffffff !important;
}

.bc-cta-group .btn-secondary {
    background: rgba(255, 255, 255, 0.08) !important;
    color: #ffffff !important;
    border: 1px solid rgba(255, 255, 255, 0.3) !important;
    font-weight: 600;
    backdrop-filter: blur(8px);
}

.bc-cta-group .btn-secondary span,
.bc-cta-group .btn-secondary * {
    color: #ffffff !important;
}

.bc-cta-group .btn-secondary:hover {
    background: rgba(255, 255, 255, 0.2) !important;
    border-color: #ffffff !important;
    color: #ffffff !important;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(255, 255, 255, 0.2);
}

.bc-card-preview {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 20px;
    padding: 2rem;
    backdrop-filter: blur(10px);
}

.bc-card-header {
    display: flex;
    justify-content: space-between;
    font-size: 0.8rem;
    color: #94a3b8;
    margin-bottom: 1rem;
}

.status-live { color: #10b981; font-weight: 700; }

.bc-card-preview h3 {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
}

.bc-metric-row {
    display: flex;
    gap: 2rem;
    margin-bottom: 1.5rem;
}

.bc-metric .num {
    display: block;
    font-size: 1.75rem;
    font-weight: 800;
    color: #38bdf8;
}

.bc-metric .lbl {
    font-size: 0.75rem;
    color: #94a3b8;
}

.bc-tags {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.bc-tags span {
    font-size: 0.75rem;
    background: rgba(255, 255, 255, 0.1);
    padding: 0.3rem 0.7rem;
    border-radius: 50px;
}

/* Leadership Section */
.leadership-section {
    padding: 100px 0;
    background: #faf9f7;
}

.leadership-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3.5rem;
}

.leader-card {
    background: #ffffff;
    border: 1px solid #e8e4dc;
    border-radius: 20px;
    padding: 2.25rem;
    display: flex;
    flex-direction: column;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.04);
}

.leader-avatar-wrap {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.5rem;
}

.avatar-circle {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 1.25rem;
    color: #ffffff;
    overflow: hidden;
    position: relative;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.12);
    border: 3px solid #ffffff;
}

.leader-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    display: block;
}

.avatar-kumail { background: linear-gradient(135deg, #0284c7, #0369a1); }
.avatar-marium { background: linear-gradient(135deg, #7e22ce, #a855f7); }
.avatar-creative { background: linear-gradient(135deg, #d97706, #f59e0b); }
.avatar-alizain { background: linear-gradient(135deg, #10b981, #06b6d4); }
.avatar-alizain .leader-img { object-position: center 25%; }

.leader-role-badge {
    font-size: 0.75rem;
    font-weight: 700;
    color: #f1f5f9 !important;
    background: rgba(255, 255, 255, 0.12) !important;
    padding: 0.3rem 0.75rem;
    border-radius: 50px;
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.leader-card h3 {
    font-size: 1.35rem;
    font-weight: 700;
    color: #ffffff !important;
    margin-bottom: 0.25rem;
}

.leader-title {
    font-size: 0.875rem;
    font-weight: 600;
    color: #00f2fe !important;
    margin-bottom: 1rem;
}

.leader-bio {
    font-size: 0.925rem;
    color: #e2e8f0 !important;
    line-height: 1.65;
    margin-bottom: 1.25rem;
}

.leader-highlights {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    font-size: 0.85rem;
    font-weight: 600;
    color: #f8fafc !important;
    margin-bottom: 1.5rem;
}

.leader-socials {
    margin-top: auto;
    display: flex;
    gap: 1rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1) !important;
}

.leader-socials a {
    font-size: 0.85rem;
    font-weight: 700;
    color: #00f2fe !important;
}

.leader-socials a:hover {
    color: #38bdf8 !important;
    text-shadow: 0 0 8px rgba(0, 242, 254, 0.5);
    text-decoration: none;
}

/* Work Section */
.work-section { padding: 100px 0; background: #ffffff; }

.work-grid-umbrella {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
    margin-top: 3.5rem;
}

.case-card {
    background: #faf9f7;
    border: 1px solid #e8e4dc;
    border-radius: 20px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.case-header {
    padding: 2rem;
    color: #ffffff;
}

.bg-gradient-ai { background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%); }
.bg-gradient-edtech { background: linear-gradient(135deg, #2d6a4f 0%, #40916c 100%); }
.bg-gradient-pub { background: linear-gradient(135deg, #7e22ce 0%, #581c87 100%); }
.bg-gradient-fullstack { background: linear-gradient(135deg, #059669 0%, #0d9488 100%); }

.case-tag {
    font-size: 0.7rem;
    font-weight: 800;
    letter-spacing: 0.1em;
    opacity: 0.85;
    margin-bottom: 0.5rem;
    display: block;
}

.case-header h3 {
    font-size: 1.3rem;
    font-weight: 700;
    line-height: 1.3;
}

.case-body {
    padding: 1.75rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.case-body p {
    font-size: 0.95rem;
    color: #cbd5e1 !important;
    line-height: 1.65;
    margin-bottom: 1.25rem;
}

.case-review-quote {
    font-style: italic;
    font-size: 0.85rem;
    color: #4ade80 !important;
    background: rgba(34, 197, 94, 0.12) !important;
    padding: 0.75rem 1rem;
    border-radius: 8px;
    border-left: 3px solid #22c55e !important;
    margin-bottom: 1.25rem;
}

.case-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.case-meta span {
    font-size: 0.78rem;
    background: rgba(255, 255, 255, 0.08) !important;
    color: #f1f5f9 !important;
    padding: 0.25rem 0.6rem;
    border-radius: 6px;
    border: 1px solid rgba(255, 255, 255, 0.16) !important;
}

.case-link {
    margin-top: auto;
    font-weight: 700;
    color: #00f2fe !important;
    font-size: 0.9rem;
    text-decoration: none;
    transition: transform 0.2s ease;
}

.case-link:hover {
    transform: translateX(4px);
    color: #38bdf8 !important;
}

/* Contact Section */
.contact-section {
    padding: 100px 0;
    background: #faf9f7;
}

.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: start;
}

@media (max-width: 850px) {
    .contact-wrapper { grid-template-columns: 1fr; gap: 2.5rem; }
}

.contact-info-col h2 {
    font-size: 2.2rem;
    font-weight: 800;
    color: #ffffff !important;
    margin-bottom: 1rem;
}

.contact-info-col p {
    font-size: 1.05rem;
    color: #cbd5e1 !important;
    line-height: 1.7;
    margin-bottom: 2rem;
}

.contact-direct-items {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.c-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 0.95rem;
}

.c-icon {
    font-size: 1.5rem;
    background: rgba(255, 255, 255, 0.08) !important;
    border: 1px solid rgba(255, 255, 255, 0.16) !important;
    padding: 0.75rem;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.c-item strong {
    display: block;
    color: #ffffff !important;
}

.c-item a {
    color: #34d399 !important;
    font-weight: 600;
    text-decoration: none;
    transition: color 0.2s ease;
}

.c-item a:hover {
    color: #6ee7b7 !important;
    text-decoration: underline;
}

.krmaazha-form {
    background: #ffffff;
    border: 1px solid #e8e4dc;
    border-radius: 24px;
    padding: 2.5rem;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.05);
}

.krmaazha-form h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: #ffffff !important;
    margin-bottom: 1.5rem;
}

.form-group {
    margin-bottom: 1.25rem;
}

.form-group label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    color: #334155;
    margin-bottom: 0.4rem;
}

.form-group input, .form-group select, .form-group textarea {
    width: 100%;
    padding: 0.8rem 1rem;
    font-size: 0.95rem;
    font-family: inherit;
    border: 1px solid #cbd5e1;
    border-radius: 10px;
    background: #f8fafc;
    transition: border-color 0.2s ease;
}

.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
    outline: none;
    border-color: #2d6a4f;
    background: #ffffff;
}

.btn-block {
    width: 100%;
    padding: 0.9rem;
    font-size: 1rem;
}

/* Footer Extensions */
.footer-container {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    text-align: center;
}

.footer-brand p {
    font-size: 0.875rem;
    color: #94a3b8;
    margin-top: 0.5rem;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1.5rem;
    font-size: 0.875rem;
    font-weight: 600;
    color: #e2e8f0;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.85rem;
    color: #64748b;
}

/* ========================================
   3D INTERACTIVE ELEVATION & VISUAL ENGINE
   ======================================== */

/* Perspective context for card container grids */
.hero-pillars-preview,
.divisions-grid,
.services-matrix-grid,
.leadership-grid,
.cases-grid,
.use-case-grid {
    perspective: 1200px;
}

/* 3D Base Card Properties */
.pillar-mini-card,
.division-card,
.service-matrix-card,
.leader-card,
.case-card,
.use-case-card,
.krmaazha-form {
    transform-style: preserve-3d;
    transition: transform 0.15s cubic-bezier(0.2, 0, 0.2, 1), box-shadow 0.3s ease, border-color 0.3s ease;
    will-change: transform;
    position: relative;
}

/* Z-axis depth elevation for nested elements on hover */
.pillar-mini-card .pillar-icon,
.division-card .division-icon,
.service-matrix-card .service-icon,
.leader-card .leader-avatar,
.case-card .case-image {
    transform: translateZ(35px);
    transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.pillar-mini-card h4,
.division-card h3,
.service-matrix-card h3,
.leader-card h3,
.case-card h3,
.krmaazha-form h3 {
    transform: translateZ(25px);
    transition: transform 0.25s ease;
}

.pillar-mini-card p,
.division-card p,
.service-matrix-card p,
.leader-card .leader-role,
.case-card p {
    transform: translateZ(15px);
    transition: transform 0.25s ease;
}

.pillar-mini-card .pillar-badge,
.division-card .division-badge,
.service-matrix-card .service-tag,
.case-card .case-tag {
    transform: translateZ(45px);
    transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* Specular Glare / Dynamic 3D Light Overlay */
.card-3d-shine {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at var(--mouse-x, 50%) var(--mouse-y, 50%), rgba(255, 255, 255, 0.18) 0%, rgba(255, 255, 255, 0) 70%);
    pointer-events: none;
    border-radius: inherit;
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 10;
}

.pillar-mini-card:hover .card-3d-shine,
.division-card:hover .card-3d-shine,
.service-matrix-card:hover .card-3d-shine,
.leader-card:hover .card-3d-shine,
.case-card:hover .card-3d-shine,
.krmaazha-form:hover .card-3d-shine {
    opacity: 1;
}

/* Enhanced 3D Shadows and Rim Glows */
.pillar-mini-card:hover,
.division-card:hover,
.service-matrix-card:hover,
.leader-card:hover,
.case-card:hover {
    box-shadow: 
        0 25px 45px -15px rgba(0, 0, 0, 0.4),
        0 0 30px -5px rgba(0, 242, 254, 0.2),
        inset 0 1px 1px rgba(255, 255, 255, 0.2);
}

.division-card.tech:hover {
    border-color: rgba(0, 242, 254, 0.6) !important;
    box-shadow: 0 25px 45px -15px rgba(0, 242, 254, 0.25), 0 0 30px rgba(0, 242, 254, 0.25);
}

.division-card.edtech:hover {
    border-color: rgba(168, 85, 247, 0.6) !important;
    box-shadow: 0 25px 45px -15px rgba(168, 85, 247, 0.25), 0 0 30px rgba(168, 85, 247, 0.25);
}

.division-card.creative:hover {
    border-color: rgba(245, 158, 11, 0.6) !important;
    box-shadow: 0 25px 45px -15px rgba(245, 158, 11, 0.25), 0 0 30px rgba(245, 158, 11, 0.25);
}

/* 3D Hero Canvas Background */
.hero-umbrella {
    position: relative;
    z-index: 1;
}

.hero-3d-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
    opacity: 0.85;
}

.hero-container {
    position: relative;
    z-index: 2;
}

/* Perspective Grid Floor Effect in Hero */
.hero-grid-pattern {
    position: absolute;
    top: 0;
    left: 50%;
    width: 200%;
    height: 100%;
    margin-left: -100%;
    background-size: 60px 60px;
    background-image: 
        linear-gradient(to right, rgba(0, 242, 254, 0.07) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(168, 85, 247, 0.07) 1px, transparent 1px);
    transform: perspective(600px) rotateX(60deg) translateY(-40px) translateZ(-80px);
    transform-origin: 50% 0%;
    pointer-events: none;
    opacity: 0.7;
    animation: grid3DScroll 25s linear infinite;
}

@keyframes grid3DScroll {
    0% { background-position: 0 0; }
    100% { background-position: 0 60px; }
}

/* Tactile 3D Buttons */
.btn {
    transform-style: preserve-3d;
    transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.2s ease, background 0.3s ease;
}

.btn:hover {
    transform: translateY(-4px) translateZ(15px);
    box-shadow: 0 12px 25px -5px rgba(0, 0, 0, 0.25);
}

.btn:active {
    transform: translateY(1px) translateZ(0px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
}

.btn-glow:hover {
    box-shadow: 0 10px 30px rgba(0, 242, 254, 0.4), 0 0 15px rgba(0, 242, 254, 0.6);
}

/* Full-screen Fixed 3D WebGL Background Scene */
.webgl-canvas-fixed {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    pointer-events: none;
    z-index: -1 !important;
    opacity: 0.95;
    will-change: transform;
}

/* Lenis Smooth Inertia Scroll Physics */
html.lenis, html.lenis body {
    height: auto;
}
.lenis.lenis-smooth {
    scroll-behavior: auto !important;
}
.lenis.lenis-smooth [data-lenis-prevent] {
    overscroll-behavior: contain;
}
.lenis.lenis-stopped {
    overflow: hidden;
}

/* Ensure page sections stack with depth above the 3D WebGL canvas */
.nav,
.hero,
.divisions-section,
.services-matrix-section,
.bootcamps-section,
.leadership-section,
.case-studies-section,
.use-cases-section,
.contact-section,
.footer {
    position: relative;
    z-index: 1;
}

/* 3D Glassmorphic Cards with Organic Nature Feel */
.division-card,
.service-matrix-card,
.leader-card,
.case-card,
.pillar-mini-card {
    background: rgba(14, 28, 24, 0.88) !important;
    border: 1px solid rgba(52, 211, 153, 0.22) !important;
    box-shadow: 0 16px 36px -8px rgba(0, 0, 0, 0.5), 0 0 24px rgba(16, 185, 129, 0.08);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
}

/* 3D Perspective Containers for Scroll Animations */
.divisions-grid,
.services-grid-10,
.leadership-grid,
.work-grid-umbrella,
.bootcamp-box {
    perspective: 1200px;
    transform-style: preserve-3d;
}

/* Complete Website Nature Atmosphere Inspired by Sunrise & Forest Landscapes */
.divisions-section {
    background: 
        linear-gradient(180deg, rgba(9, 13, 22, 0.95) 0%, rgba(11, 25, 21, 0.85) 30%, rgba(11, 25, 21, 0.9) 70%, #0d1e19 100%),
        url('../images/nature-golden-trees.jpg') center top / cover no-repeat fixed !important;
    color: #ffffff;
    position: relative;
}

.services-matrix-section {
    background: 
        linear-gradient(180deg, #0d1e19 0%, rgba(10, 22, 19, 0.96) 50%, #0c1a16 100%) !important;
    color: #ffffff;
    position: relative;
}

.bootcamp-highlight-section {
    background: #0b1814 !important;
}

.bootcamp-box {
    background: 
        linear-gradient(135deg, rgba(16, 44, 38, 0.95) 0%, rgba(10, 28, 24, 0.96) 100%),
        radial-gradient(circle at 80% 20%, rgba(245, 158, 11, 0.22) 0%, transparent 55%) !important;
    border: 1px solid rgba(52, 211, 153, 0.25) !important;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.45), 0 0 35px rgba(16, 185, 129, 0.12);
}

.leadership-section {
    background: 
        linear-gradient(180deg, #0c1a16 0%, rgba(10, 24, 20, 0.84) 35%, rgba(10, 24, 20, 0.88) 70%, #0b1714 100%),
        url('../images/nature-misty-forest.jpg') center center / cover no-repeat fixed !important;
    color: #ffffff;
    position: relative;
}

.work-section {
    background: 
        linear-gradient(180deg, #0b1714 0%, rgba(12, 26, 22, 0.96) 50%, #0a1512 100%) !important;
    color: #ffffff;
    position: relative;
}

.use-cases-section {
    background: #0a1512 !important;
    color: #ffffff;
}

.contact-section {
    background: 
        linear-gradient(180deg, #0a1512 0%, #0d1f19 100%) !important;
    color: #ffffff;
    position: relative;
}

.footer {
    background: #060e0c !important;
    border-top: 1px solid rgba(52, 211, 153, 0.18) !important;
}

/* High-Contrast Section Headers */
.section-title {
    color: #ffffff !important;
}
.section-description {
    color: #94a3b8 !important;
    font-size: 1.05rem;
}

/* Division Cards Typography */
.division-card h3 {
    color: #ffffff !important;
    font-size: 1.35rem;
}
.division-card .div-subtitle {
    color: #94a3b8 !important;
    font-size: 0.95rem;
}
.division-card .div-service-list li {
    color: #e2e8f0 !important;
    font-size: 0.95rem;
}
.division-card .div-service-list li strong {
    color: #ffffff !important;
}
.division-card .div-tech-tags span {
    background: rgba(255, 255, 255, 0.08) !important;
    color: #f1f5f9 !important;
    border: 1px solid rgba(255, 255, 255, 0.16) !important;
    font-size: 0.8rem;
    padding: 4px 10px;
    border-radius: 6px;
}

/* Service Matrix Cards High Contrast */
.service-matrix-card h3 {
    color: #ffffff !important;
    font-size: 1.25rem;
    font-weight: 700;
}
.service-matrix-card p {
    color: #cbd5e1 !important;
    font-size: 0.925rem;
    line-height: 1.65;
}
.service-matrix-card .card-deliverables span {
    background: rgba(255, 255, 255, 0.08) !important;
    color: #f1f5f9 !important;
    border: 1px solid rgba(255, 255, 255, 0.16) !important;
    font-size: 0.78rem;
}
.service-inquire-btn {
    color: #00f2fe !important;
    font-weight: 700;
    font-size: 0.9rem;
}
.service-inquire-btn:hover {
    color: #38bdf8 !important;
    text-shadow: 0 0 10px rgba(0, 242, 254, 0.5);
}

/* Filter Buttons */
.filter-btn {
    background: rgba(255, 255, 255, 0.06) !important;
    color: #cbd5e1 !important;
    border: 1px solid rgba(255, 255, 255, 0.15) !important;
}
.filter-btn:hover, .filter-btn.active {
    background: linear-gradient(135deg, #00f2fe, #4facfe) !important;
    color: #0b0f19 !important;
    font-weight: 700 !important;
    border-color: #00f2fe !important;
    box-shadow: 0 4px 16px rgba(0, 242, 254, 0.4) !important;
}

/* Leadership Cards Crystal Clear High Contrast */
.leader-card h3 {
    color: #ffffff !important;
    font-size: 1.4rem;
    font-weight: 700;
}
.avatar-kumail ~ .leader-title,
.avatar-kumail + * + .leader-title,
.leader-card:nth-child(1) .leader-title {
    color: #00f2fe !important;
}
.leader-card:nth-child(2) .leader-title {
    color: #c084fc !important;
}
.leader-card:nth-child(3) .leader-title {
    color: #fbbf24 !important;
}
.leader-card:nth-child(4) .leader-title {
    color: #34d399 !important;
}
.leader-role-badge {
    background: rgba(255, 255, 255, 0.12) !important;
    color: #f1f5f9 !important;
    border: 1px solid rgba(255, 255, 255, 0.15);
}
.leader-bio {
    color: #e2e8f0 !important;
    font-size: 0.925rem;
    line-height: 1.65;
}
.leader-highlights {
    color: #f8fafc !important;
    font-size: 0.85rem;
}
.leader-socials {
    border-top: 1px solid rgba(255, 255, 255, 0.1) !important;
}
.leader-socials a {
    color: #00f2fe !important;
    font-weight: 700;
}
.leader-socials a:hover {
    color: #38bdf8 !important;
    text-shadow: 0 0 8px rgba(0, 242, 254, 0.5);
}

/* Case Studies High Contrast */
.case-card {
    background: #111827 !important;
    border: 1px solid rgba(255, 255, 255, 0.12) !important;
}
.case-body p {
    color: #cbd5e1 !important;
    font-size: 0.95rem;
    line-height: 1.65;
}
.case-review-quote {
    background: rgba(34, 197, 94, 0.12) !important;
    color: #4ade80 !important;
    border-left: 3px solid #22c55e !important;
}
.case-meta span {
    background: rgba(255, 255, 255, 0.08) !important;
    color: #f1f5f9 !important;
    border: 1px solid rgba(255, 255, 255, 0.16) !important;
}
.case-link {
    color: #00f2fe !important;
    font-weight: 700;
}
.case-link:hover {
    color: #38bdf8 !important;
}

/* Contact Section & Forms High Contrast */
.krmaazha-form {
    background: #111827 !important;
    border: 1px solid rgba(255, 255, 255, 0.15) !important;
}
.krmaazha-form h3,
#inquiry-form h3,
.contact-form-col h3 {
    color: #ffffff !important;
    font-size: 1.5rem !important;
    font-weight: 700 !important;
    margin-bottom: 1.5rem !important;
    display: block !important;
}
.form-group label {
    color: #e2e8f0 !important;
    font-weight: 600;
}
.form-group input,
.form-group select,
.form-group textarea {
    background: #090d16 !important;
    color: #ffffff !important;
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: #00f2fe !important;
    box-shadow: 0 0 12px rgba(0, 242, 254, 0.3) !important;
}

/* Accessibility - Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    .pillar-mini-card,
    .division-card,
    .service-matrix-card,
    .leader-card,
    .case-card,
    .use-case-card,
    .btn {
        transform: none !important;
        transition: none !important;
    }
    .hero-grid-pattern {
        animation: none !important;
    }
    .webgl-canvas-fixed {
        display: none !important;
    }
}

/* Guarantee instant single-click responsiveness across all links and buttons */
a, button, .btn, .btn-outline, .service-inquire-btn, .case-link, .leader-socials a, .pillar-mini-card, .filter-btn, .nav-link {
    pointer-events: auto !important;
    cursor: pointer !important;
    position: relative;
    z-index: 25 !important;
    touch-action: manipulation;
}

.card-3d-shine,
.hero-nature-backdrop,
.nature-mist-overlay,
.nature-landscape-image,
.nature-morning-glow,
.nature-cloud-layer,
.webgl-canvas-fixed,
.hero-grid-pattern {
    pointer-events: none !important;
}

/* ==========================================================================
   KRMAAZHA MOBILE & TABLET RESPONSIVE SYSTEM (Android, iPhone, iPad)
   ========================================================================== */

/* Universal Viewport Boundary Protection */
html, body {
    overflow-x: hidden !important;
    width: 100% !important;
    max-width: 100vw !important;
    position: relative;
}

/* Container safety on smaller viewports */
.container {
    width: 100% !important;
    max-width: 1200px;
    padding-left: 1.25rem !important;
    padding-right: 1.25rem !important;
    margin-left: auto;
    margin-right: auto;
}

/* Desktop-only vs Mobile-only element visibility */
.mobile-only-nav-item {
    display: none;
}

/* ----------------------------------------------------
   TABLET RESPONSIVE BREAKPOINT (max-width: 1024px)
   ---------------------------------------------------- */
@media (max-width: 1024px) {
    .divisions-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 1.5rem;
    }

    .services-grid-10 {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 1.5rem;
    }

    .leadership-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 1.5rem;
    }

    .work-grid-umbrella {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 1.5rem;
    }

    .contact-wrapper {
        grid-template-columns: 1fr 1fr;
        gap: 2rem;
    }

    .hero-pillars-preview {
        grid-template-columns: repeat(3, 1fr);
        gap: 1rem;
    }
}

/* ----------------------------------------------------
   MOBILE & NARROW TABLET BREAKPOINT (max-width: 900px)
   ---------------------------------------------------- */
@media (max-width: 900px) {
    /* Header & Navigation */
    .header-container,
    .nav-container {
        padding: 0.75rem 1rem !important;
        display: flex !important;
        align-items: center !important;
        justify-content: space-between !important;
        width: 100% !important;
        height: auto !important;
        min-height: 64px !important;
    }

    .nav-toggle {
        display: flex !important;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        width: 44px;
        height: 44px;
        background: rgba(14, 28, 24, 0.8) !important;
        border: 1px solid rgba(52, 211, 153, 0.3) !important;
        border-radius: 10px;
        cursor: pointer;
        padding: 0;
        z-index: 1005 !important;
        touch-action: manipulation;
    }

    .nav-toggle span {
        display: block;
        width: 22px;
        height: 2px;
        background-color: #ffffff;
        margin: 2.5px 0;
        border-radius: 2px;
        transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    }

    /* Animated hamburger transform when active */
    .nav-toggle.active span:nth-child(1) {
        transform: translateY(7px) rotate(45deg);
        background-color: #34d399;
    }
    .nav-toggle.active span:nth-child(2) {
        opacity: 0;
    }
    .nav-toggle.active span:nth-child(3) {
        transform: translateY(-7px) rotate(-45deg);
        background-color: #34d399;
    }

    /* Mobile Drawer Menu */
    .nav-links {
        position: fixed !important;
        top: 0 !important;
        right: -100% !important;
        left: auto !important;
        width: 82% !important;
        max-width: 340px !important;
        height: 100vh !important;
        height: 100dvh !important;
        background: rgba(8, 20, 17, 0.98) !important;
        backdrop-filter: blur(24px) !important;
        -webkit-backdrop-filter: blur(24px) !important;
        border-left: 1px solid rgba(52, 211, 153, 0.3) !important;
        box-shadow: -15px 0 40px rgba(0, 0, 0, 0.8) !important;
        display: flex !important;
        flex-direction: column !important;
        align-items: flex-start !important;
        padding: 5.5rem 1.75rem 2.5rem !important;
        gap: 0 !important;
        transform: none !important;
        opacity: 1 !important;
        visibility: visible !important;
        transition: right 0.35s cubic-bezier(0.2, 0, 0, 1) !important;
        z-index: 1000 !important;
        overflow-y: auto !important;
        -webkit-overflow-scrolling: touch !important;
        margin: 0 !important;
        list-style: none !important;
    }

    .nav-links.active {
        right: 0 !important;
        left: auto !important;
        transform: none !important;
        opacity: 1 !important;
        visibility: visible !important;
    }

    .nav-links li {
        width: 100% !important;
        margin: 0 !important;
        padding: 0 !important;
        display: block !important;
    }

    .nav-links a {
        display: block !important;
        width: 100% !important;
        color: #ffffff !important;
        font-size: 1.15rem !important;
        font-weight: 600 !important;
        padding: 0.9rem 0.75rem !important;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1) !important;
        text-decoration: none !important;
        transition: color 0.2s, padding-left 0.2s, background-color 0.2s !important;
    }

    .nav-links a:hover,
    .nav-links a:active {
        color: #34d399 !important;
        padding-left: 1.25rem !important;
        background: rgba(52, 211, 153, 0.12) !important;
        border-radius: 8px !important;
    }

    .mobile-only-nav-item {
        display: block !important;
        margin-top: 1.5rem !important;
        padding-top: 0.5rem !important;
        width: 100% !important;
    }

    .nav-mobile-cta {
        display: block !important;
        width: 100% !important;
        text-align: center !important;
        padding: 0.85rem !important;
        font-size: 1rem !important;
        font-weight: 700 !important;
        border-radius: 12px !important;
        border-bottom: none !important;
        color: #ffffff !important;
        background: linear-gradient(135deg, #10b981 0%, #059669 100%) !important;
        box-shadow: 0 4px 15px rgba(16, 185, 129, 0.4) !important;
    }

    .nav-mobile-cta:hover {
        padding-left: 0.85rem !important;
        background: linear-gradient(135deg, #34d399 0%, #10b981 100%) !important;
    }

    /* Contact Section Layout */
    .contact-wrapper {
        grid-template-columns: 1fr !important;
        gap: 2.5rem !important;
    }
}

/* ----------------------------------------------------
   SMARTPHONE & COMPACT MOBILE (max-width: 640px)
   ---------------------------------------------------- */
@media (max-width: 640px) {
    /* Hide top nav CTA button on phones so logo & hamburger have ample space */
    .btn-nav-cta {
        display: none !important;
    }

    /* Hero section adjustments */
    .hero-umbrella {
        padding: 95px 0 50px !important;
        min-height: auto !important;
    }

    .hero-main-title {
        font-size: 2.2rem !important;
        line-height: 1.25 !important;
        letter-spacing: -0.02em !important;
        margin-bottom: 1.25rem !important;
    }

    .hero-lead {
        font-size: 1rem !important;
        line-height: 1.6 !important;
        margin-bottom: 1.75rem !important;
    }

    .hero-cta-group {
        display: flex !important;
        flex-direction: column !important;
        width: 100% !important;
        gap: 0.85rem !important;
        align-items: stretch !important;
    }

    .hero-cta-group .btn {
        width: 100% !important;
        justify-content: center !important;
        text-align: center !important;
        padding: 0.95rem 1.25rem !important;
        font-size: 1rem !important;
    }

    /* Hero Pillars 1-col */
    .hero-pillars-preview {
        grid-template-columns: 1fr !important;
        gap: 1rem !important;
        margin-top: 2rem !important;
    }

    .pillar-mini-card {
        padding: 1.25rem !important;
    }

    /* Section Headings */
    .section-title {
        font-size: 1.85rem !important;
        line-height: 1.3 !important;
    }

    .section-description {
        font-size: 0.95rem !important;
        line-height: 1.6 !important;
        margin-bottom: 2rem !important;
    }

    .section-tag {
        font-size: 0.72rem !important;
    }

    /* Divisions 1-col */
    .divisions-grid {
        grid-template-columns: 1fr !important;
        gap: 1.25rem !important;
    }

    .division-card {
        padding: 1.5rem 1.25rem !important;
    }

    /* Services Filter Bar - Horizontal Touch Swipe */
    .service-filters {
        display: flex !important;
        flex-wrap: nowrap !important;
        overflow-x: auto !important;
        -webkit-overflow-scrolling: touch !important;
        gap: 0.5rem !important;
        padding: 0.5rem 0.25rem 1rem !important;
        margin-bottom: 1.75rem !important;
        scrollbar-width: none !important;
    }
    .service-filters::-webkit-scrollbar {
        display: none !important;
    }

    .filter-btn {
        flex-shrink: 0 !important;
        white-space: nowrap !important;
        font-size: 0.82rem !important;
        padding: 0.55rem 1.1rem !important;
        border-radius: 9999px !important;
    }

    /* Services Grid 1-col */
    .services-grid-10 {
        grid-template-columns: 1fr !important;
        gap: 1.25rem !important;
    }

    .service-matrix-card {
        padding: 1.5rem 1.25rem !important;
    }

    /* Bootcamp Section */
    .bootcamp-box {
        padding: 1.75rem 1.25rem !important;
        border-radius: 18px !important;
    }

    .bootcamp-content-grid {
        grid-template-columns: 1fr !important;
        gap: 1.75rem !important;
    }

    .bootcamp-metrics {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 0.75rem !important;
    }

    .metric-card {
        padding: 1rem 0.75rem !important;
    }

    .metric-number {
        font-size: 1.6rem !important;
    }

    .metric-label {
        font-size: 0.75rem !important;
    }

    /* Leadership 1-col */
    .leadership-grid {
        grid-template-columns: 1fr !important;
        gap: 1.25rem !important;
    }

    .leader-card {
        padding: 1.5rem 1.25rem !important;
    }

    /* Case Studies 1-col */
    .work-grid-umbrella {
        grid-template-columns: 1fr !important;
        gap: 1.25rem !important;
    }

    .case-header {
        padding: 1.5rem 1.25rem !important;
    }

    .case-body {
        padding: 1.25rem !important;
    }

    /* Contact Section & Form */
    .contact-section {
        padding: 60px 0 !important;
    }

    .contact-info-col h2 {
        font-size: 1.85rem !important;
    }

    .contact-info-col p {
        font-size: 0.95rem !important;
    }

    .krmaazha-form {
        padding: 1.5rem 1.25rem !important;
        border-radius: 16px !important;
    }

    .krmaazha-form h3 {
        font-size: 1.35rem !important;
        margin-bottom: 1.25rem !important;
    }

    /* iOS Safari Automatic Zoom Fix: Minimum 16px font-size */
    .form-group input,
    .form-group select,
    .form-group textarea {
        font-size: 16px !important;
        min-height: 48px !important;
        padding: 0.75rem 0.85rem !important;
        border-radius: 8px !important;
    }

    .form-group textarea {
        min-height: 110px !important;
    }

    .btn-block {
        font-size: 1rem !important;
        padding: 0.95rem !important;
        min-height: 50px !important;
    }

    /* Footer */
    .footer {
        padding: 40px 0 25px !important;
    }

    .footer-container {
        gap: 1.5rem !important;
    }

    .footer-links {
        flex-direction: column !important;
        gap: 0.85rem !important;
        align-items: center !important;
    }

    .footer-bottom {
        flex-direction: column !important;
        gap: 0.75rem !important;
        text-align: center !important;
    }
}

/* ----------------------------------------------------
   VERY SMALL PHONES (max-width: 380px)
   ---------------------------------------------------- */
@media (max-width: 380px) {
    .hero-main-title {
        font-size: 1.9rem !important;
    }

    .brand-logo-img {
        height: 32px !important;
    }

    .brand-text-logo {
        font-size: 1.2rem !important;
    }

    .container {
        padding-left: 0.85rem !important;
        padding-right: 0.85rem !important;
    }
}
