/* Modern Professional Theme - V3 */
@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Fira+Code:wght@400;500&display=swap');
/* For Terminal */

:root {
    --bg-navy: #0f172a;
    /* Deep Navy Background */
    --bg-navy-light: #1e293b;
    /* Slightly lighter navy for cards/sections */
    --primary: #3b82f6;
    /* Professional Blue */
    --secondary: #94a3b8;
    /* Slate Gray text */
    --text-light: #f8fafc;
    /* Off-white text */
    --glass: rgba(30, 41, 59, 0.7);
    --border-light: rgba(255, 255, 255, 0.08);
    --accent-glow: rgba(59, 130, 246, 0.5);
}

body {
    background-color: var(--bg-navy);
    color: var(--text-light);
    font-family: 'Plus Jakarta Sans', sans-serif;
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

/* --- Premium Scrollbar --- */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #0f172a;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, var(--primary), #4f46e5);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #4f46e5;
}

/* --- Selection Color --- */
::selection {
    background: rgba(59, 130, 246, 0.3);
    color: #fff;
    text-shadow: 0 0 8px rgba(59, 130, 246, 0.5);
}

/* Scroll Progress Bar */
.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    width: 0%;
    height: 3px;
    background: var(--primary);
    z-index: 2000;
    transition: width 0.1s;
}

/* Typography Overrides */
h1,
h2,
h3,
h4,
h5,
h6 {
    color: #fff;
    letter-spacing: -0.02em;
}

.text-secondary {
    color: var(--secondary) !important;
}

.text-secondary-light {
    color: #cbd5e1;
}

.fw-bold {
    font-weight: 700 !important;
}

.fw-extrabold {
    font-weight: 800 !important;
}

/* Backgrounds & Colors */
.bg-navy-light {
    background-color: var(--bg-navy-light);
}

.bg-glass {
    background: var(--glass);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.bg-darker {
    background: rgba(15, 23, 42, 0.6);
}

.border-white-10 {
    border-color: var(--border-light) !important;
}

/* Gradient Text */
.text-gradient {
    background: linear-gradient(135deg, #60a5fa 0%, #a855f7 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* --- Tech Grid Background --- */
.hero-bg-grid {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
    background-size: 50px 50px;
    /* mask-image removed as per user request */
    z-index: -2;
    pointer-events: none;
}

/* --- Animated Gradient Orbs --- */
.hero-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    z-index: -1;
    animation: floatOrb 10s infinite ease-in-out;
    opacity: 0.6;
}

.orb-1 {
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.3) 0%, rgba(0, 0, 0, 0) 70%);
    top: -100px;
    right: -100px;
}

.orb-2 {
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(168, 85, 247, 0.25) 0%, rgba(0, 0, 0, 0) 70%);
    bottom: 10%;
    left: -50px;
    animation-delay: 2s;
}

@keyframes floatOrb {
    0% {
        transform: translateY(0) scale(1);
    }

    50% {
        transform: translateY(-30px) scale(1.1);
    }

    100% {
        transform: translateY(0) scale(1);
    }
}

/* --- Floating Navbar Styles --- */
.bg-glass-nav {
    background: rgba(15, 23, 42, 0.75);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    transition: all 0.4s ease;
}

.navbar {
    transition: all 0.4s ease;
}

.logo-box {
    width: 35px;
    height: 35px;
    background: linear-gradient(135deg, var(--primary), #6366f1);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    transform: rotate(45deg);
    box-shadow: 0 0 15px rgba(59, 130, 246, 0.4);
}

.logo-initial {
    color: #fff;
    font-weight: 800;
    font-size: 1.1rem;
    transform: rotate(-45deg);
}

.logo-text {
    font-size: 1.1rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    background: linear-gradient(to right, #fff, #94a3b8);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.navbar.scrolled .nav-container {
    background: rgba(15, 23, 42, 0.95);
    border-color: rgba(59, 130, 246, 0.2) !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5) !important;
}

@media (max-width: 576px) {
    .nav-container {
        padding-left: 1rem !important;
        padding-right: 1rem !important;
        width: 95% !important;
        margin: 0 auto;
    }
}


.nav-link {
    font-weight: 600;
    font-size: 0.9rem;
    color: #cbd5e1 !important;
    transition: all 0.3s;
}

.navbar-nav .nav-link:not(.btn):hover,
.navbar-nav .nav-link:not(.btn).active {
    color: #fff !important;
    background: rgba(255, 255, 255, 0.05);
}

/* Hamburger & Mobile Menu */
.hamburger {
    width: 30px;
    height: 20px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.hamburger span {
    display: block;
    height: 2px;
    width: 100%;
    background: #fff;
    border-radius: 2px;
    transition: all 0.3s ease;
}

.navbar-toggler[aria-expanded="true"] .hamburger span:nth-child(1) {
    transform: translateY(9px) rotate(45deg);
}

.navbar-toggler[aria-expanded="true"] .hamburger span:nth-child(2) {
    opacity: 0;
}

.navbar-toggler[aria-expanded="true"] .hamburger span:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
}

.mobile-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: var(--bg-navy);
    z-index: 40;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s ease;
    display: flex;
    justify-content: center;
    align-items: center;
}

.mobile-menu-overlay.active {
    opacity: 1;
    visibility: visible;
}

.mobile-nav-link {
    color: rgba(255, 255, 255, 0.5);
    text-decoration: none;
    transform: translateY(20px);
    opacity: 0;
    transition: all 0.3s ease;
}

.mobile-menu-overlay.active .mobile-nav-link {
    transform: translateY(0);
    opacity: 1;
}

.mobile-nav-link:hover {
    color: #fff;
    transform: scale(1.1) !important;
}

/* Buttons & Interactions */
.btn-primary {
    background-color: var(--primary);
    border-color: var(--primary);
    font-weight: 600;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: all 0.5s ease;
    z-index: -1;
}

.btn-primary:hover::before {
    left: 100%;
}

.btn-primary:hover {
    background-color: #2563eb;
    border-color: #2563eb;
    transform: translateY(-2px);
    box-shadow: 0 10px 20px -10px rgba(59, 130, 246, 0.5);
}

.btn-outline-light {
    color: var(--text-light);
    border-color: rgba(255, 255, 255, 0.2);
}

.btn-outline-light:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    border-color: #fff;
}

/* --- Ultra-Modern Lux Footer (Compact) --- */

.footer-lux {
    background: rgba(15, 23, 42, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    position: relative;
    padding: 3rem 0;
    overflow: hidden;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    z-index: 1;
    text-align: center;
}

/* Background Glow */
.footer-lux::before {
    content: '';
    position: absolute;
    top: -50%;
    left: 50%;
    transform: translateX(-50%);
    width: 60%;
    height: 200px;
    background: radial-gradient(ellipse at center, rgba(59, 130, 246, 0.15) 0%, transparent 70%);
    filter: blur(80px);
    z-index: -1;
    pointer-events: none;
}

.footer-brand {
    font-size: 2rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    color: #fff;
    margin-bottom: 0.5rem;
    display: inline-block;
    background: linear-gradient(to right, #fff, #94a3b8);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.footer-desc {
    color: #94a3b8;
    line-height: 1.6;
    max-width: 500px;
    margin: 0 auto 2rem;
    font-size: 0.95rem;
}

.footer-socials {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-bottom: 2.5rem;
}

.footer-social-btn {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #cbd5e1;
    transition: all 0.3s ease;
    text-decoration: none;
    font-size: 1.2rem;
}

.footer-social-btn:hover {
    background: var(--primary);
    color: #fff;
    transform: translateY(-3px);
    box-shadow: 0 10px 20px -5px rgba(59, 130, 246, 0.5);
    border-color: var(--primary);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: 2rem;
    color: #64748b;
    font-size: 0.85rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

@media (min-width: 768px) {
    .footer-bottom {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        max-width: 800px;
        margin: 0 auto;
    }
}


.hover-scale {
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.hover-scale:hover {
    transform: translateY(-3px) scale(1.02);
}

.hover-lift {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

/* Cards */
/* Cards */
.card {
    border: 1px solid var(--border-light);
}

.project-card {
    overflow: hidden;
    background: rgba(15, 23, 42, 0.8) !important;
    /* Force darker background */
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.project-img-wrapper {
    overflow: hidden;
    height: 200px;
    position: relative;
    border-bottom: 1px solid var(--border-light);
}

.project-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.project-card:hover .project-img-wrapper img {
    transform: scale(1.1);
}

.project-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 23, 42, 0.4);
    transition: background 0.3s;
}

.project-card:hover .project-overlay {
    background: rgba(15, 23, 42, 0.1);
}

/* Hero Card 3D Tilt */
.hero-card-enhanced {
    background: rgba(30, 41, 59, 0.4);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    position: relative;
    overflow: hidden;
    transition: transform 0.1s ease-out;
    /* Faster for tilt */
    transform-style: preserve-3d;
    perspective: 1000px;
}

.hero-card-enhanced:hover {
    box-shadow: 0 35px 60px -15px rgba(59, 130, 246, 0.3);
}

/* Holographic effect */
.hero-card-enhanced::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg,
            rgba(255, 255, 255, 0.1) 0%,
            rgba(255, 255, 255, 0) 50%,
            rgba(255, 255, 255, 0.1) 100%);
    opacity: 0;
    transition: opacity 0.3s;
    pointer-events: none;
    z-index: 2;
}

.hero-card-enhanced:hover::after {
    opacity: 0.5;
}

.floating-badge {
    position: absolute;
    background: rgba(15, 23, 42, 0.9);
    border: 1px solid var(--primary);
    padding: 8px 16px;
    border-radius: 8px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
    animation: floatBadge 4s ease-in-out infinite;
    z-index: 10;
    transform: translateZ(20px);
    /* 3D pop */
}

.badge-pos-1 {
    top: -20px;
    right: 20px;
}

.badge-pos-2 {
    bottom: -20px;
    left: -20px;
    animation-delay: 2s;
    border-color: #10b981;
}

@keyframes floatBadge {

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

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

/* Scroll Down Mouse */
.scroll-down {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    opacity: 0.7;
    animation: bounce 2s infinite;
}

.mouse {
    width: 26px;
    height: 40px;
    border: 2px solid #cbd5e1;
    border-radius: 20px;
    position: relative;
}

.wheel {
    width: 4px;
    height: 8px;
    background: #cbd5e1;
    border-radius: 2px;
    position: absolute;
    top: 6px;
    left: 50%;
    transform: translateX(-50%);
    animation: scrollWheel 1.5s infinite;
}

@keyframes scrollWheel {
    0% {
        transform: translate(-50%, 0);
        opacity: 1;
    }

    100% {
        transform: translate(-50%, 15px);
        opacity: 0;
    }
}

@keyframes bounce {

    0%,
    20%,
    50%,
    80%,
    100% {
        transform: translate(-50%, 0);
    }

    40% {
        transform: translate(-50%, -10px);
    }

    60% {
        transform: translate(-50%, -5px);
    }
}

/* Terminal & Marquee */
.terminal-window {
    font-family: 'Fira Code', monospace;
}

/* --- Infinite Marquee --- */
.marquee-wrapper {
    overflow: hidden;
    position: relative;
    width: 100%;
    /* Ensure no mask is present */
    mask-image: none !important;
    -webkit-mask-image: none !important;
    background: transparent !important;
    white-space: nowrap;
    /* Keep existing property */
}

.marquee-wrapper::before,
.marquee-wrapper::after {
    position: absolute;
    top: 0;
    width: 150px;
    height: 100%;
    z-index: 2;
}

.marquee-wrapper::before {
    left: 0;
    background: linear-gradient(to right, var(--bg-navy-light), transparent);
}

.marquee-wrapper::after {
    right: 0;
    background: linear-gradient(to left, var(--bg-navy-light), transparent);
}

.marquee-content {
    display: inline-block;
    animation: marquee 30s linear infinite;
}

.marquee-item {
    display: inline-flex;
    margin: 0 40px;
    opacity: 0.6;
    transition: all 0.3s;
    font-size: 2.5rem;
    color: var(--secondary);
}

.marquee-item:hover {
    opacity: 1;
    color: var(--primary);
    transform: scale(1.2);
}

@keyframes marquee {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

/* Typing Cursor */
.typing-cursor::after {
    content: '|';
    animation: blink 1s step-end infinite;
}

@keyframes blink {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0;
    }
}

/* Back to Top */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: var(--primary);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 999;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:hover {
    background: #2563eb;
    transform: translateY(-5px);
}

/* --- Premium Section Headers --- */
.section-label {
    display: inline-block;
    color: var(--primary);
    background: rgba(59, 130, 246, 0.1);
    padding: 6px 16px;
    border-radius: 30px;
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    border: 1px solid rgba(59, 130, 246, 0.2);
    margin-bottom: 1rem;
    box-shadow: 0 0 20px rgba(59, 130, 246, 0.15);
}

.section-title {
    font-size: 3rem;
    font-weight: 800;
    color: #fff;
    margin-bottom: 1rem;
    line-height: 1.1;
    text-shadow: 0 5px 15px rgba(0, 0, 0, 0.5);
    background: linear-gradient(to right, #ffffff, #94a3b8);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.section-subtitle {
    font-size: 1.1rem;
    color: #94a3b8;
    max-width: 600px;
    margin: 0 auto;
    font-weight: 400;
}

/* Mobile Adjustments for Headers */
@media (max-width: 768px) {
    .section-title {
        font-size: 2.2rem;
    }
}

/* --- Premium Card Stack Experience (V5.1 Compact) --- */
.card-stack-container {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    /* Reduced from 3rem */
    max-width: 850px;
    /* Slightly narrower */
    margin: 0 auto;
}

.card-stack-item {
    background: rgba(255, 255, 255, 0.05);
    /* Lighter glass for contrast */
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    /* Stronger border */
    border-radius: 16px;
    padding: 2rem;
    position: relative;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 10px 40px -10px rgba(0, 0, 0, 0.5);
}

.card-stack-item:hover {
    transform: translateY(-3px) scale(1.01);
    /* Subtle lift */
    border-color: rgba(59, 130, 246, 0.4);
    box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.5);
}

/* Accent Side Border */
.card-stack-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background: linear-gradient(180deg, var(--primary), #6366f1);
    opacity: 0.7;
    transition: width 0.3s ease;
}

.card-stack-item:hover::before {
    width: 6px;
    opacity: 1;
}

/* Header Layout */
.stack-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1rem;
    /* Reduced spacing */
    flex-wrap: wrap;
    gap: 0.75rem;
}

.stack-role {
    font-size: 1.4rem;
    /* Reduced from 1.8rem */
    font-weight: 700;
    color: #fff;
    margin-bottom: 0.15rem;
    line-height: 1.2;
}

.stack-company {
    font-size: 1rem;
    /* Reduced from 1.2rem */
    font-weight: 600;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.stack-period {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 6px 14px;
    border-radius: 50px;
    font-family: 'Fira Code', monospace;
    font-size: 0.8rem;
    color: #cbd5e1;
    white-space: nowrap;
}

.stack-details {
    font-size: 0.95rem;
    /* Reduced from 1.05rem */
    color: #cbd5e1;
    /* Lighter for readability */
    line-height: 1.6;
    margin-bottom: 1.5rem;
    max-width: 95%;
}

.stack-details li {
    margin-bottom: 0.5rem !important;
    /* Tighter list items */
}

.stack-tech-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    /* Tighter gap */
}

.stack-tech-badge {
    background: rgba(59, 130, 246, 0.08);
    color: var(--primary);
    padding: 5px 12px;
    border-radius: 6px;
    font-size: 0.8rem;
    /* Smaller badges */
    font-weight: 500;
    border: 1px solid transparent;
    transition: all 0.3s;
}

.stack-tech-badge:hover {
    background: var(--primary);
    color: #fff;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

/* Background Number */
.stack-index {
    position: absolute;
    right: 1.5rem;
    bottom: -1.5rem;
    font-size: 5rem;
    /* Reduced from 8rem */
    font-weight: 900;
    color: rgba(255, 255, 255, 0.03);
    /* More subtle */
    pointer-events: none;
    z-index: 0;
    font-family: 'Plus Jakarta Sans', sans-serif;
}

/* Mobile Adjustments */
@media (max-width: 768px) {
    .card-stack-item {
        padding: 1.5rem;
    }

    .stack-header {
        flex-direction: column;
        gap: 0.5rem;
    }

    .stack-period {
        align-self: flex-start;
        margin-bottom: 0.5rem;
    }

    .stack-index {
        font-size: 3rem;
        top: 0.5rem;
        right: 1rem;
    }
}

/* --- Personal Profile About Section (V2 Premium) --- */

.about-profile-wrapper {
    background: rgba(15, 23, 42, 0.7);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 24px;
    padding: 3.5rem;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.6);
    position: relative;
    overflow: hidden;
}

/* Subtle Grid Background Pattern */
.about-profile-wrapper::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: radial-gradient(rgba(255, 255, 255, 0.1) 1px, transparent 1px);
    background-size: 30px 30px;
    opacity: 0.1;
    pointer-events: none;
}

/* Photo Frame with Gradient Border */
.profile-img-frame {
    position: relative;
    width: 100%;
    padding-bottom: 100%;
    border-radius: 24px;
    overflow: hidden;
    /* Double border effect using box-shadow */
    box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.1),
        0 0 0 6px rgba(15, 23, 42, 0.5),
        0 20px 40px rgba(0, 0, 0, 0.4);
    transform: rotate(-2deg);
    transition: all 0.4s ease;
}

.about-profile-wrapper:hover .profile-img-frame {
    transform: rotate(0deg) scale(1.02);
    box-shadow: 0 0 0 1px var(--primary),
        0 0 0 6px rgba(15, 23, 42, 0.5),
        0 25px 50px rgba(0, 0, 0, 0.5);
}

.profile-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.about-profile-wrapper:hover .profile-img {
    transform: scale(1.1);
}

/* Info Styling */
.about-subtitle {
    font-size: 1.25rem;
    color: #e2e8f0;
    margin-bottom: 2.5rem;
    line-height: 1.7;
    font-weight: 300;
    border-left: 3px solid var(--primary);
    padding-left: 1.5rem;
}

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

/* Data Card Styling */
.profile-info-item {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    padding: 1.25rem;
    border-radius: 16px;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
}

.profile-info-item:hover {
    background: rgba(59, 130, 246, 0.1);
    border-color: rgba(59, 130, 246, 0.3);
    transform: translateY(-3px);
}

.info-label {
    display: flex;
    align-items: center;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: #94a3b8;
    margin-bottom: 0.5rem;
    font-weight: 700;
}

.info-label i {
    color: var(--primary);
    margin-right: 0.5rem;
    font-size: 0.9rem;
}

.info-value {
    font-size: 1.15rem;
    color: #fff;
    font-weight: 600;
    font-family: 'Plus Jakarta Sans', sans-serif;
    word-break: break-all;
    /* Prevent overflow for long emails */
}

.info-value a {
    color: #fff;
    text-decoration: none;
    background: linear-gradient(to right, var(--primary), var(--primary)) 0 100% no-repeat;
    background-size: 0% 2px;
    transition: background-size 0.3s;
    padding-bottom: 2px;
}

.info-value a:hover {
    background-size: 100% 2px;
    color: #fff;
}

/* --- Premium About Section (Split Layout) --- */
.about-text-lead {
    font-size: 1.25rem;
    color: #e2e8f0;
    line-height: 1.8;
    margin-bottom: 2rem;
}

.about-feature-list li {
    margin-bottom: 1rem;
    font-size: 1.1rem;
    color: #94a3b8;
    display: flex;
    align-items: center;
}

.about-feature-list i {
    color: var(--primary);
    margin-right: 1rem;
    font-size: 1.2rem;
    filter: drop-shadow(0 0 5px rgba(59, 130, 246, 0.5));
}

/* --- Advanced Project Gallery V2 --- */

/* Filter Controls */
.project-filters {
    display: inline-flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.5rem;
    background: rgba(15, 23, 42, 0.8);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    padding: 8px;
    border-radius: 60px;
    margin-bottom: 3.5rem;
    box-shadow: 0 10px 40px -10px rgba(0, 0, 0, 0.5);
}

.filter-btn {
    background: transparent;
    border: none;
    color: #94a3b8;
    padding: 10px 22px;
    border-radius: 50px;
    font-weight: 500;
    transition: all 0.3s ease;
    cursor: pointer;
    font-size: 0.85rem;
    letter-spacing: 0.5px;
    position: relative;
    overflow: hidden;
}

@media (max-width: 576px) {
    .project-filters {
        width: 100%;
        border-radius: 50px;
        display: flex;
        flex-wrap: nowrap;
        /* Single row */
        gap: 4px;
        /* Tiny gap */
        padding: 4px;
        justify-content: space-between;
    }

    .filter-btn {
        flex: 1;
        /* Equal width */
        padding: 10px 0;
        /* Vertical padding only */
        font-size: 0.75rem;
        border-radius: 50px;
        /* Tighter radius for inside items */
        text-align: center;
        width: auto;
        /* reset */
    }

}

.filter-btn:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.05);
}

.filter-btn.active {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: #fff;
    box-shadow: 0 5px 20px rgba(59, 130, 246, 0.5);
    font-weight: 600;
}

/* Premium Project Card V2 */
.project-card-premium {
    height: 100%;
    background: linear-gradient(145deg, rgba(30, 41, 59, 0.9), rgba(15, 23, 42, 0.95));
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 24px;
    overflow: hidden;
    transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    box-shadow: 0 15px 35px -5px rgba(0, 0, 0, 0.4);
}

.project-card-premium::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 24px;
    padding: 1px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.1), transparent);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
}

.project-card-premium:hover {
    transform: translateY(-8px);
    box-shadow: 0 30px 60px -15px rgba(0, 0, 0, 0.7), 0 0 20px rgba(59, 130, 246, 0.2);
    border-color: rgba(59, 130, 246, 0.3);
}

/* Image Area */
.project-thumb {
    position: relative;
    height: 250px;
    overflow: hidden;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.project-thumb::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 40%;
    background: linear-gradient(to top, rgba(15, 23, 42, 0.9), transparent);
    z-index: 1;
}

.project-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s cubic-bezier(0.19, 1, 0.22, 1);
}

.project-card-premium:hover .project-thumb img {
    transform: scale(1.12);
}

/* Overlay Actions */
.project-overlay-actions {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 100%;
    background: rgba(15, 23, 42, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    opacity: 0;
    transition: all 0.4s ease;
    backdrop-filter: blur(8px);
    z-index: 2;
}

.project-card-premium:hover .project-overlay-actions {
    opacity: 1;
}

.project-action-btn {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    transform: translateY(20px) scale(0.8);
    opacity: 0;
    font-size: 1.25rem;
}

.project-card-premium:hover .project-action-btn {
    transform: translateY(0) scale(1);
    opacity: 1;
}

.project-action-btn:hover {
    background: var(--primary);
    border-color: var(--primary);
    color: #fff;
    box-shadow: 0 0 20px rgba(59, 130, 246, 0.6);
    transform: scale(1.15) !important;
}

/* Content Area */
.project-content {
    padding: 2.2rem;
    position: relative;
}

.project-tags {
    margin-bottom: 1.2rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
}

.project-tag {
    font-size: 0.7rem;
    padding: 6px 14px;
    border-radius: 100px;
    background: rgba(59, 130, 246, 0.1);
    color: #60a5fa;
    border: 1px solid rgba(59, 130, 246, 0.2);
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.project-card-premium:hover .project-tag {
    background: rgba(59, 130, 246, 0.2);
    border-color: rgba(59, 130, 246, 0.4);
    color: #93c5fd;
}

.project-card-premium h4 {
    color: #fff;
    font-weight: 700;
    margin-bottom: 0.5rem;
    font-size: 1.4rem;
    transition: color 0.3s;
}

.project-card-premium:hover h4 {
    color: var(--primary);
}

/* --- Advanced Corporate Skills Section --- */
#skills {
    background: transparent;
    position: relative;
    /* Clean, professional background */
}

.skill-card-premium {
    background: #0f172a;
    /* Deep Navy/Slate */
    border-radius: 20px;
    padding: 3px;
    /* Space for gradient border */
    position: relative;
    height: 100%;
    transition: transform 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
    box-shadow: 0 4px 20px -5px rgba(0, 0, 0, 0.3);
}

/* Animated Gradient Border Layer */
.skill-card-premium::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 20px;
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.02) 40%, rgba(255, 255, 255, 0.02) 60%, rgba(255, 255, 255, 0.1));
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
    transition: opacity 0.3s;
}

.skill-card-premium:hover {
    transform: translateY(-6px);
    box-shadow: 0 15px 30px -5px rgba(0, 0, 0, 0.4);
}

.skill-card-premium:hover::before {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    opacity: 1;
}

/* Inner Content Container */
.skill-card-inner {
    background: #1e293b;
    /* Inner Slate surface */
    border-radius: 18px;
    /* Tighter radius to fit inside */
    padding: 2.2rem;
    height: 100%;
    position: relative;
    z-index: 1;
}

/* Header Area */
.category-header {
    display: flex;
    align-items: center;
    gap: 1.2rem;
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.category-icon {
    width: 52px;
    height: 52px;
    background: linear-gradient(145deg, #1e293b, #0f172a);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #94a3b8;
    font-size: 1.6rem;
    transition: all 0.4s ease;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.skill-card-premium:hover .category-icon {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: #fff;
    border-color: transparent;
    transform: rotate(5deg) scale(1.05);
    box-shadow: 0 5px 15px rgba(59, 130, 246, 0.4);
}

.category-title {
    color: #f1f5f9;
    font-weight: 700;
    font-size: 1.35rem;
    margin: 0;
    letter-spacing: -0.02em;
}

/* Tech List - Sophisticated Grid */
.tech-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.8rem;
}

.tech-item {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    padding: 0.8rem;
    border-radius: 12px;
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.2s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.tech-item:hover {
    background: rgba(30, 41, 59, 0.8);
    border-color: rgba(99, 102, 241, 0.2);
    transform: translateX(4px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.tech-icon {
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #64748b;
    font-size: 1.2rem;
    transition: color 0.2s;
}

.tech-item:hover .tech-icon {
    color: #60a5fa;
    /* Primary Light */
}

.tech-name {
    color: #cbd5e1;
    font-size: 0.95rem;
    font-weight: 500;
    transition: color 0.2s;
}

.tech-item:hover .tech-name {
    color: #fff;
}

/* --- Media Queries for Skills Responsiveness --- */
@media (max-width: 1200px) {
    .tech-grid {
        gap: 0.6rem;
    }

    .tech-item {
        padding: 0.6rem;
    }
}

@media (max-width: 1024px) {

    /* iPad Pro & Tablet Portrait */
    .skill-card-inner {
        padding: 1.8rem;
    }

    .category-header {
        margin-bottom: 1.5rem;
    }

    .category-title {
        font-size: 1.2rem;
    }

    .tech-grid {
        grid-template-columns: 1fr;
        /* Stack items on narrower cards */
    }

    .tech-item:hover {
        transform: translateX(2px);
        /* Reduce movement on touch */
    }
}

@media (max-width: 768px) {

    /* Mobile Landscape */
    .tech-grid {
        grid-template-columns: repeat(2, 1fr);
        /* Back to 2 columns on full width mobile cards */
    }
}

@media (max-width: 576px) {

    /* Mobile Portrait */
    .skill-card-premium {
        margin-bottom: 1rem;
    }

    .category-icon {
        width: 42px;
        height: 42px;
        font-size: 1.3rem;
    }

    .tech-grid {
        grid-template-columns: 1fr;
        /* Stack again for small phones */
    }
}

/* --- Utilities --- */
.bg-darker {
    background-color: #020617 !important;
    /* Extremely dark slate/black */
}

/* --- Premium Contact Section --- */
/* --- Premium Success Modal --- */
.success-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 23, 42, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s ease;
}

.success-modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.success-modal-card {
    background: #0f172a;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 24px;
    padding: 3rem;
    text-align: center;
    max-width: 400px;
    width: 90%;
    position: relative;
    transform: scale(0.8) translateY(20px);
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.7);
}

.success-modal-overlay.active .success-modal-card {
    transform: scale(1) translateY(0);
}

/* Gradient Border Effect */
.success-modal-card::before {
    content: '';
    position: absolute;
    inset: -1px;
    border-radius: 24px;
    padding: 1px;
    background: linear-gradient(145deg, rgba(34, 197, 94, 0.5), transparent 60%);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
}

.success-icon-wrapper {
    width: 80px;
    height: 80px;
    background: rgba(34, 197, 94, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    color: #22c55e;
    font-size: 2.5rem;
    box-shadow: 0 0 30px rgba(34, 197, 94, 0.2);
    animation: pulseSuccess 2s infinite;
}

@keyframes pulseSuccess {
    0% {
        box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.4);
    }

    70% {
        box-shadow: 0 0 0 20px rgba(34, 197, 94, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(34, 197, 94, 0);
    }
}

.success-title {
    font-size: 1.8rem;
    font-weight: 800;
    color: #fff;
    margin-bottom: 0.5rem;
}

.success-message {
    color: #94a3b8;
    margin-bottom: 2rem;
    font-size: 1rem;
    line-height: 1.5;
}

.btn-lux-sm {
    background: linear-gradient(135deg, var(--primary), #2563eb);
    /* Changed to Blue */
    color: white;
    border: none;
    padding: 0.8rem 2rem;
    border-radius: 12px;
    font-weight: 700;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.3);
}

.btn-success {
    background: linear-gradient(135deg, #22c55e 0%, #16a34a 100%) !important;
    color: white !important;
    border: none !important;
    padding: 1.2rem 4rem !important;
    border-radius: 12px !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.1em !important;
    font-size: 0.9rem !important;
    box-shadow: 0 10px 25px -5px rgba(34, 197, 94, 0.4) !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 15px !important;
    margin-top: 1.5rem !important;
}

.btn-lux-sm:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(34, 197, 94, 0.5);
}

/* --- Minimalist Lux Contact Design (Enhanced) --- */

.contact-card-lux {
    display: grid;
    grid-template-columns: 1fr;
    background: rgba(15, 23, 42, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
}

@media (min-width: 992px) {
    .contact-card-lux {
        grid-template-columns: 0.4fr 1fr;
        /* Adjusted ratio for better balance */
    }
}

.contact-card-lux:hover {
    transform: translateY(-5px);
    box-shadow: 0 35px 60px -15px rgba(0, 0, 0, 0.7);
    border-color: rgba(255, 255, 255, 0.15);
}

/* Left Side: Info Panel */
.contact-info-lux {
    background: linear-gradient(135deg, #0f172a 0%, #172033 100%);
    padding: 3rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
    overflow: hidden;
    z-index: 1;
    border-right: 1px solid rgba(255, 255, 255, 0.05);
}

/* Decorative Glow on Info Panel */
.contact-info-lux::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, var(--primary) 0%, transparent 70%);
    opacity: 0.08;
    filter: blur(60px);
    z-index: -1;
}

.lux-item {
    margin-bottom: 2.5rem;
    position: relative;
    padding-left: 20px;
    border-left: 3px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.lux-item:hover {
    border-left-color: var(--primary);
    padding-left: 25px;
    /* Subtle slide effect */
    background: linear-gradient(90deg, rgba(255, 255, 255, 0.03), transparent);
}

.lux-label {
    display: block;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: #94a3b8;
    margin-bottom: 0.5rem;
    font-weight: 700;
}

.lux-value {
    font-size: 1.1rem;
    color: #f8fafc;
    font-weight: 500;
    text-decoration: none;
    transition: color 0.2s;
    display: block;
    word-break: break-all;
    /* Prevent overflow on mobile */
}

.lux-value:hover {
    color: var(--primary);
}

/* Right Side: Form Panel */
.contact-form-lux {
    padding: 3rem;
    background: rgba(30, 41, 59, 0.2);
    position: relative;
}

.form-group-lux {
    margin-bottom: 2.5rem;
    /* Increased spacing */
    position: relative;
}

.input-lux {
    width: 100%;
    background: rgba(15, 23, 42, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    /* Rounded inputs */
    padding: 1.2rem 1.5rem;
    color: #fff;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.input-lux:focus {
    outline: none;
    border-color: var(--primary);
    background: rgba(15, 23, 42, 0.8);
    box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.15);
    transform: translateY(-2px);
}

.input-lux::placeholder {
    color: #64748b;
    font-weight: 500;
    transition: color 0.3s;
}

.input-lux:focus::placeholder {
    color: #94a3b8;
}

.btn-lux {
    background: linear-gradient(135deg, var(--primary) 0%, #2563eb 100%);
    color: white;
    border: none;
    padding: 1.2rem 4rem;
    border-radius: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-size: 0.9rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: inline-flex;
    align-items: center;
    gap: 15px;
    margin-top: 1.5rem;
    box-shadow: 0 10px 25px -5px rgba(37, 99, 235, 0.4);
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn-lux::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #2563eb 0%, var(--primary) 100%);
    z-index: -1;
    transition: opacity 0.3s ease;
    opacity: 0;
}

.btn-lux:hover::before {
    opacity: 1;
}

.btn-lux:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 40px -10px rgba(37, 99, 235, 0.6);
    letter-spacing: 0.15em;
    /* Spacing animation */
}

/* Responsiveness adjustments */
@media (max-width: 991px) {
    .contact-card-lux {
        grid-template-columns: 1fr;
    }

    .contact-info-lux {
        padding: 2.5rem;
        border-right: none;
        border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    }

    .contact-form-lux {
        padding: 2.5rem;
    }
}

@media (max-width: 767px) {

    .contact-info-lux,
    .contact-form-lux {
        padding: 2rem 1.5rem;
    }

    .btn-lux {
        width: 100%;
        /* Full width button on mobile */
        justify-content: center;
    }

    .lux-value {
        font-size: 1rem;
    }
}

/* --- Premium Developer Terminal --- */
.terminal-window {
    background: rgba(15, 23, 42, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
    overflow: hidden;
    font-family: 'Fira Code', monospace;
    transition: all 0.3s ease;
}

.terminal-header {
    background: rgba(30, 41, 59, 0.9);
    padding: 12px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.terminal-controls {
    display: flex;
    gap: 8px;
}

.control {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.control.red {
    background: #ff5f56;
}

.control.yellow {
    background: #ffbd2e;
}

.control.green {
    background: #27c93f;
}

.terminal-title {
    color: #94a3b8;
    font-size: 0.9rem;
    font-weight: 500;
    opacity: 0.8;
}

.terminal-actions {
    color: #94a3b8;
    font-size: 0.9rem;
    cursor: pointer;
    transition: color 0.2s;
}

.terminal-actions:hover {
    color: #fff;
}

.terminal-body {
    padding: 20px;
    height: 400px;
    overflow-y: auto;
    color: #e2e8f0;
    font-size: 0.95rem;
    line-height: 1.6;
    scrollbar-width: thin;
    scrollbar-color: #475569 transparent;
}

.terminal-body::-webkit-scrollbar {
    width: 8px;
}

.terminal-body::-webkit-scrollbar-thumb {
    background: #475569;
    border-radius: 4px;
}

.terminal-input-line {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    /* Allow wrapping on small screens */
}

.prompt-user {
    color: #22c55e;
    /* Green */
    font-weight: 700;
}

.prompt-path {
    color: #3b82f6;
    /* Blue */
    font-weight: 700;
    margin-right: 8px;
}

.terminal-input {
    background: transparent;
    border: none;
    color: #f8f8f2;
    font-family: 'Fira Code', monospace;
    font-size: 1rem;
    outline: none;
    flex-grow: 1;
    margin-left: 8px;
    /* Space from prompt */
    width: auto;
    /* Let it grow naturally */
    caret-color: transparent;
    /* Hide native cursor if using custom */
}

/* Custom Blinking Cursor */
.blinking-cursor {
    display: inline-block;
    width: 10px;
    height: 18px;
    background-color: #f8f8f2;
    animation: blink 1s step-end infinite;
    margin-left: -10px;
    /* Pull back to overlap input end or just sit next to it? Wait, native input logic. */
    /* Better approach: Just use caret-color transparent and let custom cursor be a block AFTER?
       Actually user simply wants it positioned correctly.
       If I use a real input, keeping the native caret is easiest.
       But user wants the block cursor.
    */
    /* Let's try placing it right after input. But input width grows. */
    vertical-align: middle;
}

/* Redefine for better alignment */
.terminal-input-line {
    display: flex;
    align-items: center;
    position: relative;
}

.terminal-input {
    background: transparent;
    border: none;
    color: #f8f8f2;
    font-family: 'Fira Code', monospace;
    font-size: 1rem;
    outline: none;
    flex: 1;
    /* Take remaining space */
    margin-left: 8px;
    caret-color: #22c55e;
    /* Green distinct caret */
}

/* Hide the custom cursor if we use native caret, or position it differently. 
   User said "now its blinking but not correctly placed". 
   Likely it was pushed to far right. 
   If I want a block cursor at the END of text, I need a span that updates with text.
   For now, I will HIDE the separate blinking cursor and style the native input caret to be thick/colored 
   OR I will try to support the custom cursor by making the input width dynamic (complex).
   I will go with: Native Caret (colored) is safer and always positioned correctly. 
   I will remove the .blinking-cursor from display or ensure it's hidden, 
   and style the input caret to be visible and nice.
*/
.blinking-cursor {
    display: none;
    /* Hide manual cursor, use native styled caret for correct positioning */
}

@keyframes blink {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0;
    }
}

/* Mobile Terminal Adjustments */
@media (max-width: 768px) {
    .terminal-body {
        height: 300px;
        font-size: 0.85rem;
        padding: 15px;
    }

    .terminal-input-line {
        flex-wrap: wrap;
    }

    .terminal-title {
        font-size: 0.8rem;
    }

    .prompt-user {
        /* Shorten prompt on mobile */
        display: none;
    }

    .terminal-input-line::before {
        content: "$ ";
        color: #22c55e;
        font-weight: 700;
        margin-right: 5px;
    }
}

/* Animated Gradient Background for Card */
.about-stats-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.15) 0%, transparent 70%);
    animation: rotateGradient 15s linear infinite;
}

@keyframes rotateGradient {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

.stat-item {
    text-align: center;
    padding: 1.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.stat-item:last-child {
    border-bottom: none;
}

.stat-number {
    font-size: 3.5rem;
    font-weight: 800;
    color: #fff;
    line-height: 1;
    margin-bottom: 0.5rem;
    background: linear-gradient(180deg, #ffffff, #94a3b8);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.stat-label {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--primary);
    font-weight: 600;
}

/* Experience Badge on Card */
.exp-badge-floating {
    position: absolute;
    top: 2rem;
    right: 2rem;
    background: rgba(59, 130, 246, 0.2);
    border: 1px solid var(--primary);
    color: #fff;
    padding: 8px 16px;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    box-shadow: 0 0 15px rgba(59, 130, 246, 0.4);
}

/* CTA Buttons */
.btn-premium {
    background: linear-gradient(135deg, var(--primary), #4f46e5);
    color: white;
    padding: 12px 30px;
    border-radius: 50px;
    font-weight: 600;
    border: none;
    box-shadow: 0 10px 20px -5px rgba(59, 130, 246, 0.5);
    transition: all 0.3s;
}

.btn-premium:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 30px -5px rgba(59, 130, 246, 0.7);
    color: white;
}

.btn-outline-premium {
    background: transparent;
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 12px 30px;
    border-radius: 50px;
    font-weight: 600;
    transition: all 0.3s;
}

.btn-outline-premium:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    border-color: #fff;
}

/* Contact Form Validation Styles */
.form-group-lux {
    position: relative;
    margin-bottom: 5px !important;
    /* Extremely tight gap */
}

.input-lux.is-invalid {
    border-color: #ef4444 !important;
    /* Red for error */
    background-image: none;
    /* Remove any default browser icons */
}

.input-lux.is-valid {
    border-color: #10b981 !important;
    /* Green for success */
}

.invalid-feedback {
    display: none;
    color: #ef4444;
    font-size: 0.85rem;
    margin-top: 5px;
    font-weight: 500;
    position: absolute;
    bottom: -22px;
    left: 15px;
    animation: fadeIn 0.3s ease;
}

.input-lux.is-invalid~.invalid-feedback {
    display: block;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-5px);
    }

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

/* --- Big TV / Large Screen Optimizations (4K) --- */
@media (min-width: 1921px) {
    html {
        font-size: 18px;
        /* Scale up base font size */
    }

    .container {
        max-width: 1600px !important;
        /* Allow wider content */
    }

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

    .hero-card-enhanced {
        padding: 3rem !important;
    }

    .footer-lux {
        padding: 5rem 0;
    }
}

/* --- Mobile Typography & Spacing Polish --- */
@media (max-width: 576px) {
    h1.display-4 {
        font-size: 2.5rem;
        /* Prevent wrapping overflow */
    }

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

    .container {
        padding-left: 1.5rem;
        padding-right: 1.5rem;
    }

    .hero-card-enhanced {
        padding: 1.5rem !important;
        /* Reduce padding on mobile card */
    }

    /* Reduce Orb intrusion on mobile text */
    .hero-orb {
        width: 200px;
        height: 200px;
        opacity: 0.4;
    }

    .section-title {
        font-size: 2.2rem;
        /* Better balance */
    }

    /* Better touch feedback */
    .btn:active {
        transform: scale(0.98);
    }

    /* Stack CTA buttons on mobile */
    .cta-group-mobile {
        flex-direction: column;
        width: 100%;
    }

    .cta-group-mobile .btn {
        width: 100%;
        /* Full width buttons */
        justify-content: center;
    }

    /* Fix gap between Home and About on mobile */
    #home {
        padding-top: 8rem !important;
        padding-bottom: 4rem !important;
        align-items: flex-start !important;
        height: auto !important;
        /* Ensure content flows naturally */
        min-height: auto !important;
    }
}