/* Premium Obsidian & Gold Luxury Palette */
:root {
    --bg-color: #080808; /* Obsidian Black */
    --text-white: #ffffff;
    --text-offwhite: #b3b3b3; /* Soft grey */
    --accent-primary: #D4AF37; /* Metallic Gold */
    --accent-secondary: #B87333; /* Rich Copper */
    --accent-glow: rgba(212, 175, 55, 0.25);
    --glass-bg: rgba(20, 20, 20, 0.6);
    --glass-border: rgba(212, 175, 55, 0.15); /* Gold tinted border */
    --glass-highlight: rgba(255, 255, 255, 0.05);
    --font-main: 'Poppins', sans-serif;
    --font-mono: 'Fira Code', monospace;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    padding: 0;
    background-color: var(--bg-color);
    color: var(--text-white);
    font-family: var(--font-main);
    line-height: 1.7;
    overflow-x: hidden;
    position: relative;
}

/* =========================================
   LUXURY BACKGROUND
   ========================================= */
.bg-animation {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -1;
    overflow: hidden;
    background: radial-gradient(circle at top right, #111111 0%, var(--bg-color) 100%);
}

.grid-overlay {
    position: absolute;
    width: 200%;
    height: 200%;
    background-image: 
        linear-gradient(rgba(212, 175, 55, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(212, 175, 55, 0.03) 1px, transparent 1px);
    background-size: 50px 50px;
    animation: panGrid 40s linear infinite;
    transform: perspective(1000px) rotateX(60deg) translateY(-100px) translateZ(-200px);
    will-change: transform;
}

@keyframes panGrid {
    0% { transform: perspective(1000px) rotateX(60deg) translateY(0) translateZ(-200px); }
    100% { transform: perspective(1000px) rotateX(60deg) translateY(50px) translateZ(-200px); }
}

.glow-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(140px);
    opacity: 0.3;
    animation: drift 20s infinite alternate cubic-bezier(0.4, 0, 0.2, 1);
    will-change: transform;
}

.gold-orb {
    width: 500px;
    height: 500px;
    background: var(--accent-primary);
    top: -10%;
    left: -10%;
}

.copper-orb {
    width: 400px;
    height: 400px;
    background: var(--accent-secondary);
    bottom: -5%;
    right: -10%;
    animation-delay: -10s;
    animation-duration: 25s;
}

@keyframes drift {
    0% { transform: translate(0, 0) scale(1); }
    100% { transform: translate(150px, -100px) scale(1.1); }
}

/* =========================================
   NAVBAR
   ========================================= */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 20px 0;
    background: rgba(8, 8, 8, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    z-index: 100;
    border-bottom: 1px solid var(--glass-border);
}

.nav-content {
    max-width: 1000px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 40px;
}

.logo {
    color: var(--text-white);
    font-size: 1.3rem;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.nav-btn {
    color: var(--accent-primary);
    text-decoration: none;
    border: 1px solid var(--accent-primary);
    padding: 8px 20px;
    border-radius: 4px;
    font-size: 0.85rem;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    font-family: var(--font-mono);
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.nav-btn::before {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 0%; height: 100%;
    background: linear-gradient(90deg, var(--accent-primary), var(--accent-secondary));
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    z-index: -1;
}

.nav-btn:hover::before {
    width: 100%;
}

.nav-btn:hover {
    color: #000;
    box-shadow: 0 0 20px var(--accent-glow);
    border-color: transparent;
}

/* =========================================
   TYPOGRAPHY & HERO
   ========================================= */
.container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 140px 40px 0;
    box-sizing: border-box;
}

.hero {
    min-height: 80vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
}

.greeting {
    color: var(--accent-primary);
    margin: 0 0 15px 2px;
    font-family: var(--font-mono);
    font-size: 1rem;
    letter-spacing: 2px;
}

.animated-name {
    font-size: clamp(45px, 8vw, 85px);
    margin: 0;
    font-weight: 800;
    background: linear-gradient(to right, #ffffff 0%, var(--accent-primary) 50%, #ffffff 100%);
    background-size: 200% auto;
    color: transparent;
    -webkit-background-clip: text;
    background-clip: text;
    animation: shine 5s linear infinite;
    letter-spacing: -2px;
}

@keyframes shine {
    to { background-position: 200% center; }
}

.typewriter-container {
    display: inline-block;
    margin: 10px 0 30px;
}

.typewriter-text {
    font-size: clamp(25px, 5vw, 45px);
    color: var(--text-offwhite);
    font-weight: 500;
    margin: 0;
    overflow: hidden;
    white-space: nowrap;
    border-right: 2px solid var(--accent-primary);
    animation: typing 3s steps(40, end), blink 0.75s step-end infinite;
}

.tagline {
    max-width: 600px;
    color: var(--text-offwhite);
    font-size: 1.15rem;
    margin-bottom: 50px;
    font-weight: 300;
}

/* =========================================
   BUTTONS
   ========================================= */
.btn.primary-btn {
    color: #000;
    background: linear-gradient(90deg, var(--accent-primary), var(--accent-secondary));
    border: none;
    border-radius: 4px;
    padding: 1rem 2.5rem;
    font-size: 1rem;
    font-weight: 600;
    font-family: var(--font-mono);
    text-decoration: none;
    transition: all 0.4s ease;
    box-shadow: 0 10px 30px -10px var(--accent-glow);
    display: inline-block;
}

.btn.primary-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 20px 40px -10px var(--accent-glow);
    filter: brightness(1.15);
}

/* =========================================
   SECTIONS & GLASS CARDS
   ========================================= */
section {
    padding: 100px 0;
}

body { counter-reset: section; }

.section-title {
    display: flex;
    align-items: center;
    font-size: clamp(22px, 4vw, 30px);
    margin-bottom: 50px;
    color: var(--text-white);
    font-weight: 600;
}

.section-title::before {
    content: "0" counter(section) ".";
    counter-increment: section;
    margin-right: 15px;
    color: var(--accent-primary);
    font-family: var(--font-mono);
    font-size: clamp(16px, 3vw, 20px);
}

.section-title::after {
    content: "";
    display: block;
    height: 1px;
    flex-grow: 1;
    max-width: 300px;
    background: var(--glass-border);
    margin-left: 20px;
}

/* Premium Frosted Glass */
.glass {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-top: 1px solid var(--glass-highlight);
    border-left: 1px solid var(--glass-highlight);
    border-radius: 16px;
    padding: 35px;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.hover-float:hover {
    transform: translateY(-10px) scale(1.02);
    border-color: var(--accent-primary);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6), 0 0 20px var(--accent-glow) inset;
}

.glass h4 {
    margin-top: 0;
    font-size: 1.3rem;
    color: var(--text-white);
    margin-bottom: 20px;
    font-weight: 500;
}

.glass h4 i {
    color: var(--accent-primary);
    margin-right: 10px;
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 25px;
}

.grid-2 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 25px;
}

ul.icon-list li {
    padding-left: 0;
    margin-bottom: 15px;
    color: var(--text-offwhite);
    display: flex;
    align-items: center;
    font-weight: 300;
}

ul.icon-list li i {
    color: var(--accent-primary);
    margin-right: 15px;
    width: 20px;
    text-align: center;
}

.skill-badge {
    background: rgba(212, 175, 55, 0.1);
    color: var(--accent-primary);
    font-size: 0.7rem;
    padding: 4px 10px;
    border-radius: 20px;
    margin-left: auto;
    font-family: var(--font-mono);
    border: 1px solid rgba(212, 175, 55, 0.3);
}

.project-item {
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 1px solid var(--glass-border);
}

.project-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.project-desc {
    color: var(--text-offwhite);
    font-size: 0.95rem;
    margin: 8px 0 0 0;
    font-weight: 300;
}

.highlight {
    color: var(--accent-primary);
    font-weight: 500;
    margin: 0;
    font-size: 1.1rem;
}

.date {
    color: #888888;
    font-family: var(--font-mono);
    font-size: 0.9rem;
    margin-top: 8px;
}

/* =========================================
   CONTACT & FOOTER
   ========================================= */
.text-center {
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
    padding: 100px 0;
}

.big-heading {
    margin: 0 0 25px;
}

.contact-text {
    color: var(--text-offwhite);
    margin-bottom: 50px;
    font-size: 1.1rem;
    font-weight: 300;
}

footer {
    text-align: center;
    padding: 40px;
    font-family: var(--font-mono);
    color: #666666;
    font-size: 0.85rem;
}

.footer-socials {
    margin-top: 20px;
}

.footer-socials a {
    color: #888888;
    font-size: 1.5rem;
    margin: 0 15px;
    transition: all 0.3s ease;
}

.footer-socials a:hover {
    color: var(--accent-primary);
    transform: translateY(-3px);
}

/* =========================================
   SCROLL REVEAL ANIMATIONS
   ========================================= */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s cubic-bezier(0.5, 0, 0, 1), transform 0.8s cubic-bezier(0.5, 0, 0, 1);
}

.reveal.show {
    opacity: 1;
    transform: translateY(0);
}

.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.2s; } 
.delay-3 { transition-delay: 0.3s; }
.delay-4 { transition-delay: 0.4s; }

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .section-title::after { width: 100%; }
    .nav-content { padding: 0 20px; }
    
    /* Increased padding to prevent hero text from hiding behind the navbar */
    .container { padding: 160px 20px 0; }
    
    /* Adjusted logo so it doesn't wrap to a second line and increase navbar height */
    .logo { 
        font-size: 1rem; 
        white-space: nowrap; 
    }
    
    .hero {
        align-items: flex-start;
        text-align: left;
        min-height: 70vh;
    }
    
    .typewriter-text {
        white-space: normal; 
        border-right: none;
        animation: none;
    }
}
