:root {
    /* Dark background */
    --bg-color: #000000;
    --current-accent: #ffffff;
    --text-primary: #ffffff;
    --text-secondary: rgba(255, 255, 255, 0.6);

    /* Colorful accents for Liquid Glass */
    --accent-blue: #00f0ff;
    --accent-orange: #ff5e00;
    --accent-purple: #8a2be2;
    --accent-green: #39ff14;

    /* Glassmorphism properties */
    --glass-bg: rgba(255, 255, 255, 0.03);
    --glass-border: rgba(255, 255, 255, 0.08);
    --glass-blur: 20px;
    --glass-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);

    --transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Outfit', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
    transition: background-color 0.8s ease;
}

/* 
  Ambient Background effect 
  Creates the colorful "Liquid" feel behind the frosted glass
*/
.ambient-background {
    display: none;
}

.glow-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(120px);
    opacity: 0.5;
    animation: float 20s infinite alternate ease-in-out;
}

.orb-1 {
    width: 60vw;
    height: 60vw;
    top: -10vw;
    left: -10vw;
    background: radial-gradient(circle, var(--accent-blue) 0%, transparent 60%);
    animation-duration: 25s;
}

.orb-2 {
    width: 50vw;
    height: 50vw;
    bottom: -10vw;
    right: -10vw;
    background: radial-gradient(circle, var(--accent-orange) 0%, transparent 70%);
    animation-duration: 22s;
    animation-delay: -5s;
}

.orb-3 {
    width: 40vw;
    height: 40vw;
    top: 40vh;
    left: 30vw;
    background: radial-gradient(circle, var(--accent-purple) 0%, transparent 70%);
    opacity: 0.3;
    animation-duration: 30s;
}

@keyframes float {
    0% {
        transform: translate(0, 0) scale(1);
    }

    50% {
        transform: translate(5vw, 5vh) scale(1.1);
    }

    100% {
        transform: translate(-5vw, -5vh) scale(0.9);
    }
}

/* Glassmorphism Utilities */
.glass-card {
    background: var(--glass-bg);
    backdrop-filter: blur(var(--glass-blur));
    -webkit-backdrop-filter: blur(var(--glass-blur));
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    padding: 2.5rem;
    box-shadow: var(--glass-shadow);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.glass-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.05), transparent);
    transition: var(--transition);
}

.glass-card:hover::before {
    left: 100%;
    transition: 1s;
}

.glass-button {
    display: inline-block;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #fff;
    padding: 1rem 2.5rem;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 500;
    letter-spacing: 1px;
    transition: var(--transition);
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.glass-button:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--current-accent);
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.5), 0 0 20px var(--current-accent);
}

.glass-tag {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(5px);
    padding: 0.5rem 1rem;
    border-radius: 8px;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

/* Navigation */
.glass-nav {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 100;
    background: rgba(5, 5, 5, 0.5);
    backdrop-filter: blur(15px);
    border-bottom: 1px solid var(--glass-border);
}

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

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: -1px;
}

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

.nav-links a {
    color: var(--text-primary);
    text-decoration: none;
    font-size: 0.95rem;
    opacity: 0.7;
    transition: var(--transition);
}

.nav-links a:hover {
    opacity: 1;
    text-shadow: 0 0 8px rgba(255, 255, 255, 0.5);
}

/* Layout */
main {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

section {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 6rem 0;
}

.section-title {
    font-size: 3rem;
    margin-bottom: 3rem;
    font-weight: 300;
    letter-spacing: -1px;
    background: linear-gradient(to right, #fff, var(--current-accent));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    transition: all 0.8s ease;
}

/* Hero */
.section-hero {
    align-items: center;
    justify-content: center;
}

.hero-content {
    width: 100%;
}

.hero-layout {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 4rem;
}

.hero-text {
    flex: 1;
    text-align: left;
}

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

.hero-graphics {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    perspective: 1000px;
}

.portrait-wrapper {
    position: relative;
    width: 100%;
    max-width: 380px;
}

.portrait-img {
    width: 100%;
    height: auto;
    aspect-ratio: 3/4;
    object-fit: cover;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    box-shadow:
        0 20px 50px rgba(0, 0, 0, 0.4),
        0 0 30px rgba(255, 255, 255, 0.05);
    animation: float-main 8s infinite ease-in-out;
    position: relative;
    z-index: 2;
}

.portrait-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 120%;
    height: 120%;
    background: radial-gradient(circle, var(--current-accent) 0%, transparent 60%);
    opacity: 0.15;
    filter: blur(40px);
    z-index: 1;
    transition: all 0.8s ease;
}

@keyframes float-main {

    0%,
    100% {
        transform: translateY(0) rotateX(0) rotateY(0);
    }

    50% {
        transform: translateY(-15px) rotateX(2deg) rotateY(2deg);
    }
}

.hero-description {
    font-size: 1.15rem;
    color: var(--text-secondary);
    margin-bottom: 2.5rem;
    line-height: 1.8;
}

.hero-title {
    font-size: 4.5rem;
    font-weight: 700;
    letter-spacing: -2px;
    margin-bottom: 1rem;
    line-height: 1.1;
    background: linear-gradient(to right, #fff, var(--current-accent));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    transition: all 0.8s ease;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--text-secondary);
    margin-bottom: 3rem;
    font-weight: 300;
}

/* About */
.section-about {
    align-items: center;
}

.section-about .glass-card {
    max-width: 800px;
    width: 100%;
}

.section-about h2 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    font-weight: 300;
}

.section-about p {
    font-size: 1.15rem;
    color: var(--text-secondary);
    margin-bottom: 2.5rem;
}

.skills-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

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

.project-card {
    padding: 0;
    display: flex;
    flex-direction: column;
    cursor: pointer;
}

.project-card:hover {
    transform: translateY(-10px);
    border-color: rgba(255, 255, 255, 0.3);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6), 0 0 30px rgba(0, 240, 255, 0.1);
}

.project-image {
    height: 200px;
    width: 100%;
    background-color: rgba(255, 255, 255, 0.02);
    border-bottom: 1px solid var(--glass-border);
    position: relative;
    overflow: hidden;
}

.project-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    top: 0;
    left: 0;
}

.project-card h3 {
    padding: 1.5rem 1.5rem 0.5rem;
    font-size: 1.4rem;
    font-weight: 500;
}

.project-card p {
    padding: 0 1.5rem 1.5rem;
    color: var(--text-secondary);
    font-size: 0.95rem;
}

/* Resume */
.timeline {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-bottom: 3rem;
    position: relative;
}

.timeline::before {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    left: 2rem;
    width: 1px;
    background: var(--glass-border);
}

.timeline-item {
    display: flex;
    gap: 3rem;
    padding: 2rem;
    background: rgba(255, 255, 255, 0.015);
}

.timeline-date {
    min-width: 120px;
    font-weight: 500;
    color: var(--accent-blue);
}

.timeline-content h3 {
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.timeline-content p {
    color: var(--text-secondary);
}

/* Contact */
.section-contact {
    text-align: center;
    align-items: center;
}

.contact-card {
    max-width: 600px;
    width: 100%;
}

.contact-card h2 {
    font-size: 2.2rem;
    margin-bottom: 2rem;
    font-weight: 300;
}

.contact-links {
    display: flex;
    justify-content: center;
    gap: 2rem;
}

.glass-link {
    color: #fff;
    text-decoration: none;
    font-size: 1.1rem;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    transition: var(--transition);
}

.glass-link:hover {
    background: rgba(255, 255, 255, 0.05);
    color: var(--accent-orange);
}

/* Animations */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

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

/* Project Detail Page */
.project-detail-section {
    min-height: 100vh;
    padding: 8rem 0 4rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    text-align: center;
}

/* Responsive */
@media (max-width: 768px) {
    .hero-layout {
        flex-direction: column-reverse;
        text-align: center;
        gap: 3rem;
    }

    .hero-text {
        text-align: center;
    }

    .hero-actions {
        justify-content: center;
        flex-direction: column;
    }

    .portrait-wrapper {
        max-width: 300px;
    }

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

    .section-title {
        font-size: 2.5rem;
    }

    .timeline {
        gap: 1rem;
    }

    .timeline::before {
        display: none;
    }

    .timeline-item {
        flex-direction: column;
        gap: 1rem;
    }

    .timeline-date {
        min-width: auto;
    }

    .nav-links {
        display: none;
        /* Can add hamburger menu later */
    }
}