:root {
    --bg-dark: #0f172a;
    --bg-light: #f8fafc;
    --bg-card: #ffffff;
    --accent-blue: #0274be;
    --primary-color: #0274be;
    --primary-glow: rgba(2, 114, 190, 0.15);
    --background-color: #ffffff;
    --text-color: #1e293b;
    --text-muted: #475569;
    --glass-background: rgba(255, 255, 255, 0.9);
    --glass-border: 1px solid rgba(0, 0, 0, 0.1);
    --nav-height: 140px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: var(--background-color);
    color: var(--text-color);
    font-family: 'Inter', sans-serif;
    overflow-x: hidden;
    line-height: 1.7;
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-align: left;
    /* Ensure global left alignment */
}

html,
body {
    width: 100%;
    overflow-x: hidden;
    position: relative;
}

h1,
h2,
h3,
h4 {
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    color: var(--text-color);
}

/* Container definition moved to consolidate */

/* Custom Cursor */
#custom-cursor {
    position: fixed;
    width: 8px;
    height: 8px;
    background: var(--accent-blue);
    border-radius: 50%;
    pointer-events: none;
    z-index: 9999;
    transition: transform 0.1s ease;
}

/* Custom Cursor Follower */
#cursor-follower {
    position: fixed;
    width: 30px;
    height: 30px;
    border: 2px solid var(--accent-blue);
    border-radius: 50%;
    pointer-events: none;
    z-index: 9998;
    transition: transform 0.15s ease-out, background 0.3s, border-color 0.3s;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
    padding: 0 20px;
    /* Critical for mobile spacing */
}

/* Header & Navigation */
.main-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
}



.header-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 5px 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo img {
    height: 180px;
    /* Balanced size */
    width: auto;
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.05));
}

.logo:hover img {
    transform: scale(1.02);
}

.main-nav {
    display: flex;
    gap: 40px;
    align-items: center;
}

.nav-link {
    color: var(--text-muted);
    /* Default to dark text */
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    transition: all 0.3s ease;
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--accent-blue);
    transition: width 0.3s ease;
}

.nav-link:hover,
.nav-link.active {
    color: var(--accent-blue);
}

.nav-link.active::after {
    width: 100%;
}



.nav-progress {
    position: fixed;
    top: 0;
    left: 0;
    height: 2px;
    background: var(--accent-blue);
    z-index: 1001;
    width: 0%;
}

/* Hero Section */
#hero {
    min-height: 90vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
    padding-top: calc(var(--nav-height) + 50px);
    padding-bottom: 80px;
    background: radial-gradient(circle at center, #1e293b 0%, #020617 100%);
    /* Dark/Goth gradient */
    overflow: hidden;
    isolation: isolate;
    /* Create new stacking context */
}

section {
    padding: 100px 0;
    position: relative;
    /* Standard section spacing */
}

.section-shaded {
    background-color: var(--bg-light);
    border-top: 1px solid #e2e8f0;
    border-bottom: 1px solid #e2e8f0;
}

/* Hero Content - Positioned in the left region, left-aligned */
.hero-content {
    position: relative;
    z-index: 10;
}

.hero-content .container {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
    width: 65%;
    /* Occupy the left region */
    margin-left: 0;
    max-width: 800px;
}

.hero-content h1 {
    text-align: left;
    margin-bottom: 20px;
}

.hero-content p {
    text-align: left;
    margin-bottom: 40px;
}

#hero h1 {
    font-size: clamp(2.8rem, 10vw, 5.5rem);
    line-height: 1.05;
    margin-bottom: 25px;
    letter-spacing: -0.02em;
}

.hero-title-main {
    color: #ffffff;
    display: block;
    font-weight: 800;
}

.hero-title-gradient {
    display: block;
    margin-top: 5px;
}

#hero p {
    font-size: clamp(1.1rem, 4vw, 1.35rem);
    color: #e2e8f0;
    max-width: 800px;
    margin: 0 0 40px 0;
    font-weight: 400;
    line-height: 1.6;
}

.hero-shapes {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    /* Changed from -1 to 0 for visibility */
    overflow: hidden;
    pointer-events: none;
}

.shape {
    position: absolute;
    filter: blur(80px);
    border-radius: 50%;
    opacity: 0.4;
}

.shape-1 {
    width: 400px;
    height: 400px;
    background: var(--accent-blue);
    top: -100px;
    right: -100px;
    animation: float 15s infinite alternate;
}

.shape-2 {
    width: 300px;
    height: 300px;
    background: var(--accent-cyan);
    bottom: -50px;
    left: -50px;
    animation: float 12s infinite alternate-reverse;
}

@keyframes float {
    from {
        transform: translate(0, 0);
    }

    to {
        transform: translate(100px, 100px);
    }
}

/* Sliding Images Background */
.sliding-images-container {
    position: absolute;
    top: 0;
    right: 5%;
    /* Position on right */
    left: auto;
    /* Remove centering */
    transform: none;
    /* Remove centering */
    width: 45%;
    max-width: 600px;
    height: 100%;
    z-index: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    mask-image: linear-gradient(to bottom, transparent, black 15%, black 85%, transparent);
    -webkit-mask-image: linear-gradient(to bottom, transparent, black 15%, black 85%, transparent);
}

.sliding-images-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom,
            rgba(3, 7, 18, 1) 0%,
            rgba(3, 7, 18, 0.3) 20%,
            /* Slight tint in center for contrast */
            rgba(3, 7, 18, 0.3) 80%,
            rgba(3, 7, 18, 1) 100%);
    /* Dark fade, clear center for pop */
    z-index: 2;
    pointer-events: none;
    /* backdrop-filter removed to make images sharper/pop */
}

.sliding-column {
    display: flex;
    flex-direction: column;
    /* gap: 30px; Removed for seamless loop calculation */
    animation: slideUp 40s linear infinite;
    will-change: transform;
}

.slide-image {
    width: 500px;
    height: 350px;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
    flex-shrink: 0;
    position: relative;
    margin-bottom: 30px;
    /* Use margin instead of gap for perfect 50% division */
}

.slide-image::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(2, 116, 190, 0.15) 0%, rgba(0, 210, 255, 0.15) 100%);
    pointer-events: none;
}

.slide-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

@keyframes slideUp {
    0% {
        transform: translateY(0);
    }

    100% {
        transform: translateY(-50%);
    }
}

/* Pause animation on hover */
.sliding-images-container:hover .sliding-column {
    animation-play-state: paused;
}

/* Scroll Reveal */
.reveal {
    opacity: 0;
    filter: blur(10px);
    transform: translateY(30px);
    transition: all 1s cubic-bezier(0.17, 0.55, 0.55, 1);
}

.reveal.active {
    opacity: 1;
    filter: blur(0);
    transform: translateY(0);
}

/* 3D Tilt Reveal for Cards */
.card.reveal,
.info-card.reveal,
.glass-panel.reveal {
    transform: perspective(1500px) translateY(50px) rotateX(15deg) scale(0.95);
    opacity: 0;
    transition: all 1s cubic-bezier(0.17, 0.55, 0.55, 1);
}

.card.reveal.active,
.info-card.reveal.active,
.glass-panel.reveal.active {
    transform: perspective(1500px) translateY(0) rotateX(0) scale(1);
    opacity: 1;
}

.stagger-1 {
    transition-delay: 0.1s;
}

.stagger-2 {
    transition-delay: 0.2s;
}

.stagger-3 {
    transition-delay: 0.3s;
}

.stagger-4 {
    transition-delay: 0.4s;
}

.stagger-5 {
    transition-delay: 0.5s;
}

/* Horizontal Scroll Section */
#services {
    background: radial-gradient(circle at center, #1e293b 0%, #020617 100%);
    padding: 120px 0;
}

#services .container p {
    color: #cbd5e1;
    margin-top: 10px;
}

.horizontal-scroll-area {
    width: 100%;
    overflow-x: auto;
    overflow-y: hidden;
    cursor: grab;
    padding-bottom: 30px;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    /* Hide for Firefox */
    -ms-overflow-style: none;
    /* Hide for IE/Edge */
}

.horizontal-scroll-area::-webkit-scrollbar {
    display: none;
    /* Hide for Chrome/Safari */
}

.horizontal-scroll-area:active {
    cursor: grabbing;
}

.horizontal-wrapper {
    display: inline-flex;
    gap: 30px;
    padding: 20px 5%;
    transition: transform 0.1s ease-out;
}

.card {
    min-width: 400px;
    height: 500px;
    background: radial-gradient(circle at top left, #1e293b 0%, #020617 100%);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 40px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    position: relative;
    overflow: hidden;
    transition: transform 0.3s cubic-bezier(0.23, 1, 0.32, 1);
    transform-style: preserve-3d;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    color: #ffffff;
}

.card h3,
.card h4,
.card h5 {
    color: #ffffff !important;
}

.card p {
    color: #cbd5e1 !important;
}

#services .card {
    min-width: 320px;
    height: 420px;
    padding: 30px;
    scroll-snap-align: center;
}

#services .card::before {
    background: linear-gradient(to bottom, transparent 0%, rgba(2, 50, 90, 0.9) 100%);
}

#services .card p {
    color: rgba(255, 255, 255, 0.9) !important;
}

.gradient-text {
    background: linear-gradient(135deg, var(--accent-blue) 0%, #00d2ff 25%, #ffffff 50%, #00d2ff 75%, var(--accent-blue) 100%);
    background-size: 200% auto;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
    filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.5));
    animation: textShimmer 6s linear infinite;
}

@keyframes textShimmer {
    to {
        background-position: 200% center;
    }
}

.info-card {
    padding: 40px;
    background: linear-gradient(145deg, #1e293b 0%, #0f172a 100%);
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    transition: all 0.3s ease;
    color: #f1f5f9;
}

.info-card p,
.info-card ul li {
    color: #94a3b8 !important;
    /* Lighter grey for readability on dark */
}

.info-card h4 {
    color: #ffffff;
}

.info-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
    border-color: rgba(59, 130, 246, 0.3);
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, transparent 0%, rgba(3, 7, 18, 0.9) 100%);
    z-index: 1;
}

.card-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
    transition: transform 0.5s;
}

.card:hover .card-img {
    transform: scale(1.1);
}

.card-content {
    position: relative;
    z-index: 2;
    transform: translateZ(30px);
}

.card h3 {
    font-size: 1.5rem;
    margin-bottom: 10px;
    color: #ffffff;
}

.card p {
    font-size: 0.9rem;
    color: #94a3b8;
}

/* Kinetic Text */
.kinetic-header {
    overflow: hidden;
    display: inline-block;
}

.kinetic-header span {
    display: inline-block;
    transform: translateY(100%);
    transition: transform 0.8s cubic-bezier(0.77, 0, 0.175, 1);
}

.reveal.active .kinetic-header span {
    transform: translateY(0);
}

/* Buttons */
.btn-primary {
    display: inline-block;
    padding: 15px 40px;
    background: var(--accent-blue);
    color: white;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 10px 20px rgba(59, 130, 246, 0.2);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 30px rgba(59, 130, 246, 0.4);
    background: #2563eb;
}

.btn-magnetic {
    display: inline-block;
    padding: 15px 40px;
    background: var(--accent-blue);
    color: white;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    position: relative;
    overflow: hidden;
    transition: transform 0.2s;
}

.btn-magnetic::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 300%;
    height: 300%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.2) 0%, transparent 70%);
    transform: translate(-50%, -50%) scale(0);
    transition: transform 0.5s;
    pointer-events: none;
}

.btn-magnetic:hover::after {
    transform: translate(-50%, -50%) scale(1);
}

.cta-button {
    display: inline-block;
    width: 100%;
    padding: 15px;
    background: var(--accent-blue);
    color: white;
    border: none;
    border-radius: 10px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.cta-button:hover {
    background: #025da0;
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(2, 116, 190, 0.2);
}

.glass-panel {
    background: linear-gradient(145deg, rgba(30, 41, 59, 0.9) 0%, rgba(15, 23, 42, 0.9) 100%);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 40px 100px rgba(0, 0, 0, 0.3);
    color: #f1f5f9;
    transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
    border-radius: 30px;
    position: relative;
    /* overflow: hidden; */
}

/* .glass-panel::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(to right, var(--accent-blue), #00d2ff);
    opacity: 0.8;
} */

.glass-panel h3 {
    color: #ffffff !important;
    font-size: 1.5rem;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 15px;
}

.glass-panel p {
    color: #cbd5e1 !important;
    font-size: 1.05rem;
    margin-bottom: 25px;
}

.glass-panel ul {
    margin-bottom: 25px;
    padding-left: 20px;
    list-style: none;
}

.glass-panel ul li {
    color: #cbd5e1 !important;
    position: relative;
    padding-left: 25px;
    margin-bottom: 15px;
}

.glass-panel ul li::before {
    content: '→';
    position: absolute;
    left: 0;
    color: var(--accent-blue);
    font-weight: bold;
}

.affiliation-badge {
    cursor: pointer;
    perspective: 1000px;
    transform-style: preserve-3d;
}

.affiliation-badge:hover {
    transform: translateY(-12px) rotateX(8deg) rotateY(12deg);
    background: #ffffff;
    color: #020617;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.3);
    border-color: rgba(2, 116, 190, 0.2);
}

/* Consolidating .info-card - use rule defined earlier */

.info-card h3,
.info-card h4,
.info-card h5 {
    color: #ffffff !important;
}

.info-card p,
.info-card ul li {
    color: #cbd5e1 !important;
}

/* Footer */
/* Footer */
footer {
    padding: 100px 5%;
    background: #0f172a;
    /* Solid professional dark navy */
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    color: white;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 60px;
    margin-bottom: 60px;
    text-align: left;
}

.footer-section h4 {
    font-size: 1.1rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: white;
    margin-bottom: 25px;
    position: relative;
    display: inline-block;
}

.footer-section h4::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 30px;
    height: 2px;
    background: var(--accent-blue);
}

.footer-contact p,
.footer-contact a {
    color: #cbd5e1;
    margin-bottom: 12px;
    line-height: 1.6;
    display: block;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-contact a:hover {
    color: var(--accent-blue);
}

.footer-links-column {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.footer-links-column a {
    color: #cbd5e1;
    text-decoration: none;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.footer-links-column a:hover {
    color: var(--accent-blue);
    padding-left: 5px;
}

.social-icons-container {
    display: flex;
    gap: 15px;
}

.social-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    color: white;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.social-icon:hover {
    background: var(--accent-blue);
    transform: translateY(-5px);
    border-color: var(--accent-blue);
    box-shadow: 0 10px 20px rgba(2, 116, 190, 0.3);
}

.social-icon svg {
    width: 20px;
    height: 20px;
    stroke-width: 2px;
}

@media (max-width: 768px) {
    .footer-content {
        grid-template-columns: 1fr;
        gap: 50px;
    }

    .footer-section h4::after {
        left: 0;
        /* Keep left aligned on mobile too per request usually, or center? Let's stick to left for clean look */
    }
}


/* Mobile Adjustments */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 6px;
    cursor: pointer;
    z-index: 1001;
}

.mobile-menu-toggle span {
    width: 30px;
    height: 2px;
    background: var(--text-color);
    transition: all 0.3s ease;
}

.mobile-menu-toggle.active span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

.mobile-menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.active span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

/* Tablet/Small Laptop Adjustments */
@media (max-width: 992px) {
    .logo img {
        height: 80px;
        /* Smaller size for tablets to ensure nav fits */
        max-width: 70vw;
        object-fit: contain;
    }

    .main-header {
        height: auto;
    }

    .header-container {
        padding: 10px 20px;
    }

    .main-nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        height: 100vh;
        background: #ffffff;
        flex-direction: column;
        justify-content: center;
        gap: 50px;
        transition: right 0.5s ease;
        padding: 50px;
        border-left: 1px solid rgba(0, 0, 0, 0.05);
        box-shadow: -20px 0 50px rgba(0, 0, 0, 0.05);
    }

    .main-nav.active {
        right: 0;
    }

    .mobile-menu-toggle {
        display: flex;
    }

    .nav-link {
        font-size: 1.5rem;
    }

    /* Maintain Left Alignment on Mobile */
    .hero-content {
        text-align: left;
        width: 100%;
        padding: 0 20px;
    }

    .hero-content .container {
        align-items: flex-start;
        width: 100%;
        max-width: 100%;
    }

    .hero-content h1,
    .hero-content p {
        text-align: left;
        max-width: 100%;
        margin-left: 0;
        margin-right: 0;
    }

    .sliding-images-container {
        left: 0;
        right: 0;
        transform: none;
        width: 100%;
        opacity: 0.2;
        mask-image: linear-gradient(to bottom, transparent, black 25%, black 75%, transparent);
        -webkit-mask-image: linear-gradient(to bottom, transparent, black 25%, black 75%, transparent);
    }
}

@media (max-width: 768px) {
    * {
        cursor: auto !important;
    }

    #custom-cursor,
    #cursor-follower {
        display: none;
    }

    .card {
        min-width: 85vw;
        height: 380px;
        padding: 25px;
    }

    #hero h1 {
        font-size: 2.5rem;
    }

    .header-container {
        padding: 8px 15px;
    }

    .logo img {
        height: 60px;
        max-width: 60vw;
    }

    /* Mobile sliding images */
    .slide-image {
        width: 280px;
        height: 180px;
        margin-bottom: 15px;
    }

    section {
        padding: 50px 0;
    }

    .pillar-card {
        padding: 30px 20px;
        border-radius: 20px;
        gap: 30px;
    }
}

/* Pillar Content Responsiveness */
.pillar-text {
    flex: 1;
    min-width: 400px;
}

.pillar-image {
    flex: 1;
    min-width: 300px;
}

@media (max-width: 1100px) {

    .pillar-text,
    .pillar-image {
        min-width: 100%;
    }
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
    * {
        animation: none !important;
        transition: none !important;
        scroll-behavior: auto !important;
    }
}

/* --- Utility Classes per User Request (Moving Inline Styles) --- */

.grid-auto-fit {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
}

.grid-250 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.flex-responsive {
    display: flex;
    gap: 80px;
    align-items: flex-start;
    flex-wrap: wrap;
}

.flex-center-column {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    /* Changed from center to left per request */
    text-align: left;
}

.mt-25 {
    margin-top: 25px;
}

.mt-30 {
    margin-top: 30px;
}

.mt-40 {
    margin-top: 40px;
}

.mt-50 {
    margin-top: 50px;
}

.mt-60 {
    margin-top: 60px;
}

.mb-15 {
    margin-bottom: 15px;
}

.mb-25 {
    margin-bottom: 25px;
}

.mb-40 {
    margin-bottom: 40px;
}

.mb-50 {
    margin-bottom: 50px;
}

.mb-80 {
    margin-bottom: 80px;
}

.pd-20 {
    padding: 20px;
}

.pd-30 {
    padding: 30px;
}

.pd-40 {
    padding: 40px;
}

.pd-50 {
    padding: 50px;
}

.pd-60 {
    padding: 60px;
}

.pb-120 {
    padding-bottom: 120px;
}

.fw-500 {
    font-weight: 500;
}

.lh-1-3 {
    line-height: 1.3;
}

.lh-1-6 {
    line-height: 1.6;
}

.lh-1-8 {
    line-height: 1.8;
}

.font-0-8 {
    font-size: 0.8rem;
}

.font-0-85 {
    font-size: 0.85rem;
}

.font-0-9 {
    font-size: 0.9rem;
}

.font-1-1 {
    font-size: 1.1rem;
}

.font-1-2 {
    font-size: 1.2rem;
}

.font-1-3 {
    font-size: 1.3rem;
}

.font-2-2 {
    font-size: 2.2rem;
}

.list-none {
    list-style: none;
    padding: 0;
}

.list-bullet {
    padding-left: 20px;
    list-style: disc;
}

.grid-gap-10 {
    display: grid;
    gap: 10px;
}

.grid-gap-15 {
    display: grid;
    gap: 15px;
}

.grid-gap-20 {
    display: grid;
    gap: 20px;
}

.grid-gap-30 {
    display: grid;
    gap: 30px;
}

.grid-gap-40 {
    display: grid;
    gap: 40px;
}

.pillar-wrap-reverse {
    flex-wrap: wrap-reverse;
}

.align-stretch {
    align-items: stretch;
}

.flex-1-2 {
    flex: 1.2;
}

.full-width {
    width: 100%;
}

.h-450 {
    height: 450px;
}

.h-600 {
    height: 600px;
}

.bg-accent-soft {
    background: rgba(2, 116, 190, 0.03);
    border: 1px dashed rgba(2, 116, 190, 0.2);
}

.text-italic {
    font-style: italic;
}

.text-white {
    color: #ffffff !important;
}

.text-muted-white {
    color: rgba(255, 255, 255, 0.8) !important;
}

.text-muted-gray {
    color: #cbd5e1 !important;
}

.text-shadow-soft {
    text-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}

.letter-spacing-05 {
    letter-spacing: 0.5px;
}

.border-glass-card {
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

.rounded-30 {
    border-radius: 30px;
}

.border-glass-thin {
    border-color: var(--glass-border);
}

.contact-accent-link {
    color: var(--accent-blue);
    text-decoration: none;
    font-weight: 500;
}

.contact-accent-link:hover {
    text-decoration: underline;
}

.section-footer-rights {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 30px;
    text-align: left;
    /* Changed from center to left */
}

.footer-rights-text {
    font-size: 0.85rem;
    color: var(--text-muted);
    opacity: 0.8;
}

.pillar-image-container {
    width: 100%;
    height: 500px;
    background: var(--bg-card);
    border-radius: 30px;
    border: 1px solid var(--glass-border);
    overflow: hidden;
}

.pillar-image-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.8;
}

.affiliation-card-link {
    padding: 40px;
    text-decoration: none;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    /* Left align */
    text-align: left;
    /* Left align */
    transition: transform 0.3s ease;
}

.affiliation-logo-wrapper {
    background: white;
    padding: 20px;
    border-radius: 15px;
    width: 100%;
    height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 25px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.affiliation-logo-img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.text-hero-p {
    margin-top: 30px;
    font-size: 1.2rem;
    color: #1e293b;
    font-weight: 500;
    line-height: 1.6;
}

.text-muted-p {
    margin-top: 25px;
    color: #475569;
    line-height: 1.8;
}

.glass-panel-rounded {
    padding: 30px;
    border-radius: 20px;
}

.kinetic-header-center {
    text-align: left;
    /* Changed from center */
    margin-bottom: 80px;
}

@media (max-width: 768px) {

    .grid-auto-fit,
    .grid-250 {
        grid-template-columns: 1fr;
    }

    .flex-responsive {
        gap: 40px;
    }

    .pillar-image-container {
        height: 300px;
    }

    .pd-60 {
        padding: 30px;
    }

    .section-footer-rights {
        text-align: left;
    }
}

/* --- Legal Page Styles --- */
.bg-legal {
    padding-top: 150px;
    padding-bottom: 100px;
    background: radial-gradient(circle at 10% 20%, rgba(2, 116, 190, 0.05) 0%, transparent 40%), radial-gradient(circle at 90% 80%, rgba(0, 210, 255, 0.05) 0%, transparent 40%);
}

.legal-contact-link {
    color: var(--accent-blue);
    text-decoration: none;
    font-weight: 600;
}

/* --- Form Styles --- */
.contact-form {
    display: grid;
    gap: 20px;
}

.form-group {
    display: grid;
    gap: 10px;
}

.form-label {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #cbd5e1;
}

.form-input {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    padding: 15px;
    border-radius: 10px;
    color: var(--text-color);
    width: 100%;
    font-family: inherit;
}

.form-textarea {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    padding: 15px;
    border-radius: 10px;
    color: var(--text-color);
    width: 100%;
    height: 150px;
    resize: vertical;
    font-family: inherit;
}

/* Card Icons */
.card-icon {
    width: 48px;
    height: 48px;
    background: rgba(2, 116, 190, 0.1);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    color: var(--accent-blue);
    flex-shrink: 0;
}

.card-icon svg {
    width: 24px;
    height: 24px;
    stroke: currentColor;
    stroke-width: 2;
    fill: none;
}

.affiliation-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.3);
    border-color: rgba(2, 116, 190, 0.5);
    background: linear-gradient(145deg, rgba(30, 41, 59, 1) 0%, rgba(15, 23, 42, 1) 100%);
}

/* Pillar Cards Styling */
.pillar-card {
    background: #ffffff;
    padding: 80px;
    border-radius: 40px;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.05);
    border: 2px solid transparent;
    transition: all 0.5s cubic-bezier(0.23, 1, 0.32, 1);
    display: flex;
    gap: 80px;
    align-items: flex-start;
    /* Ensure left alignment */
    flex-wrap: wrap;
    margin-bottom: 80px;
}

.pillar-card:hover {
    border-color: var(--accent-blue);
    transform: translateY(-8px);
    box-shadow: 0 40px 100px rgba(2, 114, 190, 0.12);
}

.pillar-card h2,
.pillar-card h3 {
    color: #1e293b !important;
}

.pillar-card p,
.pillar-card ul li {
    color: #475569 !important;
}

@media (max-width: 992px) {
    .pillar-card {
        padding: 40px;
        gap: 40px;
    }
}

.pillar-card h2,
.pillar-card h3 {
    font-size: clamp(1.5rem, 5vw, 2.2rem) !important;
    line-height: 1.3;
    margin-bottom: 20px;
}

@media (max-width: 480px) {
    #hero {
        padding-top: 140px;
        padding-bottom: 40px;
    }

    .pillar-card {
        padding: 25px 15px;
    }
}