:root {
    --bg-primary: #0a192f;
    --bg-secondary: #112240;
    --text-primary: #e6f1ff;
    --text-secondary: #a8b2d1;
    --accent: #64ffda;
    --accent-glow: rgba(100, 255, 218, 0.1);
    --font-sans: 'Inter', system-ui, -apple-system, sans-serif;
    --font-mono: 'Fira Code', monospace;
    --transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    --radius: 8px;
    /* Slightly sharper but still rounded */
    --shadow: 0 10px 30px -10px rgba(2, 12, 27, 0.7);
}

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

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    background-color: var(--bg-primary);
    color: var(--text-primary);
    font-family: var(--font-sans);
    line-height: 1.7;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

/* Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
    margin: 0 0 1.5rem 0;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1.2;
    letter-spacing: -0.02em;
}

h1 {
    font-size: clamp(3rem, 7vw, 5.5rem);
    font-weight: 800;
    /* Bolder */
}

h2 {
    font-size: clamp(2.2rem, 5vw, 3.5rem);
    position: relative;
    display: inline-block;
    margin-bottom: 2rem;
}

h3 {
    font-size: 1.5rem;
    color: var(--text-primary);
    /* Keep h3 white for card legibility */
}

p {
    margin-bottom: 1.5rem;
    color: var(--text-secondary);
    font-size: 1.125rem;
    max-width: 650px;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

/* Utilities */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.section {
    padding: 120px 0;
    /* More spacing */
}

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

.grid {
    display: grid;
    gap: 2rem;
}

.btn {
    display: inline-block;
    padding: 1rem 2.25rem;
    border: 1px solid var(--accent);
    color: var(--accent);
    border-radius: var(--radius);
    font-family: var(--font-mono);
    font-size: 0.95rem;
    cursor: pointer;
    background: transparent;
    transition: var(--transition);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 500;
}

.btn:hover {
    background: var(--accent-glow);
    transform: translateY(-3px);
    box-shadow: 0 10px 20px -10px rgba(100, 255, 218, 0.4);
    /* Glow effect */
}

.highlight {
    color: var(--accent);
}

/* Header */
header {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(10, 25, 47, 0.95);
    /* More opaque for readability */
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    transition: var(--transition);
    height: 90px;
    display: flex;
    align-items: center;
}

nav {
    justify-content: space-between;
    width: 100%;
}

.logo {
    font-size: 1.75rem;
    font-weight: 800;
    letter-spacing: 1px;
    color: var(--text-primary);
}

.nav-links {
    gap: 2.5rem;
}

.nav-links a {
    font-size: 0.9rem;
    font-family: var(--font-mono);
    color: var(--text-primary);
}

.nav-links a:hover {
    color: var(--accent);
}

/* Hero */
.hero {
    min-height: 100vh;
    display: flex;
    /* Centered */
    align-items: center;
    position: relative;
    padding-top: 90px;
}

.hero-bg {
    position: absolute;
    top: 0;
    right: 0;
    width: 60%;
    height: 100%;
    background: url('images/hero-bg.png') no-repeat center right;
    background-size: cover;
    opacity: 0.25;
    /* Subtle */
    z-index: -1;
    mask-image: linear-gradient(to left, black 40%, transparent);
    -webkit-mask-image: linear-gradient(to left, black 40%, transparent);
}

.hero-content {
    max-width: 900px;
}

.hero-eyebrow {
    color: var(--accent);
    font-family: var(--font-mono);
    margin-bottom: 1.5rem;
    display: block;
    font-size: 1rem;
}

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

.service-card {
    background: var(--bg-secondary);
    padding: 2.5rem;
    border-radius: var(--radius);
    transition: var(--transition);
    position: relative;
    box-shadow: 0 10px 30px -15px rgba(2, 12, 27, 0.7);
    border: 1px solid transparent;
}

.service-card:hover {
    transform: translateY(-7px);
    border-color: rgba(100, 255, 218, 0.3);
    /* Subtle Border on hover */
    box-shadow: 0 20px 30px -15px rgba(2, 12, 27, 0.7);
}

.tech-stack {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
    margin-top: 1.5rem;
}

.tech-tag {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: var(--accent);
    /* background: var(--accent-glow); -- Removed bg for cleaner look, just text or outline? Let's keep bg but lighter */
    padding: 0;
    opacity: 0.8;
}

.tech-tag::before {
    content: '#';
    color: var(--accent);
    margin-right: 2px;
}

/* About */
.about-content {
    display: grid;
    grid-template-columns: 3fr 2fr;
    gap: 5rem;
    align-items: center;
}

.about-img {
    width: 100%;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    filter: grayscale(100%) sepia(20%) hue-rotate(180deg) brightness(90%) contrast(1.1);
    /* Tints image to match theme */
    transition: var(--transition);
}

.about-image-wrapper:hover .about-img {
    filter: none;
    /* Reveal color on hover */
}

.feature-list {
    list-style: none;
    margin-top: 2rem;
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.75rem;
}

.feature-list li {
    display: flex;
    align-items: center;
    color: var(--text-secondary);
    font-size: 1rem;
    font-family: var(--font-mono);
}

.feature-list li::before {
    content: '▹';
    color: var(--accent);
    margin-right: 1rem;
    font-size: 1.2rem;
}

/* Contact */
.contact {
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
    padding: 4rem 0;
}

/* Footer */
footer {
    padding: 2rem 0;
    text-align: center;
    color: var(--text-secondary);
    font-family: var(--font-mono);
    font-size: 0.85rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

/* Animations */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s cubic-bezier(0.645, 0.045, 0.355, 1), transform 0.8s cubic-bezier(0.645, 0.045, 0.355, 1);
}

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

/* Mobile */
@media (max-width: 900px) {
    .about-content {
        grid-template-columns: 1fr;
    }

    .about-image-wrapper {
        order: -1;
        margin-bottom: 2rem;
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
    }

    .hero-bg {
        width: 100%;
        opacity: 0.2;
    }

    h1 {
        font-size: 3rem;
    }

    .section {
        padding: 80px 0;
    }
}