/* ===========================
   CSS Variables
   =========================== */
:root {
    --primary: #00ff88;
    --primary-dark: #00cc6e;
    --bg: #0a0e27;
    --bg-card: #1a1f3a;
    --text: #e4e8f0;
    --text-dim: #8892b0;
    --accent: #667eea;
    --spacing: 1rem;
    --radius: 12px;
}

/* ===========================
   Reset & Base
   =========================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    overflow-x: hidden;
    opacity: 0;
    animation: fadeIn 0.8s ease forwards;
}

@keyframes fadeIn {
    to {
        opacity: 1;
    }
}

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

section {
    padding: 6rem 0;
}

h1, h2, h3 {
    line-height: 1.2;
}

h2 {
    font-size: 2.5rem;
    margin-bottom: 3rem;
    text-align: center;
    background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ===========================
   Buttons
   =========================== */
.btn {
    display: inline-block;
    padding: 1rem 2rem;
    border-radius: var(--radius);
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

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

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(0, 255, 136, 0.3);
}

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

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

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

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

.hero-content {
    z-index: 2;
    animation: slideUp 1s ease 0.3s backwards;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.logo {
    font-size: 5rem;
    font-weight: 900;
    letter-spacing: 0.1em;
    margin-bottom: 0.5rem;
    background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.tagline {
    font-size: 1.5rem;
    color: var(--text-dim);
    margin-bottom: 1rem;
}

.subtitle {
    font-size: 1.25rem;
    color: var(--text);
    margin-bottom: 2rem;
}

.cta-group {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

/* Hero Graphic */
.hero-graphic {
    position: relative;
    height: 500px;
}

.floating-card {
    position: absolute;
    background: var(--bg-card);
    border-radius: var(--radius);
    padding: 1.5rem;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4);
    animation: float 6s ease-in-out infinite;
}

.card-1 {
    width: 250px;
    height: 180px;
    top: 50px;
    left: 0;
}

.card-2 {
    width: 200px;
    height: 150px;
    top: 200px;
    right: 100px;
    animation-delay: -2s;
}

.card-3 {
    width: 150px;
    height: 280px;
    bottom: 50px;
    left: 150px;
    animation-delay: -4s;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0) rotate(0deg);
    }
    50% {
        transform: translateY(-20px) rotate(2deg);
    }
}

/* Card Graphics */
.code-line {
    height: 12px;
    background: var(--text-dim);
    border-radius: 6px;
    margin-bottom: 10px;
    opacity: 0.6;
}

.code-line.short {
    width: 60%;
}

.window-bar {
    height: 30px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
    border-radius: 6px 6px 0 0;
    margin-bottom: 10px;
}

.window-content {
    height: 80px;
    background: var(--text-dim);
    border-radius: 6px;
    opacity: 0.3;
}

.mobile-screen {
    height: 100%;
    background: linear-gradient(135deg, var(--accent) 0%, var(--primary) 100%);
    border-radius: 20px;
    opacity: 0.8;
}

/* ===========================
   Services Section
   =========================== */
.services {
    background: rgba(26, 31, 58, 0.4);
}

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

.service-card {
    background: var(--bg-card);
    padding: 2.5rem;
    border-radius: var(--radius);
    transition: all 0.3s ease;
    border: 1px solid transparent;
}

.service-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary);
    box-shadow: 0 10px 40px rgba(0, 255, 136, 0.2);
}

.service-icon {
    color: var(--primary);
    margin-bottom: 1.5rem;
}

.service-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--text);
}

.service-card p {
    color: var(--text-dim);
}

/* ===========================
   Expertise Section
   =========================== */
.tech-carousel {
    overflow: hidden;
    padding: 2rem 0;
    position: relative;
}

.tech-track {
    display: flex;
    gap: 2rem;
    animation: scroll 30s linear infinite;
}

.tech-track:hover {
    animation-play-state: paused;
}

@keyframes scroll {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

.tech-card {
    background: var(--bg-card);
    padding: 2rem 3rem;
    border-radius: var(--radius);
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text);
    white-space: nowrap;
    flex-shrink: 0;
    border: 1px solid transparent;
    transition: all 0.3s ease;
    min-width: 250px;
    text-align: center;
}

.tech-card:hover {
    background: rgba(26, 31, 58, 0.8);
    border-color: var(--primary);
    transform: scale(1.05);
}

/* ===========================
   Process Section
   =========================== */
.process {
    background: rgba(26, 31, 58, 0.4);
}

.process-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.step {
    text-align: center;
    padding: 2rem;
}

.step-number {
    font-size: 3rem;
    font-weight: 900;
    background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 1rem;
    opacity: 0.7;
}

.step h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--text);
}

.step p {
    color: var(--text-dim);
}

/* ===========================
   Contact Section
   =========================== */
.contact {
    text-align: center;
}

.contact-content h2 {
    margin-bottom: 1rem;
}

.contact-content p {
    font-size: 1.25rem;
    color: var(--text-dim);
    margin-bottom: 2rem;
}

.contact-links {
    margin-top: 2rem;
}

.contact-links a {
    color: var(--text-dim);
    text-decoration: none;
    margin: 0 1rem;
    transition: color 0.3s ease;
}

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

/* ===========================
   Footer
   =========================== */
footer {
    padding: 2rem 0;
    text-align: center;
    color: var(--text-dim);
    border-top: 1px solid rgba(100, 100, 100, 0.2);
}

/* ===========================
   Responsive
   =========================== */
@media (max-width: 968px) {
    .hero .container {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-graphic {
        display: none;
    }

    .logo {
        font-size: 4rem;
    }

    .cta-group {
        justify-content: center;
    }

    h2 {
        font-size: 2rem;
    }
}

@media (max-width: 640px) {
    section {
        padding: 4rem 0;
    }

    .container {
        padding: 0 1.5rem;
    }

    .logo {
        font-size: 3rem;
    }

    .tagline {
        font-size: 1.25rem;
    }

    .subtitle {
        font-size: 1rem;
    }

    .btn {
        padding: 0.875rem 1.5rem;
        font-size: 0.9rem;
    }

    .services-grid,
    .process-steps {
        grid-template-columns: 1fr;
    }

    .tech-card {
        padding: 1.5rem 2rem;
        font-size: 1.25rem;
    }
}
