:root {
    --bg-primary: #0a0a0f;
    --bg-secondary: #13141f;
    --text-primary: #f0e6c8;
    --text-secondary: #a0a0b0;
    --accent: #ff715b;
    --glass-bg: rgba(18, 18, 27, 0.4);
    --glass-border: rgba(255, 255, 255, 0.08);
    --glass-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.6);
}

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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: #0d1022;
    color: var(--text-primary);
    overflow-x: hidden;
}

/* === Atmosphere & Polish === */
#grain-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    pointer-events: none;
    z-index: 999;
    opacity: 0.04;
    background: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
}

#ambient-glow {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60vw;
    height: 60vh;
    background: radial-gradient(circle, rgba(255, 140, 100, 0.15) 0%, rgba(255, 140, 100, 0) 70%);
    filter: blur(60px);
    z-index: 0;
    animation: pulsing-glow 4s ease-in-out infinite alternate;
    pointer-events: none;
}

@keyframes pulsing-glow {
    0% {
        opacity: 0.6;
        transform: translate(-50%, -50%) scale(0.9);
    }

    100% {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1.1);
    }
}

/* === Professional Navigation Header === */
header#main-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 2rem 3rem;
    z-index: 1000;
    pointer-events: none;
    animation: fade-in-down 1s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes fade-in-down {
    0% { opacity: 0; transform: translateY(-20px); }
    100% { opacity: 1; transform: translateY(0); }
}

.brand h1 {
    font-size: 2.5rem;
    font-weight: 800;
    letter-spacing: -1.5px;
    color: var(--text-primary);
    line-height: 1;
    pointer-events: auto;
}

.brand h1 span {
    color: var(--accent);
}

.brand p {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--text-secondary);
    margin-top: 5px;
}

nav#top-nav {
    display: flex;
    gap: 2rem;
    pointer-events: auto;
}

nav#top-nav a {
    text-decoration: none;
    color: var(--text-primary);
    font-weight: 600;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: color 0.3s;
}

nav#top-nav a:hover, nav#top-nav a.active {
    color: var(--accent);
}

/* Rest of the styles... */

/* === UI Overlay === */
#ui-overlay {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(10, 10, 15, 0.6);
    border: 1px solid var(--glass-border);
    padding: 12px 30px;
    border-radius: 50px;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    z-index: 100;
    display: flex;
    align-items: center;
    gap: 15px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
}

/* Animated pulsing dot indicator */
.pulse-dot {
    width: 8px;
    height: 8px;
    background: var(--accent);
    border-radius: 50%;
    box-shadow: 0 0 10px var(--accent);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(255, 113, 91, 0.7);
    }

    70% {
        transform: scale(1);
        box-shadow: 0 0 0 10px rgba(255, 113, 91, 0);
    }

    100% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(255, 113, 91, 0);
    }
}

#ui-overlay p {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-secondary);
    letter-spacing: 0.2px;
}

#ui-overlay strong {
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.1);
    padding: 2px 8px;
    border-radius: 6px;
    font-size: 0.8rem;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

/* === Modals === */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.modal.active {
    opacity: 1;
    pointer-events: all;
}

.modal-content {
    background: rgba(20, 20, 28, 0.85);
    width: 90%;
    max-width: 550px;
    padding: 50px;
    border-radius: 24px;
    border: 1px solid var(--glass-border);
    box-shadow: 0 30px 100px rgba(0, 0, 0, 0.8), inset 0 1px 0 rgba(255, 255, 255, 0.1);
    position: relative;
    transform: translateY(30px) scale(0.95);
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.modal.active .modal-content {
    transform: translateY(0) scale(1);
}

.close-btn {
    position: absolute;
    top: 25px;
    right: 30px;
    font-size: 1.8rem;
    cursor: pointer;
    color: var(--text-secondary);
    transition: color 0.2s ease, transform 0.2s ease;
    line-height: 1;
}

.close-btn:hover {
    color: var(--text-primary);
    transform: rotate(90deg);
}

h2 {
    color: var(--text-primary);
    margin-bottom: 25px;
    font-size: 2rem;
    font-weight: 800;
    letter-spacing: -0.5px;
}

h2 span {
    color: var(--accent);
}

h3 {
    margin-top: 25px;
    margin-bottom: 12px;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-primary);
}

p {
    margin-bottom: 16px;
    line-height: 1.7;
    color: var(--text-secondary);
    font-size: 1rem;
}

/* Premium Project Cards */
.project-card {
    background: rgba(255, 255, 255, 0.02);
    padding: 24px;
    border-radius: 16px;
    margin-bottom: 16px;
    border: 1px solid var(--glass-border);
    transition: all 0.3s ease;
    cursor: pointer;
}

.project-card:hover {
    background: rgba(255, 255, 255, 0.04);
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
    border-color: rgba(255, 255, 255, 0.1);
}

.project-card h3 {
    margin-top: 0;
    color: var(--text-primary);
}

.project-card p {
    margin-bottom: 0;
    font-size: 0.95rem;
}

/* Modern Pill Button */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--text-primary);
    color: #000;
    text-decoration: none;
    padding: 12px 28px;
    border-radius: 40px;
    font-weight: 600;
    font-size: 0.95rem;
    margin-top: 25px;
    transition: all 0.3s ease;
    border: none;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(255, 255, 255, 0.15);
    background: #e4e4e7;
}