/* --- Design Tokens & CSS Custom Properties --- */
:root {
    /* Color Palette */
    --bg-dark: #09090b;
    --bg-card: rgba(18, 18, 22, 0.65);
    --bg-card-hover: rgba(26, 26, 32, 0.85);
    --text-primary: #f4f4f5;
    --text-secondary: #a1a1aa;
    --text-muted: #71717a;
    
    /* Accents (Purple & Blue Glows) */
    --color-primary: #8b5cf6;      /* Violet */
    --color-primary-rgb: 139, 92, 246;
    --color-secondary: #3b82f6;    /* Blue */
    --color-secondary-rgb: 59, 130, 246;
    --color-success: #10b981;      /* Emerald */
    --color-success-rgb: 16, 185, 129;
    
    --border-color: rgba(255, 255, 255, 0.08);
    --border-color-hover: rgba(255, 255, 255, 0.15);
    
    /* Fonts */
    --font-heading: 'Outfit', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    
    /* Dimensions */
    --max-width: 1200px;
    --header-height: 80px;
    
    /* System */
    --transition-smooth: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    --transition-bounce: all 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* --- Base & Reset Rules --- */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    background-color: var(--bg-dark);
    color: var(--text-primary);
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.6;
}

body {
    overflow-x: hidden;
    position: relative;
    min-height: 100vh;
}

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

a {
    color: inherit;
    text-decoration: none;
}

/* --- Ambient Glow Effects --- */
.ambient-glow {
    position: absolute;
    width: 600px;
    height: 600px;
    border-radius: 50%;
    filter: blur(160px);
    opacity: 0.15;
    pointer-events: none;
    z-index: -1;
    mix-blend-mode: screen;
}

.glow-1 {
    top: -100px;
    right: -100px;
    background: radial-gradient(circle, rgba(var(--color-primary-rgb), 0.8) 0%, rgba(0,0,0,0) 70%);
}

.glow-2 {
    top: 50%;
    left: -200px;
    background: radial-gradient(circle, rgba(var(--color-secondary-rgb), 0.8) 0%, rgba(0,0,0,0) 70%);
    opacity: 0.12;
}

.glow-3 {
    bottom: -100px;
    right: 10%;
    background: radial-gradient(circle, rgba(var(--color-primary-rgb), 0.5) 0%, rgba(0,0,0,0) 70%);
}

/* --- Layout Grid Container --- */
.container {
    width: 100%;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 2rem;
}

.section-padding {
    padding: 7rem 0;
}

.dark-bg {
    background-color: rgba(6, 6, 8, 0.5);
    position: relative;
}

/* --- Typography System --- */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1.2;
}

h1 {
    font-size: clamp(2.5rem, 5vw, 4rem);
}

h2 {
    font-size: clamp(2rem, 3.5vw, 2.75rem);
}

h3 {
    font-size: 1.5rem;
}

h4 {
    font-size: 1.25rem;
}

p {
    color: var(--text-secondary);
}

/* --- Utility Components (Buttons, Badges) --- */
.badge {
    display: inline-block;
    padding: 0.5rem 1rem;
    font-family: var(--font-heading);
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--color-primary);
    background: rgba(var(--color-primary-rgb), 0.08);
    border: 1px solid rgba(var(--color-primary-rgb), 0.2);
    border-radius: 99px;
    margin-bottom: 1.5rem;
    letter-spacing: 0.03em;
    text-transform: uppercase;
}

.gradient-text {
    background: linear-gradient(135deg, #ffffff 30%, #a78bfa 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.85rem 1.75rem;
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.95rem;
    border-radius: 8px;
    cursor: pointer;
    transition: var(--transition-smooth);
    border: none;
}

.btn-primary {
    background: linear-gradient(135deg, var(--color-primary) 0%, #7c3aed 100%);
    color: #ffffff;
    box-shadow: 0 4px 20px rgba(var(--color-primary-rgb), 0.25);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 24px rgba(var(--color-primary-rgb), 0.4);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.08);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: var(--border-color-hover);
}

.btn-outline {
    background: transparent;
    color: var(--text-primary);
    border: 1px solid var(--border-color);
}

.btn-outline:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: var(--border-color-hover);
    transform: translateY(-2px);
}

.btn-block {
    width: 100%;
}

/* --- Header / Navigation Bar --- */
.main-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--header-height);
    display: flex;
    align-items: center;
    background: rgba(9, 9, 11, 0.75);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-color);
    z-index: 1000;
    transition: var(--transition-smooth);
}

.main-header.scrolled {
    height: 70px;
    background: rgba(9, 9, 11, 0.9);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

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

.logo {
    display: flex;
    flex-direction: column;
    line-height: 1.1;
}

.logo-text {
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 1.6rem;
    letter-spacing: -0.03em;
    background: linear-gradient(135deg, #ffffff 50%, var(--text-secondary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.logo-sub {
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 0.65rem;
    color: var(--color-primary);
    letter-spacing: 0.15em;
    margin-top: -2px;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 2.25rem;
}

.nav-link {
    font-size: 0.925rem;
    font-weight: 500;
    color: var(--text-secondary);
    transition: var(--transition-smooth);
    position: relative;
}

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

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

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

.mobile-nav-toggle {
    display: none;
    flex-direction: column;
    gap: 6px;
    background: transparent;
    border: none;
    cursor: pointer;
    z-index: 1010;
}

.mobile-nav-toggle span {
    display: block;
    width: 25px;
    height: 2px;
    background-color: var(--text-primary);
    transition: var(--transition-smooth);
}

/* --- Hero Section --- */
.hero-section {
    padding-top: calc(var(--header-height) + 4rem);
    padding-bottom: 6rem;
    min-height: 90vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
}

.hero-container {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 4rem;
    align-items: center;
    width: 100%;
}

.hero-content {
    max-width: 650px;
}

.hero-title {
    margin-bottom: 1.5rem;
}

.hero-subtitle {
    font-size: 1.15rem;
    line-height: 1.7;
    margin-bottom: 2.5rem;
    color: var(--text-secondary);
}

.hero-actions {
    display: flex;
    gap: 1.25rem;
}

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

.visual-card-wrapper {
    position: relative;
    border-radius: 16px;
    border: 1px solid var(--border-color);
    background: var(--bg-card);
    padding: 10px;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.5);
    overflow: hidden;
    aspect-ratio: 4/3;
    width: 100%;
}

.visual-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 10px;
    opacity: 0.85;
    transition: var(--transition-smooth);
}

.visual-card-wrapper:hover .visual-image {
    transform: scale(1.02);
}

.card-overlay-glow {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(var(--color-primary-rgb), 0.15) 0%, rgba(0,0,0,0) 60%);
    pointer-events: none;
}

.floating-badge {
    position: absolute;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 0.65rem 1rem;
    background: rgba(18, 18, 22, 0.85);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid var(--border-color);
    border-radius: 99px;
    font-family: var(--font-heading);
    font-size: 0.825rem;
    font-weight: 600;
    box-shadow: 0 10px 25px rgba(0,0,0,0.3);
    animation: float 4s ease-in-out infinite;
}

.floating-badge.badge-1 {
    top: 20px;
    left: -20px;
    animation-delay: 0s;
}

.floating-badge.badge-2 {
    bottom: 30px;
    right: -20px;
    animation-delay: 2s;
}

.badge-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: var(--color-primary);
    box-shadow: 0 0 10px var(--color-primary);
}

.badge-dot.green {
    background-color: var(--color-success);
    box-shadow: 0 0 10px var(--color-success);
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

/* Mouse Scroll Indicator */
.scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    justify-content: center;
    opacity: 0.7;
    transition: var(--transition-smooth);
}

.scroll-indicator:hover {
    opacity: 1;
}

.mouse {
    width: 26px;
    height: 44px;
    border: 2px solid var(--text-secondary);
    border-radius: 99px;
    display: flex;
    justify-content: center;
    padding-top: 8px;
}

.wheel {
    width: 4px;
    height: 8px;
    background-color: var(--color-primary);
    border-radius: 99px;
    animation: scroll-wheel 1.6s ease-in-out infinite;
}

@keyframes scroll-wheel {
    0% { transform: translateY(0); opacity: 0; }
    30% { opacity: 1; }
    80% { transform: translateY(12px); opacity: 0; }
    100% { opacity: 0; }
}

/* --- Section Headers --- */
.section-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 5rem auto;
}

.section-title {
    margin-bottom: 1.25rem;
    background: linear-gradient(135deg, #ffffff 40%, rgba(255,255,255,0.7) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.section-description {
    font-size: 1.1rem;
    color: var(--text-secondary);
}

/* --- Ecosystem Section --- */
.ecosystem-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2.25rem;
}

.ecosystem-card {
    position: relative;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 2.5rem;
    overflow: hidden;
    transition: var(--transition-bounce);
    display: flex;
    flex-direction: column;
}

.card-glow {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle 200px at var(--mouse-x, 0) var(--mouse-y, 0), rgba(var(--color-primary-rgb), 0.12), transparent 80%);
    opacity: 0;
    transition: opacity 0.5s ease;
    pointer-events: none;
    z-index: 1;
}

.ecosystem-card:hover .card-glow {
    opacity: 1;
}

.ecosystem-card:hover {
    transform: translateY(-8px);
    border-color: var(--border-color-hover);
    background: var(--bg-card-hover);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4), 0 0 30px rgba(var(--color-primary-rgb), 0.05);
}

.card-icon {
    width: 52px;
    height: 52px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-primary);
    margin-bottom: 2rem;
    transition: var(--transition-bounce);
}

.ecosystem-card:hover .card-icon {
    background: rgba(var(--color-primary-rgb), 0.1);
    color: #ffffff;
    transform: scale(1.05) rotate(3deg);
    border-color: rgba(var(--color-primary-rgb), 0.3);
}

.card-icon svg {
    width: 24px;
    height: 24px;
}

.card-title {
    margin-bottom: 1rem;
    font-size: 1.4rem;
}

.card-text {
    font-size: 0.95rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
    flex-grow: 1;
}

.card-link {
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--color-primary);
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: var(--transition-smooth);
}

.card-link span {
    transition: transform 0.3s ease;
}

.ecosystem-card:hover .card-link span {
    transform: translateX(4px);
}

/* --- Core Engineering Pillars Section --- */
.expertise-row {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 5rem;
    align-items: center;
}

.expertise-content {
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
}

.expertise-item {
    display: flex;
    gap: 2rem;
}

.expertise-item .number {
    font-family: var(--font-heading);
    font-size: 1.75rem;
    font-weight: 800;
    color: rgba(255, 255, 255, 0.15);
    margin-top: -4px;
    transition: var(--transition-smooth);
}

.expertise-item:hover .number {
    color: var(--color-primary);
}

.expertise-item h4 {
    margin-bottom: 0.5rem;
    transition: var(--transition-smooth);
}

.expertise-item:hover h4 {
    color: #ffffff;
}

.expertise-item p {
    font-size: 0.95rem;
}

.expertise-graphic {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.code-editor-mock {
    background: #0d0d11;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    width: 100%;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.5);
    overflow: hidden;
    font-family: 'Courier New', Courier, monospace;
    font-size: 0.85rem;
}

.editor-header {
    background: rgba(255, 255, 255, 0.02);
    padding: 0.75rem 1.25rem;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    gap: 8px;
}

.editor-header .dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    display: inline-block;
}

.dot.red { background-color: #ef4444; }
.dot.yellow { background-color: #f59e0b; }
.dot.green { background-color: #10b981; }

.editor-title {
    color: var(--text-muted);
    font-size: 0.75rem;
    margin-left: 10px;
}

.editor-code {
    padding: 1.5rem;
    color: var(--text-secondary);
    line-height: 1.7;
}

.editor-code .keyword {
    color: var(--color-primary);
}

.geometric-shape {
    position: absolute;
    width: 300px;
    height: 300px;
    background: linear-gradient(135deg, rgba(var(--color-primary-rgb), 0.1) 0%, rgba(var(--color-secondary-rgb), 0.1) 100%);
    border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
    filter: blur(30px);
    z-index: -1;
    animation: morph 8s ease-in-out infinite alternate;
}

@keyframes morph {
    0% { border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%; }
    100% { border-radius: 70% 30% 30% 70% / 70% 70% 30% 30%; }
}

/* --- Stats Section --- */
.stats-section {
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
    background: linear-gradient(180deg, rgba(9, 9, 11, 0) 0%, rgba(139, 92, 246, 0.02) 50%, rgba(9, 9, 11, 0) 100%);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 3rem;
    text-align: center;
}

.stat-item {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.stat-number {
    font-family: var(--font-heading);
    font-size: clamp(2.5rem, 4vw, 3.5rem);
    font-weight: 800;
    color: #ffffff;
    line-height: 1;
}

.stat-label {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* --- About Section --- */
.about-row {
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    gap: 5rem;
    align-items: center;
}

.about-content {
    max-width: 600px;
}

.about-content h2 {
    margin-bottom: 1.5rem;
}

.about-text {
    font-size: 1.05rem;
    line-height: 1.7;
    margin-bottom: 1.5rem;
}

.about-visual {
    position: relative;
    height: 400px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.grid-mesh {
    position: absolute;
    width: 100%;
    height: 100%;
    background-size: 40px 40px;
    background-image: linear-gradient(to right, rgba(255, 255, 255, 0.03) 1px, transparent 1px),
                      linear-gradient(to bottom, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.glow-circle {
    position: absolute;
    width: 150px;
    height: 150px;
    background: radial-gradient(circle, var(--color-primary) 0%, transparent 70%);
    border-radius: 50%;
    filter: blur(25px);
    opacity: 0.4;
    animation: orbit 10s linear infinite;
}

@keyframes orbit {
    0% { transform: rotate(0deg) translate(80px) rotate(0deg); }
    100% { transform: rotate(360deg) translate(80px) rotate(-360deg); }
}

/* --- Contact Section --- */
.contact-container {
    display: grid;
    grid-template-columns: 1fr 1.1fr;
    gap: 5rem;
    align-items: center;
}

.contact-info {
    max-width: 500px;
}

.contact-sub {
    font-size: 1.1rem;
    margin-bottom: 3rem;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 2.25rem;
}

.detail-item {
    display: flex;
    gap: 1.5rem;
    align-items: flex-start;
}

.detail-item .icon {
    width: 48px;
    height: 48px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-primary);
}

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

.detail-text {
    display: flex;
    flex-direction: column;
}

.detail-text span:first-child {
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-muted);
    margin-bottom: 4px;
}

.detail-text a, .detail-text span:last-child {
    font-size: 1.05rem;
    color: var(--text-primary);
    transition: var(--transition-smooth);
}

.detail-text a:hover {
    color: var(--color-primary);
}

/* Contact Form */
.contact-form-wrapper {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 3rem;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.4);
}

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

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

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

.form-group label {
    font-family: var(--font-heading);
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-secondary);
}

.form-group input, .form-group textarea {
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 0.85rem 1.25rem;
    color: #ffffff;
    font-family: var(--font-body);
    font-size: 0.95rem;
    transition: var(--transition-smooth);
}

.form-group input:focus, .form-group textarea:focus {
    outline: none;
    border-color: rgba(var(--color-primary-rgb), 0.5);
    box-shadow: 0 0 15px rgba(var(--color-primary-rgb), 0.15);
    background: rgba(0,0,0,0.5);
}

/* Spinner Animation on Submit */
.btn-block {
    position: relative;
}

.btn .spinner {
    display: none;
    width: 20px;
    height: 20px;
    position: absolute;
    animation: rotate 2s linear infinite;
}

.btn .spinner .path {
    stroke: #ffffff;
    stroke-linecap: round;
    animation: dash 1.5s ease-in-out infinite;
}

.btn.loading span {
    opacity: 0;
}

.btn.loading .spinner {
    display: block;
}

@keyframes rotate {
    100% { transform: rotate(360deg); }
}

@keyframes dash {
    0% { stroke-dasharray: 1, 150; stroke-dashoffset: 0; }
    50% { stroke-dasharray: 90, 150; stroke-dashoffset: -35; }
    100% { stroke-dasharray: 90, 150; stroke-dashoffset: -124; }
}

.form-status {
    font-size: 0.9rem;
    text-align: center;
    margin-top: 0.5rem;
    min-height: 24px;
    transition: var(--transition-smooth);
}

.form-status.success {
    color: var(--color-success);
}

.form-status.error {
    color: #ef4444;
}

/* --- Footer --- */
.main-footer {
    border-top: 1px solid var(--border-color);
    padding: 6rem 0 3rem 0;
    background-color: rgba(6, 6, 8, 0.8);
}

.footer-container {
    display: grid;
    grid-template-columns: 1.2fr 1.8fr;
    gap: 5rem;
    margin-bottom: 5rem;
}

.footer-brand {
    max-width: 320px;
}

.footer-brand .logo {
    margin-bottom: 1.5rem;
}

.brand-desc {
    font-size: 0.925rem;
    line-height: 1.6;
}

.footer-links-group {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 3rem;
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.footer-links h5 {
    font-family: var(--font-heading);
    font-size: 0.95rem;
    color: #ffffff;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.5rem;
}

.footer-links a {
    font-size: 0.9rem;
    color: var(--text-secondary);
    transition: var(--transition-smooth);
}

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

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.85rem;
    color: var(--text-muted);
}

.footer-legal {
    display: flex;
    gap: 2rem;
}

.footer-legal a {
    transition: var(--transition-smooth);
}

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

/* --- Micro Animations & Interaction (Fade In Classes) --- */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1),
                transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

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

/* --- Mobile / Responsive Breakpoints --- */
@media (max-width: 1024px) {
    .hero-container {
        grid-template-columns: 1fr;
        gap: 3.5rem;
        text-align: center;
    }
    
    .hero-content {
        max-width: 100%;
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    
    .hero-actions {
        justify-content: center;
    }
    
    .hero-visual {
        max-width: 500px;
        margin: 0 auto;
    }
    
    .ecosystem-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .expertise-row {
        grid-template-columns: 1fr;
        gap: 4rem;
    }
    
    .about-row {
        grid-template-columns: 1fr;
        gap: 4rem;
    }
    
    .about-visual {
        order: 2;
        height: 300px;
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }
    
    .contact-container {
        grid-template-columns: 1fr;
        gap: 4rem;
    }
    
    .footer-container {
        grid-template-columns: 1fr;
        gap: 4rem;
    }
}

@media (max-width: 768px) {
    .section-padding {
        padding: 5rem 0;
    }
    
    /* Header toggle */
    .mobile-nav-toggle {
        display: flex;
    }
    
    .nav-menu {
        display: none;
    }
    
    /* Mobile Overlay Open states */
    body.mobile-nav-active {
        overflow: hidden;
    }
    
    .mobile-nav-overlay {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        background-color: var(--bg-dark);
        z-index: 999;
        display: flex;
        align-items: center;
        justify-content: center;
        opacity: 0;
        pointer-events: none;
        transition: var(--transition-smooth);
    }
    
    body.mobile-nav-active .mobile-nav-overlay {
        opacity: 1;
        pointer-events: auto;
    }
    
    .mobile-nav-menu {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 2.5rem;
    }
    
    .mobile-nav-link {
        font-family: var(--font-heading);
        font-size: 1.75rem;
        font-weight: 600;
        color: var(--text-secondary);
        transition: var(--transition-smooth);
    }
    
    .mobile-nav-link:hover {
        color: var(--text-primary);
    }
    
    /* Active mobile icon */
    body.mobile-nav-active .mobile-nav-toggle span:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }
    body.mobile-nav-active .mobile-nav-toggle span:nth-child(2) {
        opacity: 0;
    }
    body.mobile-nav-active .mobile-nav-toggle span:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }
    
    .ecosystem-grid {
        grid-template-columns: 1fr;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .footer-links-group {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .footer-bottom {
        flex-direction: column;
        gap: 1.5rem;
        text-align: center;
    }
}
