:root {
    /* Colors */
    --bg-color: #050505;
    --primary-color: #00f5ff;
    --primary-glow: rgba(0, 245, 255, 0.4);
    --secondary-color: #7000ff;
    --secondary-glow: rgba(112, 0, 255, 0.3);
    --accent-color: #ff00c8;
    --text-color: #ffffff;
    --text-muted: #a0a0a0;
    --card-bg: rgba(20, 20, 30, 0.6);
    --border-color: rgba(255, 255, 255, 0.1);
    
    /* Fonts */
    --font-heading: 'Orbitron', sans-serif;
    --font-body: 'Plus Jakarta Sans', sans-serif;
    
    /* Spacing */
    --container-max-width: 1200px;
    --section-padding: 120px 0;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    font-family: var(--font-body);
    line-height: 1.6;
    overflow-x: hidden;
}

/* --- Utilities --- */
.container {
    width: 90%;
    max-width: var(--container-max-width);
    margin: 0 auto;
}

.glass {
    background: var(--card-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--border-color);
    border-radius: 20px;
}

.gradient-text {
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.noise-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('https://grainy-gradients.vercel.app/noise.svg');
    opacity: 0.05;
    pointer-events: none;
    z-index: 9999;
    mix-blend-mode: overlay;
}

/* --- Background Blobs --- */
.background-blobs {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
    background-image: 
        radial-gradient(circle at 2px 2px, rgba(255,255,255,0.05) 1px, transparent 0);
    background-size: 40px 40px;
}

.blob {
    position: absolute;
    width: 600px;
    height: 600px;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.15;
    animation: blob-float 20s infinite alternate;
}

.blob-1 {
    background: var(--primary-color);
    top: -200px;
    right: -100px;
    animation-delay: 0s;
}

.blob-2 {
    background: var(--secondary-color);
    bottom: -200px;
    left: -100px;
    animation-delay: -5s;
}

.blob-3 {
    background: var(--accent-color);
    top: 40%;
    left: 40%;
    animation-delay: -10s;
}

@keyframes blob-float {
    0% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(100px, 50px) scale(1.1); }
    66% { transform: translate(-50px, 100px) scale(0.9); }
    100% { transform: translate(0, 0) scale(1); }
}

/* --- Header --- */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 20px 0;
    transition: all 0.4s ease;
}

.header.scrolled {
    background: rgba(5, 5, 5, 0.8);
    backdrop-filter: blur(10px);
    padding: 12px 0;
    border-bottom: 1px solid var(--border-color);
}

.container-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    text-decoration: none;
    display: flex;
    align-items: center;
}

.logo-text {
    font-family: var(--font-heading);
    font-weight: 900;
    font-size: 1.8rem;
    letter-spacing: 2px;
    color: var(--text-color);
}

.logo-text span {
    color: var(--primary-color);
}

.nav-list {
    display: flex;
    list-style: none;
    gap: 40px;
}

.nav-link {
    text-decoration: none;
    color: var(--text-color);
    font-weight: 500;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: color 0.3s ease;
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--primary-color);
    transition: width 0.3s ease;
}

.nav-link:hover {
    color: var(--primary-color);
}

.nav-link:hover::after {
    width: 100%;
}

.mobile-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--text-color);
    cursor: pointer;
}

/* --- Buttons --- */
.btn {
    display: inline-block;
    padding: 14px 28px;
    border-radius: 8px;
    font-family: var(--font-body);
    font-weight: 700;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: none;
}

.btn-primary {
    background: var(--primary-color);
    color: var(--bg-color);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px var(--primary-glow);
}

.btn-glow {
    background: var(--primary-color);
    color: var(--bg-color);
    box-shadow: 0 0 15px var(--primary-glow);
}

.btn-glow:hover {
    background: white;
    box-shadow: 0 0 30px rgba(255, 255, 255, 0.6);
    transform: translateY(-3px) scale(1.05);
}

.btn-ghost {
    background: transparent;
    border: 1px solid var(--primary-color);
    color: var(--primary-color);
}

.btn-ghost:hover {
    background: var(--primary-color);
    color: var(--bg-color);
    transform: translateY(-3px);
}

.btn-block {
    width: 100%;
    display: block;
}

/* --- Hero --- */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 100px;
    position: relative;
    overflow: hidden;
}

.hero .container {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    align-items: center;
    gap: 40px;
}

.hero-badge {
    display: inline-block;
    padding: 6px 16px;
    background: rgba(0, 245, 255, 0.1);
    border: 1px solid var(--primary-glow);
    border-radius: 100px;
    color: var(--primary-color);
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 24px;
}

.hero-title {
    font-family: var(--font-heading);
    font-size: 4.5rem;
    font-weight: 900;
    line-height: 1.1;
    margin-bottom: 24px;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--text-muted);
    max-width: 600px;
    margin-bottom: 40px;
    font-weight: 300;
}

.hero-actions {
    display: flex;
    gap: 20px;
}

/* Hero Visual */
.hero-visual {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

.orb-container {
    position: relative;
    width: 400px;
    height: 400px;
}

.orb {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 150px;
    height: 150px;
    background: radial-gradient(circle, var(--primary-color), var(--secondary-color));
    border-radius: 50%;
    box-shadow: 0 0 100px var(--primary-glow);
    z-index: 10;
    animation: orb-pulse 4s infinite ease-in-out;
}

.orb-ring {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    border: 1px solid var(--primary-glow);
    border-radius: 50%;
    animation: orb-spin 10s infinite linear;
}

.orb-ring:nth-child(2) { width: 300px; height: 300px; border-style: dashed; }
.orb-ring:nth-child(3) { width: 400px; height: 400px; opacity: 0.5; animation-direction: reverse; animation-duration: 20s; }
.orb-ring:nth-child(4) { width: 500px; height: 500px; opacity: 0.3; animation-duration: 30s; }

@keyframes orb-pulse {
    0%, 100% { transform: translate(-50%, -50%) scale(1); box-shadow: 0 0 60px var(--primary-glow); }
    50% { transform: translate(-50%, -50%) scale(1.15); box-shadow: 0 0 120px var(--secondary-glow); }
}

@keyframes orb-spin {
    from { transform: translate(-50%, -50%) rotate(0deg); }
    to { transform: translate(-50%, -50%) rotate(360deg); }
}

/* --- Sections --- */
section {
    padding: var(--section-padding);
}

.section-header {
    text-align: center;
    margin-bottom: 80px;
}

.section-title {
    font-family: var(--font-heading);
    font-size: 3rem;
    margin-bottom: 16px;
    letter-spacing: 1px;
}

.section-desc {
    color: var(--text-muted);
    font-size: 1.1rem;
    max-width: 700px;
    margin: 0 auto;
}

/* --- Services --- */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.service-card {
    position: relative;
    padding: 50px 40px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    overflow: hidden;
    transition: all 0.4s ease;
}

.service-card:hover {
    transform: translateY(-10px);
    background: rgba(255, 255, 255, 0.07);
    border-color: var(--primary-color);
    box-shadow: 0 0 30px rgba(0, 245, 255, 0.1);
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--primary-color), transparent);
    transform: translateX(-100%);
    transition: transform 0.6s ease;
}

.service-card:hover::before {
    transform: translateX(100%);
}

.card-icon {
    margin-bottom: 24px;
    color: var(--primary-color);
}

.card-icon i {
    width: 40px;
    height: 40px;
}

.service-card h3 {
    font-family: var(--font-heading);
    font-size: 1.4rem;
    margin-bottom: 16px;
}

.service-card p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

.card-glow {
    position: absolute;
    bottom: -50px;
    right: -50px;
    width: 150px;
    height: 150px;
    background: var(--primary-color);
    filter: blur(60px);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.service-card:hover .card-glow {
    opacity: 0.2;
}

/* --- Works --- */
.works-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 40px;
}

.work-item {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    cursor: pointer;
}

.work-img {
    position: relative;
    height: 450px;
    transition: transform 0.6s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.work-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.work-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(5, 5, 5, 0.9), transparent);
}

.work-info {
    position: absolute;
    bottom: 30px;
    left: 30px;
    z-index: 2;
}

.work-tag {
    display: inline-block;
    padding: 4px 12px;
    background: var(--primary-color);
    color: var(--bg-color);
    font-size: 0.75rem;
    font-weight: 700;
    border-radius: 4px;
    text-transform: uppercase;
    margin-bottom: 10px;
}

.work-info h3 {
    font-family: var(--font-heading);
    font-size: 1.6rem;
}

.work-item:hover .work-img {
    transform: scale(1.1) rotate(1deg);
}

.work-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.work-item:hover img {
    transform: scale(1.2);
}

/* --- Contact --- */
.contact-box {
    max-width: 800px;
    margin: 0 auto;
    padding: 60px;
    text-align: center;
}

.contact-header {
    margin-bottom: 40px;
}

.contact-header h2 {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    margin-bottom: 16px;
}

.contact-form {
    display: grid;
    gap: 20px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 16px 20px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    color: white;
    font-family: var(--font-body);
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    background: rgba(255, 255, 255, 0.1);
}

/* --- Footer --- */
.footer {
    padding: 80px 0 40px;
    border-top: 1px solid var(--border-color);
}

.footer-top {
    display: flex;
    justify-content: space-between;
    margin-bottom: 60px;
}

.footer-brand p {
    color: var(--text-muted);
    margin-top: 10px;
}

.footer-links {
    display: flex;
    gap: 100px;
}

.footer-col h4 {
    margin-bottom: 20px;
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 1px;
}

.footer-col ul {
    list-style: none;
}

.footer-col li {
    margin-bottom: 12px;
}

.footer-col a {
    text-decoration: none;
    color: var(--text-muted);
    transition: color 0.3s ease;
}

.footer-col a:hover {
    color: var(--primary-color);
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid var(--border-color);
    padding-top: 30px;
}

.footer-bottom p {
    font-size: 0.9rem;
    color: var(--text-muted);
}

.socials {
    display: flex;
    gap: 20px;
}

.socials a {
    color: var(--text-muted);
    transition: color 0.3s ease;
}

.socials a:hover {
    color: var(--primary-color);
}

/* --- Animations --- */
[class*="animate-"] {
    opacity: 0;
}

.animate-text {
    transform: translateY(20px);
    filter: blur(5px);
}

.animate-text.in-view {
    animation: textAppear 1s forwards cubic-bezier(0.22, 1, 0.36, 1);
}

@keyframes textAppear {
    to { opacity: 1; transform: translateY(0); filter: blur(0); }
}

.animate-fade-in {
    animation: fadeIn 1s forwards;
}

.animate-fade-in-up {
    animation: fadeInUp 1s forwards;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

/* --- Responsive --- */
@media (max-width: 992px) {
    .hero .container {
        grid-template-columns: 1fr;
        text-align: center;
    }
    .hero-actions {
        justify-content: center;
    }
    .hero-visual {
        display: none;
    }
    .hero-title {
        font-size: 3.5rem;
    }
    .footer-links {
        gap: 50px;
    }
}

@media (max-width: 768px) {
    .nav {
        display: none;
    }
    .header-cta {
        display: none;
    }
    .mobile-toggle {
        display: block;
    }
    .section-title {
        font-size: 2.2rem;
    }
    .footer-top {
        flex-direction: column;
        gap: 40px;
    }
    .contact-box {
        padding: 40px 20px;
    }
}
