/* ===============
   CSS Variables
   =============== */
:root {
    /* Colors */
    --bg-light: #000000;
    /* Dark black background */
    --bg-card: rgba(255, 255, 255, 0.05);
    /* Faint white card background */
    --bg-card-hover: rgba(255, 255, 255, 0.08);
    --text-primary: #ffffff;
    /* White text */
    --text-secondary: #a1a1aa;
    /* Light gray for secondary text */
    --accent: #0ea5e9;
    /* Sky Blue */
    --accent-hover: #38bdf8;
    /* Lighter Sky Blue */
    --accent-glow: rgba(14, 165, 233, 0.2);
    --neon-blue: #0ea5e9;
    /* Sky Blue */

    /* Typography */
    --font-body: 'Inter', sans-serif;
    --font-heading: 'Outfit', sans-serif;

    /* Spacing & Layout */
    --container-max: 1200px;
    --section-pad: 100px 0;

    /* Effects */
    --glass-border: 1px solid rgba(255, 255, 255, 0.1);
    --glass-shadow: 0 16px 40px 0 rgba(0, 0, 0, 0.08);
    --transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

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

html {
    scroll-behavior: smooth;
}

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

#app-frame {
    background-color: transparent;
    min-height: calc(100vh - 2vw);
    overflow: hidden;
    position: relative;
}

.page-border-light {
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 20px;
    box-shadow: 0 0 40px rgba(0, 0, 0, 0.2);
}

@keyframes moveBackground {
    0% {
        background-position: 0% 0%;
    }

    100% {
        background-position: 100% 100%;
    }
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.2;
}

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

ul {
    list-style: none;
}

.container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 24px;
}

.highlight {
    color: var(--accent);
    background: linear-gradient(90deg, var(--accent), var(--neon-blue), var(--accent));
    background-size: 200% auto;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: shineText 4s linear infinite;
}

@keyframes shineText {
    to {
        background-position: 200% center;
    }
}

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

.mt-3 {
    margin-top: 1rem;
}

.mt-4 {
    margin-top: 1.5rem;
}

.mt-5 {
    margin-top: 3rem;
}

/* ===============
   Buttons
   =============== */
.btn-primary,
.btn-primary-sm {
    display: inline-block;
    background: var(--accent);
    color: #fff;
    padding: 14px 28px;
    border-radius: 8px;
    font-weight: 600;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 15px var(--accent-glow);
    border: 1px solid transparent;
}

.btn-primary:hover,
.btn-primary-sm:hover {
    background: var(--accent-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(108, 92, 231, 0.6);
}

.btn-primary-sm {
    padding: 10px 20px;
    font-size: 0.9rem;
}

.btn-secondary {
    display: inline-block;
    background: transparent;
    color: var(--text-primary);
    padding: 14px 28px;
    border-radius: 8px;
    font-weight: 600;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.4);
}

/* ===============
   Navigation
   =============== */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(10, 10, 15, 0.8);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    border-bottom: var(--glass-border);
    transition: var(--transition);
}

.navbar.scrolled {
    padding: 10px 0;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
}

.nav-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
}

.logo {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    font-weight: 800;
    letter-spacing: -0.5px;
}

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

.nav-links {
    display: flex;
    align-items: center;
    gap: 32px;
}

.nav-links a {
    font-weight: 500;
    font-size: 0.95rem;
    color: var(--text-secondary);
}

.nav-links a:hover {
    color: var(--text-primary);
}

.nav-links .btn-primary-sm {
    color: #fff;
}

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

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.hero-content-stacked {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 40px;
}

.hero-content-stacked .hero-text {
    max-width: 800px;
    margin: 0 auto;
}

.hero-content-stacked .hero-stats-grid {
    justify-content: center;
}

.hero-content-stacked .social-links-hero {
    justify-content: center;
}

.hero-graphics-stacked {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
}

.skills-boxes-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    margin-top: 40px;
    width: 100%;
}

.floating-box-static {
    display: flex;
    align-items: center;
    gap: 12px;
    background: rgba(10, 10, 15, 0.7);
    backdrop-filter: blur(6px);
    border: 1px solid rgba(135, 206, 235, 0.2);
    padding: 12px 20px;
    border-radius: 12px;
    z-index: 10;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    text-align: left;
}

.availability-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px;
    background: rgba(0, 255, 136, 0.1);
    border: 1px solid rgba(0, 255, 136, 0.3);
    border-radius: 20px;
    font-size: 0.85rem;
    color: #00ff88;
    font-weight: 600;
}

.pulse-dot {
    width: 8px;
    height: 8px;
    background-color: #00ff88;
    border-radius: 50%;
    box-shadow: 0 0 0 0 rgba(0, 255, 136, 0.7);
    animation: pulse-green 2s infinite;
}

@keyframes pulse-green {
    0% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(0, 255, 136, 0.7);
    }

    70% {
        transform: scale(1);
        box-shadow: 0 0 0 6px rgba(0, 255, 136, 0);
    }

    100% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(0, 255, 136, 0);
    }
}

.gradient-text-premium {
    background: linear-gradient(135deg, var(--accent) 0%, #1e90ff 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    font-size: 4.5rem;
    margin-bottom: 10px;
    font-weight: 800;
}

@keyframes float-glow {
    0% {
        transform: translateY(0px);
        filter: drop-shadow(0 0 10px rgba(255, 255, 255, 0.4));
    }

    50% {
        transform: translateY(-10px);
        filter: drop-shadow(0 0 25px rgba(255, 255, 255, 0.8)) drop-shadow(0 0 10px rgba(255, 255, 255, 0.6));
    }

    100% {
        transform: translateY(0px);
        filter: drop-shadow(0 0 10px rgba(255, 255, 255, 0.4));
    }
}

.hero-title-animated {
    animation: float-glow 3s ease-in-out infinite;
    display: inline-block;
    /* Required for transform */
    background: none;
    -webkit-text-fill-color: #ffffff;
    color: #ffffff;
}

.badge {
    display: inline-block;
    padding: 6px 14px;
    background: rgba(108, 92, 231, 0.1);
    border: 1px solid rgba(108, 92, 231, 0.3);
    border-radius: 20px;
    font-size: 0.85rem;
    color: var(--accent);
    font-weight: 600;
    margin-bottom: 24px;
}

.hero-text h1 {
    font-size: 4.5rem;
    margin-bottom: 10px;
}

.hero-text h2 {
    font-size: 2.5rem;
    color: var(--text-secondary);
    margin-bottom: 24px;
}

.hero-text p {
    font-size: 1.1rem;
    color: var(--text-secondary);
    max-width: 500px;
    margin-bottom: 16px;
}

.hero-bio {
    font-size: 1.05rem !important;
    line-height: 1.6;
}

.hero-stats-grid {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 24px;
}

.hero-stat-box {
    display: flex;
    align-items: center;
    gap: 16px;
    background: rgba(255, 255, 255, 0.03);
    padding: 12px 16px;
    border-radius: 12px;
    border: var(--glass-border);
    transition: var(--transition);
}

.hero-stat-box:hover {
    background: rgba(255, 255, 255, 0.08);
    transform: translateX(5px);
}

.hero-stat-box i {
    font-size: 1.5rem;
}

.stat-info {
    display: flex;
    flex-direction: column;
}

.stat-title {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--text-primary);
}

.stat-desc {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

/* Floating Design Boxes for Hero Graphics */
.floating-box {
    position: absolute;
    display: flex;
    align-items: center;
    gap: 12px;
    background: rgba(10, 10, 15, 0.7);
    backdrop-filter: blur(6px);
    border: 1px solid rgba(135, 206, 235, 0.2);
    padding: 12px 20px;
    border-radius: 12px;
    z-index: 10;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    animation: float 6s ease-in-out infinite;
}

.box-1 {
    top: 35%;
    left: -20%;
    animation-delay: 0s;
    z-index: 20;
}

.box-2 {
    bottom: 15%;
    right: -15%;
    animation-delay: 2s;
    z-index: 20;
}

.box-3 {
    top: 50%;
    left: 50%;
    margin-top: -30px;
    margin-left: -110px;
    animation-delay: 4s;
    z-index: 20;
}

.box-text {
    display: flex;
    flex-direction: column;
}

.box-title {
    font-size: 0.75rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.box-value {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--text-primary);
}

.hero-cta {
    display: flex;
    gap: 16px;
}

.social-links-hero {
    display: flex;
    gap: 20px;
}

.social-links-hero a {
    font-size: 1.5rem;
    color: var(--text-secondary);
}

.social-links-hero a:hover {
    color: var(--accent);
    transform: translateY(-3px);
}

.tech-stack-hero {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 24px;
}

.tech-tag {
    font-size: 0.8rem;
    font-weight: 600;
    padding: 6px 14px;
    background: rgba(135, 206, 235, 0.1);
    border: 1px solid rgba(135, 206, 235, 0.2);
    border-radius: 20px;
    color: var(--neon-blue);
    letter-spacing: 0.5px;
    transition: var(--transition);
}

.tech-tag:hover {
    background: rgba(135, 206, 235, 0.2);
    transform: translateY(-2px);
}

/* Graphics/Code Card */
.hero-graphics {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.glow-orb {
    position: absolute;
    width: 300px;
    height: 300px;
    background: var(--accent);
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.2;
    z-index: -1;
    animation: pulse 4s ease-in-out infinite alternate;
}

@keyframes pulse {
    0% {
        transform: scale(0.8);
        opacity: 0.2;
    }

    100% {
        transform: scale(1.1);
        opacity: 0.4;
    }
}

.profile-image-container {
    position: relative;
    width: 380px;
    height: 480px;
    border-radius: 24px;
    border: var(--glass-border);
    padding: 10px;
    background: var(--bg-card);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    box-shadow: var(--glass-shadow);
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    z-index: 2;
}

.profile-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 16px;
    z-index: 3;
}

.profile-glow {
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: conic-gradient(transparent, var(--accent), transparent 30%);
    animation: rotate 6s linear infinite;
    z-index: 1;
}

@keyframes rotate {
    100% {
        transform: rotate(1turn);
    }
}

.floating {
    animation: floating 6s ease-in-out infinite;
}

@keyframes floating {
    0% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-15px);
    }

    100% {
        transform: translateY(0px);
    }
}

.floating-left {
    animation: floating-left 7s ease-in-out infinite;
}

@keyframes floating-left {
    0% {
        transform: translateY(0px) rotate(-6deg);
    }

    50% {
        transform: translateY(-10px) rotate(-4deg);
    }

    100% {
        transform: translateY(0px) rotate(-6deg);
    }
}

.floating-right {
    animation: floating-right 8s ease-in-out infinite;
}

@keyframes floating-right {
    0% {
        transform: translateY(0px) rotate(6deg);
    }

    50% {
        transform: translateY(-10px) rotate(4deg);
    }

    100% {
        transform: translateY(0px) rotate(6deg);
    }
}

/* ===============
   Section Globals
   =============== */
section {
    padding: var(--section-pad);
}

.section-title {
    text-align: center;
    margin-bottom: 64px;
}

.section-title h2 {
    font-size: 3rem;
    margin-bottom: 12px;
}

.section-title p {
    color: var(--text-secondary);
    font-size: 1.1rem;
}

/* ===============
   About Section
   =============== */
.skills-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.skill-card {
    background: var(--bg-card);
    border: var(--glass-border);
    border-radius: 16px;
    padding: 40px 30px;
    transition: var(--transition);
}

.skill-card:hover {
    transform: translateY(-10px);
    background: var(--bg-card-hover);
    border-color: rgba(108, 92, 231, 0.3);
}

.skill-icon {
    width: 60px;
    height: 60px;
    background: rgba(108, 92, 231, 0.1);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    color: var(--accent);
    margin-bottom: 24px;
}

.skill-card h3 {
    font-size: 1.4rem;
    margin-bottom: 16px;
}

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

.education-banner {
    display: flex;
    align-items: center;
    gap: 24px;
    background: linear-gradient(90deg, rgba(108, 92, 231, 0.1), transparent);
    border-left: 4px solid var(--accent);
    padding: 24px 32px;
    border-radius: 0 12px 12px 0;
}

.education-banner i {
    font-size: 2.5rem;
    color: var(--accent);
}

.education-banner h4 {
    font-size: 1.2rem;
    margin-bottom: 4px;
}

.education-banner p {
    color: var(--text-secondary);
}

/* ===============
   Projects Section
   =============== */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
}

.project-card {
    background: var(--bg-card);
    border: var(--glass-border);
    border-radius: 20px;
    overflow: hidden;
    transition: var(--transition);
}

.project-card:hover {
    transform: translateY(-10px);
    border-color: rgba(255, 255, 255, 0.1);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

.project-image {
    height: 220px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.project-placeholder-icon {
    font-size: 4rem;
    color: rgba(0, 0, 0, 0.2);
    transition: var(--transition);
}

.project-card:hover .project-placeholder-icon {
    transform: scale(1.1);
    color: rgba(0, 0, 0, 0.4);
}

.project-content {
    padding: 30px;
}

.tags {
    display: flex;
    gap: 10px;
    margin-bottom: 16px;
}

.tag {
    font-size: 0.75rem;
    font-weight: 600;
    padding: 4px 10px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 4px;
    color: var(--neon-blue);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.project-content h3 {
    font-size: 1.8rem;
    margin-bottom: 8px;
}

.subtitle {
    color: var(--text-secondary);
    font-weight: 500;
    margin-bottom: 16px;
}

.project-content p:not(.subtitle) {
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin-bottom: 24px;
    line-height: 1.5;
}

.project-link {
    color: var(--accent);
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.project-link i {
    transition: var(--transition);
}

.project-link:hover {
    color: #fff;
}

.project-link:hover i {
    transform: translateX(5px);
}

/* ===============
   Goals Section
   =============== */
.goals-container {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 60px;
    align-items: center;
    background: var(--bg-card);
    border: var(--glass-border);
    border-radius: 24px;
    padding: 60px;
}

.goals-text h2 {
    font-size: 2.5rem;
    margin-bottom: 16px;
}

.lead-text {
    font-size: 1.2rem;
    color: var(--text-primary);
    margin-bottom: 40px;
    font-weight: 300;
}

.roadmap-list {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.roadmap-list li {
    display: flex;
    gap: 20px;
    align-items: flex-start;
}

.roadmap-list i {
    font-size: 1.5rem;
    background: rgba(108, 92, 231, 0.1);
    padding: 12px;
    border-radius: 10px;
}

.roadmap-list strong {
    display: block;
    font-size: 1.1rem;
    margin-bottom: 4px;
}

.roadmap-list span {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.target-card {
    background: linear-gradient(135deg, var(--accent), var(--neon-blue));
    padding: 40px;
    border-radius: 20px;
    text-align: center;
    color: #fff;
    box-shadow: 0 20px 40px rgba(108, 92, 231, 0.3);
}

.target-card i {
    font-size: 3rem;
    margin-bottom: 20px;
}

.target-card h3 {
    font-size: 2rem;
    margin-bottom: 12px;
}

/* ===============
   Footer
   =============== */
.footer {
    background: rgba(10, 10, 15, 0.9);
    border-top: var(--glass-border);
    padding: 80px 0 30px;
}

.footer-widget-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-bottom: 60px;
}

.footer-widget {
    background: rgba(255, 255, 255, 0.02);
    border: var(--glass-border);
    border-radius: 16px;
    padding: 30px;
    transition: var(--transition);
}

.footer-widget:hover {
    background: rgba(255, 255, 255, 0.05);
    transform: translateY(-5px);
    border-color: rgba(135, 206, 235, 0.3);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.highlight-widget {
    background: rgba(135, 206, 235, 0.05);
    border: 1px solid rgba(135, 206, 235, 0.2);
}

.highlight-widget:hover {
    border-color: rgba(135, 206, 235, 0.6);
    box-shadow: 0 10px 30px rgba(135, 206, 235, 0.2);
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 8px;
    color: var(--text-primary);
    transition: var(--transition);
}

.footer-btn:hover {
    background: rgba(135, 206, 235, 0.1);
    color: var(--accent);
    transform: translateX(5px);
}

.footer-bottom {
    text-align: center;
    color: var(--text-secondary);
    font-size: 0.9rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: 30px;
}

/* ===============
   Animations
   =============== */
.fade-up {
    opacity: 0;
    filter: blur(8px);
    transform: translateY(40px);
    transition: opacity 1s cubic-bezier(0.16, 1, 0.3, 1),
        transform 1s cubic-bezier(0.16, 1, 0.3, 1),
        filter 1s cubic-bezier(0.16, 1, 0.3, 1);
}

.fade-up.visible {
    opacity: 1;
    filter: blur(0);
    transform: translateY(0);
}

.fade-left {
    opacity: 0;
    filter: blur(8px);
    transform: translateX(40px);
    transition: opacity 1s cubic-bezier(0.16, 1, 0.3, 1),
        transform 1s cubic-bezier(0.16, 1, 0.3, 1),
        filter 1s cubic-bezier(0.16, 1, 0.3, 1);
}

.fade-left.visible {
    opacity: 1;
    filter: blur(0);
    transform: translateX(0);
}

/* ===============
   Responsive
   =============== */
@media (max-width: 992px) {
    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 40px;
    }

    .hero-text h1 {
        font-size: 3.5rem;
    }

    .hero-text p {
        margin: 0 auto 32px;
    }

    .hero-cta {
        justify-content: center;
    }

    .social-links-hero {
        justify-content: center;
    }

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

    .goals-container {
        grid-template-columns: 1fr;
        padding: 40px 30px;
    }

    .footer-content {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
    }

    /* Could add a hamburger menu here */

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

    .hero-text h1 {
        font-size: 2.8rem;
    }

    .hero-text h2 {
        font-size: 1.8rem;
    }

    .section-title h2 {
        font-size: 2.5rem;
    }

    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

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

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

    .timeline-item {
        width: 100%;
        padding-left: 70px;
        padding-right: 20px;
        text-align: left !important;
    }

    .timeline-item:nth-child(even) {
        left: 0;
    }

    .timeline-item:nth-child(odd) .timeline-dot,
    .timeline-item:nth-child(even) .timeline-dot {
        left: 23px;
        right: auto;
    }
}

/* ===============
   Developer Dossier Specific CSS
   =============== */

.text-neon {
    color: var(--neon-blue);
}

.text-3xl {
    font-size: 3rem;
}

.hero-location {
    font-size: 1.1rem;
    color: var(--text-secondary);
    line-height: 1.8;
}

.summary-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.summary-box {
    background: var(--bg-card);
    border: var(--glass-border);
    padding: 30px;
    border-radius: 16px;
    text-align: left;
    transition: var(--transition);
}

.summary-box:hover {
    transform: translateY(-5px);
    border-color: rgba(108, 92, 231, 0.4);
}

.summary-box i {
    font-size: 2rem;
    margin-bottom: 20px;
}

.summary-box h3 {
    margin-bottom: 12px;
    font-size: 1.3rem;
}

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

.skill-list {
    margin-top: 15px;
}

.skill-list li {
    margin-bottom: 12px;
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.5;
}

.skill-list strong {
    color: var(--text-primary);
}

.deep-dive-card {
    background: #111111;
    /* Light black */
    border: var(--glass-border);
    border-radius: 20px;
    overflow: hidden;
}

.deep-dive-header {
    background: #1a1a1a;
    /* Slightly lighter black for the header */
    padding: 30px;
    border-bottom: var(--glass-border);
}

.deep-dive-header h3 {
    font-size: 2rem;
    margin-bottom: 15px;
}

.deep-dive-body {
    padding: 30px;
}

.problem-solution h4 {
    font-size: 1.1rem;
    margin-bottom: 15px;
    font-family: var(--font-body);
    font-weight: 400;
    line-height: 1.6;
}

.highlight-list {
    list-style: none;
}

.highlight-list li {
    position: relative;
    padding-left: 20px;
    margin-bottom: 12px;
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.highlight-list li::before {
    content: '▹';
    position: absolute;
    left: 0;
    color: var(--accent);
}

.highlight-list strong {
    color: var(--text-primary);
}

.grid-2-col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
}

.education-item {
    display: flex;
    gap: 20px;
    align-items: flex-start;
}

/* ==============================
   Certifications Section Layout
   ============================== */
.certifications-section {
    padding: 60px 0 80px;
}

.certs-bordered-card {
    width: 100%;
    max-width: 1100px;
    margin: 0 auto;
    text-align: center;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 24px;
    padding: 48px 40px;
    box-shadow: 0 4px 40px rgba(0, 0, 0, 0.25);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    transition: border-color 0.4s ease;
}

.certs-bordered-card:hover {
    border-color: rgba(14, 165, 233, 0.2);
}

.certs-bordered-card h2 {
    margin-bottom: 32px;
}

/* ==============================
   Spotlight Badge Cert Cards
   ============================== */
.cert-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}


.cert-badge-card {
    position: relative;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 12px;
    padding: 24px 20px 16px 20px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    overflow: hidden;
    transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
    text-decoration: none;
    min-height: 160px;
    cursor: pointer;
}

/* Subtle glow on hover */
.cert-badge-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at center, rgba(14, 165, 233, 0.1) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.35s ease;
    pointer-events: none;
    z-index: 0;
}

.cert-badge-card:hover {
    border-color: rgba(14, 165, 233, 0.3);
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.4), 0 0 0 1px rgba(14, 165, 233, 0.1);
    background: rgba(255, 255, 255, 0.04);
}

.cert-badge-card:hover::after {
    opacity: 1;
}

/* Icon top-center */
.cert-badge-icon {
    position: relative;
    font-size: 1.8rem;
    color: var(--accent);
    opacity: 0.9;
    margin: 0 auto 12px auto;
    display: block;
    text-align: center;
    transition: transform 0.3s ease, color 0.3s ease;
    z-index: 1;
}

.cert-badge-card:hover .cert-badge-icon {
    transform: scale(1.15) rotate(-5deg);
    color: #38bdf8;
}

/* Content */
.cert-badge-body {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 6px;
    flex: 1;
    z-index: 1;
    position: relative;
}

.cert-badge-name {
    font-family: var(--font-heading);
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1.3;
    max-width: 100%;
}

.cert-badge-issuer {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--accent);
    letter-spacing: 0.3px;
}

/* Footer row */
.cert-badge-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 14px;
    padding-top: 10px;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    z-index: 1;
    position: relative;
    width: 100%;
}

.cert-badge-view {
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--accent);
    letter-spacing: 0.5px;
    text-transform: uppercase;
    display: flex;
    align-items: center;
    gap: 5px;
    transition: gap 0.2s ease;
}

.cert-badge-card:hover .cert-badge-view {
    gap: 8px;
}

.cert-badge-num {
    font-size: 0.72rem;
    color: rgba(255, 255, 255, 0.2);
    font-weight: 600;
    font-family: var(--font-heading);
}

/* Strategic Widgets */
.widget-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-bottom: 32px;
}

.widget-card {
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.01));
    border: 1px solid rgba(135, 206, 235, 0.15);
    border-radius: 16px;
    padding: 24px;
    position: relative;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.widget-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, transparent, var(--accent), transparent);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.widget-card.full-width {
    grid-column: 1 / -1;
}

.widget-card:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(135, 206, 235, 0.4);
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.5);
}

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

.widget-icon {
    font-size: 1.5rem;
    margin-bottom: 12px;
}

.contact-details p {
    margin-bottom: 8px;
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.contact-details i {
    width: 20px;
    color: var(--accent);
}

/* Progress Bars */
.progress-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.progress-item {
    background: rgba(255, 255, 255, 0.02);
    padding: 16px;
    border-radius: 8px;
    border: var(--glass-border);
}

.progress-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
    font-size: 0.9rem;
    font-weight: 600;
}

.skill-bar {
    width: 100%;
    height: 8px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    overflow: hidden;
}

.skill-progress {
    height: 100%;
    background: var(--accent);
    border-radius: 10px;
    transition: width 1.5s cubic-bezier(0.1, 0.5, 0.1, 1);
    width: 0;
}

/* Timeline Section */
.timeline-section {
    padding: 80px 0;
}

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

.timeline::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 2px;
    height: 100%;
    background: rgba(135, 206, 235, 0.2);
}

.timeline-item {
    position: relative;
    width: 50%;
    padding: 20px 40px;
    box-sizing: border-box;
}

.timeline-item:nth-child(odd) {
    left: 0;
    text-align: right;
}

.timeline-item:nth-child(even) {
    left: 50%;
}

.timeline-dot {
    position: absolute;
    top: 30px;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: var(--neon-blue);
    box-shadow: 0 0 10px var(--neon-blue);
    z-index: 2;
}

.timeline-item:nth-child(odd) .timeline-dot {
    right: -8px;
}

.timeline-item:nth-child(even) .timeline-dot {
    left: -8px;
}

.timeline-date {
    font-size: 0.9rem;
    color: var(--accent);
    font-weight: 600;
    margin-bottom: 8px;
}

.timeline-content {
    background: rgba(255, 255, 255, 0.03);
    padding: 24px;
    border-radius: 12px;
    border: var(--glass-border);
    transition: var(--transition);
}

.timeline-item:hover .timeline-content {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    border-color: rgba(135, 206, 235, 0.3);
}

.timeline-content h3 {
    margin-bottom: 12px;
    color: var(--text-primary);
}

/* Contact Form */
.contact-form {
    width: 100%;
}

.form-control {
    width: 100%;
    padding: 12px 16px;
    background: rgba(255, 255, 255, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    color: var(--text-primary);
    font-family: 'Space Grotesk', sans-serif;
    transition: var(--transition);
}

.form-control:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 2px rgba(135, 206, 235, 0.2);
}

.form-control::placeholder {
    color: var(--text-secondary);
}

/* ==============================
   Certifications Page Layout (One by One Column)
   ============================== */
.cert-column-layout {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.cert-row {
    display: flex;
    align-items: center;
    gap: 30px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 24px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.cert-row:hover {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(14, 165, 233, 0.5);
    transform: translateY(-5px);
    box-shadow: 0 10px 30px -10px rgba(14, 165, 233, 0.2);
}

.cert-thumb {
    flex-shrink: 0;
}

.cert-thumb img {
    width: 250px;
    height: auto;
    border-radius: 8px;
    border: 1px solid rgba(14, 165, 233, 0.3);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.cert-details {
    flex-grow: 1;
}

.cert-details h4 {
    color: #fff;
    margin-bottom: 8px;
    font-size: 1.3rem;
}

.cert-issuer {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

/* ==============================
   Cinema Strip Widget
   ============================== */
.cinema-strip {
    display: flex;
    gap: 16px;
    padding: 20px;
    background: #0a0a0a;
    border-radius: 24px;
    border: 1px solid rgba(255, 255, 255, 0.06);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.03);
    max-width: 1100px;
    margin: 0 auto;
}

/* ==============================
   Cinema Grid Widget (3×2)
   ============================== */
.cinema-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    padding: 20px;
    background: #0a0a0a;
    border-radius: 24px;
    border: 1px solid rgba(255, 255, 255, 0.06);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.03);
    max-width: 1100px;
    margin: 0 auto;
}

.cinema-frame {
    flex: 1;
    overflow: hidden;
    border-radius: 16px;
    position: relative;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.cinema-frame img {
    width: 100%;
    height: 380px;
    object-fit: cover;
    object-position: center 20%;
    display: block;
    transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1), filter 0.5s ease;
    filter: brightness(0.95);
}

.cinema-frame:hover img {
    transform: scale(1.06);
    filter: brightness(1.05);
}

/* ==============================
   Personal Gallery Styles (Legacy)
   ============================== */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin-top: 40px;
}

.gallery-item {
    overflow: hidden;
    position: relative;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.gallery-item img {
    width: 100%;
    height: 320px;
    object-fit: cover;
    object-position: center 20%;
    display: block;
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.4s ease;
}

.gallery-item:hover img {
    transform: scale(1.08);
    opacity: 0.9;
}

@media (max-width: 768px) {
    .cert-row {
        flex-direction: column;
        text-align: center;
    }
    .cert-thumb img {
        width: 100%;
        max-width: 320px;
    }

    /* Mobile Typography */
    h1 { font-size: 2.8rem !important; }
    h2 { font-size: 2.2rem !important; }
    h3 { font-size: 1.8rem !important; }
    .hero-text h1 { font-size: 3rem !important; }
    .hero-text h2 { font-size: 1.8rem !important; }
    .gradient-text-premium { font-size: 3rem !important; }
}

@media (max-width: 992px) {
    .summary-grid,
    .grid-2-col,
    .widget-grid,
    .footer-widget-grid,
    .cert-container {
        grid-template-columns: 1fr;
    }

    /* Responsive adjustments for new sections */
    .intro-image-wrapper, .staggered-wrapper, .project-gallery-collage {
        flex-direction: column !important;
        gap: 40px !important;
    }

    .intro-image-wrapper div, .staggered-wrapper div, .project-gallery-collage div, .project-gallery-collage img {
        max-width: 90% !important;
        width: 100% !important;
        transform: none !important;
        margin: 0 auto !important;
        height: auto !important;
        aspect-ratio: 4/5;
    }
    
    .project-gallery-collage img {
        height: 350px !important;
        margin-bottom: -20px !important;
    }

    .staggered-wrapper div {
        transform: none !important;
        margin-bottom: 20px !important;
    }

    .profile-separator img {
        height: 250px !important;
    }

    .cinema-strip {
        flex-direction: column;
        gap: 12px;
        padding: 14px;
        border-radius: 18px;
    }

    .cinema-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
        padding: 14px;
        border-radius: 18px;
    }

    .cinema-frame img {
        height: 280px;
    }
}

/* Specific Component Classes (to replace inline styles) */
.responsive-intro-card, .responsive-staggered-card {
    flex: 1 1 250px;
    max-width: 350px;
    height: 380px; /* Force container height */
    position: relative;
    border-radius: 24px;
    overflow: hidden;
    /* Safari overflow clip bug fixes */
    -webkit-mask-image: -webkit-radial-gradient(white, black);
    isolation: isolate;
    box-shadow: 0 15px 35px rgba(0,0,0,0.5);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.4s;
    background: transparent;
}

.responsive-intro-card img, .responsive-staggered-card img {
    width: 100%;
    height: 100%; /* Perfectly fill the fixed-height container */
    object-fit: cover;
    object-position: center 20%;
    display: block;
    margin: 0;
    padding: 0;
    border: none;
    border-radius: 24px;
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.responsive-intro-card:hover img, .responsive-staggered-card:hover img {
    transform: scale(1.08);
}

/* Card Container Variants for CSS-only Hover */
.widget-card-left {
    transform: translateY(20px) rotate(-6deg);
}
.widget-card-left:hover {
    transform: translateY(5px) rotate(-2deg);
    box-shadow: 0 25px 45px rgba(135,206,235,0.2) !important;
}
.widget-card-center {
    height: 440px;
    background: linear-gradient(135deg, rgba(0,0,0,0.4), rgba(135,206,235,0.05));
    transform: translateY(-20px);
    z-index: 2;
    box-shadow: 0 0 35px rgba(14,165,233,0.35);
}
.widget-card-center:hover {
    transform: translateY(-35px);
    box-shadow: 0 0 55px rgba(14,165,233,0.6) !important;
}
.widget-card-right {
    transform: translateY(20px) rotate(6deg);
}
.widget-card-right:hover {
    transform: translateY(5px) rotate(2deg);
    box-shadow: 0 25px 45px rgba(135,206,235,0.2) !important;
}

/* Image Wrapper for strict containment (Separator Section) */
.sep-img-wrapper {
    width: 100%;
    height: 400px;
    border-radius: 16px;
    overflow: hidden;
    /* Safari overflow clip bug fixes */
    -webkit-mask-image: -webkit-radial-gradient(white, black);
    isolation: isolate;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    position: relative;
}
.sep-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}
.sep-img-wrapper:hover img {
    transform: scale(1.08);
}
.sep-img-center {
    transform: rotate(-1.5deg) scale(1.05);
}

.collage-img {
    width: 300px;
    height: 400px;
    object-fit: cover;
    border-radius: 24px;
    box-shadow: 0 15px 40px rgba(0,0,0,0.6);
    transition: transform 0.4s;
}

.collage-img:hover {
    z-index: 10 !important;
    transform: scale(1.05) !important;
}

/* ==============================
   HAMBURGER MENU TOGGLE
   ============================== */
.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    z-index: 10001;
    padding: 6px;
}
.nav-toggle span {
    width: 26px; height: 2.5px;
    background: #fff;
    border-radius: 3px;
    transition: all .3s cubic-bezier(.16,1,.3,1);
    display: block;
}
/* Animate to X when open */
.nav-open .nav-toggle span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.nav-open .nav-toggle span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.nav-open .nav-toggle span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

@media (max-width: 768px) {
    .nav-toggle { display: flex; }
    .nav-links {
        position: fixed;
        top: 0; right: 0;
        width: 280px; height: 100vh;
        background: rgba(5,5,12,.98);
        backdrop-filter: blur(20px);
        flex-direction: column;
        padding: 100px 40px 40px;
        gap: 8px;
        transform: translateX(100%);
        transition: transform .4s cubic-bezier(.16,1,.3,1);
        z-index: 10000;
        border-left: 1px solid rgba(14,165,233,.15);
        box-shadow: -10px 0 40px rgba(0,0,0,.5);
    }
    .nav-open .nav-links { transform: translateX(0); }
    .nav-links li { list-style: none; }
    .nav-links a {
        display: block;
        padding: 14px 0;
        font-size: 1.1rem;
        border-bottom: 1px solid rgba(255,255,255,.05);
    }
}

/* ==============================
   CONTACT FORM STYLES
   ============================== */
.contact-form input:focus,
.contact-form textarea:focus {
    border-color: rgba(14,165,233,.6);
    box-shadow: 0 0 0 3px rgba(14,165,233,.1);
}
.contact-form input::placeholder,
.contact-form textarea::placeholder {
    color: rgba(255,255,255,.3);
}

/* ==============================
   COPY EMAIL TOOLTIP
   ============================== */
.email-copy {
    cursor: pointer;
    position: relative;
    transition: color .3s;
}
.email-copy:hover { color: #0ea5e9; }
.email-copied-tip {
    position: absolute;
    bottom: calc(100% + 8px);
    left: 50%; transform: translateX(-50%);
    background: #0ea5e9; color: #fff;
    font-size: .72rem; font-weight: 700;
    padding: 4px 10px; border-radius: 6px;
    white-space: nowrap;
    opacity: 0; pointer-events: none;
    transition: opacity .3s;
}
.email-copied-tip.show { opacity: 1; }

/* ==============================
   AI CHAT WIDGET
   ============================== */
#ai-chat-widget { position: fixed; bottom: 24px; right: 24px; z-index: 99999; }

#ai-chat-toggle {
    width: 58px; height: 58px; border-radius: 50%;
    background: linear-gradient(135deg, #0ea5e9, #6366f1);
    border: none; color: #fff; font-size: 1.5rem; cursor: pointer;
    box-shadow: 0 6px 24px rgba(14,165,233,.4), 0 0 0 0 rgba(14,165,233,.3);
    transition: all .3s; position: relative;
    animation: chatPulse 2.5s ease-in-out infinite;
}
#ai-chat-toggle:hover { transform: scale(1.1); box-shadow: 0 8px 32px rgba(14,165,233,.5); }
@keyframes chatPulse {
    0%,100% { box-shadow: 0 6px 24px rgba(14,165,233,.4), 0 0 0 0 rgba(14,165,233,.3); }
    50% { box-shadow: 0 6px 24px rgba(14,165,233,.4), 0 0 0 12px rgba(14,165,233,0); }
}
.chat-badge {
    position: absolute; top: -4px; right: -4px;
    background: #ec4899; color: #fff; font-size: .6rem; font-weight: 800;
    padding: 2px 6px; border-radius: 8px; letter-spacing: .5px;
}

#ai-chat-panel {
    position: absolute; bottom: 72px; right: 0;
    width: 370px; max-height: 520px;
    background: rgba(8,8,16,.97);
    border: 1px solid rgba(14,165,233,.2);
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0,0,0,.7), 0 0 1px rgba(14,165,233,.3);
    backdrop-filter: blur(10px);
    display: flex; flex-direction: column;
    opacity: 0; transform: translateY(20px) scale(.95);
    pointer-events: none; transition: all .35s cubic-bezier(.16,1,.3,1);
    overflow: hidden;
}
#ai-chat-panel.open {
    opacity: 1; transform: translateY(0) scale(1); pointer-events: all;
}

.chat-header {
    display: flex; align-items: center; justify-content: space-between;
    padding: 16px 18px;
    background: linear-gradient(135deg, rgba(14,165,233,.12), rgba(99,102,241,.08));
    border-bottom: 1px solid rgba(255,255,255,.06);
}
.chat-header-info { display: flex; align-items: center; gap: 12px; }
.chat-avatar {
    width: 36px; height: 36px; border-radius: 10px;
    background: linear-gradient(135deg, #0ea5e9, #6366f1);
    display: flex; align-items: center; justify-content: center;
    font-size: .95rem; color: #fff;
}
.chat-title { font-weight: 700; font-size: .92rem; color: #fff; }
.chat-subtitle { font-size: .7rem; color: rgba(255,255,255,.4); }
.chat-close {
    background: none; border: none; color: rgba(255,255,255,.4);
    font-size: 1rem; cursor: pointer; transition: color .2s;
}
.chat-close:hover { color: #fff; }

.chat-messages {
    flex: 1; overflow-y: auto; padding: 16px;
    display: flex; flex-direction: column; gap: 12px;
    max-height: 340px; min-height: 200px;
    scrollbar-width: thin; scrollbar-color: rgba(14,165,233,.2) transparent;
}
.chat-msg { display: flex; }
.chat-msg.user { justify-content: flex-end; }
.msg-bubble {
    max-width: 82%; padding: 10px 14px;
    border-radius: 16px; font-size: .88rem; line-height: 1.5;
    word-wrap: break-word;
}
.chat-msg.bot .msg-bubble {
    background: rgba(255,255,255,.06);
    border: 1px solid rgba(255,255,255,.08);
    color: rgba(255,255,255,.85);
    border-bottom-left-radius: 4px;
}
.chat-msg.user .msg-bubble {
    background: linear-gradient(135deg, #0ea5e9, #6366f1);
    color: #fff;
    border-bottom-right-radius: 4px;
}

.chat-input-wrap {
    display: flex; gap: 8px; padding: 12px 14px;
    border-top: 1px solid rgba(255,255,255,.06);
    background: rgba(0,0,0,.3);
}
.chat-input-wrap input {
    flex: 1; padding: 10px 14px;
    background: rgba(255,255,255,.06);
    border: 1px solid rgba(14,165,233,.15);
    border-radius: 12px; color: #fff; font-size: .88rem;
    outline: none; transition: border-color .3s;
}
.chat-input-wrap input:focus { border-color: rgba(14,165,233,.5); }
.chat-input-wrap input::placeholder { color: rgba(255,255,255,.25); }
.chat-input-wrap button {
    width: 40px; height: 40px; border-radius: 12px;
    background: linear-gradient(135deg, #0ea5e9, #6366f1);
    border: none; color: #fff; cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    transition: transform .2s;
}
.chat-input-wrap button:hover { transform: scale(1.08); }
.chat-input-wrap button:disabled { opacity: .5; cursor: not-allowed; }

/* Typing dots */
.typing-dots-chat { display: inline-flex; gap: 4px; padding: 4px 0; }
.typing-dots-chat span {
    width: 6px; height: 6px; border-radius: 50%;
    background: rgba(14,165,233,.6);
    animation: typeBounce .6s ease-in-out infinite;
}
.typing-dots-chat span:nth-child(2) { animation-delay: .1s; }
.typing-dots-chat span:nth-child(3) { animation-delay: .2s; }
@keyframes typeBounce {
    0%,100% { transform: translateY(0); opacity: .4; }
    50% { transform: translateY(-5px); opacity: 1; }
}

/* Mobile chat panel */
@media (max-width: 480px) {
    #ai-chat-panel { width: calc(100vw - 32px); right: -8px; }
}



/* ==============================
   CERTIFICATION SEARCH FILTER
   ============================== */
.cert-search-wrap {
    max-width: 500px; margin: 0 auto 32px;
    position: relative;
}
.cert-search-wrap i {
    position: absolute; left: 16px; top: 50%; transform: translateY(-50%);
    color: rgba(14, 165, 233, .5); font-size: .95rem;
}
.cert-search-input {
    width: 100%; padding: 14px 18px 14px 44px;
    background: rgba(255, 255, 255, .05);
    border: 1px solid rgba(14, 165, 233, .2);
    border-radius: 14px; color: #fff; font-size: .95rem;
    outline: none; transition: border-color .3s, box-shadow .3s;
}
.cert-search-input:focus {
    border-color: rgba(14, 165, 233, .5);
    box-shadow: 0 0 0 3px rgba(14, 165, 233, .1);
}
.cert-search-input::placeholder { color: rgba(255, 255, 255, .3); }
.cert-row.hidden { display: none !important; }

/* ==============================
   SKILL TOOLTIPS
   ============================== */
.skill-tooltip {
    position: fixed;
    z-index: 100000;
    background: rgba(8, 8, 16, 0.95);
    border: 1px solid rgba(14, 165, 233, 0.3);
    padding: 10px 14px;
    border-radius: 12px;
    color: #fff;
    font-size: 0.82rem;
    pointer-events: none;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    backdrop-filter: blur(8px);
    line-height: 1.6;
}

/* ==============================
   TIMELINE FILL
   ============================== */
.timeline::before {
    background: linear-gradient(to bottom, var(--accent) var(--line-fill, 0%), rgba(135, 206, 235, 0.1) var(--line-fill, 0%));
}

/* ==============================
   LIGHTBOX
   ============================== */
#lightbox {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(5, 5, 10, 0.95);
    z-index: 200000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s ease;
}
#lightbox.active { opacity: 1; pointer-events: all; }
.lightbox-content {
    position: relative;
    max-width: 90%;
    max-height: 90%;
}
.lightbox-content img {
    max-width: 100%;
    max-height: 100vh;
    border-radius: 12px;
    box-shadow: 0 20px 80px rgba(0,0,0,0.8);
    border: 1px solid rgba(255,255,255,0.1);
}
.lightbox-close, .lightbox-prev, .lightbox-next {
    position: absolute;
    background: rgba(255,255,255,0.1);
    border: none;
    color: #fff;
    width: 50px; height: 50px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    transition: all 0.3s;
    backdrop-filter: blur(4px);
}
.lightbox-close { top: -60px; right: 0; }
.lightbox-prev { left: -70px; top: 50%; transform: translateY(-50%); }
.lightbox-next { right: -70px; top: 50%; transform: translateY(-50%); }

.lightbox-close:hover, .lightbox-prev:hover, .lightbox-next:hover {
    background: var(--accent);
    transform: scale(1.1);
}

@media (max-width: 992px) {
    .lightbox-prev { left: 20px; }
    .lightbox-next { right: 20px; }
    .lightbox-close { top: 20px; right: 20px; }
}

/* ==============================
   PROJECT FILTERS
   ============================== */
.filter-btn {
    padding: 10px 20px;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 10px;
    color: var(--text-secondary);
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}
.filter-btn:hover { border-color: var(--accent); color: #fff; }
.filter-btn.active { background: var(--accent); color: #fff; border-color: var(--accent); box-shadow: 0 4px 15px rgba(14, 165, 233, 0.3); }

/* = [MODIFY] 3D FLIP ON HOVER ] = */
.deep-dive-card {
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.5s;
}
.deep-dive-card.hidden { display: none; opacity: 0; transform: scale(0.9); }

/* ==============================
   TESTIMONIALS CAROUSEL
   ============================== */
.testimonial-carousel {
    overflow: hidden;
    position: relative;
    max-width: 900px;
    margin: 40px auto 0;
}
.testimonial-track {
    display: flex;
    gap: 30px;
    animation: scrollTestimonials 40s linear infinite;
}
.testimonial-track:hover { animation-play-state: paused; }
@keyframes scrollTestimonials {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}
.testimonial-card {
    min-width: 400px;
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.08);
    padding: 30px;
    border-radius: 20px;
    backdrop-filter: blur(8px);
}
.testimonial-header { display: flex; align-items: center; gap: 15px; margin-bottom: 20px; }
.testimonial-header img { width: 50px; height: 50px; border-radius: 50%; object-fit: cover; border: 2px solid var(--accent); }
.testimonial-header h4 { font-size: 1rem; color: #fff; margin: 0; }
.testimonial-header span { font-size: 0.8rem; color: var(--accent); }
.testimonial-card p { font-size: 0.92rem; font-style: italic; color: var(--text-secondary); line-height: 1.6; }

/* ==============================
   BLOG SECTION
   ============================== */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
    margin-top: 50px;
}
.blog-card {
    background: var(--bg-card);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 24px;
    overflow: hidden;
    transition: var(--transition);
}
.blog-card:hover { transform: translateY(-10px); border-color: var(--accent); }
.blog-thumb { height: 220px; overflow: hidden; }
.blog-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s; }
.blog-card:hover .blog-thumb img { transform: scale(1.1); }
.blog-content { padding: 30px; }
.blog-date { font-size: 0.8rem; color: var(--accent); font-weight: 600; }
.blog-content h3 { font-size: 1.4rem; margin: 15px 0; color: #fff; }
.blog-content p { color: var(--text-secondary); font-size: 0.95rem; margin-bottom: 20px; }
.blog-link { font-size: 0.9rem; font-weight: 700; color: var(--accent); text-decoration: none; display: flex; align-items: center; gap: 8px; }




/* ==============================
   PROJECT CARD 3D TILT REFINED
   ============================== */
.deep-dive-card:hover {
    transform: perspective(1000px) rotateX(2deg) rotateY(-2deg) translateY(-10px) translateZ(10px);
    border-color: rgba(14, 165, 233, 0.5);
    box-shadow: 0 30px 60px rgba(0,0,0,0.6), 0 0 20px rgba(14, 165, 233, 0.1);
}

/* ==============================
   ACTIVE NAV LINK
   ============================== */
.nav-links a.active {
    color: var(--accent);
    text-shadow: 0 0 10px rgba(14, 165, 233, 0.4);
}
.nav-links a.active::after {
    width: 100%;
}