/* 
 * Portfolio - Layout Styles
 * Header, Navigation, Footer
 */

/* -------------------------
   Header / Navbar
   ------------------------- */
/* -------------------------
   Header / Navbar (Refactored)
   ------------------------- */
/* ===================================
   NAVIGATION - POLISHED & MODERN
   =================================== */

.header {
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1030;
    padding: 1rem 0;
    background: transparent;
    animation: slideDown 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes slideDown {
    from {
        transform: translateY(-100%);
        opacity: 0;
    }

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

/* Glass Morphism Effect */
/* Floating Pill Navbar */
.floating-nav-container {
    padding: 1rem 0;
    pointer-events: none;
    /* Allow clicking through header area */
}

.floating-nav {
    pointer-events: auto;
    background: rgba(255, 255, 255, 0.8);
    /* High contrast for visibility */
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 100px;
    padding: 0.5rem 1.5rem;
    margin: 0 auto;
    width: fit-content;
    max-width: 90%;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

@media (max-width: 991px) {
    .floating-nav {
        background: var(--color-bg-body) !important;
        border-radius: 0;
        padding: 0.75rem 1rem;
    }

}

body.dark-mode .floating-nav {
    background: rgba(15, 23, 42, 0.7);
    /* Slightly more opaque for contrast */
    border-color: rgba(255, 255, 255, 0.05);
}

/* Scrolled State - More distinct */
.header.scrolled .floating-nav {
    background: rgba(255, 255, 255, 0.9) !important;
    backdrop-filter: blur(20px) saturate(180%);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-5px);
}

body.dark-mode .header.scrolled .floating-nav {
    background: rgba(15, 23, 42, 0.9) !important;
    border-color: rgba(255, 255, 255, 0.1);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

/* Brand Logo Redesign - Geometric */
.navbar-brand .brand__logo {
    width: 42px;
    height: 42px;
    background: transparent;
    color: var(--primary-600);
    font-weight: 800;
    font-size: 1.4rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    position: relative;
    z-index: 1;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Geometric Background */
.navbar-brand .brand__logo::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 12px;
    background: var(--primary-50);
    transform: rotate(45deg) scale(0.8);
    z-index: -1;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.navbar-brand:hover .brand__logo::after {
    transform: rotate(0deg) scale(1);
    background: var(--gradient-primary);
    box-shadow: 0 8px 20px rgba(var(--primary-rgb), 0.3);
}

.section-title {
    scroll-margin-top: 100px;
}

.navbar-brand:hover .brand__logo {
    color: white;
    transform: scale(1.05);
}

body.dark-mode .navbar-brand .brand__logo::after {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Dark Mode Hover - Specific Override */
body.dark-mode .navbar-brand:hover .brand__logo::after {
    background: var(--gradient-primary);
    border-color: transparent;
    box-shadow: 0 0 20px rgba(var(--primary-rgb), 0.5);
    /* Enhanced Glow */
}

/* Clean up unused brand name styles if any remain, or just leave this section clean */

/* Subtitle - Refined */
.brand__title {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--slate-500);
    letter-spacing: 0.02em;
    text-transform: uppercase;
}

body.dark-mode .brand__title {
    color: var(--slate-400);
}



body.dark-mode .brand__title {
    color: var(--slate-400);
}

/* Navigation Links - With Animated Underline */
.navbar-nav {
    gap: 2rem;
}

.navbar-nav .nav-link {
    font-family: 'Inter', sans-serif;
    font-weight: 500;
    color: var(--text-secondary);
    position: relative;
    padding: 0.5rem 0;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-size: 0.95rem;
}

body.dark-mode .navbar-nav .nav-link {
    color: var(--slate-300);
}

/* Pill Active State */
.navbar-nav .nav-link::after {
    display: none;
    /* Remove underline */
}

.navbar-nav .nav-link {
    border-radius: 50px;
    padding: 0.5rem 1.2rem !important;
}

.navbar-nav .nav-link:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: none;
}

/* Active State - High Contrast Pill */
.navbar-nav .nav-link.active {
    background: var(--primary-600) !important;
    color: white !important;
    box-shadow: 0 4px 12px rgba(var(--primary-rgb), 0.4);
    font-weight: 600;
}

body.dark-mode .navbar-nav .nav-link:hover {
    background: rgba(255, 255, 255, 0.05);
}

body.dark-mode .navbar-nav .nav-link.active {
    background: var(--primary-600) !important;
    color: white !important;
    box-shadow: 0 4px 12px rgba(var(--primary-rgb), 0.4);
}

.navbar-nav .nav-link:hover {
    color: var(--primary-600);
    transform: translateY(-1px);
}

.navbar-nav .nav-link.active:hover {
    color: white !important;
    transform: translateY(-1px);
}

body.dark-mode .navbar-nav .nav-link:hover {
    color: var(--primary-400);
}

/* Focus States for Accessibility */
.navbar-nav .nav-link:focus-visible {
    outline: 2px solid var(--primary-500);
    outline-offset: 4px;
    border-radius: 4px;
}

/* Mobile Toggle Button */
.navbar-toggler {
    padding: 0.6rem;
    font-size: 1.25rem;
    color: var(--slate-900);
    border: 1px solid rgba(0, 0, 0, 0.05);
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    border-radius: 10px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    margin-right: 0.5rem;
}

.navbar-toggler:hover {
    transform: scale(1.05);
    background: rgba(255, 255, 255, 0.9);
}

body.dark-mode .navbar-toggler {
    color: var(--slate-100);
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.1);
}

.navbar-toggler:focus {
    box-shadow: none;
    outline: none;
}

body.dark-mode .navbar-toggler {
    color: var(--slate-100);
}

/* Mobile Menu Styles */
@media (max-width: 991px) {
    .navbar-nav {
        gap: 0;
        padding: 1rem 0;
    }

    .navbar-nav .nav-item {
        padding: 0.5rem 0;
        border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    }

    body.dark-mode .navbar-nav .nav-item {
        border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    }

    .navbar-nav .nav-link {
        padding: 0.75rem 1rem;
        display: flex;
        align-items: center;
        font-size: 1rem;
    }

    .navbar-nav .nav-link::after {
        display: none;
        /* Hide underline on mobile */
    }

    .nav-number {
        color: var(--primary-500);
        font-weight: 600;
        font-family: 'JetBrains Mono', 'Courier New', monospace;
        font-size: 0.9rem;

    }

    /* Mobile menu header */
    .navbar-collapse .d-lg-none {
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        padding-bottom: 1rem;
        /* color: blue; */
    }

    body.dark-mode .navbar-collapse .d-lg-none {
        border-bottom: 1px solid rgba(255, 255, 255, 0.15);
    }
}

/* Mobile Close Button */
.btn-close-white {
    filter: invert(1);
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

.btn-close-white:hover {
    opacity: 1;
    transform: scale(1.1);
}

/* Theme Toggle Switch */
.theme-switch {
    display: flex;
    align-items: center;
}

.theme-label {
    cursor: pointer;
    margin-bottom: 0;
}

.input__check {
    display: none;
}

.theme-slider {
    width: 60px;
    height: 30px;
    background: var(--slate-200);
    border-radius: 30px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 8px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.1);
}

body.dark-mode .theme-slider {
    background: var(--slate-700);
}

.theme-slider::before {
    content: '';
    position: absolute;
    width: 22px;
    height: 22px;
    background: white;
    border-radius: 50%;
    left: 4px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.input__check:checked+.theme-slider::before {
    transform: translateX(30px);
}

.theme-icon-light,
.theme-icon-dark {
    font-size: 0.75rem;
    z-index: 1;
    transition: opacity 0.3s ease;
}

.theme-icon-light {
    color: #f59e0b;
}

.theme-icon-dark {
    color: #64748b;
}

.input__check:checked+.theme-slider .theme-icon-light {
    opacity: 0.4;
}

.input__check:checked+.theme-slider .theme-icon-dark {
    opacity: 1;
    color: #fbbf24;
}

.input__check:not(:checked)+.theme-slider .theme-icon-dark {
    opacity: 0.4;
}

@media (max-width: 991px) {
    .theme-switch {
        margin-top: 1.5rem;
        padding-top: 1rem;
        border-top: 1px solid rgba(255, 255, 255, 0.1);
    }
}

.header.scrolled {
    padding: 0.5rem 0;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
}

body.dark-mode .header.scrolled {
    background: rgba(15, 23, 42, 0.9);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}



body.dark-mode .brand__title {
    color: var(--slate-400);
}

/* Navbar Nav & Links */
/* Navbar Nav & Links - Legacy styles removed to favour Floating Pill styles defined above */

/* Mobile Menu Styling */
@media (max-width: 991.98px) {
    .navbar-collapse {
        position: fixed;
        top: 0;
        right: 0;
        bottom: 0;
        width: 100%;
        max-width: 320px;
        height: 100dvh;
        background: #121010;
        /* Solid white for mobile */
        backdrop-filter: blur(20px);
        padding: 2.5rem 2rem;
        box-shadow: -15px 0 50px rgba(0, 0, 0, 0.15);
        transform: translateX(100%);
        transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
        overflow-y: auto;
        display: block;
        /* Bootstrap override */
        visibility: hidden;
        border-left: 1px solid rgba(0, 0, 0, 0.05);
    }

    .navbar-collapse.show {
        transform: translateX(0);
        visibility: visible;
    }

    .menu-title {
        color: var(--slate-900);
    }

    body.dark-mode .menu-title {
        color: var(--slate-900);
    }

    body.dark-mode .btn-close {
        filter: invert(1) grayscale(100%) brightness(200%);
    }

    body.dark-mode .navbar-collapse {
        background: #0f172a;
        /* Solid dark for mobile */
        backdrop-filter: blur(20px);
        border-left: 1px solid rgba(255, 255, 255, 0.1);
    }

    .navbar-nav .nav-link {
        padding: 1rem 1.5rem;
        font-size: 1.1rem;
        border-bottom: 1px solid rgba(255, 255, 255, 0.05);
        display: flex;
        justify-content: space-between;
        align-items: center;
        width: 100%;
        border-radius: 12px;
        margin-bottom: 0.5rem;
    }

    .navbar-nav .nav-link:hover,
    .navbar-nav .nav-link.active {
        background: rgba(234, 88, 12, 0.1);
        color: var(--primary-500) !important;
    }

    .navbar-nav .nav-link.active {
        background: var(--primary-600) !important;
        color: white !important;
    }
}

/* Theme Toggle in Navbar */
.theme-switch {
    display: flex;
    align-items: center;
}

.footer {
    background-color: var(--slate-950);
    color: var(--slate-300);
    padding: clamp(4rem, 8vw, 6rem) 0 3rem;
    margin-top: 0;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-glow {
    position: absolute;
    top: -150px;
    right: -100px;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(var(--primary-rgb), 0.1) 0%, transparent 70%);
    pointer-events: none;
    z-index: 0;
}

.footer-brand {
    display: flex;
    align-items: center;
}

.footer-logo {
    width: 45px;
    height: 45px;
    font-size: 1.25rem;
}

.border-white-10 {
    border-color: rgba(255, 255, 255, 0.1) !important;
}

.footer-desc {
    font-size: 1rem;
    line-height: 1.7;
    max-width: 360px;
}

.footer-heading {
    text-transform: uppercase;
    letter-spacing: 0.1rem;
    font-size: 0.85rem;
    font-weight: 700;
}

.footer-nav-link {
    color: var(--slate-400);
    text-decoration: none;
    font-size: 0.95rem;
    margin-bottom: 0.75rem;
    display: block;
    transition: all 0.3s ease;
    position: relative;
    width: fit-content;
}

.footer-nav-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 1px;
    background-color: var(--primary-500);
    transition: width 0.3s ease;
}

.footer-nav-link:hover {
    color: white;
    transform: translateX(5px);
}

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

.glass-btn {
    background: rgba(255, 255, 255, 0.03) !important;
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
}

.social-btn {
    width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--slate-300);
    border-radius: 12px;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    text-decoration: none;
}

.social-btn:hover {
    background-color: var(--primary-600) !important;
    color: white;
    transform: translateY(-5px) scale(1.1);
    box-shadow: 0 10px 20px rgba(var(--primary-rgb), 0.3);
    border-color: var(--primary-400) !important;
}

.footer-contact-info li span {
    font-size: 0.95rem;
}

.contact-icon-sm {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    font-size: 0.85rem;
}

.tracking-wider {
    letter-spacing: 0.05rem;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

@media (max-width: 768px) {
    .footer {
        padding: 4rem 0 2rem;
        text-align: center;
    }

    .footer-brand {
        flex-direction: column;
        gap: 1rem;
    }

    .brand__info {
        border-left: none !important;
        padding-left: 0 !important;
    }

    .footer-desc {
        max-width: 100%;
    }

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

    .footer-nav-link {
        margin: 0 auto 0.75rem;
    }

    .footer-contact-info li {
        justify-content: center;
    }
}

/* -------------------------
   Circular Progress Indicator
   ------------------------- */
.circular-progress-container {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 48px;
    height: 48px;
    width: 48px;
    height: 48px;
    z-index: 1020;
    opacity: 0;
    transform: translateY(20px);
    transition: all var(--transition-normal);
    pointer-events: none;
}

.circular-progress-container.visible {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.circular-progress {
    width: 100%;
    height: 100%;
    transform: rotate(-90deg);
}

.circular-progress-background {
    fill: none;
    stroke: var(--slate-200);
    stroke-width: 4;
}

.circular-progress-bar {
    fill: none;
    stroke: var(--primary-600);
    stroke-width: 4;
    stroke-dasharray: 283;
    /* 2 * PI * 45 */
    stroke-dashoffset: 283;
    stroke-linecap: round;
    transition: stroke-dashoffset 0.1s linear;
}

body.dark-mode .circular-progress-background {
    stroke: var(--slate-700);
}

body.dark-mode .circular-progress-bar {
    stroke: var(--primary-500);
    filter: drop-shadow(0 0 4px rgba(99, 102, 241, 0.5));
}

/* -------------------------
   Hero Section Effects
   ------------------------- */
.hero-gradient {
    background: linear-gradient(135deg, var(--slate-50) 0%, #eef2ff 100%);
    position: relative;
}

body.dark-mode .hero-gradient {
    background: linear-gradient(135deg, var(--slate-950) 0%, #1e1b4b 100%);
}

.hero {
    padding-top: clamp(100px, 15vh, 140px) !important;
}

@media (max-width: 991px) {
    .hero {
        padding-top: clamp(120px, 20vh, 160px) !important;
        text-align: center;
        min-height: auto !important;
    }
}

.text-animated-gradient {
    background: linear-gradient(to right, var(--primary-600), var(--secondary-500), var(--primary-600));
    background-size: 200% auto;
    color: transparent;
    -webkit-background-clip: text;
    background-clip: text;
    animation: textGradient 4s linear infinite;
}

body.dark-mode .text-animated-gradient {
    background: linear-gradient(to right, var(--primary-400), var(--secondary-400), var(--primary-400));
    background-size: 200% auto;
    -webkit-background-clip: text;
    background-clip: text;
}

@keyframes textGradient {
    0% {
        background-position: 0% 50%;
    }

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

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

.animate-float-slow {
    animation: float 8s ease-in-out infinite;
}

.animate-float-reverse-slow {
    animation: floatReverse 10s ease-in-out infinite;
}

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

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

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

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

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

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

.hero-image {
    transition: transform 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.hero-image:hover {
    transform: scale(1.02) rotate(2deg);
}

.animate-pulse-slow {
    animation: pulseGlow 4s ease-in-out infinite;
}

@keyframes pulseGlow {
    0% {
        opacity: 0.5;
        transform: scale(1);
    }

    50% {
        opacity: 0.7;
        transform: scale(1.05);
    }

    100% {
        opacity: 0.5;
        transform: scale(1);
    }
}

/* -------------------------
   About Section Styles
   ------------------------- */
.about-section {
    background: var(--color-bg-body);
    position: relative;
}

body.dark-mode .about-section {
    background: var(--slate-900);
}

.about-content {
    max-width: 800px;
    margin: 0 auto;
}

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

body.dark-mode .about-text {
    color: var(--slate-400);
}

.about-highlights {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: var(--space-6);
    margin: var(--space-8) 0;
}

.highlight-item {
    text-align: center;
    padding: var(--space-4);
    background: var(--color-bg-surface);
    border-radius: var(--radius-lg);
    border: 1px solid var(--color-border);
    transition: all var(--transition-normal);
}

body.dark-mode .highlight-item {
    background: var(--slate-800);
    border-color: var(--slate-700);
}

.highlight-item:hover {
    transform: translateY(-4px);
    border-color: var(--primary-300);
    box-shadow: 0 10px 20px rgba(249, 115, 22, 0.1);
}

.highlight-number {
    font-size: 2rem;
    font-weight: 800;
    color: var(--primary-600);
    display: block;
}

.highlight-label {
    font-size: 0.9rem;
    color: var(--color-text-secondary);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* -------------------------
   Skills Section Styles
   ------------------------- */

#skills {
    margin: 5rem;
}

.skill-stack-card {
    background: var(--color-bg-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-xl);
    transition: all var(--transition-normal);
    position: relative;
    overflow: hidden;
}

body.dark-mode .skill-stack-card {
    background: var(--slate-800);
    border-color: var(--slate-700);
}

.skill-stack-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--gradient-primary);
}

.skill-stack-card:hover {
    transform: translateY(-8px);
    border-color: var(--primary-300);
    box-shadow: 0 20px 30px rgba(249, 115, 22, 0.15);
}

body.dark-mode .skill-stack-card:hover {
    border-color: var(--primary-500);
    box-shadow: 0 20px 30px rgba(249, 115, 22, 0.2);
}

.stack-header {
    display: flex;
    align-items: center;
    gap: var(--space-3);
}

.stack-icon {
    width: 50px;
    height: 50px;
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}

.bg-primary-soft {
    background: rgba(249, 115, 22, 0.1);
}

.bg-success-soft {
    background: rgba(34, 197, 94, 0.1);
}

.bg-warning-soft {
    background: rgba(251, 146, 60, 0.1);
}

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

.skill-tag {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    padding: 0.5rem 1rem;
    background: var(--slate-100);
    border-radius: var(--radius-full);
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--color-text-primary);
    margin-bottom: var(--space-2);
    transition: all var(--transition-fast);
}

body.dark-mode .skill-tag {
    background: var(--slate-700);
    color: white;
}

.skill-tag:hover {
    transform: translateX(4px);
    background: var(--primary-100);
    color: var(--primary-700);
}

body.dark-mode .skill-tag:hover {
    background: var(--primary-600);
    color: white;
}

.skill-badge-group {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-2);
}

/* -------------------------
   Experience Section Styles
   ------------------------- */
.timeline-modern {
    position: relative;
    padding-left: 2rem;
}

.timeline-modern::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background: linear-gradient(to bottom, var(--primary-500), transparent);
    border-radius: 2px;
}

.timeline-item {
    position: relative;
    padding-bottom: var(--space-8);
}

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

.timeline-marker {
    position: absolute;
    left: -0.9rem;
    top: 0.25rem;
    width: 1.8rem;
    height: 1.8rem;
    background: var(--primary-600);
    border: 3px solid var(--color-bg-body);
    border-radius: 50%;
    transition: all var(--transition-fast);
}

body.dark-mode .timeline-marker {
    border-color: var(--slate-900);
}

.timeline-item:hover .timeline-marker {
    background: var(--primary-700);
    box-shadow: 0 0 0 8px rgba(249, 115, 22, 0.1);
    transform: scale(1.2);
}

.timeline-content {
    background: var(--color-bg-surface);
    padding: var(--space-6);
    border-radius: var(--radius-lg);
    border: 1px solid var(--color-border);
    transition: all var(--transition-normal);
}

body.dark-mode .timeline-content {
    background: var(--slate-800);
    border-color: var(--slate-700);
}

.timeline-item:hover .timeline-content {
    border-color: var(--primary-300);
    box-shadow: 0 10px 25px rgba(249, 115, 22, 0.1);
    transform: translateX(8px);
}

body.dark-mode .timeline-item:hover .timeline-content {
    border-color: var(--primary-500);
    box-shadow: 0 10px 25px rgba(249, 115, 22, 0.15);
}

/* -------------------------
   Certifications Section Styles
   ------------------------- */
.card-achievement {
    background: var(--color-bg-surface);
    padding: var(--space-6);
    border-radius: var(--radius-xl);
    border: 2px solid var(--color-border);
    transition: all var(--transition-normal);
    text-align: center;
    position: relative;
    overflow: hidden;
}

body.dark-mode .card-achievement {
    background: var(--slate-800);
    border-color: var(--slate-700);
}

.card-achievement::before {
    content: '';
    position: absolute;
    top: -100%;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--gradient-glow);
    opacity: 0;
    transition: top var(--transition-normal);
    pointer-events: none;
}

.card-achievement:hover {
    transform: translateY(-8px);
    border-color: var(--primary-300);
    box-shadow: 0 20px 30px rgba(249, 115, 22, 0.15);
}

body.dark-mode .card-achievement:hover {
    border-color: var(--primary-500);
    box-shadow: 0 20px 30px rgba(249, 115, 22, 0.2);
}

/* -------------------------
   Enhanced Projects Section
   (Structural & UX improvements)
   ------------------------- */

/* Featured Projects - Premium Display */
.featured-projects {
    position: relative;
}

.featured-projects .project-card {
    display: flex;
    flex-direction: column;
    min-height: 550px;
}

.featured-projects .card-img-top {
    height: 280px;
    object-fit: cover;
    object-position: center;
}

.featured-projects .card-body {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.featured-projects .card-title {
    font-size: 1.35rem;
    margin-bottom: var(--space-3);
}

.featured-projects .card-text {
    font-size: 1rem;
    line-height: 1.7;
    flex-grow: 1;
    margin-bottom: var(--space-3);
}

/* Minor Projects - Compact Display */
.minor-projects .project-card {
    display: flex;
    flex-direction: column;
    min-height: 380px;
}

.minor-projects .card-body {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: var(--space-6);
}

.minor-projects .card-title {
    font-size: 1.15rem;
    margin-bottom: var(--space-3);
}

.minor-projects .card-text {
    font-size: 0.95rem;
    line-height: 1.6;
    flex-grow: 1;
    margin-bottom: var(--space-3);
}

/* Improved Button Layout for All Projects */
.project-card .btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    transition: all var(--transition-fast);
    white-space: nowrap;
}

.featured-projects .btn {
    padding: 0.75rem 1.5rem;
    font-size: 0.95rem;
}

.minor-projects .btn-sm {
    padding: 0.6rem 1rem;
    font-size: 0.85rem;
}

/* Button Container - Ensure Equal Height and Distribution */
.project-card .d-flex.gap-2,
.project-card .d-flex.gap-3 {
    gap: var(--space-3) !important;
}

.project-card .flex-grow-1 {
    flex: 1 1 auto;
}

/* Badge Styling for Tech Stack */
.card-tech {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-2);
}

.card-tech .badge {
    display: inline-block;
    margin-bottom: 0.25rem;
}

/* Section Divider */
.featured-projects {
    border-bottom-color: var(--color-border) !important;
}

body.dark-mode .featured-projects {
    border-bottom-color: var(--slate-700) !important;
}

/* Subsection Title Icons */
.subsection-title i {
    font-size: 1.2rem;
    vertical-align: middle;
}

/* CTA Section */
.projects-section>div>.text-center {
    margin-top: var(--space-12);
    padding-top: var(--space-8);
    border-top: 1px solid var(--color-border);
}

body.dark-mode .projects-section>div>.text-center {
    border-top-color: var(--slate-700);
}

@media (min-width: 992px) and (max-width: 1200px) {
    .navbar-nav {
        gap: 0.1rem !important;
    }
}

/* Responsive Adjustments for Projects */
@media (max-width: 992px) {
    .featured-projects .project-card {
        min-height: auto;
    }

    .featured-projects .card-img-top {
        height: 220px;
    }

    .featured-projects .card-title {
        font-size: 1.2rem;
    }

    .minor-projects .project-card {
        min-height: auto;
    }
}

@media (max-width: 768px) {
    .featured-projects .card-img-top {
        height: 180px;
    }

    .featured-projects .card-title {
        font-size: 1.1rem;
    }

    .featured-projects .card-text {
        font-size: 0.95rem;
    }

    .minor-projects .card-body {
        padding: var(--space-5);
    }

    .minor-projects .card-title {
        font-size: 1.05rem;
    }

    .minor-projects .card-text {
        font-size: 0.9rem;
    }

    .project-card .d-flex.gap-2,
    .project-card .d-flex.gap-3 {
        flex-direction: column;
    }

    .project-card .btn {
        width: 100%;
    }
}

@media (max-width: 576px) {
    .projects-section {
        padding-top: var(--space-8) !important;
        padding-bottom: var(--space-8) !important;
    }

    .featured-projects {
        margin-bottom: var(--space-8) !important;
        padding-bottom: var(--space-8) !important;
    }

    .featured-projects .card-img-top {
        height: 150px;
    }

    .featured-projects .card-body {
        padding: var(--space-4);
    }

    .featured-projects .card-title {
        font-size: 1rem;
    }

    .featured-projects .card-text {
        font-size: 0.9rem;
        line-height: 1.6;
    }

    .minor-projects .card-body {
        padding: var(--space-4);
    }

    .minor-projects .card-title {
        font-size: 1rem;
    }

    .minor-projects .card-text {
        font-size: 0.85rem;
    }

    .card-tech .badge {
        font-size: 0.7rem;
        padding: 0.25rem 0.6rem;
    }

    .featured-projects .btn {
        padding: 0.65rem 1rem;
        font-size: 0.85rem;
    }

    .minor-projects .btn-sm {
        padding: 0.5rem 0.75rem;
        font-size: 0.8rem;
    }
}

.achievement-icon {
    font-size: 2.5rem;
    margin-bottom: var(--space-4);
}

/* -------------------------
   Contact Section Styles
   ------------------------- */
.contact-section {
    background: var(--gradient-primary);
    position: relative;
    overflow: hidden;
}

body.dark-mode .contact-section {
    background: linear-gradient(135deg, var(--primary-700), var(--secondary-700));
}

.contact-section::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 500px;
    height: 500px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    animation: float 8s ease-in-out infinite;
}

.contact-card {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: var(--radius-xl);
    transition: all var(--transition-normal);
    position: relative;
    overflow: hidden;
}

body.dark-mode .contact-card {
    background: rgba(30, 41, 59, 0.6);
    border-color: rgba(255, 255, 255, 0.1);
}

.contact-card::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: var(--radius-xl);
    padding: 1.5px;
    background: radial-gradient(600px circle at var(--mouse-x, 0) var(--mouse-y, 0),
            rgba(255, 255, 255, 0.6),
            transparent 40%);
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0;
    transition: opacity 0.3s;
    pointer-events: none;
}

.contact-card:hover::after {
    opacity: 1;
}

.contact-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

/* -------------------------
   Responsive Adjustments
   ------------------------- */
@media (max-width: 768px) {
    .about-highlights {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--space-4);
    }

    .timeline-modern {
        padding-left: 1.5rem;
    }

    .timeline-marker {
        left: -0.6rem;
        width: 1.2rem;
        height: 1.2rem;
        border-width: 2px;
    }

    .skill-tag {
        font-size: 0.85rem;
        padding: 0.4rem 0.8rem;
    }
}

@media (max-width: 576px) {
    .about-highlights {
        grid-template-columns: 1fr;
    }

    .timeline-modern::before {
        left: 6px;
    }

    .timeline-marker {
        left: -1.2rem;
    }

    .timeline-content {
        padding: var(--space-4);
    }
}

/* -------------------------
   Projects Section
   ------------------------- */
.projects-section {
    background: var(--color-bg-body);
    position: relative;
    overflow: hidden;
}

body.dark-mode .projects-section {
    background: var(--slate-900);
}

.projects-section::before {
    content: '';
    position: absolute;
    top: -100px;
    right: -100px;
    width: 400px;
    height: 400px;
    background: var(--gradient-glow);
    border-radius: 50%;
    pointer-events: none;
    opacity: 0.3;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--color-text-primary);
    letter-spacing: -0.03em;
    position: relative;
    display: inline-block;
    margin-bottom: var(--space-8);
}

body.dark-mode .section-title {
    color: white;
}

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

.subsection-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-text-primary);
    position: relative;
    padding-bottom: var(--space-4);
    margin-bottom: var(--space-6);
    letter-spacing: -0.01em;
}

body.dark-mode .subsection-title {
    color: white;
}

.subsection-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 3px;
    background: var(--primary-500);
    border-radius: 2px;
}

/* -------------------------
   Project Cards
   ------------------------- */
.project-card {
    background: var(--color-bg-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-xl);
    overflow: hidden;
    transition: all var(--transition-normal);
    display: flex;
    flex-direction: column;
    position: relative;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.project-card:hover {
    border-color: var(--primary-300);
    box-shadow: 0 20px 25px -5px rgba(249, 115, 22, 0.15), 0 10px 10px -5px rgba(0, 0, 0, 0.05);
    transform: translateY(-8px);
}

body.dark-mode .project-card {
    background: var(--slate-800);
    border-color: var(--slate-700);
}

body.dark-mode .project-card:hover {
    border-color: var(--primary-500);
    box-shadow: 0 20px 25px -5px rgba(249, 115, 22, 0.2), 0 10px 10px -5px rgba(0, 0, 0, 0.3);
}

.project-card .card-img-top {
    width: 100%;
    height: 200px;
    object-fit: cover;
    transition: transform var(--transition-normal);
}

.project-card:hover .card-img-top {
    transform: scale(1.05);
}

.project-card .card-body {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    padding: var(--space-6);
}

.project-card .card-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--color-text-primary);
    margin-bottom: var(--space-3);
    transition: color var(--transition-fast);
}

body.dark-mode .project-card .card-title {
    color: white;
}

.project-card:hover .card-title {
    color: var(--primary-600);
}

body.dark-mode .project-card:hover .card-title {
    color: var(--primary-400);
}

.project-card .card-text {
    color: var(--color-text-secondary);
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: var(--space-4);
    flex-grow: 1;
}

body.dark-mode .project-card .card-text {
    color: var(--slate-400);
}

.card-tech {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-2);
    margin-bottom: var(--space-4);
    font-size: 0.85rem;
    color: var(--primary-600);
    font-weight: 600;
}

body.dark-mode .card-tech {
    color: var(--primary-400);
}

.project-card .btn {
    padding: 0.65rem 1.2rem;
    font-size: 0.9rem;
    font-weight: 600;
    border-radius: var(--radius-md);
    transition: all var(--transition-fast);
}

.project-card .btn-primary {
    background: var(--gradient-primary);
    border: none;
    color: white;
    box-shadow: 0 4px 15px rgba(249, 115, 22, 0.3);
}

.project-card .btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(249, 115, 22, 0.4);
    color: white;
}

.project-card .btn-outline-secondary {
    border: 1.5px solid var(--slate-300);
    color: var(--color-text-primary);
    background: transparent;
}

body.dark-mode .project-card .btn-outline-secondary {
    border-color: var(--slate-600);
    color: white;
}

.project-card .btn-outline-secondary:hover {
    border-color: var(--primary-600);
    background: var(--primary-50);
    color: var(--primary-700);
    transform: translateY(-2px);
}

body.dark-mode .project-card .btn-outline-secondary:hover {
    border-color: var(--primary-400);
    background: rgba(249, 115, 22, 0.1);
    color: var(--primary-300);
}

/* Featured Projects Section */
.featured-projects {
    margin-bottom: var(--space-16);
}

.featured-projects .project-card {
    min-height: 450px;
}

.featured-projects .project-card .card-img-top {
    height: 250px;
}

/* Minor Projects Section */
.minor-projects .project-card {
    min-height: 280px;
}

.minor-projects .project-card .card-body {
    padding: var(--space-6);
}

/* Responsive Design */
@media (max-width: 768px) {
    .section-title {
        font-size: 2rem;
    }

    .subsection-title {
        font-size: 1.25rem;
    }

    .featured-projects .project-card {
        min-height: auto;
    }

    .featured-projects .project-card .card-img-top {
        height: 180px;
    }

    .minor-projects .project-card {
        min-height: auto;
    }

    .project-card:hover {
        transform: translateY(-4px);
    }
}

@media (max-width: 576px) {
    .section-title {
        font-size: 1.75rem;
    }

    .subsection-title {
        font-size: 1.1rem;
    }

    .project-card .card-body {
        padding: var(--space-4);
    }

    .project-card .card-title {
        font-size: 1.1rem;
    }

    .project-card .card-text {
        font-size: 0.9rem;
    }

    .project-card .btn {
        padding: 0.6rem 1rem;
        font-size: 0.85rem;
    }
}

/* Mobile Navigation Adjustments for Floating Pill */
@media (max-width: 991px) {
    .floating-nav {
        border-radius: var(--radius-xl);
        padding: 0.5rem 1rem;
        width: 95%;
        max-width: 95%;
        flex-direction: column;
        align-items: flex-start;
    }

    .navbar-collapse {
        width: 100%;
        margin-top: 1rem;
        background: whitesmoke;
    }

    .header.scrolled .floating-nav {
        border-radius: var(--radius-xl);
        width: 100%;
        max-width: 100%;
        padding: 0.5rem 1rem;
        top: 0;
        margin: 0;
        transform: none;
    }

    .navbar-nav .nav-link {
        border-radius: var(--radius-md);
        padding: 0.75rem 1rem !important;
        margin-bottom: 0.25rem;
    }

    .navbar-nav .nav-link.active {
        background: rgba(var(--primary-rgb), 0.1);
        color: var(--color-link) !important;
        box-shadow: none;
    }

    body.dark-mode .navbar-nav .nav-link.active {
        background: rgba(var(--primary-rgb), 0.2);
        color: var(--primary-400) !important;
    }

    .floating-nav-container {
        padding: 0.5rem;
    }
}

/* Dark Mode Utilities Overrides */
body.dark-mode .text-secondary {
    color: var(--slate-400) !important;
}

body.dark-mode .bg-light {
    background-color: var(--slate-800) !important;
}

body.dark-mode .border-primary-subtle {
    border-color: rgba(var(--primary-rgb), 0.3) !important;
}

body.dark-mode .border-secondary-subtle {
    border-color: var(--slate-700) !important;
}

body.dark-mode .border-info-subtle {
    border-color: rgba(14, 165, 233, 0.3) !important;
}

body.dark-mode .text-dark {
    color: var(--slate-200) !important;
}

/* Hero Section Dark Mode Text */
body.dark-mode .lead {
    color: var(--slate-300) !important;
}

/* Timeline Content Dark Mode */
body.dark-mode .timeline-content {
    background-color: var(--slate-800);
    border-color: var(--slate-700);
}

body.dark-mode .timeline-content .text-muted {
    color: var(--slate-400) !important;
}

/* Achievement Icons Dark Mode */
body.dark-mode .icon-box.bg-light {
    background-color: var(--slate-800) !important;
    color: var(--slate-200) !important;
}

/* Card Modern Dark Mode Fix */
body.dark-mode .card-modern {
    background-color: var(--slate-900);
    border-color: var(--slate-800);
}

body.dark-mode .card-modern .bg-light {
    background-color: var(--slate-800) !important;
}