:root {
    --bg-base: 228 30% 6%;
    --bg-surface: 228 30% 10%;
    --text-primary: 210 40% 98%;
    --text-secondary: 215 20% 65%;
    --primary: 221 83% 53%;
    --secondary: 205 90% 50%;
    --accent: 235 50% 60%;
    
    --glass-bg: rgba(255, 255, 255, 0.03);
    --glass-border: rgba(255, 255, 255, 0.08);
    --glass-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
    
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;
    
    --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

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

html {
    scroll-behavior: smooth;
}

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

/* Background Effects */
.glow-bg {
    position: fixed;
    top: -20%;
    left: -10%;
    width: 60vw;
    height: 60vw;
    border-radius: 50%;
    background: radial-gradient(circle, hsla(var(--primary), 0.15) 0%, transparent 70%);
    z-index: -1;
    filter: blur(80px);
    animation: float 20s infinite alternate;
}

.glow-bg-2 {
    position: fixed;
    bottom: -20%;
    right: -10%;
    width: 50vw;
    height: 50vw;
    border-radius: 50%;
    background: radial-gradient(circle, hsla(var(--secondary), 0.15) 0%, transparent 70%);
    z-index: -1;
    filter: blur(80px);
    animation: float 15s infinite alternate-reverse;
}

@keyframes float {
    0% { transform: translate(0, 0); }
    100% { transform: translate(5%, 5%); }
}

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

p {
    color: hsl(var(--text-secondary));
    margin-bottom: 1.5rem;
}

.gradient-text {
    background: linear-gradient(135deg, hsl(var(--primary)), hsl(var(--secondary)), hsl(var(--accent)));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    color: transparent;
    display: inline-block;
}

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

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

.section-spacing {
    padding: 6rem 0;
}

/* UI Elements */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.8rem 2rem;
    border-radius: 50px;
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition);
    cursor: pointer;
    border: none;
    font-family: var(--font-body);
}

.btn-primary {
    background: linear-gradient(135deg, hsl(var(--primary)), hsl(var(--secondary)));
    color: white;
    box-shadow: 0 4px 15px hsla(var(--primary), 0.4);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px hsla(var(--primary), 0.6);
}

.btn-secondary {
    background: transparent;
    color: hsl(var(--text-primary));
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(10px);
}

.btn-secondary:hover {
    background: var(--glass-bg);
    border-color: hsla(var(--text-primary), 0.3);
    transform: translateY(-2px);
}

.btn-primary-sm {
    background: linear-gradient(135deg, hsl(var(--primary)), hsl(var(--secondary)));
    color: white;
    padding: 0.5rem 1.2rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9rem;
    transition: var(--transition);
}

.btn-primary-sm:hover {
    box-shadow: 0 4px 15px hsla(var(--primary), 0.4);
    transform: translateY(-1px);
}

.glass-card {
    background: var(--glass-bg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    box-shadow: var(--glass-shadow);
}

.hover-lift {
    transition: var(--transition);
}

.hover-lift:hover {
    transform: translateY(-10px);
    border-color: hsla(var(--primary), 0.3);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4), 0 0 20px hsla(var(--primary), 0.1);
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 100;
    padding: 1.5rem 0;
    transition: var(--transition);
}

.navbar.scrolled {
    padding: 1rem 0;
    background: hsla(var(--bg-base), 0.8);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--glass-border);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    font-weight: 800;
    text-decoration: none;
    color: hsl(var(--text-primary));
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.logo-img {
    height: 2.2em;
    width: auto;
    object-fit: contain;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2rem;
    align-items: center;
}

.nav-links a {
    text-decoration: none;
    color: hsl(var(--text-secondary));
    font-weight: 500;
    transition: var(--transition);
    font-size: 0.95rem;
}

.nav-links a:not(.btn-primary-sm):hover,
.nav-links a.active {
    color: hsl(var(--text-primary));
}

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

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.badge {
    display: inline-block;
    padding: 0.4rem 1rem;
    background: hsla(var(--primary), 0.1);
    border: 1px solid hsla(var(--primary), 0.2);
    color: hsl(var(--primary));
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.hero .title {
    font-size: 3.5rem;
    letter-spacing: -1px;
}

.hero .subtitle {
    font-size: 1.1rem;
    max-width: 90%;
    margin-bottom: 2.5rem;
}

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

.hero-visual {
    position: relative;
    height: 500px;
}

.visual-card {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 300px;
    padding: 1.5rem;
    z-index: 2;
    background: linear-gradient(145deg, rgba(30, 30, 40, 0.8), rgba(20, 20, 25, 0.9));
}

.card-header {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 2rem;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}
.dot.red { background-color: #ff5f56; }
.dot.yellow { background-color: #ffbd2e; }
.dot.green { background-color: #27c93f; }

.code-line {
    height: 10px;
    background: var(--glass-border);
    border-radius: 5px;
    margin-bottom: 1rem;
}

.w-80 { width: 80%; background: linear-gradient(90deg, hsl(var(--primary)), transparent); opacity: 0.8; }
.w-60 { width: 60%; background: hsla(var(--secondary), 0.5); }
.w-90 { width: 90%; background: hsla(var(--text-secondary), 0.2); }
.w-40 { width: 40%; background: hsla(var(--accent), 0.5); }
.w-70 { width: 70%; background: hsla(var(--text-secondary), 0.2); }

.floating-element {
    position: absolute;
    border-radius: 50%;
    filter: blur(30px);
    z-index: 1;
}

.el-1 {
    width: 150px;
    height: 150px;
    background: hsl(var(--primary));
    top: 10%;
    right: 10%;
    animation: float-slow 8s infinite alternate;
}

.el-2 {
    width: 200px;
    height: 200px;
    background: hsl(var(--accent));
    bottom: 5%;
    left: 0;
    animation: float-slow 10s infinite alternate-reverse;
}

@keyframes float-slow {
    0% { transform: translate(0, 0) scale(1); }
    100% { transform: translate(-20px, 20px) scale(1.1); }
}

/* Sections Global */
.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-header h2 {
    font-size: 3rem;
}

/* Services */
.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.services-grid.cols-4 {
    grid-template-columns: repeat(4, 1fr);
}

.service-card {
    padding: 2.5rem;
}

.service-icon {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    display: inline-block;
    background: linear-gradient(135deg, hsl(var(--primary)), hsl(var(--secondary)));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.service-card h3 {
    font-size: 1.3rem;
}

/* Case Study */
.grid-2-cols {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.hero-card {
    padding: 4rem;
}

.metrics-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.metric-box {
    padding: 2rem 1.5rem;
    text-align: center;
}

.metric-number {
    font-size: 3rem;
    font-family: var(--font-heading);
    font-weight: 800;
    margin-bottom: 0.5rem;
}

.metric-label {
    font-size: 0.9rem;
    color: hsl(var(--text-secondary));
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
}

/* Stats Section */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    text-align: center;
}

.stat-number {
    font-size: 4rem;
    font-family: var(--font-heading);
    font-weight: 800;
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 1rem;
    color: hsl(var(--text-secondary));
    font-weight: 500;
}

.testimonial-box {
    padding: 4rem;
    text-align: center;
}

.testimonial-box blockquote {
    font-size: 1.5rem;
    font-style: italic;
    color: hsl(var(--text-primary));
    max-width: 800px;
    margin: 0 auto 2rem auto;
    line-height: 1.6;
}

.testimonial-author {
    display: flex;
    flex-direction: column;
}

.testimonial-author strong {
    font-size: 1.1rem;
    color: hsl(var(--primary));
}

.testimonial-author span {
    font-size: 0.9rem;
    color: hsl(var(--text-secondary));
}

/* Team Section */
.team-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.team-card {
    padding: 3rem 2rem;
    text-align: center;
}

.team-name {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.team-role {
    font-weight: 600;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.team-desc {
    font-size: 0.9rem;
}

.tags {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 1.5rem;
}

.tag {
    padding: 0.4rem 1rem;
    background: hsla(var(--primary), 0.1);
    border: 1px solid hsla(var(--primary), 0.2);
    border-radius: 50px;
    font-size: 0.8rem;
    color: hsl(var(--text-primary));
}

/* CTA */
.cta-box {
    text-align: center;
    padding: 5rem 3rem;
    background: linear-gradient(145deg, hsla(var(--bg-surface), 0.6), hsla(var(--bg-base), 0.8));
    border-top: 1px solid hsla(var(--primary), 0.3);
}

.cta-box h2 {
    font-size: 3rem;
}

.cta-box p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

/* Footer */
footer {
    padding: 4rem 0 2rem 0;
    border-top: 1px solid var(--glass-border);
    background: hsla(var(--bg-surface), 0.5);
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-logo {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    font-weight: 800;
    margin-bottom: 1rem;
}

.footer-col h4 {
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    color: hsl(var(--text-primary));
}

.footer-col ul {
    list-style: none;
}

.footer-col ul li {
    margin-bottom: 0.8rem;
}

.footer-col ul a {
    text-decoration: none;
    color: hsl(var(--text-secondary));
    transition: var(--transition);
}

.footer-col ul a:hover {
    color: hsl(var(--primary));
}

.contact-info li {
    color: hsl(var(--text-secondary));
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid var(--glass-border);
}

.copyright {
    margin: 0;
    font-size: 0.9rem;
}

/* Animations */
.fade-in-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

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

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

/* Responsive */
@media (max-width: 1024px) {
    .services-grid.cols-4 { grid-template-columns: repeat(2, 1fr); }
    .hero-card { padding: 2rem; }
    .grid-2-cols { gap: 2rem; }
}

@media (max-width: 992px) {
    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    .hero .title { font-size: 3rem; }
    .hero-actions { justify-content: center; }
    .grid-2-cols { grid-template-columns: 1fr; }
    .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 3rem; }
    .footer-content { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
    .nav-links { display: none; }
    .hero .title { font-size: 2.5rem; }
    .services-grid.cols-4 { grid-template-columns: 1fr; }
    .team-grid { grid-template-columns: 1fr; }
    .metrics-grid { grid-template-columns: 1fr; }
    .cta-box { padding: 3rem 1.5rem; }
    .cta-box h2 { font-size: 2.2rem; }
    .testimonial-box blockquote { font-size: 1.2rem; }
    .footer-content { grid-template-columns: 1fr; text-align: center; }
    .contact-info li { justify-content: center; }
}
