:root {
    --primary-dark: #0a192f;
    --primary-medium: #112240;
    --primary-light: #233554;
    --accent: #64ffda;
    --accent-secondary: #00b4d8;
    --text-light: #e6f1ff;
    --text-muted: #8892b0;
    --card-bg: rgba(17, 34, 64, 0.7);
    --card-border: rgba(100, 255, 218, 0.1);
    --transition: all 0.3s cubic-bezier(0.645, 0.045, 0.355, 1);
    --glass: rgba(255, 255, 255, 0.05);
    --glass-border: rgba(255, 255, 255, 0.1);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    min-height: 100vh;
    background-color: var(--primary-dark);
    background-image:
        radial-gradient(at 0% 0%, rgba(100, 255, 218, 0.1) 0px, transparent 50%),
        radial-gradient(at 100% 0%, rgba(0, 180, 216, 0.1) 0px, transparent 50%),
        radial-gradient(at 100% 100%, rgba(100, 255, 218, 0.1) 0px, transparent 50%),
        radial-gradient(at 0% 100%, rgba(0, 180, 216, 0.1) 0px, transparent 50%);
    color: var(--text-light);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: 'Poppins', sans-serif;
    color: var(--text-light);
    line-height: 1.2;
}

p {
    color: var(--text-muted);
}

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

/* Navigation */
header {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    padding: 1.5rem 0;
    transition: var(--transition);
}

header.scrolled {
    background: rgba(10, 25, 47, 0.85);
    backdrop-filter: blur(12px);
    box-shadow: 0 10px 30px -10px rgba(2, 12, 27, 0.7);
    padding: 1rem 0;
}

nav {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 2rem;
}

.logo {
    font-family: 'Poppins', sans-serif;
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--accent);
    letter-spacing: 1px;
}

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

.nav-links a {
    color: var(--text-light);
    font-weight: 500;
    font-size: 0.9rem;
    position: relative;
}

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

.nav-links a::before {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 0;
    background-color: var(--accent);
    transition: var(--transition);
}

.nav-links a:hover::before {
    width: 100%;
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    color: var(--accent);
    font-size: 1.8rem;
    cursor: pointer;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 18px 2rem 0;
    /* Added top padding to clear fixed header */
    position: relative;
}

.hero-content {
    max-width: 1200px;
    width: 100%;
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 4rem;
    align-items: center;
}

.hero-subtitle {
    color: var(--accent);
    font-family: 'Fira Code', monospace;
    font-size: 1rem;
    margin-bottom: 1.5rem;
    display: block;
}

.hero-title {
    font-size: 4.5rem;
    font-weight: 800;
    margin-bottom: 1rem;
    color: var(--text-light);
}

.hero-title span {
    color: var(--text-muted);
    display: block;
    font-size: 3.5rem;
}

.hero-description {
    font-size: 1.1rem;
    margin-bottom: 3rem;
    max-width: 540px;
}

.cta-buttons {
    display: flex;
    gap: 1.5rem;
}

.btn {
    padding: 1rem 2rem;
    border-radius: 4px;
    font-family: 'Fira Code', monospace;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
}

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

.btn-primary:hover {
    background: rgba(100, 255, 218, 0.1);
    transform: translateY(-3px);
}

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

.btn-secondary:hover {
    background: var(--primary-medium);
    transform: translateY(-3px);
}

/* Hero Visual - Abstract Shapes */
.hero-visual {
    position: relative;
    height: 400px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.visual-circle {
    position: absolute;
    border-radius: 50%;
    background: linear-gradient(45deg, var(--accent), var(--accent-secondary));
    opacity: 0.1;
    filter: blur(40px);
}

.floating-card {
    background: rgba(17, 34, 64, 0.8);
    backdrop-filter: blur(10px);
    border: 1px solid var(--card-border);
    border-radius: 12px;
    padding: 1.5rem;
    position: absolute;
    width: 200px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
    transition: var(--transition);
    z-index: 2;
}

.floating-card:hover {
    transform: translateY(-10px) !important;
    border-color: var(--accent);
    z-index: 10;
}

.card-1 {
    top: 10%;
    left: 0;
    transform: rotate(-5deg);
}

.card-2 {
    top: 40%;
    right: 0;
    transform: rotate(5deg);
}

.card-3 {
    bottom: 10%;
    left: 20%;
    transform: rotate(-2deg);
}

.card-icon {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.card-title {
    font-size: 1.1rem;
    color: var(--text-light);
    margin-bottom: 0.2rem;
}

.card-content p {
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* Projects Section */
.projects {
    padding: 8rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.section-title {
    font-size: 2rem;
    margin-bottom: 4rem;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.section-title::after {
    content: '';
    display: block;
    height: 1px;
    width: 300px;
    background: var(--primary-light);
    opacity: 0.5;
}

.section-title span {
    color: var(--accent);
    font-family: 'Fira Code', monospace;
    font-size: 1.5rem;
    margin-right: 0.5rem;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
}

.project-card {
    background: var(--primary-medium);
    border-radius: 8px;
    padding: 2rem;
    transition: var(--transition);
    height: 100%;
    display: flex;
    flex-direction: column;
    border: 1px solid transparent;
}

.project-card:hover {
    transform: translateY(-7px);
    border-color: var(--accent);
    box-shadow: 0 20px 30px -15px rgba(2, 12, 27, 0.7);
}

.project-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.folder-icon {
    color: var(--accent);
    font-size: 2.5rem;
}

.external-link {
    color: var(--text-light);
    font-size: 1.2rem;
}

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

.project-title {
    font-size: 1.4rem;
    margin-bottom: 1rem;
    color: var(--text-light);
}

.project-description {
    font-size: 1rem;
    margin-bottom: 1.5rem;
    flex-grow: 1;
}

.project-tech-list {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    font-family: 'Fira Code', monospace;
    font-size: 0.8rem;
    color: var(--text-muted);
}

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

.contact-description {
    font-size: 1.2rem;
    margin-bottom: 3rem;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-top: 3rem;
}

.social-link {
    color: var(--text-muted);
    font-size: 1.5rem;
    transition: var(--transition);
}

.social-link:hover {
    color: var(--accent);
    transform: translateY(-3px);
}

/* Footer */
footer {
    padding: 2rem;
    text-align: center;
    font-family: 'Fira Code', monospace;
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* Responsive */
@media (max-width: 992px) {
    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-description {
        margin: 0 auto 3rem;
    }

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

    .hero-visual {
        display: none;
        /* Hide visual on smaller screens or adjust */
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: var(--primary-medium);
        flex-direction: column;
        padding: 2rem;
        text-align: center;
        box-shadow: 0 10px 30px -10px rgba(2, 12, 27, 0.7);
    }

    .nav-links.active {
        display: flex;
    }

    .mobile-menu-btn {
        display: block;
    }

    .hero-title {
        font-size: 3rem;
    }

    .hero-title span {
        font-size: 2.5rem;
    }
}

/* Liquid background styles */
.liquid-bg {
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    filter: url('#goo');
}
.liquid-bg .blob {
    position: absolute;
    top: 0;
    left: 0;
    border-radius: 50%;
    background: radial-gradient(circle at 30% 30%, rgba(100,255,218,0.95), rgba(0,180,216,0.7) 40%, rgba(0,120,180,0.35) 70%);
    mix-blend-mode: screen;
    will-change: transform, width, height;
    transform: translate3d(0,0,0);
    filter: blur(30px);
    opacity: 0.9;
}
.svg-filters { width:0; height:0; position:absolute; }

/* Ensure main content sits above the background */
header, .hero, .projects, .contact, footer {
    position: relative;
    z-index: 1;
}

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