/* Preloader Styles */
#preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #124063 0%, #1e5a8e 30%, #2874b0 60%, #124063 100%);
    background-size: 300% 300%;
    animation: gradientShift 8s ease infinite;
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

body.preloader-active {
    overflow: hidden !important;
}

#preloader.fade-out {
    opacity: 0;
    visibility: hidden;
}

.preloader-particles {
    position: absolute;
    inset: 0;
    background-image:
        radial-gradient(circle, rgba(255, 255, 255, 0.15) 1px, transparent 1px),
        radial-gradient(circle, rgba(68, 204, 204, 0.2) 1px, transparent 1px);
    background-size: 50px 50px, 80px 80px;
    background-position: 0 0, 40px 40px;
    animation: particleFloat 30s linear infinite;
}

.preloader-content {
    position: relative;
    z-index: 2;
    text-align: center;
}

.preloader-logo {
    font-size: 72px;
    font-weight: 900;
    color: #fff;
    text-shadow: 0 0 30px rgba(68, 204, 204, 0.8),
        0 0 60px rgba(68, 204, 204, 0.5);
    margin-bottom: 40px;
    animation: logoGlow 2s ease-in-out infinite, logoFloat 3s ease-in-out infinite;
    letter-spacing: 8px;
}

@keyframes logoGlow {

    0%,
    100% {
        text-shadow: 0 0 30px rgba(68, 204, 204, 0.8),
            0 0 60px rgba(68, 204, 204, 0.5);
    }

    50% {
        text-shadow: 0 0 40px rgba(68, 204, 204, 1),
            0 0 80px rgba(68, 204, 204, 0.8),
            0 0 120px rgba(68, 204, 204, 0.5);
    }
}

@keyframes logoFloat {

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

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

.progress-container {
    width: 300px;
    height: 6px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    overflow: hidden;
    margin: 0 auto 20px;
    box-shadow: inset 0 0 10px rgba(0, 0, 0, 0.3);
    position: relative;
}

.progress-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 10px;
    border: 1px solid rgba(68, 204, 204, 0.3);
}

.progress-bar {
    height: 100%;
    width: 0;
    background: linear-gradient(90deg, #4CC 0%, #3AB 50%, #4CC 100%);
    background-size: 200% 100%;
    border-radius: 10px;
    animation: progressShimmer 1.5s ease-in-out infinite;
    box-shadow: 0 0 20px rgba(68, 204, 204, 0.8),
        inset 0 0 10px rgba(255, 255, 255, 0.3);
    transition: width 0.3s ease;
    position: relative;
}

.progress-bar::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 40px;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.5));
    animation: progressGlare 1s ease-in-out infinite;
}

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

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

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

@keyframes progressGlare {

    0%,
    100% {
        opacity: 0;
    }

    50% {
        opacity: 1;
    }
}

.loading-text {
    color: rgba(255, 255, 255, 0.8);
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 2px;
    animation: textPulse 2s ease-in-out infinite;
}

@keyframes textPulse {

    0%,
    100% {
        opacity: 0.6;
    }

    50% {
        opacity: 1;
    }
}

/* Language Toggle */
.language-toggle {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin: 20px 0;
    padding: 15px 0;
    border-top: 1px solid rgba(250, 250, 250, 0.1);
    border-bottom: 1px solid rgba(250, 250, 250, 0.1);
}

.language-toggle button {
    background: none;
    border: 2px solid rgba(68, 204, 204, 0.3);
    border-radius: 50%;
    padding: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0.5;
}

.language-toggle button img {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
}

.language-toggle button:hover {
    border-color: rgba(68, 204, 204, 0.6);
    transform: scale(1.05);
    opacity: 0.8;
}

.language-toggle button.active {
    border-color: #4CC;
    opacity: 1;
    box-shadow: 0 0 15px rgba(68, 204, 204, 0.4);
}

/* Sidebar active menu styling */
.main-menu li.active a {
    color: #fff !important;
    background: linear-gradient(135deg, rgba(68, 204, 204, 0.2) 0%, rgba(58, 187, 187, 0.2) 100%);
    border-left: 3px solid #4CC;
    text-shadow: 0 0 10px rgba(68, 204, 204, 0.3);
}

.main-menu li a:hover {
    color: #4CC;
    background: rgba(68, 204, 204, 0.1);
}

/* Hamburger menu icon */
.responsive-nav i.fa-bars,
.responsive-nav i.fa-times {
    color: #4CC;
    background: transparent;
}

/* Specific fixes for menu toggle buttons */
#menu-toggle,
#menu-close {
    background: linear-gradient(135deg, #124063 0%, #1e5a8e 100%) !important;
    color: #4CC !important;
    border: 2px solid rgba(68, 204, 204, 0.3);
}

#menu-toggle:hover,
#menu-close:hover {
    background: linear-gradient(135deg, #1e5a8e 0%, #2874b0 100%) !important;
    border-color: #4CC;
    box-shadow: 0 0 15px rgba(68, 204, 204, 0.4);
}

/* Social media icons */
.social-title {
    display: block;
    font-size: 13px;
    text-transform: uppercase;
    color: #4CC;
    margin-bottom: 20px;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-shadow: 0 0 10px rgba(68, 204, 204, 0.2);
}

.social-network .social-icons li a {
    background: rgba(68, 204, 204, 0.1);
    border: 1px solid rgba(68, 204, 204, 0.3);
    transition: all 0.5s ease;
    /* Slowed down from 0.3s */
    position: relative;
}

.social-network .social-icons li a::after {
    content: attr(aria-label);
    position: absolute;
    top: 120%;
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    /* Start slightly lower */
    background: #124063;
    color: #fff;
    padding: 5px 10px;
    /* Slightly larger padding */
    border-radius: 4px;
    font-size: 12px;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: none;
    /* Instant disappear */
    pointer-events: none;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(68, 204, 204, 0.4);
    z-index: 100;
    font-weight: 600;
}

.social-network .social-icons li a:hover::after {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
    transition: all 0.4s ease-out 0.4s;
    /* Smooth fade in, 0.4s delay */
}

.social-network .social-icons li a:hover {
    background: rgba(68, 204, 204, 0.3);
    border-color: #4CC;
    box-shadow: 0 0 15px rgba(68, 204, 204, 0.4);
    transform: scale(1.1);
    /* Kept scale but it will be slower due to transition above */
}

.social-network .social-icons li a i {
    color: #4CC;
    transition: transform 0.5s ease;
    /* Ensure icon also transitions smoothly */
}

.social-network .social-icons li a:hover i {
    transform: rotate(360deg);
    /* ADD ROTATION ON HOVER - Maybe this is what they wanted or expecting? Or maybe I should ensure NO rotation? */
}

/* Base Styles */
html {
    min-height: 100%;
}

body {
    font-family: 'Outfit', sans-serif !important;
    font-size: 16px;
    line-height: 1.6;
    background: #295a7d !important;
    background-attachment: fixed !important;
    background-size: cover !important;
    position: relative;
    /* Ensure body doesn't block canvas */
}

/* Custom Scrollbar Width Enhancement (approx 15% increase) */
::-webkit-scrollbar {
    width: 14px;
    height: 14px;
    cursor: url("data:image/svg+xml,%3Csvg width='32' height='32' viewBox='0 0 32 32' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M6 4L14 26L18 17L27 13L6 4Z' fill='%23FFBD2E' stroke='%23124063' stroke-width='2' stroke-linejoin='round'/%3E%3C/svg%3E") 6 4, pointer;
}

::-webkit-scrollbar-track {
    background: rgba(18, 64, 99, 0.4);
    cursor: url("data:image/svg+xml,%3Csvg width='32' height='32' viewBox='0 0 32 32' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M6 4L14 26L18 17L27 13L6 4Z' fill='%23FFBD2E' stroke='%23124063' stroke-width='2' stroke-linejoin='round'/%3E%3C/svg%3E") 6 4, pointer;
}

::-webkit-scrollbar-thumb {
    background: rgba(68, 204, 204, 0);
    /* Start fully transparent */
    border-radius: 10px;
    border: 3px solid rgba(18, 64, 99, 1);
    transition: background 1.5s ease-out;
    cursor: url("data:image/svg+xml,%3Csvg width='32' height='32' viewBox='0 0 32 32' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M6 4L14 26L18 17L27 13L6 4Z' fill='%23FFBD2E' stroke='%23124063' stroke-width='2' stroke-linejoin='round'/%3E%3C/svg%3E") 6 4, pointer;
}

/* Ensure menu scrollbar also gets it */
.menu,
.responsive-nav {
    scrollbar-color: #4CC rgba(18, 64, 99, 0.4);
}

/* Scrollbar fade-in animation triggers when preloader is gone */
body:not(.preloader-active) ::-webkit-scrollbar-thumb {
    background: rgba(68, 204, 204, 0.4);
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(68, 204, 204, 0.7) !important;
}

/* Background Canvas */
#bg-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    /* Behind content but above background */
    pointer-events: none;
}

/* Animated gradient */
@keyframes gradientFlow {
    0% {
        background-position: 0% 50%;
    }

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

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

/* Ensure content is above background effects */
#page-wraper {
    position: relative;
    z-index: 100 !important;
}

/* Make sure no backgrounds are blocking canvas */
#page-wraper>* {
    background: transparent;
}

/* Subtle vignette effect */
#page-wraper::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(ellipse at center,
            transparent 0%,
            transparent 60%,
            rgba(0, 0, 0, 0.15) 100%);
    pointer-events: none;
    z-index: 1;
    /* minimal overlay over canvas */
}

/* Make sure sections are above vignette */
.section {
    position: relative;
    z-index: 101;
}

.about-me p,
.about-me .achievement {
    text-align: justify;
}


img {
    max-width: 100%;
    height: auto;
}

/* Interactive cursor */
html,
body {
    cursor: url("data:image/svg+xml,%3Csvg width='32' height='32' viewBox='0 0 32 32' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M6 4L14 26L18 17L27 13L6 4Z' fill='%234CC' stroke='%23124063' stroke-width='2' stroke-linejoin='round'/%3E%3C/svg%3E") 6 4, auto;
}

a,
button,
label,
[role="button"],
.white-button,
.white-button a,
.project-card,
.skill-category,
.service-item,
.isotope-toolbar label,
.main-nav a,
.terminal-header,
#terminal-toggle,
.terminal-option-btn,
.mapper-btn,
.mapper-toggle-btn,
.filter-btn,
.pagination-btn,
.gallery-item,
.gallery-overlay a,
.inline-gallery-link,
#email-btn,
.social-icons a,
.language-toggle button,
#menu-toggle,
#menu-close {
    cursor: url("data:image/svg+xml,%3Csvg width='32' height='32' viewBox='0 0 32 32' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M6 4L14 26L18 17L27 13L6 4Z' fill='%23FFBD2E' stroke='%23124063' stroke-width='2' stroke-linejoin='round'/%3E%3C/svg%3E") 6 4, pointer !important;
}


h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: 'Inter', sans-serif !important;
}

/* Hero Banner */
.hero-banner {
    height: 180px;
    background: linear-gradient(135deg, #124063 0%, #1e5a8e 30%, #2874b0 60%, #124063 100%);
    background-size: 300% 300%;
    animation: gradientShift 8s ease infinite;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: visible;
    margin-bottom: 0;
    border-radius: 0 0 18px 18px;
    border: 2px solid rgba(68, 204, 204, 0.3);
    border-top: none;
    box-shadow: inset 0 0 30px rgba(68, 204, 204, 0.1);
}

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

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

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

/* Animated particles */
.hero-banner::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        radial-gradient(circle, rgba(255, 255, 255, 0.15) 1px, transparent 1px),
        radial-gradient(circle, rgba(68, 204, 204, 0.2) 1px, transparent 1px);
    background-size: 50px 50px, 80px 80px;
    background-position: 0 0, 40px 40px;
    animation: particleFloat 30s linear infinite;
    z-index: 1;
}

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

    100% {
        transform: translateY(-80px);
    }
}

/* Gradient fade */
.hero-banner::after {
    content: '';
    position: absolute;
    bottom: -30px;
    left: 0;
    right: 0;
    height: 80px;
    background: linear-gradient(to bottom,
            rgba(18, 64, 99, 0) 0%,
            rgba(18, 64, 99, 0.3) 40%,
            rgba(18, 64, 99, 0.6) 70%,
            rgba(18, 64, 99, 0) 100%);
    filter: blur(15px);
    pointer-events: none;
    z-index: -1;
    border-radius: 0 0 18px 18px;
}

.hero-content {
    text-align: center;
    z-index: 3;
    padding: 20px;
    position: relative;
}

.hero-content h1 {
    font-size: 48px;
    font-weight: 900;
    color: #fff;
    margin-bottom: 15px;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.5);
    animation: fadeInUp 1s ease-out, floatTitle 3s ease-in-out infinite;
}

@keyframes floatTitle {

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

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

.hero-content .tagline {
    font-size: 16px;
    color: rgba(255, 255, 255, 0.95);
    max-width: 600px;
    margin: 0 auto;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
    animation: fadeInUp 1s ease-out 0.4s backwards;
}

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

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

/* Modern Buttons */
.white-button {
    display: inline-block;
    margin: 10px 10px 10px 0;
}

.white-button a {
    background: linear-gradient(135deg, #0f304b 0%, #1e5a8e 100%);
    color: #fff !important;
    padding: 12px 28px;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 700;
    font-size: 12px;
    display: inline-block;
    position: relative;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(68, 204, 204, 0.2);
    text-transform: uppercase;
    letter-spacing: 1.5px;
}

.white-button a::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(68, 204, 204, 0.15), transparent);
    transition: left 0.6s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.white-button a:hover {
    transform: translateY(-4px) scale(1.03);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.5), 0 0 15px rgba(68, 204, 204, 0.2);
    background: linear-gradient(135deg, #1e5a8e 0%, #0d2a42 100%);
    border-color: rgba(68, 204, 204, 0.8);
}

.white-button a:active {
    transform: translateY(-1px) scale(0.97);
    transition: all 0.1s;
}

.white-button a:hover::before {
    left: 100%;
}

.inline-gallery-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin: 15px 0;
    color: #4CC !important;
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    padding: 8px 12px;
    border: 1px solid rgba(68, 204, 204, 0.15);
    border-radius: 4px;
    background: rgba(68, 204, 204, 0.05);
}

.inline-gallery-link:hover {
    color: #fff !important;
    background: rgba(68, 204, 204, 0.15);
    border-color: #4CC;
    transform: translateX(8px);
    box-shadow: -4px 0 15px rgba(68, 204, 204, 0.1);
}

/* Project Cards */
.project-card {
    background: rgba(250, 250, 250, 0.05);
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 30px;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), background 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid rgba(250, 250, 250, 0.1);
}

/* Staggered animation delays for projects */
/* Staggered animation delays for projects */
.project-card:nth-child(1) {
    transition-delay: 0.04s;
    --base-delay: 0.04s;
}

.project-card:nth-child(2) {
    transition-delay: 0.08s;
    --base-delay: 0.08s;
}

.project-card:nth-child(3) {
    transition-delay: 0.12s;
    --base-delay: 0.12s;
}

.project-card:nth-child(4) {
    transition-delay: 0.16s;
    --base-delay: 0.16s;
}

.project-card:nth-child(5) {
    transition-delay: 0.2s;
    --base-delay: 0.2s;
}

.project-card:nth-child(6) {
    transition-delay: 0.24s;
    --base-delay: 0.24s;
}

.project-card:nth-child(7) {
    transition-delay: 0.28s;
    --base-delay: 0.28s;
}

.project-card:nth-child(8) {
    transition-delay: 0.32s;
    --base-delay: 0.32s;
}


.project-card:hover {
    background: rgba(250, 250, 250, 0.1);
    transform: translateY(-8px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    border-color: rgba(68, 204, 204, 0.3);
}

.project-card h4 {
    color: #4CC;
    margin-bottom: 15px;
    font-size: 24px;
    transition: transform 0.3s ease;
}

.project-card:hover h4 {
    transform: translateX(5px);
}

.project-card h4 i {
    animation: iconBounce 2s ease-in-out infinite;
}

@keyframes iconBounce {

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

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

.project-card .tech-stack {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 15px;
}

.project-card .tech-badge {
    background: rgba(68, 204, 204, 0.2);
    color: #4CC;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 13px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.project-card .tech-badge:hover {
    background: rgba(68, 204, 204, 0.4);
    transform: translateY(-2px);
}

/* Skills Grid */
.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 30px;
}

.skill-category {
    background: rgba(20, 45, 60, 0.6);
    /* Theme Dark Blue */
    padding: 20px;
    border-radius: 8px;
    border-left: 3px solid #4CC;
    transition: all 0.3s ease;
}

/* Staggered animation delays for skills */
/* Staggered animation delays for skills */
.skill-category:nth-child(1) {
    transition-delay: 0.05s;
    --base-delay: 0.05s;
}

.skill-category:nth-child(2) {
    transition-delay: 0.1s;
    --base-delay: 0.1s;
}

.skill-category:nth-child(3) {
    transition-delay: 0.15s;
    --base-delay: 0.15s;
}

.skill-category:nth-child(4) {
    transition-delay: 0.2s;
    --base-delay: 0.2s;
}

.skill-category:nth-child(5) {
    transition-delay: 0.25s;
    --base-delay: 0.25s;
}


.skill-category:hover {
    transform: translateY(-5px);
    background: rgba(20, 45, 60, 0.8);
    /* Darker on hover */
    box-shadow: 0 8px 25px rgba(68, 204, 204, 0.2);
}

.skill-category h5 {
    color: #4CC;
    margin-bottom: 15px;
    font-size: 18px;
}

.skill-category ul {
    list-style: none;
    padding: 0;
}

.skill-category li {
    display: block;
    padding: 5px 0;
    color: #fff;
}

.skill-category li:before {
    content: "▹ ";
    color: #4CC;
    font-weight: bold;
}

/* Equal Height Sections */
.equal-height-container {
    display: flex;
    gap: 30px;
    margin-top: 40px;
}

.equal-height-container .col-md-6 {
    flex: 1;
    display: flex;
}

.service-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    background: rgba(20, 45, 60, 0.6);
    /* Theme Dark Blue */
    padding: 25px;
    border-radius: 15px;
    border: 1px solid rgba(68, 204, 204, 0.1);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), background 0.3s ease, box-shadow 0.3s ease;
}

.service-item:hover {
    transform: translateY(-5px);
    background: rgba(20, 45, 60, 0.8);
    /* Darker on hover */
    box-shadow: 0 8px 25px rgba(68, 204, 204, 0.3);
    border-color: rgba(68, 204, 204, 0.3);
}

.service-item i {
    font-size: 48px;
    color: #4CC !important;
    margin-bottom: 15px;
    transition: all 0.3s ease;
    display: block;
    transform-origin: center center;
}

.service-item:hover i {
    color: #5DD !important;
    text-shadow: 0 0 20px rgba(68, 204, 204, 0.8),
        0 0 40px rgba(68, 204, 204, 0.5);
    transform: scale(1.1);
}

.service-item h4 {
    color: #4CC;
    transition: all 0.3s ease;
    font-weight: 700;
}

.service-item:hover h4 {
    color: #5DD;
    text-shadow: 0 0 15px rgba(68, 204, 204, 0.6),
        0 0 30px rgba(68, 204, 204, 0.3);
}

.service-item ul {
    list-style: none;
    padding: 0;
    margin-top: 15px;
    text-align: left;
}

.service-item li {
    position: relative;
    padding-left: 20px;
    margin-bottom: 12px;
    color: #fff;
    line-height: 1.4;
}

.service-item li:before {
    content: "▹";
    position: absolute;
    left: 0;
    color: #4CC;
    font-weight: bold;
}

.service-item:hover li,
.service-item:hover li strong {
    color: #fff !important;
}

/* Project Cards - Styled to match Service Items */
.project-card {
    background: rgba(20, 45, 60, 0.6);
    /* Theme Dark Blue */
    padding: 25px;
    border-radius: 15px;
    border: 1px solid rgba(68, 204, 204, 0.1);
    transition: transform 0.2s ease, background 0.3s ease, box-shadow 0.3s ease;
    margin-bottom: 30px;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.project-card:hover {
    transform: translateY(-5px);
    background: rgba(20, 45, 60, 0.8);
    /* Darker on hover */
    box-shadow: 0 8px 25px rgba(68, 204, 204, 0.3);
    border-color: rgba(68, 204, 204, 0.3);
}

.project-card h4 {
    color: #4CC;
    font-size: 20px;
    margin-bottom: 15px;
    font-weight: 700;
}

.project-card h4 i {
    margin-right: 10px;
}

.project-card p {
    color: #fff;
    flex-grow: 1;
}

/* Tech Stack Badges */
.tech-stack {
    margin: 15px 0;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.tech-badge {
    background: rgba(68, 204, 204, 0.1);
    border: 1px solid rgba(68, 204, 204, 0.3);
    color: #4CC;
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 13px;
    font-weight: 500;
}

.project-card:hover .tech-badge {
    background: rgba(68, 204, 204, 0.2);
    border-color: rgba(68, 204, 204, 0.5);
}

/* Achievements */
.achievement {
    background: rgba(255, 215, 0, 0.1);
    border-left: 3px solid #FFD700;
    padding: 15px;
    margin: 15px 0;
    border-radius: 4px;
}

.achievement strong {
    color: #FFD700;
}

.highlight {
    color: #FFD700;
    font-weight: bold;
}

/* Animations */
.section-heading {
    animation: fadeIn 0.8s ease-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.right-image-post,
.left-image-post {
    animation: slideIn 0.8s ease-out;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }

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

/* Gallery Styles */
.my-showcase .section-heading {
    padding-top: 20px;
    padding-bottom: 20px;
}

.gallery-filters {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin: 5px 0 25px 0;
    flex-wrap: wrap;
}

.filter-btn {
    background: rgba(250, 250, 250, 0.05);
    color: #fff;
    border: 2px solid rgba(68, 204, 204, 0.2);
    padding: 10px 25px;
    border-radius: 4px;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.filter-btn:hover {
    background: rgba(68, 204, 204, 0.1);
    border-color: rgba(68, 204, 204, 0.5);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
}

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

.filter-btn.active {
    background: linear-gradient(135deg, #0d2a42 0%, #1e5a8e 100%);
    border-color: #4CC;
    box-shadow: 0 6px 20px rgba(68, 204, 204, 0.4);
    color: #fff;
    transform: scale(1.05);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 25px;
    margin-top: 30px;
    min-height: 480px;
    /* Forces height to stay consistent even with 1-2 images */
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 12px;
    aspect-ratio: 16/9;
    background: rgba(250, 250, 250, 0.05);
    border: 1px solid rgba(68, 204, 204, 0.1);
    transition: all 0.4s ease;
    cursor: pointer;
}

.gallery-item.hidden {
    display: none;
}

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

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

.gallery-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(18, 64, 99, 0.95) 0%, transparent 100%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 20px;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

.gallery-overlay h4 {
    color: #4CC;
    font-size: 18px;
    margin-bottom: 5px;
    font-weight: 700;
}

.gallery-overlay p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 13px;
    margin-bottom: 15px;
}

.gallery-overlay a {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 45px;
    height: 45px;
    background: rgba(68, 204, 204, 0.9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 18px;
    transition: all 0.3s ease;
    text-decoration: none;
}

.gallery-overlay a:hover {
    background: #4CC;
    transform: scale(1.1);
    box-shadow: 0 0 20px rgba(68, 204, 204, 0.6);
}

.gallery-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(68, 204, 204, 0.3);
    border-color: rgba(68, 204, 204, 0.5);
}

/* Pagination Controls */
.gallery-pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    margin-top: 25px;
}

.pagination-btn {
    width: 45px;
    height: 45px;
    background: rgba(250, 250, 250, 0.05);
    border: 2px solid rgba(68, 204, 204, 0.2);
    border-radius: 4px;
    color: #4CC;
    font-size: 18px;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    display: flex;
    align-items: center;
    justify-content: center;
}

.pagination-btn:hover:not(:disabled) {
    background: rgba(68, 204, 204, 0.15);
    border-color: #4CC;
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 0 15px rgba(68, 204, 204, 0.2);
}

.pagination-btn:active:not(:disabled) {
    transform: scale(0.9) rotate(0deg);
}

.pagination-btn:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

#pageInfo {
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    min-width: 100px;
    text-align: center;
}

/* Lightbox Fixed Dimensions */
.lb-outerContainer {
    width: 1200px !important;
    height: 800px !important;
    border-radius: 8px !important;
    background: radial-gradient(ellipse at center, rgba(40, 40, 40, 0.3) 0%, rgba(0, 0, 0, 0.9) 100%) !important;
}

.lb-container {
    width: 1200px !important;
    height: 800px !important;
    padding: 0 !important;
    position: relative !important;
}

.lb-image {
    width: 1200px !important;
    height: 800px !important;
    object-fit: contain !important;
    border-radius: 8px !important;
    opacity: 1 !important;
    filter: drop-shadow(0 0 40px rgba(0, 0, 0, 0.8)) !important;
}

.lb-dataContainer {
    width: 1200px !important;
    border-radius: 0 0 8px 8px !important;
}

/* Hide only the loader */
.lb-loader,
.lb-cancel {
    display: none !important;
}

/* Style navigation arrows */
.lb-nav {
    display: block !important;
}

.lb-prev,
.lb-next {
    opacity: 1 !important;
}

/* Prevent loading animations */
.lb-outerContainer,
.lb-container,
.lb-image {
    animation: none !important;
}

/* Mobile Responsive */
@media (max-width: 992px) {
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .lb-outerContainer {
        width: 90vw !important;
        height: 60vh !important;
    }

    .lb-container {
        width: 90vw !important;
        height: 60vh !important;
    }

    .lb-image {
        width: 90vw !important;
        height: 60vh !important;
    }

    .lb-dataContainer {
        width: 90vw !important;
    }
}

@media (max-width: 768px) {
    .preloader-logo {
        font-size: 48px;
    }

    .progress-container {
        width: 250px;
    }

    .hero-banner {
        height: 150px;
    }

    .hero-content h1 {
        font-size: 28px;
    }

    .hero-content .tagline {
        font-size: 13px;
    }

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

    .equal-height-container {
        flex-direction: column;
    }

    .section-heading span {
        font-size: 14px;
        line-height: 1.5;
    }

    .gallery-filters {
        gap: 10px;
    }

    .filter-btn {
        padding: 8px 18px;
        font-size: 13px;
    }

    .gallery-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
}


/* Vertically center left-image in column */
.left-image-post .col-md-4 {
    display: flex;
    align-items: center;
}

/* Vertically center right-image in column */
.right-image-post .col-md-4 {
    display: flex;
    align-items: center;
}

.left-image {
    width: 100%;
}

.left-image img {
    width: 100%;
    border-radius: 8px;
}

.right-image {
    width: 100%;
}

.right-image img {
    width: 100%;
    border-radius: 8px;
}

/* Custom Scrollbar Styling */
::-webkit-scrollbar {
    width: 25px;
}

::-webkit-scrollbar-track {
    background: linear-gradient(180deg, #124063 0%, #1e5a8e 50%, #124063 100%);
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, #2874b0 0%, #1e5a8e 100%);
    border-radius: 10px;
    border: 2px solid rgba(68, 204, 204, 0.1);
    transition: all 0.3s ease;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, #4CC 0%, #3AB 100%);
    border-color: rgba(68, 204, 204, 0.4);
    box-shadow: 0 0 10px rgba(68, 204, 204, 0.3);
}

/* Firefox Scrollbar */
* {
    scrollbar-width: auto;
    scrollbar-color: #2874b0 #124063;
}

/* =========================================
   Phase A Enhancements (Merged)
   ========================================= */

/* Preloader Enhancements */
.loading-percentage {
    color: #4CC;
    font-size: 24px;
    font-weight: 700;
    margin-top: 10px;
    font-family: 'Inter', sans-serif;
    text-shadow: 0 0 10px rgba(68, 204, 204, 0.5);
}

.loading-quote {
    color: rgba(255, 255, 255, 0.6);
    font-size: 14px;
    font-style: italic;
    margin-top: 15px;
    min-height: 20px;
    transition: opacity 0.5s ease;
}

/* Scroll Progress Indicator */
#scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    height: 3px;
    background: #4CC;
    width: 0%;
    z-index: 100000;
    box-shadow: 0 0 10px rgba(68, 204, 204, 0.8);
    transition: width 0.1s ease-out;
}

/* Icon Hover Animations */
.social-icons li a {
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275) !important;
}

.social-icons li a:hover {
    transform: rotate(360deg) scale(1.1) !important;
}

.skill-category i {
    transition: transform 0.3s ease;
}

.skill-category:hover i {
    animation: pulseIcon 1s infinite;
}

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

    50% {
        transform: scale(1.2);
    }

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

/* =========================================
   PHASE B: Button & Interaction Enhancements
   ========================================= */

/* B1. Button Effects */
/* Bounce Animation Class (applied via JS) */
.btn-bounce-anim {
    animation: buttonBounce 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

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

    40% {
        transform: scale(0.9);
    }

    70% {
        transform: scale(1.05);
    }

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

/* Ripple Effect */
.ripple-btn {
    position: relative;
    overflow: hidden;
}

.ripple-effect {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.4);
    transform: scale(0);
    animation: rippleAnimation 0.6s linear;
    pointer-events: none;
}

@keyframes rippleAnimation {
    to {
        transform: scale(4);
        opacity: 0;
    }
}

/* B2. Tech Badges Visibility */
/* Hide by default */
.project-card .tech-badge {
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Staggered reveal on hover */
.project-card:hover .tech-badge {
    opacity: 1;
    transform: translateY(0);
}

/* Stagger delays for badges (up to 6 badges) */
.project-card:hover .tech-badge:nth-child(1) {
    transition-delay: 0.05s;
}

.project-card:hover .tech-badge:nth-child(2) {
    transition-delay: 0.1s;
}

.project-card:hover .tech-badge:nth-child(3) {
    transition-delay: 0.15s;
}

.project-card:hover .tech-badge:nth-child(4) {
    transition-delay: 0.2s;
}

.project-card:hover .tech-badge:nth-child(5) {
    transition-delay: 0.25s;
}

.project-card:hover .tech-badge:nth-child(6) {
    transition-delay: 0.3s;
}

/* Keep badges visible on mobile to ensure usability */
@media (max-width: 768px) {
    .project-card .tech-badge {
        opacity: 1;
        transform: translateY(0);
    }
}

/* =========================================
   PHASE C: Skill Bars & Metrics
   ========================================= */

/* C2. Metrics Section */
.metrics-section {
    background: linear-gradient(135deg, #1a1a1a 0%, #2a2a2a 100%);
    padding: 80px 0;
    position: relative;
    overflow: hidden;
}

.metrics-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 50% 50%, rgba(68, 204, 204, 0.1) 0%, transparent 70%);
    pointer-events: none;
}

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

.metric-item {
    text-align: center;
    padding: 30px 20px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 15px;
    border: 1px solid rgba(68, 204, 204, 0.2);
    transition: all 0.3s ease;
    position: relative;
}

.metric-item:hover {
    transform: translateY(-5px);
    border-color: rgba(68, 204, 204, 0.5);
    box-shadow: 0 10px 30px rgba(68, 204, 204, 0.2);
}

.metric-icon {
    font-size: 40px;
    color: #4CC;
    margin-bottom: 15px;
    animation: metricGlow 2s ease-in-out infinite;
}

@keyframes metricGlow {

    0%,
    100% {
        text-shadow: 0 0 10px rgba(68, 204, 204, 0.5);
    }

    50% {
        text-shadow: 0 0 20px rgba(68, 204, 204, 0.8), 0 0 30px rgba(68, 204, 204, 0.4);
    }
}

.metric-number {
    font-size: 48px;
    font-weight: 700;
    color: #fff;
    margin: 10px 0;
    font-family: 'Inter', sans-serif;
}

.metric-label {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.7);
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* C1. Animated Skill Progress Bars */
.skill-bars {
    margin-top: 15px;
}

.skill-bar {
    margin-bottom: 20px;
}

.skill-info {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.9);
}

.skill-percent {
    color: #4CC;
    font-weight: 600;
}

.skill-track {
    background: rgba(255, 255, 255, 0.1);
    height: 8px;
    border-radius: 10px;
    overflow: hidden;
    position: relative;
}

.skill-progress {
    background: linear-gradient(90deg, #4CC 0%, #6EE 100%);
    height: 100%;
    border-radius: 10px;
    transition: width 1.5s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

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

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

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

/* Responsive adjustments */
@media (max-width: 768px) {
    .metrics-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }

    .metric-number {
        font-size: 36px;
    }

    .metric-icon {
        font-size: 32px;
    }
}

@media (max-width: 480px) {
    .metrics-grid {
        grid-template-columns: 1fr;
    }
}

/* Metrics Section - Adjusted for Skills integration */
.metrics-section {
    background: transparent;
    padding: 0;
}

.metrics-grid {
    margin: 40px 0 30px 0 !important;
}

.metric-icon {
    font-size: 36px !important;
    margin-bottom: 12px !important;
}

.metric-number {
    font-size: 42px !important;
    margin: 8px 0 !important;
}

.metric-label {
    font-size: 13px !important;
}

/* Fix service-item icon centering */
.service-item i {
    display: block !important;
    text-align: center !important;
    margin-left: auto !important;
    margin-right: auto !important;
}

/* Responsive - reduce metric spacing on mobile */
@media (max-width: 768px) {
    .metrics-grid {
        margin: 30px 0 20px 0 !important;
    }

    .metric-number {
        font-size: 36px !important;
    }

    .metric-icon {
        font-size: 32px !important;
    }
}

/* Reduce metric card height */
.metric-item {
    padding: 20px 15px !important;
}

.metric-icon {
    font-size: 32px !important;
    margin-bottom: 10px !important;
}

.metric-number {
    font-size: 38px !important;
    margin: 6px 0 !important;
}

.metric-label {
    font-size: 12px !important;
}

/* Section Container Overlay for Better Text Separation */
section .container {
    background: rgba(20, 45, 60, 0.2);
    border-radius: 20px;
    padding: 30px;
    margin-bottom: 30px;
}

/* Verified Badge */
.verified-tag {
    display: inline-flex;
    align-items: center;
    background: rgba(68, 204, 204, 0.15);
    color: #4CC;
    font-size: 11px;
    padding: 2px 8px;
    border-radius: 10px;
    margin-left: 10px;
    vertical-align: middle;
    border: 1px solid rgba(68, 204, 204, 0.3);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 700;
}

.verified-tag i {
    font-size: 10px;
    margin-right: 4px;
    color: #4CC;
}

/* Minimal Card Stats */
.card-mini-stats {
    display: flex;
    align-items: center;
    /* Added for better alignment when wrapping */
    flex-wrap: wrap;
    /* Enable wrapping */
    gap: 20px;
    margin: 15px 0;
    padding: 10px 0;
    border-top: 1px solid rgba(250, 250, 250, 0.05);
    border-bottom: 1px solid rgba(250, 250, 250, 0.05);
}

.stat-pill {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.7);
}

.stat-pill i {
    color: #4CC;
    font-size: 14px;
}

.stat-pill strong {
    color: #fff;
    font-weight: 700;
}

/* Inline Gallery Link */
.inline-gallery-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: #4CC;
    text-decoration: none !important;
    margin-top: 5px;
    opacity: 0.8;
    transition: all 0.3s ease;
}

.inline-gallery-link:hover {
    opacity: 1;
    transform: translateX(3px);
    color: #5DD;
}

.project-card .white-button {
    margin-top: 20px !important;
}

/* Scroll Reveal Base Styles */
.reveal-on-scroll {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.5s cubic-bezier(0.5, 0, 0, 1),
        transform 0.5s cubic-bezier(0.5, 0, 0, 1);
    will-change: opacity, transform;
}

/* Snappy revealing cards for Featured Projects */
.reveal-card {
    opacity: 0;
    transform: translateX(80px) scale(0.95) skewX(-3deg);
    transition: opacity 0.5s ease-out, transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
    will-change: opacity, transform;
}

.reveal-card.is-visible {
    opacity: 1;
    transform: translateX(0) scale(1) skewX(0deg);
}

.reveal-on-scroll.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* Skills and Service list item animation (Up to Down) */
.skill-category li,
.service-item li {
    opacity: 0;
    transform: translateY(-20px);
    transition: opacity 0.6s ease-out, transform 0.7s cubic-bezier(0.175, 0.885, 0.32, 1.275) !important;
}

.skill-category.is-visible li,
.service-item.is-visible li {
    opacity: 1;
    transform: translateY(0);
}

/* Staggered delays for skill and service bullets - relative to category delay (0.2s steps) */
.skill-category li:nth-child(1),
.service-item li:nth-child(1) {
    transition-delay: calc(var(--base-delay, 0s) + 0.2s) !important;
}

.skill-category li:nth-child(2),
.service-item li:nth-child(2) {
    transition-delay: calc(var(--base-delay, 0s) + 0.4s) !important;
}

.skill-category li:nth-child(3),
.service-item li:nth-child(3) {
    transition-delay: calc(var(--base-delay, 0s) + 0.6s) !important;
}

.skill-category li:nth-child(4),
.service-item li:nth-child(4) {
    transition-delay: calc(var(--base-delay, 0s) + 0.8s) !important;
}

.skill-category li:nth-child(5),
.service-item li:nth-child(5) {
    transition-delay: calc(var(--base-delay, 0s) + 1.0s) !important;
}

.skill-category li:nth-child(6),
.service-item li:nth-child(6) {
    transition-delay: calc(var(--base-delay, 0s) + 1.2s) !important;
}

.skill-category li:nth-child(7),
.service-item li:nth-child(7) {
    transition-delay: calc(var(--base-delay, 0s) + 1.4s) !important;
}

.skill-category li:nth-child(8),
.service-item li:nth-child(8) {
    transition-delay: calc(var(--base-delay, 0s) + 1.6s) !important;
}

/* Faster hover transitions after elements are revealed */
.reveal-on-scroll.is-visible:hover,
.reveal-card.is-visible:hover {
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1),
        background 0.3s ease,
        box-shadow 0.3s ease,
        border-color 0.3s ease;
}