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

:root {
    --color-bg: #fafafa;
    --color-surface: #ffffff;
    --color-text: #1a1a1a;
    --color-text-secondary: #555555;
    --color-accent: #2563eb;
    --color-accent-hover: #1d4ed8;
    --color-border: #e5e7eb;
    --font: 'Open Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --max-width: 1080px;
}

html {
    scroll-behavior: smooth;
}

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

/* Navigation */
header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    background: rgba(250, 250, 250, 0.9);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--color-border);
}

nav {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--color-text);
    letter-spacing: -0.02em;
}

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

.nav-links a {
    text-decoration: none;
    color: var(--color-text-secondary);
    font-size: 0.9rem;
    font-weight: 500;
    transition: color 0.2s ease;
}

.nav-links a:hover {
    color: var(--color-text);
}

/* Hero */
.hero {
    min-height: 80vh;
    max-width: none;
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 8rem 2rem 4rem;
    position: relative;
    overflow: hidden;
    background: linear-gradient(180deg, #f0f4ff 0%, var(--color-bg) 100%);
}

#hero-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
}

.hero-glow {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
    filter: blur(30px);
}

.hero-glow .glow-orb {
    position: absolute;
    border-radius: 50%;
}

.hero-glow .glow-orb-1 {
    width: 60%;
    height: 70%;
    top: 15%;
    left: 20%;
    background: radial-gradient(circle, rgba(37, 99, 235, 0.2) 0%, transparent 70%);
    animation: orbFloat1 10s ease-in-out infinite;
}

.hero-glow .glow-orb-2 {
    width: 45%;
    height: 55%;
    top: 20%;
    left: 35%;
    background: radial-gradient(circle, rgba(139, 92, 246, 0.15) 0%, transparent 65%);
    animation: orbFloat2 12s ease-in-out infinite;
}

.hero-glow .glow-orb-3 {
    width: 35%;
    height: 45%;
    top: 25%;
    left: 30%;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.12) 0%, transparent 60%);
    animation: orbFloat3 14s ease-in-out infinite;
}

@keyframes orbFloat1 {
    0%   { transform: translate(0, 0) scale(1); opacity: 0.7; }
    25%  { transform: translate(3%, -4%) scale(1.05); opacity: 0.9; }
    50%  { transform: translate(-2%, 2%) scale(0.97); opacity: 0.8; }
    75%  { transform: translate(4%, 3%) scale(1.03); opacity: 1; }
    100% { transform: translate(0, 0) scale(1); opacity: 0.7; }
}

@keyframes orbFloat2 {
    0%   { transform: translate(0, 0) scale(1); opacity: 0.6; }
    33%  { transform: translate(-4%, 3%) scale(1.06); opacity: 0.85; }
    66%  { transform: translate(3%, -2%) scale(0.95); opacity: 0.7; }
    100% { transform: translate(0, 0) scale(1); opacity: 0.6; }
}

@keyframes orbFloat3 {
    0%   { transform: translate(0, 0) scale(1); opacity: 0.5; }
    50%  { transform: translate(5%, -3%) scale(1.08); opacity: 0.8; }
    100% { transform: translate(0, 0) scale(1); opacity: 0.5; }
}

.hero-content {
    position: relative;
    z-index: 2;
}

.hero h1 {
    font-family: 'Open Sans', sans-serif;
    font-size: clamp(3.5rem, 10vw, 6.5rem);
    font-weight: 800;
    letter-spacing: -0.02em;
    line-height: 1.1;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, #1a1a1a 0%, #2563eb 50%, #1a1a1a 100%);
    background-size: 200% 200%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: shimmer 6s ease-in-out infinite;
}

@keyframes shimmer {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

.tagline {
    font-size: clamp(1.1rem, 2.5vw, 1.4rem);
    color: var(--color-text-secondary);
    font-weight: 400;
    max-width: 500px;
}

/* Sections */
section {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 3rem 2rem;
}

section h2 {
    font-size: 1.8rem;
    font-weight: 600;
    letter-spacing: -0.02em;
    margin-bottom: 1.5rem;
    display: inline-block;
    position: relative;
}

section h2::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--color-accent), rgba(139, 92, 246, 0.6));
    border-radius: 2px;
    transition: width 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}

section h2.visible::after {
    width: 100%;
}

/* About */
.about p {
    font-size: 1.1rem;
    color: var(--color-text-secondary);
    max-width: 700px;
    line-height: 1.8;
}

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

.service-card {
    position: relative;
    overflow: hidden;
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: 16px;
    padding: 2.25rem;
    transition: box-shadow 0.35s ease, transform 0.35s ease, border-color 0.35s ease;
    opacity: 0;
    transform: translateY(30px);
}

.card-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
}

.service-card.visible {
    opacity: 1;
    transform: translateY(0);
}

.service-card:hover {
    box-shadow: 0 8px 40px rgba(37, 99, 235, 0.1);
    transform: translateY(-4px);
    border-color: rgba(37, 99, 235, 0.2);
}

.service-card > *:not(.card-canvas) {
    position: relative;
    z-index: 1;
}

.service-icon {
    width: 52px;
    height: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.1), rgba(139, 92, 246, 0.08));
    border-radius: 12px;
    color: var(--color-accent);
    margin-bottom: 1.25rem;
    transition: transform 0.3s ease, background 0.3s ease;
}

.service-card:hover .service-icon {
    transform: scale(1.08);
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.18), rgba(139, 92, 246, 0.14));
}

.service-card h3 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    letter-spacing: -0.01em;
}

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

/* Contact */
.contact {
    padding-bottom: 3rem;
}

.contact > p {
    color: var(--color-text-secondary);
    font-size: 1.05rem;
    margin-bottom: 2rem;
}

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

.contact-item {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
    color: var(--color-accent);
    font-size: 1.05rem;
    font-weight: 500;
    transition: color 0.2s ease;
    width: fit-content;
}

.contact-item:hover {
    color: var(--color-accent-hover);
    transform: translateX(6px);
}

.contact-item {
    transition: color 0.2s ease, transform 0.3s ease;
}

.contact-item svg {
    flex-shrink: 0;
}

/* Footer */
footer {
    border-top: 1px solid var(--color-border);
    padding: 2rem;
    text-align: center;
}

footer p {
    font-size: 0.85rem;
    color: var(--color-text-secondary);
}

/* Responsive */
@media (max-width: 768px) {
    .nav-links {
        gap: 1.25rem;
    }

    .nav-links a {
        font-size: 0.85rem;
    }

    .hero {
        min-height: 60vh;
        padding: 7rem 1.5rem 3rem;
    }

    section {
        padding: 2.5rem 1.5rem;
    }

    .services-grid {
        grid-template-columns: 1fr;
        gap: 1.25rem;
    }
}

@media (max-width: 480px) {
    nav {
        padding: 0.875rem 1.25rem;
    }

    .logo {
        font-size: 1.2rem;
    }

    .nav-links {
        gap: 1rem;
    }

    .hero {
        padding-top: 6rem;
    }

    section h2 {
        font-size: 1.5rem;
    }
}
