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

:root {
    --bg-color: #030712;
    --card-bg: rgba(255, 255, 255, 0.03);
    --card-border: rgba(255, 255, 255, 0.08);
    /* slate-800 equivalent transparency */
    --primary-gradient: linear-gradient(to right, #0EA5E9, #22D3EE, #818CF8);
    --text-main: #f8fafc;
    --text-muted: #94a3b8;
    --accent-glow: rgba(14, 165, 233, 0.15);
    /* Sky blue glow */
    --primary-color: #0EA5E9;
}

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

html {
    scroll-behavior: smooth;
}

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

/* Optimized Background Animation - Updated to Blue/Cyan */
body::before,
body::after {
    content: '';
    position: fixed;
    width: 50vw;
    height: 50vw;
    border-radius: 50%;
    z-index: -1;
    filter: blur(80px);
    opacity: 0.4;
    animation: drift 20s infinite alternate ease-in-out;
    will-change: transform;
    transform: translateZ(0);
}

body::before {
    top: -10%;
    left: -10%;
    background: radial-gradient(circle, rgba(14, 165, 233, 0.15) 0%, transparent 70%);
    /* Sky Blue */
}

body::after {
    bottom: -10%;
    right: -10%;
    background: radial-gradient(circle, rgba(34, 211, 238, 0.15) 0%, transparent 70%);
    /* Cyan */
    animation-delay: -10s;
}

@keyframes drift {
    0% {
        transform: translate3d(0, 0, 0) scale(1);
    }

    100% {
        transform: translate3d(30px, 50px, 0) scale(1.05);
    }
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Typography */
h1,
h2,
h3 {
    font-family: 'Plus Jakarta Sans', sans-serif;
    line-height: 1.2;
    margin-bottom: 1rem;
}

h1 {
    font-size: 4rem;
    font-weight: 800;
    /* ExtraBold */
    letter-spacing: -0.025em;
    background: linear-gradient(to right, #ffffff, #94a3b8);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    padding-bottom: 0.2em;
}

h2 {
    font-size: 3rem;
    /* Increased size */
    font-weight: 700;
    margin-bottom: 2rem;
    text-align: center;
}

h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: #fff;
}

p {
    color: var(--text-muted);
    font-size: 1.125rem;
    margin-bottom: 1.5rem;
}

/* Glass Cards - Updated Style */
.glass-card {
    background: var(--card-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--card-border);
    border-radius: 24px;
    /* Slightly larger radius */
    padding: 2.5rem;
    /* Increased padding */
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    transform: translateZ(0);
    will-change: transform;
}

/* Updated Shine Effect - Subtle */
.glass-card::before {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(800px circle at var(--mouse-x) var(--mouse-y), rgba(255, 255, 255, 0.06), transparent 40%);
    opacity: 0;
    transition: opacity 0.5s;
    pointer-events: none;
}

.glass-card:hover {
    transform: translateY(-5px);
    border-color: rgba(14, 165, 233, 0.5);
    /* Blue border on hover */
    background: rgba(255, 255, 255, 0.05);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 8rem 0;
    /* More padding */
    position: relative;
}

.hero-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(14, 165, 233, 0.15) 0%, transparent 70%);
    z-index: -1;
    filter: blur(60px);
}

.hero-subtitle {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 2rem;
    color: var(--primary-color);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    padding: 0.5rem 1rem;
    background: rgba(14, 165, 233, 0.1);
    border-radius: 9999px;
    border: 1px solid rgba(14, 165, 233, 0.2);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.hero-slogan {
    font-family: 'Inter', sans-serif;
    font-size: 1.25rem;
    margin-bottom: 3rem;
    color: var(--text-muted);
    max-width: 48rem;
    margin-left: auto;
    margin-right: auto;
}

.cta-button {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 2rem;
    background: #2563EB;
    /* Blue 600 */
    color: white;
    text-decoration: none;
    border-radius: 9999px;
    /* Full rounded */
    font-weight: 700;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    box-shadow: 0 10px 15px -3px rgba(37, 99, 235, 0.2);
}

.cta-button:hover {
    transform: scale(1.05);
    box-shadow: 0 20px 25px -5px rgba(37, 99, 235, 0.3);
    background-color: #1D4ED8;
    /* Blue 700 */
}

/* Text Gradient Utility */
.text-gradient {
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Services */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
    margin: 4rem 0;
}

.service-item ul {
    list-style: none;
    margin-top: 2rem;
    /* More spacing */
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.service-item li {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 0.5rem 1rem;
    border-radius: 9999px;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-main);
    margin: 0;
    /* Reset */
    transition: all 0.2s;
}

.service-item li:hover {
    background: rgba(14, 165, 233, 0.2);
    border-color: rgba(14, 165, 233, 0.5);
    transform: scale(1.05);
}

.service-item li::before {
    content: none;
    /* Remove arrow */
}

/* Tech Stack */
.tech-stack-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1.5rem;
    /* Increased gap */
    margin: 4rem 0;
}

.tech-badge {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--card-border);
    padding: 0.75rem 1.5rem;
    border-radius: 12px;
    /* Less rounded than pill */
    font-size: 1rem;
    font-weight: 600;
    color: #cbd5e1;
    transition: all 0.3s ease;
    cursor: default;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.tech-badge:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-5px) scale(1.05);
    /* Added scale */
    border-color: #38bdf8;
    /* Sky 400 */
    color: white;
    box-shadow: 0 10px 30px -10px rgba(14, 165, 233, 0.3);
}

/* Projects */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2.5rem;
    margin: 4rem 0;
}

.project-card {
    padding: 0;
    border-radius: 24px;
}

.project-image {
    width: 100%;
    height: 280px;
    /* Taller images */
    object-fit: cover;
    border-bottom: 1px solid var(--card-border);
    transition: transform 0.5s ease;
}

.project-content {
    padding: 2rem;
    text-align: left;
    /* Aligned left usually better for cards */
}

.project-link {
    display: inline-block;
    color: #fff;
    text-decoration: none;
    font-weight: 700;
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    font-family: 'Plus Jakarta Sans', sans-serif;
}

.project-link:hover {
    color: var(--primary-color);
    text-decoration: underline;
    text-decoration-color: rgba(14, 165, 233, 0.5);
}

/* Scroll Reveal Animation */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
    will-change: opacity, transform;
}

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

.delay-100 {
    transition-delay: 0.1s;
}

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

.delay-300 {
    transition-delay: 0.3s;
}

/* Footer */
footer {
    padding: 8rem 0 4rem;
    text-align: center;
    border-top: 1px solid var(--card-border);
    margin-top: 4rem;
    background: linear-gradient(to top, rgba(3, 7, 18, 0.8), transparent);
}

.footer-content {
    max-width: 600px;
    margin: 0 auto;
}

/* Responsive */
@media (max-width: 768px) {
    h1 {
        font-size: 2.5rem;
    }

    h2 {
        font-size: 2rem;
    }

    .hero {
        padding: 6rem 0;
    }

    .container {
        padding: 0 20px;
    }
}

/* Utilities */
.text-primary {
    color: var(--primary-color);
}

.bg-primary\/10 {
    background-color: rgba(14, 165, 233, 0.1);
}

.bg-primary\/20 {
    background-color: rgba(14, 165, 233, 0.2);
}

.border-primary\/50 {
    border-color: rgba(14, 165, 233, 0.5);
}

.hover\:text-primary:hover {
    color: var(--primary-color);
}

.group:hover .group-hover\:text-primary {
    color: var(--primary-color);
}

.group:hover .group-hover\:scale-x-\[1\.02\] {
    transform: scaleX(1.02);
}

/* Client Projects Utilities */
.grid {
    display: grid;
}

.grid-cols-1 {
    grid-template-columns: repeat(1, minmax(0, 1fr));
}

.gap-12 {
    gap: 3rem;
}

.mb-16 {
    margin-bottom: 4rem;
}

.mb-6 {
    margin-bottom: 1.5rem;
}

.my-auto {
    margin-top: auto;
    margin-bottom: auto;
}

.mx-auto {
    margin-left: auto;
    margin-right: auto;
}

.max-w-7xl {
    max-width: 80rem;
}

.px-6 {
    padding-left: 1.5rem;
    padding-right: 1.5rem;
}

.py-32 {
    padding-top: 8rem;
    padding-bottom: 8rem;
}

/* Adjusted for visibility */
.text-4xl {
    font-size: 2.25rem;
    line-height: 2.5rem;
}

.font-bold {
    font-weight: 700;
}

.text-slate-400 {
    color: #94a3b8;
}

.text-lg {
    font-size: 1.125rem;
    line-height: 1.75rem;
}

.max-w-xl {
    max-width: 36rem;
}

.block {
    display: block;
}

.relative {
    position: relative;
}

.absolute {
    position: absolute;
}

.flex {
    display: flex;
}

.items-center {
    align-items: center;
}

.justify-center {
    justify-content: center;
}

.w-full {
    width: 100%;
}

.h-full {
    height: 100%;
}

.object-cover {
    object-fit: cover;
}

.z-0 {
    z-index: 0;
}

.z-10 {
    z-index: 10;
}

.z-20 {
    z-index: 20;
}

.inset-0 {
    inset: 0;
}

.opacity-0 {
    opacity: 0;
}

.pointer-events-none {
    pointer-events: none;
}

.pointer-events-auto {
    pointer-events: auto;
}

.bg-white {
    background-color: #fff;
}

.bg-transparent {
    background-color: transparent;
}

.bg-slate-200 {
    background-color: #e2e8f0;
}

.rounded-sm {
    border-radius: 0.125rem;
}

.rounded-none {
    border-radius: 0;
}

.rounded-full {
    border-radius: 9999px;
}

.rounded-lg {
    border-radius: 0.5rem;
}

.shadow-xl {
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

.shadow-2xl {
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

.uppercase {
    text-transform: uppercase;
}

.tracking-wider {
    letter-spacing: 0.05em;
}

.text-xs {
    font-size: 0.75rem;
    line-height: 1rem;
}

.font-display {
    font-family: 'Plus Jakarta Sans', sans-serif;
}

.transition-transform {
    transition-property: transform;
    transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
    transition-duration: 150ms;
}

.transition-all {
    transition-property: all;
    transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
    transition-duration: 150ms;
}

.duration-500 {
    transition-duration: 500ms;
}

.duration-300 {
    transition-duration: 300ms;
}

.translate-y-4 {
    transform: translateY(1rem);
}

.-top-3 {
    top: -0.75rem;
}

.-left-3 {
    left: -0.75rem;
}

.-right-3 {
    right: -0.75rem;
}

.-bottom-3 {
    bottom: -0.75rem;
}

.w-6 {
    width: 1.5rem;
}

.h-6 {
    height: 1.5rem;
}

.aspect-\[16\/10\] {
    aspect-ratio: 16/10;
}

/* Hover States */
.group:hover .group-hover\:opacity-100 {
    opacity: 1;
}

.group:hover .group-hover\:scale-x-\[1\.02\] {
    transform: scaleX(1.02);
}

.group:hover .group-hover\:scale-y-\[1\.032\] {
    transform: scaleY(1.032);
}

.group:hover .group-hover\:translate-y-0 {
    transform: translateY(0);
}

.group:hover .group-hover\:text-primary {
    color: var(--primary-color);
}

@media (min-width: 768px) {
    .md\:grid-cols-2 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .md\:text-5xl {
        font-size: 3rem;
        line-height: 1;
    }
}

.group:hover .group-hover\:scale-y-\[1\.032\] {
    transform: scaleY(1.032);
}

.group:hover .group-hover\:opacity-100 {
    opacity: 1;
}

.group:hover .group-hover\:translate-y-0 {
    transform: translateY(0);
}

/* Font Display */
.font-display {
    font-family: 'Plus Jakarta Sans', sans-serif;
}