/* Variables */
:root {
    --bg-dark: #0a0a0f;
    --bg-light: #151522;
    --accent: #00f0ff;
    --accent-hover: #00c3ff;
    --accent-secondary: #7000ff;
    --text-primary: #ffffff;
    --text-secondary: #a0aab2;
    --glass-bg: rgba(255, 255, 255, 0.02);
    --glass-border: rgba(255, 255, 255, 0.05);
    --glass-highlight: rgba(255, 255, 255, 0.1);
    --font-ui: 'Inter', sans-serif;
    --font-mono: 'Fira Code', monospace;
    --transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

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

img {
    max-width: 100%;
    height: auto;
    display: block;
}

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

/* Dynamic Background Glows */
body::before, body::after {
    content: '';
    position: fixed;
    border-radius: 50%;
    filter: blur(120px);
    z-index: -1;
    opacity: 0.5;
    animation: pulse 15s ease-in-out infinite alternate;
}

body::before {
    top: -10%;
    left: -10%;
    width: 60vw;
    height: 60vw;
    background: radial-gradient(circle, rgba(0, 240, 255, 0.15) 0%, transparent 60%);
}

body::after {
    bottom: -10%;
    right: -10%;
    width: 50vw;
    height: 50vw;
    background: radial-gradient(circle, rgba(112, 0, 255, 0.15) 0%, transparent 60%);
    animation-delay: -5s;
}

@keyframes pulse {
    0% { transform: scale(1) translate(0, 0); }
    50% { transform: scale(1.1) translate(5%, 5%); }
    100% { transform: scale(0.9) translate(-5%, -5%); }
}

/* Glassmorphism Classes */
.glass-panel {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.03) 0%, rgba(255, 255, 255, 0.01) 100%);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-top: 1px solid var(--glass-highlight);
    border-left: 1px solid var(--glass-highlight);
    border-radius: 20px;
    padding: 2rem;
    transition: var(--transition);
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.3);
}

.glass-panel:hover {
    border-color: rgba(0, 240, 255, 0.4);
    transform: translateY(-8px);
    box-shadow: 0 20px 40px -10px rgba(0, 240, 255, 0.15), 0 8px 32px 0 rgba(0, 0, 0, 0.5);
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.05) 0%, rgba(255, 255, 255, 0.02) 100%);
}

/* Typography */
h1, h2, h3, h4 { color: var(--text-primary); font-weight: 600; letter-spacing: -0.02em; }
p { color: var(--text-secondary); margin-bottom: 1rem; font-weight: 300; }
a { color: var(--accent); text-decoration: none; transition: var(--transition); }
a:hover { color: var(--accent-hover); text-shadow: 0 0 8px rgba(0, 240, 255, 0.5); }

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.8rem 1.8rem;
    border-radius: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    font-family: var(--font-ui);
    letter-spacing: 0.02em;
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background: linear-gradient(90deg, var(--accent), var(--accent-hover));
    color: var(--bg-dark);
    border: none;
    box-shadow: 0 4px 15px rgba(0, 240, 255, 0.2);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 240, 255, 0.4);
}

.btn-outline {
    background: transparent;
    color: var(--accent);
    border: 1px solid var(--accent);
}

.btn-outline:hover {
    background: rgba(0, 240, 255, 0.1);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 240, 255, 0.2);
}

/* Navigation */
#navbar {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    transition: var(--transition);
    padding: 1.5rem 0;
}

#navbar.scrolled {
    background: rgba(10, 10, 15, 0.85);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--glass-border);
    padding: 1rem 0;
}

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

.logo {
    font-family: var(--font-mono);
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--text-primary);
    position: relative;
}
.logo::after {
    content: '';
    position: absolute;
    width: 10px;
    height: 10px;
    background: var(--accent);
    border-radius: 50%;
    right: -15px;
    bottom: 5px;
    box-shadow: 0 0 10px var(--accent);
}

.nav-links {
    display: flex;
    gap: 2.5rem;
    list-style: none;
    align-items: center;
}
.nav-links a { color: var(--text-secondary); font-size: 0.95rem; font-weight: 500; }
.nav-links a:hover { color: var(--text-primary); }

.mobile-menu-btn { display: none; font-size: 1.5rem; cursor: pointer; color: var(--text-primary); }

/* Layout Sections */
.section { padding: 8rem 2rem; min-height: 100vh; display: flex; flex-direction: column; justify-content: center; }
.section-container { max-width: 1000px; margin: 0 auto; width: 100%; position: relative;}
.section-title {
    font-size: 3rem;
    margin-bottom: 4rem;
    display: flex;
    align-items: center;
    gap: 1.5rem;
    background: linear-gradient(90deg, var(--text-primary), var(--text-secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}
.section-title::after {
    content: ''; height: 1px; flex: 1; 
    background: linear-gradient(90deg, var(--glass-highlight), transparent);
}

/* Hero Section */
.hero { display: flex; flex-direction: row; align-items: center; max-width: 1200px; margin: 0 auto; min-height: 100vh; padding: 0 2rem; }
.hero-content { flex: 1; z-index: 2; }
.hero-graphic { flex: 1; position: relative; height: 500px; display: flex; justify-content: center; align-items: center; perspective: 1000px;}
.greeting { font-family: var(--font-mono); color: var(--accent); margin-bottom: 0.5rem; font-size: 1.1rem; letter-spacing: 0.05em; }
.name { 
    font-size: 5rem; 
    font-weight: 800; 
    line-height: 1.1; 
    margin-bottom: 1rem; 
    color: #fff;
    background: linear-gradient(to right, #fff, var(--text-secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}
.title { font-size: 2.2rem; color: var(--accent); margin-bottom: 1.5rem; font-weight: 600; text-shadow: 0 0 20px rgba(0, 240, 255, 0.3);}
.summary { font-size: 1.15rem; max-width: 550px; margin-bottom: 2.5rem; line-height: 1.8;}
.hero-actions { display: flex; gap: 1.5rem; align-items: center; }
.social-icon { 
    font-size: 1.5rem; color: var(--text-secondary); 
    background: var(--glass-bg); padding: 0.8rem; border-radius: 50%;
    border: 1px solid var(--glass-border);
    display: flex; align-items: center; justify-content: center;
}
.social-icon:hover { 
    color: var(--accent); 
    border-color: var(--accent);
    transform: scale(1.1) rotate(5deg); 
    box-shadow: 0 0 15px rgba(0, 240, 255, 0.2);
}

/* Hero Graphic Elements - Profile Image */
.profile-container {
    position: relative;
    width: 320px;
    height: 320px;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1;
}

.profile-img {
    width: 280px;
    height: 280px;
    border-radius: 50%;
    object-fit: cover;
    object-position: top;
    border: 3px solid rgba(0, 240, 255, 0.4);
    box-shadow: 0 0 30px rgba(0, 240, 255, 0.2);
    z-index: 2;
    background-color: var(--glass-bg);
}

.profile-glow {
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(0, 240, 255, 0.4) 0%, transparent 70%);
    filter: blur(25px);
    z-index: 0;
    animation: pulseGlow 4s ease-in-out infinite alternate;
}

@keyframes pulseGlow {
    0% { transform: scale(0.9); opacity: 0.6; }
    100% { transform: scale(1.1); opacity: 1; }
}
.decor-card-1, .decor-card-2, .decor-card-3 {
    position: absolute; padding: 1.2rem; font-weight: 600;
    backdrop-filter: blur(20px); border-radius: 16px;
    border: 1px solid rgba(255,255,255,0.1);
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    display: flex; align-items: center; gap: 0.8rem;
    color: var(--text-primary);
}
.decor-card-1 i { color: #42A5F5; font-size: 1.5rem;}
.decor-card-2 i { color: #EF5350; font-size: 1.5rem;}
.decor-card-3 i { color: #AB47BC; font-size: 1.5rem;}

.decor-card-1 { top: 15%; right: 5%; animation: float 6s ease-in-out infinite 1s; }
.decor-card-2 { bottom: 20%; left: 0%; animation: float 7s ease-in-out infinite 0.5s; }
.decor-card-3 { top: 60%; right: -5%; animation: float 5s ease-in-out infinite 2s; }

@keyframes float {
    0% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(2deg); }
    100% { transform: translateY(0px) rotate(0deg); }
}

@keyframes floatOrb {
    0% { transform: scale(1); opacity: 0.6; }
    100% { transform: scale(1.2); opacity: 1; }
}

/* About Grid */
.about-grid { display: grid; grid-template-columns: 3fr 2fr; gap: 3rem; align-items: stretch;}
.about-text p { font-size: 1.15rem; margin-bottom: 1.5rem; line-height: 1.8;}
.about-stats { display: flex; flex-direction: column; gap: 1.5rem; }
.stat-card { 
    display: flex; flex-direction: column; align-items: center; text-align: center; padding: 1.5rem;
    background: linear-gradient(180deg, rgba(255,255,255,0.03) 0%, transparent 100%);
}
.stat-icon { 
    font-size: 2.2rem; color: var(--accent); margin-bottom: 1rem; 
    filter: drop-shadow(0 0 10px rgba(0, 240, 255, 0.4));
}
.stat-card h3 { font-size: 1.2rem; margin-bottom: 0.5rem;}
.stat-card p { font-size: 0.9rem; margin: 0; color: var(--text-secondary);}

/* Timeline */
.timeline { position: relative; padding-left: 3rem; }
.timeline::before { 
    content: ''; position: absolute; left: 0; top: 0; height: 100%; width: 2px; 
    background: linear-gradient(to bottom, var(--accent), var(--accent-secondary), transparent);
    box-shadow: 0 0 10px var(--accent);
}
.timeline-item { position: relative; margin-bottom: 3rem; padding: 2rem; }
.timeline-dot {
    position: absolute; left: -3.0rem; top: 2.5rem; width: 20px; height: 20px; border-radius: 50%;
    background: var(--bg-dark); border: 4px solid var(--accent); transform: translateX(-50%);
    box-shadow: 0 0 15px var(--accent);
    transition: var(--transition);
}
.timeline-item:hover .timeline-dot {
    background: var(--accent);
    box-shadow: 0 0 25px var(--accent);
    transform: translateX(-50%) scale(1.2);
}
.timeline-date { font-family: var(--font-mono); font-size: 0.9rem; color: var(--accent); margin-bottom: 0.5rem; letter-spacing: 0.05em;}
.timeline-item h3 { font-size: 1.6rem; color: #fff; margin-bottom: 0.3rem; }
.timeline-item h4 { font-size: 1.1rem; color: var(--text-secondary); margin-bottom: 1.2rem; font-weight: 500;}

/* Projects */
.projects-grid { display: grid; grid-template-columns: 1fr; gap: 2rem; }
.project-card { padding: 2.5rem; position: relative; overflow: hidden;}
.project-card::before {
    content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 4px;
    background: linear-gradient(90deg, var(--accent), var(--accent-secondary));
}
.project-card h3 { font-size: 1.8rem; margin-bottom: 1rem; color: var(--text-primary); }
.project-tags { display: flex; flex-wrap: wrap; gap: 0.6rem; margin-bottom: 1.5rem; }
.project-tags span { 
    background: rgba(112, 0, 255, 0.1); color: #c49eff; padding: 0.4rem 1rem; 
    border-radius: 20px; font-size: 0.85rem; font-family: var(--font-mono);
    border: 1px solid rgba(112, 0, 255, 0.3);
}

/* Skills */
.skills-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 2rem; }
.skill-category { padding: 2rem; }
.skill-category h3 { 
    font-size: 1.2rem; margin-bottom: 1.5rem; display: flex; align-items: center; gap: 0.8rem; 
    border-bottom: 1px solid var(--glass-highlight); padding-bottom: 1rem;
}
.skill-category h3 i { color: var(--accent); font-size: 1.4rem; }
.skill-tags { display: flex; flex-wrap: wrap; gap: 0.8rem; }
.skill-tags span { 
    background: rgba(0, 240, 255, 0.05); color: var(--text-primary); padding: 0.5rem 1rem; 
    border-radius: 8px; font-size: 0.9rem; border: 1px solid rgba(0, 240, 255, 0.15); 
    transition: var(--transition);
}
.skill-tags span:hover {
    background: rgba(0, 240, 255, 0.15);
    border-color: var(--accent);
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0, 240, 255, 0.1);
}

/* Education */
.edu-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; }
.edu-col { display: flex; flex-direction: column; gap: 2rem; }
.edu-item h3 { font-size: 1.3rem; margin-bottom: 0.4rem; line-height: 1.4;}
.edu-item h4 { font-size: 1rem; font-weight: 400; color: var(--text-secondary); margin-bottom: 0.8rem; }
.edu-date { font-family: var(--font-mono); font-size: 0.85rem; color: var(--accent); display: inline-block; padding: 0.2rem 0.6rem; background: rgba(0, 240, 255, 0.05); border-radius: 4px;}
.highlight-panel ul, ul.highlight-panel { list-style: none; padding-top: 1rem; }
.highlight-panel li, ul.highlight-panel li { margin-bottom: 1rem; position: relative; padding-left: 2rem; font-size: 1rem; color: var(--text-secondary); line-height: 1.6;}
.highlight-panel li::before, ul.highlight-panel li::before { 
    content: '▹'; position: absolute; left: 0; top: 2px; color: var(--accent); font-size: 1.2rem;
}
.highlight-panel strong { color: var(--text-primary); }

/* Contact Section */
.footer-section { padding-bottom: 2rem; min-height: auto;}
.contact-content { text-align: center; padding: 4rem 2rem; }
.contact-content h2 { font-size: 3rem; margin-bottom: 1.5rem; }
.contact-content p { font-size: 1.2rem; margin-bottom: 3rem; max-width: 600px; margin-left: auto; margin-right: auto;}
.contact-links { display: flex; justify-content: center; gap: 1.5rem; flex-wrap: wrap; margin-bottom: 4rem;}
footer { 
    border-top: 1px solid var(--glass-border); padding-top: 2rem; 
    font-size: 0.95rem; color: var(--text-secondary); font-family: var(--font-mono);
    text-align: center;
}

/* Animations */
.fade-in-up { opacity: 0; transform: translateY(40px); animation: fadeInUp 1s cubic-bezier(0.16, 1, 0.3, 1) forwards; }
.delay-1 { animation-delay: 0.3s; }

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

/* Scroll Reveal Classes via JS */
.reveal { opacity: 0; transform: translateY(60px); transition: all 1s cubic-bezier(0.16, 1, 0.3, 1); }
.reveal.active { opacity: 1; transform: translateY(0); }

/* Responsive */
@media (max-width: 900px) {
    .about-grid, .edu-grid { grid-template-columns: 1fr; }
    .hero-graphic { display: none; }
    .name { font-size: 3.5rem; }
    .section-title { font-size: 2.5rem; }
}

@media (max-width: 768px) {
    .nav-links { display: none; }
    .mobile-menu-btn { display: block; }
    .hero { flex-direction: column; text-align: center; justify-content: center; padding-top: 6rem; }
    .title { font-size: 1.8rem; }
    .hero-actions { justify-content: center; flex-wrap: wrap;}
    .section { padding: 5rem 1.5rem; }
    .timeline { padding-left: 2rem; }
    .timeline-dot { left: -2.0rem; }
    .contact-content h2 { font-size: 2rem; }
}
