/* ==========================================================================
   CSS Design System
   ========================================================================== */

:root {
    /* Color Palette */
    --bg-main: #0a0b10;
    --bg-secondary: #13141c;
    --text-primary: #ffffff;
    --text-secondary: #94a3b8;
    
    /* Brand Gradients & Accents */
    --accent-primary: #7c3aed; /* Purple */
    --accent-secondary: #3b82f6; /* Blue */
    --accent-tertiary: #06b6d4; /* Cyan */
    
    --gradient-primary: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
    --gradient-text: linear-gradient(to right, #e2e8f0, #94a3b8);
    --gradient-highlight: linear-gradient(135deg, #a78bfa, #60a5fa);
    
    /* Glassmorphism Variables */
    --glass-bg: rgba(30, 41, 59, 0.4);
    --glass-border: rgba(255, 255, 255, 0.08);
    --glass-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
    
    /* Typography */
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    
    /* Spacing & Sizes */
    --header-height: 80px;
    --section-gap: 120px;
    --border-radius-sm: 8px;
    --border-radius-md: 16px;
    --border-radius-lg: 24px;
    
    /* Transitions */
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ==========================================================================
   Reset & Base Styles
   ========================================================================== */

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

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

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

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

ul {
    list-style: none;
}

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

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ==========================================================================
   Typography
   ========================================================================== */

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    line-height: 1.2;
    margin-bottom: 0.5em;
}

.highlight {
    color: var(--accent-primary);
}

.highlight-gradient {
    background: var(--gradient-highlight);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    color: transparent;
}

.section {
    padding: var(--section-gap) 0;
    position: relative;
}

.section-header {
    text-align: center;
    margin-bottom: 64px;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
    margin-bottom: 12px;
}

.section-subtitle {
    font-size: 1.25rem;
    font-weight: 400;
    color: var(--text-secondary);
}

.section-desc {
    color: var(--text-secondary);
    max-width: 600px;
    margin: 16px auto 0;
}

/* ==========================================================================
   Components (Glass Cards, Buttons)
   ========================================================================== */

.glass-card {
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    border-radius: var(--border-radius-md);
    box-shadow: var(--glass-shadow);
    padding: 32px;
    transition: transform var(--transition-normal), box-shadow var(--transition-normal), border-color var(--transition-normal);
}

.glass-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.4);
    border-color: rgba(255,255,255,0.2);
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 28px;
    border-radius: 100px;
    font-weight: 600;
    font-family: var(--font-heading);
    cursor: pointer;
    transition: var(--transition-normal);
    border: 1px solid transparent;
}

.btn-sm {
    padding: 8px 20px;
    font-size: 0.9rem;
}

.btn-lg {
    padding: 16px 36px;
    font-size: 1.1rem;
}

.btn-primary {
    background: var(--gradient-primary);
    color: #fff;
    position: relative;
    z-index: 1;
    overflow: hidden;
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(135deg, var(--accent-secondary), var(--accent-primary));
    opacity: 0;
    z-index: -1;
    transition: opacity var(--transition-normal);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(124, 58, 237, 0.4);
}

.btn-primary:hover::before {
    opacity: 1;
}

.btn-outline {
    background: transparent;
    border: 1px solid rgba(255,255,255,0.3);
    color: white;
}

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

/* ==========================================================================
   Header & Navigation
   ========================================================================== */

.header {
    position: fixed;
    top: 0; left: 0; right: 0;
    height: var(--header-height);
    display: flex;
    align-items: center;
    z-index: 100;
    transition: background var(--transition-normal), backdrop-filter var(--transition-normal), border-bottom var(--transition-normal);
    border-bottom: 1px solid transparent;
}

.header.scrolled {
    background: rgba(10, 11, 16, 0.8);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--glass-border);
    box-shadow: 0 4px 20px rgba(0,0,0,0.5);
}

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

.logo-text {
    font-family: var(--font-heading);
    font-weight: 900;
    font-size: 1.5rem;
    letter-spacing: 1px;
}

.nav {
    display: flex;
}

.nav-list {
    display: flex;
    gap: 32px;
}

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

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

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

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

.header-action {
    display: flex;
    align-items: center;
    gap: 16px;
}

.hamburger {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    width: 30px;
    height: 20px;
    position: relative;
    z-index: 101;
}

.hamburger span {
    display: block;
    position: absolute;
    height: 2px;
    width: 100%;
    background: var(--text-primary);
    border-radius: 2px;
    opacity: 1;
    left: 0;
    transition: .25s ease-in-out;
}

.hamburger span:nth-child(1) { top: 0px; }
.hamburger span:nth-child(2) { top: 9px; }
.hamburger span:nth-child(3) { top: 18px; }

.hamburger.active span:nth-child(1) {
    top: 9px;
    transform: rotate(135deg);
}
.hamburger.active span:nth-child(2) {
    opacity: 0;
    left: -20px;
}
.hamburger.active span:nth-child(3) {
    top: 9px;
    transform: rotate(-135deg);
}

/* ==========================================================================
   Hero Section
   ========================================================================== */

.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    padding-top: var(--header-height);
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    z-index: -1;
    overflow: hidden;
}

.blob {
    position: absolute;
    filter: blur(80px);
    border-radius: 50%;
    opacity: 0.5;
    animation: float 20s infinite alternate;
}

.blob-1 {
    top: 20%; left: 10%;
    width: 400px; height: 400px;
    background: rgba(124, 58, 237, 0.4);
    animation-delay: 0s;
}

.blob-2 {
    bottom: 10%; right: 10%;
    width: 500px; height: 500px;
    background: rgba(6, 182, 212, 0.3);
    animation-delay: -5s;
    animation-duration: 25s;
}

.blob-3 {
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    width: 600px; height: 600px;
    background: rgba(59, 130, 246, 0.2);
    animation-delay: -10s;
    animation-duration: 30s;
}

.glass-overlay {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: radial-gradient(circle at center, transparent 0%, var(--bg-main) 100%);
    pointer-events: none;
}

.hero-container {
    position: relative;
    z-index: 1;
}

.hero-content {
    max-width: 800px;
    text-align: center;
    margin: 0 auto;
}

.hero-title {
    font-size: clamp(2.5rem, 5vw, 4.5rem);
    margin-bottom: 24px;
    letter-spacing: -1px;
}

.hero-subtitle {
    font-size: clamp(1.1rem, 2vw, 1.35rem);
    color: var(--text-secondary);
    margin-bottom: 40px;
    background: var(--gradient-text);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
}

/* ==========================================================================
   About Section
   ========================================================================== */

.about {
    background: linear-gradient(to bottom, var(--bg-main), var(--bg-secondary));
}

.lg-card {
    max-width: 900px;
    margin: 0 auto;
    padding: 64px 48px;
    text-align: center;
}

.about-text .lead {
    font-size: 1.4rem;
    color: #fff;
    margin-bottom: 24px;
    font-weight: 500;
}

.about-text p {
    color: var(--text-secondary);
    margin-bottom: 16px;
    font-size: 1.1rem;
}

.about-text p:last-child {
    margin-bottom: 0;
}

/* ==========================================================================
   Services Section
   ========================================================================== */

.services {
    background: var(--bg-secondary);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 32px;
}

.service-item {
    position: relative;
    overflow: hidden;
}

.service-item::before {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 4px;
    background: var(--gradient-primary);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform var(--transition-normal);
}

.service-item:hover::before {
    transform: scaleX(1);
}

.service-icon-wrap {
    width: 64px;
    height: 64px;
    border-radius: 16px;
    background: rgba(255,255,255,0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
    border: 1px solid rgba(255,255,255,0.1);
    font-size: 2rem;
}

.service-title {
    font-size: 1.5rem;
    margin-bottom: 16px;
}

.service-desc {
    color: var(--text-secondary);
    margin-bottom: 24px;
}

.service-list {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 24px;
}

.service-list li {
    position: relative;
    padding-left: 24px;
    margin-bottom: 12px;
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.service-list li::before {
    content: '→';
    position: absolute;
    left: 0;
    color: var(--accent-primary);
    font-weight: bold;
}

/* ==========================================================================
   Projects Section
   ========================================================================== */

.projects {
    background: linear-gradient(to bottom, var(--bg-secondary), var(--bg-main));
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 40px;
}

.project-card {
    padding: 32px;
    position: relative;
    overflow: hidden;
}

.project-info {
    position: relative;
    z-index: 1;
}

.project-card::before {
    content: '';
    position: absolute;
    inset: -2px;
    background: linear-gradient(120deg, rgba(124,58,237,0.18), rgba(59,130,246,0.14), rgba(6,182,212,0.12));
    filter: blur(18px);
    opacity: 0.9;
    z-index: 0;
}

.project-card::after {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(900px 380px at 15% 0%, rgba(124,58,237,0.25), transparent 60%),
        radial-gradient(700px 320px at 85% 10%, rgba(59,130,246,0.22), transparent 55%),
        linear-gradient(to bottom, rgba(255,255,255,0.04), rgba(255,255,255,0.0));
    opacity: 0.9;
    z-index: 0;
}

.project-head {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 18px;
}

.project-tag {
    display: inline-flex;
    align-items: center;
    padding: 6px 14px;
    border-radius: 999px;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.2px;
    color: #fff;
    background: rgba(0,0,0,0.35);
    border: 1px solid rgba(255,255,255,0.12);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
}

.project-meta {
    font-size: 0.85rem;
    color: rgba(255,255,255,0.65);
}

.project-title {
    font-size: 1.6rem;
    margin-bottom: 12px;
}

.project-desc {
    color: var(--text-secondary);
}

.project-points {
    margin-top: 20px;
    padding-top: 18px;
    border-top: 1px solid rgba(255,255,255,0.10);
    display: grid;
    gap: 10px;
}

.project-points li {
    position: relative;
    padding-left: 22px;
    color: rgba(255,255,255,0.78);
    font-size: 0.95rem;
}

.project-points li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.6em;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--gradient-primary);
    box-shadow: 0 0 0 3px rgba(124,58,237,0.16);
    transform: translateY(-50%);
}

/* ==========================================================================
   Advantages Section
   ========================================================================== */

.advantages {
    background: var(--bg-main);
}

.advantages-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 32px;
}

.advantage-item {
    position: relative;
}

.adv-number {
    font-size: 3rem;
    font-weight: 900;
    font-family: var(--font-heading);
    color: transparent;
    -webkit-text-stroke: 1px rgba(255,255,255,0.1);
    position: absolute;
    top: -20px; right: 20px;
    transition: var(--transition-normal);
}

.advantage-item:hover .adv-number {
    -webkit-text-stroke: 1px var(--accent-primary);
    transform: translateY(-10px);
}

.advantage-title {
    font-size: 1.3rem;
    margin-bottom: 16px;
    margin-top: 16px;
}

.advantage-desc {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

/* ==========================================================================
   Footer
   ========================================================================== */

.footer {
    background: #050608;
    border-top: 1px solid rgba(255,255,255,0.05);
    padding-top: 80px;
}

.footer-container {
    display: flex;
    flex-wrap: wrap;
    gap: 64px;
    justify-content: space-between;
    margin-bottom: 64px;
}

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

.footer-brand .logo {
    margin-bottom: 24px;
    display: inline-block;
}

.footer-desc {
    color: var(--text-secondary);
    margin-bottom: 24px;
}

.footer-links-group {
    display: flex;
    gap: 64px;
    flex-wrap: wrap;
}

.footer-title {
    font-size: 1.1rem;
    margin-bottom: 24px;
    color: #fff;
    position: relative;
    padding-bottom: 12px;
}

.footer-title::after {
    content: '';
    position: absolute;
    bottom: 0; left: 0;
    width: 30px; height: 2px;
    background: var(--accent-primary);
}

.footer-links ul li {
    margin-bottom: 12px;
}

.footer-links ul a {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.footer-links ul a:hover {
    color: var(--accent-primary);
    padding-left: 5px;
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.05);
    padding: 24px 0;
}

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

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

/* ==========================================================================
   Animations & Keyframes
   ========================================================================== */

@keyframes float {
    0% { transform: translate(0, 0) rotate(0deg); }
    33% { transform: translate(30px, -50px) rotate(10deg); }
    66% { transform: translate(-20px, 20px) rotate(-5deg); }
    100% { transform: translate(0, 0) rotate(0deg); }
}

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

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

.reveal-delay { transition-delay: 0.2s; }
.reveal-delay-1 { transition-delay: 0.2s; }
.reveal-delay-2 { transition-delay: 0.4s; }
.reveal-delay-3 { transition-delay: 0.6s; }

/* ==========================================================================
   Media Queries
   ========================================================================== */

@media (max-width: 991px) {
    .hero-title { font-size: 3rem; }
    .footer-container { gap: 40px; }
}

@media (max-width: 768px) {
    .header-action .btn {
        display: none;
    }
    
    .hamburger {
        display: block;
    }
    
    .nav {
        position: fixed;
        top: var(--header-height);
        left: 0;
        width: 100%;
        height: calc(100vh - var(--header-height));
        background: rgba(10, 11, 16, 0.98);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        transform: translateY(-100%);
        opacity: 0;
        visibility: hidden;
        transition: 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
        z-index: 99;
    }
    
    .nav.active {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }
    
    .nav-list {
        flex-direction: column;
        align-items: center;
        gap: 32px;
    }
    
    .nav-link {
        font-size: 1.5rem;
    }
    
    .hero-buttons {
        flex-direction: column;
    }
    
    .section {
        padding: 80px 0;
    }
    
    .projects-grid {
        grid-template-columns: 1fr;
    }
}
