:root {
    --bg-primary: #050508;
    --bg-secondary: rgba(255, 255, 255, 0.03);
    --text-primary: #ffffff;
    --text-secondary: #94a3b8;
    --accent-primary: #8b5cf6;
    --accent-secondary: #3b82f6;
    --accent-gradient: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
    --card-border: rgba(255, 255, 255, 0.08);
    --font-family: 'Outfit', sans-serif;
    --nav-height: 80px;
}

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

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

/* Background Blobs for Visual Aesthetics */
.blob {
    position: absolute;
    filter: blur(120px);
    z-index: -1;
    opacity: 0.5;
    border-radius: 50%;
    animation: float 20s infinite ease-in-out alternate;
}
.blob-1 {
    top: -10%;
    left: -10%;
    width: 600px;
    height: 600px;
    background: rgba(139, 92, 246, 0.3);
}
.blob-2 {
    top: 40%;
    right: -10%;
    width: 500px;
    height: 500px;
    background: rgba(59, 130, 246, 0.25);
}

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

/* Typography & Utilities */
.gradient-text {
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.text-center { text-align: center; }
.w-100 { width: 100%; }

/* Navigation */
nav {
    position: fixed;
    top: 0;
    width: 100%;
    height: var(--nav-height);
    display: flex;
    align-items: center;
    z-index: 1000;
    transition: all 0.3s ease;
}
nav.scrolled {
    background: rgba(5, 5, 8, 0.8);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--card-border);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.5);
}
.nav-container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
    color: var(--text-primary);
    font-weight: 700;
    font-size: 1.5rem;
    letter-spacing: 1px;
}
.logo-img {
    height: 50px;
    width: auto;
    filter: drop-shadow(0 0 8px rgba(255,255,255,0.2));
    transition: transform 0.3s ease;
}
.logo:hover .logo-img {
    transform: scale(1.05);
}
.footer-logo-img {
    height: 40px;
    width: auto;
    filter: invert(1);
    opacity: 0.8;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2.5rem;
    align-items: center;
}
.nav-links a {
    text-decoration: none;
    color: var(--text-secondary);
    font-weight: 500;
    font-size: 1rem;
    transition: color 0.3s ease;
}
.nav-links a:hover {
    color: var(--text-primary);
}
.btn-nav {
    background: var(--bg-secondary);
    border: 1px solid var(--card-border);
    padding: 0.5rem 1.2rem;
    border-radius: 50px;
    color: var(--text-primary) !important;
}
.btn-nav:hover {
    background: rgba(255,255,255,0.1);
    box-shadow: 0 0 15px rgba(139, 92, 246, 0.3);
}

.menu-toggle { display: none; flex-direction: column; gap: 5px; cursor: pointer; }
.menu-toggle .bar { width: 25px; height: 2px; background: var(--text-primary); transition: 0.3s; }

/* Buttons */
.btn {
    display: inline-block;
    padding: 1rem 2rem;
    border-radius: 50px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
    font-family: inherit;
    font-size: 1rem;
}
.btn-primary {
    background: var(--accent-gradient);
    color: white;
    box-shadow: 0 10px 20px -10px rgba(139, 92, 246, 0.7);
}
.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 25px -10px rgba(139, 92, 246, 0.9);
}
.btn-secondary {
    background: var(--bg-secondary);
    color: var(--text-primary);
    border: 1px solid var(--card-border);
    backdrop-filter: blur(10px);
}
.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255,255,255,0.2);
}

/* Hero Section */
#hero {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 0 2rem;
    position: relative;
    padding-top: var(--nav-height);
}
.hero-content {
    max-width: 900px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
}
.badge {
    background: rgba(139, 92, 246, 0.1);
    border: 1px solid rgba(139, 92, 246, 0.3);
    color: #a78bfa;
    padding: 0.4rem 1rem;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 1rem;
}
.hero-title {
    font-size: clamp(3rem, 6vw, 5.5rem);
    line-height: 1.1;
    font-weight: 900;
    letter-spacing: -1px;
}
.hero-subtitle {
    font-size: clamp(1.1rem, 2vw, 1.25rem);
    color: var(--text-secondary);
    max-width: 700px;
    margin: 1rem 0 2rem;
}
.hero-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    justify-content: center;
}

/* General Sections */
.section {
    padding: 8rem 2rem;
}
.container {
    max-width: 1200px;
    margin: 0 auto;
}
.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 3rem;
    letter-spacing: -0.5px;
}

/* About Section */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}
.about-text p {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
}
.about-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}
.stat-card {
    background: var(--bg-secondary);
    border: 1px solid var(--card-border);
    padding: 2.5rem 2rem;
    border-radius: 24px;
    text-align: center;
    backdrop-filter: blur(10px);
    transition: transform 0.3s ease;
}
.stat-card:hover { transform: translateY(-5px); border-color: rgba(255,255,255,0.15); }
.stat-card h3 {
    font-size: 3rem;
    font-weight: 900;
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 0.5rem;
}
.stat-card p {
    color: var(--text-secondary);
    font-weight: 500;
    font-size: 1.1rem;
}

/* Services Section */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}
.service-card {
    background: var(--bg-secondary);
    border: 1px solid var(--card-border);
    padding: 3rem 2rem;
    border-radius: 24px;
    backdrop-filter: blur(10px);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
.service-card:hover {
    transform: translateY(-10px);
    border-color: rgba(139, 92, 246, 0.4);
    box-shadow: 0 20px 40px rgba(0,0,0,0.4), inset 0 0 20px rgba(139, 92, 246, 0.05);
}
.icon-wrapper {
    width: 60px;
    height: 60px;
    background: rgba(139, 92, 246, 0.1);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent-primary);
    margin-bottom: 1.5rem;
}
.service-card h3 {
    font-size: 1.4rem;
    margin-bottom: 1rem;
}
.service-card p {
    color: var(--text-secondary);
    font-size: 1.05rem;
}

/* Contact Section */
.contact-card {
    background: var(--bg-secondary);
    border: 1px solid var(--card-border);
    border-radius: 32px;
    padding: 4rem;
    text-align: center;
    max-width: 900px;
    margin: 0 auto;
    position: relative;
    overflow: hidden;
}
.contact-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at center, rgba(139, 92, 246, 0.1) 0%, transparent 50%);
    animation: rotate 20s linear infinite;
    z-index: 0;
    pointer-events: none;
}
@keyframes rotate { 100% { transform: rotate(360deg); } }
.contact-card > * { position: relative; z-index: 1; }

.contact-card p { color: var(--text-secondary); margin-bottom: 3rem; font-size: 1.1rem; }
.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    text-align: left;
}
.input-group {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}
.contact-form input, .contact-form textarea {
    width: 100%;
    padding: 1.2rem;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--card-border);
    color: var(--text-primary);
    font-family: inherit;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}
.contact-form input:focus, .contact-form textarea:focus {
    outline: none;
    border-color: var(--accent-primary);
    background: rgba(255, 255, 255, 0.08);
}

/* Footer */
footer {
    border-top: 1px solid var(--card-border);
    padding: 4rem 2rem 2rem;
    background: rgba(0,0,0,0.3);
}
.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 2rem;
    margin-bottom: 3rem;
}
.footer-brand p {
    color: var(--text-secondary);
    margin-top: 0.5rem;
}
.footer-links {
    display: flex;
    gap: 2rem;
}
.footer-links a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.3s;
}
.footer-links a:hover { color: var(--text-primary); }
.footer-bottom {
    text-align: center;
    color: var(--text-secondary);
    font-size: 0.9rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255,255,255,0.05);
}

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

/* Responsive Design */
@media (max-width: 900px) {
    .about-grid { grid-template-columns: 1fr; gap: 3rem; }
}
@media (max-width: 768px) {
    .menu-toggle { display: flex; }
    .nav-links {
        position: fixed;
        right: -100%;
        top: var(--nav-height);
        flex-direction: column;
        background: rgba(5, 5, 8, 0.95);
        backdrop-filter: blur(20px);
        width: 100%;
        height: calc(100vh - var(--nav-height));
        padding: 2rem;
        transition: right 0.3s ease;
    }
    .nav-links.active { right: 0; }
    .hero-title { font-size: 2.5rem; }
    .input-group { grid-template-columns: 1fr; }
    .contact-card { padding: 2rem; }
    .section { padding: 5rem 1.5rem; }
}
