:root {
    --bg-color: #0b0f19;
    --text-primary: #f8fafc;
    --text-secondary: #94a3b8;
    --accent-gradient: linear-gradient(135deg, #D4AF37 0%, #FFD700 50%, #FFB07B 100%);
    --glass-bg: rgba(255, 255, 255, 0.03);
    --glass-border: rgba(255, 255, 255, 0.08);
    --font-heading: 'Playfair Display', serif;
    --font-body: 'Inter', sans-serif;
    --transition-smooth: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

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

/* Background Glows */
.bg-glow {
    position: fixed;
    border-radius: 50%;
    filter: blur(120px);
    z-index: -1;
    opacity: 0.4;
    pointer-events: none;
}
.glow-1 {
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(212,175,55,0.15) 0%, rgba(11,15,25,0) 70%);
    top: -200px;
    left: -200px;
}
.glow-2 {
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(255,176,123,0.1) 0%, rgba(11,15,25,0) 70%);
    bottom: -100px;
    right: -100px;
}
.glow-3 {
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(148,163,184,0.05) 0%, rgba(11,15,25,0) 70%);
    top: 40%;
    left: 50%;
    transform: translate(-50%, -50%);
}

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

h1 {
    font-size: 4.5rem;
    line-height: 1.1;
    margin-bottom: 1rem;
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

h2 {
    font-size: 3rem;
    margin-bottom: 0.5rem;
}

h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

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

a {
    text-decoration: none;
    color: inherit;
}

/* Utility Classes */
.glass-panel {
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    padding: 2.5rem;
    transition: var(--transition-smooth);
}

.hover-lift:hover {
    transform: translateY(-8px);
    border-color: rgba(212, 175, 55, 0.3);
    box-shadow: 0 20px 40px rgba(0,0,0,0.4);
}

/* Buttons */
.btn-primary, .btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 1rem 2rem;
    border-radius: 30px;
    font-weight: 600;
    font-size: 1rem;
    transition: var(--transition-smooth);
    cursor: pointer;
}

.btn-primary {
    background: var(--accent-gradient);
    color: #000;
    border: none;
    box-shadow: 0 4px 15px rgba(212, 175, 55, 0.2);
}

.btn-primary:hover {
    box-shadow: 0 8px 25px rgba(212, 175, 55, 0.4);
    transform: translateY(-2px);
}

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

.btn-secondary:hover {
    border-color: #D4AF37;
    color: #D4AF37;
    transform: translateY(-2px);
}

/* Navigation */
nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 2rem 5%;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 100;
    transition: var(--transition-smooth);
}

nav.scrolled {
    padding: 1rem 5%;
    background: rgba(11, 15, 25, 0.85);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--glass-border);
}

.logo {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: -1px;
    color: #f8fafc;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2.5rem;
    align-items: center;
}

.nav-links a {
    font-size: 1rem;
    font-weight: 500;
    color: var(--text-primary);
    transition: color 0.3s ease;
}

.nav-links a:hover {
    color: #D4AF37;
}

.nav-links .nav-btn {
    padding: 0.6rem 1.5rem;
    color: #000;
}

.nav-links .nav-btn:hover {
    color: #000;
}

/* Layout */
section, header {
    padding: 6rem 5%;
    max-width: 1400px;
    margin: 0 auto;
}

/* Header/Hero */
header {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 4rem;
    padding-top: 10rem;
}

.hero-content {
    flex: 1;
    max-width: 650px;
    position: relative;
    z-index: 5;
}

.tagline {
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: #D4AF37;
    margin-bottom: 1.5rem;
    font-weight: 600;
}

.hero-desc {
    font-size: 1.25rem;
    margin-bottom: 3rem;
}

.hero-buttons {
    display: flex;
    gap: 1.5rem;
}

.hero-visual {
    flex: 1;
    position: relative;
    height: 500px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-image-container {
    width: 280px;
    height: 280px;
    border-radius: 50%;
    overflow: hidden;
    border: 4px solid var(--glass-border);
    box-shadow: 0 0 40px rgba(212, 175, 55, 0.15);
    z-index: 2;
}

.hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.stat-card {
    position: absolute;
    padding: 1.5rem 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    z-index: 10;
}

.stat-1 {
    top: 5%;
    right: -10%;
}

.stat-2 {
    bottom: 5%;
    left: -5%;
}

.stat-value {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    font-weight: 700;
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stat-label {
    font-size: 0.875rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Sections Common */
.section-header {
    margin-bottom: 4rem;
}

.header-line {
    width: 60px;
    height: 3px;
    background: var(--accent-gradient);
    margin-top: 1rem;
    border-radius: 3px;
}

/* About */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
}

.about-text p:last-child {
    margin-bottom: 0;
}

.education-container {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.edu-card {
    display: flex;
    gap: 1.5rem;
    padding: 2rem;
    align-items: flex-start;
}

.edu-icon {
    font-size: 2rem;
}

.institution {
    font-size: 0.95rem;
    margin-bottom: 0;
}

/* Experience & Achievements */
.experience-content p,
.achievements-content p {
    margin-bottom: 1.5rem;
}

.experience-content p:last-child,
.achievements-content p:last-child {
    margin-bottom: 0;
}

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

.skills-grid .glass-panel {
    padding: 2rem;
}

.skills-grid h3 {
    color: #D4AF37;
    margin-bottom: 1rem;
    font-size: 1.25rem;
}

/* Portfolio */
.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 2rem;
}

.portfolio-card {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%;
    padding: 2rem;
    transition: var(--transition-smooth);
}

.portfolio-card:hover {
    transform: translateY(-8px);
    border-color: rgba(212, 175, 55, 0.3);
    box-shadow: 0 20px 40px rgba(0,0,0,0.4);
}

.project-type {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #D4AF37;
    margin-bottom: 1rem;
    font-weight: 600;
}

.portfolio-card h3 {
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

.portfolio-card p {
    font-size: 0.95rem;
    margin-bottom: 2rem;
}

.card-footer {
    margin-top: auto;
    padding-top: 1.5rem;
    border-top: 1px solid var(--glass-border);
}

.view-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 500;
    color: #f8fafc;
    transition: color 0.3s ease;
}

.view-link span {
    transition: transform 0.3s ease;
}

.portfolio-card:hover .view-link {
    color: #D4AF37;
}

.portfolio-card:hover .view-link span {
    transform: translateX(5px);
}

/* Contact */
.contact-box {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
    padding: 4rem 2rem;
}

.contact-box h2 {
    margin-bottom: 1.5rem;
}

.contact-box p {
    margin-bottom: 3rem;
}

.contact-btn {
    padding: 1.2rem 3rem;
    font-size: 1.1rem;
}

/* Footer */
footer {
    padding: 2rem 5%;
    border-top: 1px solid var(--glass-border);
    margin-top: 4rem;
}

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

.footer-content p {
    margin: 0;
    font-size: 0.9rem;
}

/* Animations */
.fade-in-up {
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 1s ease forwards;
}

.fade-in {
    opacity: 0;
    animation: fadeIn 1.5s ease forwards 0.5s;
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    to {
        opacity: 1;
    }
}

.fade-in-on-scroll {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.fade-in-on-scroll.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* Responsive Design */
@media (max-width: 1024px) {
    h1 {
        font-size: 3.5rem;
    }
    
    header {
        flex-direction: column;
        text-align: center;
        padding-top: 8rem;
    }
    
    .hero-content {
        align-items: center;
        display: flex;
        flex-direction: column;
    }
    
    .hero-buttons {
        justify-content: center;
    }
    
    .hero-visual {
        width: 100%;
        height: 400px;
    }
    
    .about-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    h1 {
        font-size: 2.5rem;
    }
    
    h2 {
        font-size: 2rem;
    }
    
    .nav-links {
        display: none; /* simple mobile menu hidden for now */
    }
    
    .hero-buttons {
        flex-direction: column;
        width: 100%;
    }
    
    .btn-primary, .btn-secondary {
        width: 100%;
    }
    
    .hero-visual {
        height: auto;
        flex-direction: column;
        gap: 1.5rem;
        margin-top: 2rem;
    }
    
    .stat-card {
        position: relative;
        top: auto;
        right: auto;
        bottom: auto;
        left: auto;
        width: 100%;
        max-width: 300px;
    }
    
    .portfolio-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
}
