:root {
    --bg-color: #050505;
    --text-primary: #f5f5f5;
    --text-secondary: #a0a0a0;
    --accent-cyan: #00f0ff;
    --accent-purple: #8a2be2;
    --glass-bg: rgba(255, 255, 255, 0.03);
    --glass-border: rgba(255, 255, 255, 0.08);
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;
}

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

html {
    scroll-behavior: initial; /* Lenis handles smooth scroll */
}

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

/* Grain overlay */
.noise {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    pointer-events: none;
    z-index: 9999;
    opacity: 0.04;
    background: url('data:image/svg+xml,%3Csvg viewBox="0 0 200 200" xmlns="http://www.w3.org/2000/svg"%3E%3Cfilter id="noiseFilter"%3E%3CfeTurbulence type="fractalNoise" baseFrequency="0.65" numOctaves="3" stitchTiles="stitch"/%3E%3C/filter%3E%3Crect width="100%25" height="100%25" filter="url(%23noiseFilter)"/%3E%3C/svg%3E');
}

/* Typography */
h1, h2, h3, h4 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.1;
}

.gradient-text {
    background: linear-gradient(90deg, var(--accent-cyan), var(--accent-purple));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

/* Utilities */
.img-responsive {
    max-width: 100%;
    height: auto;
    border-radius: 20px;
}

.glass-panel {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.05) 0%, rgba(255, 255, 255, 0.01) 100%);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-top-color: rgba(255, 255, 255, 0.2);
    border-left-color: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 24px;
    padding: 2.5rem;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.1);
    transition: transform 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275), border-color 0.4s ease, box-shadow 0.4s ease;
    position: relative;
    overflow: hidden;
    transform-style: preserve-3d;
}

.glass-panel::before {
    content: '';
    position: absolute;
    top: -50%; left: -50%;
    width: 200%; height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 60%);
    transform: scale(0);
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1;
    pointer-events: none;
}

.glass-panel:hover::before {
    transform: scale(1);
    animation: liquidShimmer 4s infinite linear alternate;
}

@keyframes liquidShimmer {
    0% { transform: scale(1) translate(0, 0) rotate(0deg); }
    50% { transform: scale(1.1) translate(10px, -10px) rotate(10deg); }
    100% { transform: scale(1.05) translate(-10px, 10px) rotate(-10deg); }
}

.glass-panel::after {
    content: '';
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: radial-gradient(circle at 50% 0%, rgba(255,255,255,0.15), transparent 50%);
    opacity: 0;
    transition: opacity 0.5s ease;
    pointer-events: none;
    z-index: 3;
    mix-blend-mode: overlay;
    border-radius: inherit;
}

.glass-panel:hover::after {
    opacity: 1;
}

.glass-panel > * {
    position: relative;
    z-index: 2;
    transform: translateZ(20px);
}

.glass-panel:hover {
    transform: translateY(-10px) scale(1.02);
    border-color: rgba(0, 240, 255, 0.4);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.8), 0 0 30px rgba(0, 240, 255, 0.15), inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.btn {
    display: inline-block;
    padding: 0.8rem 2rem;
    border-radius: 50px;
    text-decoration: none;
    font-family: var(--font-heading);
    font-weight: 600;
    transition: all 0.3s ease;
    cursor: pointer;
    text-align: center;
}

.btn-primary {
    background: linear-gradient(90deg, var(--accent-cyan), var(--accent-purple));
    color: #fff;
    border: none;
}

.btn-primary:hover {
    box-shadow: 0 0 20px rgba(0, 240, 255, 0.4);
    transform: scale(1.05);
}

.btn-secondary {
    background: var(--glass-bg);
    color: var(--text-primary);
    border: 1px solid var(--glass-border);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
}

.btn-outline {
    background: transparent;
    color: var(--text-primary);
    border: 1px solid var(--accent-cyan);
}

.btn-outline:hover {
    background: rgba(0, 240, 255, 0.1);
}

.full-width {
    width: 100%;
}

.section {
    padding: 6rem 2rem;
    max-width: 1400px;
    margin: 0 auto;
}

.section-header {
    margin-bottom: 4rem;
}

.section-title {
    font-size: clamp(2.5rem, 5vw, 4rem);
    margin-bottom: 1rem;
}

.section-subtitle {
    color: var(--text-secondary);
    font-size: 1.2rem;
}

/* Header & Nav */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 1.5rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 100;
    background: rgba(5, 5, 5, 0.7);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--glass-border);
}

.logo {
    font-size: 1.5rem;
    font-family: var(--font-heading);
    font-weight: 800;
}

.site-logo-container {
    display: inline-flex;
    flex-direction: column;
    border: 2px solid #fff;
    background: #fff;
    width: max-content;
    text-transform: uppercase;
    font-family: 'Inter', sans-serif;
    border-radius: 2px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
    text-decoration: none;
    transition: transform 0.3s ease;
}

.site-logo-container:hover {
    transform: scale(1.05);
}

.logo-top {
    background: #fff;
    color: #000;
    font-weight: 800;
    font-size: 1.4rem;
    letter-spacing: 5px;
    padding: 0.2rem 1rem;
    text-align: center;
    margin-right: -5px; /* Offset letter spacing for centering */
}

.logo-bottom {
    background: #111;
    color: #fff;
    font-weight: 400;
    font-size: 0.6rem;
    letter-spacing: 3px;
    padding: 0.3rem 1rem;
    text-align: center;
    margin-right: -3px;
}

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

.nav-item {
    color: var(--text-primary);
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-item:hover {
    color: var(--accent-cyan);
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 6rem;
    position: relative;
    overflow: hidden;
}

.hero-content {
    flex: 1;
    max-width: 600px;
    z-index: 2;
    padding-left: 2rem;
}

.hero-title {
    font-size: clamp(3rem, 6vw, 5.5rem);
    margin-bottom: 1.5rem;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--text-secondary);
    margin-bottom: 2.5rem;
    max-width: 500px;
}

.hero-actions {
    display: flex;
    gap: 1rem;
}

.hero-visual {
    flex: 1;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.floating-3d {
    width: 100%;
    max-width: 600px;
    animation: float 8s ease-in-out infinite;
    z-index: 2;
    filter: drop-shadow(0 30px 40px rgba(0,0,0,0.8)) drop-shadow(0 0 30px rgba(0,240,255,0.2));
    transform-style: preserve-3d;
}

@keyframes float {
    0% { transform: translateY(0px) rotateX(0deg) rotateY(0deg); }
    33% { transform: translateY(-20px) rotateX(5deg) rotateY(5deg); }
    66% { transform: translateY(-10px) rotateX(-5deg) rotateY(-5deg); }
    100% { transform: translateY(0px) rotateX(0deg) rotateY(0deg); }
}

.glow-orb {
    position: absolute;
    width: 400px;
    height: 400px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0));
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.3), inset 0 0 30px rgba(255,255,255,0.05);
    z-index: 1;
    animation: liquidBlob 15s ease-in-out infinite alternate;
    pointer-events: none;
}

@keyframes liquidBlob {
    0% {
        border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%;
        transform: translate(0, 0) rotate(0deg) scale(1);
    }
    50% {
        border-radius: 30% 60% 70% 40% / 50% 60% 30% 60%;
        transform: translate(30px, -30px) rotate(180deg) scale(1.05);
    }
    100% {
        border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%;
        transform: translate(-30px, 30px) rotate(360deg) scale(0.95);
    }
}

.orb-1 {
    top: -10%;
    right: -10%;
    background: linear-gradient(135deg, rgba(0, 240, 255, 0.15), rgba(0, 240, 255, 0.02));
    border-top-color: rgba(0, 240, 255, 0.3);
}

.orb-2 {
    bottom: -10%;
    left: -10%;
    background: linear-gradient(135deg, rgba(138, 43, 226, 0.15), rgba(138, 43, 226, 0.02));
    border-bottom-color: rgba(138, 43, 226, 0.3);
    animation-delay: -5s;
    animation-direction: alternate-reverse;
}

/* Services & Features Grid */
.services-grid, .features-grid, .pricing-grid, .blog-grid, .team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 3rem;
    perspective: 1200px;
}

.feature-icon, .service-icon {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
}

.service-card h3, .feature-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.service-card p, .feature-card p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
}

.service-link {
    color: var(--accent-cyan);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

.service-link:hover {
    color: var(--accent-purple);
}

/* Works Showcase */
.works-showcase {
    display: flex;
    flex-direction: column;
    gap: 6rem;
}

.work-item {
    display: flex;
    align-items: center;
    gap: 4rem;
}

.work-item.reverse {
    flex-direction: row-reverse;
}

.work-content {
    flex: 1;
}

.work-category {
    color: var(--accent-cyan);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 1rem;
}

.work-content h3 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.work-content p {
    color: var(--text-secondary);
    margin-bottom: 2rem;
}

.work-visual {
    flex: 1.5;
    position: relative;
}

/* Pricing Grid */
.pricing-grid {
    gap: 3rem;
    margin-top: 3rem;
}

.price-card {
    display: flex;
    flex-direction: column;
    position: relative;
}

.price-card.popular {
    border-color: var(--accent-cyan);
    transform: scale(1.05);
}

.price-card.popular:hover {
    transform: scale(1.08);
}

.popular-badge {
    position: absolute;
    top: -15px;
    right: 20px;
    background: linear-gradient(90deg, var(--accent-cyan), var(--accent-purple));
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 700;
}

.price-header {
    margin-bottom: 2rem;
    border-bottom: 1px solid var(--glass-border);
    padding-bottom: 1.5rem;
}

.price-header h3 {
    font-size: 1.5rem;
    color: var(--text-secondary);
}

.price {
    font-size: 3rem;
    font-weight: 800;
    font-family: var(--font-heading);
    margin-top: 0.5rem;
}

.price span {
    font-size: 1rem;
    color: var(--text-secondary);
    font-weight: 400;
}

.price-body {
    flex-grow: 1;
    margin-bottom: 2rem;
}

.price-body p {
    color: var(--text-secondary);
}

/* Reviews */
.reviews-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 2rem;
}

.review-card {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.stars {
    color: #ffd700;
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.review-text {
    font-size: 1.1rem;
    font-style: italic;
    margin-bottom: 2rem;
    color: var(--text-primary);
}

.review-author {
    color: var(--accent-cyan);
    font-weight: 600;
}

/* Blog / Insights */
.blog-grid {
    gap: 3rem;
}

.blog-card {
    display: flex;
    flex-direction: column;
}

.blog-meta {
    font-size: 0.85rem;
    color: var(--accent-purple);
    margin-bottom: 1rem;
    font-weight: 600;
}

.blog-card h3 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
}

.blog-card a {
    color: var(--text-primary);
    text-decoration: none;
    transition: color 0.3s ease;
}

.blog-card a:hover {
    color: var(--accent-cyan);
}

.blog-card p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
    flex-grow: 1;
}

.blog-author {
    font-size: 0.9rem;
    color: var(--text-secondary);
    font-weight: 500;
    border-top: 1px solid var(--glass-border);
    padding-top: 1rem;
}

/* Forms */
.form-group {
    margin-bottom: 1.5rem;
}

.form-control {
    width: 100%;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    color: var(--text-primary);
    font-family: var(--font-body);
}

.form-control:focus {
    outline: none;
    border-color: var(--accent-cyan);
    box-shadow: 0 0 10px rgba(0, 240, 255, 0.2);
}

select.form-control option {
    background-color: #111;
    color: #fff;
}

/* Page Headers */
.page-header {
    padding-top: 10rem;
    padding-bottom: 4rem;
    text-align: center;
    position: relative;
}

.page-title {
    font-size: clamp(3rem, 6vw, 5rem);
    margin-bottom: 1rem;
}

/* Team Grid */
.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
}

.team-member {
    text-align: center;
    padding: 2rem;
}

.team-member-name {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
    color: var(--accent-cyan);
}

/* Footer */
.footer {
    border-top: 1px solid var(--glass-border);
    padding: 6rem 2rem 2rem;
    background: #000;
}

.footer-grid {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 4rem;
    margin-bottom: 4rem;
}

.footer-info p {
    color: var(--text-secondary);
    margin-top: 1rem;
    max-width: 400px;
}

.footer-links h4, .footer-contact h4 {
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
}

.footer-links ul {
    list-style: none;
}

.footer-links li {
    margin-bottom: 0.8rem;
}

.footer-links a, .footer-contact a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-links a:hover, .footer-contact a:hover {
    color: var(--accent-cyan);
}

.social-links {
    margin-top: 1.5rem;
    display: flex;
    gap: 1rem;
}

.footer-bottom {
    text-align: center;
    color: var(--text-secondary);
    font-size: 0.9rem;
    border-top: 1px solid var(--glass-border);
    padding-top: 2rem;
}

/* Responsive */
@media (max-width: 992px) {
    .hero {
        flex-direction: column;
        text-align: center;
        padding-top: 8rem;
    }
    .hero-content {
        padding-left: 0;
    }
    .hero-actions {
        justify-content: center;
    }
    .work-item, .work-item.reverse {
        flex-direction: column;
        gap: 2rem;
    }
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    .price-card.popular {
        transform: none;
    }
    .price-card.popular:hover {
        transform: translateY(-5px);
    }
    .nav-links {
        display: none;
    }
}
