/* --- Global Styles & Variables --- */
:root {
    --bg-dark: hsl(240, 20%, 8%);
    --bg-card: hsla(240, 15%, 12%, 0.6);
    --bg-card-hover: hsla(240, 15%, 16%, 0.8);
    --border-color: rgba(255, 255, 255, 0.08);
    --border-hover: rgba(255, 255, 255, 0.15);
    
    --color-primary: hsl(270, 85%, 60%);
    --color-primary-rgb: 145, 51, 245;
    --color-magenta: hsl(330, 90%, 60%);
    --color-teal: hsl(180, 80%, 50%);
    --color-teal-rgb: 23, 230, 230;
    
    --text-main: hsl(0, 0%, 92%);
    --text-muted: hsl(240, 10%, 70%);
    --text-inverse: hsl(0, 0%, 8%);
    
    --font-heading: 'Space Grotesk', sans-serif;
    --font-body: 'Inter', sans-serif;
    
    --transition-smooth: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    --transition-fast: all 0.2s ease;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
    background-color: var(--bg-dark);
}

body {
    font-family: var(--font-body);
    color: var(--text-main);
    background-color: var(--bg-dark);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 10px;
}
::-webkit-scrollbar-track {
    background: var(--bg-dark);
}
::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 5px;
}
::-webkit-scrollbar-thumb:hover {
    background: var(--color-primary);
}

/* --- Layout Utility --- */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

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

/* --- Glow Orbs --- */
.glow-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(120px);
    z-index: -1;
    pointer-events: none;
    opacity: 0.4;
}

.orb-1 {
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, var(--color-primary) 0%, rgba(0,0,0,0) 70%);
    top: -100px;
    left: -100px;
}

.orb-2 {
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, var(--color-teal) 0%, rgba(0,0,0,0) 70%);
    bottom: -200px;
    right: -100px;
}

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

/* Gradient Text Effect */
.gradient-text {
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-magenta) 50%, var(--color-teal) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* --- Buttons --- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 28px;
    font-family: var(--font-heading);
    font-size: 0.95rem;
    font-weight: 600;
    border-radius: 8px;
    cursor: pointer;
    text-decoration: none;
    transition: var(--transition-smooth);
    border: none;
    gap: 8px;
}

.btn-primary {
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-magenta) 100%);
    color: var(--text-main);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(var(--color-primary-rgb), 0.3);
}

.btn-glow {
    position: relative;
}
.btn-glow::after {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: inherit;
    border-radius: inherit;
    filter: blur(10px);
    opacity: 0.6;
    z-index: -1;
    transition: var(--transition-smooth);
}
.btn-glow:hover::after {
    opacity: 0.9;
    filter: blur(15px);
}

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

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--border-hover);
    transform: translateY(-3px);
}

.icon-btn {
    width: 18px;
    height: 18px;
}

/* --- Header / Navigation --- */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 100;
    transition: var(--transition-smooth);
    border-bottom: 1px solid transparent;
}

.header.scrolled {
    background-color: rgba(10, 10, 12, 0.85);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-color);
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
}

.logo-img {
    height: 40px;
    width: 40px;
    object-fit: contain;
}

.logo-text {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: -0.5px;
    color: var(--text-main);
}

.logo-text span {
    color: var(--color-teal);
    font-weight: 400;
}

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

.nav-link {
    text-decoration: none;
    color: var(--text-muted);
    font-weight: 500;
    font-size: 0.95rem;
    transition: var(--transition-fast);
    position: relative;
    padding: 6px 0;
    display: flex;
    align-items: center;
}

.nav-link:hover, .nav-link.active {
    color: var(--text-main);
}

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

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

.icon-inline {
    width: 12px;
    height: 12px;
    margin-left: 4px;
    opacity: 0.6;
}

.nav-btn {
    text-decoration: none;
    background: var(--text-main);
    color: var(--bg-dark);
    padding: 10px 20px;
    border-radius: 6px;
    font-family: var(--font-heading);
    font-size: 0.9rem;
    font-weight: 600;
    transition: var(--transition-smooth);
}

.nav-btn:hover {
    background: var(--color-teal);
    color: var(--bg-dark);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(var(--color-teal-rgb), 0.3);
}

.mobile-nav-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--text-main);
    font-size: 1.5rem;
    cursor: pointer;
}

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

.hero-content {
    position: relative;
    z-index: 10;
    max-width: 700px;
}

.hero-title {
    font-size: 4rem;
    line-height: 1.1;
    margin-bottom: 24px;
    letter-spacing: -1px;
}

.hero-subtitle {
    font-size: 1.5rem;
    color: var(--text-muted);
    margin-bottom: 40px;
    font-weight: 300;
}

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

.hero-bg-visual {
    position: absolute;
    top: 0;
    right: 0;
    width: 50%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0.35;
    mask-image: linear-gradient(to left, rgba(0,0,0,1) 30%, rgba(0,0,0,0) 100%);
    -webkit-mask-image: linear-gradient(to left, rgba(0,0,0,1) 30%, rgba(0,0,0,0) 100%);
    pointer-events: none;
    animation: slow-pan 20s ease-in-out infinite alternate;
}

@keyframes slow-pan {
    0% { transform: scale(1) translate(0, 0); }
    100% { transform: scale(1.08) translate(-2%, 2%); }
}

/* --- Glassmorphic Card Styling --- */
.glass-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    transition: var(--transition-smooth);
    overflow: hidden;
}

.glass-card:hover {
    background: var(--bg-card-hover);
    border-color: var(--border-hover);
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

/* --- About Section --- */
.section-about {
    padding: 100px 0;
    position: relative;
}

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

.section-title {
    font-size: 2.5rem;
    margin-bottom: 16px;
}

.section-divider {
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, var(--color-primary), var(--color-teal));
    margin: 0 auto 24px;
    border-radius: 2px;
}

.section-lead {
    font-size: 1.1rem;
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto;
}

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

.about-card {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.card-img-wrapper {
    width: 100%;
    height: 220px;
    overflow: hidden;
    position: relative;
    border-bottom: 1px solid var(--border-color);
}

.card-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-smooth);
}

.about-card:hover .card-img {
    transform: scale(1.06);
}

.card-body {
    padding: 28px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.card-icon-title {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
}

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

.card-body h3 {
    font-size: 1.3rem;
    font-weight: 600;
}

.card-body p {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.6;
}

.text-violet { color: var(--color-primary); }
.text-magenta { color: var(--color-magenta); }
.text-teal { color: var(--color-teal); }

/* --- Ecosystem / Services Section --- */
.section-ecosystem {
    padding: 100px 0;
    position: relative;
}

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

.eco-card {
    text-decoration: none;
    color: var(--text-main);
    padding: 32px;
    display: flex;
    flex-direction: column;
    height: 100%;
    position: relative;
}

.eco-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
}

.eco-icon {
    width: 32px;
    height: 32px;
}

.eco-badge {
    font-family: var(--font-heading);
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 4px 10px;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    color: var(--text-muted);
}

.eco-card h3 {
    font-size: 1.4rem;
    margin-bottom: 12px;
    transition: var(--transition-fast);
}

.eco-card:hover h3 {
    color: var(--color-teal);
}

.eco-card p {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 32px;
    flex-grow: 1;
}

.eco-action {
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-heading);
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--color-teal);
    transition: var(--transition-fast);
}

.eco-action i {
    width: 16px;
    height: 16px;
    transition: var(--transition-fast);
}

.eco-card:hover .eco-action {
    gap: 12px;
}

/* --- Footer --- */
.footer {
    background: hsl(240, 20%, 6%);
    border-top: 1px solid var(--border-color);
    padding: 40px 0;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 24px;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
}

.footer-logo {
    height: 30px;
    width: 30px;
}

.footer-logo-text {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--text-main);
}

.footer-logo-text span {
    color: var(--color-teal);
}

.copyright {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.footer-socials {
    display: flex;
    gap: 16px;
}

.footer-socials a {
    color: var(--text-muted);
    font-size: 1.2rem;
    transition: var(--transition-fast);
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-color);
}

.footer-socials a:hover {
    color: var(--color-teal);
    border-color: var(--color-teal);
    transform: translateY(-3px);
}

.footer-socials a i {
    width: 18px;
    height: 18px;
}

/* --- Animations & Reveal --- */
.reveal-fade {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s cubic-bezier(0.25, 0.8, 0.25, 1);
}

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

.delay-1 { transition-delay: 0.15s; }
.delay-2 { transition-delay: 0.3s; }

/* --- Responsive Adjustments --- */
@media (max-width: 1024px) {
    .hero-title {
        font-size: 3.2rem;
    }
    
    .about-grid, .ecosystem-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .about-grid > *:last-child {
        grid-column: span 2;
    }
}

@media (max-width: 768px) {
    .navbar {
        height: 70px;
    }
    
    .mobile-nav-toggle {
        display: block;
        z-index: 110;
    }
    
    .nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        max-width: 300px;
        height: 100vh;
        background-color: var(--bg-dark);
        border-left: 1px solid var(--border-color);
        box-shadow: -10px 0 30px rgba(0,0,0,0.5);
        padding: 100px 40px 40px;
        transition: var(--transition-smooth);
        z-index: 100;
    }
    
    .nav.open {
        right: 0;
    }
    
    .nav-list {
        flex-direction: column;
        align-items: flex-start;
        gap: 24px;
    }
    
    .nav-btn {
        display: block;
        width: 100%;
        text-align: center;
    }
    
    .section-hero {
        flex-direction: column-reverse;
        justify-content: center;
        padding-top: 120px;
        text-align: center;
    }
    
    .hero-content {
        max-width: 100%;
        margin-top: 40px;
    }
    
    .hero-title {
        font-size: 2.8rem;
    }
    
    .hero-subtitle {
        font-size: 1.2rem;
    }
    
    .hero-cta {
        justify-content: center;
    }
    
    .hero-bg-visual {
        position: relative;
        width: 100%;
        height: 250px;
        mask-image: linear-gradient(to top, rgba(0,0,0,1) 50%, rgba(0,0,0,0) 100%);
        -webkit-mask-image: linear-gradient(to top, rgba(0,0,0,1) 50%, rgba(0,0,0,0) 100%);
    }
    
    .about-grid, .ecosystem-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }
    
    .about-grid > *:last-child, .ecosystem-grid > *:last-child {
        grid-column: span 1;
    }
    
    .footer-content {
        flex-direction: column;
        text-align: center;
    }
}
