:root {
    /* Light Theme Colors (Default) */
    --primary-color: #2c5f5d;
    --primary-light: #4a8b87;
    --primary-dark: #1a3f3d;
    --secondary-color: #f59e0b;
    --accent-teal: #5fb3af;
    --accent-orange: #ff6b35;
    --accent-red: #e74c3c;
    --text-primary: #2c3e50;
    --text-secondary: #5a6c7d;
    --text-light: #8b9dc3;
    --bg-primary: #ffffff;
    --bg-secondary: #f8fafa;
    --bg-accent: #f0f7f7;
    --border-color: #e8f0f0;
    --shadow-sm: 0 1px 3px 0 rgb(44 95 93 / 0.1);
    --shadow-md: 0 4px 6px -1px rgb(44 95 93 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(44 95 93 / 0.1);
    --shadow-xl: 0 20px 25px -5px rgb(44 95 93 / 0.1);
    --gradient-primary: linear-gradient(135deg, #2c5f5d 0%, #4a8b87 100%);
    --gradient-secondary: linear-gradient(135deg, #5fb3af 0%, #2c5f5d 100%);
    --gradient-accent: linear-gradient(135deg, #f59e0b 0%, #ff6b35 100%);
    --cream-primary: #fefcf8;
    --cream-secondary: #faf8f4;
    --cream-accent: #f7f5f0;
    --nav-cream: #fefdfb;
    --gradient-text: linear-gradient(135deg, #2c5f5d 0%, #4a8b87 100%);

    /* RGB values for glassmorphism */
    --bg-primary-rgb: 255, 255, 255;
    --bg-secondary-rgb: 248, 250, 250;
    --primary-rgb: 74, 139, 135;
}

/* Dark Theme Colors - Matte Black Edition */
[data-theme="dark"] {
    --primary-color: #4a8b87;
    --primary-light: #5fb3af;
    --primary-dark: #2c5f5d;
    --secondary-color: #fbbf24;
    --accent-teal: #7dd3d8;
    --accent-orange: #fb7185;
    --accent-red: #f87171;
    --text-primary: #ededed;
    --text-secondary: #a3a3a3;
    --text-light: #737373;
    --bg-primary: #0a0a0a;
    --bg-secondary: #171717;
    --bg-accent: #262626;
    --border-color: #333333;
    --card-border: 1px solid rgba(255, 255, 255, 0.08);
    --card-inner-shadow: inset 0 0 20px rgba(255, 255, 255, 0.02);
    --card-hover-border: 1px solid rgba(255, 255, 255, 0.15);
    --card-hover-shadow: inset 0 0 30px rgba(255, 255, 255, 0.04);
    --shadow-sm: 0 1px 3px 0 rgb(0 0 0 / 0.5);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.5);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.6);
    --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.7);
    --gradient-primary: linear-gradient(135deg, #171717 0%, #262626 100%);
    --gradient-secondary: linear-gradient(135deg, #4a8b87 0%, #5fb3af 100%);
    --gradient-accent: linear-gradient(135deg, #fbbf24 0%, #fb7185 100%);
    --cream-primary: #171717;
    --cream-secondary: #262626;
    --cream-accent: #333333;
    --nav-cream: #0a0a0a;
    --gradient-text: linear-gradient(135deg, #4a8b87 0%, #5fb3af 100%);

    /* RGB values for glassmorphism */
    --bg-primary-rgb: 10, 10, 10;
    --bg-secondary-rgb: 23, 23, 23;
    --primary-rgb: 74, 139, 135;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background-color: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    transition: background-color 0.3s ease, color 0.3s ease;
}

[data-theme="dark"] .ui-dock {
    border: var(--card-border);
    background: rgba(10, 10, 10, 0.85);
    box-shadow: var(--card-inner-shadow), 0 8px 32px rgba(0, 0, 0, 0.5);
}

/* Enhanced Loading Animation */
.loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--bg-primary);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 0.5s ease;
}

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

.loader-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.loader-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: contain;
    /* Ensures the icon isn't cut off */
    animation: rotate-loader 2s linear infinite;
    /* Optional: subtle glow matching primary color */
    filter: drop-shadow(0 0 10px rgba(44, 95, 93, 0.4));
}

@keyframes rotate-loader {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}



.loader-text {
    font-size: 1rem;
    font-weight: 500;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--text-secondary);
    animation: pulse-text 2s ease-in-out infinite;
}

[data-theme="dark"] .service-card {
    border: var(--card-border);
    box-shadow: var(--card-inner-shadow);
    background: rgba(23, 23, 23, 0.5);
}

[data-theme="dark"] .service-card:hover {
    border: var(--card-hover-border);
    box-shadow: var(--card-hover-shadow);
}

@keyframes pulse-text {

    0%,
    100% {
        opacity: 0.6;
    }

    50% {
        opacity: 1;
    }
}

/* Enhanced Particle Background */
.particles {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: -1;
    overflow: hidden;
}

.particle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: var(--accent-teal);
    border-radius: 50%;
    opacity: 0.1;
    animation: float-particle 25s infinite linear;
    will-change: transform;
}

.particle:nth-child(odd) {
    background: var(--accent-orange);
    animation-duration: 30s;
}

.particle:nth-child(3n) {
    background: var(--primary-color);
    animation-duration: 20s;
}

@keyframes float-particle {
    0% {
        transform: translateY(100vh) rotate(0deg) scale(0);
        opacity: 0;
    }

    10% {
        opacity: 0.3;
        transform: scale(1);
    }

    90% {
        opacity: 0.3;
    }

    100% {
        transform: translateY(-100px) rotate(360deg) scale(0);
        opacity: 0;
    }
}

/* Floating Action Button */
.fab-container {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 1000;
}

.fab-main {
    width: 60px;
    height: 60px;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    box-shadow: var(--shadow-lg);
    transition: all 0.3s ease;
    animation: fabPulse 3s ease-in-out infinite;
    border: none;
}

.fab-main:hover {
    transform: scale(1.1) rotate(45deg);
    box-shadow: var(--shadow-xl);
}

.fab-main.active {
    transform: scale(1.1) rotate(45deg);
}

@keyframes fabPulse {

    0%,
    100% {
        box-shadow: var(--shadow-lg);
    }

    50% {
        box-shadow: 0 0 30px rgba(74, 139, 135, 0.4);
    }
}

.fab-options {
    position: absolute;
    bottom: 70px;
    right: 0;
    display: flex;
    flex-direction: column;
    gap: 15px;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.3s ease;
    pointer-events: none;
}

.fab-options.active {
    opacity: 1;
    transform: translateY(0);
    pointer-events: all;
}

.fab-option {
    width: 45px;
    height: 45px;
    background: var(--bg-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
    font-size: 1.2rem;
    cursor: pointer;
    box-shadow: var(--shadow-md);
    transition: all 0.3s ease;
    animation: slideInRight 0.3s ease forwards;
    border: 1px solid var(--border-color);
}

.fab-option:hover {
    transform: scale(1.2);
    background: var(--primary-color);
    color: var(--bg-primary);
}

/* Theme Toggle Specific Styles */
.theme-toggle {
    position: relative;
}

.theme-toggle i {
    transition: all 0.3s ease;
}

[data-theme="dark"] .theme-toggle .fa-moon {
    display: none;
}

[data-theme="dark"] .theme-toggle .fa-sun {
    display: block;
}

.theme-toggle .fa-sun {
    display: none;
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }

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

/* Enhanced Navigation */
nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 5%;
    /* Glassmorphism with Theme Tint */
    background: rgba(44, 95, 93, 0.15);
    /* Primary Teal Tint */
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.05);
    z-index: 1000;
    transition: all 0.3s ease;
}

[data-theme="dark"] nav {
    background: rgba(10, 10, 10, 0.5);
    /* Matte Black Tint */
    border-bottom: var(--card-border);
}

.nav-scrolled {
    padding: 15px 5%;
    box-shadow: var(--shadow-md);
    background: rgba(44, 95, 93, 0.3);
    /* Stronger tint on scroll */
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.4);
}

[data-theme="dark"] .nav-scrolled {
    background: rgba(10, 10, 10, 0.85);
}

.logo {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--primary-color);
    font-family: 'Inter', sans-serif;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
}

.logo:hover {
    transform: scale(1.05);
    text-shadow: 0 0 20px rgba(74, 139, 135, 0.3);
}

.nav-links {
    display: flex;
    gap: 35px;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-primary);
    font-weight: 500;
    font-size: 0.95rem;
    position: relative;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    cursor: pointer;
}

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

.nav-links a::before {
    content: '';
    position: absolute;
    top: -5px;
    left: 50%;
    width: 0;
    height: 0;
    background: var(--accent-orange);
    border-radius: 50%;
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.nav-links a:hover::after,
.nav-links a.active::after {
    width: 100%;
}

.nav-links a:hover::before {
    width: 6px;
    height: 6px;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--primary-color);
    transform: translateY(-2px);
}

.nav-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    transition: all 0.3s ease;
    background: none;
    border: none;
}

.nav-toggle:hover {
    transform: scale(1.1);
}

.nav-toggle span {
    width: 25px;
    height: 3px;
    background: var(--text-primary);
    margin: 3px 0;
    transition: 0.3s;
}

.nav-toggle.active span:nth-child(1) {
    transform: rotate(-45deg) translate(-5px, 6px);
}

.nav-toggle.active span:nth-child(2) {
    opacity: 0;
}

.nav-toggle.active span:nth-child(3) {
    transform: rotate(45deg) translate(-5px, -6px);
}

/* Hero Section - Enhanced */
.hero {
    position: relative;
    display: flex;
    align-items: center;
    min-height: 100vh;
    padding: 120px 5% 60px;
    background: var(--cream-primary);
    overflow: hidden;
    transition: background-color 0.3s ease;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10;
    /* Top Layer */
    pointer-events: none;
    /* Allow interactions through the image */
}

.hero-background img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 20%;
    transform: scale(1.3);
    transition: transform 10s ease;
    will-change: transform;
}

.hero:hover .hero-background img {
    transform: scale(1.35);
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(254, 252, 248, 0.15);
    z-index: 2;
    transition: background-color 0.3s ease;
}

[data-theme="dark"] .hero-overlay {
    background: rgba(10, 10, 10, 0.6);
}

.hero-container {
    position: relative;
    z-index: 3;
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 280px;
    gap: 60px;
    align-items: flex-start;
    height: 100%;
    padding-top: 40px;
}

.hero-left {
    color: var(--text-primary);
    position: relative;
    min-height: 500px;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(247, 245, 240, 0.95);
    color: var(--primary-color);
    padding: 10px 20px;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 25px;
    animation: slideInUp 0.8s ease 0.2s both, badgePulse 3s ease-in-out infinite 2s;
    border: 1px solid rgba(232, 240, 240, 0.8);
    backdrop-filter: blur(10px);
    cursor: pointer;
    transition: all 0.3s ease;
}

[data-theme="dark"] input,
[data-theme="dark"] textarea {
    border: var(--card-border);
    background: rgba(23, 23, 23, 0.5);
}

[data-theme="dark"] input:focus,
[data-theme="dark"] textarea:focus {
    border-color: var(--primary-color);
    box-shadow: var(--card-inner-shadow);
}

[data-theme="dark"] .hero-badge {
    background: rgba(23, 23, 23, 0.95);
    border: var(--card-border);
    box-shadow: var(--card-inner-shadow);
}

.hero-badge:hover {
    transform: scale(1.05);
    background: rgba(247, 245, 240, 1);
    box-shadow: var(--shadow-md);
}

[data-theme="dark"] .hero-badge:hover {
    background: rgba(23, 23, 23, 1);
    border: var(--card-hover-border);
    box-shadow: var(--card-hover-shadow);
}

@keyframes badgePulse {

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

    50% {
        transform: scale(1.02);
    }
}

.hero-title {
    font-size: clamp(2.8rem, 5.5vw, 4.2rem);
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 20px;
    color: var(--primary-color);
    animation: slideInUp 0.8s ease 0.4s both;
    text-shadow: 0 2px 4px rgba(255, 255, 255, 0.3);
    cursor: pointer;
    transition: all 0.3s ease;
}

[data-theme="dark"] .hero-title {
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.hero-title:hover {
    transform: translateY(-2px);
    text-shadow: 0 4px 8px rgba(255, 255, 255, 0.4);
}

[data-theme="dark"] .hero-title:hover {
    text-shadow: 0 4px 8px rgba(0, 0, 0, 0.4);
}

.hero-title .highlight {
    background: var(--gradient-secondary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: gradientShift 3s ease-in-out infinite;
}

@keyframes gradientShift {

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

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

.hero-email {
    color: var(--accent-orange);
    font-weight: 600;
    font-size: 1.1rem;
    margin-bottom: 40px;
    animation: slideInUp 0.8s ease 0.6s both;
    text-shadow: 0 1px 2px rgba(255, 255, 255, 0.3);
    cursor: pointer;
    transition: all 0.3s ease;
}

[data-theme="dark"] .hero-email {
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.hero-email:hover {
    transform: scale(1.02);
    color: var(--accent-red);
}

.hero-experience {
    display: flex;
    align-items: center;
    gap: 15px;
    animation: slideInUp 0.8s ease 0.8s both;
    position: absolute;
    bottom: 0;
    left: 0;
    cursor: pointer;
    transition: all 0.3s ease;
}

.hero-experience:hover {
    transform: scale(1.05);
}

.experience-number {
    font-size: 4rem;
    font-weight: 800;
    color: var(--primary-color);
    line-height: 0.9;
    text-shadow: 0 2px 4px rgba(255, 255, 255, 0.3);
    animation: countUp 2s ease-out 1.5s both;
}

[data-theme="dark"] .experience-number {
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

@keyframes countUp {
    from {
        transform: scale(0) rotate(180deg);
        opacity: 0;
    }

    to {
        transform: scale(1) rotate(0deg);
        opacity: 1;
    }
}

.experience-text {
    font-size: 1rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 700;
    text-shadow: 0 1px 2px rgba(255, 255, 255, 0.3);
    line-height: 1.2;
}

[data-theme="dark"] .experience-text {
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.hero-right {
    color: var(--text-primary);
    animation: slideInUp 0.8s ease 0.7s both;
    max-width: 280px;
    display: flex;
    flex-direction: column;
    height: 100%;
    justify-content: flex-start;
    padding-top: 20px;
}

.hero-description {
    font-size: 1.05rem;
    color: var(--text-secondary);
    line-height: 1.5;
    margin-bottom: 40px;
    text-shadow: 0 1px 2px rgba(255, 255, 255, 0.3);
    font-weight: 400;
}

[data-theme="dark"] .hero-description {
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.hero-badge-cert {
    background: rgba(254, 252, 248, 0.98);
    padding: 20px 15px;
    border-radius: 15px;
    box-shadow: var(--shadow-lg);
    text-align: center;
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--primary-color);
    border: 1px solid rgba(247, 245, 240, 0.8);
    backdrop-filter: blur(10px);
    margin-top: auto;
    cursor: pointer;
    transition: all 0.3s ease;
}

[data-theme="dark"] .hero-badge-cert {
    background: rgba(23, 23, 23, 0.98);
    border: var(--card-border);
    box-shadow: var(--card-inner-shadow);
}

.hero-badge-cert:hover {
    transform: translateY(-5px) rotate(2deg);
    box-shadow: var(--shadow-xl);
}

.cert-icon {
    font-size: 1.8rem;
    margin-bottom: 8px;
    color: var(--primary-color);
    animation: bounce 2s ease-in-out infinite;
}

@keyframes bounce {

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

    40% {
        transform: translateY(-10px);
    }

    60% {
        transform: translateY(-5px);
    }
}

.cert-text {
    line-height: 1.2;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

/* Mobile Name Card */
.mobile-name-card {
    display: none;
    position: absolute;
    top: 120px;
    left: 20px;
    z-index: 4;
    background: rgba(254, 252, 248, 0.98);
    padding: 20px 25px;
    border-radius: 20px;
    backdrop-filter: blur(20px);
    border: 1px solid rgba(247, 245, 240, 0.8);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.15);
    text-align: left;
    animation: slideInUp 0.8s ease 0.4s both;
    max-width: 280px;
    width: auto;
    transition: all 0.3s ease;
}

[data-theme="dark"] .mobile-name-card {
    background: rgba(30, 41, 59, 0.98);
    border-color: rgba(71, 85, 105, 0.8);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.5);
}

.mobile-name-card .hero-title {
    font-size: 2.2rem;
    margin-bottom: 10px;
    text-shadow: none;
    font-weight: 800;
    line-height: 1.1;
}

.mobile-name-card .hero-description {
    font-size: 0.9rem;
    margin-bottom: 0;
    text-shadow: none;
    color: var(--text-secondary);
    font-weight: 400;
    line-height: 1.4;
}

/* Hero Bottom Border */
.hero::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 1px;
    background: var(--border-color);
    z-index: 10;
}

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

/* Enhanced Services Section */
.services {
    padding: 100px 5%;
    background: var(--bg-secondary);
    transition: background-color 0.3s ease;
}

.section-header {
    text-align: center;
    max-width: 600px;
    margin: 0 auto 80px;
}

.section-badge {
    display: inline-block;
    background: var(--primary-color);
    color: white;
    padding: 12px 32px;
    border-radius: 50px;
    font-size: 0.95rem;
    font-weight: 800;
    margin-bottom: 25px;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 4px 15px rgba(44, 95, 93, 0.3);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: none;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.section-badge:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(44, 95, 93, 0.5);
    background: var(--primary-dark);
}

.section-badge:active {
    transform: translateY(-1px);
    box-shadow: 0 4px 10px rgba(44, 95, 93, 0.3);
}

@keyframes float {

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

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

.section-title {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 800;
    margin-bottom: 20px;
    color: var(--primary-color);
    transition: color 0.3s ease;
}

.section-description {
    font-size: 1.1rem;
    color: var(--text-secondary);
    line-height: 1.6;
    transition: color 0.3s ease;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

.service-card {
    background: rgba(var(--bg-secondary-rgb), 0.7);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 40px 30px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    text-decoration: none;
    color: inherit;
    cursor: pointer;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient-secondary);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.service-card::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: radial-gradient(circle, rgba(74, 139, 135, 0.1) 0%, transparent 70%);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: all 0.6s ease;
}

.service-card:hover::before {
    transform: scaleX(1);
}

.service-card:hover::after {
    width: 300px;
    height: 300px;
}

.service-card:hover {
    transform: translateY(-15px) scale(1.02);
    box-shadow: var(--shadow-xl);
}

.service-icon {
    width: 70px;
    height: 70px;
    background: var(--bg-accent);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 25px;
    font-size: 1.8rem;
    color: var(--primary-color);
    border: 2px solid var(--border-color);
    transition: all 0.3s ease;
    position: relative;
    z-index: 2;
}

.service-card:hover .service-icon {
    transform: scale(1.1) rotate(10deg);
    background: var(--primary-color);
    color: var(--bg-primary);
}

.service-card:nth-child(1) .service-icon {
    color: var(--primary-color);
}

.service-card:nth-child(2) .service-icon {
    color: var(--accent-orange);
}

.service-card:nth-child(3) .service-icon {
    color: var(--accent-red);
}

.service-title {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 15px;
    color: var(--primary-color);
    position: relative;
    z-index: 2;
    transition: color 0.3s ease;
}

.service-description {
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 20px;
    position: relative;
    z-index: 2;
    transition: color 0.3s ease;
}

.service-projects {
    font-size: 0.95rem;
    color: var(--primary-color);
    font-weight: 600;
    position: relative;
    z-index: 2;
    transition: color 0.3s ease;
}

/* Enhanced Portfolio Section */
.portfolio {
    padding: 100px 5%;
    background: var(--bg-primary);
    overflow: hidden;
    transition: background-color 0.3s ease;
}

.portfolio-container {
    position: relative;
    max-width: 1400px;
    margin: 0 auto;
}

.portfolio-scroll {
    display: flex;
    gap: 30px;
    overflow-x: auto;
    scroll-behavior: smooth;
    padding: 20px 0 40px;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.portfolio-scroll::-webkit-scrollbar {
    display: none;
}

.portfolio-card {
    flex: 0 0 350px;
    height: 450px;
    border-radius: 25px;
    padding: 30px;
    position: relative;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-lg);
}

.portfolio-card:hover {
    transform: translateY(-15px) scale(1.03);
    box-shadow: var(--shadow-xl);
}

.portfolio-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.1);
    opacity: 0;
    transition: opacity 0.3s ease;
}

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

.card-content {
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: relative;
    z-index: 2;
}

.card-header {
    color: white;
}

.card-header h3 {
    font-size: 1.8rem;
    font-weight: 800;
    margin-bottom: 8px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
}

.portfolio-card:hover .card-header h3 {
    transform: scale(1.05);
}

.card-category {
    font-size: 0.9rem;
    opacity: 0.9;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.card-mockups {
    display: flex;
    align-items: flex-end;
    justify-content: center;
    gap: 15px;
    height: 250px;
    position: relative;
}

.mockup-phone,
.mockup-tablet,
.mockup-laptop,
.mockup-desktop {
    background: rgba(255, 255, 255, 0.15);
    border-radius: 12px;
    padding: 8px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
}

.mockup-phone {
    width: 80px;
    height: 160px;
    border-radius: 16px;
}

.mockup-tablet {
    width: 90px;
    height: 120px;
    border-radius: 12px;
}

.mockup-laptop {
    width: 140px;
    height: 90px;
    border-radius: 8px;
    position: relative;
}

.mockup-laptop::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 160px;
    height: 4px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 0 0 8px 8px;
}

.mockup-desktop {
    width: 120px;
    height: 80px;
    border-radius: 8px;
    position: relative;
}

.mockup-desktop::after {
    content: '';
    position: absolute;
    bottom: -12px;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 8px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 4px;
}

.mockup-phone img,
.mockup-tablet img,
.mockup-laptop img,
.mockup-desktop img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 6px;
}

.portfolio-card:hover .mockup-phone {
    transform: translateY(-10px) rotate(-5deg);
}

.portfolio-card:hover .mockup-tablet {
    transform: translateY(-8px) rotate(3deg);
}

.portfolio-card:hover .mockup-laptop {
    transform: translateY(-12px) rotate(-2deg);
}

.portfolio-card:hover .mockup-desktop {
    transform: translateY(-15px) rotate(1deg);
}

.scroll-indicators {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 30px;
}

.scroll-btn {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: none;
    background: var(--primary-color);
    color: var(--bg-primary);
    font-size: 1.2rem;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-md);
}

.scroll-btn:hover {
    background: var(--primary-dark);
    transform: translateY(-3px) scale(1.1);
    box-shadow: var(--shadow-lg);
}

.scroll-btn:active {
    transform: translateY(0) scale(0.95);
}

/* Enhanced Experience Section */
.experience {
    padding: 100px 5%;
    background: var(--bg-primary);
    transition: background-color 0.3s ease;
}

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

.timeline::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 3px;
    background: linear-gradient(to bottom, var(--primary-color), var(--accent-teal));
    transform: translateX(-50%);
    animation: timelineGrow 2s ease-out;
}

@keyframes timelineGrow {
    from {
        height: 0;
    }

    to {
        height: 100%;
    }
}

.timeline-item {
    display: flex;
    margin-bottom: 50px;
    position: relative;
}

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

.timeline-content {
    flex: 1;
    background: var(--bg-primary);
    padding: 35px;
    border-radius: 20px;
    box-shadow: var(--shadow-md);
    margin: 0 30px;
    position: relative;
    transition: all 0.3s ease;
    border: 1px solid var(--border-color);
    cursor: pointer;
}

.timeline-content:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: var(--shadow-xl);
}

.timeline-dot {
    position: absolute;
    left: 50%;
    top: 35px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--primary-color);
    transform: translateX(-50%);
    z-index: 2;
    box-shadow: 0 0 0 4px var(--bg-primary), 0 0 0 8px var(--primary-color);
    transition: all 0.3s ease;
}

.timeline-item:hover .timeline-dot {
    transform: translateX(-50%) scale(1.3);
    background: var(--accent-orange);
    box-shadow: 0 0 0 4px var(--bg-primary), 0 0 0 8px var(--accent-orange);
}

.company-logo {
    width: 60px;
    height: 60px;
    background: var(--bg-accent);
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    font-weight: 800;
    color: var(--primary-color);
    font-size: 1.2rem;
    border: 2px solid var(--border-color);
    transition: all 0.3s ease;
}

.timeline-content:hover .company-logo {
    transform: rotate(10deg) scale(1.1);
    background: var(--primary-color);
    color: var(--bg-primary);
}

.job-title {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 8px;
    transition: color 0.3s ease;
}

.company-name {
    color: var(--accent-orange);
    font-weight: 600;
    margin-bottom: 8px;
    font-size: 1.1rem;
    transition: color 0.3s ease;
}

.job-duration {
    color: var(--text-light);
    font-size: 0.9rem;
    margin-bottom: 20px;
    transition: color 0.3s ease;
}

.job-description {
    color: var(--text-secondary);
    line-height: 1.7;
    transition: color 0.3s ease;
}

/* Enhanced Skills Section */
.skills {
    padding: 100px 5%;
    background: var(--bg-secondary);
    transition: background-color 0.3s ease;
}

.skills-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.skills-content h2 {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 25px;
    color: var(--primary-color);
    transition: color 0.3s ease;
}

.skills-content p {
    font-size: 1.1rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 40px;
    transition: color 0.3s ease;
}

.skill-item {
    margin-bottom: 30px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.skill-item:hover {
    transform: translateX(10px);
}

.skill-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
}

.skill-name {
    font-weight: 600;
    color: var(--primary-color);
    font-size: 1.05rem;
    transition: color 0.3s ease;
}

.skill-percentage {
    font-weight: 600;
    color: var(--accent-orange);
    transition: color 0.3s ease;
}

.skill-bar {
    height: 12px;
    background: var(--border-color);
    border-radius: 6px;
    overflow: hidden;
    position: relative;
    transition: background-color 0.3s ease;
}

.skill-bar::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    animation: shimmer 2s infinite;
}

@keyframes shimmer {
    0% {
        transform: translateX(-100%);
    }

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

.skill-progress {
    height: 100%;
    background: var(--gradient-secondary);
    border-radius: 6px;
    transition: width 2s ease;
    width: 0;
    position: relative;
    overflow: hidden;
}

.skill-progress::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    animation: progressShine 3s infinite;
}

@keyframes progressShine {
    0% {
        transform: translateX(-100%);
    }

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

/* Enhanced Testimonials */
.testimonials {
    padding: 100px 5%;
    background: var(--bg-primary);
    transition: background-color 0.3s ease;
}

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

.testimonial-card {
    background: var(--bg-secondary);
    padding: 50px;
    border-radius: 25px;
    text-align: center;
    display: none;
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

.testimonial-card.active {
    display: block;
    animation: fadeInUp 0.5s ease;
}

.testimonial-text {
    font-size: 1.3rem;
    line-height: 1.7;
    color: var(--text-primary);
    margin-bottom: 35px;
    font-style: italic;
    position: relative;
    transition: color 0.3s ease;
}

.testimonial-text::before,
.testimonial-text::after {
    content: '"';
    font-size: 3rem;
    color: var(--primary-color);
    opacity: 0.3;
    position: absolute;
    font-family: serif;
}

.testimonial-text::before {
    top: -20px;
    left: -20px;
}

.testimonial-text::after {
    bottom: -40px;
    right: -20px;
}

.testimonial-author {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
}

.author-avatar {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background: var(--gradient-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--bg-primary);
    font-weight: 700;
    font-size: 1.4rem;
    transition: all 0.3s ease;
}

.testimonial-card:hover .author-avatar {
    transform: scale(1.1) rotate(10deg);
}

.author-info h4 {
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 5px;
    font-size: 1.1rem;
    transition: color 0.3s ease;
}

.author-info p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    transition: color 0.3s ease;
}

.testimonial-nav {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-top: 40px;
}

.nav-dot {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: var(--border-color);
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
}

.nav-dot:hover {
    transform: scale(1.2);
}

.nav-dot.active {
    background: var(--primary-color);
    transform: scale(1.3);
}

/* Enhanced Contact Section */
.contact {
    padding: 100px 5%;
    background: var(--primary-color);
    color: var(--bg-primary);
    position: relative;
    overflow: hidden;
    transition: background-color 0.3s ease;
}

.contact::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="50" cy="50" r="2" fill="rgba(255,255,255,0.1)"/></svg>') repeat;
    animation: backgroundMove 20s linear infinite;
}

@keyframes backgroundMove {
    0% {
        transform: translate(0, 0);
    }

    100% {
        transform: translate(100px, 100px);
    }
}

.contact-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
    position: relative;
    z-index: 2;
}

.contact-info h2 {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 25px;
}

.contact-info p {
    font-size: 1.1rem;
    opacity: 0.9;
    line-height: 1.6;
    margin-bottom: 40px;
}

.contact-methods {
    display: flex;
    flex-direction: column;
    gap: 25px;
    margin-bottom: 50px;
}

.contact-method {
    display: flex;
    align-items: center;
    gap: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.contact-method:hover {
    transform: translateX(10px);
}

.contact-method i {
    width: 55px;
    height: 55px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    transition: all 0.3s ease;
}

.contact-method:hover i {
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1.1) rotate(10deg);
}

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

.social-link {
    width: 55px;
    height: 55px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--bg-primary);
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 1.3rem;
}

.social-link:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-5px) scale(1.1);
}

.contact-form {
    background: rgba(255, 255, 255, 0.1);
    padding: 50px;
    border-radius: 25px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.contact-form:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-5px);
}

.form-group {
    margin-bottom: 30px;
}

.form-group label {
    display: block;
    margin-bottom: 10px;
    font-weight: 500;
    font-size: 1.05rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 18px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.1);
    color: var(--bg-primary);
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: rgba(255, 255, 255, 0.5);
    background: rgba(255, 255, 255, 0.15);
    transform: scale(1.02);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: rgba(255, 255, 255, 0.7);
}

.form-group textarea {
    height: 130px;
    resize: vertical;
}

.btn {
    background: var(--gradient-accent);
    color: var(--bg-primary);
    border: none;
    padding: 18px 35px;
    border-radius: 12px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.btn:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

.btn:active {
    transform: translateY(0) scale(0.98);
}

/* Scroll to Top Button */
.scroll-to-top {
    position: fixed;
    bottom: 30px;
    left: 30px;
    width: 50px;
    height: 50px;
    background: var(--accent-orange);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--bg-primary);
    font-size: 1.2rem;
    cursor: pointer;
    transition: all 0.3s ease;
    opacity: 0;
    visibility: hidden;
    z-index: 1000;
    border: none;
}

.scroll-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.scroll-to-top:hover {
    transform: scale(1.1) rotate(-10deg);
    background: var(--accent-red);
}

/* Enhanced Animations */
@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

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

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }

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

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

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

/* Scroll animations */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
}

.animate-on-scroll.animated {
    opacity: 1;
    transform: translateY(0);
}

/* Responsive Design */
@media (max-width: 1200px) {
    .hero-background img {
        transform: scale(1.25);
        object-position: center 25%;
    }

    .hero-container {
        grid-template-columns: 1fr 250px;
        gap: 40px;
    }

    .hero-right {
        max-width: 250px;
    }

    .hero-title {
        font-size: clamp(2.5rem, 5vw, 3.8rem);
    }
}

@media (max-width: 1024px) {
    .hero-background img {
        transform: scale(1.2);
        object-position: center 30%;
    }

    .hero-container {
        grid-template-columns: 1fr;
        gap: 30px;
        text-align: left;
        padding-top: 20px;
        justify-content: flex-end;
        align-items: flex-end;
        min-height: 70vh;
    }

    .hero-left {
        min-height: auto;
        margin-bottom: 40px;
        order: 2;
    }

    .hero-right {
        max-width: 350px;
        margin: 0;
        height: auto;
        justify-content: center;
        padding-top: 0;
        order: 1;
    }

    .hero-experience {
        position: relative;
        bottom: auto;
        left: auto;
        justify-content: flex-start;
        margin-top: 30px;
    }

    .experience-number {
        font-size: 3.5rem;
    }
}

@media (max-width: 768px) {
    .fab-container {
        bottom: 20px;
        right: 20px;
    }

    .fab-main {
        width: 50px;
        height: 50px;
        font-size: 1.3rem;
    }

    .nav-links {
        position: fixed;
        top: 80px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 80px);
        background: rgba(254, 253, 251, 0.98);
        backdrop-filter: blur(20px);
        flex-direction: column;
        justify-content: flex-start;
        align-items: center;
        padding-top: 50px;
        transition: left 0.3s ease;
    }

    [data-theme="dark"] .nav-links {
        background: rgba(15, 23, 42, 0.98);
    }

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

    .nav-toggle {
        display: flex;
    }

    .hero {
        padding: 80px 5% 40px;
        min-height: 100vh;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .hero-background img {
        transform: scale(1.1);
        object-position: center center;
        object-fit: cover;
    }

    .hero-overlay {
        background: rgba(255, 255, 255, 0.05);
    }

    [data-theme="dark"] .hero-overlay {
        background: rgba(15, 23, 42, 0.4);
    }

    .hero-container {
        display: none;
    }

    .mobile-name-card {
        display: block;
        position: absolute;
        top: 120px;
        left: 20px;
        width: auto;
        max-width: 280px;
    }

    .mobile-name-card .hero-title {
        font-size: 2.0rem;
        margin-bottom: 8px;
    }

    .mobile-name-card .hero-description {
        font-size: 0.85rem;
    }

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

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

    .timeline-item {
        flex-direction: column;
        margin-left: 40px;
    }

    .timeline-dot {
        left: 20px;
    }

    .timeline-content {
        margin: 0;
    }

    .skills-container,
    .contact-container {
        grid-template-columns: 1fr;
        gap: 50px;
    }

    .portfolio-card {
        flex: 0 0 280px;
        height: 380px;
        padding: 25px;
    }

    .card-header h3 {
        font-size: 1.5rem;
    }

    .card-mockups {
        height: 200px;
    }

    .mockup-phone {
        width: 60px;
        height: 120px;
    }

    .mockup-tablet {
        width: 70px;
        height: 90px;
    }

    .mockup-laptop {
        width: 110px;
        height: 70px;
    }

    .mockup-desktop {
        width: 90px;
        height: 60px;
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .section {
        padding: 60px 5%;
    }

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

/* Admin Password Modal Dark Mode Support */
[data-theme='dark'] #indexAdminPassword {
    background: rgba(30, 41, 59, 0.8) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    color: #f8fafc !important;
}

@media (max-width: 480px) {
    .hero {
        padding: 70px 5% 30px;
    }

    .hero-background img {
        transform: scale(1.05);
        object-position: center center;
    }

    .mobile-name-card {
        padding: 18px 22px;
        width: auto;
        max-width: 260px;
        top: 100px;
        left: 15px;
    }

    .mobile-name-card .hero-title {
        font-size: 1.8rem;
        line-height: 1.2;
        margin-bottom: 6px;
    }

    .mobile-name-card .hero-description {
        font-size: 0.8rem;
    }

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

    .service-card,
    .contact-form {
        padding: 30px 25px;
    }

    .portfolio-card {
        flex: 0 0 250px;
        height: 350px;
        padding: 20px;
    }

    .scroll-btn {
        width: 45px;
        height: 45px;
        font-size: 1rem;
    }
}

/* Floating View Counter */
.view-counter-fab {
    position: fixed;
    top: 50%;
    right: 30px;
    bottom: auto;
    transform: translateY(-50%);
    background: rgba(254, 253, 251, 0.85);
    backdrop-filter: blur(12px);
    padding: 10px 20px;
    border-radius: 50px;
    box-shadow: var(--shadow-lg);
    display: flex;
    align-items: center;
    gap: 10px;
    z-index: 999;
    border: 1px solid rgba(74, 139, 135, 0.2);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-weight: 700;
    color: var(--primary-color);
    font-family: 'Inter', sans-serif;
    cursor: default;
    opacity: 0;
    /* Initial state handled by JS */
}

[data-theme="dark"] .view-counter-fab {
    background: rgba(30, 41, 59, 0.85);
    border-color: rgba(74, 139, 135, 0.2);
    color: var(--text-primary);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
}

.view-counter-fab:hover {
    transform: translateY(calc(-50% - 3px));
    box-shadow: var(--shadow-xl);
    background: rgba(254, 253, 251, 0.95);
}

[data-theme="dark"] .view-counter-fab:hover {
    background: rgba(30, 41, 59, 0.95);
}

.view-counter-fab i {
    font-size: 1.1rem;
    color: var(--accent-orange);
    animation: pulse-eye 2s infinite;
}

@keyframes pulse-eye {
    0% {
        transform: scale(1);
        opacity: 1;
    }

    50% {
        transform: scale(1.1);
        opacity: 0.8;
    }

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

#viewCountDisplay {
    font-feature-settings: "tnum";
    font-variant-numeric: tabular-nums;
    letter-spacing: 0.5px;
}

/* Adjust for mobile to not overlap with other potential bottom-left elements */
@media (max-width: 480px) {
    .view-counter-fab {
        top: auto;
        bottom: 20px;
        left: 20px;
        right: auto;
        transform: none;
        padding: 8px 16px;
        font-size: 0.9rem;
    }
}

/* Tools Grid Styling */
.tools-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
    margin-bottom: 30px;
    margin-top: 20px;
}

.tool-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.8);
    padding: 15px;
    border-radius: 12px;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-primary);
    border: 1px solid rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    box-shadow: var(--shadow-sm);
    min-width: 100px;
    text-align: center;
}

[data-theme="dark"] .tool-item {
    background: rgba(30, 41, 59, 0.6);
    border-color: rgba(255, 255, 255, 0.05);
}

.tool-item:hover {
    transform: translateY(-5px);
    background: var(--bg-primary);
    box-shadow: var(--shadow-md);
    color: var(--primary-color);
}


.tool-item img {
    height: 35px;
    width: 35px;
    object-fit: contain;
    margin-bottom: 5px;
    transition: transform 0.3s ease;
}

.tool-item:hover img {
    transform: scale(1.1);
}

.tool-item i {
    font-size: 2rem;
    margin-bottom: 5px;
    color: var(--secondary-color);
    transition: color 0.3s ease, transform 0.3s ease;
}

.tool-item:hover i {
    transform: scale(1.1);
    /* Color handled inline for custom icons or generic hover */
}

/* Dark Mode Inversion for Black Logos */
[data-theme="dark"] .dark-invert {
    filter: invert(1) brightness(1.5);
}

/* ---------------------------------------- */
/* MOBILE OPTIMIZATION (Response to Request) */
/* ---------------------------------------- */

@media (max-width: 768px) {

    /* 1. Navbar: Clean Mobile Hamburger Menu */
    .nav-toggle {
        display: flex;
        z-index: 1001;
    }

    .nav-links {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        background: rgba(254, 253, 251, 0.98);
        backdrop-filter: blur(15px);
        -webkit-backdrop-filter: blur(15px);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 30px;
        opacity: 0;
        visibility: hidden;
        transform: translateX(100%);
        transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        z-index: 1000;
        padding: 20px;
    }

    [data-theme="dark"] .nav-links {
        background: rgba(15, 23, 42, 0.98);
    }

    .nav-links.active {
        opacity: 1;
        visibility: visible;
        transform: translateX(0);
    }

    .nav-links a {
        font-size: 1.5rem;
        width: 100%;
        text-align: center;
        padding: 10px;
    }

    /* 2. Hero Section: Vertical Stacking (Image -> Text) */
    .hero {
        flex-direction: column;
        padding: 80px 5% 40px;
        height: auto;
        min-height: auto;
        justify-content: flex-start;
    }

    /* Make the background image behave like a block element on mobile */
    .hero-background {
        position: relative;
        width: 100%;
        height: 40vh;
        /* Reduced height as requested */
        min-height: 300px;
        order: 1;
        /* Image first */
        margin-bottom: 20px;
        overflow: hidden;
        border-radius: 0 0 20px 20px;
    }

    .hero-background img {
        position: absolute;
        width: 100%;
        height: 100%;
        object-fit: cover;
        object-position: center top;
        transform: none;
        /* Reset desktop scale */
    }

    .hero-container {
        display: flex;
        flex-direction: column;
        width: 100%;
        gap: 30px;
        padding: 0;
        order: 2;
        /* Text after image */
    }

    .hero-left {
        min-height: auto;
        text-align: left;
        /* Align text left for readability */
        padding: 0 10px;
    }

    .hero-right {
        padding: 0 10px;
        max-width: 100%;
        height: auto;
    }

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

    .hero-experience {
        position: static;
        /* Remove absolute positioning */
        margin-top: 20px;
        transform: none;
        background: rgba(255, 255, 255, 0.05);
        border: 1px solid var(--border-color);
        border-radius: 12px;
        padding: 15px;
    }

    .hero-right .hero-description {
        margin-bottom: 20px;
        font-size: 1rem;
    }

    .hero-badge-cert {
        position: static;
        margin-top: 10px;
        display: inline-block;
        transform: none;
    }

    /* 3. Floating Buttons (FAB & Scroll-to-top) */
    .fab-container {
        bottom: 20px;
        right: 20px;
    }

    .fab-main {
        width: 50px;
        height: 50px;
        font-size: 1.2rem;
    }

    .fab-options {
        bottom: 75px;
        right: 0;
    }

    .scroll-to-top {
        bottom: 80px;
        /* Avoid overlap with FAB */
        right: 20px;
        width: 40px;
        height: 40px;
    }

    /* 4. Services & Cards: Single Column / Horizontal Scroll */
    /* Converting grids to horizontal scrolling containers as requested for mobile */
    .services-grid,
    .portfolio-container .portfolio-scroll {
        display: flex;
        flex-wrap: nowrap;
        overflow-x: auto;
        gap: 20px;
        padding: 10px 5px 30px 5px;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
        /* Smooth scroll on iOS */
        scrollbar-width: none;
        /* Hide scrollbar Firefox */
        grid-template-columns: none;
        /* Override grid */
        margin: 0 -5%;
        /* Negative margin to span full width */
        padding-left: 5%;
        padding-right: 5%;
    }

    .services-grid::-webkit-scrollbar,
    .portfolio-scroll::-webkit-scrollbar {
        display: none;
        /* Hide scrollbar Chrome/Safari */
    }

    .service-card {
        flex: 0 0 85vw;
        /* Max width to ensure part of next card is visible */
        width: 85vw;
        max-width: 350px;
        scroll-snap-align: center;
        margin: 0;
    }

    /* 5. Portfolio Horizontal Scroll Section */
    .portfolio-card {
        flex: 0 0 85vw;
        width: 85vw;
        max-width: 350px;
        height: auto;
        /* Allow content to dictate height */
        min-height: 400px;
        scroll-snap-align: center;
        margin: 0;
    }

    .scroll-indicators {
        display: none;
        /* Hide scroll buttons on mobile as requested */
    }

    .card-mockups {
        height: 180px;
        /* Reduce height for mobile */
        margin-top: 20px;
    }

    .mockup-phone {
        width: 50px;
        height: 100px;
    }

    .mockup-tablet {
        width: 80px;
        height: 110px;
    }

    .mockup-laptop {
        width: 140px;
        height: 90px;
    }

    .mockup-desktop {
        width: 130px;
        height: 80px;
    }

    /* 6. Skills Section */
    .skills-container {
        display: block;
        /* Stack vertically */
    }

    .skills-visual {
        display: none;
        /* Hide visual on mobile if it takes too much space */
    }

    .skills-content {
        padding: 0;
    }

    .skill-bar {
        height: 8px;
        /* Reduce height */
    }

    .skill-progress {
        height: 100%;
    }

    /* 7. Contact Section */
    .contact-container {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .contact-form input,
    .contact-form textarea {
        width: 100%;
        /* Full width */
        height: 50px;
        /* Increase hit area */
    }

    .contact-form textarea {
        height: 120px;
    }

    /* Global Typography Adjustments */
    .section-title {
        font-size: 2rem;
    }

    .section-description {
        font-size: 1rem;
        padding: 0 10px;
    }
}

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

    .experience-number {
        font-size: 3rem;
    }

    .hero-background {
        height: 35vh;
    }

    .service-card,
    .portfolio-card {
        flex: 0 0 90vw;
        width: 90vw;
    }
}

/* ---------------------------------------- */
/* LIQUID GLASS EFFECT (Restored)           */
/* ---------------------------------------- */

/* Glass Utility */
.liquid-glass {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.15);
}

[data-theme='dark'] .liquid-glass {
    background: rgba(15, 23, 42, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

/* 1. Hero Badges */
.hero-badge,
.hero-badge-cert {
    background: rgba(255, 255, 255, 0.15) !important;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    color: var(--text-primary);
    transition: all 0.4s ease;
    border-radius: 50px;
}

.hero-badge:hover,
.hero-badge-cert:hover {
    background: rgba(255, 255, 255, 0.25) !important;
    border-color: rgba(255, 255, 255, 0.5);
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.2);
}

/* 2. Experience Floating Block */
.hero-experience {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    padding: 15px 25px;
}

/* 3. Hero Title Liquid Gradient */
.hero-title .highlight {
    background: linear-gradient(135deg, var(--primary-color) 0%, #60a5fa 50%, var(--accent-teal) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    color: transparent;
    filter: drop-shadow(0 2px 4px rgba(74, 139, 135, 0.2));
    position: relative;
    z-index: 10;
}

/* 4. Hero Email Pill */
.hero-email {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 10px 20px;
    border-radius: 30px;
    display: inline-block;
}

/* Dark Mode Adjustments */
[data-theme='dark'] .hero-badge,
[data-theme='dark'] .hero-badge-cert,
[data-theme='dark'] .hero-experience,
[data-theme='dark'] .hero-email {
    background: rgba(15, 23, 42, 0.6) !important;
    border-color: rgba(255, 255, 255, 0.08);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

[data-theme='dark'] .hero-badge:hover,
[data-theme='dark'] .hero-badge-cert:hover {
    background: rgba(30, 41, 59, 0.8) !important;
    border-color: rgba(74, 139, 135, 0.4);
}

/* Dynamic Portfolio Grid */
.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 30px;
    padding: 20px 0;
}

.portfolio-card-dynamic {
    background: var(--bg-secondary);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
}

.portfolio-card-dynamic:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-xl);
}

.project-image-container {
    height: 200px;
    width: 100%;
    overflow: hidden;
    position: relative;
    background: #e0e0e0;
}

.project-image-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.portfolio-card-dynamic:hover .project-image-container img {
    transform: scale(1.05);
}

.project-content {
    padding: 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.project-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 10px;
    color: var(--text-primary);
}

.project-desc {
    font-size: 0.95rem;
    color: var(--text-secondary);
    margin-bottom: 15px;
    line-height: 1.5;
    flex: 1;
}

.project-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 20px;
}

.project-tag {
    font-size: 0.75rem;
    padding: 4px 10px;
    background: rgba(44, 95, 93, 0.1);
    color: var(--primary-color);
    border-radius: 20px;
    font-weight: 600;
}

.project-links {
    margin-top: auto;
    display: flex;
    justify-content: flex-end;
}

.project-link-btn {
    text-decoration: none;
    color: var(--primary-color);
    font-weight: 600;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 5px;
    transition: color 0.3s ease;
}

.project-link-btn:hover {
    color: var(--accent-orange);
}

/* Admin Link Footer */
.admin-footer-link {
    color: var(--text-light);
    font-size: 0.8rem;
    text-decoration: none;
    opacity: 0.5;
    transition: opacity 0.3s ease;
}

.admin-footer-link:hover {
    opacity: 1;
}

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

    25% {
        transform: translateX(-5px);
    }

    50% {
        transform: translateX(5px);
    }

    75% {
        transform: translateX(-5px);
    }

    100% {
        transform: translateX(0);
    }
}

/* ========================================== */
/* ENHANCED PROJECT DETAILS MODAL            */
/* ========================================== */

.project-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.92);
    backdrop-filter: blur(20px) saturate(150%);
    -webkit-backdrop-filter: blur(20px) saturate(150%);
    z-index: 20000;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    pointer-events: none;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    padding: 20px;
}

.project-modal-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

/* Enhanced Modal Content with Premium Design */
.project-modal-content {
    background: var(--bg-secondary);
    width: 900px;
    max-width: 95%;
    max-height: 90vh;
    border-radius: 28px;
    overflow: hidden;
    position: relative;
    box-shadow: 0 40px 80px rgba(0, 0, 0, 0.6),
        0 0 0 1px rgba(255, 255, 255, 0.1);
    display: flex;
    flex-direction: column;
    transform: scale(0.85) translateY(30px);
    opacity: 0;
    transition: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
    border: 1px solid var(--border-color);
}

.project-modal-overlay.active .project-modal-content {
    transform: scale(1) translateY(0);
    opacity: 1;
}

/* Glassmorphism Close Button */
.close-project-modal {
    position: absolute;
    top: 24px;
    right: 24px;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(12px);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.2);
    width: 48px;
    height: 48px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.3rem;
    z-index: 100;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
}

.close-project-modal:hover {
    background: rgba(239, 68, 68, 0.9);
    transform: rotate(90deg) scale(1.1);
    border-color: rgba(239, 68, 68, 0.5);
}

/* Enhanced Image Section with Carousel Support */
.project-modal-image {
    width: 100%;
    height: 320px;
    background: linear-gradient(135deg, #000, #1a1a1a);
    position: relative;
    overflow: hidden;
}

.project-modal-image::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(180deg, transparent 0%, rgba(0, 0, 0, 0.4) 100%);
    z-index: 1;
    pointer-events: none;
}

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

.project-modal-overlay.active .project-modal-image img {
    transform: scale(1.05);
}

/* Modal Image Overlay for Badges */
.modal-image-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 2;
    padding: 24px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-start;
    gap: 12px;
}

/* Enhanced Modal Badges */
.modal-badge {
    background: rgba(255, 255, 255, 0.25);
    backdrop-filter: blur(16px) saturate(180%);
    -webkit-backdrop-filter: blur(16px) saturate(180%);
    color: white;
    padding: 8px 18px;
    border-radius: 24px;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2),
        0 0 0 1px rgba(255, 255, 255, 0.3);
    display: inline-flex;
    align-items: center;
    gap: 8px;
    animation: fadeInDown 0.6s ease forwards;
}

.modal-badge.featured {
    background: linear-gradient(135deg, rgba(255, 149, 0, 0.95), rgba(255, 107, 0, 0.95));
}

.modal-badge.status {
    background: rgba(34, 197, 94, 0.9);
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }

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

/* Enhanced Modal Body with Better Spacing */
.project-modal-body {
    padding: 32px 36px;
    overflow-y: auto;
    color: var(--text-primary);
    flex: 1;
}

/* Custom Scrollbar for Modal */
.project-modal-body::-webkit-scrollbar {
    width: 8px;
}

.project-modal-body::-webkit-scrollbar-track {
    background: var(--bg-primary);
    border-radius: 10px;
}

.project-modal-body::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 10px;
}

.project-modal-body::-webkit-scrollbar-thumb:hover {
    background: var(--accent-teal);
}

/* Modal Header with Better Typography */
.project-modal-header {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-bottom: 24px;
    animation: fadeInUp 0.6s ease 0.1s forwards;
    opacity: 0;
}

.project-modal-overlay.active .project-modal-header {
    animation: fadeInUp 0.6s ease 0.2s forwards;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

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

.project-modal-header h2 {
    font-size: 2rem;
    font-weight: 900;
    margin: 0;
    color: var(--text-primary);
    line-height: 1.2;
    letter-spacing: -0.5px;
}

/* Meta Row with Icons */
.modal-meta-row {
    display: flex;
    gap: 24px;
    flex-wrap: wrap;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-secondary);
    font-size: 0.95rem;
    font-weight: 500;
}

.meta-item i {
    color: var(--primary-color);
    font-size: 1rem;
}

/* Enhanced Tags Section */
.project-modal-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 28px;
    animation: fadeInUp 0.6s ease 0.3s forwards;
    opacity: 0;
}

.project-modal-overlay.active .project-modal-tags {
    animation: fadeInUp 0.6s ease 0.3s forwards;
}

.project-modal-tag {
    background: linear-gradient(135deg, rgba(44, 95, 93, 0.15), rgba(44, 95, 93, 0.08));
    color: var(--primary-color);
    padding: 8px 16px;
    border-radius: 24px;
    font-size: 0.85rem;
    font-weight: 700;
    border: 1px solid rgba(44, 95, 93, 0.2);
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    position: relative;
    overflow: hidden;
}

.project-modal-tag::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: left 0.5s ease;
}

.project-modal-tag:hover::before {
    left: 100%;
}

.project-modal-tag:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(44, 95, 93, 0.4);
}

/* Modal Section Styling */
.project-modal-section {
    margin-bottom: 32px;
    animation: fadeInUp 0.6s ease 0.4s forwards;
    opacity: 0;
}

.project-modal-overlay.active .project-modal-section {
    animation: fadeInUp 0.6s ease 0.4s forwards;
}

.project-modal-section h3 {
    font-size: 1.3rem;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.project-modal-section h3 i {
    color: var(--primary-color);
    font-size: 1.2rem;
}

/* Enhanced Description */
.project-modal-desc {
    font-size: 1.05rem;
    line-height: 1.8;
    color: var(--text-secondary);
    white-space: pre-wrap;
}

.project-modal-desc p {
    margin-bottom: 16px;
}

.project-modal-desc strong {
    color: var(--primary-color);
    font-weight: 700;
}

.project-modal-desc ul,
.project-modal-desc ol {
    margin-left: 24px;
    margin-bottom: 16px;
}

.project-modal-desc li {
    margin-bottom: 8px;
    line-height: 1.7;
}

/* Feature List with Icons */
.feature-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.feature-list li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 14px;
    font-size: 1rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

.feature-list li i {
    color: #10b981;
    font-size: 1.1rem;
    margin-top: 2px;
    flex-shrink: 0;
}

/* Tech Grid */
.tech-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.tech-badge {
    background: var(--bg-primary);
    color: var(--text-primary);
    padding: 10px 16px;
    border-radius: 12px;
    font-size: 0.9rem;
    font-weight: 600;
    border: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
}

.tech-badge:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(44, 95, 93, 0.3);
}

.tech-badge i {
    font-size: 0.85rem;
}

/* Enhanced Modal Footer */
.project-modal-footer {
    border-top: 1px solid var(--border-color);
    padding: 24px 36px;
    display: flex;
    gap: 16px;
    justify-content: flex-end;
    background: var(--bg-primary);
}

.modal-action-btn {
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 28px;
    border-radius: 12px;
    font-weight: 700;
    font-size: 0.95rem;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    position: relative;
    overflow: hidden;
}

.modal-action-btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.5s ease, height 0.5s ease;
}

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

.modal-action-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(44, 95, 93, 0.4);
}

/* Dark Mode Enhancements */
[data-theme='dark'] .project-modal-overlay {
    background: rgba(0, 0, 0, 0.95);
}

[data-theme='dark'] .project-modal-content {
    background: #1e293b;
    border-color: #475569;
    box-shadow: 0 40px 80px rgba(0, 0, 0, 0.8),
        0 0 0 1px rgba(125, 211, 216, 0.1);
}

[data-theme='dark'] .project-modal-header h2 {
    color: #f8fafc;
}

[data-theme='dark'] .project-modal-desc,
[data-theme='dark'] .meta-item {
    color: #cbd5e1;
}

[data-theme='dark'] .project-modal-tag {
    background: linear-gradient(135deg, rgba(125, 211, 216, 0.15), rgba(125, 211, 216, 0.08));
    color: #7dd3d8;
    border-color: rgba(125, 211, 216, 0.2);
}

[data-theme='dark'] .project-modal-tag:hover {
    background: #7dd3d8;
    color: #1a1a1a;
}

[data-theme='dark'] .close-project-modal {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
}

[data-theme='dark'] .close-project-modal:hover {
    background: rgba(239, 68, 68, 0.9);
}

[data-theme='dark'] .tech-badge:hover {
    background: #7dd3d8;
    color: #1a1a1a;
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .project-modal-content {
        width: 100%;
        height: 100%;
        max-height: 100vh;
        border-radius: 0;
    }

    .project-modal-image {
        height: 240px;
    }

    .project-modal-body {
        padding: 24px 20px;
    }

    .project-modal-header h2 {
        font-size: 1.6rem;
    }

    .project-modal-footer {
        padding: 20px;
        flex-direction: column;
    }

    .modal-action-btn {
        width: 100%;
        justify-content: center;
    }

    .close-project-modal {
        top: 16px;
        right: 16px;
        width: 40px;
        height: 40px;
    }
}



/* Achievement Gallery Section */
.achievement-gallery {
    padding: 80px 0;
    background: var(--bg-secondary);
    overflow: hidden;
}

.gallery-container {
    width: 100%;
    position: relative;
    overflow: hidden;
}

.gallery-track {
    display: flex;
    gap: 20px;
    width: max-content;
    animation: scrollGallery 30s linear infinite;
}

.gallery-track:hover {
    animation-play-state: paused;
}

.gallery-item {
    width: 300px;
    height: 200px;
    border-radius: 12px;
    overflow: hidden;
    position: relative;
    flex-shrink: 0;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-color);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.gallery-item:hover img {
    transform: scale(1.05);
}

.gallery-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 15px 10px;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.9), transparent);
    color: white;
    font-size: 1rem;
    font-weight: 600;
    text-align: center;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.3s ease;
    z-index: 2;
}

.gallery-item:hover .gallery-caption {
    opacity: 1;
    transform: translateY(0);
}

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

    100% {
        transform: translateX(-50%);
        /* Move half width assuming duplicated content */
    }
}

/* View Counter FAB */
.view-counter-fab {
    position: fixed;
    bottom: 20px;
    left: 20px;
    width: auto !important;
    /* Force auto width to prevent stretching */
    max-width: fit-content;
    right: auto;
    /* Ensure it doesn't span to right */
    background: rgba(0, 0, 0, 0.6);
    color: white;
    padding: 8px 15px;
    border-radius: 50px;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 8px;
    backdrop-filter: blur(5px);
    z-index: 9999;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Chatbot Toggle Button (Stacked above FAB) */
.chatbot-toggle-btn {
    position: fixed;
    bottom: 90px;
    /* Stacked above the main FAB */
    right: 20px;
    /* Aligned with FAB */
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: var(--primary-color);
    color: white;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s, box-shadow 0.3s;
    z-index: 10000;
}

.chatbot-toggle-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.3);
}

/* ---------------------------------------- */
/* UI DOCK (New Navigation)                 */
/* ---------------------------------------- */

.ui-dock-container {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10000;
    display: flex;
    justify-content: center;
    width: auto;
    pointer-events: none;
    opacity: 1;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.ui-dock-container.dock-hidden {
    transform: translateX(-50%) translateY(100px);
    opacity: 0;
    pointer-events: none;
}

/* Hide dock during loading */
.loader:not(.hidden)~.ui-dock-container {
    opacity: 0;
    pointer-events: none;
}

.ui-dock {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 20px;
    background: rgba(255, 255, 255, 0.6);
    /* Lighter, more paper-like */
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    pointer-events: auto;
}

.ui-dock:hover {
    background: rgba(255, 255, 255, 0.2);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.25);
    transform: scale(1.02);
}

[data-theme='dark'] .ui-dock {
    background: rgba(30, 41, 59, 0.85);
    /* Proper slate color for dark mode */
    border-color: rgba(255, 255, 255, 0.1);
}

[data-theme='dark'] .ui-dock:hover {
    background: rgba(30, 41, 59, 0.8);
}

.ui-dock-item {
    background: transparent;
    border: none;
    color: #2c5f5d;
    /* Force dark color for light mode */
    font-size: 1.3rem;
    cursor: pointer;
    padding: 10px;
    border-radius: 12px;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 45px;
    height: 45px;
    outline: none;
}

.ui-dock-item:hover {
    transform: translateY(-8px) scale(1.2);
    background: rgba(44, 95, 93, 0.15);
    color: var(--primary-color);
}

[data-theme='dark'] .ui-dock-item {
    color: #f8fafc;
    /* Light color for dark mode */
}

[data-theme='dark'] .ui-dock-item:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--accent-teal);
}

/* Specific Item Styles */
.view-counter-dock {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
    font-weight: 600;
    width: auto;
    padding: 8px 15px;
    background: rgba(44, 95, 93, 0.15);
    color: #2c5f5d;
    /* Dark text for light mode */
    cursor: default;
}

.view-counter-dock:hover {
    transform: none;
    background: rgba(44, 95, 93, 0.2);
    color: #1a3f3d;
}

[data-theme='dark'] .view-counter-dock {
    color: #cbd5e1;
    /* Light text for dark mode */
}

[data-theme='dark'] .view-counter-dock:hover {
    color: #f8fafc;
}

.view-counter-dock i {
    font-size: 1rem;
    color: var(--accent-orange);
}

.ui-dock-separator {
    width: 1px;
    height: 25px;
    background: rgba(0, 0, 0, 0.1);
    margin: 0 5px;
}

[data-theme='dark'] .ui-dock-separator {
    background: rgba(255, 255, 255, 0.2);
}

/* Tooltip on Hover */
.ui-dock-item::after {
    content: attr(title);
    position: absolute;
    bottom: 140%;
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 5px 10px;
    border-radius: 6px;
    font-size: 0.75rem;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: all 0.2s ease;
    visibility: hidden;
}

.ui-dock-item:hover::after {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
    visibility: visible;
}

/* Mobile Adjustments */
@media (max-width: 480px) {
    .ui-dock-container {
        width: 100%;
        bottom: 20px;
        left: 0;
        transform: none;
        padding: 0 10px;
        justify-content: center;
        /* Center if content fits, otherwise start */
    }

    .ui-dock-container.dock-hidden {
        transform: translateY(100px);
    }

    .ui-dock {
        width: 100%;
        max-width: 100%;
        overflow-x: auto;
        justify-content: flex-start;
        /* Alignment for scroll */
        padding: 10px 15px;
        gap: 12px;
        border-radius: 24px;
        background: rgba(255, 255, 255, 0.85);
        /* More solid on mobile */
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        /* Firefox */
    }

    .ui-dock::-webkit-scrollbar {
        display: none;
        /* Chrome/Safari */
    }

    [data-theme='dark'] .ui-dock {
        background: rgba(30, 41, 59, 0.95);
    }

    .view-counter-dock {
        padding: 0 12px;
        height: 44px;
        /* Touch target */
        font-size: 0.85rem;
        flex-shrink: 0;
        background: rgba(44, 95, 93, 0.1);
        border-radius: 12px;
    }

    .ui-dock-item {
        width: 44px;
        /* Minimum touch target */
        height: 44px;
        font-size: 1.2rem;
        flex-shrink: 0;
        background: transparent;
    }

    .ui-dock-item:active {
        transform: scale(0.95);
    }

    .ui-dock-separator {
        height: 20px;
        margin: 0 2px;
        flex-shrink: 0;
    }

    /* --- HERO MOBILE LAYOUT --- */
    /* --- HERO MOBILE LAYOUT - MAGAZINE STYLE --- */
    .hero {
        display: block;
        /* No flex */
        padding: 0;
        min-height: 100vh;
        overflow: hidden;
        position: relative;
    }

    /* Image Layer - ON TOP (Z-Index 20) */
    .hero-background {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        z-index: 20;
        margin: 0;
        pointer-events: none;
    }

    .hero-background img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        object-position: center top;
        transform: scale(1.1);
        /* Slight zoom for impact */
    }

    /* Existing Overlay */
    /* Text Layer - Mixed Z-Index */
    .hero-container {
        position: relative;
        z-index: auto;
        /* Allow children to interleave */
        width: 100%;
        height: 100%;
        padding: 120px 20px 0;
        margin: 0;
        display: flex;
        flex-direction: column;
        justify-content: flex-start;
        pointer-events: none;
        /* Let clicks pass to underlying interactions if any */
    }

    .hero-left {
        background: transparent;
        border: none;
        box-shadow: none;
        backdrop-filter: none;
        padding: 0;
        margin: 0;
        text-align: left;
        display: contents;
        /* unwrap styling to let children position freely */
    }

    /* We need to adjust stacking context */
    .hero-container {
        z-index: 15;
        /* Container is above background? */
        /* If we want text BEHIND image, the image needs to be on top. */
        /* Currently .hero-background is relative/flow.
           Let's make .hero-background z-index higher than .hero-left text.
        */
    }

    .hero-background {
        z-index: 20;
        /* Image ON TOP */
        pointer-events: none;
        /* Let clicks pass through if needed */
        mask-image: linear-gradient(to bottom, black 80%, transparent 100%);
        /* Optional fade at bottom */
        -webkit-mask-image: linear-gradient(to bottom, black 80%, transparent 100%);
    }

    [data-theme='dark'] .hero-left {
        background: transparent;
        border-color: transparent;
    }

    /* TITLE: Behind Image (Z-Index 10) */
    .hero-title {
        position: relative;
        z-index: 10;
        font-size: 3.5rem;
        font-weight: 900;
        line-height: 0.9;
        margin-bottom: 0;
        color: var(--primary-color);
        text-shadow: none;
        opacity: 0.95;
    }

    [data-theme='dark'] .hero-title {
        color: #e2e8f0;
        text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
    }

    /* Tweaking the highlight */
    .hero-title .highlight {
        display: block;
        font-size: 4rem;
        background: -webkit-linear-gradient(45deg, #2c5f5d, #4a8b87);
        -webkit-background-clip: text;
        background-clip: text;
        /* Standard property for compatibility */
        -webkit-text-fill-color: transparent;
    }

    /* DESCRIPTION: Front of Image (Z-Index 30) - Bottom Edge */
    .hero-description {
        position: absolute;
        bottom: 120px;
        /* Above dock area */
        left: 20px;
        right: 20px;
        z-index: 30;
        font-size: 1.1rem;
        max-width: 100%;
        color: #ffffff;
        /* Make white for visibility on image */
        font-weight: 600;
        line-height: 1.4;
        text-shadow: 0 2px 4px rgba(0, 0, 0, 0.8);
        /* Strong shadow for readability */
        margin: 0;
        background: rgba(0, 0, 0, 0);
        /* No bg */
        pointer-events: auto;
    }

    [data-theme='dark'] .hero-description {
        color: #ffffff;
        text-shadow: 0 2px 10px rgba(0, 0, 0, 0.9);
    }

    /* Hide requested elements */
    .hero-email,
    .hero-experience,
    .hero-badge {
        display: none !important;
    }

    /* MERN Badge - ON TOP (Z-Index 35) */
    .hero-right {
        position: static;
        padding: 0;
        min-height: 0;
    }

    .hero-right .hero-badge-cert {
        position: absolute;
        top: 100px;
        /* Safe distance from top/nav */
        right: 20px;
        width: auto;
        padding: 8px 12px;
        font-size: 0.7rem;
        transform: rotate(5deg);
        z-index: 35;
        background: rgba(255, 255, 255, 0.95);
        box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
        border-radius: 12px;
    }
}

/* Admin Login Modal Styles - Global */
.admin-password-input {
    width: 100%;
    padding: 14px 45px 14px 14px;
    border-radius: 10px;
    border: 1px solid rgba(0, 0, 0, 0.15);
    background: rgba(255, 255, 255, 0.9);
    color: #1a202c;
    font-size: 1rem;
    box-sizing: border-box;
    transition: all 0.3s ease;
}

#togglePasswordBtn {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    color: #4a5568;
    font-size: 1.1rem;
    z-index: 10;
    transition: color 0.3s ease;
}

/* Dark Mode Overrides for Admin Login */
[data-theme="dark"] .admin-password-input {
    background: rgba(23, 23, 23, 0.5);
    border: var(--card-border);
    color: var(--text-primary);
    box-shadow: var(--card-inner-shadow);
}

[data-theme="dark"] .admin-password-input:focus {
    border-color: var(--primary-color);
    box-shadow: var(--card-inner-shadow), 0 0 0 2px rgba(var(--primary-rgb), 0.2);
}

[data-theme="dark"] #togglePasswordBtn {
    color: var(--text-secondary);
}

[data-theme="dark"] #togglePasswordBtn:hover {
    color: var(--primary-color);
}