:root {
    --bg-color: #050505;
    --bg-secondary: #0a0a0a;
    --card-bg: rgba(20, 20, 20, 0.6);
    --card-border: rgba(201, 168, 76, 0.15);
    --gold: #c9a84c;
    --gold-glow: rgba(201, 168, 76, 0.3);
    --text-primary: #f0f0f0;
    --text-secondary: #a0a0a0;
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;
}

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

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

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 Effect */
.particles {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -1;
    background: radial-gradient(circle at 50% 50%, #0a0a0a 0%, #000000 100%);
    opacity: 0.8;
}

/* Typography */
h1, h2, h3, h4 {
    font-family: var(--font-heading);
    font-weight: 800;
}

.accent-gold {
    color: var(--gold);
    text-shadow: 0 0 15px var(--gold-glow);
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 3rem;
    text-align: center;
    letter-spacing: -0.5px;
}

.section-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 6rem 2rem;
}

/* Navbar */
nav {
    position: fixed;
    top: 0;
    width: 100%;
    border-bottom: 1px solid rgba(255,255,255,0.05);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    z-index: 1000;
    background: rgba(5, 5, 5, 0.8);
    transition: all 0.3s ease;
}

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

.logo {
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 1.5rem;
    color: var(--gold);
    letter-spacing: 2px;
}

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

.nav-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: color 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
}

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

/* Hero Section */
#hero {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 2rem;
    position: relative;
}

.hero-content {
    max-width: 800px;
    z-index: 2;
}

.greeting {
    font-size: 1.5rem;
    color: var(--text-secondary);
    font-weight: 400;
    margin-bottom: 0.5rem;
}

.name {
    font-size: clamp(3rem, 8vw, 6rem);
    line-height: 1.1;
    margin-bottom: 1rem;
    letter-spacing: -2px;
}

.typewriter-placeholder {
    font-family: var(--font-heading);
    font-size: clamp(1.2rem, 3vw, 2rem);
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 2rem;
    height: 2.5rem;
}

.cursor {
    animation: blink 1s infinite;
    color: var(--gold);
}

@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0; }
}

.hero-desc {
    font-size: 1.1rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto 3rem;
}

.hero-cta {
    display: flex;
    gap: 1rem;
    justify-content: center;
    align-items: center;
}

.btn {
    padding: 0.8rem 1.8rem;
    border-radius: 4px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
}

.primary-btn {
    background: var(--gold);
    color: #000;
    border: 1px solid var(--gold);
    box-shadow: 0 0 15px var(--gold-glow);
}

.primary-btn:hover {
    background: #deb64c;
    box-shadow: 0 0 25px rgba(201, 168, 76, 0.5);
    transform: translateY(-2px);
}

.secondary-btn {
    background: transparent;
    color: var(--text-primary);
    border: 1px solid rgba(255,255,255,0.2);
}

.secondary-btn:hover {
    border-color: var(--gold);
    color: var(--gold);
    background: rgba(201, 168, 76, 0.05);
    transform: translateY(-2px);
}

.icon-btn {
    background: transparent;
    border: 1px solid rgba(255,255,255,0.2);
    padding: 0.8rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-primary);
}

.icon-btn:hover {
    border-color: var(--gold);
    color: var(--gold);
    transform: translateY(-2px);
}

.scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
}

.mouse {
    width: 25px;
    height: 40px;
    border: 2px solid rgba(255,255,255,0.3);
    border-radius: 20px;
    position: relative;
}

.mouse::before {
    content: '';
    width: 3px;
    height: 6px;
    background: var(--gold);
    position: absolute;
    top: 6px;
    left: 50%;
    transform: translateX(-50%);
    border-radius: 2px;
    animation: scroll 2s infinite;
}

@keyframes scroll {
    0% { transform: translate(-50%, 0); opacity: 1; }
    100% { transform: translate(-50%, 15px); opacity: 0; }
}

/* Impact KPI Grid */
.kpi-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

.kpi-card {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    padding: 2.5rem 1.5rem;
    border-radius: 8px;
    text-align: center;
    backdrop-filter: blur(5px);
    transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
    border-top: 3px solid var(--gold);
}

.kpi-card:hover {
    transform: translateY(-5px);
    border-color: rgba(201, 168, 76, 0.4);
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

.kpi-num {
    font-size: 3.5rem;
    color: var(--gold);
    line-height: 1;
    margin-bottom: 1rem;
    text-shadow: 0 0 20px rgba(201, 168, 76, 0.2);
}

.kpi-label {
    font-size: 0.9rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
}

/* About Section */
.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.about-text p {
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
    color: var(--text-secondary);
}

.about-text strong {
    color: var(--text-primary);
}

.about-text em {
    color: var(--gold);
    font-style: normal;
}

.glow-box {
    background: #0f0f0f;
    border: 1px solid #1a1a1a;
    border-radius: 8px;
    padding: 2rem;
    position: relative;
    box-shadow: 0 0 40px rgba(201, 168, 76, 0.05);
}

.glow-box::before {
    content: '';
    position: absolute;
    top: -1px; left: -1px; right: -1px; bottom: -1px;
    background: linear-gradient(45deg, transparent, rgba(201, 168, 76, 0.3), transparent);
    z-index: -1;
    border-radius: 9px;
}

.code-snippet {
    font-family: 'Courier New', Courier, monospace;
    font-size: 0.9rem;
    line-height: 1.5;
}

.code-comment { color: #6c757d; }
.code-keyword { color: #c678dd; }
.code-function { color: #61afef; }
.code-string { color: #98c379; }

/* Engineering Feats */
.timeline {
    display: flex;
    flex-direction: column;
    gap: 3rem;
}

.feat-card {
    display: flex;
    gap: 2rem;
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    padding: 2.5rem;
    border-radius: 8px;
    position: relative;
    backdrop-filter: blur(5px);
    transition: all 0.3s ease;
}

.feat-card:hover {
    transform: translateX(10px);
    border-color: rgba(201, 168, 76, 0.4);
    background: rgba(25, 25, 25, 0.6);
}

.feat-icon, .feat-icon-alt {
    font-size: 2.5rem;
    background: rgba(201, 168, 76, 0.1);
    height: 70px;
    width: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    border: 1px solid rgba(201, 168, 76, 0.2);
    flex-shrink: 0;
}

.feat-content h3 {
    font-size: 1.5rem;
    margin-bottom: 0.2rem;
    color: var(--text-primary);
}

.feat-context {
    font-size: 0.85rem;
    color: var(--gold);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 1.5rem;
    font-weight: 600;
}

.feat-content p {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    font-size: 1.05rem;
}

.feat-bullets {
    list-style: none;
}

.feat-bullets li {
    position: relative;
    padding-left: 1.5rem;
    margin-bottom: 0.8rem;
    color: #c4c4c4;
    font-size: 0.95rem;
}

.feat-bullets li::before {
    content: '▹';
    position: absolute;
    left: 0;
    color: var(--gold);
    font-weight: bold;
}

.feat-bullets li strong {
    color: var(--text-primary);
}

/* Skills */
.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.skill-category {
    background: var(--bg-secondary);
    padding: 2rem;
    border-radius: 8px;
    border: 1px solid #1a1a1a;
}

.skill-category h3 {
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
    color: var(--text-primary);
    border-bottom: 1px solid rgba(255,255,255,0.05);
    padding-bottom: 0.5rem;
}

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

.tag {
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.1);
    padding: 0.4rem 0.8rem;
    border-radius: 4px;
    font-size: 0.85rem;
    color: var(--text-secondary);
    transition: all 0.2s ease;
}

.tag:hover {
    background: rgba(255,255,255,0.08);
    color: var(--text-primary);
    transform: translateY(-2px);
}

.tag-gold {
    border-color: rgba(201, 168, 76, 0.4);
    color: var(--gold);
    background: rgba(201, 168, 76, 0.05);
}

.tag-gold:hover {
    background: rgba(201, 168, 76, 0.15);
}

/* Footer */
footer {
    border-top: 1px solid rgba(255,255,255,0.05);
    background: var(--bg-secondary);
    padding: 3rem 2rem;
    text-align: center;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.footer-logo {
    color: var(--gold);
    font-size: 2rem;
    letter-spacing: 2px;
}

.footer-links {
    display: flex;
    gap: 1.5rem;
    margin-top: 1rem;
}

.footer-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.2s ease;
}

.footer-links a:hover {
    color: var(--gold);
}

/* Animations Triggered via JS */
.hidden {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

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

/* Responsive */
@media (max-width: 900px) {
    .about-content {
        grid-template-columns: 1fr;
    }
    
    .feat-card {
        flex-direction: column;
        gap: 1.5rem;
    }
    
    .feat-icon, .feat-icon-alt {
        width: 60px;
        height: 60px;
    }
}

@media (max-width: 600px) {
    .nav-links {
        display: none;
    }
    
    .hero-cta {
        flex-direction: column;
        width: 100%;
    }
    
    .btn {
        width: 100%;
    }
    
    .name {
        font-size: 2.5rem;
    }
}

/* Certifications */
.certs-container {
    margin-top: 4rem;
    padding-top: 3rem;
    border-top: 1px solid rgba(255,255,255,0.05);
}

.cert-card {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    background: var(--card-bg);
    border: 1px solid rgba(201, 168, 76, 0.3);
    padding: 1.5rem 2.5rem;
    border-radius: 8px;
    backdrop-filter: blur(5px);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-align: left;
}

.cert-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(201, 168, 76, 0.15);
}

.cert-icon {
    font-size: 3rem;
    line-height: 1;
}

.cert-details h4 {
    font-size: 1.4rem;
    color: var(--gold);
    margin-bottom: 0.2rem;
    font-family: var(--font-heading);
}

.cert-details p {
    font-size: 0.95rem;
    color: var(--text-secondary);
}
