/* =========================================
   CSS variables for themes and colors
   ========================================= */
:root {
    --bg-color-main: #0a0e17; /* Extra dark navy */
    --bg-color-alt: #0d121d;
    --text-primary: #e2e8f0;
    --text-secondary: #94a3b8;
    --accent-color: #00f0ff; /* Neon cyan */
    --accent-glow: rgba(0, 240, 255, 0.5);
    --secondary-color: #4f46e5;
    
    --glass-bg: rgba(255, 255, 255, 0.03);
    --glass-border: rgba(255, 255, 255, 0.07);
    --glass-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
    
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;
    
    --transition-slow: 0.6s cubic-bezier(0.25, 0.8, 0.25, 1);
    --transition-fast: 0.3s ease;
}

/* =========================================
   Global Resets
   ========================================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    scroll-behavior: smooth;
}

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

h1, h2, h3, h4, .logo {
    font-family: var(--font-heading);
    color: #fff;
}

ul {
    list-style: none;
}

a {
    text-decoration: none;
    color: var(--text-primary);
    transition: var(--transition-fast);
}

.highlight {
    color: var(--accent-color);
}

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

.section {
    padding: 6rem 0;
}

.section-title {
    font-size: 2.5rem;
    margin: 0 auto 3rem auto;
    text-align: center;
    position: relative;
    display: block;
    width: fit-content;
    max-width: 100%;
}

.section-title::after {
    content: '';
    position: absolute;
    width: 60%;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--accent-color), transparent);
    bottom: -10px;
    left: 20%;
}

.bg-alternate {
    background-color: var(--bg-color-alt);
}

/* =========================================
   Glassmorphism
   ========================================= */
.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: 2rem;
    box-shadow: var(--glass-shadow);
    transition: var(--transition-fast);
}

.glass-panel:hover {
    transform: translateY(-5px);
    border-color: rgba(255, 255, 255, 0.15);
    box-shadow: 0 12px 40px rgba(0, 240, 255, 0.1);
}

/* =========================================
   Header Nav
   ========================================= */
.glass-header {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(10, 14, 23, 0.8);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--glass-border);
    height: 80px;
    display: flex;
    align-items: center;
    transition: background 0.3s ease;
}

.nav-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.logo {
    font-size: 1.8rem;
    font-weight: 700;
    letter-spacing: 1px;
}

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

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

.nav-links li a {
    font-weight: 600;
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
}

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

.nav-links li a::after {
    content: '';
    position: absolute;
    width: 0%;
    height: 2px;
    bottom: -4px;
    left: 0;
    background-color: var(--accent-color);
    transition: width var(--transition-fast);
}

.nav-links li a:hover::after {
    width: 100%;
}

.hamburger {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
}

/* =========================================
   Hero Section
   ========================================= */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 80px;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('assets/hero_background.png') no-repeat center center/cover;
    opacity: 0.2;
    z-index: -1;
    filter: blur(3px) brightness(0.7);
    animation: slowPulse 10s infinite alternate;
}

@keyframes slowPulse {
    0% { transform: scale(1); opacity: 0.15; }
    100% { transform: scale(1.05); opacity: 0.25; }
}

.hero-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 4rem;
    width: 100%;
}

.hero-text {
    flex: 1;
}

.greeting {
    font-size: 1.2rem;
    color: var(--accent-color);
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.name {
    font-size: 4.5rem;
    line-height: 1.1;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, #fff, #94a3b8);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

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

.hero-summary {
    font-size: 1.1rem;
    margin-bottom: 2.5rem;
    max-width: 600px;
}

.btn-group {
    display: flex;
    gap: 1.5rem;
}

.btn {
    padding: 0.8rem 2rem;
    border-radius: 30px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.9rem;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.btn-primary {
    background: var(--accent-color);
    color: #000;
    border: 2px solid var(--accent-color);
}

.btn-primary:hover {
    background: transparent;
    color: var(--accent-color);
    box-shadow: 0 0 20px var(--accent-glow);
}

.btn-secondary {
    background: transparent;
    color: #fff;
    border: 2px solid var(--glass-border);
}

.btn-secondary:hover {
    border-color: #fff;
    background: rgba(255,255,255,0.1);
}

.hero-image-wrapper {
    flex: 1;
    display: flex;
    justify-content: center;
    position: relative;
    max-width: 400px;
}

.profile-img {
    width: 100%;
    border-radius: 30%;
    z-index: 2;
    box-shadow: 0 20px 50px rgba(0,0,0,0.5);
    border: 2px solid var(--glass-border);
}

.glow-ring {
    position: absolute;
    width: 110%;
    height: 110%;
    background: radial-gradient(circle, var(--accent-glow) 0%, transparent 70%);
    top: -5%;
    left: -5%;
    z-index: 1;
    border-radius: 50%;
    animation: rotate 15s linear infinite;
}

@keyframes rotate {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

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

.skill-card {
    text-align: center;
}

.skill-icon {
    font-size: 2.5rem;
    color: var(--accent-color);
    margin-bottom: 1rem;
}

.skill-card h3 {
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

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

/* =========================================
   Experience Timeline
   ========================================= */
.timeline {
    position: relative;
    max-width: 1000px;
    margin: 0 auto;
}

.timeline::after {
    content: '';
    position: absolute;
    width: 2px;
    background: var(--glass-border);
    top: 0;
    bottom: 0;
    left: 20px;
    margin-left: -1px;
}

.timeline-item {
    position: relative;
    padding-left: 60px;
    margin-bottom: 3rem;
}

.timeline-dot {
    position: absolute;
    width: 20px;
    height: 20px;
    background: var(--accent-color);
    border: 4px solid var(--bg-color-main);
    border-radius: 50%;
    left: 10px;
    top: 20px;
    z-index: 10;
    box-shadow: 0 0 10px var(--accent-glow);
}

.timeline-content h3 {
    font-size: 1.4rem;
    color: var(--accent-color);
}

.company {
    font-size: 1.1rem;
    margin-bottom: 1rem;
    color: #fff;
    font-weight: 500;
}

.company span {
    font-weight: 300;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.job-summary {
    margin-bottom: 1rem;
    font-style: italic;
    color: #cbd5e1;
}

.timeline-content ul {
    list-style-type: disc;
    padding-left: 1.5rem;
    color: var(--text-secondary);
}

.timeline-content ul li {
    margin-bottom: 0.5rem;
}

/* =========================================
   Education & Publications
   ========================================= */
.edu-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
}

.column-title {
    margin-bottom: 2rem;
    border-left: 4px solid var(--accent-color);
    padding-left: 1rem;
}

.edu-item, .pub-item {
    margin-bottom: 1.5rem;
    position: relative;
}

.edu-item h4, .pub-item h4 {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}

.edu-item p, .pub-item p {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.edu-item .year {
    display: inline-block;
    margin-top: 0.5rem;
    padding: 0.2rem 0.8rem;
    background: rgba(0, 240, 255, 0.1);
    color: var(--accent-color);
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 600;
}

.pub-item {
    display: flex;
    gap: 1.5rem;
    align-items: flex-start;
}

.pub-icon {
    font-size: 2rem;
    color: var(--accent-color);
    margin-top: 5px;
}

/* =========================================
   Contact & Footer
   ========================================= */
.contact-wrapper {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.contact-text {
    font-size: 1.2rem;
    margin-bottom: 2rem;
}

.contact-info {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
    margin-bottom: 2rem;
}

.contact-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 1.5rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    border: 1px solid var(--glass-border);
}

.contact-link:hover {
    background: rgba(0, 240, 255, 0.1);
    border-color: var(--accent-color);
    color: var(--accent-color);
}

.location-text {
    color: var(--text-secondary);
}

.footer {
    text-align: center;
    padding: 2rem 0;
    border-top: 1px solid var(--glass-border);
    margin-top: 4rem;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

/* =========================================
   Animations and Reveal
   ========================================= */
.hidden-element {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity var(--transition-slow), transform var(--transition-slow);
}

.hidden-element.visible {
    opacity: 1;
    transform: translateY(0);
}

.delay-1 { transition-delay: 0.2s; }
.delay-2 { transition-delay: 0.4s; }

/* =========================================
   Media Queries
   ========================================= */
@media (max-width: 992px) {
    .hero-content {
        flex-direction: column-reverse;
        text-align: center;
        margin-top: 2rem;
    }
    
    .btn-group {
        justify-content: center;
    }
    
    .edu-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .name { font-size: 3rem; }
    .title { font-size: 1.5rem; }
    
    .nav-links {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 80px;
        left: 0;
        width: 100%;
        background: rgba(10, 14, 23, 0.95);
        backdrop-filter: blur(10px);
        padding: 2rem;
        text-align: center;
        border-bottom: 1px solid var(--glass-border);
    }
    
    .nav-links.active {
        display: flex;
    }
    
    .hamburger { display: block; }
    
    .contact-info { flex-direction: column; }
}
