/* ==========================================================================
   1. CORE SETUP & VARIABLES
   ========================================================================== */
:root {
    --forest: #1F3528;
    --leaf: #2F4F3A;
    --mint: #CFEDE1;
    --cream: #F6F1E7;
    --sage: #9FB7A9;
    --white: #FFFFFF;
    --shadow-soft: 0 10px 40px rgba(31, 53, 40, 0.06);
    --shadow-hover: 0 20px 50px rgba(31, 53, 40, 0.12);
    --transition-smooth: all 0.5s cubic-bezier(0.23, 1, 0.32, 1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--cream);
    color: var(--forest);
    line-height: 1.7;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-weight: 700;
    line-height: 1.1;
}

img { max-width: 100%; height: auto; }

.container {
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 32px;
}

.section-padding { padding: 120px 0; }
.bg-soft-mint { background-color: var(--mint); }
.bg-white { background-color: var(--white); }
.center-header { text-align: center; margin-bottom: 80px; }

.badge {
    display: inline-block;
    padding: 8px 18px;
    background: rgba(31, 53, 40, 0.05);
    color: var(--leaf);
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 700;
    margin-bottom: 24px;
    text-transform: uppercase;
    letter-spacing: 1.5px;
}

/* ==========================================================================
   2. HEADER & NAVIGATION
   ========================================================================== */
.header {
    padding: 16px 0;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    backdrop-filter: blur(15px);
    background: rgba(246, 241, 231, 0.85);
    border-bottom: 1px solid rgba(31, 53, 40, 0.04);
    transition: var(--transition-smooth);
}

.nav-wrapper {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo-img { 
    height: 48px;
    background: var(--forest);
    padding: 8px 8px;
    border-radius: 8px;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 40px;
}

.nav-links a {
    text-decoration: none;
    color: var(--forest);
    font-weight: 500;
    font-size: 0.95rem;
    transition: 0.3s;
    position: relative;
    opacity: 0.8;
}

.nav-links a:hover,
.nav-links a.active { opacity: 1; color: var(--leaf); }

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--leaf);
    transition: width 0.3s ease;
}

.nav-links a:hover::after,
.nav-links a.active::after { width: 100%; }

/* Mobile Navigation Toggle - Positioned top right */
.mobile-nav-toggle {
    display: none;
    background: var(--forest);
    color: var(--white);
    border: none;
    padding: 12px;
    border-radius: 12px;
    cursor: pointer;
    z-index: 2001;
}

/* ==========================================================================
   3. HERO & CAROUSEL (Restored Logic)
   ========================================================================== */
.hero-section {
    padding: 180px 0 120px;
    background: radial-gradient(circle at top right, #E0F5EE 0%, var(--cream) 60%);
}

/* Sub-page variation */
.modern-hero { text-align: center; }

/* Grid for index.html hero */
.hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.display-title {
    font-size: clamp(2.8rem, 5.5vw, 4.8rem);
    margin-bottom: 28px;
    letter-spacing: -0.02em;
}

.text-gradient {
    background: linear-gradient(90deg, var(--forest), var(--sage));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-lead {
    font-size: 1.25rem;
    opacity: 0.85;
    margin-bottom: 40px;
    max-width: 540px;
}

.hero-actions { display: flex; gap: 20px; }

/* Carousel Engine - Restored absolute positioning */
.carousel-container {
    position: relative;
    height: 550px;
    border-radius: 40px;
    overflow: hidden;
    box-shadow: var(--shadow-soft);
}

.carousel-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 1.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.carousel-slide.active { opacity: 1; z-index: 5; }

.carousel-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.85);
    transition: transform 8s linear;
}

.carousel-slide.active .carousel-img { transform: scale(1.1); }

.carousel-content {
    position: absolute;
    bottom: 40px;
    left: 40px;
    z-index: 10;
}

.carousel-content h3 {
    font-size: 1.2rem;
    color: var(--forest);
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    padding: 14px 32px;
    border-radius: 100px;
    font-weight: 600;
}

.grid-overlay {
    position: absolute;
    inset: 0;
    background-image: radial-gradient(rgba(255,255,255,0.15) 1px, transparent 1px);
    background-size: 40px 40px;
    pointer-events: none;
}

/* ==========================================================================
   4. METHODOLOGY & CARDS
   ========================================================================== */
.methodology-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 32px;
    margin-top: 60px;
}

.methodology-card {
    background: var(--white);
    padding: 48px;
    border-radius: 32px;
    border: 1px solid rgba(31, 53, 40, 0.05);
    transition: var(--transition-smooth);
    position: relative;
}

.step-number {
    position: absolute;
    top: -10px;
    right: -5px;
    font-size: 4rem;
    font-weight: 800;
    color: var(--forest);
    opacity: 0.04;
}

.card-icon {
    width: 64px; height: 64px;
    background: var(--mint);
    border-radius: 18px;
    display: flex; align-items: center; justify-content: center;
    margin-bottom: 32px;
    color: var(--forest);
}

.methodology-card:hover {
    transform: translateY(-15px);
    border-color: var(--sage);
    box-shadow: var(--shadow-hover);
}

/* ==========================================================================
   5. ORBITAL TEAM LAYOUT (Teams Page Exclusive)
   ========================================================================== */
.orbital-container {
    padding: 60px 0;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 850px;
}

.orbital-wrapper {
    position: relative;
    width: 800px;
    height: 800px;
}

.orbital-center {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 10;
}

.meet-label {
    background: var(--leaf);
    padding: 30px 45px;
    border-radius: 20px;
    color: white;
    box-shadow: 0 15px 35px rgba(31, 53, 40, 0.2);
    border: 4px solid var(--mint);
    transform: rotate(-2deg);
    text-align: center;
}

.meet-label span { display: block; font-family: 'Plus Jakarta Sans', sans-serif; font-weight: 800; line-height: 1; }
.meet-label .btm-txt { font-size: 2.8rem; color: var(--mint); }

.team-node {
    position: absolute;
    width: 180px;
    z-index: 5;
    text-align: center;
    transform: translate(-50%, -50%);
}

.node-img-wrapper {
    width: 155px; height: 155px;
    border-radius: 50%;
    border: 6px solid var(--leaf);
    overflow: hidden;
    margin: 0 auto 15px;
    background: var(--white);
    box-shadow: var(--shadow-soft);
}

.node-img-wrapper img { width: 100%; height: 100%; object-fit: cover; }

/* Positioning Nodes around circle */
.node-1 { top: 10%; left: 50%; }   .node-2 { top: 23%; left: 78%; }
.node-3 { top: 50%; left: 88%; }   .node-4 { top: 77%; left: 78%; }
.node-5 { top: 90%; left: 50%; }   .node-6 { top: 77%; left: 22%; }
.node-7 { top: 50%; left: 12%; }   .node-8 { top: 23%; left: 22%; }

/* ==========================================================================
   6. CTA SECTIONS (Merged)
   ========================================================================== */
/* Generic CTA for other pages */
.cta-card {
    background: var(--forest);
    padding: 80px 60px;
    border-radius: 48px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--cream);
    gap: 40px;
}

/* Premium variation for Teams Recruitment */
.premium-cta-card {
    background: var(--forest);
    border-radius: 40px;
    padding: 80px;
    position: relative;
    overflow: hidden;
    color: var(--cream);
}

.cta-inner-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    z-index: 2;
    gap: 40px;
}

.btn {
    display: inline-flex;
    align-items: center;
    padding: 18px 40px;
    border-radius: 16px;
    font-weight: 700;
    text-decoration: none;
    transition: 0.4s;
}

.btn-primary { background: var(--forest); color: var(--cream); }
.btn-outline { background: var(--white); color: var(--forest); }
.btn-mint { background: var(--mint); color: var(--forest); }
.btn-white { background: var(--white); color: var(--forest); }

.btn:hover { transform: translateY(-4px); box-shadow: 0 12px 24px rgba(0,0,0,0.1); }

/* ==========================================================================
   7. ANIMATIONS & REVEALS
   ========================================================================== */
.reveal {
    opacity: 0;
    transform: translateY(50px);
    transition: all 1s cubic-bezier(0.23, 1, 0.32, 1);
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ==========================================================================
   8. FOOTER (Centralized Socials)
   ========================================================================== */
.footer-main {
    background: var(--forest);
    padding: 120px 0 60px;
    color: var(--cream);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 2fr 1fr;
    gap: 60px;
    margin-bottom: 80px;
}

.footer-social-central {
    text-align: center;
}

.social-icons, .social-horizontal {
    display: flex;
    justify-content: center;
    gap: 16px;
    margin-top: 20px;
}

.social-icons a, .social-horizontal a {
    width: 48px; height: 48px;
    border-radius: 50%;
    background: rgba(255,255,255,0.08);
    display: flex; align-items: center; justify-content: center;
    color: var(--cream);
    transition: 0.3s;
}

.social-icons a:hover, .social-horizontal a:hover {
    background: var(--mint);
    color: var(--forest);
    transform: translateY(-5px);
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 40px;
    display: flex;
    justify-content: space-between;
    opacity: 0.6;
}

/* ==========================================================================
   9. RESPONSIVENESS
   ========================================================================== */
@media (max-width: 992px) {
    .hero-grid { grid-template-columns: 1fr; text-align: center; }
    .hero-lead { margin: 0 auto 40px; }
    .hero-actions { justify-content: center; }
    .cta-card, .cta-inner-content { flex-direction: column; text-align: center; }
    .footer-grid { grid-template-columns: 1fr; text-align: center; }
    .orbital-wrapper { transform: scale(0.7); }
    .orbital-container { min-height: 600px; }
}

@media (max-width: 768px) {
    .mobile-nav-toggle { display: block; position: absolute; right: 32px; top: 20px; }
    
    .main-nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 100%;
        height: 100vh;
        background: var(--cream);
        display: flex;
        align-items: center;
        justify-content: center;
        transition: 0.6s cubic-bezier(0.77, 0, 0.175, 1);
        z-index: 1500;
    }
    
    .main-nav.active { right: 0; }
    .nav-links { flex-direction: column; text-align: center; gap: 32px; }
    .nav-links a { font-size: 2rem; font-weight: 700; }
    
    .orbital-wrapper { transform: scale(0.45); }
    .orbital-container { min-height: 400px; }
}
