/* ===== CSS Variables - Dark Theme ===== */
:root {
    --bg-primary: #0a0a1a;
    --bg-secondary: #0f0f2a;
    --bg-card: rgba(255, 255, 255, 0.03);
    --bg-card-hover: rgba(255, 255, 255, 0.06);
    --color-text: #f0f0f5;
    --color-text-muted: #a0a0b8;
    --color-text-dim: #6a6a80;
    --accent-cyan: #00d4ff;
    --accent-purple: #7c3aed;
    --accent-pink: #f472b6;
    --accent-gradient: linear-gradient(135deg, #00d4ff 0%, #7c3aed 50%, #f472b6 100%);
    --accent-gradient-text: linear-gradient(90deg, #00d4ff, #7c3aed, #f472b6, #00d4ff);
    --glass-border: rgba(255, 255, 255, 0.1);
    --glass-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    --font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-fast: all 0.15s ease;
    --max-width: 1100px;
}

/* ===== Reset & Base ===== */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

body {
    font-family: var(--font-family);
    font-size: 16px;
    line-height: 1.7;
    color: var(--color-text);
    background: var(--bg-primary);
    background-image: 
        radial-gradient(ellipse at 20% 20%, rgba(124, 58, 237, 0.1) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 80%, rgba(0, 212, 255, 0.08) 0%, transparent 50%),
        radial-gradient(ellipse at 50% 50%, rgba(244, 114, 182, 0.05) 0%, transparent 70%);
    background-attachment: fixed;
    min-height: 100vh;
}

a {
    color: var(--accent-cyan);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    color: var(--accent-purple);
}

ul {
    list-style: none;
}

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

/* ===== Animated Background Particles ===== */
.particles {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

.particle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: var(--accent-cyan);
    border-radius: 50%;
    opacity: 0.3;
    animation: float 15s infinite ease-in-out;
}

.particle:nth-child(2) {
    left: 20%;
    animation-delay: -2s;
    background: var(--accent-purple);
}

.particle:nth-child(3) {
    left: 40%;
    animation-delay: -4s;
    background: var(--accent-pink);
}

.particle:nth-child(4) {
    left: 60%;
    animation-delay: -6s;
}

.particle:nth-child(5) {
    left: 80%;
    animation-delay: -8s;
    background: var(--accent-purple);
}

@keyframes float {
    0%, 100% {
        transform: translateY(100vh) scale(0);
        opacity: 0;
    }
    10% {
        opacity: 0.3;
    }
    90% {
        opacity: 0.3;
    }
    100% {
        transform: translateY(-100vh) scale(1);
        opacity: 0;
    }
}

/* ===== Container ===== */
.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 24px;
    position: relative;
    z-index: 1;
}

/* ===== Navigation ===== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(10, 10, 26, 0.8);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--glass-border);
    z-index: 1000;
    transition: var(--transition);
}

.nav-container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 70px;
}

.nav-logo {
    font-size: 1.5rem;
    font-weight: 700;
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -0.5px;
}

.nav-menu {
    display: flex;
    gap: 32px;
}

.nav-link {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--color-text-muted);
    position: relative;
    padding: 8px 0;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent-gradient);
    transition: var(--transition);
}

.nav-link:hover {
    color: var(--color-text);
}

.nav-link:hover::after {
    width: 100%;
}

.nav-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
}

.hamburger {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--color-text);
    position: relative;
    transition: var(--transition);
}

.hamburger::before,
.hamburger::after {
    content: '';
    position: absolute;
    width: 24px;
    height: 2px;
    background: var(--color-text);
    transition: var(--transition);
}

.hamburger::before {
    top: -7px;
}

.hamburger::after {
    top: 7px;
}

/* ===== Hero Section ===== */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 120px 24px 80px;
    position: relative;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 30% 40%, rgba(124, 58, 237, 0.15) 0%, transparent 50%),
                radial-gradient(circle at 70% 60%, rgba(0, 212, 255, 0.1) 0%, transparent 50%);
    pointer-events: none;
}

.hero-content {
    text-align: center;
    max-width: 800px;
    position: relative;
    z-index: 1;
}

.hero-title {
    font-size: clamp(2.8rem, 8vw, 5rem);
    font-weight: 800;
    margin-bottom: 16px;
    letter-spacing: -2px;
    background: var(--accent-gradient-text);
    background-size: 300% 100%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: gradient-shift 8s ease infinite, fadeInUp 0.8s ease forwards;
    opacity: 0;
    transform: translateY(30px);
}

@keyframes gradient-shift {
    0%, 100% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
}

.hero-subtitle {
    font-size: 1.3rem;
    color: var(--accent-cyan);
    font-weight: 600;
    margin-bottom: 12px;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.6s ease 0.2s forwards;
}

.hero-tagline {
    font-size: 1.1rem;
    color: var(--color-text-muted);
    margin-bottom: 40px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.6s ease 0.3s forwards;
}

.hero-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 16px;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.6s ease 0.4s forwards;
}

.hero-link {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 28px;
    background: var(--bg-card);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    color: var(--color-text);
    font-size: 0.95rem;
    font-weight: 500;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    transition: var(--transition);
}

.hero-link:hover {
    background: var(--bg-card-hover);
    border-color: var(--accent-cyan);
    transform: translateY(-3px);
    box-shadow: 0 10px 40px rgba(0, 212, 255, 0.2);
    color: var(--accent-cyan);
}

.hero-link svg {
    flex-shrink: 0;
}

/* ===== Section Styles ===== */
.section {
    padding: 100px 0;
    position: relative;
}

.section-title {
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--color-text);
    margin-bottom: 48px;
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 60px;
    height: 4px;
    background: var(--accent-gradient);
    border-radius: 2px;
}

/* ===== About Section ===== */
.about-content {
    max-width: 800px;
}

.about-content p {
    margin-bottom: 20px;
    color: var(--color-text-muted);
    font-size: 1.1rem;
    line-height: 1.8;
}

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

.about-content strong {
    color: var(--color-text);
    font-weight: 600;
}

/* ===== Experience Timeline ===== */
.timeline {
    position: relative;
    padding-left: 40px;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(180deg, var(--accent-cyan), var(--accent-purple), var(--accent-pink));
    border-radius: 2px;
}

.timeline-item {
    position: relative;
    padding-bottom: 48px;
}

.timeline-item:last-child {
    padding-bottom: 0;
}

.timeline-marker {
    position: absolute;
    left: -46px;
    top: 4px;
    width: 14px;
    height: 14px;
    background: var(--bg-primary);
    border: 3px solid var(--accent-cyan);
    border-radius: 50%;
    box-shadow: 0 0 20px rgba(0, 212, 255, 0.4);
    transition: var(--transition);
}

.timeline-item:hover .timeline-marker {
    background: var(--accent-cyan);
    box-shadow: 0 0 30px rgba(0, 212, 255, 0.6);
}

.timeline-content {
    background: var(--bg-card);
    padding: 28px;
    border-radius: 16px;
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    transition: var(--transition);
}

.timeline-content:hover {
    background: var(--bg-card-hover);
    border-color: rgba(0, 212, 255, 0.3);
    transform: translateX(8px);
    box-shadow: var(--glass-shadow);
}

.timeline-header {
    margin-bottom: 16px;
}

.timeline-header h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--color-text);
    margin-bottom: 6px;
}

.timeline-company {
    display: block;
    font-size: 1rem;
    color: var(--accent-cyan);
    font-weight: 500;
}

.timeline-location,
.timeline-date {
    display: inline-block;
    font-size: 0.85rem;
    color: var(--color-text-dim);
}

.timeline-location::after {
    content: '•';
    margin: 0 8px;
    color: var(--color-text-dim);
}

.timeline-details {
    padding-left: 20px;
}

.timeline-details li {
    position: relative;
    margin-bottom: 10px;
    color: var(--color-text-muted);
    font-size: 0.95rem;
    line-height: 1.6;
}

.timeline-details li::before {
    content: '';
    position: absolute;
    left: -16px;
    top: 10px;
    width: 5px;
    height: 5px;
    background: var(--accent-purple);
    border-radius: 50%;
}

.timeline-details li:last-child {
    margin-bottom: 0;
}

/* ===== Projects Section ===== */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
    gap: 24px;
}

.project-card {
    background: var(--bg-card);
    padding: 32px;
    border-radius: 20px;
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.project-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--accent-gradient);
    opacity: 0;
    transition: var(--transition);
}

.project-card:hover {
    background: var(--bg-card-hover);
    border-color: rgba(124, 58, 237, 0.3);
    transform: translateY(-5px);
    box-shadow: 0 20px 50px rgba(124, 58, 237, 0.15);
}

.project-card:hover::before {
    opacity: 1;
}

.project-header {
    margin-bottom: 16px;
}

.project-header h3 {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--color-text);
    margin-bottom: 6px;
}

.project-role {
    display: inline-block;
    font-size: 0.85rem;
    color: var(--accent-purple);
    font-weight: 600;
    background: rgba(124, 58, 237, 0.15);
    padding: 4px 12px;
    border-radius: 20px;
}

.project-description {
    color: var(--color-text-muted);
    font-size: 0.95rem;
    line-height: 1.7;
    margin-bottom: 16px;
}

.project-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.project-stat {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.85rem;
    color: var(--color-text-dim);
}

.project-stat svg {
    color: var(--accent-cyan);
    width: 16px;
    height: 16px;
}

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

.skill-category {
    background: var(--bg-card);
    padding: 32px;
    border-radius: 16px;
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    transition: var(--transition);
}

.skill-category:hover {
    background: var(--bg-card-hover);
    border-color: rgba(244, 114, 182, 0.3);
}

.skill-category h3 {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--color-text);
    margin-bottom: 20px;
}

.skill-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.skill-tag {
    display: inline-block;
    padding: 8px 16px;
    background: rgba(0, 212, 255, 0.1);
    color: var(--accent-cyan);
    font-size: 0.85rem;
    font-weight: 500;
    border-radius: 8px;
    border: 1px solid rgba(0, 212, 255, 0.2);
    transition: var(--transition);
    cursor: default;
}

.skill-tag:hover {
    background: rgba(0, 212, 255, 0.2);
    border-color: var(--accent-cyan);
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(0, 212, 255, 0.2);
}

/* ===== Leadership Section ===== */
.leadership-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
    gap: 24px;
}

.leadership-card {
    background: var(--bg-card);
    padding: 32px;
    border-radius: 16px;
    border: 1px solid var(--glass-border);
    border-left: 4px solid var(--accent-purple);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    transition: var(--transition);
}

.leadership-card:hover {
    background: var(--bg-card-hover);
    transform: translateY(-4px);
    box-shadow: var(--glass-shadow);
}

.leadership-header {
    margin-bottom: 16px;
}

.leadership-header h3 {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--color-text);
    margin-bottom: 6px;
}

.leadership-role {
    display: block;
    font-size: 0.95rem;
    color: var(--accent-purple);
    font-weight: 500;
    margin-bottom: 4px;
}

.leadership-date {
    font-size: 0.85rem;
    color: var(--color-text-dim);
}

.leadership-details {
    padding-left: 20px;
}

.leadership-details li {
    position: relative;
    margin-bottom: 10px;
    color: var(--color-text-muted);
    font-size: 0.95rem;
    line-height: 1.6;
}

.leadership-details li::before {
    content: '';
    position: absolute;
    left: -16px;
    top: 10px;
    width: 5px;
    height: 5px;
    background: var(--accent-purple);
    border-radius: 50%;
}

/* ===== Awards Section ===== */
.awards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
}

.award-card {
    background: var(--bg-card);
    padding: 28px;
    border-radius: 16px;
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    transition: var(--transition);
    display: flex;
    align-items: flex-start;
    gap: 16px;
}

.award-card:hover {
    background: var(--bg-card-hover);
    border-color: rgba(244, 114, 182, 0.3);
    transform: translateY(-3px);
}

.award-icon {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, var(--accent-pink) 0%, var(--accent-purple) 100%);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.award-icon svg {
    width: 24px;
    height: 24px;
    color: white;
}

.award-content h3 {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--color-text);
    margin-bottom: 6px;
}

.award-content p {
    font-size: 0.9rem;
    color: var(--color-text-muted);
    line-height: 1.6;
}

/* ===== Contact Section ===== */
.contact {
    text-align: center;
}

.contact .section-title::after {
    left: 50%;
    transform: translateX(-50%);
}

.contact-text {
    font-size: 1.15rem;
    color: var(--color-text-muted);
    max-width: 550px;
    margin: 0 auto 40px;
    line-height: 1.7;
}

.contact-links {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.contact-btn {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 16px 32px;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 600;
    transition: var(--transition);
    text-decoration: none;
}

.contact-btn.primary {
    background: var(--accent-gradient);
    color: white;
    border: none;
}

.contact-btn.primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(124, 58, 237, 0.4);
    color: white;
}

.contact-btn.secondary {
    background: var(--bg-card);
    color: var(--color-text);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.contact-btn.secondary:hover {
    background: var(--bg-card-hover);
    border-color: var(--accent-cyan);
    transform: translateY(-3px);
    color: var(--accent-cyan);
}

/* ===== Footer ===== */
.footer {
    padding: 32px 0;
    text-align: center;
    border-top: 1px solid var(--glass-border);
}

.footer p {
    font-size: 0.9rem;
    color: var(--color-text-dim);
}

/* ===== Animations ===== */
@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

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

/* Staggered animation delays */
.fade-in:nth-child(1) { transition-delay: 0s; }
.fade-in:nth-child(2) { transition-delay: 0.1s; }
.fade-in:nth-child(3) { transition-delay: 0.2s; }
.fade-in:nth-child(4) { transition-delay: 0.3s; }
.fade-in:nth-child(5) { transition-delay: 0.4s; }
.fade-in:nth-child(6) { transition-delay: 0.5s; }

/* ===== Mobile Navigation ===== */
@media (max-width: 768px) {
    .nav-toggle {
        display: block;
        z-index: 1001;
    }

    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 280px;
        height: 100vh;
        background: rgba(15, 15, 42, 0.98);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 28px;
        transition: var(--transition);
        border-left: 1px solid var(--glass-border);
    }

    .nav-menu.active {
        right: 0;
    }

    .nav-link {
        font-size: 1.2rem;
    }

    .nav-toggle.active .hamburger {
        background: transparent;
    }

    .nav-toggle.active .hamburger::before {
        top: 0;
        transform: rotate(45deg);
    }

    .nav-toggle.active .hamburger::after {
        top: 0;
        transform: rotate(-45deg);
    }

    .hero {
        padding: 100px 24px 60px;
    }

    .hero-title {
        font-size: 2.5rem;
        letter-spacing: -1px;
    }

    .hero-links {
        flex-direction: column;
        align-items: center;
    }

    .hero-link {
        width: 100%;
        max-width: 300px;
        justify-content: center;
    }

    .section {
        padding: 70px 0;
    }

    .section-title {
        font-size: 1.8rem;
    }

    .timeline {
        padding-left: 28px;
    }

    .timeline-marker {
        left: -34px;
        width: 12px;
        height: 12px;
    }

    .timeline-content {
        padding: 24px;
    }

    .projects-grid,
    .skills-grid,
    .leadership-grid,
    .awards-grid {
        grid-template-columns: 1fr;
    }

    .contact-links {
        flex-direction: column;
        align-items: center;
    }

    .contact-btn {
        width: 100%;
        max-width: 300px;
        justify-content: center;
    }
}

/* ===== Tablet Adjustments ===== */
@media (max-width: 1024px) and (min-width: 769px) {
    .nav-menu {
        gap: 24px;
    }

    .timeline-content {
        padding: 24px;
    }

    .projects-grid {
        grid-template-columns: 1fr;
    }
}

/* ===== Print Styles ===== */
@media print {
    .navbar,
    .nav-toggle,
    .particles {
        display: none;
    }

    body {
        background: white;
        color: black;
    }

    .hero {
        min-height: auto;
        padding: 40px 0;
    }

    .section {
        padding: 40px 0;
    }
}
