:root {
    --bg-color: #050508;
    --text-primary: #f0f0f5;
    --text-secondary: #9494a0;
    --accent-primary: #00f0ff;
    --accent-secondary: #ff00ff;
    --glass-bg: rgba(20, 20, 30, 0.4);
    --glass-border: rgba(255, 255, 255, 0.08);
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Outfit', sans-serif;
    --font-mono: 'Fira Code', monospace;
    --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

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

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-color);
    color: var(--text-primary);
    font-family: var(--font-body);
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
}

/* Background Glowing Orbs */
.background-effects {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -1;
    overflow: hidden;
    pointer-events: none;
}

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

.glow-1 {
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(0,240,255,0.3) 0%, rgba(0,0,0,0) 70%);
    top: -100px;
    left: -100px;
    animation-delay: 0s;
}

.glow-2 {
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(255,0,255,0.2) 0%, rgba(0,0,0,0) 70%);
    bottom: -150px;
    right: -100px;
    animation-delay: -5s;
}

.glow-3 {
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(100,0,255,0.2) 0%, rgba(0,0,0,0) 70%);
    top: 40%;
    left: 40%;
    animation-delay: -10s;
}

@keyframes float {
    0% { transform: translate(0, 0); }
    100% { transform: translate(50px, 50px); }
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 20px 0;
    z-index: 100;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    background: rgba(5, 5, 8, 0.7);
    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: 0 20px;
}

.logo {
    display: flex;
    align-items: baseline;
    gap: 8px;
}

.logo-text {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    font-weight: 800;
    letter-spacing: -1px;
    background: linear-gradient(90deg, var(--accent-primary), var(--accent-secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.pronunciation {
    font-family: var(--font-mono);
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.nav-links {
    display: flex;
    gap: 30px;
}

.nav-links a {
    color: var(--text-primary);
    text-decoration: none;
    font-size: 1rem;
    font-weight: 500;
    transition: var(--transition);
    position: relative;
}

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

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

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

/* Main Content */
main {
    max-width: 1200px;
    margin: 0 auto;
    padding: 120px 20px 60px;
}

/* Hero Section */
.hero {
    min-height: 80vh;
    display: flex;
    align-items: center;
}

.hero-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    gap: 50px;
}

.hero-text {
    flex: 1;
}

/* Glitch Effect */
.glitch-wrapper {
    margin-bottom: 20px;
}

.glitch {
    font-family: var(--font-heading);
    font-size: 5rem;
    font-weight: 800;
    position: relative;
    color: white;
}

.glitch::before, .glitch::after {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0.8;
}

.glitch::before {
    left: 2px;
    text-shadow: -2px 0 var(--accent-secondary);
    clip: rect(44px, 450px, 56px, 0);
}

.glitch::after {
    left: -2px;
    text-shadow: -2px 0 var(--accent-primary);
    clip: rect(24px, 450px, 36px, 0);
}

@keyframes glitch-anim {
    0% { clip: rect(21px, 9999px, 83px, 0); }
    5% { clip: rect(6px, 9999px, 91px, 0); }
    10% { clip: rect(44px, 9999px, 66px, 0); }
    15% { clip: rect(10px, 9999px, 4px, 0); }
    20% { clip: rect(74px, 9999px, 3px, 0); }
    25% { clip: rect(13px, 9999px, 87px, 0); }
    30% { clip: rect(58px, 9999px, 49px, 0); }
    35% { clip: rect(32px, 9999px, 35px, 0); }
    40% { clip: rect(17px, 9999px, 5px, 0); }
    45% { clip: rect(81px, 9999px, 95px, 0); }
    50% { clip: rect(2px, 9999px, 20px, 0); }
    55% { clip: rect(65px, 9999px, 7px, 0); }
    60% { clip: rect(38px, 9999px, 81px, 0); }
    65% { clip: rect(96px, 9999px, 56px, 0); }
    70% { clip: rect(48px, 9999px, 43px, 0); }
    75% { clip: rect(89px, 9999px, 12px, 0); }
    80% { clip: rect(11px, 9999px, 69px, 0); }
    85% { clip: rect(55px, 9999px, 98px, 0); }
    90% { clip: rect(26px, 9999px, 37px, 0); }
    95% { clip: rect(73px, 9999px, 72px, 0); }
    100% { clip: rect(92px, 9999px, 19px, 0); }
}

@keyframes glitch-anim2 {
    0% { clip: rect(65px, 9999px, 36px, 0); }
    5% { clip: rect(12px, 9999px, 87px, 0); }
    10% { clip: rect(44px, 9999px, 9px, 0); }
    15% { clip: rect(83px, 9999px, 52px, 0); }
    20% { clip: rect(31px, 9999px, 78px, 0); }
    25% { clip: rect(98px, 9999px, 21px, 0); }
    30% { clip: rect(7px, 9999px, 64px, 0); }
    35% { clip: rect(56px, 9999px, 14px, 0); }
    40% { clip: rect(91px, 9999px, 45px, 0); }
    45% { clip: rect(28px, 9999px, 82px, 0); }
    50% { clip: rect(76px, 9999px, 3px, 0); }
    55% { clip: rect(19px, 9999px, 95px, 0); }
    60% { clip: rect(47px, 9999px, 26px, 0); }
    65% { clip: rect(84px, 9999px, 67px, 0); }
    70% { clip: rect(5px, 9999px, 33px, 0); }
    75% { clip: rect(52px, 9999px, 91px, 0); }
    80% { clip: rect(39px, 9999px, 18px, 0); }
    85% { clip: rect(93px, 9999px, 59px, 0); }
    90% { clip: rect(24px, 9999px, 74px, 0); }
    95% { clip: rect(68px, 9999px, 41px, 0); }
    100% { clip: rect(13px, 9999px, 86px, 0); }
}

.subtitle {
    font-size: 1.5rem;
    color: var(--accent-primary);
    margin-bottom: 20px;
    font-weight: 500;
}

.description {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-bottom: 40px;
    max-width: 600px;
}

.cta-buttons {
    display: flex;
    gap: 20px;
}

.btn {
    padding: 12px 28px;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 1rem;
}

.btn-primary {
    background: linear-gradient(90deg, var(--accent-primary), #0073ff);
    color: #000;
    box-shadow: 0 0 20px rgba(0, 240, 255, 0.3);
}

.btn-primary:hover {
    box-shadow: 0 0 30px rgba(0, 240, 255, 0.5);
    transform: translateY(-2px);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-primary);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(4px);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
}

/* Hero Image */
.hero-image {
    flex: 1;
    display: flex;
    justify-content: flex-end;
}

.image-wrapper {
    width: 400px;
    height: 400px;
    border-radius: 20px;
    overflow: hidden;
    position: relative;
    box-shadow: 0 20px 50px rgba(0,0,0,0.5);
    border: 1px solid var(--glass-border);
}

.image-wrapper::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, transparent, rgba(10,10,15,0.8));
    z-index: 1;
}

.image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.image-wrapper:hover img {
    transform: scale(1.05);
}

/* Sections */
.projects-section {
    padding: 80px 0;
}

.section-header {
    margin-bottom: 50px;
}

.section-header h2 {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 15px;
}

.section-header p {
    color: var(--text-secondary);
    font-size: 1.1rem;
}

#serious h2 i {
    color: var(--accent-primary);
}

#silly h2 i {
    color: var(--accent-secondary);
}

/* Grid & Cards */
.project-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 30px;
}

.glass-panel {
    background: var(--glass-bg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    padding: 20px;
    text-decoration: none;
    color: var(--text-primary);
    transition: var(--transition);
    display: block;
    overflow: hidden;
    position: relative;
}

.glass-panel:hover {
    transform: translateY(-5px);
    border-color: rgba(255, 255, 255, 0.2);
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

.glass-panel::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 50%;
    height: 100%;
    background: linear-gradient(to right, transparent, rgba(255,255,255,0.05), transparent);
    transform: skewX(-20deg);
    transition: 0.5s;
}

.glass-panel:hover::before {
    left: 150%;
}

.project-image {
    height: 160px;
    border-radius: 10px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    color: rgba(255,255,255,0.8);
    background-size: cover;
    background-position: center;
}

.abstract-bg-1 { background: linear-gradient(135deg, #001f3f, #0074D9); }
.abstract-bg-2 { background: linear-gradient(135deg, #111111, #85144b); }
.abstract-bg-3 { background: linear-gradient(135deg, #001f3f, #3D9970); }
.abstract-bg-silly-1 { background: linear-gradient(135deg, #FF851B, #FF4136); }
.abstract-bg-silly-2 { background: linear-gradient(135deg, #B10DC9, #FFDC00); }
.abstract-bg-silly-3 { background: linear-gradient(135deg, #2ECC40, #01FF70); }

.project-info h3 {
    font-size: 1.4rem;
    margin-bottom: 10px;
}

.project-info p.project-desc {
    color: var(--text-secondary);
    font-size: 0.9rem;
    display: block;
    margin-bottom: 12px;
    line-height: 1.4;
}

.glass-panel:hover .project-info p.project-desc {
    color: var(--text-primary);
}

.project-info p.project-link {
    color: var(--text-secondary);
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    gap: 5px;
    font-weight: 500;
}

.glass-panel:hover .project-info p.project-link {
    color: var(--accent-primary);
}

.empty-state {
    grid-column: 1 / -1;
    text-align: center;
    padding: 60px;
    background: rgba(255,255,255,0.02);
    border-radius: 16px;
    border: 1px dashed var(--glass-border);
}

.empty-state i {
    font-size: 3rem;
    color: var(--text-secondary);
    margin-bottom: 20px;
    opacity: 0.5;
}

.empty-state p {
    color: var(--text-secondary);
}

/* Footer */
footer {
    border-top: 1px solid var(--glass-border);
    padding: 30px 0;
    margin-top: 50px;
    text-align: center;
    color: var(--text-secondary);
}

/* Responsive */
@media (max-width: 900px) {
    .hero-content {
        flex-direction: column;
        text-align: center;
    }
    
    .hero-text {
        order: 2;
    }
    
    .hero-image {
        order: 1;
        justify-content: center;
    }
    
    .cta-buttons {
        justify-content: center;
    }
    
    .glitch {
        font-size: 3.5rem;
    }
    
    .image-wrapper {
        width: 300px;
        height: 300px;
    }
}

@media (max-width: 600px) {
    .nav-content {
        flex-direction: column;
        gap: 15px;
        padding: 15px 20px;
    }
    
    .nav-links {
        display: flex;
        gap: 20px;
        font-size: 0.95rem;
    }
    
    .glitch {
        font-size: 2.5rem;
    }
    
    .project-grid {
        grid-template-columns: 1fr;
    }
}
