:root {
    /* Color Palette */
    --clr-bg: #121212;
    --clr-text: #f0f0f0;
    --clr-accent-emerald: #047857; /* Emerald Green */
    --clr-accent-gold: #d4af37; /* Gold */
    --clr-glass-bg: rgba(255, 255, 255, 0.05);
    --clr-glass-border: rgba(255, 255, 255, 0.1);
    
    /* Typography */
    --font-main: 'Inter', sans-serif;
}

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

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--clr-bg);
    color: var(--clr-text);
    font-family: var(--font-main);
    line-height: 1.6;
    overflow-x: hidden;
    cursor: none; /* Hide default cursor for custom cursor */
}

/* Custom Cursor */
.cursor {
    position: fixed;
    top: 0;
    left: 0;
    width: 20px;
    height: 20px;
    border: 2px solid var(--clr-accent-gold);
    border-radius: 50%;
    pointer-events: none;
    transform: translate(-50%, -50%);
    transition: width 0.3s, height 0.3s, background-color 0.3s;
    z-index: 9999;
}

.cursor.hovering {
    width: 40px;
    height: 40px;
    background-color: rgba(212, 175, 55, 0.2);
}

/* Navigation */
.glass-nav {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 1.5rem 2rem;
    background: var(--clr-glass-bg);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--clr-glass-border);
    z-index: 1000;
}

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

.logo {
    font-size: 1.5rem;
    font-weight: 900;
    color: var(--clr-text);
    text-decoration: none;
}

.logo span {
    color: var(--clr-accent-emerald);
}

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

.nav-links a {
    color: var(--clr-text);
    text-decoration: none;
    font-weight: 400;
    transition: color 0.3s;
}

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

.mobile-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--clr-text);
    cursor: pointer;
    z-index: 1001;
}

/* Typography Utility */
.accent-gold {
    color: var(--clr-accent-gold);
}

/* Bento Hero */
.hero {
    max-width: 1200px;
    margin: 150px auto 100px;
    padding: 0 2rem;
    position: relative;
}

.bg-pattern {
    position: absolute;
    top: -50px;
    left: -50px;
    width: calc(100% + 100px);
    height: calc(100% + 100px);
    background-image: url('data:image/svg+xml;utf8,<svg width="40" height="40" viewBox="0 0 40 40" xmlns="http://www.w3.org/2000/svg"><path d="M20 0L40 20L20 40L0 20Z" fill="none" stroke="rgba(255,255,255,0.03)" stroke-width="1"/></svg>');
    z-index: -1;
    pointer-events: none;
}

.bento-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-auto-rows: minmax(280px, auto);
    gap: 1.5rem;
}

.bento-item {
    background: var(--clr-glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--clr-glass-border);
    border-radius: 20px;
    padding: 2.5rem;
    transition: transform 0.3s, border-color 0.3s;
}

.bento-item:hover {
    transform: translateY(-5px);
    border-color: rgba(255, 255, 255, 0.2);
}

.row-span-2 {
    grid-row: span 2;
}

.col-span-2 {
    grid-column: span 2;
}

.headline {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.headline h1 {
    font-size: 3.5rem;
    font-weight: 900;
    line-height: 1.1;
    margin-bottom: 1.5rem;
}

.headline p {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 2.5rem;
    max-width: 80%;
}

.skill-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
    margin-top: 1rem;
}

.tag {
    background: rgba(4, 120, 87, 0.2);
    color: var(--clr-accent-emerald);
    padding: 0.4rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 700;
}

.experience h3, .location h3, .skills h3 {
    margin-bottom: 1rem;
    color: var(--clr-accent-gold);
}

.abstract-avatar {
    width: 100%;
    max-width: 150px;
    height: auto;
    filter: drop-shadow(0 0 10px rgba(212, 175, 55, 0.2));
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 1rem 2.5rem;
    border-radius: 50px;
    text-decoration: none;
    font-family: inherit;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    border: none;
    transition: all 0.3s;
    width: fit-content;
}

.magnetic-btn {
    background: var(--clr-accent-emerald);
    color: white;
    box-shadow: 0 4px 15px rgba(4, 120, 87, 0.3);
}

.magnetic-btn:hover {
    box-shadow: 0 6px 20px rgba(4, 120, 87, 0.5);
    background: #059669;
}

.accent-btn {
    background: transparent;
    color: var(--clr-accent-gold);
    border: 2px solid var(--clr-accent-gold);
}

.accent-btn:hover {
    background: var(--clr-accent-gold);
    color: var(--clr-bg);
}

/* Sections */
.work-section, .about-section, .contact-section {
    max-width: 1200px;
    margin: 0 auto 150px;
    padding: 0 2rem;
}

.about-card {
    padding: 3rem;
}

.about-content p {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 1.5rem;
}

.stat-item {
    text-align: center;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.stat-item h3 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

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

.project-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
}

.glass-card {
    background: var(--clr-glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--clr-glass-border);
    border-radius: 20px;
    overflow: hidden;
}

.project-image {
    height: 250px;
    background: rgba(255, 255, 255, 0.03);
    /* Image placeholder */
}

.project-info {
    padding: 2rem;
}

.project-info h3 {
    color: var(--clr-accent-emerald);
    margin-bottom: 0.5rem;
}

.contact-card {
    padding: 4rem;
    text-align: center;
}

.contact-card h2 {
    font-size: 2.5rem;
    margin-bottom: 2rem;
}

/* Contact Form */
.contact-form-container, .modern-form {
    max-width: 500px;
    margin: 0 auto 2rem;
    text-align: left;
}

.form-group {
    margin-bottom: 1.5rem;
}

.modern-form label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--clr-accent-emerald);
    font-size: 0.9rem;
    font-weight: 600;
}

.form-input, .modern-form input, .modern-form textarea {
    width: 100%;
    padding: 1rem 1.5rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--clr-glass-border);
    border-radius: 10px;
    color: var(--clr-text);
    font-family: inherit;
    font-size: 1rem;
    transition: border-color 0.3s, background 0.3s;
}

.form-input:focus, .modern-form input:focus, .modern-form textarea:focus {
    outline: none;
    border-color: var(--clr-accent-emerald);
    background: rgba(255, 255, 255, 0.05);
}

.form-input::placeholder, .modern-form input::placeholder, .modern-form textarea::placeholder {
    color: rgba(255, 255, 255, 0.4);
}

/* Footer */
.site-footer {
    padding: 3rem 2rem 2rem;
    border-top: 1px solid var(--clr-glass-border);
    background: rgba(255, 255, 255, 0.02);
    margin-top: 50px;
}

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

.footer-logo p {
    color: rgba(255, 255, 255, 0.6);
    margin-top: 0.5rem;
    font-size: 0.9rem;
}

.footer-social {
    display: flex;
    gap: 1.5rem;
}

.footer-social a {
    color: var(--clr-text);
    text-decoration: none;
    transition: color 0.3s;
    font-size: 0.95rem;
}

.footer-social a:hover {
    color: var(--clr-accent-gold);
}

.footer-bottom {
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.85rem;
}

/* Reveal Animation Setup */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* Responsive */
@media (max-width: 900px) {
    body {
        cursor: default;
    }
    
    .cursor {
        display: none;
    }

    .glass-nav {
        padding: 1rem 1.5rem;
    }

    .mobile-toggle {
        display: block;
    }

    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        height: 100vh;
        background: rgba(18, 18, 18, 0.98);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        transition: right 0.4s cubic-bezier(0.77,0.2,0.05,1.0);
        z-index: 1000;
    }

    .nav-links.active {
        right: 0;
    }

    .bento-grid {
        grid-template-columns: 1fr;
        grid-auto-rows: auto;
    }

    .row-span-2, .col-span-2 {
        grid-row: span 1;
        grid-column: span 1;
    }

    .headline h1 {
        font-size: 2.5rem;
    }

    .hero {
        margin-top: 100px;
    }

    .project-grid {
        grid-template-columns: 1fr;
    }

    .footer-content {
        flex-direction: column;
        text-align: center;
    }

    .about-flex-container {
        flex-direction: column;
        text-align: center;
    }

    .about-avatar-wrapper {
        flex: 0 0 auto !important;
        width: 150px;
        margin-bottom: 2rem;
    }
}
