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

:root {
    --primary: #00f2ff;
    --primary-glow: rgba(0, 242, 255, 0.4);
    --secondary: #7000ff;
    --secondary-glow: rgba(112, 0, 255, 0.4);
    --accent: #ff007a;
    --bg-dark: #05060f;
    --bg-card: rgba(15, 17, 35, 0.6);
    --border-glass: rgba(255, 255, 255, 0.08);
    --text-main: #f1f5f9;
    --text-muted: #94a3b8;
    --nav-height: 80px;
}

[data-theme='light'] {
    --bg-dark: #fbfcfe;
    --bg-card: rgba(255, 255, 255, 0.85);
    --border-glass: rgba(0, 0, 0, 0.06);
    --text-main: #0f172a;
    --text-muted: #64748b;
    --primary-glow: rgba(0, 242, 255, 0.2);
    --secondary-glow: rgba(112, 0, 255, 0.2);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease, backdrop-filter 0.3s ease;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-dark);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
}

h1,
h2,
h3,
h4,
.font-heading {
    font-family: 'Outfit', sans-serif;
    color: var(--text-main);
}

[data-theme='light'] h1,
[data-theme='light'] h2,
[data-theme='light'] h3,
[data-theme='light'] h4 {
    color: var(--text-main);
}

/* Glassmorphism */
.glass {
    background: var(--bg-card);
    -webkit-backdrop-filter: blur(16px);
    backdrop-filter: blur(16px);
    border: 1px solid var(--border-glass);
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
}

.glass-nav {
    background: rgba(5, 6, 15, 0.8);
    -webkit-backdrop-filter: blur(20px);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-glass);
}

[data-theme='light'] .glass-nav,
[data-theme='light'] #mobile-menu {
    background: rgba(248, 250, 252, 0.8);
}

/* Custom Gradients */
.text-gradient {
    background: linear-gradient(135deg, var(--primary), var(--secondary), var(--accent));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    background-size: 200% auto;
    animation: gradientFlow 5s linear infinite;
}

@keyframes gradientFlow {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

/* Buttons */
.btn-premium {
    position: relative;
    padding: 0.875rem 2rem;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border-radius: 14px;
    font-weight: 600;
    font-family: 'Outfit', sans-serif;
    color: white;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    overflow: hidden;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 20px -10px var(--primary-glow);
}

.btn-premium:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 20px 30px -15px var(--secondary-glow);
}

.btn-premium::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transform: translateX(-100%);
    transition: transform 0.6s ease;
}

.btn-premium:hover::after {
    transform: translateX(100%);
}

/* Navigation */
.nav-link {
    position: relative;
    color: var(--text-muted);
    transition: all 0.3s ease;
    padding: 0.5rem 0;
}

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

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(to right, var(--primary), var(--secondary));
    transition: width 0.3s ease;
    border-radius: 2px;
}

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

/* Hero Section */
.hero {
    position: relative;
    min-height: 100vh;
    padding-top: var(--nav-height);
    display: flex;
    align-items: center;
    background: radial-gradient(circle at 50% 50%, rgba(112, 0, 255, 0.1) 0%, transparent 50%);
}

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

.hero-blur-primary {
    position: absolute;
    top: 20%;
    left: 10%;
    width: 300px;
    height: 300px;
    background: var(--primary);
    filter: blur(150px);
    opacity: 0.15;
    animation: float 10s ease-in-out infinite;
}

.hero-blur-secondary {
    position: absolute;
    bottom: 20%;
    right: 10%;
    width: 400px;
    height: 400px;
    background: var(--secondary);
    filter: blur(180px);
    opacity: 0.15;
    animation: float 12s ease-in-out infinite alternate;
}

@keyframes float {

    0%,
    100% {
        transform: translate(0, 0);
    }

    50% {
        transform: translate(30px, -30px);
    }
}

/* Cards */
.card-glass {
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
    background: var(--bg-card);
    border: 1px solid var(--border-glass);
    transition: all 0.5s cubic-bezier(0.23, 1, 0.32, 1);
    position: relative;
    overflow: hidden;
}

.card-glass:hover {
    transform: translateY(-10px);
    border-color: rgba(255, 255, 255, 0.2);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    background: rgba(255, 255, 255, 0.05);
}

@media (max-width: 640px) {
    .card-glass {
        padding: 1.5rem !important;
    }
    
    .grid {
        gap: 1rem !important;
    }

    h1 {
        font-size: 3.5rem !important;
        line-height: 1.1 !important;
    }
}

.card-glass::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(to right, var(--primary), var(--secondary));
    transform: scaleX(0);
    transition: transform 0.5s ease;
    transform-origin: left;
}

.card-glass:hover::before {
    transform: scaleX(1);
}

/* Reveal Animation */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: all 1s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

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

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

/* Form Styles */
input,
select,
textarea {
    background: rgba(255, 255, 255, 0.03) !important;
    border: 1px solid var(--border-glass) !important;
    color: var(--text-main) !important;
    transition: all 0.3s ease !important;
}

[data-theme='light'] input,
[data-theme='light'] select,
[data-theme='light'] textarea {
    background: rgba(0, 0, 0, 0.02) !important;
}

input:focus,
select:focus,
textarea:focus {
    border-color: var(--primary) !important;
    box-shadow: 0 0 15px rgba(0, 242, 255, 0.2) !important;
    outline: none;
}

/* Footer Grayscale Fix */
.footer-logo {
    filter: brightness(1.2);
    transition: all 0.3s ease;
}

.footer-logo:hover {
    filter: brightness(1.5);
}

/* Animation Utils */
.delay-100 {
    transition-delay: 0.1s;
}

.delay-200 {
    transition-delay: 0.2s;
}

.delay-300 {
    transition-delay: 0.3s;
}
/* Helper Classes */
.opacity-70 { color: var(--text-muted); opacity: 1 !important; }
.opacity-80 { color: var(--text-main); opacity: 0.8; }
