/* ===================================
   Professional Calm Design System
   =================================== */
:root {
    /* Deep Purple Professional Color Palette (#330066) */
    --primary: #5e0066;
    /* Deep Purple */
    --primary-light: #b033cc;
    /* Medium Purple */
    --primary-dark: #2b0149;
    /* Extra Dark Purple */

    --secondary: #5c2d91;
    /* Royal Purple */
    --secondary-light: #8c52ff;
    /* Vibrant Purple */

    --accent: #e879f9;
    /* Bright Magenta Accent */
    --accent-light: #f0abfc;
    /* Soft Magenta */

    --bg-main: #ffffff;
    /* Clean light background with purple tint */
    --bg-card: #ffffff;
    /* Pure White */
    --text-white: #ffffff;
    /* Pure White */
    --text-light: #490648;
    /* Very Dark Purple for headings */
    --text-gray: #5a4b7a;
    /* Sophisticated deep purple gray for body */

    /* Typography */
    --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-heading: 'Montserrat', 'Inter', sans-serif;

    /* Spacing */
    --section-padding: 40px 0;
    --container-padding: 0 80px;
    --card-padding: 40px;

    /* Effects */
    --shadow-glow: 0 10px 40px rgba(51, 0, 102, 0.12);
    --shadow-glow-purple: 0 10px 40px rgba(102, 51, 204, 0.15);
    --shadow-glow-accent: 0 10px 40px rgba(232, 121, 249, 0.15);
    --transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-fast: all 0.2s ease;
    --transition-bounce: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

/* ===================================
   Base Styles
   =================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
    width: 100%;
}

body {
    font-family: var(--font-primary);
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-gray);
    background: var(--bg-main);
    /* Base professional gradients */
    background-image:
        radial-gradient(circle at 20% 50%, rgba(51, 0, 102, 0.04) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(140, 82, 255, 0.04) 0%, transparent 50%),
        radial-gradient(circle at 50% 20%, rgba(232, 121, 249, 0.03) 0%, transparent 50%);
    background-attachment: fixed;
    overflow-x: hidden;
    position: relative;
}

/* Decorative Background Dot Circles */
body::before,
body::after {
    content: '';
    position: fixed;
    pointer-events: none;
    z-index: -2;
    opacity: 0.18;
    /* Subtle yet attractive */
}

/* Multiple Dotted Clusters */
body::before {
    top: -10%;
    right: -10%;
    width: 60vw;
    height: 60vw;
    background-image:
        radial-gradient(circle at center, transparent 30%, transparent 31%),
        url("data:image/svg+xml,%3Csvg width='32' height='32' viewBox='0 0 32 32' xmlns='http://www.w3.org/2000/svg'%3E%3Ccircle cx='3' cy='3' r='2' fill='%23966FD6'/%3E%3C/svg%3E");
    mask-image: radial-gradient(circle at center, black 40%, transparent 70%);
    -webkit-mask-image: radial-gradient(circle at center, black 40%, transparent 70%);
    animation: rotate 120s linear infinite;
}

body::after {
    bottom: -10%;
    left: -10%;
    width: 50vw;
    height: 50vw;
    background-image: url("data:image/svg+xml,%3Csvg width='24' height='24' viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Ccircle cx='2.5' cy='2.5' r='1.8' fill='%23966FD6'/%3E%3C/svg%3E");
    mask-image: radial-gradient(circle at center, black 30%, transparent 65%);
    -webkit-mask-image: radial-gradient(circle at center, black 30%, transparent 65%);
    animation: rotate 180s linear infinite reverse;
}

/* Additional Dot Cluster in Middle for more attraction */
section {
    position: relative;
    z-index: 1;
}

section::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 600px;
    height: 600px;
    z-index: -1;
    pointer-events: none;
    opacity: 0.15;
    background-image: url("data:image/svg+xml,%3Csvg width='24' height='24' viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Ccircle cx='3' cy='3' r='1.5' fill='%23966FD6'/%3E%3C/svg%3E");
    mask-image: radial-gradient(circle at center, black 20%, transparent 60%);
    -webkit-mask-image: radial-gradient(circle at center, black 20%, transparent 60%);
    animation: floatRotate 40s ease-in-out infinite;
}

@keyframes floatRotate {
    0% {
        transform: translate(-50%, -50%) rotate(0deg) scale(1);
    }

    50% {
        transform: translate(-50%, -50%) rotate(180deg) scale(1.1);
    }

    100% {
        transform: translate(-50%, -50%) rotate(360deg) scale(1);
    }
}

@keyframes rotate {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

/* ===================================
   Animations
   =================================== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

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

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes glow {

    0%,
    100% {
        box-shadow: 0 0 20px rgba(51, 0, 102, 0.2);
    }

    50% {
        box-shadow: 0 0 40px rgba(102, 51, 204, 0.3);
    }
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-20px);
    }
}

@keyframes gradient-shift {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

@keyframes bounce {

    0%,
    20%,
    50%,
    80%,
    100% {
        transform: translateY(0);
    }

    40% {
        transform: translateY(-20px);
    }

    60% {
        transform: translateY(-10px);
    }
}


/* ===================================
   Typography
   =================================== */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    color: var(--text-light);
    line-height: 1.2;
}

h1 {
    font-size: 4rem;
    letter-spacing: -0.02em;
    background: linear-gradient(135deg, var(--primary-light), var(--text-light));
    background-size: 200% 200%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    /* Removed the intense continuous animation for a more stable professional look, 
       or we can keep a subtle one. Let's keep it subtle. */
    animation: gradient-shift 8s ease infinite;
}

h2 {
    font-size: 3rem;
    letter-spacing: -0.01em;
}

h3 {
    font-size: 1.75rem;
}

p {
    font-size: 1.125rem;
    line-height: 1.8;
}

/* ===================================
   Container & Layout
   =================================== */
.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: var(--container-padding);
}

.section {
    padding: var(--section-padding);
    position: relative;
}

/* ===================================
   Navigation
   =================================== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    padding: 15px 0;
    z-index: 1000;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
    transition: var(--transition);
}

.navbar.scrolled {
    background: #ffffff;
    border-bottom: 1px solid rgba(0, 0, 0, 0.12);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 80px;
}

.logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    transition: var(--transition-fast);
}

.logo-img {
    height: 50px;
    width: auto;
    object-fit: contain;
    display: block;
}

.logo:hover {
    transform: scale(1.02);
}

.nav-links {
    display: flex;
    gap: 40px;
    list-style: none;
    align-items: center;
}

.nav-links a {
    color: var(--text-light);
    text-decoration: none;
    font-weight: 700;
    transition: var(--transition-fast);
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary);
    transition: var(--transition-fast);
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--primary);
}

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

.nav-cta {
    background: var(--primary);
    color: white !important;
    padding: 12px 28px;
    border-radius: 50px;
    font-weight: 600;
    transition: var(--transition);
    box-shadow: 0 4px 15px rgba(51, 0, 102, 0.2);
}

.nav-cta::after {
    display: none;
}

.nav-cta:hover {
    transform: translateY(-2px);
    background: var(--primary-dark);
    box-shadow: 0 6px 20px rgba(51, 0, 102, 0.3);
}

/* ===================================
   Hero Section
   =================================== */
.hero {
    min-height: 60vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    padding-top: 100px;
}

.hero::before {
    content: '';
    position: absolute;
    top: -30%;
    right: -5%;
    width: 60%;
    height: 120%;
    background: radial-gradient(circle, rgba(176, 51, 204, 0.15) 30%, transparent 70%);
    animation: float 12s ease-in-out infinite;
    z-index: 1;
}

.hero::after {
    content: '';
    position: absolute;
    bottom: -10%;
    left: -5%;
    width: 40%;
    height: 80%;
    background: radial-gradient(circle, rgba(94, 0, 102, 0.1) 0%, transparent 70%);
    animation: float 15s ease-in-out infinite reverse;
    z-index: 1;
}

.home-hero {
    background: #1a0033;
    /* Theme fallback */
    position: relative;
    z-index: 1;
}

#hero-particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2;
    pointer-events: none;
}

.hero-bg-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(rgba(0, 0, 0, 0.65), rgba(26, 0, 51, 0.7)), url('Imgs/4.png');
    background-size: cover;
    background-position: center;
    z-index: 1;
    animation: heroBreathe 40s ease-in-out infinite;
    transform-origin: center;
}

/* High-tech Grid Overlay */
.hero-bg-overlay::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
        linear-gradient(rgba(0, 0, 0, 0.1) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 0, 0, 0.1) 1px, transparent 1px);
    background-size: 40px 40px;
    z-index: 2;
}

/* Moving Scanline */
.hero-bg-overlay::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: linear-gradient(to bottom, transparent, rgba(0, 0, 0, 0.3), transparent);
    z-index: 3;
    animation: scanline 8s linear infinite;
    opacity: 0.5;
}

@keyframes scanline {
    0% {
        top: -10%;
    }

    100% {
        top: 110%;
    }
}

@keyframes heroBreathe {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.1);
    }
}

.services-hero {
    background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)), url('Imgs/2.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.about-hero {
    background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)), url('Imgs/3.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.careers-hero {
    background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)), url('Imgs/1.png');
    background-size: cover;
    background-position: 50% 30%;
    background-repeat: no-repeat;
}

.contact-hero {
    background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)), url('Imgs/3.png');
    background-size: cover;
    background-position: 50% 30%;
    background-repeat: no-repeat;
}

.hero p,
.hero .hero-subheadline {
    color: #ffffff !important;
}

.hero-content {
    position: relative;
    z-index: 5;
    max-width: 900px;
    animation: fadeInUp 1.2s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.hero h1 {
    font-size: 4.5rem;
    margin-bottom: 24px;
    line-height: 1.1;
    color: var(--text-white);
    background: linear-gradient(135deg, #ffffff 30%, var(--primary-light));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}



.hero-subheadline {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.375rem;
    line-height: 1.7;
    margin-bottom: 40px;
    max-width: 750px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    animation: fadeInUp 1s ease 0.2s backwards;
}

/* Ensure next section has solid background to prevent hero bleed */
#pillars {
    background-color: rgba(255, 255, 255, 0.92) !important;
    backdrop-filter: blur(10px);
    opacity: 1 !important;
    z-index: 10;
    position: relative;
    box-shadow: 0 -30px 60px rgba(0, 0, 0, 0.15);
}

.cta-container {
    display: flex;
    gap: 20px;
    animation: fadeInUp 1s ease 0.4s backwards;
}

/* Services Slider Styles */
.slider-wrapper {
    position: relative;
    width: 100%;
    margin: 40px 0;
    overflow: hidden;
}

.slider-wrapper .pillars-grid {
    display: flex !important;
    grid-template-columns: none !important;
    gap: 40px;
    overflow-x: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
    padding: 60px 15%;
    /* Large padding for edge-to-edge feel */
}

.slider-wrapper .pillars-grid::-webkit-scrollbar {
    display: none;
}

.slider-wrapper .glass-card {
    flex: 0 0 450px;
    opacity: 0.3;
    /* 30% visibility by default */
    transition: opacity 0.5s cubic-bezier(0.4, 0, 0.2, 1), transform 0.5s ease;
}

.slider-wrapper .glass-card.item-focus {
    opacity: 1;
    transform: scale(1.02);
}

.slider-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: rgba(127, 71, 133, 0.9);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(0, 0, 0, 0.1);
    color: var(--primary);
    font-size: 1.8rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 20;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
}

.slider-nav:hover {
    background: var(--primary);
    color: var(--text-white);
    transform: translateY(-50%) scale(1.1);
}

.slider-nav.prev {
    left: 40px;
}

.slider-nav.next {
    right: 40px;
}

@media (max-width: 768px) {
    .slider-wrapper .pillars-grid {
        padding: 40px 8%;
        gap: 20px;
    }

    .slider-wrapper .glass-card {
        flex: 0 0 82vw;
    }

    .slider-nav {
        width: 45px;
        height: 45px;
        font-size: 1.3rem;
    }

    .slider-nav.prev {
        left: 10px;
    }

    .slider-nav.next {
        right: 10px;
    }
}

/* ===================================
   Glassmorphic Cards
   =================================== */
.glass-card {
    background: rgba(219, 220, 222, 0.7);
    /* White with opacity */
    backdrop-filter: blur(10px);
    border-radius: 20px;
    border: 1px solid rgba(0, 0, 0, 0.05);
    padding: var(--card-padding);
    /* Transition specific properties to avoid transform lag */
    transition: background 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease, opacity 0.4s ease;
    position: relative;
    overflow: hidden;
    will-change: transform, opacity;
}

.glass-card .card-image {
    width: calc(100% + 80px);
    height: 220px;
    margin: -40px -40px 24px -40px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.glass-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    transform: scaleX(0);
    transform-origin: left;
    transition: var(--transition);
}

.glass-card:hover {
    transform: translateY(-8px);
    background: rgba(255, 255, 255, 0.9);
    border-color: rgba(106, 203, 74, 0.2);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
}

.glass-card:hover::before {
    transform: scaleX(1);
}

/* Expandable Stat Cards */
.expandable-card {
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    align-items: flex-start !important;
    /* Override center align if needed */
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    padding: 30px !important;
}

.expandable-card .card-content {
    width: 100%;
    position: relative;
    text-align: center;
}

.expandable-card .expand-icon {
    position: absolute;
    top: -10%;
    right: -12%;
    transform: translateY(-50%);
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: rgba(150, 111, 214, 0.1);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    font-weight: bold;
    transition: all 0.3s ease;
}

.expandable-card.expanded .expand-icon {
    transform: translateY(-50%) rotate(45deg);
    background: var(--primary);
    color: white;
}

.expandable-card .card-details {
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: all 0.5s ease;
    margin-top: 0;
    text-align: left;
}

.expandable-card.expanded .card-details {
    max-height: 500px;
    /* Arbitrary large height */
    opacity: 1;
    margin-top: 20px;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
    padding-top: 20px;
}

.expandable-card.expanded {
    background: #ffffff;
    box-shadow: 0 15px 40px rgba(51, 0, 102, 0.15);
    border-color: rgba(150, 111, 214, 0.3);
    z-index: 10;
    transform: scale(1.02);
}

/* ===================================
   Buttons
   =================================== */
.btn {
    display: inline-block;
    padding: 18px 40px;
    font-size: 1.0625rem;
    font-weight: 600;
    text-decoration: none;
    border-radius: 50px;
    transition: var(--transition);
    cursor: pointer;
    border: none;
    font-family: var(--font-primary);
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.15);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn:hover::before {
    width: 300px;
    height: 300px;
}

.btn-primary {
    background: var(--primary);
    color: white;
    box-shadow: 0 4px 20px rgba(51, 0, 102, 0.2);
}

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(51, 0, 102, 0.3);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.9);
    color: var(--primary);
    border: 2px solid var(--primary);
    backdrop-filter: blur(5px);
}

.btn-secondary:hover {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(51, 0, 102, 0.15);
}

/* ===================================
   Section Headings
   =================================== */
.section-header {
    text-align: center;
    margin-bottom: 40px;
    will-change: transform, opacity;
}



.section-title {
    margin-bottom: 16px;
    color: var(--text-light);
}

.section-description {
    color: var(--text-gray);
    max-width: 700px;
    margin: 0 auto;
    font-size: 1.125rem;
}

/* ===================================
   Pillars Grid
   =================================== */
.pillars-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    margin-top: 40px;
}

.pillar-card {
    background: linear-gradient(135deg, rgba(102, 51, 204, 0.1) 0%, rgba(51, 0, 102, 0.05) 100%);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    border: 1px solid rgba(0, 0, 0, 0.05);
    padding: var(--card-padding);
    /* Transition specific properties to avoid transform lag */
    transition: background 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease, opacity 0.4s ease;
    position: relative;
    overflow: hidden;
    will-change: transform, opacity;
}

.pillar-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    transform: scaleX(0);
    transform-origin: left;
    transition: var(--transition);
}

.pillar-card:hover {
    transform: translateY(-8px);
    background: #ffffff;
    border-color: rgba(51, 0, 102, 0.2);
    box-shadow: 0 20px 40px rgba(51, 0, 102, 0.08);
}

.pillar-card:hover::before {
    transform: scaleX(1);
}

.pillar-icon {
    display: none;
}

.card-image {
    width: calc(100% + 80px);
    height: 180px;
    margin: -40px -40px 24px -40px;
    overflow: hidden;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.pillar-card h3 {
    margin-bottom: 16px;
    color: var(--text-light);
}

.pillar-card p {
    color: var(--text-gray);
    font-size: 1rem;
    line-height: 1.7;
}

/* ===================================
   Services Grid
   =================================== */
.services-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    margin-top: 40px;
}

.service-card {
    background: rgba(102, 51, 204, 0.05);
    backdrop-filter: blur(10px);
    border-radius: 16px;
    border: 1px solid rgba(0, 0, 0, 0.05);
    padding: 35px 30px;
    text-align: center;
    transition: var(--transition);
    will-change: transform, opacity;
}

.service-card:hover {
    transform: translateY(-8px);
    background: #ffffff;
    border-color: rgba(51, 0, 102, 0.2);
    box-shadow: 0 20px 40px rgba(51, 0, 102, 0.08);
}

.service-icon {
    display: none;
}

.service-card .card-image {
    width: calc(100% + 60px);
    height: 160px;
    margin: -35px -30px 20px -30px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.service-card h3 {
    margin-bottom: 12px;
    font-size: 1.25rem;
    color: var(--text-light);
}

.service-card p {
    color: var(--text-gray);
    font-size: 0.9375rem;
    line-height: 1.6;
}

/* ===================================
   Job Listing Cards
   =================================== */
.job-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    margin-top: 40px;
}

.job-card {
    background: rgba(255, 255, 255, 0.5);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    border: 1px solid rgba(0, 0, 0, 0.05);
    padding: 35px;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    will-change: transform, opacity;
}

.job-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    transform: scaleX(0);
    transform-origin: left;
    transition: var(--transition);
}

.job-card:hover {
    transform: translateY(-8px);
    background: #ffffff;
    border-color: rgba(51, 0, 102, 0.2);
    box-shadow: 0 20px 40px rgba(51, 0, 102, 0.08);
}

.job-card:hover::before {
    transform: scaleX(1);
}

.job-header {
    display: flex;
    justify-content: space-between;
    align-items: start;
    margin-bottom: 20px;
}

.job-title {
    font-size: 1.5rem;
    color: var(--text-light);
    margin-bottom: 8px;
}

.job-department {
    display: inline-block;
    background: rgba(51, 0, 102, 0.06);
    color: var(--primary-light);
    border: 1px solid rgba(51, 0, 102, 0.1);
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.job-meta {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.job-meta-item {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-gray);
    font-size: 0.9375rem;
}

.job-meta-item span {
    font-size: 1.125rem;
    color: var(--primary-light);
}

.job-description {
    color: var(--text-gray);
    margin-bottom: 20px;
    line-height: 1.7;
}

.job-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 24px;
}

.job-tag {
    background: rgba(51, 0, 102, 0.06);
    color: var(--primary);
    padding: 6px 14px;
    border-radius: 16px;
    font-size: 0.875rem;
    border: 1px solid rgba(51, 0, 102, 0.1);
}

.job-apply {
    display: inline-block;
    background: var(--primary);
    color: white;
    padding: 12px 28px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    box-shadow: 0 4px 16px rgba(51, 0, 102, 0.2);
}

.job-apply:hover {
    transform: translateY(-2px);
    background: var(--primary-dark);
    box-shadow: 0 8px 24px rgba(51, 0, 102, 0.3);
}

/* ===================================
   Form Styles
   =================================== */
.form-container {
    max-width: 800px;
    margin: 0 auto;
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(20px);
    border-radius: 24px;
    border: 1px solid rgba(0, 0, 0, 0.05);
    padding: 50px;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.04);
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
    margin-bottom: 24px;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group.full-width {
    grid-column: 1 / -1;
}

.form-group label {
    font-weight: 600;
    color: var(--text-light);
    margin-bottom: 8px;
    font-size: 0.9375rem;
}

.form-group input,
.form-group textarea,
.form-group select {
    padding: 14px 18px;
    background: #ffffff;
    /* Clean white background */
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 12px;
    font-family: var(--font-primary);
    font-size: 1rem;
    color: var(--text-light);
    transition: var(--transition-fast);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--primary);
    background: #ffffff;
    box-shadow: 0 0 0 4px rgba(102, 51, 204, 0.1);
}

.form-group textarea {
    min-height: 150px;
    resize: vertical;
}

.file-upload-wrapper {
    position: relative;
    width: 100%;
    height: 52px;
}

.file-upload-wrapper input[type="file"] {
    position: absolute;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
    z-index: 2;
}

.file-upload-custom {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #ffffff;
    border: 1px dashed rgba(102, 51, 204, 0.3);
    border-radius: 12px;
    display: flex;
    align-items: center;
    padding: 0 18px;
    color: var(--text-gray);
    font-size: 0.9375rem;
    transition: var(--transition-fast);
}

.file-upload-wrapper:hover .file-upload-custom {
    border-color: var(--primary);
    background: rgba(102, 51, 204, 0.02);
}

.file-upload-wrapper input[type="file"]:focus+.file-upload-custom {
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(102, 51, 204, 0.1);
}

.file-upload-custom.selected {
    border: 1px solid var(--primary);
    background: rgba(102, 51, 204, 0.05);
    color: var(--primary);
    font-weight: 600;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    margin-bottom: 40px;
    align-items: start;
    /* Fix expansion height issue layout shift */
}

.form-submit {
    width: 100%;
    padding: 18px;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: 50px;
    font-size: 1.125rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    font-family: var(--font-primary);
    box-shadow: 0 4px 20px rgba(51, 0, 102, 0.2);
}

.form-submit:hover {
    transform: translateY(-2px);
    background: var(--primary-dark);
    box-shadow: 0 8px 32px rgba(51, 0, 102, 0.3);
}

/* ===================================
   Footer
   =================================== */
.footer {
    background: #490648;
    color: white;
    padding: 80px 0 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 40px;
    margin-bottom: 60px;
}

.footer-info .footer-logo {
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 20px;
    color: white;
}

.footer-info p {
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 24px;
    max-width: 300px;
    font-size: 1rem;
}

.footer-heading {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 24px;
    color: white;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: var(--transition-fast);
}

.footer-links a:hover {
    color: white;
    padding-left: 5px;
}

.footer-contact li {
    display: flex;
    align-items: center;
    gap: 12px;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 16px;
}

.social-links {
    display: flex;
    gap: 15px;
}

.social-links a {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-decoration: none;
    transition: var(--transition-bounce);
    font-size: 1.1rem;
}

.social-links a:hover {
    background: white;
    color: #490648;
    transform: translateY(-5px);
}

.footer-bottom {
    background: #ffffff;
    padding: 25px 0;
    color: #5a4b7a;
    font-size: 0.9rem;
    margin-top: 60px;
}

.footer-bottom a {
    color: #5a4b7a;
    text-decoration: none;
    transition: var(--transition-fast);
}

.footer-bottom a:hover {
    color: var(--primary);
}

@media (max-width: 992px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 576px) {
    .footer-grid {
        grid-template-columns: 1fr;
    }

    .footer-bottom .container {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
}

/* ===================================
   Responsive Design
   =================================== */
@media (max-width: 1200px) {

    .container,
    .nav-container {
        padding: 0 40px;
    }

    h1 {
        font-size: 3.5rem;
    }

    .hero h1 {
        font-size: 4rem;
    }
}

/* Mobile Toggle Button */
.mobile-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 26px;
    height: 18px;
    background: transparent;
    border: none;
    cursor: pointer;
    z-index: 1100;
    padding: 0;
}

.mobile-toggle .bar {
    height: 3px;
    width: 100%;
    background-color: var(--text-light); /* Dark purple */
    border-radius: 10px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Hamburger animations when active */
.mobile-toggle.active .bar:nth-child(1) {
    transform: translateY(7.5px) rotate(45deg);
}

.mobile-toggle.active .bar:nth-child(2) {
    opacity: 0;
    transform: translateX(-10px);
}

.mobile-toggle.active .bar:nth-child(3) {
    transform: translateY(-7.5px) rotate(-45deg);
}

/* Slide-out navigation backdrop */
.nav-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.4);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s ease, visibility 0.4s ease;
    z-index: 999;
}

.nav-backdrop.active {
    opacity: 1;
    visibility: visible;
}

@media (max-width: 992px) {

    .pillars-grid,
    .job-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .services-grid {
        grid-template-columns: repeat(2, 1fr);
        align-items: start;
        /* Fix: Items align to top so they don't stretch */
    }

    .nav-links {
        gap: 25px;
    }
}

@media (max-width: 768px) {
    :root {
        --section-padding: 30px 0;
        --container-padding: 0 24px;
        --card-padding: 30px;
    }

    .container,
    .nav-container {
        padding: 0 24px;
    }

    h1 {
        font-size: 2.5rem;
    }

    h2 {
        font-size: 2rem;
    }

    .hero {
        min-height: 90vh;
    }

    .hero h1 {
        font-size: 2.75rem;
    }

    .hero-subheadline {
        font-size: 1.125rem;
    }

    .cta-container {
        flex-direction: column;
    }

    .btn {
        text-align: center;
    }

    .services-grid {
        grid-template-columns: 1fr;
        align-items: start;
        /* Fix for mobile too */
    }

    .form-grid {
        grid-template-columns: 1fr;
    }

    .form-container {
        padding: 30px 24px;
    }

    .mobile-toggle {
        display: flex;
    }

    .nav-links {
        display: flex;
        flex-direction: column;
        position: fixed;
        top: 0;
        right: -100%;
        width: 280px;
        height: 100vh;
        background: #ffffff;
        padding: 100px 30px 40px;
        box-shadow: -10px 0 30px rgba(0, 0, 0, 0.1);
        transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        z-index: 1050;
        gap: 30px;
        align-items: flex-start;
    }

    .nav-links.active {
        right: 0;
    }

    .nav-links a {
        font-size: 1.25rem;
    }
}

/* Values Carousel Section Styles */
.values-carousel-wrapper {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 500px;
    margin: 60px 0;
    position: relative;
    gap: 40px;
    margin-top: -50px;
    margin-left: -100px;
    margin-bottom: -50px;

}

.values-queue {
    flex: 0 0 400px;
    height: 550px;
    position: relative;
    display: block;
    /* Remove flex to allow absolute positioning of items */
}

.values-center-image {
    /* 1. Ensure the container itself is a circle to match the shadow */
    border-radius: 50%;

    /* 2. Remove overflow: hidden; so the shadow can spread outside the box */
    overflow: visible;

    /* 3. Use margin: auto or relative positioning instead of huge hardcoded margins 
       to prevent layout shifts, but keeping your logic for now: */
    margin-left: 240px;
    margin-top: 280px;
    height: 200px;
    width: 200px;

    transform: translate(-50%, -50%);
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
    animation: breathe 4s ease-in-out infinite;
}

.values-center-image img {
    width: 100%;
    height: 100%;
    /* Keep the image clipped to a circle even if container is visible */
    border-radius: 50%;
    object-fit: cover;
    /* Changed to cover to fill the circle better */
    opacity: 0.9;
    /* Optional: filter shadow can stay, but box-shadow on parent is cleaner */
}

@keyframes breathe {

    0%,
    100% {
        transform: translate(-50%, -50%) scale(1);
        /* Circular shadow */
        box-shadow: 0 0 25px rgba(94, 0, 102, 0.3);
    }

    50% {
        transform: translate(-50%, -50%) scale(1.08);
        /* Larger circular shadow */
        box-shadow: 0 0 60px rgba(150, 111, 214, 0.7);
    }
}

.value-circle-item {
    position: absolute;
    width: 90px;
    height: 90px;
    border-radius: 50%;
    background: #C8A2C8;
    /* Muted Lilac for inactive */
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
    z-index: 5;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.value-circle-item.active-small {
    background: #5e0066;
    /* Deep Purple for active */
    transform: scale(1.3) translateX(30px);
    box-shadow: 0 0 25px rgba(94, 0, 102, 0.4);
    z-index: 100;
    border: 3px solid rgba(255, 255, 255, 0.2);
}

.value-circle-item span.label-text {
    font-size: 0.75rem;
    color: white;
    font-weight: 500;
    text-align: center;
    line-height: 1.2;
    padding: 0 5px;
    transition: all 0.3s ease;
}

.value-circle-item.active-small span.label-text {
    font-size: 0.75rem;
    font-weight: 700;
}

.values-focal-point {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.active-value-card {
    width: 100%;
    max-width: 650px;
    padding: 60px;
    background: #ffffff;
    border-radius: 30px;
    box-shadow: 0 20px 60px rgba(51, 0, 102, 0.1);
    border: 1px solid rgba(0, 0, 0, 0.03);
    text-align: left;
    position: relative;
    overflow: hidden;
    transition: all 0.5s ease;
    z-index: 10;
}

.active-circle-glow {
    /* Removed large colored blob for cleaner look, sticking to shadow */
    display: none;
}

.active-content {
    position: relative;
    z-index: 2;
}

.active-content h3 {
    font-size: 3rem;
    margin-bottom: 24px;
    color: var(--primary);
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: slideInRight 0.6s ease-out;
}

.active-content p {
    font-size: 1.25rem;
    color: var(--text-gray);
    line-height: 1.8;
    animation: fadeInUp 0.8s ease-out;
}

@media (max-width: 992px) {
    /* ---- Values Carousel ---- */
    .values-carousel-wrapper {
        flex-direction: column;
        text-align: center;
        margin-left: 0;       /* Fix horizontal overflow */
        margin-right: 0;
        margin-top: 0;
        margin-bottom: 0;
        overflow: hidden;
    }

    .values-queue {
        flex: 0 0 auto;
        width: 100%;
        height: auto;
        min-height: 120px;
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        align-items: center;
        gap: 12px;
        padding: 20px 16px;
        position: static;       /* Disable absolute positioning context */
        overflow: hidden;
        margin-bottom: 24px;
    }

    /* Pills just flow as flex items; JS clears absolute styles */
    .value-circle-item {
        position: static;
        width: auto;
        height: auto;
        border-radius: 50px;
        padding: 10px 18px;
        font-size: 0.8rem;
    }

    .value-circle-item.active-small {
        transform: scale(1.05);
        transform-origin: center;
    }

    /* Hide the decorative center image – saves space */
    .values-center-image {
        display: none;
    }

    .active-value-card {
        padding: 40px 30px;
        max-width: 100%;
    }

    .active-content h3 {
        font-size: 2rem;
    }

    /* ---- Details container (course page) ---- */
    .details-container {
        grid-template-columns: 1fr;
    }

    .sidebar {
        position: static;
        height: auto;
    }
}

@media (max-width: 480px) {
    .hero h1 {
        font-size: 2rem;
    }

    h2 {
        font-size: 1.75rem;
    }

    /* Ensure cards don't overflow */
    .glass-card,
    .pillar-card,
    .service-card,
    .job-card {
        padding: 24px 18px;
    }

    .active-value-card {
        padding: 30px 20px;
    }

    .active-content h3 {
        font-size: 1.75rem;
    }

    /* Footer stack on tiny screens */
    .footer-grid {
        grid-template-columns: 1fr;
    }

    /* Nav CTA pill on small screens */
    .nav-cta {
        display: block;
        text-align: center;
        width: 100%;
    }
}