@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Outfit:wght@400;500;700;800;900&display=swap');

:root {
    /* Advanced Color Palette */
    --primary: #0a0f1c;      /* Very Deep Navy */
    --secondary: #2563eb;    /* Electric Tech Blue */
    --accent: #06b6d4;       /* Cyan */
    --text-main: #1e293b;
    --text-muted: #64748b;
    --bg-main: #f4f7fb;
    --white: #ffffff;
    --border: rgba(255, 255, 255, 0.1);
    
    /* Typography */
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;

    /* Spacing & Layout */
    --section-pad: 6rem 2rem;
    --container-max: 1280px;

    /* Transitions & Shadows */
    --transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    --shadow-glass: 0 8px 32px 0 rgba(31, 38, 135, 0.07);
    --shadow-hover: 0 15px 35px 0 rgba(37, 99, 235, 0.2);
}

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

body {
    font-family: var(--font-body);
    color: var(--text-main);
    background-color: var(--bg-main);
    line-height: 1.6;
    overflow-x: hidden;
    scroll-behavior: smooth;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    color: var(--primary);
    line-height: 1.2;
}

a { text-decoration: none; color: var(--secondary); transition: var(--transition); }
a:hover { color: var(--accent); }

.container { max-width: var(--container-max); margin: 0 auto; width: 100%; position: relative; z-index: 10; }
.section { padding: var(--section-pad); position: relative; }

.section-title {
    text-align: center;
    font-size: 3rem;
    margin-bottom: 1rem;
    font-weight: 800;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.section-subtitle {
    text-align: center;
    color: var(--text-muted);
    font-size: 1.15rem;
    max-width: 700px;
    margin: 0 auto 4rem;
}

/* Glassmorphism Navbar */
header {
    position: fixed;
    top: 0; left: 0; width: 100%;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border-bottom: 1px solid rgba(255,255,255,0.1);
    transition: var(--transition);
}

header.scrolled {
    background: rgba(255, 255, 255, 0.9);
    box-shadow: var(--shadow-glass);
    border-bottom: 1px solid rgba(0,0,0,0.05);
}

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

.logo {
    font-family: var(--font-heading); font-size: 1.6rem; font-weight: 900;
    color: var(--white); display: flex; align-items: center; gap: 0.5rem;
}
header.scrolled .logo { color: var(--primary); }
.logo span { color: var(--accent); }

.nav-links { display: flex; gap: 2.5rem; list-style: none; }
.nav-links a { color: var(--white); font-weight: 500; font-size: 1rem; position: relative; }
header.scrolled .nav-links a { color: var(--text-main); }
.nav-links a::after {
    content: ''; position: absolute; bottom: -5px; left: 0; width: 0; height: 2px;
    background: var(--accent); transition: var(--transition);
}
.nav-links a:hover::after { width: 100%; }

.btn {
    display: inline-block; padding: 0.8rem 2rem; border-radius: 50px;
    font-weight: 600; transition: var(--transition); cursor: pointer;
    border: none; font-family: var(--font-heading); letter-spacing: 0.5px;
}
.btn-primary {
    background: linear-gradient(135deg, var(--secondary), var(--accent));
    color: var(--white); box-shadow: 0 4px 15px rgba(37, 99, 235, 0.4);
}
.btn-primary:hover {
    transform: translateY(-3px); box-shadow: var(--shadow-hover);
    color: var(--white);
}

/* Advanced Hero Section */
.hero {
    min-height: 100vh;
    display: flex; align-items: center;
    background: var(--primary);
    position: relative; overflow: hidden;
    padding-top: 80px;
}

/* Dynamic Animated Background */
.hero-bg {
    position: absolute; top: -50%; left: -50%; width: 200%; height: 200%;
    background: radial-gradient(circle at 50% 50%, #1e3a8a 0%, var(--primary) 50%);
    animation: rotateBg 20s linear infinite;
    z-index: 1; opacity: 0.8;
}

@keyframes rotateBg {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Floating Elements */
.shape {
    position: absolute; filter: blur(50px); z-index: 2; animation: float 10s ease-in-out infinite;
}
.shape-1 { width: 300px; height: 300px; background: var(--secondary); top: 10%; left: 10%; opacity: 0.4; }
.shape-2 { width: 400px; height: 400px; background: var(--accent); bottom: -10%; right: 5%; opacity: 0.3; animation-delay: -5s; }

@keyframes float {
    0%, 100% { transform: translateY(0) scale(1); }
    50% { transform: translateY(-20px) scale(1.05); }
}

.hero-content {
    position: relative; z-index: 10;
    text-align: center; max-width: 900px;
}

.hero-tagline {
    font-size: 1rem; text-transform: uppercase; letter-spacing: 4px;
    color: var(--accent); margin-bottom: 1.5rem; font-weight: 700;
    display: inline-block; padding: 0.5rem 1.5rem;
    border: 1px solid rgba(6, 182, 212, 0.3); border-radius: 50px;
    background: rgba(6, 182, 212, 0.1); backdrop-filter: blur(5px);
}

.hero h1 {
    color: var(--white); font-size: 4.5rem; margin-bottom: 1.5rem;
    font-weight: 900; letter-spacing: -1.5px; line-height: 1.1;
}

.hero p {
    font-size: 1.25rem; margin: 0 auto 3rem; color: #cbd5e1; max-width: 700px;
}

/* Services Grid with Glassmorphism */
.services-section { background: var(--bg-main); }
.services-grid {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 2.5rem;
}

.service-card {
    background: var(--white); padding: 3rem 2.5rem; border-radius: 24px;
    transition: var(--transition); border: 1px solid rgba(0,0,0,0.03);
    box-shadow: 0 10px 30px rgba(0,0,0,0.02);
    position: relative; overflow: hidden; z-index: 1;
}
.service-card::before {
    content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(135deg, rgba(37,99,235,0.05), transparent);
    z-index: -1; opacity: 0; transition: var(--transition);
}

.service-card:hover {
    transform: translateY(-10px); box-shadow: var(--shadow-hover);
}
.service-card:hover::before { opacity: 1; }

.service-icon {
    width: 70px; height: 70px; background: linear-gradient(135deg, #eff6ff, #e0e7ff);
    color: var(--secondary); display: flex; align-items: center; justify-content: center;
    border-radius: 20px; font-size: 2.2rem; margin-bottom: 2rem;
    box-shadow: 0 8px 15px rgba(37, 99, 235, 0.1);
}

.service-card h3 { font-size: 1.4rem; margin-bottom: 1rem; color: var(--primary); font-weight: 700; }
.service-card p { color: var(--text-muted); font-size: 1rem; line-height: 1.7; }

/* Contact Section */
.contact-section {
    background: var(--primary); color: var(--white); padding: 8rem 2rem;
    position: relative; overflow: hidden;
}
.contact-section .section-title { background: none; -webkit-text-fill-color: var(--white); color: var(--white); }
.contact-section .section-subtitle { color: #94a3b8; }

.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 5rem; align-items: center; }

.contact-glass-card {
    background: rgba(255, 255, 255, 0.03); border: 1px solid rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(20px); border-radius: 24px; padding: 4rem;
}

.contact-item { display: flex; gap: 1.5rem; margin-bottom: 2.5rem; }
.contact-item:last-child { margin-bottom: 0; }
.contact-item .icon {
    width: 60px; height: 60px; background: rgba(37, 99, 235, 0.2);
    display: flex; align-items: center; justify-content: center; border-radius: 16px;
    font-size: 1.8rem; color: var(--accent); border: 1px solid rgba(37, 99, 235, 0.3);
}
.contact-item h4 { color: var(--white); margin-bottom: 0.5rem; font-size: 1.2rem; }
.contact-item p { color: #cbd5e1; font-size: 1rem; }

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

/* Responsive */
@media (max-width: 992px) {
    .hero h1 { font-size: 3.5rem; }
    .contact-grid { grid-template-columns: 1fr; }
    .nav-links { display: none; }
}
