/* ==========================================================================
   DESIGN SYSTEM & VARIABLES (African Modern Premium)
   ========================================================================== */
:root {
    /* Color Palette */
    --primary: #B85C38;            /* Terracotta */
    --primary-hover: #9C4724;
    --primary-light: rgba(184, 92, 56, 0.08);
    --accent: #D6A84F;             /* Soft Gold */
    --accent-hover: #C5983E;
    --accent-light: rgba(214, 168, 79, 0.1);
    
    --bg-primary: #F8F4EC;         /* Ivory */
    --bg-card: #FFFDF8;            /* Off-white */
    --bg-dark: #1E1A17;            /* Warm Dark Brown/Black */
    --bg-dark-light: #2A2521;
    
    --text-primary: #111111;       /* Deep Black */
    --text-secondary: #5F5A54;     /* Warm Gray */
    --text-light: #F8F4EC;         /* Light Ivory for dark backgrounds */
    
    --border-light: #E6DED2;       /* Beige grisé */
    --border-dark: #3A332E;
    
    /* Typography */
    --font-title: 'Sora', sans-serif;
    --font-body: 'Manrope', sans-serif;
    
    /* Transitions & Shadows */
    --transition-smooth: 0.35s cubic-bezier(0.25, 1, 0.5, 1);
    --transition-fast: 0.2s ease;
    --shadow-soft: 0 12px 40px rgba(30, 26, 23, 0.04);
    --shadow-hover: 0 20px 40px rgba(184, 92, 56, 0.08);
    --shadow-header: 0 4px 30px rgba(30, 26, 23, 0.02);
    
    /* Border Radii */
    --radius-sm: 6px;
    --radius-md: 12px;
    --radius-lg: 20px;
    
    /* Grid & Layout */
    --max-width: 1200px;
}

/* ==========================================================================
   RESET & BASE STYLES
   ========================================================================== */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--font-body);
    background-color: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: inherit;
    text-decoration: none;
    transition: var(--transition-fast);
}

ul {
    list-style: none;
}

button, input, select, textarea {
    font-family: inherit;
    font-size: inherit;
    color: inherit;
    background: none;
    border: none;
}

button {
    cursor: pointer;
}

/* ==========================================================================
   REUSABLE UTILITIES & LAYOUTS
   ========================================================================== */
.container {
    width: 100%;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 24px;
}

.grid-2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 48px;
    align-items: center;
}

.grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}

.grid-5 {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 20px;
}

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

.bg-card-white {
    background-color: var(--bg-card);
}

.bg-body-beige {
    background-color: var(--bg-primary);
}

/* Section Common Styling */
section {
    padding: 100px 0;
    position: relative;
    z-index: 1;
}

.section-header {
    margin-bottom: 60px;
}

.section-tag {
    font-family: var(--font-title);
    font-weight: 700;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--primary);
    display: inline-block;
    margin-bottom: 12px;
}

.section-title {
    font-family: var(--font-title);
    font-weight: 700;
    font-size: 2.25rem;
    color: var(--text-primary);
    line-height: 1.3;
}

.title-underline {
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, var(--primary), var(--accent));
    margin: 16px auto 0;
    border-radius: 2px;
}

.section-header.text-left .title-underline {
    margin: 16px 0 0;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 28px;
    font-family: var(--font-title);
    font-weight: 600;
    font-size: 0.95rem;
    border-radius: var(--radius-md);
    transition: var(--transition-smooth);
    border: 2px solid transparent;
}

.btn-primary {
    background-color: var(--primary);
    color: var(--bg-card);
    box-shadow: 0 4px 15px rgba(184, 92, 56, 0.2);
}

.btn-primary:hover {
    background-color: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(184, 92, 56, 0.3);
}

.btn-primary:active {
    transform: translateY(0);
}

.btn-secondary {
    border-color: var(--primary);
    color: var(--primary);
    background-color: transparent;
}

.btn-secondary:hover {
    background-color: var(--primary-light);
    transform: translateY(-2px);
}

.btn-secondary-white {
    border-color: var(--border-light);
    color: var(--text-primary);
    background-color: rgba(255, 255, 255, 0.4);
    backdrop-filter: blur(5px);
}

.btn-secondary-white:hover {
    background-color: rgba(255, 255, 255, 0.8);
    border-color: var(--primary);
    transform: translateY(-2px);
}

.btn-block {
    display: flex;
    width: 100%;
}

.disabled-btn {
    background-color: #EAE5DD;
    border-color: #EAE5DD;
    color: #A09A92;
    cursor: not-allowed;
}

/* ==========================================================================
   HEADER & NAVIGATION
   ========================================================================== */
#main-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 90px;
    z-index: 100;
    display: flex;
    align-items: center;
    border-bottom: 1px solid var(--border-light);
    transition: var(--transition-smooth);
}

.header-glass {
    background-color: rgba(248, 244, 236, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

#main-header.scrolled {
    height: 80px;
    background-color: rgba(248, 244, 236, 0.95);
    box-shadow: var(--shadow-header);
}

.header-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
}

.logo-img {
    height: 60px;
    width: auto;
    object-fit: contain;
    transition: var(--transition-smooth);
}

#main-header.scrolled .logo-img {
    height: 48px;
}

.nav-links {
    display: flex;
    gap: 36px;
}

.nav-link {
    font-family: var(--font-title);
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--text-secondary);
    position: relative;
    padding: 8px 0;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary);
    transition: var(--transition-smooth);
}

.nav-link:hover {
    color: var(--text-primary);
}

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

.nav-link.active {
    color: var(--primary);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 20px;
}

/* Hamburger Menu Button */
.hamburger {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 26px;
    height: 18px;
    z-index: 110;
}

.hamburger-bar {
    width: 100%;
    height: 2px;
    background-color: var(--text-primary);
    border-radius: 2px;
    transition: var(--transition-smooth);
}

.hamburger[aria-expanded="true"] .hamburger-bar:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

.hamburger[aria-expanded="true"] .hamburger-bar:nth-child(2) {
    opacity: 0;
}

.hamburger[aria-expanded="true"] .hamburger-bar:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

/* Mobile Navigation Drawer */
.mobile-drawer {
    position: fixed;
    top: 0;
    right: -100%;
    width: 80%;
    max-width: 400px;
    height: 100vh;
    background-color: var(--bg-card);
    z-index: 95;
    padding: 120px 40px 40px;
    box-shadow: -10px 0 40px rgba(0, 0, 0, 0.05);
    transition: var(--transition-smooth);
    display: flex;
    flex-direction: column;
}

.mobile-drawer.open {
    right: 0;
}

.mobile-links {
    display: flex;
    flex-direction: column;
    gap: 28px;
}

.mobile-link {
    font-family: var(--font-title);
    font-weight: 600;
    font-size: 1.15rem;
    color: var(--text-primary);
    display: block;
    padding: 8px 0;
}

.mobile-link.btn {
    text-align: center;
    margin-top: 20px;
    color: var(--bg-card);
}

/* ==========================================================================
   HERO SECTION
   ========================================================================== */
.hero-section {
    padding-top: 180px;
    padding-bottom: 60px;
    background: linear-gradient(180deg, rgba(248, 244, 236, 1) 0%, rgba(253, 253, 251, 1) 100%);
    overflow: hidden;
}

.hero-tag {
    font-family: var(--font-title);
    font-weight: 800;
    font-size: 0.9rem;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 3px;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.hero-tag::after {
    content: '';
    width: 40px;
    height: 2px;
    background-color: var(--accent);
}

.hero-title {
    font-family: var(--font-title);
    font-weight: 800;
    font-size: 3.5rem;
    line-height: 1.15;
    color: var(--text-primary);
    margin-bottom: 24px;
    letter-spacing: -1px;
}

.hero-description {
    font-size: 1.15rem;
    color: var(--text-secondary);
    margin-bottom: 40px;
    max-width: 520px;
    line-height: 1.65;
}

.hero-buttons {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

/* Hero Network Visual */
.hero-visual {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.kora-network-container {
    position: relative;
    width: 100%;
    max-width: 460px;
    aspect-ratio: 1;
}

.kora-svg {
    width: 100%;
    height: 100%;
    filter: drop-shadow(0 15px 35px rgba(184, 92, 56, 0.05));
}

/* Floating Badges in Hero */
.floating-badge {
    position: absolute;
    background-color: var(--bg-card);
    color: var(--text-primary);
    font-family: var(--font-title);
    font-weight: 600;
    font-size: 0.85rem;
    padding: 10px 18px;
    border-radius: 30px;
    box-shadow: 0 8px 24px rgba(30, 26, 23, 0.06);
    border: 1px solid var(--border-light);
    display: flex;
    align-items: center;
    gap: 8px;
    transition: var(--transition-smooth);
    animation: floating-badge-anim 6s ease-in-out infinite alternate;
}

.floating-badge::before {
    content: '';
    width: 8px;
    height: 8px;
    border-radius: 50%;
}

.fb-1 {
    top: 15%;
    left: 0%;
    animation-delay: 0s;
}
.fb-1::before { background-color: var(--primary); }

.fb-2 {
    top: 12%;
    right: 2%;
    animation-delay: 1.5s;
}
.fb-2::before { background-color: var(--accent); }

.fb-3 {
    bottom: 18%;
    left: -5%;
    animation-delay: 3s;
}
.fb-3::before { background-color: var(--bg-dark); }

.fb-4 {
    bottom: 15%;
    right: 0%;
    animation-delay: 4.5s;
}
.fb-4::before { background-color: var(--primary); }

.floating-badge:hover {
    transform: scale(1.05) translateY(-5px);
    box-shadow: 0 12px 30px rgba(184, 92, 56, 0.12);
    border-color: var(--primary);
}

/* Curve Separator */
.section-separator-curve {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    line-height: 0;
    z-index: 2;
}

.section-separator-curve svg {
    display: block;
    width: 100%;
    height: 80px;
}

/* ==========================================================================
   ABOUT SECTION
   ========================================================================== */
.about-section {
    padding-top: 120px;
}

.about-intro {
    max-width: 800px;
    margin: 0 auto 64px;
    text-align: center;
}

.lead-text {
    font-size: 1.35rem;
    line-height: 1.7;
    color: var(--text-primary);
    margin-bottom: 24px;
    font-weight: 500;
}

.body-text {
    font-size: 1.05rem;
    color: var(--text-secondary);
    margin-bottom: 20px;
    line-height: 1.7;
}

/* Values Grid */
.values-grid {
    margin-top: 48px;
    position: relative;
    padding: 20px 0;
}

/* Subtle horizontal line behind the cards that looks like a kora bridge string */
.values-grid::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--border-light) 20%, var(--primary-light) 50%, var(--border-light) 80%, transparent);
    z-index: 0;
    pointer-events: none;
}

.value-card {
    background-color: var(--bg-card);
    padding: 40px 32px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-soft);
    border-top: 4px solid transparent;
    transition: var(--transition-smooth);
    position: relative;
    z-index: 1;
}

.value-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-hover);
}

.value-card.border-terracotta { border-top-color: var(--primary); }
.value-card.border-gold { border-top-color: var(--accent); }
.value-card.border-dark { border-top-color: var(--bg-dark); }

.card-header-layout {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    width: 100%;
}

.value-icon-container {
    width: 56px;
    height: 56px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
}

.kora-strings-decor {
    display: flex;
    gap: 5px;
    height: 36px;
    align-items: flex-end;
}

.string-line {
    width: 1.5px;
    border-radius: 1px;
    transform-origin: bottom;
    transition: height var(--transition-smooth), opacity var(--transition-smooth);
    opacity: 0.35;
}

.sl-1 { height: 15px; background-color: var(--primary); }
.sl-2 { height: 25px; background-color: var(--accent); }
.sl-3 { height: 35px; background-color: var(--primary); }
.sl-4 { height: 20px; background-color: var(--accent); }
.sl-5 { height: 30px; background-color: var(--bg-dark); }

/* Plucking vibration effect */
.value-card:hover .string-line {
    animation: pluck-vibration 0.8s cubic-bezier(0.25, 1, 0.5, 1);
    opacity: 0.85;
}

.value-card:hover .sl-1 { animation-delay: 0s; }
.value-card:hover .sl-2 { animation-delay: 0.05s; }
.value-card:hover .sl-3 { animation-delay: 0.1s; }
.value-card:hover .sl-4 { animation-delay: 0.15s; }
.value-card:hover .sl-5 { animation-delay: 0.2s; }

@keyframes pluck-vibration {
    0% { transform: scaleX(1) rotate(0deg); }
    15% { transform: scaleX(2) rotate(6deg) translateX(2px); }
    30% { transform: scaleX(0.5) rotate(-5deg) translateX(-2px); }
    45% { transform: scaleX(1.6) rotate(3deg) translateX(1px); }
    60% { transform: scaleX(0.7) rotate(-2deg) translateX(-1px); }
    75% { transform: scaleX(1.2) rotate(1deg) translateX(0.5px); }
    90% { transform: scaleX(0.9) rotate(-0.5deg) translateX(-0.2px); }
    100% { transform: scaleX(1) rotate(0deg); }
}

.bg-terracotta-light { background-color: var(--primary-light); }
.bg-gold-light { background-color: var(--accent-light); }
.bg-dark-light { background-color: rgba(30, 26, 23, 0.05); }

.value-card h3 {
    font-family: var(--font-title);
    font-size: 1.35rem;
    font-weight: 700;
    margin-bottom: 16px;
    color: var(--text-primary);
}

.value-card p {
    color: var(--text-secondary);
    font-size: 0.98rem;
    line-height: 1.6;
}

/* ==========================================================================
   SERVICES SECTION (Nos domaines)
   ========================================================================== */
.services-grid {
    margin-top: 40px;
}

.service-card {
    background-color: var(--bg-card);
    padding: 30px 24px;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-light);
    transition: var(--transition-smooth);
    display: flex;
    flex-direction: column;
    height: 100%;
}

.service-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary);
    box-shadow: var(--shadow-soft);
}

.service-icon {
    width: 48px;
    height: 48px;
    color: var(--primary);
    margin-bottom: 20px;
    transition: var(--transition-smooth);
}

.service-card:hover .service-icon {
    transform: scale(1.1);
    color: var(--accent);
}

.service-card h3 {
    font-family: var(--font-title);
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--text-primary);
}

.service-card p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.55;
    flex-grow: 1;
}

/* ==========================================================================
   PROJECTS SECTION
   ========================================================================== */
.projects-journey-timeline {
    position: relative;
    margin-top: 60px;
    padding: 20px 0;
}

/* Journey SVG & Winding Path styles */
.journey-svg-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
}

.journey-winding-svg {
    width: 100%;
    height: 100%;
    display: block;
}

.desktop-only {
    display: block;
}

.mobile-only {
    display: none;
}

/* Winding / curved line representing the journey */
.journey-line {
    position: absolute;
    top: 50px; /* Aligned with the nodes */
    left: 0;
    width: 100%;
    height: 3px;
    background: repeating-linear-gradient(90deg, var(--border-light), var(--border-light) 12px, transparent 12px, transparent 24px);
    z-index: 1;
}

/* Adding a gradient indicator to the journey line */
.journey-line::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, var(--primary) 0%, var(--accent) 50%, var(--primary) 100%);
    opacity: 0.35;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
    margin-top: 40px;
    position: relative;
    z-index: 2;
}

.journey-step {
    padding-top: 80px; /* Space for the node above */
    position: relative;
}

.journey-node {
    position: absolute;
    top: -24px; /* Sits directly on the journey line */
    left: 50%;
    transform: translateX(-50%);
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background-color: var(--bg-card);
    border: 3px solid var(--border-light);
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-title);
    font-weight: 800;
    font-size: 1.1rem;
    box-shadow: var(--shadow-soft);
    z-index: 3;
    transition: var(--transition-smooth);
}

/* Hover effects for journey card */
.journey-step:hover .journey-node {
    background-color: var(--primary);
    border-color: var(--accent);
    color: var(--bg-card);
    transform: translateX(-50%) scale(1.15);
    box-shadow: 0 0 15px rgba(184, 92, 56, 0.4);
}

.journey-step[data-step="1"] .journey-node { border-color: var(--primary); }
.journey-step[data-step="2"] .journey-node { border-color: var(--accent); }
.journey-step[data-step="3"] .journey-node { border-color: var(--bg-dark); }

.project-card {
    background-color: var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    padding: 40px;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: var(--transition-smooth);
    min-height: 320px;
    overflow: visible;
}

.project-card:hover {
    border-color: var(--primary);
    box-shadow: var(--shadow-hover);
    transform: translateY(-4px);
}

/* Kora strings decor in project cards */
.project-card::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 150px;
    height: 100%;
    background: linear-gradient(90deg, rgba(255, 255, 255, 0) 0%, rgba(214, 168, 79, 0.03) 100%);
    border-left: 1px dashed rgba(230, 222, 210, 0.3);
    pointer-events: none;
    z-index: 1;
    border-top-right-radius: var(--radius-lg);
    border-bottom-right-radius: var(--radius-lg);
}

.project-badge {
    position: absolute;
    top: 40px;
    right: 40px;
    font-family: var(--font-title);
    font-weight: 700;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 6px 14px;
    border-radius: 20px;
    z-index: 2;
}

.status-active {
    background-color: rgba(46, 117, 89, 0.1);
    color: #2E7559;
}

.status-progress {
    background-color: rgba(184, 92, 56, 0.1);
    color: var(--primary);
}

.status-rd {
    background-color: rgba(30, 26, 23, 0.05);
    color: var(--bg-dark);
}

.project-card-header {
    margin-bottom: 20px;
    max-width: 70%;
}

.project-category {
    font-family: var(--font-title);
    font-weight: 700;
    font-size: 0.8rem;
    text-transform: uppercase;
    color: var(--accent);
    letter-spacing: 1px;
    display: block;
    margin-bottom: 6px;
}

.project-title {
    font-family: var(--font-title);
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1.2;
}

.project-description {
    color: var(--text-secondary);
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 32px;
    flex-grow: 1;
    z-index: 2;
}

.project-card-footer {
    z-index: 2;
}

.project-action-btn {
    padding: 10px 20px;
    font-size: 0.88rem;
}

/* ==========================================================================
   RECRUITMENT SECTION (Rejoindre)
   ========================================================================== */
.join-info-side {
    padding-right: 20px;
}

.join-info-side .section-title {
    margin-bottom: 30px;
}

.profiles-list {
    margin-top: 40px;
}

.profiles-list h4 {
    font-family: var(--font-title);
    font-size: 1.05rem;
    font-weight: 700;
    margin-bottom: 16px;
}

.tags-container {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.profile-tag {
    background-color: var(--bg-card);
    border: 1px solid var(--border-light);
    color: var(--text-primary);
    padding: 8px 16px;
    border-radius: 30px;
    font-size: 0.85rem;
    font-weight: 600;
    transition: var(--transition-fast);
}

.profile-tag:hover {
    border-color: var(--primary);
    color: var(--primary);
    background-color: var(--primary-light);
}

/* Form Styles */
.form-wrapper {
    background-color: var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    padding: 40px;
    box-shadow: var(--shadow-soft);
}

.form-wrapper h3 {
    font-family: var(--font-title);
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 6px;
}

.form-intro {
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin-bottom: 30px;
}

.premium-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
    width: 100%;
}

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

.premium-form label {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.premium-form input[type="text"],
.premium-form input[type="email"],
.premium-form input[type="tel"],
.premium-form input[type="url"],
.premium-form select,
.premium-form textarea {
    width: 100%;
    padding: 14px 18px;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-light);
    background-color: var(--bg-primary);
    color: var(--text-primary);
    font-family: var(--font-body);
    font-size: 0.95rem;
    transition: var(--transition-fast);
}

.premium-form input:focus,
.premium-form select:focus,
.premium-form textarea:focus {
    outline: none;
    border-color: var(--primary);
    background-color: var(--bg-card);
    box-shadow: 0 0 0 3px rgba(184, 92, 56, 0.1);
}

.premium-form select {
    appearance: none;
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%235F5A54' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><polyline points='6 9 12 15 18 9'></polyline></svg>");
    background-repeat: no-repeat;
    background-position: right 16px center;
    background-size: 16px;
    padding-right: 40px;
}

/* File Input */
.file-input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    gap: 12px;
    border: 1px dashed var(--border-light);
    padding: 12px 18px;
    border-radius: var(--radius-md);
    background-color: var(--bg-primary);
    cursor: pointer;
    transition: var(--transition-fast);
}

.file-input-wrapper:hover {
    border-color: var(--primary);
    background-color: rgba(184, 92, 56, 0.02);
}

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

.file-input-btn {
    background-color: var(--bg-card);
    border: 1px solid var(--border-light);
    padding: 8px 16px;
    border-radius: var(--radius-sm);
    font-size: 0.85rem;
    font-weight: 600;
    pointer-events: none;
    transition: var(--transition-fast);
}

.file-input-wrapper:hover .file-input-btn {
    border-color: var(--primary);
    color: var(--primary);
}

.file-input-name {
    font-size: 0.88rem;
    color: var(--text-secondary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    pointer-events: none;
}

/* Checkbox */
.form-checkbox {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-top: 8px;
}

.form-checkbox input[type="checkbox"] {
    appearance: none;
    -webkit-appearance: none;
    width: 18px;
    height: 18px;
    border: 1.5px solid var(--border-light);
    border-radius: 4px;
    outline: none;
    cursor: pointer;
    transition: var(--transition-fast);
    position: relative;
    background-color: var(--bg-primary);
    margin-top: 3px;
    flex-shrink: 0;
}

.form-checkbox input[type="checkbox"]:checked {
    background-color: var(--primary);
    border-color: var(--primary);
}

.form-checkbox input[type="checkbox"]:checked::after {
    content: '';
    position: absolute;
    top: 2px;
    left: 5px;
    width: 4px;
    height: 8px;
    border: solid var(--bg-card);
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.form-checkbox label {
    font-size: 0.85rem;
    line-height: 1.4;
    color: var(--text-secondary);
    text-transform: none;
    letter-spacing: 0;
    font-weight: 500;
    cursor: pointer;
}

.form-checkbox label a {
    color: var(--primary);
    text-decoration: underline;
    font-weight: 600;
}

/* ==========================================================================
   CONTACT SECTION
   ========================================================================== */
.contact-form-side {
    padding-right: 20px;
}

.contact-info-card {
    background-color: var(--bg-dark);
    color: var(--text-light);
    padding: 50px 40px;
    border-radius: var(--radius-lg);
    box-shadow: 0 15px 40px rgba(30, 26, 23, 0.15);
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: relative;
    overflow: hidden;
}

/* Custom visual lines inside dark card */
.contact-info-card::before {
    content: '';
    position: absolute;
    bottom: -50px;
    right: -50px;
    width: 250px;
    height: 250px;
    border: 1px dashed rgba(214, 168, 79, 0.1);
    border-radius: 50%;
    pointer-events: none;
}

.contact-info-card h3 {
    font-family: var(--font-title);
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 12px;
    position: relative;
    z-index: 2;
}

.card-intro {
    color: #A59E98;
    font-size: 1rem;
    margin-bottom: 40px;
    position: relative;
    z-index: 2;
}

.info-list {
    display: flex;
    flex-direction: column;
    gap: 32px;
    margin-bottom: 40px;
    position: relative;
    z-index: 2;
}

.info-item {
    display: flex;
    gap: 20px;
    align-items: flex-start;
}

.info-icon {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-md);
    background-color: var(--bg-dark-light);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent);
    flex-shrink: 0;
}

.info-icon svg {
    width: 20px;
    height: 20px;
}

.info-details {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.info-details span {
    font-size: 0.8rem;
    font-weight: 700;
    color: #8C847D;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.info-details a {
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--text-light);
    transition: var(--transition-fast);
}

.info-details a:hover {
    color: var(--accent);
}

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

.social-links-container h4 {
    font-size: 0.85rem;
    font-weight: 700;
    color: #8C847D;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 16px;
}

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

.social-links a {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: var(--bg-dark-light);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-light);
    transition: var(--transition-smooth);
}

.social-links a:hover {
    background-color: var(--primary);
    transform: translateY(-3px);
}

.social-links svg {
    width: 18px;
    height: 18px;
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
.main-footer {
    background-color: var(--bg-dark);
    color: var(--text-light);
    padding: 80px 0 40px;
    border-top: 1px solid var(--border-dark);
}

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

.footer-brand {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.footer-icon {
    height: 80px;
    width: 80px;
    object-fit: contain;
    align-self: flex-start;
    border-radius: var(--radius-sm);
    filter: drop-shadow(0 0 10px rgba(214, 168, 79, 0.2));
}

.footer-tagline {
    font-size: 1rem;
    color: #A59E98;
    max-width: 320px;
    line-height: 1.6;
}

.footer-nav h4,
.footer-legal h4 {
    font-family: var(--font-title);
    font-size: 0.95rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--accent);
    margin-bottom: 24px;
}

.footer-nav ul,
.footer-legal ul {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.footer-nav a,
.footer-legal a {
    color: #A59E98;
    font-size: 0.92rem;
    font-weight: 500;
}

.footer-nav a:hover,
.footer-legal a:hover {
    color: var(--text-light);
    padding-left: 4px;
}

.footer-bottom {
    padding-top: 30px;
    border-top: 1px solid var(--border-dark);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.copyright {
    font-size: 0.88rem;
    color: #7E7771;
}

/* ==========================================================================
   TOAST NOTIFICATION
   ========================================================================== */
.toast {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 200;
    background-color: var(--bg-card);
    border-left: 4px solid #2E7559;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    border-radius: var(--radius-md);
    padding: 16px 24px;
    max-width: 380px;
    transform: translateY(100px);
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    pointer-events: none;
}

.toast.show {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
}

.toast-content {
    display: flex;
    gap: 16px;
    align-items: center;
}

.toast-icon {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background-color: rgba(46, 117, 89, 0.1);
    color: #2E7559;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.toast-icon svg {
    width: 16px;
    height: 16px;
}

.toast-text h4 {
    font-family: var(--font-title);
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 2px;
}

.toast-text p {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.hidden {
    display: none;
}

/* ==========================================================================
   MODALS
   ========================================================================== */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 150;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.modal.open {
    opacity: 1;
    pointer-events: auto;
}

.modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(30, 26, 23, 0.4);
    backdrop-filter: blur(8px);
}

.modal-wrapper {
    background-color: var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    width: 90%;
    max-width: 680px;
    max-height: 80vh;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.15);
    position: relative;
    z-index: 10;
    transform: translateY(30px) scale(0.95);
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.15);
    display: flex;
    flex-direction: column;
}

.modal.open .modal-wrapper {
    transform: translateY(0) scale(1);
}

.modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background-color: var(--bg-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 300;
    color: var(--text-secondary);
    border: 1px solid var(--border-light);
    transition: var(--transition-fast);
}

.modal-close:hover {
    background-color: var(--primary-light);
    color: var(--primary);
    border-color: var(--primary);
}

.modal-body {
    padding: 40px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.modal-body h2 {
    font-family: var(--font-title);
    font-size: 1.85rem;
    font-weight: 700;
    margin-bottom: 24px;
    color: var(--text-primary);
}

.modal-scroll-content {
    overflow-y: auto;
    padding-right: 12px;
    max-height: 55vh;
}

.modal-scroll-content h3 {
    font-family: var(--font-title);
    font-size: 1.15rem;
    font-weight: 700;
    margin-top: 24px;
    margin-bottom: 12px;
    color: var(--text-primary);
}

.modal-scroll-content h3:first-of-type {
    margin-top: 0;
}

.modal-scroll-content p {
    font-size: 0.95rem;
    color: var(--text-secondary);
    margin-bottom: 16px;
    line-height: 1.6;
}

.modal-scroll-content ul {
    list-style-type: disc;
    padding-left: 20px;
    margin-bottom: 16px;
    color: var(--text-secondary);
}

.modal-scroll-content li {
    font-size: 0.95rem;
    margin-bottom: 8px;
}

/* Custom Scrollbar for Modal and Forms */
::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background: var(--border-light);
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--text-secondary);
}

/* ==========================================================================
   ANIMATIONS & EFFECTS
   ========================================================================== */

/* Keyframe Animations */
@keyframes floating-badge-anim {
    0% { transform: translateY(0); }
    100% { transform: translateY(-12px); }
}

@keyframes rot-clockwise {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

@keyframes rot-counter {
    from { transform: rotate(360deg); }
    to { transform: rotate(0deg); }
}

@keyframes pulse-stroke {
    0% { stroke-opacity: 0.3; }
    50% { stroke-opacity: 0.8; }
    100% { stroke-opacity: 0.3; }
}

@keyframes pulse-dot {
    0% { transform: scale(1); opacity: 0.8; }
    50% { transform: scale(1.3); opacity: 1; fill: var(--accent); }
    100% { transform: scale(1); opacity: 0.8; }
}

/* Animation Classes */
.rot-slow {
    transform-origin: center;
    animation: rot-clockwise 30s linear infinite;
}

.rot-reverse {
    transform-origin: center;
    animation: rot-counter 20s linear infinite;
}

.pulse-line-1 { animation: pulse-stroke 4s ease-in-out infinite; }
.pulse-line-2 { animation: pulse-stroke 5s ease-in-out infinite 1s; }
.pulse-line-3 { animation: pulse-stroke 6s ease-in-out infinite 2s; }
.pulse-line-4 { animation: pulse-stroke 4s ease-in-out infinite 3s; }

.pulse-node {
    transform-origin: center;
    animation: pulse-dot 3s ease-in-out infinite;
}
.network-nodes circle:nth-child(even) {
    animation: pulse-dot 4s ease-in-out infinite 1s;
}

/* Fade in Scroll Animations */
.fade-in-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s cubic-bezier(0.215, 0.61, 0.355, 1), transform 0.8s cubic-bezier(0.215, 0.61, 0.355, 1);
}

.fade-in-up.active {
    opacity: 1;
    transform: translateY(0);
}

.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.9s cubic-bezier(0.25, 1, 0.5, 1), transform 0.9s cubic-bezier(0.25, 1, 0.5, 1);
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

.delay-200 { transition-delay: 0.2s; }
.delay-400 { transition-delay: 0.4s; }
.delay-600 { transition-delay: 0.6s; }


/* ==========================================================================
   RESPONSIVE DESIGN (Media Queries)
   ========================================================================== */

/* Tablet Layout (max-width: 1024px) */
@media screen and (max-width: 1024px) {
    section {
        padding: 80px 0;
    }
    
    .grid-5 {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .grid-3 {
        grid-template-columns: 1fr;
        gap: 24px;
    }
    
    .hero-title {
        font-size: 2.85rem;
    }
    
    .footer-container {
        grid-template-columns: 1.5fr 1fr 1fr;
        gap: 40px;
    }

    .projects-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .projects-grid .project-card:last-child {
        grid-column: span 2;
    }

    .journey-line {
        display: none;
    }
    
    .desktop-only {
        display: none;
    }
    
    .mobile-only {
        display: block;
    }
    
    .journey-svg-container.mobile-only {
        width: 80px;
        left: 0;
        height: 100%;
    }
    
    .projects-journey-timeline::before {
        display: none;
    }
    
    .journey-step {
        padding-top: 40px;
        padding-left: 80px; /* Indent the card content to make room for the line & node on the left */
    }
    
    .journey-node {
        left: 40px;
        top: 40px;
        transform: translateY(-50%) translateX(-50%);
    }
    
    .journey-step:hover .journey-node {
        transform: translateY(-50%) translateX(-50%) scale(1.15);
    }
}

/* Small Tablet / Mobile Layout (max-width: 768px) */
@media screen and (max-width: 768px) {
    .grid-2 {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .desktop-nav {
        display: none;
    }
    
    .btn-header-contact {
        display: none;
    }
    
    .hamburger {
        display: flex;
    }
    
    .hero-section {
        padding-top: 140px;
    }
    
    .hero-container {
        text-align: center;
        display: flex;
        flex-direction: column-reverse;
        gap: 60px;
    }
    
    .hero-description {
        margin-left: auto;
        margin-right: auto;
    }
    
    .hero-buttons {
        justify-content: center;
    }
    
    .hero-visual {
        max-width: 320px;
        margin: 0 auto;
    }
    
    .floating-badge {
        font-size: 0.75rem;
        padding: 8px 14px;
    }
    
    .grid-5 {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    
    .projects-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }
    .projects-grid .project-card:last-child {
        grid-column: span 1;
    }

    .journey-svg-container.mobile-only {
        width: 40px;
        left: 0;
    }
    
    .projects-journey-timeline::before {
        display: none;
    }
    
    .journey-step {
        padding-left: 50px;
    }
    
    .journey-node {
        left: 20px;
    }
    
    .project-card {
        padding: 30px;
        min-height: auto;
    }
    
    .project-card-header {
        max-width: 100%;
        margin-top: 30px;
    }
    
    .project-badge {
        top: 24px;
        left: 30px;
        right: auto;
    }
    
    .join-info-side {
        padding-right: 0;
    }
    
    .contact-form-side {
        padding-right: 0;
    }
    
    .form-wrapper,
    .contact-info-card {
        padding: 30px 20px;
    }
    
    .footer-container {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .footer-bottom {
        flex-direction: column;
        gap: 16px;
        text-align: center;
    }
    
    .modal-body {
        padding: 24px;
    }
    
    .modal-close {
        top: 15px;
        right: 15px;
    }
}

/* Extra Small Mobile (max-width: 480px) */
@media screen and (max-width: 480px) {
    .hero-title {
        font-size: 2.25rem;
    }
    
    .form-row {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .btn {
        width: 100%;
    }
    
    .hero-buttons {
        flex-direction: column;
    }
}
