/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #fff;
    opacity: 0;
    transition: opacity 0.6s ease;
}

body.loaded {
    opacity: 1;
}

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

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    padding: 1rem 0;
    border-bottom: 1px solid #e5e5e5;
}

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

.nav-logo h2 {
    color: #2563eb;
    font-weight: 700;
    font-size: 1.25rem;
    letter-spacing: 0.1em;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 1.2rem;
    flex-wrap: nowrap;
    justify-content: flex-end;
    margin-left: auto;
    font-size: 0.92rem;
    padding: 0;
}

.nav-link {
    text-decoration: none;
    color: #333;
    font-weight: 500;
    transition: color 0.3s ease;
    position: relative;
    white-space: nowrap;
}

.nav-link:hover {
    color: #2563eb;
}

.nav-link:focus {
    outline: none;
}

.nav-link:focus-visible::after,
.nav-link.active::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: -6px;
    height: 2px;
    background: var(--primary, #2563eb);
    border-radius: 999px;
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.bar {
    width: 25px;
    height: 3px;
    background-color: #333;
    margin: 3px 0;
    transition: 0.3s;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    animation: gradientShift 16s ease-in-out infinite alternate;
    color: white;
    text-align: center;
    padding-top: 80px;
}

.hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(280px, 360px);
    gap: 2.5rem;
    align-items: center;
}

.hero-bio {
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
}

.hero-title,
.hero-subtitle,
.hero-description,
.hero-quote {
    opacity: 0;
    transform: translateY(25px);
    animation: slideUp 0.9s ease forwards;
}
.hero-subtitle { animation-delay: 0.1s; }
.hero-description { animation-delay: 0.2s; }
.hero-quote { animation-delay: 0.3s; }

@media (max-width: 900px) {
    .hero-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }
    .hero-bio {
        align-items: center;
    }
}

.hero-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    background: linear-gradient(45deg, #fff, #e0e7ff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 1.5rem;
    font-weight: 400;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.hero-description {
    font-size: 1.1rem;
    margin-bottom: 2rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    opacity: 0.8;
}

.hero-quote {
    font-size: 1.3rem;
    font-style: italic;
    margin-top: 2rem;
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.1);
    border-left: 4px solid #fff;
    border-radius: 8px;
    backdrop-filter: blur(10px);
}

/* Section Styles */
section {
    padding: 5rem 0;
    /* Offset for fixed navbar when using #hash links */
    scroll-margin-top: 90px;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 3rem;
    color: #1f2937;
}

.section-subtitle {
    font-size: 1.8rem;
    font-weight: 600;
    text-align: center;
    margin-bottom: 2rem;
    color: #2563eb;
}

/* About Section */
.about {
    background-color: #f8fafc;
}

.about-text {
    font-size: 1.1rem;
    line-height: 1.8;
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
    color: #4b5563;
}

/* Expertise Section */
.expertise {
    background-color: #fff;
}

.expertise-content h3 {
    font-size: 1.5rem;
    font-weight: 600;
    text-align: center;
    color: #2563eb;
    max-width: 800px;
    margin: 0 auto;
}

/* Testimonials Section */
.testimonials {
    background-color: #f8fafc;
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.testimonial {
    background: white;
    padding: 1.5rem;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    border: 1px solid #e5e7eb;
    border-left: 4px solid var(--primary, #7c3aed);
}

.testimonial-text {
    font-style: italic;
    margin-bottom: 1.5rem;
    color: #4b5563;
    line-height: 1.6;
}

.testimonial-author strong {
    color: #1f2937;
    font-weight: 600;
}

.testimonial-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.testimonial-name {
    color: var(--text);
    text-decoration: none;
    font-weight: 600;
    letter-spacing: 0.02em;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    transition: color 0.2s ease;
}

.testimonial-name:hover {
    color: var(--primary);
}

.testimonial-bubble {
    position: relative;
    background: rgba(255,255,255,0.85);
    border: 1px solid #e5e7eb;
    border-radius: 16px;
    padding: 1.25rem;
    box-shadow: 0 6px 20px rgba(0,0,0,0.12);
}

.testimonial-bubble::after {
    content: '';
    position: absolute;
    top: -10px;
    left: 40px;
    width: 20px;
    height: 20px;
    background: inherit;
    border-left: inherit;
    border-top: inherit;
    transform: rotate(45deg);
    border-radius: 4px 0 0 0;
}

.testimonial-bubble .testimonial-text {
    margin-bottom: 0;
}

.testimonial-profile {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    overflow: hidden;
    border: 2px solid rgba(167,139,250,0.5);
    margin-bottom: 1rem;
    box-shadow: 0 4px 14px rgba(0,0,0,0.2);
}
.testimonial-profile img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.testimonial-author span {
    color: #6b7280;
    font-size: 0.9rem;
}
.testimonials .testimonial:nth-child(1) { animation-delay: 0.05s; }
.testimonials .testimonial:nth-child(2) { animation-delay: 0.15s; }
.testimonials .testimonial:nth-child(3) { animation-delay: 0.25s; }

@media (max-width: 640px) {
    .cert-item {
        flex-direction: column;
        text-align: center;
        align-items: center;
        padding: 1rem;
    }
    .cert-item img {
        margin-bottom: 0.5rem;
    }
    .company-item {
        flex-direction: column;
        text-align: center;
        align-items: center;
        gap: 0.6rem;
    }
    .company-item span {
        text-align: center;
        word-break: break-word;
    }
}

/* Experience Section */
.experience {
    background-color: #fff;
}

.timeline {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 2px;
    background: #2563eb;
    transform: translateX(-50%);
}

.timeline-item {
    display: flex;
    margin-bottom: 3rem;
    position: relative;
}

.timeline-item:nth-child(odd) {
    flex-direction: row;
}

.timeline-item:nth-child(even) {
    flex-direction: row-reverse;
}

.timeline-date {
    flex: 1;
    padding: 1rem;
    text-align: center;
    font-weight: 600;
    color: #2563eb;
    background: white;
    border-radius: 8px;
    margin: 0 1rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.timeline-content {
    flex: 2;
    padding: 1.5rem;
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.timeline-content h3 {
    color: #1f2937;
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
}

.timeline-content h4 {
    color: #2563eb;
    font-size: 1.1rem;
    margin-bottom: 1rem;
}

.timeline-content p {
    color: #4b5563;
    line-height: 1.6;
}

/* Education Section */
.education {
    background-color: #f8fafc;
}

.education-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.education-item {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    text-align: center;
}

.education-item h3 {
    color: #1f2937;
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
}

.education-item h4 {
    color: #2563eb;
    font-size: 1.1rem;
    margin-bottom: 1rem;
}

.university {
    font-weight: 600;
    color: #4b5563;
    margin-bottom: 0.5rem;
}

.specialization {
    color: #6b7280;
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.gpa {
    color: #059669;
    font-weight: 600;
    font-size: 1.1rem;
}

/* Companies Section */
.companies {
    background-color: #fff;
}

.companies-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.company-item {
    background: #ffffff;
    padding: 1.25rem;
    border-radius: 12px;
    border: 1px solid #e5e7eb;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    gap: 1rem;
    font-weight: 600;
    color: #1f2937;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.company-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.15);
}

/* Certifications Section */
.certifications {
    background-color: #f8fafc;
}

.certifications-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.cert-item {
    background: white;
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    text-align: center;
    border: 1px solid #e5e7eb;
}

.cert-item h3 {
    color: #1f2937;
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}

.cert-item p {
    color: #6b7280;
    font-size: 0.9rem;
}

/* Skills Section */
.skills {
    background-color: #fff;
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.5rem;
}

.skill-card {
    background: #f8fafc;
    padding: 1.5rem;
    border-radius: 10px;
    border: 1px solid #e5e7eb;
}

.skill-card h3 {
    color: #1f2937;
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

.skill-card p {
    color: #4b5563;
    font-size: 0.95rem;
}

/* Projects Section */
.projects {
    background-color: #fff;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-top: 1rem;
}

.project-card {
    background: white;
    padding: 1.5rem;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.08);
    border: 1px solid #e5e7eb;
    border-left: 4px solid var(--primary, #7c3aed);
}

.project-card h3 {
    color: #1f2937;
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

.project-card p {
    color: #4b5563;
    font-size: 0.95rem;
}

/* Contact Section */
.contact {
    background-color: #1f2937;
    color: white;
}

.contact .section-title {
    color: white;
}

.contact-content {
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
}

.contact-info h3 {
    font-size: 1.5rem;
    margin-bottom: 2rem;
    color: #e5e7eb;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.contact-item {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    font-size: 1.1rem;
}

.contact-item i {
    color: #2563eb;
    font-size: 1.3rem;
}

.contact-item a {
    color: #e5e7eb;
    text-decoration: none;
}

.contact-item a:hover {
    color: #ffffff;
    text-decoration: underline;
}

/* Footer */
.footer {
    background-color: #111827;
    color: white;
    text-align: center;
    padding: 2rem 0;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }

    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background-color: white;
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: 0 10px 27px rgba(0, 0, 0, 0.05);
        padding: 2rem 0;
    }

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

    .hero-title {
        font-size: 2.5rem;
    }

    .hero-subtitle {
        font-size: 1.2rem;
    }

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

    .timeline::before {
        left: 20px;
    }

    .timeline-item {
        flex-direction: column !important;
        padding-left: 3rem;
    }

    .timeline-date {
        margin: 0 0 1rem 0;
        text-align: left;
    }

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

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

    .companies-grid {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    }

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

    .contact-details {
        align-items: center;
    }

    .contact-item {
        flex-direction: column;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

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

    .container {
        padding: 0 15px;
    }

    .timeline-item {
        padding-left: 2rem;
    }
}

/* Smooth Scrolling */
html {
    scroll-behavior: smooth;
}

/* Loading Animation */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-up {
    animation: fadeInUp 0.6s ease-out;
}

/* Hover Effects */
.timeline-content:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
}

.testimonial:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
}

.education-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
}

.cert-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
}

/* Global Animations */
@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    100% { background-position: 100% 50%; }
}

@keyframes slideUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes riseIn {
    from { opacity: 0; transform: translateY(25px) scale(0.98); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes floatAvatar {
    0% { transform: translateX(0); }
    50% { transform: translateX(14px); }
    100% { transform: translateX(0); }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* === Dark Theme + Pastel Overrides (appended) === */
:root {
    --bg: #0f172a;              /* slate-900 */
    --bg-soft: #111827;         /* gray-900 */
    --card: #0b1220;            /* deep navy */
    --text: #e5e7eb;            /* zinc-200 */
    --muted: #a1a1aa;           /* zinc-400 */
    --primary: #a78bfa;         /* violet-400 (pastel) */
    --secondary: #93c5fd;       /* sky-300 (pastel) */
    --accent: #6ee7b7;          /* emerald-300 */
    --accent-2: #f9a8d4;        /* pink-300 */
    --accent-3: #fde68a;        /* amber-300 */
    --border: rgba(255,255,255,0.08);
    --card-surface: rgba(15,23,42,0.9);
}

body { background-color: var(--bg); color: var(--text); }

.navbar { background: #0b1220; border-bottom: 1px solid var(--border); }
.nav-logo h2 { color: var(--primary); }
/* Comet pastel gradient logo text (override) */
.nav-logo h2 {
    background: linear-gradient(90deg, var(--secondary), var(--accent));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    text-fill-color: transparent;
}
.nav-link { color: var(--text); }
.nav-link:hover { color: var(--primary); }
.bar { background-color: var(--text); }

.hero {
    color: var(--text);
    background:
        radial-gradient(600px 300px at 20% 10%, rgba(167,139,250,0.25), transparent 60%),
        radial-gradient(500px 250px at 80% 0%, rgba(147,197,253,0.22), transparent 60%),
        radial-gradient(400px 200px at 50% 90%, rgba(110,231,183,0.18), transparent 60%),
        linear-gradient(135deg, #0b1220 0%, #0f172a 100%);
}

.section-title { color: var(--text); }
.section-subtitle { color: var(--secondary); }
.about { background: transparent; }
.about-text { color: var(--muted); }
.about-wrap { display: grid; grid-template-columns: 320px 1fr; gap: 2rem; align-items: center; }
.about-avatar { display: flex; justify-content: center; }
@media (max-width: 768px) { .about-wrap { display: grid; grid-template-columns: 320px 1fr; gap: 2rem; align-items: center; padding: 2rem; border-radius: 16px; background: rgba(255,255,255,0.03); border: 1px solid var(--border); box-shadow: 0 10px 30px rgba(0,0,0,0.35); } .about-avatar { order: -1; } }
.stat-card {
    background: linear-gradient(145deg, rgba(15,23,42,0.95), rgba(29,32,63,0.9));
    border: 1px solid rgba(167,139,250,0.35);
    box-shadow: 0 12px 30px rgba(2,6,23,0.55), inset 0 0 30px rgba(79,70,229,0.08);
}
.stat-figure { color: var(--primary); }
.stat-label { color: var(--secondary); }
.about-pill {
    background: rgba(147,197,253,0.12);
    border: 1px solid rgba(147,197,253,0.35);
    color: var(--secondary);
}
.expertise { background: transparent; }
.expertise-content h3 { color: var(--muted); }
.testimonials { background: transparent; }
.testimonial {
    background: var(--card);
    border: 1px solid var(--border);
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
    opacity: 0;
    transform: translateY(20px);
    animation: riseIn 0.9s ease forwards;
}
.testimonial-text { color: var(--muted); }
.testimonial-author strong { color: var(--text); }
.testimonial-author span { color: var(--muted); }

.testimonial-bubble {
    background: rgba(15,23,42,0.85);
    border: 1px solid var(--border);
}
.testimonial-bubble::after {
    background: rgba(15,23,42,0.85);
    border-left: 1px solid var(--border);
    border-top: 1px solid var(--border);
}

.experience { background: transparent; }
.timeline::before { background: var(--primary); }
.timeline-date { background: var(--card); color: var(--primary); box-shadow: 0 2px 8px rgba(0,0,0,0.25); }
.timeline-content { background: var(--card); border: 1px solid var(--border); box-shadow: 0 4px 12px rgba(0,0,0,0.25); }
.timeline-content h3 { color: var(--text); }
.timeline-content h4 { color: var(--secondary); }
.timeline-content p { color: var(--muted); }

.education { background: transparent; }
.education-item { background: var(--card); box-shadow: 0 4px 12px rgba(0,0,0,0.25); }
.education-item h3 { color: var(--text); }
.education-item h4 { color: var(--secondary); }
.university { color: var(--muted); }
.specialization { color: var(--muted); }
.gpa { color: var(--accent); }

.companies { background: transparent; }
.company-item {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.25);
    padding: 1.2rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    opacity: 0;
    transform: translateY(20px);
    animation: riseIn 1s ease forwards;
}
.company-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(0,0,0,0.35);
}
.company-item img {
    width: 64px;
    height: 64px;
    object-fit: contain;
    filter: drop-shadow(0 4px 10px rgba(0,0,0,0.3));
}

.company-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.25rem;
}
.company-item span {
    color: var(--text);
    font-weight: 600;
    font-size: 0.95rem;
}
.companies .company-item:nth-child(odd) { animation-delay: 0.1s; }
.companies .company-item:nth-child(even) { animation-delay: 0.2s; }

.certifications { background: transparent; }
.cert-item {
    background: var(--card);
    border: 1px solid var(--border);
    box-shadow: 0 2px 8px rgba(0,0,0,0.25);
    padding: 1rem;
    border-radius: 12px;
    display: flex;
    align-items: center;
    gap: 1rem;
}
.cert-item img {
    width: 52px;
    height: 52px;
    object-fit: contain;
    filter: drop-shadow(0 4px 10px rgba(0,0,0,0.3));
}
.cert-item h3 { color: var(--text); font-size: 0.95rem; margin: 0; }
.cert-item p { color: var(--muted); font-size: 0.85rem; margin: 0; }
.certifications .cert-item:nth-child(odd) { animation-delay: 0.05s; }
.certifications .cert-item:nth-child(even) { animation-delay: 0.15s; }

.projects { background: transparent; }
.project-card {
    background: var(--card);
    border: 1px solid var(--border);
    border-left: 4px solid var(--primary);
    border-radius: 12px;
    padding: 1.2rem;
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.project-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 14px 28px rgba(0,0,0,0.45);
}
.projects .project-card:nth-child(odd) { animation-delay: 0.05s; }
.projects .project-card:nth-child(even) { animation-delay: 0.15s; }
.project-card h3 { color: var(--text); }
.project-card p { color: var(--muted); }

.skills { background: transparent; }
.skills-intro {
    text-align: center;
    max-width: 860px;
    margin: 0 auto 2rem;
    color: var(--muted);
    font-size: 1.05rem;
}
.skill-card {
    background: var(--card);
    border: 1px solid var(--border);
    border-left: 4px solid var(--accent);
    border-radius: 12px;
    padding: 0.9rem 1rem;
    box-shadow: 0 2px 12px rgba(0,0,0,0.35);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.skill-card h3 { color: var(--text); }
.skill-card p { color: var(--muted); }
.skills .skill-card:nth-child(odd) { animation-delay: 0.05s; }
.skills .skill-card:nth-child(even) { animation-delay: 0.15s; }

.contact { background-color: #0b1220; color: var(--text); }
.contact-info h3 { color: var(--muted); }
.contact-item i { color: var(--primary); }

.footer { background-color: #0b1220; color: var(--text); }

@media (max-width: 768px) {
    .nav-menu { background-color: var(--bg-soft); box-shadow: 0 10px 27px rgba(0, 0, 0, 0.35); }
}

/* Darker hover shadows */
.timeline-content:hover,
.testimonial:hover,
.education-item:hover,
.cert-item:hover,
.project-card:hover,
.skill-card:hover {
    box-shadow: 0 8px 20px rgba(0,0,0,0.35);
}

.skill-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 24px rgba(0,0,0,0.45);
}

/* Social icons row */
.social-icons { display: flex; justify-content: center; align-items: center; gap: 1.2rem; }
.social-link {
    width: 44px; height: 44px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center;
    background: rgba(255,255,255,0.04); border: 1px solid var(--border); color: var(--text);
    transition: transform .2s ease, box-shadow .2s ease, background .2s ease, color .2s ease;
}
.social-link:hover { transform: translateY(-2px) scale(1.05); box-shadow: 0 10px 25px rgba(0,0,0,0.35); background: rgba(167,139,250,0.12); color: var(--primary); }
.email-chip {
    position: relative;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--border);
    background: rgba(255,255,255,0.04);
    color: var(--text);
    box-shadow: 0 8px 24px rgba(0,0,0,0.35);
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}
.email-chip i { font-size: 1rem; color: inherit; }
.email-chip::after {
    content: attr(data-email);
    position: absolute;
    bottom: calc(100% + 8px);
    left: 50%;
    transform: translate(-50%, 10px);
    padding: 0.45rem 0.75rem;
    border-radius: 999px;
    background: rgba(15,23,42,0.95);
    border: 1px solid rgba(147,197,253,0.4);
    color: var(--text);
    font-size: 0.8rem;
    letter-spacing: 0.03em;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease, transform 0.2s ease;
}
.email-chip:hover {
    transform: translateY(-2px);
    box-shadow: 0 16px 32px rgba(0,0,0,0.45);
    border-color: var(--primary);
    background: rgba(167,139,250,0.12);
    color: var(--primary);
}
.email-chip:hover::after {
    opacity: 1;
    transform: translate(-50%, 0);
}

/* Consistent section spacing (slightly reduced) */
section { padding: 3.5rem 0; }
.about { padding-bottom: 3.5rem; }
.skills { padding-top: 3.5rem; }

/* Modern left-rail timeline (scoped) */
.timeline-modern { max-width: 900px; margin: 0 auto; position: relative; padding-left: 28px; }
.timeline-modern::before { content: ''; position: absolute; left: 8px; top: 0; bottom: 0; width: 2px; background: linear-gradient(var(--primary), transparent); opacity: 0.6; }
.timeline-modern .timeline-item { position: relative; margin: 0 0 2rem 0; display: block; }
.timeline-modern .timeline-item::before { content: ''; position: absolute; left: -2px; top: 10px; width: 12px; height: 12px; border-radius: 50%; background: var(--primary); box-shadow: 0 0 0 4px rgba(167,139,250,0.15), 0 0 10px rgba(167,139,250,0.6); }
.timeline-modern .timeline-item { padding-top: 0; }
.timeline-modern .timeline-date { display: inline-block; padding: 0.35rem 0.6rem; margin: 0 0 0.6rem 12px; border-radius: 999px; font-size: 0.85rem; font-weight: 600; color: var(--secondary); background: rgba(147,197,253,0.08); border: 1px solid var(--border); }
.timeline-modern .timeline-content { padding: 1.2rem 1.2rem; background: var(--card); border-radius: 12px; border: 1px solid var(--border); box-shadow: 0 4px 14px rgba(0,0,0,0.28); margin-left: 12px; }

/* Profile section */
.profile { background: transparent; }
.profile-wrap { display: flex; align-items: center; gap: 2rem; flex-wrap: wrap; justify-content: center; }
.avatar-wrap { position: relative; width: 320px; height: 320px; display: flex; align-items: center; justify-content: center; }
.avatar {
    border-radius: 28px;
    border: none;
    box-shadow: 0 16px 48px rgba(0,0,0,0.45);
    background: rgba(0,0,0,0.85);
    display: block;
    animation: floatAvatar 6s ease-in-out infinite;
    overflow: hidden;
}
.avatar-video {
    width: min(280px, 32vw);
    max-width: 100%;
    aspect-ratio: 9 / 16;
    height: auto;
    border-radius: 28px;
    object-fit: cover;
    background: #000;
    display: block;
}
.avatar-fallback { width: 160px; height: 160px; border-radius: 50%; display: none; align-items: center; justify-content: center; font-weight: 700; font-size: 3rem; color: var(--primary); background:
    radial-gradient(60% 60% at 35% 35%, rgba(167,139,250,0.18), transparent 60%),
    radial-gradient(50% 50% at 65% 35%, rgba(147,197,253,0.12), transparent 60%),
    rgba(255,255,255,0.03);
    border: 1px solid var(--border);
}
.upload-wrap { display: none; }

/* Services Section */
.services { background: transparent; }
.services-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1.2rem; }
.service-card {
    background: var(--card);
    border: 1px solid var(--border);
    border-left: 4px solid var(--accent-2);
    border-radius: 12px;
    padding: 1.2rem;
    box-shadow: 0 4px 12px rgba(0,0,0,0.25);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    opacity: 0;
    transform: translateY(20px);
    animation: riseIn 0.8s ease forwards;
}
.service-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 14px 28px rgba(0,0,0,0.45);
}
.service-card h3 { color: var(--text); margin-bottom: 0.4rem; font-size: 1.15rem; }
.service-card p { color: var(--muted); }
.services-grid .service-card:nth-child(odd) { animation-delay: 0.05s; }
.services-grid .service-card:nth-child(even) { animation-delay: 0.15s; }

/* Bullet lists inside timeline */
.bullet-list { margin-top: 0.6rem; color: var(--muted); }
.bullet-list li { margin-left: 1.2rem; margin-bottom: 0.35rem; }

/* Side Work */
.sidework { background: transparent; }
.side-grid {
    display: flex;
    gap: 1.2rem;
    overflow-x: auto;
    padding-bottom: 0.5rem;
    scroll-snap-type: x mandatory;
}
.side-grid::-webkit-scrollbar {
    height: 6px;
}
.side-grid::-webkit-scrollbar-thumb {
    background: rgba(255,255,255,0.15);
    border-radius: 999px;
}
.side-grid::-webkit-scrollbar-track {
    background: rgba(255,255,255,0.05);
}
.side-card {
    background: var(--card);
    border: 1px solid var(--border);
    border-left: 4px solid var(--accent-2);
    border-radius: 12px;
    padding: 1.2rem;
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    min-width: 300px;
    scroll-snap-align: start;
}
.side-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 14px 28px rgba(0,0,0,0.45);
}
.side-grid .side-card:nth-child(odd) { animation-delay: 0.05s; }
.side-grid .side-card:nth-child(even) { animation-delay: 0.15s; }
.side-card h3 { color: var(--text); margin-bottom: 0.4rem; font-size: 1.15rem; }
.side-card p { color: var(--muted); }

/* Highlights list */
.highlights-list { margin-top: 1rem; color: var(--muted); }
.highlights-list li { margin-left: 1.2rem; margin-bottom: 0.35rem; }

.about-stat-grid {
    margin-top: 1.2rem;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 0.85rem;
}

.stat-card {
    background: linear-gradient(140deg, rgba(15,23,42,0.95), rgba(30,41,59,0.9));
    border: 1px solid rgba(99,102,241,0.45);
    border-radius: 16px;
    padding: 1rem;
    text-align: center;
    box-shadow: 0 12px 30px rgba(2,6,23,0.55), inset 0 0 30px rgba(79,70,229,0.08);
}

.stat-figure {
    display: block;
    font-size: 1.55rem;
    font-weight: 700;
    color: #c4b5fd;
    letter-spacing: 0.05em;
}

.stat-label {
    display: block;
    margin-top: 0.35rem;
    font-size: 0.85rem;
    color: #a5b4fc;
}

.about-pill-row {
    margin-top: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.about-pill {
    padding: 0.45rem 0.75rem;
    border-radius: 12px;
    background: rgba(99,102,241,0.15);
    border: 1px solid rgba(129,140,248,0.35);
    font-size: 0.82rem;
    letter-spacing: 0.04em;
    color: #c7d2fe;
}

.merged-capabilities .capabilities-layout {
    display: grid;
    grid-template-columns: minmax(0, 380px) minmax(0, 1fr);
    gap: 2rem;
    align-items: stretch;
}

.capabilities-stack {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    height: 100%;
}

.merged-capabilities .about-panel {
    background: var(--card-surface);
    border: 1px solid var(--border);
    border-radius: 18px;
    padding: 1.5rem;
    box-shadow: 0 15px 35px rgba(0,0,0,0.35);
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    opacity: 0;
    transform: translateY(20px);
    animation: riseIn 0.8s ease forwards;
}

.merged-capabilities .about-panel .about-avatar {
    display: flex;
    justify-content: center;
}

.about-tagline {
    color: var(--muted);
    margin-bottom: 0.75rem;
    font-size: 0.95rem;
}

.services-panel,
.skills-panel {
    background: var(--card-surface);
    border: 1px solid var(--border);
    border-radius: 18px;
    padding: 1.5rem;
    box-shadow: 0 12px 30px rgba(0,0,0,0.35);
    opacity: 0;
    transform: translateY(20px);
    animation: riseIn 0.9s ease forwards;
    display: flex;
    flex-direction: column;
}

.capabilities-stack > * {
    flex: 1;
}

.services-grid,
.skills-grid {
    flex-grow: 1;
    display: grid;
}

.panel-title {
    text-transform: uppercase;
    letter-spacing: 0.2em;
    font-size: 0.85rem;
    color: var(--muted);
    margin-bottom: 1rem;
}

.merged-capabilities .services-grid,
.merged-capabilities .skills-grid {
    margin-top: 1rem;
}

.skills-panel .skills-grid {
    gap: 0.9rem;
    grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
}

.skills-bullets {
    margin-top: 1rem;
    color: var(--muted);
    font-size: 0.95rem;
}
.skills-bullets li {
    margin-left: 1.1rem;
    margin-bottom: 0.35rem;
}

@media (max-width: 1050px) {
    .merged-capabilities .capabilities-layout {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 900px) {
    .services-panel,
    .skills-panel {
        padding: 1.25rem;
    }
    .capabilities-stack {
        gap: 1.25rem;
    }
}

@media (max-width: 768px) {
    .avatar {
        border-radius: 24px;
    }
    .avatar-video {
        width: min(220px, 65vw);
    }
}

.avatar-wrap::before { content: ''; position: absolute; inset: -6px; border-radius: 50%; background: conic-gradient(from 180deg, rgba(167,139,250,0.35), rgba(147,197,253,0.25), rgba(110,231,183,0.25), rgba(167,139,250,0.35)); filter: blur(18px); z-index: -1; }

.company-logo { position: absolute; top: 10px; right: 10px; width: 56px; height: 56px; border-radius: 10px; background: rgba(255,255,255,0.04); border: 1px solid var(--border); display: flex; align-items: center; justify-content: center; overflow: hidden; box-shadow: 0 4px 10px rgba(0,0,0,0.25); }
.company-logo img { width: 100%; height: 100%; object-fit: contain; display: block; }
.company-logo .logo-fallback { display: none; font-weight: 800; font-size: 0.7rem; letter-spacing: 0.5px; color: var(--text); opacity: 0.85; text-align: center; padding: 0 4px; }


@media (max-width: 600px) {
    .avatar-video {
        width: min(200px, 75vw);
    }
}






@media (max-width: 768px) { .avatar-wrap { width: 220px; height: 220px; } }
