/* ==========================================================================
   Clean Portfolio Theme — Maroon Accent with 3D & Animation
   ========================================================================== */

/* ===== Page Loading Screen ===== */
.page-loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: transparent;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 99999;
    transition: opacity 0.6s ease, visibility 0.6s ease;
}

.page-loader.hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.loader-content {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
}

.loader-ring {
    position: absolute;
    width: 120px;
    height: 120px;
    border-radius: 50%;
    border: 3px solid transparent;
    border-top-color: #800000;
    border-right-color: rgba(128, 0, 0, 0.3);
    animation: loaderSpin 2s linear infinite;
}

.loader-ring:nth-child(2) {
    width: 100px;
    height: 100px;
    animation-duration: 2.5s;
    animation-direction: reverse;
    border-top-color: #a00000;
}

.loader-ring:nth-child(3) {
    width: 80px;
    height: 80px;
    animation-duration: 1.8s;
    border-top-color: #600000;
}

.loader-icon {
    position: relative;
    z-index: 2;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(128, 0, 0, 0.1);
    border-radius: 50%;
    border: 2px solid rgba(128, 0, 0, 0.3);
    animation: loaderPulse 2s ease-in-out infinite;
}

.loader-icon i {
    font-size: 1.8rem;
    color: #800000;
    animation: loaderIconRotate 3s ease-in-out infinite;
}

.loader-text {
    position: relative;
    z-index: 2;
    color: #800000;
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 1.2rem;
    font-weight: 600;
    letter-spacing: 0.15em;
    margin-top: 1rem;
    animation: loaderTextFade 1.5s ease-in-out infinite;
}

@keyframes loaderSpin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@keyframes loaderPulse {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(128, 0, 0, 0.4);
    }
    50% {
        transform: scale(1.1);
        box-shadow: 0 0 0 20px rgba(128, 0, 0, 0);
    }
}

@keyframes loaderIconRotate {
    0%, 100% { transform: rotateY(0deg); }
    50% { transform: rotateY(180deg); }
}

@keyframes loaderTextFade {
    0%, 100% { opacity: 0.5; }
    50% { opacity: 1; }
}

:root {
    --bg: #ffffff;
    --surface: #ffffff;
    --section-alt: #f8f9fa;
    --border: rgba(0, 0, 0, 0.08);
    --text: #111111;
    --text-secondary: #4b5563;
    --muted: #6b7280;
    --accent: #800000;
    --accent-hover: #6b0000;
    --accent-light: rgba(128, 0, 0, 0.08);
    --shadow: rgba(0, 0, 0, 0.06);
    --placeholder-bg: #f3f4f6;
    --placeholder-color: #9ca3af;
    --scrollbar-track: #f1f1f1;
    --carousel-control: #374151;
    --carousel-indicator: #d1d5db;
}

/* Dark mode variables - brighter, more readable */
body.dark-mode {
    --bg: #0f0f0f;
    --surface: #1a1a1a;
    --section-alt: #141414;
    --border: rgba(255, 255, 255, 0.12);
    --text: #f0f0f0;
    --text-secondary: #c0c0c0;
    --muted: #a0a0a0;
    --accent: #d44a4a;
    --accent-hover: #e06060;
    --accent-light: rgba(212, 74, 74, 0.15);
    --shadow: rgba(0, 0, 0, 0.4);
    --placeholder-bg: #2a2a2a;
    --placeholder-color: #666666;
    --scrollbar-track: #1a1a1a;
    --carousel-control: #555555;
    --carousel-indicator: #555555;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    min-height: 100vh;
    margin: 0;
    padding: 0;
    background: var(--bg);
    color: var(--text);
    font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    overflow-x: hidden;
    line-height: 1.7;
    /* Neon HUD crosshair cursor for mouse/trackpad users. */
    cursor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='36' height='36' viewBox='0 0 36 36'%3E%3Cg fill='none' stroke='%23800000' stroke-linecap='round'%3E%3Ccircle cx='18' cy='18' r='10' stroke-width='1.5'/%3E%3Cpath d='M18 2v8M18 26v8M2 18h8M26 18h8' stroke-width='2'/%3E%3Cpath d='M18 14v8M14 18h8' stroke-width='1.5'/%3E%3C/g%3E%3Ccircle cx='18' cy='18' r='2' fill='%23ff4d4d'/%3E%3C/svg%3E") 18 18, crosshair;
}

/* Actionable elements switch to a targeting reticle with an arrowhead. */
@media (pointer: fine) {
    a,
    button,
    [role="button"],
    input[type="submit"],
    input[type="button"],
    input[type="reset"],
    select,
    label[for] {
        cursor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='36' height='36' viewBox='0 0 36 36'%3E%3Cpath d='M5 3 29 17 18 20 14 31 5 3Z' fill='%23800000' stroke='%23ffb3b3' stroke-width='1.5' stroke-linejoin='round'/%3E%3Cpath d='m15 20 7 7' stroke='%23fff' stroke-width='1.5' stroke-linecap='round'/%3E%3C/svg%3E") 5 3, pointer;
    }

    input:not([type]),
    input[type="text"],
    input[type="email"],
    input[type="password"],
    input[type="search"],
    input[type="tel"],
    input[type="url"],
    textarea,
    [contenteditable="true"] {
        cursor: text;
    }
}

/* ===== Custom Animated Scrollbar ===== */
::-webkit-scrollbar {
    width: 12px;
}

::-webkit-scrollbar-track {
    background: var(--scrollbar-track);
    border-radius: 10px;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, var(--accent), var(--accent-hover));
    border-radius: 10px;
    border: 2px solid var(--scrollbar-track);
    transition: all 0.3s ease;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, var(--accent-hover), var(--accent));
    transform: scale(1.1);
}

/* ===== Animated Section Entrance ===== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pulseGlow {
    0%, 100% { box-shadow: 0 15px 35px var(--shadow); }
    50% { box-shadow: 0 20px 40px rgba(128, 0, 0, 0.25); }
}

section {
    padding: 5rem 0;
    position: relative;
    animation: fadeInUp 0.8s ease-out;
}

.bg-light {
    background: var(--section-alt) !important;
}

/* ===== Header / Navigation — Coding Vibe ===== */
.header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: var(--bg);
    border-bottom: 1px solid var(--border);
    transition: box-shadow 0.2s ease, border-color 0.3s ease;
}

.header.scrolled {
    box-shadow: 0 2px 8px var(--shadow);
    border-bottom-color: var(--accent);
}

.header .navbar {
    align-items: center;
    min-height: 72px;
    padding: 0.75rem 0;
}

/* Brand with terminal prompt */
.header .navbar-brand {
    gap: 0.75rem;
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text);
    position: relative;
    padding-left: 1.5rem;
    font-family: 'Fira Code', 'Courier New', monospace;
}

.header .navbar-brand::before {
    content: '>';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    color: var(--accent);
    font-weight: 700;
    font-size: 1rem;
    opacity: 0.8;
    animation: navPromptBlink 1.4s step-end infinite;
}

@keyframes navPromptBlink {
    0%, 100% { opacity: 0.8; }
    50% { opacity: 0.2; }
}

.header .brand-avatar {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    background: var(--accent-light);
    color: var(--accent);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    border: 1px solid var(--accent);
    transition: all 0.3s ease;
}

.header .navbar-brand:hover .brand-avatar {
    transform: rotate(15deg) scale(1.05);
    box-shadow: 0 0 20px rgba(128, 0, 0, 0.2);
}

.header .brand-title {
    display: block;
    line-height: 1.1;
    color: var(--text);
    font-family: 'Fira Code', 'Courier New', monospace;
    font-weight: 600;
}

.header .brand-subtitle {
    display: block;
    font-size: 0.75rem;
    color: var(--accent);
    font-family: 'Fira Code', 'Courier New', monospace;
    opacity: 0.7;
}

.header .navbar-nav {
    align-items: center;
}

/* Nav links with terminal style */
.header .nav-link {
    color: var(--text-secondary);
    padding: 0.5rem 0.75rem;
    font-weight: 500;
    position: relative;
    transition: all 0.3s ease;
    font-family: 'Fira Code', 'Courier New', monospace;
    font-size: 0.85rem;
    letter-spacing: 0.03em;
}

.header .nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0.5rem;
    right: 0.5rem;
    height: 2px;
    background: var(--accent);
    border-radius: 2px;
    opacity: 0;
}

.header .nav-link:hover::after,
.header .nav-link.active::after {
    opacity: 0.8;
}

.header .nav-link.active,
.header .nav-link:hover {
    color: var(--accent);
}

/* Nav toggle buttons */
.nav-toggle-btn {
    background: transparent;
    border: 1px solid var(--border);
    border-radius: 8px;
    width: 36px;
    height: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    transition: all 0.3s ease;
    font-size: 0.9rem;
}

.nav-toggle-btn:hover {
    background: var(--accent-light);
    color: var(--accent);
    border-color: var(--accent);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(128, 0, 0, 0.15);
}

.nav-toggle-btn.active {
    background: var(--accent-light);
    color: var(--accent);
    border-color: var(--accent);
}

.header .navbar-toggler {
    border-color: var(--border);
    color: var(--text);
    border-radius: 8px;
    padding: 0.4rem 0.6rem;
    transition: all 0.3s ease;
}

.header .navbar-toggler:hover {
    border-color: var(--accent);
    background: var(--accent-light);
}

.header .navbar-toggler-icon {
    filter: none;
}

body.dark-mode .navbar-toggler-icon {
    filter: invert(1);
}

/* Nav divider for mobile */
.header .dropdown-divider {
    border-color: var(--border);
    opacity: 0.5;
}

/* ===== Typography ===== */
.text-gradient {
    display: inline-block;
    background: linear-gradient(110deg, var(--accent), var(--accent-hover));
    -webkit-background-clip: text;
    color: transparent;
}

/* Playfair Display for headings — elegant & attractive */
h1, h2, h3, h4, h5, h6 {
    color: var(--text);
    font-family: 'Playfair Display', Georgia, serif;
    font-weight: 700;
    line-height: 1.3;
}

/* Coding vibe: headings get a subtle terminal prompt accent */
h2.section-title {
    position: relative;
    display: inline-block;
    font-family: 'Fira Code', 'Courier New', monospace;
    font-weight: 600;
    letter-spacing: 0.02em;
    padding-left: 1.2rem;
}

h2.section-title::before {
    content: '// ';
    color: var(--accent);
    font-weight: 700;
    opacity: 0.6;
    position: absolute;
    left: 0;
    top: 0;
}

h2.section-title::after {
    content: '';
    position: absolute;
    bottom: -12px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: var(--accent);
    border-radius: 3px;
    animation: pulseGlow 3s ease-in-out infinite;
}

/* Coding vibe: paragraph text with terminal output styling */
p, li {
    color: var(--text-secondary);
    line-height: 1.7;
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
}

/* Coding vibe: lead paragraphs get a code-like prefix */
.lead {
    font-size: 1.15rem;
    color: var(--text-secondary) !important;
    font-family: 'Fira Code', 'Courier New', monospace;
    font-weight: 400;
    position: relative;
    padding-left: 1.5rem;
    border-left: 2px solid var(--accent);
    opacity: 0.9;
}

/* Coding vibe: section subtitle text */
section .text-muted {
    font-family: 'Fira Code', 'Courier New', monospace;
    font-size: 0.9rem;
    letter-spacing: 0.02em;
    opacity: 0.8;
}

/* Coding vibe: card titles get a subtle code accent */
.card-title {
    font-family: 'Fira Code', 'Courier New', monospace;
    font-weight: 600;
    letter-spacing: 0.01em;
}

/* Coding vibe: skill items with terminal style */
.skill-item {
    font-family: 'Fira Code', 'Courier New', monospace;
    font-size: 0.85rem;
}

/* Coding vibe: experience item headings */
.experience-item h3 {
    font-family: 'Fira Code', 'Courier New', monospace;
    font-weight: 600;
}

/* Coding vibe: service card titles */
.service-card .card-title {
    font-family: 'Fira Code', 'Courier New', monospace;
    font-weight: 600;
}

/* Coding vibe: project card titles */
.project-card .card-title {
    font-family: 'Fira Code', 'Courier New', monospace;
    font-weight: 600;
}

/* Coding vibe: testimonial text */
.testimonial-carousel .blockquote p {
    font-family: 'Fira Code', 'Courier New', monospace;
    font-size: 0.95rem;
    font-style: normal;
}

/* Coding vibe: nav links */
.header .nav-link {
    font-family: 'Fira Code', 'Courier New', monospace;
    font-size: 0.85rem;
    font-weight: 500;
    letter-spacing: 0.03em;
}

/* Coding vibe: buttons */
.btn {
    font-family: 'Fira Code', 'Courier New', monospace;
    font-weight: 500;
    letter-spacing: 0.02em;
}

/* Coding vibe: form labels and inputs */
.form-label {
    font-family: 'Fira Code', 'Courier New', monospace;
    font-size: 0.85rem;
    font-weight: 500;
}

.form-control {
    font-family: 'Fira Code', 'Courier New', monospace;
    font-size: 0.9rem;
}

/* Coding vibe: footer text */
footer.footer p {
    font-family: 'Fira Code', 'Courier New', monospace;
    font-size: 0.82rem;
}

/* Coding vibe: greeting badge */
.greeting-badge {
    font-family: 'Fira Code', 'Courier New', monospace;
    font-size: 0.85rem;
    font-weight: 500;
}

/* Coding vibe: hero subtitle */
.hero-subtitle {
    font-family: 'Fira Code', 'Courier New', monospace;
    font-size: 1.15rem;
    font-weight: 500;
}

/* Coding vibe: hero bio */
.hero-bio {
    font-family: 'Fira Code', 'Courier New', monospace;
    font-size: 0.95rem;
    line-height: 1.8;
}

small, span {
    color: var(--muted);
}

a {
    color: var(--accent);
    transition: color 0.2s ease;
}

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

/* ===== Sections ===== */
.section-title {
    display: inline-block;
    font-size: clamp(1.75rem, 3vw, 2.5rem);
    font-weight: 700;
    font-family: 'Playfair Display', Georgia, serif;
    margin-bottom: 1rem;
    position: relative;
    color: var(--accent);
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -12px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: var(--accent);
    border-radius: 3px;
    animation: pulseGlow 3s ease-in-out infinite;
}

/* ===== Hero Section ===== */
.hero-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 4rem 0;
}

.hero-title {
    font-size: clamp(2.5rem, 6vw, 4rem);
    line-height: 1.1;
    letter-spacing: -0.03em;
    font-family: 'Playfair Display', Georgia, serif;
    color: var(--text);
}

.hero-text {
    font-size: 1.1rem;
    max-width: 700px;
    line-height: 1.7;
    margin-bottom: 2rem;
    color: var(--text-secondary);
}

.hero-image-wrap {
    position: relative;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    width: 100%;
}

/* Big circular profile image with 3D shadow */
.profile-image,
.profile-image-placeholder,
.profile-image-lg,
.profile-image-lg-placeholder {
    width: 100%;
    max-width: 480px;
    border-radius: 50%;
    border: 4px solid var(--accent);
    box-shadow: 0 15px 35px var(--shadow);
    aspect-ratio: 1 / 1;
    object-fit: cover;
    transition: all 0.4s ease;
    animation: pulseGlow 4s ease-in-out infinite;
}

.profile-image:hover,
.profile-image-lg:hover {
    transform: scale(1.03);
    box-shadow: 0 25px 50px var(--shadow);
    border-width: 6px;
}

.profile-image-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--placeholder-bg);
}

.profile-image-placeholder i {
    font-size: 4rem;
    color: var(--placeholder-color);
}

/* ===== Artistic Hero Section ===== */
.artistic-hero {
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, var(--bg) 0%, var(--section-alt) 100%);
}

/* Decorative background elements - artistic signature style */
.hero-decorations {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 0;
    pointer-events: none;
}

.deco-circle {
    position: absolute;
    border-radius: 50%;
    border: 2px solid var(--accent);
    opacity: 0.15;
}

.deco-circle-1 {
    width: 300px;
    height: 300px;
    top: -80px;
    right: -50px;
    border-width: 3px;
    opacity: 0.12;
    animation: floatSlow 20s ease-in-out infinite;
}

.deco-circle-2 {
    width: 200px;
    height: 200px;
    bottom: 10%;
    left: -40px;
    opacity: 0.1;
    animation: floatSlow 15s ease-in-out infinite reverse;
}

.deco-circle-3 {
    width: 150px;
    height: 150px;
    top: 50%;
    left: 30%;
    border-style: dashed;
    border-width: 1px;
    opacity: 0.08;
    animation: rotateSlow 30s linear infinite;
}

.deco-line {
    position: absolute;
    background: linear-gradient(180deg, var(--accent), transparent);
    opacity: 0.2;
}

.deco-line-1 {
    width: 2px;
    height: 150px;
    top: 20%;
    left: 10%;
    transform: rotate(25deg);
    animation: lineFloat 12s ease-in-out infinite;
}

.deco-line-2 {
    width: 100px;
    height: 2px;
    bottom: 20%;
    right: 10%;
    background: linear-gradient(90deg, transparent, var(--accent), transparent);
    opacity: 0.15;
    animation: lineExpand 8s ease-in-out infinite;
}

.deco-dot {
    position: absolute;
    width: 8px;
    height: 8px;
    background: var(--accent);
    border-radius: 50%;
    opacity: 0.3;
}

.deco-dot-1 {
    top: 30%;
    left: 20%;
    animation: pulseDot 4s ease-in-out infinite;
}

.deco-dot-2 {
    top: 60%;
    right: 15%;
    width: 12px;
    height: 12px;
    animation: pulseDot 5s ease-in-out infinite 1s;
}

.deco-dot-3 {
    bottom: 25%;
    left: 50%;
    width: 6px;
    height: 6px;
    animation: pulseDot 3s ease-in-out infinite 0.5s;
}

.deco-dot-4 {
    top: 15%;
    right: 25%;
    width: 4px;
    height: 4px;
    animation: pulseDot 6s ease-in-out infinite 2s;
}

/* Signature element - artistic flourish */
.hero-signature {
    position: absolute;
    bottom: 5%;
    left: 5%;
    font-family: 'Playfair Display', Georgia, serif;
    font-style: italic;
    font-size: 1.2rem;
    color: var(--accent);
    opacity: 0.3;
    transform: rotate(-5deg);
    z-index: 1;
    letter-spacing: 0.08em;
    animation: signatureFade 4s ease-in-out infinite;
    text-shadow: 0 0 20px rgba(128, 0, 0, 0.1);
}

.hero-signature::before {
    content: '~ ';
    opacity: 0.6;
}

.hero-signature::after {
    content: ' ~';
    opacity: 0.6;
}

@keyframes signatureFade {
    0%, 100% { opacity: 0.2; }
    50% { opacity: 0.35; }
}

/* Artistic brush stroke underline for title */
.artistic-title::before {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 0;
    width: 120px;
    height: 3px;
    background: linear-gradient(90deg, var(--accent), transparent);
    opacity: 0.4;
    border-radius: 2px;
}

/* Decorative vertical line on content side */
.hero-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: -30px;
    width: 1px;
    height: 100%;
    background: linear-gradient(180deg, transparent, var(--accent), transparent);
    opacity: 0.15;
}

/* Enhanced greeting badge with artistic flair */
.greeting-badge {
    position: relative;
    padding-left: 2rem;
    padding-right: 2rem;
}

.greeting-badge::after {
    content: '';
    position: absolute;
    top: 50%;
    right: 10px;
    width: 6px;
    height: 6px;
    background: var(--accent);
    border-radius: 50%;
    transform: translateY(-50%);
    animation: pulseDot 2s ease-in-out infinite;
}

/* Artistic corner accent */
.hero-decorations::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 200px;
    height: 200px;
    background: radial-gradient(circle at top right, var(--accent-light), transparent);
    opacity: 0.3;
    z-index: 0;
}

/* Text decoration for bio */
.hero-bio-wrapper {
    max-width: 600px;
    position: relative;
}

.hero-bio-wrapper::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(180deg, var(--accent), transparent);
    opacity: 0.3;
}

/* Geometric accent shapes */
.deco-geo {
    position: absolute;
    border: 1px solid var(--accent);
    opacity: 0.1;
}

.deco-geo-1 {
    width: 60px;
    height: 60px;
    top: 15%;
    right: 20%;
    transform: rotate(45deg);
    animation: rotateSlow 25s linear infinite;
}

.deco-geo-2 {
    width: 40px;
    height: 40px;
    bottom: 20%;
    left: 15%;
    border-radius: 50%;
    animation: pulseDot 7s ease-in-out infinite;
}

/* Hero content positioning */
.hero-content {
    position: relative;
    z-index: 2;
}

.hero-greeting {
    overflow: hidden;
    animation: fadeInUp 0.8s ease-out;
}

.greeting-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.5rem 1.25rem;
    background: var(--accent-light);
    color: var(--accent);
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.95rem;
    border: 1px solid var(--accent);
    box-shadow: 0 4px 12px rgba(128, 0, 0, 0.1);
    position: relative;
}

.greeting-badge::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    border-radius: 50px;
    background: linear-gradient(45deg, var(--accent), var(--accent-hover));
    opacity: 0.1;
    z-index: -1;
    animation: borderPulse 3s ease-in-out infinite;
}

/* Artistic title styling */
.artistic-title {
    font-size: clamp(2.8rem, 7vw, 4.5rem);
    line-height: 1.05;
    letter-spacing: -0.04em;
    position: relative;
    display: inline-block;
}

.name-highlight {
    position: relative;
    display: inline-block;
}

.name-highlight::after {
    content: '';
    position: absolute;
    bottom: 5px;
    left: 0;
    width: 100%;
    height: 8px;
    background: var(--accent-light);
    z-index: -1;
    border-radius: 4px;
    animation: highlightPulse 4s ease-in-out infinite;
}

/* Subtitle with decorative underline */
.hero-subtitle-wrapper {
    position: relative;
    display: inline-block;
}

.hero-subtitle {
    font-size: 1.35rem;
    font-weight: 500;
    color: var(--text-secondary);
    margin-bottom: 0;
    position: relative;
}

.hero-subtitle::before {
    content: '///';
    position: absolute;
    left: -30px;
    color: var(--accent);
    opacity: 0.4;
    font-weight: 700;
}

.subtitle-underline {
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, var(--accent), var(--accent-hover));
    border-radius: 2px;
    margin-top: 0.75rem;
    margin-left: 30px;
    animation: expandWidth 1s ease-out 0.5s both;
    position: relative;
}

.subtitle-underline::after {
    content: '';
    position: absolute;
    right: -8px;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 4px;
    background: var(--accent);
    border-radius: 50%;
}

/* Bio text styling */
.hero-bio-wrapper {
    max-width: 600px;
    position: relative;
    padding-left: 20px;
    margin-left: 10px;
}

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

/* Artistic buttons */
.artistic-btn {
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
    border-radius: 8px;
}

.artistic-btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.artistic-btn:hover::before {
    width: 300px;
    height: 300px;
}

.artistic-btn::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    transform: translateX(-100%);
    transition: transform 0.6s ease;
}

.artistic-btn:hover::after {
    transform: translateX(100%);
}

.artistic-btn-outline {
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
    border-radius: 8px;
}

.artistic-btn-outline::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, var(--accent-light), transparent);
    transition: left 0.5s ease;
}

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

.artistic-btn-outline::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border: 1px solid var(--accent);
    opacity: 0;
    transition: opacity 0.3s ease;
    border-radius: 8px;
}

.artistic-btn-outline:hover::after {
    opacity: 1;
}

/* Hero visual/image styling - aligned top and attractive */
.hero-visual {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: flex-start;
    justify-content: end;
    padding-top: 2rem;
}

.hero-image-wrapper {
    position: relative;
    display: inline-block;
}

/* Attractive profile image with enhanced styling */
.hero-image-wrapper img,
.hero-image-wrapper .profile-image-placeholder {
    width: 100%;
    max-width: 400px;
    border-radius: 50%;
    border: 5px solid var(--accent);
    box-shadow: 
        0 20px 60px var(--shadow),
        0 0 0 10px var(--accent-light),
        0 0 0 20px rgba(128, 0, 0, 0.05);
    animation: pulseGlow 4s ease-in-out infinite, floatProfile 6s ease-in-out infinite;
    transition: all 0.4s ease;
    position: relative;
    z-index: 2;
}

.hero-image-wrapper img:hover {
    transform: scale(1.05) rotate(2deg);
    box-shadow: 
        0 30px 70px var(--shadow),
        0 0 0 15px var(--accent-light),
        0 0 0 30px rgba(128, 0, 0, 0.08);
    border-width: 6px;
}

.profile-image-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--placeholder-bg);
    aspect-ratio: 1 / 1;
}

.profile-image-placeholder i {
    font-size: 4rem;
    color: var(--placeholder-color);
}

/* Decorative ring around profile image */
.hero-image-wrapper::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 110%;
    height: 110%;
    border: 2px dashed var(--accent);
    border-radius: 50%;
    opacity: 0.2;
    animation: rotateSlow 30s linear infinite;
    z-index: 1;
}

.hero-image-wrapper::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 120%;
    height: 120%;
    border: 1px solid var(--accent);
    border-radius: 50%;
    opacity: 0.1;
    animation: rotateSlow 40s linear infinite reverse;
    z-index: 0;
}

/* Floating animations */
@keyframes floatSlow {
    0%, 100% {
        transform: translateY(0) rotate(0deg);
    }
    50% {
        transform: translateY(-20px) rotate(180deg);
    }
}

@keyframes floatProfile {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-15px);
    }
}

@keyframes rotateSlow {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

@keyframes lineFloat {
    0%, 100% {
        transform: translateY(0) rotate(25deg);
        opacity: 0.2;
    }
    50% {
        transform: translateY(-20px) rotate(25deg);
        opacity: 0.35;
    }
}

@keyframes lineExpand {
    0%, 100% {
        transform: scaleX(1);
        opacity: 0.15;
    }
    50% {
        transform: scaleX(1.5);
        opacity: 0.25;
    }
}

@keyframes pulseDot {
    0%, 100% {
        opacity: 0.3;
        transform: scale(1);
    }
    50% {
        opacity: 0.6;
        transform: scale(1.5);
    }
}

@keyframes expandWidth {
    from {
        width: 0;
        opacity: 0;
    }
    to {
        width: 80px;
        opacity: 1;
    }
}

@keyframes borderPulse {
    0%, 100% { opacity: 0.05; }
    50% { opacity: 0.15; }
}

@keyframes highlightPulse {
    0%, 100% { height: 8px; }
    50% { height: 10px; }
}

/* Responsive adjustments */
@media (max-width: 992px) {
    .deco-circle-1 {
        width: 200px;
        height: 200px;
        top: -40px;
        right: -20px;
    }

    .deco-circle-2 {
        width: 150px;
        height: 150px;
    }

    .artistic-title {
        font-size: clamp(2rem, 8vw, 3rem);
    }

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

@media (max-width: 768px) {
    .artistic-hero {
        padding: 3rem 0;
    }

    .hero-image-wrapper {
        margin-top: 3rem;
    }

    .hero-actions .btn {
        width: 100%;
    }

    .deco-line-1,
    .deco-dot-1,
    .deco-dot-2,
    .deco-dot-3 {
        display: none;
    }
}

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

    .greeting-badge {
        font-size: 0.85rem;
        padding: 0.4rem 1rem;
    }
}

/* ===== Cards with 3D Effects ===== */
.card,
.glass-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 16px;
    box-shadow: 0 8px 25px var(--shadow);
    transition: all 0.3s ease;
    transform: translateZ(0);
}

.card:hover,
.glass-card:hover {
    transform: translateY(-8px) translateZ(0);
    box-shadow: 0 20px 40px var(--shadow);
}

.project-card {
    border-radius: 16px;
    overflow: hidden;
    position: relative;
}

/* Project images with shadow */
.project-image,
.project-image-placeholder,
.project-detail-image,
.project-detail-image-placeholder {
    width: 100%;
    max-width: 100%;
    height: 200px;
    display: block;
    border-radius: 12px 12px 0 0;
    border: none;
    box-shadow: 0 10px 30px var(--shadow);
    object-fit: cover;
    background: var(--placeholder-bg);
}

.project-detail-image,
.project-detail-image-placeholder {
    height: auto;
    max-height: 500px;
    border-radius: 16px;
}

.project-image-placeholder {
    height: 200px;
    min-height: unset;
    aspect-ratio: unset;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--placeholder-color);
    background: var(--placeholder-bg);
}

.project-detail-image-placeholder {
    min-height: 300px;
    aspect-ratio: 16 / 9;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--placeholder-color);
    background: var(--placeholder-bg);
}

/* Compact per-card media carousel (home/projects grids) */
.project-card-carousel .carousel-item video,
.project-card-carousel .carousel-item img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.project-card-carousel .carousel-control-prev,
.project-card-carousel .carousel-control-next {
    width: 12%;
    opacity: 0;
    transition: opacity 0.2s ease;
}

.project-card-carousel:hover .carousel-control-prev,
.project-card-carousel:hover .carousel-control-next {
    opacity: 1;
}

.project-card-carousel .carousel-control-prev-icon,
.project-card-carousel .carousel-control-next-icon {
    width: 1.5rem;
    height: 1.5rem;
    background-color: rgba(0, 0, 0, 0.4);
    border-radius: 50%;
    background-size: 60%;
}

.project-card-indicators {
    margin-bottom: 0.5rem;
}

.project-card-indicators [data-bs-target] {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.6);
    border: none;
    opacity: 1;
}

.project-card-indicators [data-bs-target].active {
    background-color: #fff;
}

.project-media-play-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.5);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
}

.carousel-item {
    position: relative;
}

/* Project detail page: hero carousel + thumbnail strip */
.project-detail-carousel .carousel-item video,
.project-detail-carousel .carousel-item img {
    width: 100%;
}

.project-gallery-thumbs {
    max-width: 100%;
}

.project-gallery-thumb {
    position: relative;
    display: block;
    width: 80px;
    height: 60px;
    border-radius: 8px;
    overflow: hidden;
    border: 2px solid transparent;
    opacity: 0.65;
    transition: opacity 0.15s ease, border-color 0.15s ease;
}

.project-gallery-thumb img,
.project-gallery-thumb video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.project-gallery-thumb:hover,
.project-gallery-thumb.active {
    opacity: 1;
    border-color: var(--primary, #800000);
}

/* Whole project card is clickable via a dedicated invisible overlay link
   (a direct child of .project-card, not nested inside .card-body) -- this
   avoids Bootstrap's .stretched-link trick, which breaks here because
   .card-body gets a `transform` on hover (below) and any transformed
   element becomes a new containing block for absolutely-positioned
   descendants, which would shrink the overlay down to just the card-body
   box the instant the card is hovered. */
.project-card {
    cursor: pointer;
}

.project-card-link {
    position: absolute;
    inset: 0;
    z-index: 1;
}

/* These controls need their own stacking so they stay independently
   clickable above the full-card overlay link. */
.project-card .card-body a,
.project-card .card-body button,
.project-card-carousel .carousel-control-prev,
.project-card-carousel .carousel-control-next,
.project-card-indicators [data-bs-target],
.project-card video[controls] {
    position: relative;
    z-index: 2;
}

.project-card .card-body {
    transition: transform 0.2s ease;
}

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

.project-card .card-title,
.service-card .card-title,
.experience-item h3,
.section-title {
    color: var(--text);
    font-family: 'Playfair Display', Georgia, serif;
}

.card-text,
.text-muted {
    color: var(--muted) !important;
}

.service-card {
    border-radius: 16px;
    padding: 2rem;
}

.service-icon {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: var(--accent-light);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.25rem;
    box-shadow: 0 6px 16px rgba(128, 0, 0, 0.15);
}

.service-icon i {
    font-size: 1.5rem;
    color: var(--accent);
}

.skill-item {
    padding: 0.75rem 1rem;
    border-radius: 12px;
    background: var(--surface) !important;
    border: 1px solid var(--border);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    width: 100%;
    transition: all 0.2s ease;
}

.skill-item:hover {
    background: var(--accent-light) !important;
    transform: translateX(4px);
}

.skill-item span {
    color: var(--text-secondary);
}

/* ===== Testimonials ===== */
.testimonial-img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 1rem;
    border: 3px solid var(--accent);
    box-shadow: 0 8px 20px var(--shadow);
}

.testimonial-carousel .carousel-item {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 2rem;
}

.testimonial-carousel .carousel-control-prev-icon,
.testimonial-carousel .carousel-control-next-icon {
    background-color: var(--carousel-control);
    border-radius: 50%;
    width: 48px;
    height: 48px;
}

.testimonial-carousel .carousel-indicators [data-bs-target] {
    width: 12px;
    height: 12px;
    background-color: var(--carousel-indicator);
}

.testimonial-carousel .carousel-indicators [data-bs-target].active {
    background-color: var(--accent);
}

.blockquote-footer {
    color: var(--muted);
}

.blockquote-footer strong {
    color: var(--text);
}

/* ===== Experience Timeline ===== */
.experience-timeline {
    padding-left: 2rem;
    position: relative;
}

.experience-timeline::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0.75rem;
    width: 2px;
    height: 100%;
    background: rgba(128, 0, 0, 0.3);
}

body.dark-mode .experience-timeline::before {
    background: rgba(212, 74, 74, 0.4);
}

.experience-item {
    position: relative;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 16px;
    box-shadow: 0 4px 12px var(--shadow);
    transition: all 0.2s ease;
}

.experience-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px var(--shadow);
}

.experience-item::before {
    content: '';
    position: absolute;
    top: 1.5rem;
    left: -0.75rem;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: var(--accent);
    box-shadow: 0 0 0 4px var(--accent-light);
}

body.dark-mode .experience-item::before {
    box-shadow: 0 0 0 4px rgba(212, 74, 74, 0.25);
}

.experience-item h3 {
    color: var(--text);
}

.experience-item p {
    color: var(--text-secondary);
}

/* ===== Contact Info ===== */
.contact-info-item {
    padding: 1.5rem;
    background: var(--surface);
    border-radius: 16px;
    border: 1px solid var(--border);
    text-align: center;
}

.contact-info-icon {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 0.75rem;
    background: var(--accent-light);
    box-shadow: 0 6px 16px rgba(128, 0, 0, 0.15);
}

.contact-info-icon i {
    color: var(--accent);
    font-size: 1.25rem;
}

/* ===== Buttons with 3D Effect ===== */
.btn-primary {
    background: var(--accent);
    border: none;
    color: #fff;
    box-shadow: 0 6px 16px rgba(128, 0, 0, 0.25);
    border-radius: 8px;
    transition: all 0.2s ease;
    transform: translateZ(0);
}

.btn-primary:hover,
.btn-primary:focus {
    background: var(--accent-hover);
    box-shadow: 0 10px 24px rgba(128, 0, 0, 0.3);
    transform: translateY(-2px);
    color: #fff;
}

.btn-primary:active {
    transform: translateY(1px);
    box-shadow: 0 4px 12px rgba(128, 0, 0, 0.2);
}

.btn-outline-primary,
.btn-outline-success,
.btn-outline-dark {
    border-width: 1px;
    border-style: solid;
    border-color: var(--border);
    background: transparent;
    color: var(--text);
    border-radius: 8px;
}

.btn-outline-primary:hover,
.btn-outline-success:hover,
.btn-outline-dark:hover {
    background: var(--accent-light);
    color: var(--accent);
    border-color: var(--accent);
}

/* Download CV Button - Special Focus */
.btn-outline-secondary {
    position: relative;
    border-width: 2px;
    border-color: var(--accent);
    color: var(--accent);
    font-weight: 600;
    overflow: hidden;
    transition: all 0.3s ease;
}

.btn-outline-secondary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, var(--accent), transparent);
    transition: left 0.5s ease;
}

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

.btn-outline-secondary:hover {
    background: var(--accent);
    color: #fff;
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(128, 0, 0, 0.3);
}

.btn-outline-secondary:active {
    transform: translateY(-1px);
}

/* Pulse animation for Download CV button to draw attention */
.btn-outline-secondary {
    animation: cvButtonPulse 2s ease-in-out infinite;
}

@keyframes cvButtonPulse {
    0%, 100% {
        box-shadow: 0 0 0 0 rgba(128, 0, 0, 0.2);
    }
    50% {
        box-shadow: 0 0 0 8px rgba(128, 0, 0, 0);
    }
}

/* ===== Forms ===== */
.form-control,
textarea.form-control,
select.form-control {
    background: var(--surface);
    border: 1px solid var(--border);
    color: var(--text);
    border-radius: 8px;
}

.form-control:focus,
textarea.form-control:focus,
select.form-control:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 0.25rem var(--accent-light);
    background: var(--surface);
    color: var(--text);
}

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

.form-label {
    color: var(--text);
    font-weight: 500;
}

.btn-close {
    filter: none;
}

body.dark-mode .btn-close {
    filter: invert(1);
}

/* ===== Footer ===== */
footer.footer {
    padding: 3rem 0;
    border-top: 1px solid var(--border);
}

footer.footer p {
    color: var(--muted);
}

footer.footer a {
    color: var(--accent);
}

footer.footer .social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: transparent;
    margin: 0 0.35rem;
    transition: all 0.3s ease;
    text-decoration: none;
    font-size: 1.3rem;
}

footer.footer .social-link:hover {
    transform: translateY(-3px) scale(1.1);
    background: var(--accent);
    color: #ffffff !important;
    text-decoration: none;
}

/* Social link brand colors */
footer.footer .social-link.linkedin { color: #0A66C2; }
footer.footer .social-link.github { color: #333333; }
body.dark-mode footer.footer .social-link.github { color: #f0f0f0; }
footer.footer .social-link.instagram { color: #E4405F; }
footer.footer .social-link.facebook { color: #1877F2; }
footer.footer .social-link.leetcode { color: #FFA116; }
footer.footer .social-link.email { color: #EA4335; }
footer.footer .social-link.whatsapp { color: #25D366; }

/* ===== Page content ===== */
.page-content-wrapper {
    position: relative;
    z-index: 10;
}

/* ===== Project Detail Section ===== */
.project-detail-section {
    padding: 4rem 0;
}

/* Background only behind text content */
.project-detail-content {
    background: var(--section-alt);
    padding: 3rem;
    border-radius: 8px;
    border-left: 4px solid var(--accent);
}

/* Hero - no background, transparent */
.project-detail-hero {
    background: transparent;
    padding: 3rem 0 2rem;
}

/* ===== Project Detail Title ===== */
.project-detail-title {
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 700;
    font-family: 'Playfair Display', Georgia, serif;
    color: var(--text);
    margin-bottom: 1rem;
    position: relative;
    display: inline-block;
}

.project-detail-title::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 60px;
    height: 3px;
    background: var(--accent);
}

/* ===== Back to top button ===== */
#backToTop {
    z-index: 999;
    opacity: 0.9;
    border-radius: 50%;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ===== Pagination ===== */
.page-link {
    color: var(--accent);
    background: var(--surface);
    border-color: var(--border);
}

.page-link:hover {
    color: var(--accent-hover);
    background: var(--accent-light);
    border-color: var(--accent);
}

.page-item.active .page-link {
    background: var(--accent);
    border-color: var(--accent);
    color: #fff;
}

.page-item.disabled .page-link {
    background: var(--surface);
    border-color: var(--border);
    color: var(--muted);
}

/* ===== Alerts ===== */
.alert-success {
    background: rgba(16, 185, 129, 0.1);
    border-color: rgba(16, 185, 129, 0.3);
    color: var(--text);
}

.alert-error {
    background: rgba(239, 68, 68, 0.1);
    border-color: rgba(239, 68, 68, 0.3);
    color: var(--text);
}

/* ===== Responsive ===== */
@media (max-width: 992px) {
    .hero-title { font-size: clamp(2.2rem, 7vw, 3.2rem); }
    .hero-text { font-size: 1rem; }
}

@media (max-width: 768px) {
    .hero-section { padding: 3rem 0; }
    .section-title::after { width: 50px; }
    .hero-actions .btn { width: 100%; }
    .experience-timeline { padding-left: 1.5rem; }
}

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

/* ==========================================================================
   Skills Showcase — Interactive Card Design (Home Page)
   ========================================================================== */

.skills-showcase-section {
    position: relative;
    background: var(--bg);
    overflow: hidden;
}

.skills-showcase-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--accent), transparent);
    opacity: 0.2;
}

.skills-showcase-section::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--accent), transparent);
    opacity: 0.2;
}

.skill-showcase-card {
    position: relative;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 1.5rem 1rem;
    text-align: center;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    cursor: default;
    overflow: hidden;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 140px;
}

.skill-showcase-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, var(--accent-light) 0%, transparent 50%, var(--accent-light) 100%);
    opacity: 0;
    transition: opacity 0.4s ease;
    border-radius: 16px;
}

.skill-showcase-card:hover {
    transform: translateY(-10px) scale(1.03);
    border-color: var(--accent);
    box-shadow: 0 20px 40px rgba(128, 0, 0, 0.15), 0 0 0 1px var(--accent);
}

.skill-showcase-card:hover::before {
    opacity: 1;
}

.skill-showcase-inner {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
}

.skill-showcase-icon {
    width: 56px;
    height: 56px;
    border-radius: 14px;
    background: var(--accent-light);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    color: var(--accent);
    transition: all 0.4s ease;
    box-shadow: 0 4px 12px rgba(128, 0, 0, 0.1);
}

.skill-showcase-card:hover .skill-showcase-icon {
    background: var(--accent);
    color: #fff;
    transform: scale(1.1) rotate(-5deg);
    box-shadow: 0 8px 24px rgba(128, 0, 0, 0.25);
}

.skill-showcase-name {
    font-family: 'Fira Code', 'Courier New', monospace;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text);
    margin: 0;
    line-height: 1.3;
    transition: color 0.3s ease;
}

.skill-showcase-card:hover .skill-showcase-name {
    color: var(--accent);
}

/* Glow effect on hover */
.skill-showcase-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: radial-gradient(circle, var(--accent-light), transparent);
    transform: translate(-50%, -50%);
    transition: width 0.6s ease, height 0.6s ease, opacity 0.6s ease;
    opacity: 0;
    pointer-events: none;
    z-index: 0;
}

.skill-showcase-card:hover .skill-showcase-glow {
    width: 200px;
    height: 200px;
    opacity: 0.4;
}

/* Dark mode adjustments */
body.dark-mode .skill-showcase-card {
    border-color: rgba(255, 255, 255, 0.08);
}

body.dark-mode .skill-showcase-card:hover {
    border-color: var(--accent);
    box-shadow: 0 20px 40px rgba(212, 74, 74, 0.2), 0 0 0 1px var(--accent);
}

/* ===== Skill Tags (About Page) ===== */

.skill-tag {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.6rem 1.2rem;
    margin: 0.35rem;
    font-family: 'Fira Code', 'Courier New', monospace;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-secondary);
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 50px;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    cursor: default;
    position: relative;
    overflow: hidden;
}

.skill-tag::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, var(--accent-light), transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
    border-radius: 50px;
}

.skill-tag:hover {
    transform: translateY(-3px) scale(1.05);
    border-color: var(--accent);
    color: var(--accent);
    box-shadow: 0 8px 20px rgba(128, 0, 0, 0.12);
}

.skill-tag:hover::before {
    opacity: 1;
}

.skill-tag i {
    font-size: 1rem;
    color: var(--accent);
    transition: transform 0.3s ease;
}

.skill-tag:hover i {
    transform: scale(1.2);
}

/* Dark mode */
body.dark-mode .skill-tag {
    border-color: rgba(255, 255, 255, 0.08);
}

body.dark-mode .skill-tag:hover {
    border-color: var(--accent);
    box-shadow: 0 8px 20px rgba(212, 74, 74, 0.15);
}

/* Responsive */
@media (max-width: 576px) {
    .skill-showcase-card {
        min-height: 120px;
        padding: 1rem 0.75rem;
    }

    .skill-showcase-icon {
        width: 44px;
        height: 44px;
        font-size: 1.3rem;
        border-radius: 12px;
    }

    .skill-showcase-name {
        font-size: 0.78rem;
    }

    .skill-tag {
        padding: 0.45rem 0.9rem;
        font-size: 0.78rem;
        margin: 0.25rem;
    }
}

/* ===== Home Page Motion Enhancements ===== */
.home-page .artistic-hero::after {
    content: '';
    position: absolute;
    inset: 10% 6%;
    border: 1px solid var(--accent-light);
    border-radius: 32px;
    pointer-events: none;
    opacity: .55;
    animation: homeFramePulse 7s ease-in-out infinite;
}

.home-page .hero-image-wrapper {
    animation: homeImageDrift 9s ease-in-out infinite;
}

.home-page .project-card,
.home-page .service-card,
.home-page .skill-item,
.home-page .experience-item {
    transition: transform .35s cubic-bezier(.2, .8, .2, 1), box-shadow .35s ease;
}

.home-page .project-card:hover,
.home-page .service-card:hover {
    transform: translateY(-10px) rotate(-.7deg);
}

.home-page .skill-item:hover {
    transform: translateY(-5px) scale(1.04);
}

.home-page .experience-item:hover {
    transform: translateX(10px);
}

@keyframes homeFramePulse {
    0%, 100% { transform: scale(.97); opacity: .22; }
    50% { transform: scale(1); opacity: .58; }
}

@keyframes homeImageDrift {
    0%, 100% { transform: translate3d(0, 0, 0) rotate(0deg); }
    50% { transform: translate3d(0, -12px, 0) rotate(1deg); }
}

@media (prefers-reduced-motion: reduce) {
    .home-page .artistic-hero::after,
    .home-page .hero-image-wrapper { animation: none; }
}

/* ==========================================================================
   About Page — Coding Vibe Enhancements
   ========================================================================== */

/* About hero with terminal-style frame */
.about-hero-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 20px;
    box-shadow: 0 12px 35px var(--shadow);
    overflow: hidden;
    position: relative;
    transition: all 0.3s ease;
}


.about-hero-card .about-header-bar {
    display: flex;
    align-items: center;
    padding: 0.6rem 1.25rem;
    background: var(--section-alt);
    border-bottom: 1px solid var(--border);
    font-family: 'Fira Code', 'Courier New', monospace;
    font-size: 0.8rem;
    color: var(--muted);
}

.about-hero-card .about-header-bar .about-dots {
    display: flex;
    gap: 0.4rem;
    margin-right: 1rem;
}

.about-hero-card .about-header-bar .about-dot {
    width: 15px;
    height: 15px;
    border-radius: 50%;
}

.about-hero-card .about-header-bar .about-dot.red { background: #ff5f57; }
.about-hero-card .about-header-bar .about-dot.yellow { background: #ffbd2e; }
.about-hero-card .about-header-bar .about-dot.green { background: #28c840; }

.about-hero-card .about-header-bar .about-path {
    color: var(--text-secondary);
    font-weight: 500;
}

.about-hero-card .about-header-bar .about-path i {
    color: var(--accent);
    margin-right: 0.3rem;
}

.about-hero-card .about-body {
    padding: 2rem;
}

/* About profile image with terminal border */
.about-profile-wrap {
    position: relative;
    display: inline-block;
}

.about-profile-wrap img,
.about-profile-wrap .profile-image-lg-placeholder {
    width: 100%;
    max-width: 300px;
    border-radius: 16px;
    border: 3px solid var(--accent);
    box-shadow: 0 10px 30px var(--shadow);
    transition: all 0.3s ease;
}

.about-profile-wrap img:hover {
    transform: scale(1.03);
    box-shadow: 0 15px 40px var(--shadow);
}

.about-profile-wrap::after {
    content: '>';
    position: absolute;
    top: -10px;
    right: -10px;
    width: 36px;
    height: 36px;
    background: var(--accent);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Fira Code', monospace;
    font-weight: 700;
    font-size: 1.1rem;
    box-shadow: 0 4px 12px rgba(128,0,0,0.3);
}

/* About info with terminal styling */
.about-info-line {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
    font-family: 'Fira Code', 'Courier New', monospace;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.about-info-line .info-prompt {
    color: var(--accent);
    font-weight: 700;
    flex-shrink: 0;
}

.about-info-line .info-label {
    color: var(--muted);
    opacity: 0.7;
}

.about-info-line .info-value {
    color: var(--text);
    font-weight: 500;
}

/* About bio in terminal style */
.about-bio-terminal {
    font-family: 'Fira Code', 'Courier New', monospace;
    font-size: 0.95rem;
    line-height: 1.8;
    color: var(--text-secondary);
    padding: 1rem;
    background: var(--section-alt);
    border-radius: 8px;
    border-left: 3px solid var(--accent);
    position: relative;
    margin-top: 1rem;
}

.about-bio-terminal::before {
    content: '/* bio */';
    position: absolute;
    top: -0.7rem;
    left: 1rem;
    background: var(--section-alt);
    padding: 0 0.5rem;
    font-size: 0.75rem;
    color: var(--accent);
    font-family: 'Fira Code', monospace;
    font-weight: 600;
}

/* ===== New Skill Section — Terminal Progress Bars ===== */
.skills-terminal-section {
    position: relative;
}

.skills-terminal-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80%;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--accent), transparent);
    opacity: 0.3;
}

.skill-terminal-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 1.25rem;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.skill-terminal-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 30px var(--shadow);
    border-color: var(--accent);
}

.skill-terminal-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 3px;
    height: 100%;
    background: linear-gradient(180deg, var(--accent), var(--accent-hover));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.skill-terminal-card:hover::before {
    opacity: 1;
}

.skill-terminal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0.75rem;
}

.skill-terminal-name {
    font-family: 'Fira Code', 'Courier New', monospace;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.skill-terminal-name i {
    color: var(--accent);
    font-size: 1rem;
    width: 20px;
    text-align: center;
}

.skill-terminal-percent {
    font-family: 'Fira Code', 'Courier New', monospace;
    font-size: 0.8rem;
    color: var(--accent);
    font-weight: 600;
}

/* Terminal-style progress bar */
.skill-terminal-bar {
    width: 100%;
    height: 8px;
    background: var(--section-alt);
    border-radius: 4px;
    overflow: hidden;
    position: relative;
    border: 1px solid var(--border);
}

.skill-terminal-bar .skill-terminal-fill {
    height: 100%;
    border-radius: 4px;
    background: linear-gradient(90deg, var(--accent), var(--accent-hover));
    position: relative;
    transition: width 1.5s ease;
    width: 0%;
}

.skill-terminal-bar .skill-terminal-fill.animated {
    width: var(--skill-percent);
}

.skill-terminal-bar .skill-terminal-fill::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 20px;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3));
    border-radius: 0 4px 4px 0;
}

/* Skill category badges */
.skill-category-badge {
    display: inline-block;
    font-family: 'Fira Code', 'Courier New', monospace;
    font-size: 0.75rem;
    padding: 0.25rem 0.75rem;
    background: var(--accent-light);
    color: var(--accent);
    border: 1px solid var(--accent);
    border-radius: 20px;
    font-weight: 500;
    margin-bottom: 1rem;
}

/* ===== Project Page — Coding Vibe Enhancements ===== */

/* Project hero with terminal header */
.projects-hero-terminal {
    position: relative;
    overflow: hidden;
}

.projects-hero-terminal::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, var(--accent-light) 0%, transparent 50%);
    opacity: 0.3;
    pointer-events: none;
}

.projects-hero-terminal .terminal-hero-bar {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.4rem 1rem;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 8px;
    font-family: 'Fira Code', 'Courier New', monospace;
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-bottom: 1rem;
    box-shadow: 0 4px 12px var(--shadow);
}

.projects-hero-terminal .terminal-hero-bar i {
    color: var(--accent);
}

/* Project card with terminal accent */
.project-card {
    position: relative;
    overflow: hidden;
}

.project-card::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--accent), transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
}

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

/* Project card terminal footer */
.project-card-footer {
    display: flex;
    align-items: center;
    padding: 0.5rem 1.25rem;
    background: var(--section-alt);
    border-top: 1px solid var(--border);
    font-family: 'Fira Code', 'Courier New', monospace;
    font-size: 0.72rem;
    color: var(--muted);
    gap: 0.5rem;
}

.project-card-footer .project-status-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--accent);
    animation: pulseGlow 2s ease-in-out infinite;
}

/* Project tech tags */
.project-tech-tag {
    display: inline-block;
    font-family: 'Fira Code', 'Courier New', monospace;
    font-size: 0.7rem;
    padding: 0.2rem 0.5rem;
    background: var(--accent-light);
    color: var(--accent);
    border: 1px solid var(--accent);
    border-radius: 3px;
    font-weight: 500;
    margin: 0.15rem;
    transition: all 0.2s ease;
}

.project-tech-tag:hover {
    background: var(--accent);
    color: #fff;
    transform: translateY(-1px);
}

/* Project card image overlay with terminal prompt */
.project-card .card-img-top {
    position: relative;
}

.project-card .card-img-top::after {
    content: '$ view project';
    position: absolute;
    bottom: 10px;
    left: 10px;
    font-family: 'Fira Code', monospace;
    font-size: 0.75rem;
    color: #fff;
    background: rgba(128,0,0,0.8);
    padding: 0.3rem 0.6rem;
    border-radius: 4px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.project-card:hover .card-img-top::after {
    opacity: 1;
}

/* Pagination with terminal style */
.terminal-pagination .page-link {
    font-family: 'Fira Code', 'Courier New', monospace;
    font-size: 0.85rem;
    border-radius: 6px;
    margin: 0 0.2rem;
    transition: all 0.2s ease;
}

.terminal-pagination .page-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px var(--shadow);
}

/* ==========================================================================
   Coding Vibe Elements — Terminal Heading & Dev Card
   Uses the same maroon accent (#800000 / #d44a4a dark mode)
   ========================================================================== */

/* ===== Terminal-Style Section Heading ===== */
.coding-heading {
    position: relative;
    display: inline-block;
    padding: 0.5rem 1.5rem;
    margin-bottom: 2rem;
    font-family: 'Fira Code', 'Courier New', monospace;
    font-size: clamp(1.25rem, 2.5vw, 1.75rem);
    font-weight: 500;
    letter-spacing: 0.03em;
    color: var(--text);
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 8px;
    box-shadow: 0 4px 16px var(--shadow);
    overflow: hidden;
}

.coding-heading::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(180deg, var(--accent), var(--accent-hover));
}

.coding-heading .prompt {
    color: var(--accent);
    font-weight: 700;
    margin-right: 0.5rem;
    opacity: 0.85;
}

.coding-heading .typing-text {
    color: var(--text-secondary);
    white-space: nowrap;
    overflow: hidden;
    border-right: 2px solid var(--accent);
    padding-right: 3px;
    animation: typingCursor 1.4s step-end infinite;
}

@keyframes typingCursor {
    0%, 100% { border-color: var(--accent); }
    50% { border-color: transparent; }
}

/* ===== Dev Card — Terminal Window Style ===== */
.dev-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 16px;
    box-shadow: 0 12px 35px var(--shadow);
    overflow: hidden;
    transition: all 0.3s ease;
    position: relative;
    transform: translateZ(0);
}

.dev-card:hover {
    transform: translateY(-8px) translateZ(0);
    box-shadow: 0 20px 45px var(--shadow);
}

/* Terminal window header with traffic-light buttons */
.dev-card-header {
    display: flex;
    align-items: center;
    padding: 0.75rem 1.25rem;
    background: var(--section-alt);
    border-bottom: 1px solid var(--border);
    font-family: 'Fira Code', 'Courier New', monospace;
    font-size: 0.8rem;
    color: var(--muted);
    position: relative;
}

.dev-card-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: var(--border);
    opacity: 0.5;
}

/* Traffic light buttons */
.dev-card-controls {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-right: auto;
}

.dev-card-btn {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    display: inline-block;
    transition: all 0.2s ease;
}

.dev-card-btn.red { background: #ff5f57; box-shadow: 0 0 0 2px #ff5f57; }
.dev-card-btn.yellow { background: #ffbd2e; box-shadow: 0 0 0 2px #ffbd2e; }
.dev-card-btn.green { background: #28c840; box-shadow: 0 0 0 2px #28c840; }

.dev-card-header .dev-card-title {
    margin-left: 1rem;
    font-weight: 600;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.dev-card-header .dev-card-title i {
    color: var(--accent);
    font-size: 0.9rem;
}

/* Terminal body content */
.dev-card-body {
    padding: 1.5rem;
    font-family: 'Fira Code', 'Courier New', monospace;
}

.dev-card-body .dev-name {
    font-size: clamp(1.25rem, 2.5vw, 1.6rem);
    font-weight: 700;
    color: var(--text);
    margin-bottom: 0.25rem;
    font-family: 'Playfair Display', Georgia, serif;
}

.dev-card-body .dev-title {
    font-size: 1rem;
    color: var(--accent);
    font-weight: 600;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.dev-card-body .dev-title::before {
    content: '///';
    opacity: 0.5;
}

/* Terminal command lines */
.dev-command {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.dev-command .cmd-prompt {
    color: var(--accent);
    font-weight: 700;
    flex-shrink: 0;
}

.dev-command .cmd-output {
    color: var(--text);
    font-weight: 500;
}

.dev-command .cmd-label {
    color: var(--muted);
    opacity: 0.7;
}

/* Skill tags in terminal style */
.dev-skills {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    margin-top: 1rem;
}

.dev-skill-tag {
    font-family: 'Fira Code', 'Courier New', monospace;
    font-size: 0.78rem;
    padding: 0.3rem 0.7rem;
    background: var(--accent-light);
    color: var(--accent);
    border: 1px solid var(--accent);
    border-radius: 4px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.dev-skill-tag:hover {
    background: var(--accent);
    color: #fff;
    transform: translateY(-1px);
}

/* Terminal bottom bar */
.dev-card-footer {
    padding: 0.6rem 1.25rem;
    background: var(--section-alt);
    border-top: 1px solid var(--border);
    font-family: 'Fira Code', 'Courier New', monospace;
    font-size: 0.78rem;
    color: var(--muted);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.dev-card-footer .status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--accent);
    box-shadow: 0 0 8px var(--accent);
    animation: pulseGlow 2s ease-in-out infinite;
}

/* ===== Responsive ===== */
@media (max-width: 768px) {
    .dev-card-header {
        padding: 0.6rem 1rem;
        font-size: 0.75rem;
    }

    .dev-card-body {
        padding: 1.25rem;
    }

    .dev-card-footer {
        padding: 0.5rem 1rem;
        font-size: 0.72rem;
    }

    .coding-heading {
        font-size: 1.1rem;
        padding: 0.4rem 1rem;
    }
}

@media (max-width: 576px) {
    .dev-card-body .dev-name {
        font-size: 1.3rem;
    }
}



