:root {
    /* Color Palette */
    --bg-color: #050505;
    --navy: #0a192f;
    --light-navy: #112240;
    --lightest-navy: #233554;
    --text-color: #ccd6f6;
    --text-secondary: #8892b0;
    --accent-color: #64ffda;
    --accent-color-transparent: rgba(100, 255, 218, 0.1);

    /* Typography */
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    --font-heading: 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;

    /* Metrics */
    --nav-height: 80px;
    --nav-scroll-height: 70px;
    --border-radius: 8px;
    --transition: all 0.25s cubic-bezier(0.645, 0.045, 0.355, 1);
}

/* Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    font-family: var(--font-sans);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Ambient Glow Background */
.glow-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: radial-gradient(circle at 15% 50%, rgba(100, 255, 218, 0.04), transparent 30%),
        radial-gradient(circle at 85% 30%, rgba(100, 100, 255, 0.04), transparent 30%);
    z-index: -1;
    pointer-events: none;
    transition: background 0.3s ease;
}

/* Typography global */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    color: var(--text-color);
    font-weight: 700;
}

p {
    color: var(--text-secondary);
}

a {
    color: var(--accent-color);
    text-decoration: none;
    transition: var(--transition);
}

/* Layout */
main {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 40px;
}

section {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 100px 0;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

section.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Section Titles */
.section-title {
    font-size: clamp(26px, 5vw, 32px);
    margin-bottom: 40px;
    position: relative;
    display: flex;
    align-items: center;
    gap: 20px;
}

.section-title::after {
    content: '';
    display: block;
    height: 1px;
    background: rgba(204, 214, 246, 0.1);
    flex: 1;
    max-width: 300px;
}

/* Navigation Menu */
header {
    position: fixed;
    top: 0;
    width: 100%;
    height: var(--nav-height);
    background: rgba(5, 5, 5, 0.85);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    z-index: 100;
    transition: var(--transition);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

header.scrolled {
    height: var(--nav-scroll-height);
    box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.7);
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 40px;
    height: 100%;
    max-width: 1200px;
    margin: 0 auto;
}

.logo a {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 900;
    color: var(--accent-color);
    letter-spacing: 1px;
}

.nav-links {
    display: flex;
    align-items: center;
    list-style: none;
    gap: 2rem;
}

.nav-links a {
    color: var(--text-color);
    font-size: 0.9rem;
    font-weight: 500;
}

.nav-links a:hover {
    color: var(--accent-color);
}

.resume-btn {
    padding: 0.5rem 1rem;
    border: 1px solid var(--accent-color);
    border-radius: var(--border-radius);
    color: var(--accent-color) !important;
}

.resume-btn:hover {
    background: var(--accent-color-transparent);
}

/* Buttons */
.cta-btn {
    display: inline-block;
    padding: 1.25rem 2rem;
    font-size: 1rem;
    font-weight: 600;
    color: var(--bg-color);
    background-color: var(--accent-color);
    border-radius: var(--border-radius);
    transition: var(--transition);
    box-shadow: 0 4px 15px rgba(100, 255, 218, 0.2);
    margin-top: 30px;
}

.cta-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(100, 255, 218, 0.3);
}

.cta-btn.outline {
    background: transparent;
    color: var(--accent-color);
    border: 1px solid var(--accent-color);
    box-shadow: none;
}

.cta-btn.outline:hover {
    background: var(--accent-color-transparent);
}

/* Hero Section */
.hero {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
}

.hero-content {
    flex: 1;
    max-width: 600px;
}

.hero .greeting {
    color: var(--accent-color);
    font-family: var(--font-sans);
    margin-bottom: 20px;
    font-size: clamp(14px, 5vw, 16px);
    font-weight: 500;
}

.hero .name {
    font-size: clamp(40px, 8vw, 80px);
    margin-bottom: 10px;
    line-height: 1.1;
}

.hero .subtitle {
    font-size: clamp(30px, 6vw, 60px);
    color: var(--text-secondary);
    line-height: 1.1;
    margin-bottom: 20px;
}

.hero .description {
    max-width: 540px;
    font-size: 1.1rem;
}

/* Hero Blob visual for dynamic feel */
.hero-visual {
    position: relative;
    width: 350px;
    height: 350px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.blob {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(100, 255, 218, 0.2) 0%, transparent 100%);
    border-radius: 40% 60% 70% 30% / 40% 50% 60% 50%;
    animation: morph 8s ease-in-out infinite;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(100, 255, 218, 0.3);
    box-shadow: 0 0 40px rgba(100, 255, 218, 0.1);
}

@keyframes morph {

    0%,
    100% {
        border-radius: 40% 60% 70% 30% / 40% 40% 60% 50%;
    }

    34% {
        border-radius: 70% 30% 50% 50% / 30% 30% 70% 70%;
    }

    67% {
        border-radius: 100% 60% 60% 100% / 100% 100% 60% 60%;
    }
}

/* About Section */
.about-content {
    display: grid;
    grid-template-columns: 3fr 2fr;
    gap: 50px;
}

.about-text {
    font-size: 1.1rem;
}

.about-text p {
    margin-bottom: 15px;
}

.skills-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(140px, 200px));
    gap: 10px;
    list-style: none;
    margin-top: 20px;
}

.skills-list li {
    position: relative;
    padding-left: 20px;
    font-size: 0.95rem;
    color: var(--text-secondary);
}

.skills-list li::before {
    content: '▹';
    position: absolute;
    left: 0;
    color: var(--accent-color);
    font-family: var(--font-sans);
}

.about-image {
    position: relative;
    max-width: 300px;
}

.image-wrapper {
    position: relative;
    border-radius: var(--border-radius);
    background-color: var(--accent-color);
    transition: var(--transition);
}

.photo-placeholder {
    width: 100%;
    aspect-ratio: 1;
    background: var(--lightest-navy);
    border-radius: var(--border-radius);
    display: flex;
    justify-content: center;
    align-items: center;
    font-family: var(--font-heading);
    font-size: 4rem;
    color: var(--text-color);
    transition: var(--transition);
    overflow: hidden;
}

.photo-placeholder img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.image-wrapper::after {
    content: '';
    display: block;
    position: absolute;
    width: 100%;
    height: 100%;
    border: 2px solid var(--accent-color);
    top: 20px;
    left: 20px;
    border-radius: var(--border-radius);
    z-index: -1;
    transition: var(--transition);
}

.image-wrapper:hover::after {
    top: 15px;
    left: 15px;
}

/* Projects Section */
.project-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
}

.project-card {
    background-color: var(--light-navy);
    border-radius: var(--border-radius);
    transition: var(--transition);
    height: 100%;
    box-shadow: 0 10px 30px -15px rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.03);
}

.project-inner {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 2rem 1.75rem;
    height: 100%;
}

.project-card:hover {
    transform: translateY(-7px);
    box-shadow: 0 20px 30px -15px rgba(0, 0, 0, 0.7);
    border: 1px solid rgba(100, 255, 218, 0.2);
}

.project-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 35px;
}

.folder-icon {
    width: 40px;
    color: var(--accent-color);
}

.project-links a {
    color: var(--text-secondary);
}

.project-links a:hover {
    color: var(--accent-color);
}

.project-links svg {
    width: 20px;
    height: 20px;
}

.project-title {
    font-size: 1.4rem;
    margin-bottom: 10px;
}

.project-title a {
    color: var(--text-color);
}

.project-card:hover .project-title a {
    color: var(--accent-color);
}

.project-description {
    font-size: 0.95rem;
}

.project-tech-list {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    list-style: none;
    margin-top: 20px;
    font-family: var(--font-sans);
    font-size: 0.8rem;
    color: var(--text-secondary);
}

.wip-container {
    text-align: center;
    width: 100%;
    grid-column: 1 / -1;
    padding: 40px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: var(--border-radius);
    border: 1px dashed rgba(255, 255, 255, 0.1);
}

.wip-title {
    font-size: 1.2rem;
    font-family: var(--font-heading);
    color: var(--accent-color);
}

.wip-description {
    margin-top: 10px;
    font-size: 0.95rem;
}

/* Contact */
.contact {
    text-align: center;
    align-items: center;
    max-width: 600px;
    margin: 0 auto;
}

.contact .overline {
    color: var(--accent-color);
    font-weight: 500;
    margin-bottom: 10px;
}

.contact-title {
    font-size: clamp(40px, 5vw, 60px);
}

.contact .section-title::after {
    display: none;
}

.contact p {
    font-size: 1.1rem;
}

/* Footer */
footer {
    padding: 20px;
    text-align: center;
    color: var(--text-secondary);
    font-family: var(--font-sans);
    font-size: 0.9rem;
}

/* Responsive Styles */
@media (max-width: 850px) {
    .hero {
        flex-direction: column;
        justify-content: center;
        text-align: left;
    }

    .hero-content {
        max-width: 100%;
    }

    .hero-visual {
        display: none;
    }

    .about-content {
        grid-template-columns: 1fr;
    }

    .about-image {
        margin: 50px auto 0;
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
        /* In a real app, implement hamburger menu */
    }

    section {
        padding: 80px 0;
    }
}