/* CSS Variables for Theme Colors */
:root {
    /* Light theme colors */
    --bg-color: #e4e0e0;
    --text-color: rgb(7, 21, 48);
    --card-bg: #fff;
    --nav-bg: rgba(228, 224, 224, 0.95);
    --nav-hover-bg: rgba(228, 224, 224, 0.98);
    --border-color: rgba(255, 255, 255, 0.2);
    --shadow-color: rgba(0, 0, 0, 0.1);
    --accent-color: #3d006e;
    --secondary-accent: #03437a;
    --gradient-start: #e4e0e0;
    --gradient-end: #f5f3f3;
    --services-bg: linear-gradient(145deg, #bbb7b7, #f1f3f4);
    --services-hover-bg: linear-gradient(145deg, #ffffff, #f8f9fa);
    --input-bg: rgba(255, 255, 255, 0.8);
    --input-focus-bg: rgba(255, 255, 255, 0.95);
    --tab-bg: rgba(255, 255, 255, 0.1);
    --tab-hover-bg: rgba(255, 255, 255, 0.2);
    --about-bg: #e4e0e0;
    --secondary-text: #2c3e50;
    --muted-text: #5a6c7d;
    --element-text: #2e025f;
    --about-text: #333308;
    --social-text: #212a44;
    --placeholder-text: rgba(5, 23, 51, 0.6);
    --success-text: #2d5a27;
    --error-text: #e74c3c;
}

/* Dark theme colors */
.dark-theme {
    --bg-color: #1a1a1a;
    --text-color: #e4e4e4;
    --card-bg: #2d2d2d;
    --nav-bg: rgba(26, 26, 26, 0.95);
    --nav-hover-bg: rgba(26, 26, 26, 0.98);
    --border-color: rgba(255, 255, 255, 0.1);
    --shadow-color: rgba(0, 0, 0, 0.3);
    --accent-color: #7c3aed;
    --secondary-accent: #06b6d4;
    --gradient-start: #1a1a1a;
    --gradient-end: #2d2d2d;
    --services-bg: linear-gradient(145deg, #2d2d2d, #3a3a3a);
    --services-hover-bg: linear-gradient(145deg, #3a3a3a, #404040);
    --input-bg: rgba(45, 45, 45, 0.8);
    --input-focus-bg: rgba(45, 45, 45, 0.95);
    --tab-bg: rgba(255, 255, 255, 0.05);
    --tab-hover-bg: rgba(255, 255, 255, 0.1);
    --about-bg: #2d2d2d;
    --secondary-text: #b8c6d1;
    --muted-text: #9ca3af;
    --element-text: #a855f7;
    --about-text: #e4e4e4;
    --social-text: #94a3b8;
    --placeholder-text: rgba(156, 163, 175, 0.6);
    --success-text: #10b981;
    --error-text: #ef4444;
}

.light-theme {
    --bg-color: #e4e0e0;
    --text-color: rgb(7, 21, 48);
    --card-bg: #fff;
    --nav-bg: rgba(228, 224, 224, 0.95);
    --nav-hover-bg: rgba(228, 224, 224, 0.98);
    --border-color: rgba(255, 255, 255, 0.2);
    --shadow-color: rgba(0, 0, 0, 0.1);
    --accent-color: #3d006e;
    --secondary-accent: #03437a;
    --gradient-start: #e4e0e0;
    --gradient-end: #f5f3f3;
    --services-bg: linear-gradient(145deg, #bbb7b7, #f1f3f4);
    --services-hover-bg: linear-gradient(145deg, #ffffff, #f8f9fa);
    --input-bg: rgba(255, 255, 255, 0.8);
    --input-focus-bg: rgba(255, 255, 255, 0.95);
    --tab-bg: rgba(255, 255, 255, 0.1);
    --tab-hover-bg: rgba(255, 255, 255, 0.2);
    --about-bg: #e4e0e0;
    --secondary-text: #2c3e50;
    --muted-text: #5a6c7d;
    --element-text: #2e025f;
    --about-text: #333308;
    --social-text: #212a44;
    --placeholder-text: rgba(5, 23, 51, 0.6);
    --success-text: #2d5a27;
    --error-text: #e74c3c;
}

* {
    margin: 0;
    padding: 0;
    font-family: 'Poppins', sans-serif;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

/* Enhanced Scroll Animation Base Classes */
.scroll-animate {
    opacity: 0;
    transform: translateY(50px);
    transition: all 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    will-change: transform, opacity;
}

.scroll-animate.animate-in {
    opacity: 1;
    transform: translateY(0);
}

.scroll-animate-left {
    opacity: 0;
    transform: translateX(-80px) rotateY(-15deg);
    transition: all 0.9s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    will-change: transform, opacity;
}

.scroll-animate-left.animate-in {
    opacity: 1;
    transform: translateX(0) rotateY(0deg);
}

.scroll-animate-right {
    opacity: 0;
    transform: translateX(80px) rotateY(15deg);
    transition: all 0.9s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    will-change: transform, opacity;
}

.scroll-animate-right.animate-in {
    opacity: 1;
    transform: translateX(0) rotateY(0deg);
}

.scroll-animate-scale {
    opacity: 0;
    transform: scale(0.7) rotateZ(-5deg);
    transition: all 1s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    will-change: transform, opacity;
}

.scroll-animate-scale.animate-in {
    opacity: 1;
    transform: scale(1) rotateZ(0deg);
}

/* Enhanced animation effects */
/* .scroll-animate.animate-in,
.scroll-animate-left.animate-in,
.scroll-animate-right.animate-in,
.scroll-animate-scale.animate-in {
    animation: subtleGlow 2s ease-in-out;
} */

@keyframes subtleGlow {
    0%, 100% {
        box-shadow: none;
    }
    50% {
        box-shadow: 0 0 20px rgba(61, 0, 110, 0.1);
    }
}

/* Staggered animation delays for better visual flow */
.scroll-animate:nth-child(2) { transition-delay: 0.1s; }
.scroll-animate:nth-child(3) { transition-delay: 0.2s; }
.scroll-animate:nth-child(4) { transition-delay: 0.3s; }
.scroll-animate-left:nth-child(2) { transition-delay: 0.15s; }
.scroll-animate-right:nth-child(2) { transition-delay: 0.15s; }
.scroll-animate-scale:nth-child(2) { transition-delay: 0.2s; }
.scroll-animate-scale:nth-child(3) { transition-delay: 0.4s; }

/* Special animation for navbar click */
.nav-click-animate {
    animation: navClickTitle 0.8s ease-out forwards;
}

@keyframes navClickTitle {
    0% {
        opacity: 0;
        transform: translateY(-30px) scale(0.9);
        color: transparent;
    }
    50% {
        opacity: 0.7;
        transform: translateY(10px) scale(1.05);
        color: #3d006e;
        text-shadow: 0 0 20px rgba(61, 0, 110, 0.5);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
        color: #303009e0;
        text-shadow: none;
    }
}

/* Enhanced navbar active state */
nav ul li a.active-nav {
    color: var(--accent-color) !important;
    background: rgba(61, 0, 110, 0.1);
    border-radius: 20px;
    padding: 8px 16px;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(61, 0, 110, 0.3);
    animation: navLinkPulse 0.6s ease-out;
}

nav ul li a.active-nav::after {
    width: 100%;
    background: #3d006e;
}

@keyframes navLinkPulse {
    0% {
        transform: translateY(0) scale(1);
        box-shadow: 0 2px 8px rgba(61, 0, 110, 0.2);
    }
    50% {
        transform: translateY(-3px) scale(1.05);
        box-shadow: 0 6px 20px rgba(61, 0, 110, 0.4);
    }
    100% {
        transform: translateY(-2px) scale(1);
        box-shadow: 0 4px 15px rgba(61, 0, 110, 0.3);
    }
}

body {
    background: var(--bg-color);
    color: var(--text-color);
    padding-top: 80px;
    animation: pageEntrance 1.2s ease-out;
    transition: background-color 0.3s ease, color 0.3s ease;
    position: relative;
}

/* Global twinkling stars background for dark mode */
.dark-theme body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 300 300"><defs><pattern id="globalStars" width="300" height="300" patternUnits="userSpaceOnUse"><circle cx="25" cy="35" r="0.8" fill="%23a855f7" opacity="0.7"><animate attributeName="opacity" values="0.2;1;0.2" dur="3s" repeatCount="indefinite"/></circle><circle cx="85" cy="75" r="0.6" fill="%2306b6d4" opacity="0.6"><animate attributeName="opacity" values="0.3;0.9;0.3" dur="2.5s" repeatCount="indefinite"/></circle><circle cx="160" cy="50" r="0.7" fill="%23ff6b6b" opacity="0.8"><animate attributeName="opacity" values="0.1;0.8;0.1" dur="4s" repeatCount="indefinite"/></circle><circle cx="45" cy="130" r="0.5" fill="%234ecdc4" opacity="0.5"><animate attributeName="opacity" values="0.4;0.9;0.4" dur="3.2s" repeatCount="indefinite"/></circle><circle cx="120" cy="160" r="0.9" fill="%23feca57" opacity="0.9"><animate attributeName="opacity" values="0.2;1;0.2" dur="2.8s" repeatCount="indefinite"/></circle><circle cx="200" cy="120" r="0.6" fill="%23a855f7" opacity="0.6"><animate attributeName="opacity" values="0.3;0.7;0.3" dur="3.5s" repeatCount="indefinite"/></circle><circle cx="70" cy="220" r="0.7" fill="%2306b6d4" opacity="0.8"><animate attributeName="opacity" values="0.1;0.9;0.1" dur="2.2s" repeatCount="indefinite"/></circle><circle cx="180" cy="200" r="0.5" fill="%23ff6b6b" opacity="0.5"><animate attributeName="opacity" values="0.4;0.8;0.4" dur="3.8s" repeatCount="indefinite"/></circle><circle cx="250" cy="80" r="0.8" fill="%234ecdc4" opacity="0.8"><animate attributeName="opacity" values="0.2;1;0.2" dur="2.7s" repeatCount="indefinite"/></circle><circle cx="30" cy="280" r="0.6" fill="%23feca57" opacity="0.6"><animate attributeName="opacity" values="0.3;0.9;0.3" dur="4.1s" repeatCount="indefinite"/></circle><circle cx="140" cy="40" r="0.5" fill="%23a855f7" opacity="0.5"><animate attributeName="opacity" values="0.1;0.7;0.1" dur="3.3s" repeatCount="indefinite"/></circle><circle cx="220" cy="180" r="0.7" fill="%2306b6d4" opacity="0.7"><animate attributeName="opacity" values="0.4;1;0.4" dur="2.9s" repeatCount="indefinite"/></circle><circle cx="90" cy="250" r="0.6" fill="%23ff6b6b" opacity="0.6"><animate attributeName="opacity" values="0.2;0.8;0.2" dur="3.6s" repeatCount="indefinite"/></circle><circle cx="270" cy="140" r="0.8" fill="%234ecdc4" opacity="0.8"><animate attributeName="opacity" values="0.3;0.9;0.3" dur="2.4s" repeatCount="indefinite"/></circle><circle cx="60" cy="90" r="0.5" fill="%23feca57" opacity="0.5"><animate attributeName="opacity" values="0.1;0.8;0.1" dur="3.9s" repeatCount="indefinite"/></circle><circle cx="190" cy="260" r="0.7" fill="%23a855f7" opacity="0.7"><animate attributeName="opacity" values="0.4;1;0.4" dur="2.6s" repeatCount="indefinite"/></circle><circle cx="110" cy="210" r="0.6" fill="%2306b6d4" opacity="0.6"><animate attributeName="opacity" values="0.2;0.9;0.2" dur="3.4s" repeatCount="indefinite"/></circle><circle cx="240" cy="40" r="0.5" fill="%23ff6b6b" opacity="0.5"><animate attributeName="opacity" values="0.3;0.7;0.3" dur="4.3s" repeatCount="indefinite"/></circle><circle cx="50" cy="180" r="0.8" fill="%234ecdc4" opacity="0.8"><animate attributeName="opacity" values="0.1;1;0.1" dur="2.3s" repeatCount="indefinite"/></circle><circle cx="150" cy="100" r="0.6" fill="%23feca57" opacity="0.6"><animate attributeName="opacity" values="0.4;0.8;0.4" dur="3.7s" repeatCount="indefinite"/></circle></pattern></defs><rect width="300" height="300" fill="url(%23globalStars)"/></svg>');
    pointer-events: none;
    z-index: -1;
    animation: globalStarField 30s linear infinite;
}

@keyframes globalStarField {
    0% { transform: translateX(0px) translateY(0px); }
    25% { transform: translateX(-75px) translateY(-75px); }
    50% { transform: translateX(-150px) translateY(-150px); }
    75% { transform: translateX(-225px) translateY(-225px); }
    100% { transform: translateX(-300px) translateY(-300px); }
}

/* Page entrance animation */
@keyframes pageEntrance {
    0% {
        opacity: 0;
        transform: scale(0.95);
    }
    50% {
        opacity: 0.7;
        transform: scale(1.02);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}

#header {
    width: 100%;
    height: 100vh;
    /* background: linear-gradient(135deg, #e4e0e0 0%, #f5f3f3 50%, #e8e4e4 100%); */
    align-items: center;
    position: relative;
    overflow: hidden;
}

#header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: none;
    pointer-events: none;
    z-index: 1;
}

/* Twinkling stars for dark mode only */
.dark-theme #header::before {
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 200 200"><defs><pattern id="stars" width="200" height="200" patternUnits="userSpaceOnUse"><circle cx="20" cy="30" r="0.8" fill="%23a855f7" opacity="0.8"><animate attributeName="opacity" values="0.3;1;0.3" dur="2s" repeatCount="indefinite"/></circle><circle cx="80" cy="60" r="0.6" fill="%2306b6d4" opacity="0.7"><animate attributeName="opacity" values="0.2;0.9;0.2" dur="3s" repeatCount="indefinite"/></circle><circle cx="150" cy="40" r="0.5" fill="%23ff6b6b" opacity="0.6"><animate attributeName="opacity" values="0.4;1;0.4" dur="2.5s" repeatCount="indefinite"/></circle><circle cx="40" cy="120" r="0.7" fill="%234ecdc4" opacity="0.8"><animate attributeName="opacity" values="0.1;0.8;0.1" dur="4s" repeatCount="indefinite"/></circle><circle cx="120" cy="140" r="0.4" fill="%23feca57" opacity="0.5"><animate attributeName="opacity" values="0.3;0.9;0.3" dur="1.8s" repeatCount="indefinite"/></circle><circle cx="180" cy="110" r="0.6" fill="%23a855f7" opacity="0.7"><animate attributeName="opacity" values="0.2;1;0.2" dur="3.2s" repeatCount="indefinite"/></circle><circle cx="60" cy="180" r="0.5" fill="%2306b6d4" opacity="0.6"><animate attributeName="opacity" values="0.4;0.8;0.4" dur="2.7s" repeatCount="indefinite"/></circle><circle cx="160" cy="170" r="0.8" fill="%23ff6b6b" opacity="0.8"><animate attributeName="opacity" values="0.1;0.9;0.1" dur="3.5s" repeatCount="indefinite"/></circle></pattern></defs><rect width="200" height="200" fill="url(%23stars)"/></svg>');
    animation: starField 20s linear infinite;
}

@keyframes starField {
    0% { transform: translateY(0px); }
    100% { transform: translateY(-200px); }
}

.container {
    padding: 0 5%;
}

nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    box-shadow: 0 2px 10px var(--shadow-color);
    transition: all 0.3s ease;
    z-index: 1000;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: var(--nav-bg);
    backdrop-filter: blur(10px);
    padding: 10px 5%;
}

nav:hover {
    background: var(--nav-hover-bg);
}

.nav-controls {
    display: flex;
    align-items: center;
    gap: 15px;
    flex: 1;
    justify-content: flex-end;
}

.nav-controls #sidemenu {
    display: flex;
    align-items: center;
    gap: 30px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.nav-controls #sidemenu li {
    display: inline-block;
}

.nav-controls #sidemenu li a {
    color: var(--text-color);
    text-decoration: none;
    font-size: 1rem;
    font-weight: 500;
    padding: 8px 15px;
    border-radius: 20px;
    transition: all 0.3s ease;
    position: relative;
}

.nav-controls #sidemenu li a:hover {
    color: var(--accent-color);
    background: rgba(61, 0, 110, 0.1);
    transform: translateY(-2px);
}

.nav-controls #sidemenu .fa-square-xmark {
    display: none;
}

.theme-toggle {
    background: none;
    border: 2px solid var(--accent-color);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    color: var(--accent-color);
    font-size: 16px;
}

.theme-toggle:hover {
    background: var(--accent-color);
    color: var(--card-bg);
    transform: rotate(180deg) scale(1.1);
    box-shadow: 0 4px 15px rgba(61, 0, 110, 0.3);
}

.theme-toggle:active {
    transform: rotate(180deg) scale(0.95);
}

.logo {
    width: 140px;
    content: url('logo_l.png'); /* Default light theme logo */
    transition: opacity 0.3s ease;
}

/* Dark theme logo */
.dark-theme .logo {
    content: url('logo_d.png');
}

nav ul li {
    display: inline-block;
    list-style: none;
    margin: 10px 20px;
}

nav ul li a {
    color: var(--text-color);
    text-decoration: none;
    font-size: 18px;
    position: relative;
    padding: 5px 0;
    transition: all 0.3s ease;
}


nav ul li a::after {
    content: '';
    width: 0;
    height: 3px;
    background: #ecc06d;
    position: absolute;
    left: 0;
    bottom: -6px;
    transition: 0.5s;
}

nav ul li a:hover::after {
    width: 100%;
}

nav ul li a:hover {
    color: var(--accent-color);
    transform: translateY(-2px);
}

.hearder-text {
    margin-top: 10%;
    margin-left: 10%;
    font-size: 30px;
    position: relative;
    z-index: 2;
    /* padding: 40px 0; */
}

.hearder-text h1 {
    font-size: 4rem;
    margin: 20px 0;
    font-weight: 700;
    line-height: 1.2;
    background: linear-gradient(135deg, #2e025f, #03437a, #1a0a2e);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: fadeInUp 1s ease-out;
}

.hearder-text h1 span {
    color: var(--accent-color);
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
}

/* Dark mode specific colors for "Hi! I'm Bipasha" */
.dark-theme .hearder-text h1 {
    background: linear-gradient(135deg, #a855f7, #06b6d4, #ff6b6b);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.dark-theme .hearder-text h1 span {
    background: linear-gradient(45deg, #ff6b6b, #4ecdc4, #a855f7);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 2px 10px rgba(168, 85, 247, 0.3);
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

#element {
    font-size: 1.5rem;
    color: var(--element-text);
    font-weight: 500;
    margin-top: 15px;
    padding: 10px 20px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.3), rgba(255, 182, 193, 0.2));
    border-radius: 25px;
    display: inline-block;
    backdrop-filter: blur(10px);
    border: 2px solid transparent;
    background-clip: padding-box;
    animation: fadeInUp 1s ease-out 0.3s both, glowPulse 2s ease-in-out infinite;
    /* text-align: center; */
    /* margin-left: 110px; */
    width: fit-content;
    box-shadow: 0 4px 15px rgba(61, 0, 110, 0.2);
    background-image: linear-gradient(45deg, #ff6b6b, #4ecdc4, #45b7d1, #96ceb4, #feca57);
    background-size: 300% 300%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.bg {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    /* gap: 40px; */
    position: relative;
    z-index: 2;
}

.bgimg {
    flex-basis: 45%;
    min-width: 300px;
}

.bgimg:first-child {
    order: 1;
}

.bgimg:last-child {
    order: 2;
    display: flex;
    justify-content: center;
    align-items: center;
}

.bgimg img {
    width: 100%;
    max-width: 400px;
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
    border: 3px solid rgba(255, 255, 255, 0.3);
    animation: fadeInRight 1s ease-out 0.6s both;
}

.bgimg img:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.2);
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* ---------------- about ---------------- */

#about {
    padding: 80px 0;
    color: var(--about-text);
    position: relative;
    overflow: hidden;
}

/* Twinkling stars for about section in dark mode */
.dark-theme #about::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 300 300"><defs><pattern id="aboutStars" width="300" height="300" patternUnits="userSpaceOnUse"><circle cx="25" cy="35" r="0.8" fill="%23a855f7" opacity="0.7"><animate attributeName="opacity" values="0.2;1;0.2" dur="3s" repeatCount="indefinite"/></circle><circle cx="85" cy="75" r="0.6" fill="%2306b6d4" opacity="0.6"><animate attributeName="opacity" values="0.3;0.9;0.3" dur="2.5s" repeatCount="indefinite"/></circle><circle cx="160" cy="50" r="0.7" fill="%23ff6b6b" opacity="0.8"><animate attributeName="opacity" values="0.1;0.8;0.1" dur="4s" repeatCount="indefinite"/></circle><circle cx="45" cy="130" r="0.5" fill="%234ecdc4" opacity="0.5"><animate attributeName="opacity" values="0.4;0.9;0.4" dur="3.2s" repeatCount="indefinite"/></circle><circle cx="120" cy="160" r="0.9" fill="%23feca57" opacity="0.9"><animate attributeName="opacity" values="0.2;1;0.2" dur="2.8s" repeatCount="indefinite"/></circle><circle cx="200" cy="120" r="0.6" fill="%23a855f7" opacity="0.6"><animate attributeName="opacity" values="0.3;0.7;0.3" dur="3.5s" repeatCount="indefinite"/></circle><circle cx="70" cy="220" r="0.7" fill="%2306b6d4" opacity="0.8"><animate attributeName="opacity" values="0.1;0.9;0.1" dur="2.2s" repeatCount="indefinite"/></circle><circle cx="180" cy="200" r="0.5" fill="%23ff6b6b" opacity="0.5"><animate attributeName="opacity" values="0.4;0.8;0.4" dur="3.8s" repeatCount="indefinite"/></circle><circle cx="250" cy="80" r="0.8" fill="%234ecdc4" opacity="0.8"><animate attributeName="opacity" values="0.2;1;0.2" dur="2.7s" repeatCount="indefinite"/></circle><circle cx="30" cy="280" r="0.6" fill="%23feca57" opacity="0.6"><animate attributeName="opacity" values="0.3;0.9;0.3" dur="4.1s" repeatCount="indefinite"/></circle><circle cx="140" cy="40" r="0.5" fill="%23a855f7" opacity="0.5"><animate attributeName="opacity" values="0.1;0.7;0.1" dur="3.3s" repeatCount="indefinite"/></circle><circle cx="220" cy="180" r="0.7" fill="%2306b6d4" opacity="0.7"><animate attributeName="opacity" values="0.4;1;0.4" dur="2.9s" repeatCount="indefinite"/></circle><circle cx="90" cy="250" r="0.6" fill="%23ff6b6b" opacity="0.6"><animate attributeName="opacity" values="0.2;0.8;0.2" dur="3.6s" repeatCount="indefinite"/></circle><circle cx="270" cy="140" r="0.8" fill="%234ecdc4" opacity="0.8"><animate attributeName="opacity" values="0.3;0.9;0.3" dur="2.4s" repeatCount="indefinite"/></circle><circle cx="60" cy="90" r="0.5" fill="%23feca57" opacity="0.5"><animate attributeName="opacity" values="0.1;0.8;0.1" dur="3.9s" repeatCount="indefinite"/></circle><circle cx="190" cy="260" r="0.7" fill="%23a855f7" opacity="0.7"><animate attributeName="opacity" values="0.4;1;0.4" dur="2.6s" repeatCount="indefinite"/></circle><circle cx="110" cy="210" r="0.6" fill="%2306b6d4" opacity="0.6"><animate attributeName="opacity" values="0.2;0.9;0.2" dur="3.4s" repeatCount="indefinite"/></circle><circle cx="240" cy="40" r="0.5" fill="%23ff6b6b" opacity="0.5"><animate attributeName="opacity" values="0.3;0.7;0.3" dur="4.3s" repeatCount="indefinite"/></circle><circle cx="50" cy="180" r="0.8" fill="%234ecdc4" opacity="0.8"><animate attributeName="opacity" values="0.1;1;0.1" dur="2.3s" repeatCount="indefinite"/></circle><circle cx="150" cy="100" r="0.6" fill="%23feca57" opacity="0.6"><animate attributeName="opacity" values="0.4;0.8;0.4" dur="3.7s" repeatCount="indefinite"/></circle></pattern></defs><rect width="300" height="300" fill="url(%23aboutStars)"/></svg>');
    pointer-events: none;
    z-index: -1;
    animation: aboutStarField 35s linear infinite;
}

@keyframes aboutStarField {
    0% { transform: translateX(0px) translateY(0px); }
    25% { transform: translateX(-75px) translateY(-75px); }
    50% { transform: translateX(-150px) translateY(-150px); }
    75% { transform: translateX(-225px) translateY(-225px); }
    100% { transform: translateX(-300px) translateY(-300px); }
}

#about .container {
    position: relative;
    z-index: 1;
}

/* Smooth scrolling offset for fixed navbar */
#about,
#services,
#projects,
#contact {
    scroll-margin-top: 80px;
}

.row {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 40px;
}

.abour-col1 {
    flex-basis: 35%;
}

.abour-col1 img {
    width: 100%;
    border-radius: 15px;
    transition: all 0.4s ease;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    animation: float 3s ease-in-out infinite;
    animation-delay: 2s;
}

.abour-col1 img:hover {
    /* transform: scale(1.05) rotate(2deg); */
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

.abour-col2 {
    flex-basis: 60%;
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.sub-title {
    font-size: 60px;
    font-weight: 600;
    color: var(--text-color);
    position: relative;
    text-align: justify;
    transition: all 0.5s ease;
    cursor: default;
}

.sub-title:hover {
    color: var(--accent-color);
    transform: translateX(5px);
}

.sub-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 100px;
    height: 4px;
    background: linear-gradient(90deg, #3d006e, #03437a);
    transition: all 0.4s ease;
    border-radius: 2px;
}

.sub-title:hover::after {
    width: 150px;
    height: 5px;
    box-shadow: 0 2px 10px rgba(61, 0, 110, 0.3);
}

/* Enhanced animation for navbar click sub-titles */
.sub-title.nav-click-animate::after {
    animation: underlineExpand 0.8s ease-out forwards;
}

@keyframes underlineExpand {
    0% {
        width: 0;
        opacity: 0;
    }
    50% {
        width: 200px;
        opacity: 1;
        height: 6px;
        box-shadow: 0 3px 15px rgba(61, 0, 110, 0.5);
    }
    100% {
        width: 100px;
        opacity: 1;
        height: 4px;
        box-shadow: none;
    }
}

@keyframes expandWidth {
    from {
        width: 0;
    }

    to {
        width: 100px;
    }
}

.abour-col2 p {
    line-height: 1.6;
    margin: 30px 0;
}

.tab-titels {
    display: flex;
    margin: 20px 0 40px;
}

.tab-links {
    margin-right: 70px;
    font-size: 18px;
    font-weight: 500;
    cursor: pointer;
    position: relative;
    padding: 10px 20px;
    border-radius: 25px;
    transition: all 0.3s ease;
    background: var(--tab-bg);
    backdrop-filter: blur(5px);
}

.tab-links:hover {
    background: var(--tab-hover-bg);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px var(--shadow-color);
}

.tab-links::after {
    content: '';
    width: 0;
    height: 3px;
    background: #003b37;
    position: absolute;
    left: 20px;
    bottom: 5px;
    transition: 0.5s;
    border-radius: 2px;
}

.tab-links.active-link {
    background: linear-gradient(45deg, #3d006e, #ff6b6b, #4ecdc4);
    -webkit-background-clip: text;
    /* -webkit-text-fill-color: transparent; */
    background-clip: text;
    transform: translateY(-3px);
    font-weight: 700;
    text-shadow: 0 2px 15px rgba(61, 0, 110, 0.4);
    position: relative;
    border: 2px solid transparent;
    background-image: linear-gradient(45deg, #3d006e, #ff6b6b, #4ecdc4);
    background-size: 200% 200%;
    animation: gradientShift 3s ease-in-out infinite;
}

@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.tab-links.active-link::after {
    width: calc(100% - 40px);
}

.tab-contents ul li {
    list-style: none;
    margin: 15px 0;
    padding: 15px;
    background: var(--about-bg);
    border-radius: 10px;
    border-left: 4px solid transparent;
    transition: all 0.5s ease;
}

.tab-contents ul li:hover {
    /* background: rgba(255, 255, 255, 0.726); */
    border-left-color: #3d006e;
    transform: translateX(10px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

/* Light mode specific hover for tab contents */
.light-theme .tab-contents ul li:hover {
    background: var(--about-bg);
    border-left-color: #3d006e;
    transform: translateX(10px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

/* Dark mode specific hover for tab contents */
.dark-theme .tab-contents ul li:hover {
    /* background: linear-gradient(135deg, rgba(124, 58, 237, 0.2), rgba(6, 182, 212, 0.15)); */
    border-left-color: var(--accent-color);
    box-shadow: 0 8px 25px rgba(124, 58, 237, 0.3);
    backdrop-filter: blur(10px);
}

.tab-contents ul li span {
    color: var(--accent-color);
    font-size: 1.1rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    background: linear-gradient(45deg, var(--accent-color), var(--secondary-accent), #ff6b6b);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 1px 3px rgba(61, 0, 110, 0.2);
}

/* Floating animation for about image */
/* @keyframes float {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
} */

/* Pulse animation for active tab */
@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(61, 0, 110, 0.4);
    }

    70% {
        box-shadow: 0 0 0 10px rgba(61, 0, 110, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(61, 0, 110, 0);
    }
}

@keyframes typewriter {
    from {
        width: 0;
    }

    to {
        width: 100%;
    }
}

@keyframes blink {

    0%,
    50% {
        border-right-color: #3d006e;
    }

    51%,
    100% {
        border-right-color: transparent;
    }
}

.tab-contents {
    display: none;
}

.tab-contents.active-tab {
    display: block;
    font-size: 1.1em;
    line-height: 1.7;
}

/* ------------- services ------------- */
#services {
    padding: 80px 0;
    position: relative;
    overflow: hidden;
    /* background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%); */
}

/* Twinkling stars for services section in dark mode */
.dark-theme #services::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 300 300"><defs><pattern id="servicesStars" width="300" height="300" patternUnits="userSpaceOnUse"><circle cx="25" cy="35" r="0.8" fill="%23a855f7" opacity="0.7"><animate attributeName="opacity" values="0.2;1;0.2" dur="3s" repeatCount="indefinite"/></circle><circle cx="85" cy="75" r="0.6" fill="%2306b6d4" opacity="0.6"><animate attributeName="opacity" values="0.3;0.9;0.3" dur="2.5s" repeatCount="indefinite"/></circle><circle cx="160" cy="50" r="0.7" fill="%23ff6b6b" opacity="0.8"><animate attributeName="opacity" values="0.1;0.8;0.1" dur="4s" repeatCount="indefinite"/></circle><circle cx="45" cy="130" r="0.5" fill="%234ecdc4" opacity="0.5"><animate attributeName="opacity" values="0.4;0.9;0.4" dur="3.2s" repeatCount="indefinite"/></circle><circle cx="120" cy="160" r="0.9" fill="%23feca57" opacity="0.9"><animate attributeName="opacity" values="0.2;1;0.2" dur="2.8s" repeatCount="indefinite"/></circle><circle cx="200" cy="120" r="0.6" fill="%23a855f7" opacity="0.6"><animate attributeName="opacity" values="0.3;0.7;0.3" dur="3.5s" repeatCount="indefinite"/></circle><circle cx="70" cy="220" r="0.7" fill="%2306b6d4" opacity="0.8"><animate attributeName="opacity" values="0.1;0.9;0.1" dur="2.2s" repeatCount="indefinite"/></circle><circle cx="180" cy="200" r="0.5" fill="%23ff6b6b" opacity="0.5"><animate attributeName="opacity" values="0.4;0.8;0.4" dur="3.8s" repeatCount="indefinite"/></circle><circle cx="250" cy="80" r="0.8" fill="%234ecdc4" opacity="0.8"><animate attributeName="opacity" values="0.2;1;0.2" dur="2.7s" repeatCount="indefinite"/></circle><circle cx="30" cy="280" r="0.6" fill="%23feca57" opacity="0.6"><animate attributeName="opacity" values="0.3;0.9;0.3" dur="4.1s" repeatCount="indefinite"/></circle><circle cx="140" cy="40" r="0.5" fill="%23a855f7" opacity="0.5"><animate attributeName="opacity" values="0.1;0.7;0.1" dur="3.3s" repeatCount="indefinite"/></circle><circle cx="220" cy="180" r="0.7" fill="%2306b6d4" opacity="0.7"><animate attributeName="opacity" values="0.4;1;0.4" dur="2.9s" repeatCount="indefinite"/></circle><circle cx="90" cy="250" r="0.6" fill="%23ff6b6b" opacity="0.6"><animate attributeName="opacity" values="0.2;0.8;0.2" dur="3.6s" repeatCount="indefinite"/></circle><circle cx="270" cy="140" r="0.8" fill="%234ecdc4" opacity="0.8"><animate attributeName="opacity" values="0.3;0.9;0.3" dur="2.4s" repeatCount="indefinite"/></circle><circle cx="60" cy="90" r="0.5" fill="%23feca57" opacity="0.5"><animate attributeName="opacity" values="0.1;0.8;0.1" dur="3.9s" repeatCount="indefinite"/></circle><circle cx="190" cy="260" r="0.7" fill="%23a855f7" opacity="0.7"><animate attributeName="opacity" values="0.4;1;0.4" dur="2.6s" repeatCount="indefinite"/></circle><circle cx="110" cy="210" r="0.6" fill="%2306b6d4" opacity="0.6"><animate attributeName="opacity" values="0.2;0.9;0.2" dur="3.4s" repeatCount="indefinite"/></circle><circle cx="240" cy="40" r="0.5" fill="%23ff6b6b" opacity="0.5"><animate attributeName="opacity" values="0.3;0.7;0.3" dur="4.3s" repeatCount="indefinite"/></circle><circle cx="50" cy="180" r="0.8" fill="%234ecdc4" opacity="0.8"><animate attributeName="opacity" values="0.1;1;0.1" dur="2.3s" repeatCount="indefinite"/></circle><circle cx="150" cy="100" r="0.6" fill="%23feca57" opacity="0.6"><animate attributeName="opacity" values="0.4;0.8;0.4" dur="3.7s" repeatCount="indefinite"/></circle></pattern></defs><rect width="300" height="300" fill="url(%23servicesStars)"/></svg>');
    pointer-events: none;
    z-index: -1;
    animation: servicesStarField 40s linear infinite;
}

@keyframes servicesStarField {
    0% { transform: translateX(0px) translateY(0px); }
    25% { transform: translateX(-75px) translateY(-75px); }
    50% { transform: translateX(-150px) translateY(-150px); }
    75% { transform: translateX(-225px) translateY(-225px); }
    100% { transform: translateX(-300px) translateY(-300px); }
}

#services .container {
    position: relative;
    z-index: 1;
}

.services-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    grid-gap: 30px;
    margin-top: 50px;
}

.services-list div {
    background: var(--services-bg);
    padding: 40px 30px;
    font-size: 16px;
    font-weight: 400;
    border-radius: 20px;
    transition: all 0.4s ease;
    box-shadow: 0 10px 30px var(--shadow-color);
    border: 1px solid var(--border-color);
    position: relative;
    overflow: hidden;
}

.services-list div::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, #3d006e, #03437a);
    transform: scaleX(0);
    transition: transform 0.4s ease;
}

.services-list div:hover::before {
    transform: scaleX(1);
}

.services-list div i {
    font-size: 50px;
    margin-bottom: 25px;
    color: var(--accent-color);
    background: linear-gradient(135deg, var(--accent-color), var(--secondary-accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    transition: all 0.3s ease;
}

.services-list div h2 {
    font-size: 28px;
    font-weight: 600;
    margin-bottom: 20px;
    color: var(--secondary-text);
    transition: color 0.3s ease;
}

.services-list div p {
    line-height: 1.8;
    color: var(--muted-text);
    margin-bottom: 25px;
}

.services-list div .tech-stack {
    font-weight: 600;
    color: var(--accent-color);
    font-size: 14px;
    margin-top: 15px;
    padding: 10px 15px;
    background: rgba(61, 0, 110, 0.1);
    border-radius: 8px;
    border-left: 4px solid var(--accent-color);
}

.services-list div a {
    text-decoration: none;
    color: var(--accent-color);
    font-size: 14px;
    font-weight: 600;
    margin-top: 20px;
    display: inline-flex;
    align-items: center;
    padding: 10px 20px;
    background: linear-gradient(135deg, rgba(61, 0, 110, 0.1), rgba(3, 67, 119, 0.1));
    border-radius: 25px;
    border: 2px solid transparent;
    transition: all 0.3s ease;
}

.services-list div a:hover {
    background: linear-gradient(135deg, #3d006e, #03437a);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(61, 0, 110, 0.3);
}

.services-list div a i {
    margin-left: 8px;
    font-size: 14px;
    transition: transform 0.3s ease;
}

.services-list div a:hover i {
    transform: translateX(3px);
}

.services-list div:hover {
    transform: translateY(-15px);
    box-shadow: 0 20px 50px var(--shadow-color);
    background: var(--services-hover-bg);
    border: 2px solid transparent;
    background-image: linear-gradient(var(--services-hover-bg), var(--services-hover-bg)), 
                      linear-gradient(45deg, #ff6b6b, #4ecdc4, #45b7d1, #96ceb4);
    background-origin: border-box;
    background-clip: padding-box, border-box;
}

.services-list div:hover h2 {
    transform: scale(1.05);
}

.services-list div:hover p {
    font-weight: 500;
}

.services-list div:hover i {
    transform: scale(1.1);
}

/* Dark mode specific colorful hover effects for services */
.dark-theme .services-list div:hover h2 {
    color: var(--accent-color);
    background: linear-gradient(45deg, #ff6b6b, #4ecdc4, #45b7d1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    transform: scale(1.05);
    text-shadow: 0 2px 10px rgba(124, 58, 237, 0.3);
}

.dark-theme .services-list div:hover p {
    color: var(--text-color);
    font-weight: 500;
}

.dark-theme .services-list div:hover i {
    transform: scale(1.1);
    background: linear-gradient(45deg, #ff6b6b, #4ecdc4, #45b7d1, #96ceb4, #feca57);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    filter: drop-shadow(0 4px 8px rgba(124, 58, 237, 0.3));
}

/* --------------- Enhanced Projects Section ---------- */
#projects {
    padding: 80px 0;
    /* background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 50%, #f1f3f4 100%); */
    position: relative;
    overflow: hidden;
}

#projects::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: none;
    pointer-events: none;
    z-index: 1;
}

/* Twinkling stars for projects section in dark mode */
.dark-theme #projects::before {
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 250 250"><defs><pattern id="projectStars" width="250" height="250" patternUnits="userSpaceOnUse"><circle cx="30" cy="40" r="0.9" fill="%23a855f7" opacity="0.9"><animate attributeName="opacity" values="0.2;1;0.2" dur="3s" repeatCount="indefinite"/></circle><circle cx="100" cy="80" r="0.7" fill="%2306b6d4" opacity="0.8"><animate attributeName="opacity" values="0.3;0.9;0.3" dur="2.2s" repeatCount="indefinite"/></circle><circle cx="200" cy="60" r="0.6" fill="%23ff6b6b" opacity="0.7"><animate attributeName="opacity" values="0.1;0.8;0.1" dur="4.1s" repeatCount="indefinite"/></circle><circle cx="60" cy="150" r="0.8" fill="%234ecdc4" opacity="0.9"><animate attributeName="opacity" values="0.4;1;0.4" dur="2.8s" repeatCount="indefinite"/></circle><circle cx="160" cy="180" r="0.5" fill="%23feca57" opacity="0.6"><animate attributeName="opacity" values="0.2;0.9;0.2" dur="3.5s" repeatCount="indefinite"/></circle><circle cx="220" cy="140" r="0.7" fill="%23a855f7" opacity="0.8"><animate attributeName="opacity" values="0.1;0.7;0.1" dur="2.5s" repeatCount="indefinite"/></circle><circle cx="80" cy="220" r="0.6" fill="%2306b6d4" opacity="0.7"><animate attributeName="opacity" values="0.3;1;0.3" dur="3.8s" repeatCount="indefinite"/></circle><circle cx="180" cy="200" r="0.9" fill="%23ff6b6b" opacity="0.9"><animate attributeName="opacity" values="0.2;0.8;0.2" dur="2.7s" repeatCount="indefinite"/></circle><circle cx="120" cy="30" r="0.5" fill="%234ecdc4" opacity="0.6"><animate attributeName="opacity" values="0.4;0.9;0.4" dur="3.3s" repeatCount="indefinite"/></circle><circle cx="40" cy="200" r="0.7" fill="%23feca57" opacity="0.8"><animate attributeName="opacity" values="0.1;1;0.1" dur="4.2s" repeatCount="indefinite"/></circle></pattern></defs><rect width="250" height="250" fill="url(%23projectStars)"/></svg>');
    animation: projectStarField 25s linear infinite;
}

@keyframes projectStarField {
    0% { transform: translateX(0px) translateY(0px); }
    50% { transform: translateX(-50px) translateY(-125px); }
    100% { transform: translateX(-100px) translateY(-250px); }
}

#projects .container {
    position: relative;
    z-index: 2;
}

.work-list {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-gap: 40px 45px;
    margin-top: 80px;
    justify-items: center;
    max-width: 1800px;
    margin-left: auto;
    margin-right: auto;
}

.work {
    border-radius: 20px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 15px 35px var(--shadow-color);
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    backdrop-filter: blur(10px);
    max-width: 520px;
    width: 100%;
    height: 285px;
    display: flex;
    flex-direction: column;
}

.work::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, #3d006e, #03437a, #1a0a2e);
    transform: scaleX(0);
    transition: transform 0.3s ease;
    z-index: 3;
}

.work:hover::before {
    transform: scaleX(1);
}

.work img {
    width: 100%;
    height: 280px;
    object-fit: cover;
    object-position: center top;
    border-radius: 20px 20px 0 0;
    display: block;
    transition: all 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    filter: brightness(0.9) contrast(1.1);
    flex-shrink: 0;
}

/* Specific styling for the first project image */
.work:first-child img {
    object-position: center center;
    object-fit: contain;
    background: #f8f9fa;
}

.work-content {
    flex: 1;
    background: var(--card-bg);
    border-radius: 0 0 20px 20px;
    position: relative;
}

.layer {
    width: 100%;
    height: 0;
    background: linear-gradient(135deg, rgba(61, 0, 110, 0.95), rgba(3, 67, 119, 0.95));
    border-radius: 0 0 20px 20px;
    position: absolute;
    left: 0;
    top: 0;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    padding: 0 40px;
    text-align: center;
    font-size: 15px;
    transition: all 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    backdrop-filter: blur(15px);
}

.layer h3 {
    font-weight: 600;
    margin-bottom: 15px;
    color: #ffffff;
    font-size: 20px;
    line-height: 1.3;
    transform: translateY(20px);
    opacity: 0;
    transition: all 0.4s ease 0.1s;
}

.layer p {
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.6;
    font-size: 14px;
    transform: translateY(20px);
    opacity: 0;
    transition: all 0.4s ease 0.2s;
    margin-bottom: 20px;
}

.layer a {
    margin-top: 15px;
    color: #3d006e;
    text-decoration: none;
    font-size: 20px;
    line-height: 50px;
    background: linear-gradient(135deg, #ffffff, #f8f9fa);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    text-align: center;
    transform: translateY(20px) scale(0.8);
    opacity: 0;
    transition: all 0.4s ease 0.3s;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
}

.layer a:hover {
    background: linear-gradient(135deg, #3d006e, #03437a);
    color: #ffffff;
    transform: translateY(20px) scale(1.1);
    box-shadow: 0 8px 25px rgba(61, 0, 110, 0.4);
}

.work:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.15);
}

.work:hover img {
    transform: scale(1.1);
    filter: brightness(0.7) contrast(1.2);
}

.work:hover .layer {
    height: 100%;
}

.work:hover .layer h3,
.work:hover .layer p,
.work:hover .layer a {
    transform: translateY(0) scale(1);
    opacity: 1;
}

/* Project categories/tags */
.project-tag {
    position: absolute;
    top: 15px;
    right: 15px;
    background: linear-gradient(135deg, rgba(61, 0, 110, 0.9), rgba(3, 67, 119, 0.9));
    color: white;
    padding: 5px 12px;
    border-radius: 15px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    z-index: 2;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.btn {
    display: inline-block;
    margin: 60px auto 0;
    padding: 16px 40px;
    background: linear-gradient(135deg, #3d006e, #03437a);
    color: white;
    text-decoration: none;
    border-radius: 30px;
    font-weight: 600;
    font-size: 16px;
    text-align: center;
    transition: all 0.4s ease;
    box-shadow: 0 8px 25px rgba(61, 0, 110, 0.3);
    border: none;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    width: fit-content;
}

.btn::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.6s ease;
}

.btn:hover::before {
    left: 100%;
}

.btn:hover {
    transform: translateY(-3px);
    background: linear-gradient(135deg, #4a0080, #0456a3);
}

/* Special styling for project section button */
#projects .btn {
    display: block;
    margin: 60px auto 0;
    text-align: center;
    background: white;
    color: #3d006e;
    border: 2px solid #3d006e;
    transition: all 0.6s ease;
}

#projects .btn:hover {
    background: white;
    color: #3d006e;
    transform: translateY(-3px);
    border: 3px solid transparent;
    background-image: linear-gradient(white, white), 
                      linear-gradient(45deg, #ff6b6b, #4ecdc4, #45b7d1, #96ceb4, #feca57, #ff6b6b);
    background-origin: border-box;
    background-clip: padding-box, border-box;
    animation: borderShimmer 2s infinite;
    box-shadow: 0 10px 30px rgba(61, 0, 110, 0.3), 
                0 0 20px rgba(255, 107, 107, 0.2);
}

#projects .btn::before {
    display: none;
}

.btn {
    display: inline-block;
    margin: 60px auto 0;
    padding: 16px 40px;
    background: linear-gradient(135deg, #3d006e, #03437a);
    color: white;
    text-decoration: none;
    border-radius: 30px;
    font-weight: 600;
    font-size: 16px;
    text-align: center;
    transition: all 0.4s ease;
    box-shadow: 0 8px 25px rgba(61, 0, 110, 0.3);
    border: none;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    width: fit-content;
}

.btn::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.6s ease;
}

.btn:hover::before {
    left: 100%;
}

.btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(61, 0, 110, 0.4);
    background: linear-gradient(135deg, #4a0080, #0456a3);
}

/*  ------------ Enhanced Contact Section ---------- */
#contact {
    padding: 80px 0;
    position: relative;
    overflow: hidden;
}

#contact::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: none;
    pointer-events: none;
    z-index: -1;
}

/* Twinkling stars for contact section in dark mode */
.dark-theme #contact::before {
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 300 300"><defs><pattern id="contactStars" width="300" height="300" patternUnits="userSpaceOnUse"><circle cx="25" cy="35" r="0.8" fill="%23a855f7" opacity="0.7"><animate attributeName="opacity" values="0.2;1;0.2" dur="3s" repeatCount="indefinite"/></circle><circle cx="85" cy="75" r="0.6" fill="%2306b6d4" opacity="0.6"><animate attributeName="opacity" values="0.3;0.9;0.3" dur="2.5s" repeatCount="indefinite"/></circle><circle cx="160" cy="50" r="0.7" fill="%23ff6b6b" opacity="0.8"><animate attributeName="opacity" values="0.1;0.8;0.1" dur="4s" repeatCount="indefinite"/></circle><circle cx="45" cy="130" r="0.5" fill="%234ecdc4" opacity="0.5"><animate attributeName="opacity" values="0.4;0.9;0.4" dur="3.2s" repeatCount="indefinite"/></circle><circle cx="120" cy="160" r="0.9" fill="%23feca57" opacity="0.9"><animate attributeName="opacity" values="0.2;1;0.2" dur="2.8s" repeatCount="indefinite"/></circle><circle cx="200" cy="120" r="0.6" fill="%23a855f7" opacity="0.6"><animate attributeName="opacity" values="0.3;0.7;0.3" dur="3.5s" repeatCount="indefinite"/></circle><circle cx="70" cy="220" r="0.7" fill="%2306b6d4" opacity="0.8"><animate attributeName="opacity" values="0.1;0.9;0.1" dur="2.2s" repeatCount="indefinite"/></circle><circle cx="180" cy="200" r="0.5" fill="%23ff6b6b" opacity="0.5"><animate attributeName="opacity" values="0.4;0.8;0.4" dur="3.8s" repeatCount="indefinite"/></circle><circle cx="250" cy="80" r="0.8" fill="%234ecdc4" opacity="0.8"><animate attributeName="opacity" values="0.2;1;0.2" dur="2.7s" repeatCount="indefinite"/></circle><circle cx="30" cy="280" r="0.6" fill="%23feca57" opacity="0.6"><animate attributeName="opacity" values="0.3;0.9;0.3" dur="4.1s" repeatCount="indefinite"/></circle><circle cx="140" cy="40" r="0.5" fill="%23a855f7" opacity="0.5"><animate attributeName="opacity" values="0.1;0.7;0.1" dur="3.3s" repeatCount="indefinite"/></circle><circle cx="220" cy="180" r="0.7" fill="%2306b6d4" opacity="0.7"><animate attributeName="opacity" values="0.4;1;0.4" dur="2.9s" repeatCount="indefinite"/></circle><circle cx="90" cy="250" r="0.6" fill="%23ff6b6b" opacity="0.6"><animate attributeName="opacity" values="0.2;0.8;0.2" dur="3.6s" repeatCount="indefinite"/></circle><circle cx="270" cy="140" r="0.8" fill="%234ecdc4" opacity="0.8"><animate attributeName="opacity" values="0.3;0.9;0.3" dur="2.4s" repeatCount="indefinite"/></circle><circle cx="60" cy="90" r="0.5" fill="%23feca57" opacity="0.5"><animate attributeName="opacity" values="0.1;0.8;0.1" dur="3.9s" repeatCount="indefinite"/></circle><circle cx="190" cy="260" r="0.7" fill="%23a855f7" opacity="0.7"><animate attributeName="opacity" values="0.4;1;0.4" dur="2.6s" repeatCount="indefinite"/></circle><circle cx="110" cy="210" r="0.6" fill="%2306b6d4" opacity="0.6"><animate attributeName="opacity" values="0.2;0.9;0.2" dur="3.4s" repeatCount="indefinite"/></circle><circle cx="240" cy="40" r="0.5" fill="%23ff6b6b" opacity="0.5"><animate attributeName="opacity" values="0.3;0.7;0.3" dur="4.3s" repeatCount="indefinite"/></circle><circle cx="50" cy="180" r="0.8" fill="%234ecdc4" opacity="0.8"><animate attributeName="opacity" values="0.1;1;0.1" dur="2.3s" repeatCount="indefinite"/></circle><circle cx="150" cy="100" r="0.6" fill="%23feca57" opacity="0.6"><animate attributeName="opacity" values="0.4;0.8;0.4" dur="3.7s" repeatCount="indefinite"/></circle></pattern></defs><rect width="300" height="300" fill="url(%23contactStars)"/></svg>');
    animation: contactStarField 45s linear infinite;
}

@keyframes contactStarField {
    0% { transform: translateX(0px) translateY(0px); }
    25% { transform: translateX(-75px) translateY(-75px); }
    50% { transform: translateX(-150px) translateY(-150px); }
    75% { transform: translateX(-225px) translateY(-225px); }
    100% { transform: translateX(-300px) translateY(-300px); }
}

#contact .container {
    position: relative;
    z-index: 2;
}

#contact .row {
    margin-top: 50px;
}

.contact-left {
    flex-basis: 35%;
    padding: 40px 30px;
    /* background: linear-gradient(145deg, rgba(255, 255, 255, 0.9), rgba(248, 249, 250, 0.8)); */
    border-radius: 20px;
    backdrop-filter: blur(10px);
    /* border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1); */
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

.contact-left::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, #3d006e, #03437a, #1a0a2e);
    transform: scaleX(0);
    transition: transform 0.6s ease;
}

/* .contact-left:hover::before {
    transform: scaleX(1);
} */

.contact-left:hover {
    /* transform: translateY(-5px); */
    /* box-shadow: 0 30px 60px rgba(0, 0, 0, 0.15); */
}

.contact-right {
    flex-basis: 60%;
    padding: 30px;
    /* background: linear-gradient(145deg, rgba(255, 255, 255, 0.95), rgba(248, 249, 250, 0.9)); */
    border-radius: 20px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
    margin-top: -50px;
}

.contact-right::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, #3d006e, #03437a, #1a0a2e);
    transform: scaleX(0);
    transition: transform 0.6s ease;
}

.contact-right:hover::before {
    transform: scaleX(1);
}

.contact-right:hover {
    /* transform: translateY(-5px); */
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.15);
}

.contact-left p {
    margin-top: 20px;
    padding: 18px;
    background: rgba(61, 0, 110, 0.05);
    border-radius: 15px;
    border-left: 4px solid #3d006e;
    transition: all 0.3s ease;
    font-size: 16px;
    line-height: 1.6;
}

.contact-left p:hover {
    background: rgba(61, 0, 110, 0.1);
    transform: translateX(5px);
    box-shadow: 0 5px 15px rgba(61, 0, 110, 0.2);
}

.contact-left p i {
    color: #3d006e;
    margin-right: 15px;
    font-size: 22px;
    background: linear-gradient(135deg, #3d006e, #03437a);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    transition: all 0.3s ease;
}

.contact-left p:hover i {
    transform: scale(1.1);
}

/* Contact info section styling */
.contact-info {
    margin-top: 30px;
    padding: 25px;
    background: linear-gradient(135deg, rgba(61, 0, 110, 0.05), rgba(3, 67, 119, 0.05));
    border-radius: 15px;
    border: 2px solid rgba(61, 0, 110, 0.1);
    transition: all 0.4s ease;
}

.contact-info:hover {
    background: linear-gradient(135deg, rgba(61, 0, 110, 0.1), rgba(3, 67, 119, 0.1));
    border-color: rgba(61, 0, 110, 0.2);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(61, 0, 110, 0.15);
}

.contact-info h3 {
    color: var(--accent-color);
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 15px;
    background: linear-gradient(135deg, var(--accent-color), var(--secondary-accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.contact-info p {
    color: var(--muted-text);
    line-height: 1.6;
    font-size: 14px;
    margin: 0;
    padding: 0;
    background: none !important;
    border: none !important;
}

.contact-info p:hover {
    background: none !important;
    transform: none !important;
    box-shadow: none !important;
}

.social-icons {
    margin-top: 40px;
    padding: 20px 0;
}

.social-icons a {
    text-decoration: none;
    font-size: 32px;
    margin-right: 20px;
    color: var(--social-text);
    display: inline-block;
    transition: all 0.4s ease;
    padding: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(5px);
    border: 2px solid transparent;
    position: relative;
    overflow: hidden;
}

.social-icons a::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(61, 0, 110, 0.1), rgba(3, 67, 119, 0.1));
    border-radius: 50%;
    transform: scale(0);
    transition: transform 0.3s ease;
    z-index: -1;
}

.social-icons a:hover::before {
    transform: scale(1);
}

.social-icons a:hover {
    color: var(--accent-color);
    transform: translateY(-8px) scale(1.1);
    box-shadow: 0 10px 25px rgba(61, 0, 110, 0.3);
    border-color: var(--accent-color);
}

.btn.btn2 {
    display: inline-block;
    background: linear-gradient(135deg, #3d006e, #03437a);
    color: white;
    padding: 16px 40px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 600;
    font-size: 16px;
    margin-top: 30px;
    transition: all 0.4s ease;
    box-shadow: 0 8px 25px rgba(61, 0, 110, 0.3);
    border: none;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.btn.btn2::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.6s ease;
}

.btn.btn2:hover::before {
    left: 100%;
}

.btn.btn2:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 15px 35px rgba(61, 0, 110, 0.4);
    background: linear-gradient(135deg, #4a0080, #0456a3);
}

.btn.btn2 i {
    margin-right: 8px;
    transition: transform 0.3s ease;
}

.btn.btn2:hover i {
    transform: translateX(-2px);
}

/* Form header styling */
.form-header {
    margin-bottom: 30px;
    text-align: center;
    padding: 20px 0;
}

.form-header h3 {
    color: var(--accent-color);
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 10px;
    background: linear-gradient(135deg, var(--accent-color), var(--secondary-accent), #ff6b6b);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 2px 8px rgba(61, 0, 110, 0.3);
    animation: colorShift 3s ease-in-out infinite;
}

.form-header p {
    color: #5a6c7d;
    font-size: 14px;
    line-height: 1.6;
    margin: 0;
}

.contact-right form {
    width: 100%;
    position: relative;
}

.form-group {
    margin-bottom: 20px;
    position: relative;
}

form input,
form textarea {
    width: 100%;
    border: 2px solid rgba(61, 0, 110, 0.1);
    outline: none;
    background: var(--input-bg);
    padding: 18px 20px;
    margin: 10px 0;
    color: var(--text-color);
    font-size: 16px;
    border-radius: 15px;
    transition: all 0.4s ease;
    backdrop-filter: blur(5px);
    font-family: 'Poppins', sans-serif;
    position: relative;
}

form input::placeholder,
form textarea::placeholder {
    color: var(--placeholder-text);
    font-weight: 400;
}

form input:focus,
form textarea:focus {
    border-color: #3d006e;
    background: var(--input-focus-bg);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(61, 0, 110, 0.2);
}

form input:hover,
form textarea:hover {
    border-color: rgba(61, 0, 110, 0.3);
    transform: translateY(-1px);
    box-shadow: 0 5px 15px rgba(61, 0, 110, 0.1);
}

form textarea {
    resize: vertical;
    min-height: 120px;
    font-family: 'Poppins', sans-serif;
}

form .btn2 {
    padding: 16px 50px;
    font-size: 16px;
    margin-top: 25px;
    cursor: pointer;
    background: linear-gradient(135deg, #3d006e, #03437a);
    color: white;
    border: none;
    border-radius: 30px;
    font-weight: 600;
    transition: all 0.4s ease;
    box-shadow: 0 8px 25px rgba(61, 0, 110, 0.3);
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

form .btn2::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.6s ease;
}

form .btn2:hover::before {
    left: 100%;
}

form .btn2:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 15px 35px rgba(61, 0, 110, 0.4);
    background: linear-gradient(135deg, #4a0080, #0456a3);
}

form .btn2:active {
    transform: translateY(0) scale(1);
    box-shadow: 0 5px 15px rgba(61, 0, 110, 0.3);
}

form .btn2 i {
    transition: transform 0.3s ease;
}

form .btn2:hover i {
    transform: translateX(3px);
}

/* Success/Error message styling */
#msg {
    color: var(--success-text);
    background: linear-gradient(135deg, rgba(45, 90, 39, 0.1), rgba(76, 175, 80, 0.1));
    border: 2px solid rgba(76, 175, 80, 0.3);
    border-radius: 15px;
    padding: 15px 20px;
    margin-top: 20px;
    font-weight: 600;
    font-size: 16px;
    text-align: center;
    opacity: 0;
    transform: translateY(-10px);
    transition: all 0.4s ease;
    backdrop-filter: blur(10px);
    box-shadow: 0 5px 15px rgba(76, 175, 80, 0.2);
    display: none;
}

#msg.show {
    opacity: 1;
    transform: translateY(0);
    display: block;
}

#msg.error {
    color: var(--error-text);
    background: linear-gradient(135deg, rgba(231, 76, 60, 0.1), rgba(192, 57, 43, 0.1));
    border-color: rgba(231, 76, 60, 0.3);
    box-shadow: 0 5px 15px rgba(231, 76, 60, 0.2);
}

/* Enhanced form validation styles */
form input.error,
form textarea.error {
    border-color: #e74c3c;
    background: rgba(231, 76, 60, 0.05);
    animation: shake 0.5s ease-in-out;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-5px); }
    75% { transform: translateX(5px); }
}

form input.success,
form textarea.success {
    border-color: #27ae60;
    background: rgba(39, 174, 96, 0.05);
}

/* Loading state for submit button */
form .btn2.loading {
    background: linear-gradient(135deg, #95a5a6, #7f8c8d);
    cursor: not-allowed;
    transform: none;
}

form .btn2.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 2px solid transparent;
    border-top: 2px solid white;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* .copyright{
    width: 100%;
    text-align: center;
    padding: 25px 0;
    background: #262626;
    font-weight: 300;
    margin-top: 20px;
} */

/* -------------- css for small screen ------------------ */
nav .fa-solid {
    display: none;
}

/* Tablet responsive design */
@media only screen and (max-width: 1024px) {
    .work-list {
        grid-template-columns: repeat(2, 1fr);
        grid-gap: 30px 25px;
        max-width: 1000px;
    }
    
    .work {
        max-width: 480px;
    }
}

@media only screen and (max-width: 768px) {
    .work-list {
        grid-template-columns: 1fr;
        grid-gap: 30px;
        max-width: 100%;
    }
    
    .work {
        max-width: 100%;
    }
}

@media only screen and (max-width: 600px) {
    #header {
        background: linear-gradient(135deg, #e4e0e0 0%, #f5f3f3 100%);
        height: 100vh;
        padding: 20px 0;
    }

    /* Dark theme override for mobile header */
    .dark-theme #header {
        background: var(--bg-color) !important;
    }

    .dark-theme #header::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: 
            radial-gradient(circle at 20% 30%, rgba(138, 43, 226, 0.1) 0%, transparent 50%),
            radial-gradient(circle at 80% 70%, rgba(72, 61, 139, 0.1) 0%, transparent 50%),
            radial-gradient(circle at 40% 80%, rgba(147, 0, 211, 0.1) 0%, transparent 50%);
        background-image: url("data:image/svg+xml,%3csvg width='100' height='100' xmlns='http://www.w3.org/2000/svg'%3e%3cdefs%3e%3cfilter id='noiseFilter'%3e%3cfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='1' stitchTiles='stitch'/%3e%3c/filter%3e%3c/defs%3e%3crect width='100%25' height='100%25' filter='url(%23noiseFilter)' opacity='0.02'/%3e%3cg%3e%3ccircle cx='10' cy='10' r='0.5' fill='%23ffffff' opacity='0.8'%3e%3canimate attributeName='opacity' values='0.3;1;0.3' dur='2s' repeatCount='indefinite'/%3e%3c/circle%3e%3ccircle cx='25' cy='30' r='0.3' fill='%23ffffff' opacity='0.6'%3e%3canimate attributeName='opacity' values='0.2;0.9;0.2' dur='3s' repeatCount='indefinite'/%3e%3c/circle%3e%3ccircle cx='45' cy='15' r='0.4' fill='%23ffffff' opacity='0.7'%3e%3canimate attributeName='opacity' values='0.4;1;0.4' dur='2.5s' repeatCount='indefinite'/%3e%3c/circle%3e%3ccircle cx='70' cy='25' r='0.2' fill='%23ffffff' opacity='0.5'%3e%3canimate attributeName='opacity' values='0.1;0.8;0.1' dur='4s' repeatCount='indefinite'/%3e%3c/circle%3e%3ccircle cx='80' cy='45' r='0.6' fill='%23ffffff' opacity='0.9'%3e%3canimate attributeName='opacity' values='0.5;1;0.5' dur='1.8s' repeatCount='indefinite'/%3e%3c/circle%3e%3ccircle cx='15' cy='60' r='0.3' fill='%23ffffff' opacity='0.6'%3e%3canimate attributeName='opacity' values='0.3;0.9;0.3' dur='3.2s' repeatCount='indefinite'/%3e%3c/circle%3e%3ccircle cx='35' cy='75' r='0.4' fill='%23ffffff' opacity='0.7'%3e%3canimate attributeName='opacity' values='0.2;1;0.2' dur='2.8s' repeatCount='indefinite'/%3e%3c/circle%3e%3ccircle cx='60' cy='65' r='0.2' fill='%23ffffff' opacity='0.4'%3e%3canimate attributeName='opacity' values='0.1;0.7;0.1' dur='3.5s' repeatCount='indefinite'/%3e%3c/circle%3e%3ccircle cx='85' cy='80' r='0.5' fill='%23ffffff' opacity='0.8'%3e%3canimate attributeName='opacity' values='0.4;1;0.4' dur='2.2s' repeatCount='indefinite'/%3e%3c/circle%3e%3ccircle cx='50' cy='50' r='0.3' fill='%23ffffff' opacity='0.6'%3e%3canimate attributeName='opacity' values='0.3;0.9;0.3' dur='2.7s' repeatCount='indefinite'/%3e%3c/circle%3e%3c/g%3e%3c/svg%3e");
        z-index: 1;
        pointer-events: none;
    }

    /* Mobile navigation styles */
    .nav-controls {
        justify-content: space-between;
    }

    .nav-controls #sidemenu {
        position: fixed;
        background: #3d006e;
        top: 0;
        right: -200px;
        width: 200px;
        height: 100vh;
        padding-top: 50px;
        z-index: 2000;
        transition: right 0.5s;
        flex-direction: column;
        gap: 0;
    }

    .nav-controls #sidemenu li {
        display: block;
        margin: 25px;
    }

    .nav-controls #sidemenu li a {
        color: #fff;
        font-size: 16px;
        padding: 10px 0;
        background: none;
    }

    .nav-controls #sidemenu li a:hover {
        color: #feca57;
        background: none;
        transform: none;
    }

    .nav-controls #sidemenu .fa-square-xmark {
        display: block;
        position: absolute;
        top: 25px;
        left: 25px;
        cursor: pointer;
        font-size: 20px;
        color: #fff;
    }

    .hearder-text {
        margin-top: 20%;
        font-size: 16px;
        text-align: center;
        padding: 20px 0;
    }

    .hearder-text h1 {
        /* font-size: 2.5rem; */
        margin: 15px 0;
    }

    #element {
        font-size: 1.2rem;
        padding: 8px 16px;
        margin-top: 10px;
    }

    .bg {
        flex-direction: column;
        gap: 30px;
        align-items: center;
    }

    .bgimg {
        flex-basis: 100%;
        min-width: auto;
        order: unset !important;
    }

    .bgimg:first-child {
        order: 2;
    }

    .bgimg:last-child {
        order: 1;
    }

    .bgimg img {
        max-width: 280px;
        margin: 0 auto;
    }

    nav {
        padding: 10px 5%;
    }

    .nav-controls {
        gap: 10px;
    }

    .theme-toggle {
        width: 35px;
        height: 35px;
        font-size: 14px;
    }

    nav .fa-solid {
        display: block;
        font-size: 25px;
        color: var(--text-color);
        cursor: pointer;
    }

    nav ul {
        background: var(--nav-bg);
        backdrop-filter: blur(10px);
        position: fixed;
        top: 0;
        right: -200px;
        width: 200px;
        height: 100vh;
        padding-top: 50px;
        z-index: 2000;
        transition: right 0.5s;
    }

    nav ul li {
        display: block;
        margin: 25px;
    }

    nav ul li a {
        color: #fff;
        font-size: 16px;
    }

    nav ul .fa-solid {
        position: absolute;
        top: 25px;
        left: 25px;
        cursor: pointer;
        color: #fff;
    }

    .sub-title {
        font-size: 40px;
    }

    .abour-col1,
    .abour-col2 {
        flex-basis: 100%;
    }

    .abour-col1 {
        margin-bottom: 30px;
    }

    .abour-col2 {
        font-size: 14px;
    }

    .tab-links {
        font-size: 16px;
        margin-right: 20px;
        padding: 12px 16px;
        border-radius: 20px;
        background: rgba(255, 255, 255, 0.15);
        backdrop-filter: blur(8px);
        transition: all 0.4s ease;
        transform: translateY(0);
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
        animation: mobileSlideIn 0.6s ease-out forwards;
    }

    .tab-links:hover {
        background: rgba(255, 255, 255, 0.25);
        transform: translateY(-2px) scale(1.02);
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    }

    .tab-links.active-link {
        background: rgba(61, 0, 110, 0.15);
        color: #3d006e;
        transform: translateY(-2px);
        animation: mobilePulse 2s infinite, mobileGlow 1.5s ease-in-out infinite alternate;
        box-shadow: 0 4px 16px rgba(61, 0, 110, 0.3);
    }

    .contact-left,
    .contact-right {
        flex-basis: 100%;
        margin-bottom: 30px;
        padding: 25px 20px;
        border-radius: 15px;
    }

    .contact-left p {
        margin-top: 15px;
        padding: 15px;
        font-size: 14px;
    }

    .contact-left p i {
        font-size: 18px;
        margin-right: 10px;
    }

    .contact-info {
        margin-top: 20px;
        padding: 20px;
    }

    .contact-info h3 {
        font-size: 18px;
    }

    .contact-info p {
        font-size: 13px;
    }

    .social-icons {
        margin-top: 25px;
        text-align: center;
    }

    .social-icons a {
        font-size: 28px;
        margin: 0 10px;
        padding: 10px;
    }

    .btn.btn2 {
        width: 100%;
        text-align: center;
        margin-top: 20px;
        padding: 14px 30px;
        font-size: 14px;
    }

    .form-header {
        margin-bottom: 20px;
        padding: 15px 0;
    }

    .form-header h3 {
        font-size: 20px;
    }

    .form-header p {
        font-size: 13px;
    }

    .form-group {
        margin-bottom: 15px;
    }

    form input,
    form textarea {
        padding: 15px;
        font-size: 14px;
        margin: 8px 0;
        border-radius: 12px;
    }

    form textarea {
        min-height: 100px;
    }

    form .btn2 {
        width: 100%;
        padding: 14px 30px;
        font-size: 14px;
        margin-top: 15px;
    }

    #msg {
        padding: 12px 15px;
        font-size: 14px;
        margin-top: 15px;
        border-radius: 12px;
    }

    /* Enhanced Mobile Projects Section */
    #projects .work-list {
        grid-template-columns: 1fr;
        grid-gap: 40px;
        margin-top: 50px;
        max-width: 100%;
    }

    .work {
        max-width: 100%;
        margin: 0 auto;
        border-radius: 15px;
        height: 350px;
        display: flex;
        flex-direction: column;
    }

    .work img {
        height: 200px;
        border-radius: 15px 15px 0 0;
        flex-shrink: 0;
    }

    .work-content {
        flex: 1;
        background: #fff;
        border-radius: 0 0 15px 15px;
        position: relative;
    }

    .layer {
        padding: 0 25px;
        border-radius: 0 0 15px 15px;
        top: 0;
    }

    .layer h3 {
        font-size: 16px;
        margin-bottom: 10px;
        line-height: 1.2;
    }

    .layer p {
        font-size: 12px;
        line-height: 1.4;
        margin-bottom: 15px;
    }

    .layer a {
        width: 40px;
        height: 40px;
        font-size: 16px;
        margin-top: 10px;
    }

    .project-tag {
        top: 10px;
        right: 10px;
        padding: 4px 8px;
        font-size: 9px;
        border-radius: 10px;
    }

    .btn {
        margin: 40px auto 0;
        padding: 12px 25px;
        font-size: 14px;
        border-radius: 25px;
    }

    /* .copyright{
        font-size: 14px;
    } */
}

#msg {
    color: #224b1e;
    margin-top: -40px;
    display: block;
}

/* Mobile-specific animations for tab-links */
@keyframes mobilePulse {
    0% {
        box-shadow: 0 4px 16px rgba(61, 0, 110, 0.3);
    }

    50% {
        box-shadow: 0 4px 20px rgba(61, 0, 110, 0.5);
    }

    100% {
        box-shadow: 0 4px 16px rgba(61, 0, 110, 0.3);
    }
}

@keyframes mobileGlow {
    0% {
        background: rgba(61, 0, 110, 0.15);
    }

    100% {
        background: rgba(61, 0, 110, 0.25);
    }
}

@keyframes mobileSlideIn {
    0% {
        opacity: 0;
        transform: translateX(-20px) scale(0.9);
    }

    60% {
        opacity: 1;
        transform: translateX(5px) scale(1.05);
    }

    100% {
        opacity: 1;
        transform: translateX(0) scale(1);
    }
}

/* Staggered animation for tab links */
.tab-links:nth-child(1) {
    animation-delay: 0.1s;
}

.tab-links:nth-child(2) {
    animation-delay: 0.2s;
}

.tab-links:nth-child(3) {
    animation-delay: 0.3s;
}

.tab-links:nth-child(4) {
    animation-delay: 0.4s;
}

/* ==================== ADMIN PANEL STYLES ==================== */
#adminPanel {
    animation: slideInUp 0.5s ease-out;
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

#adminPanel h4 {
    font-size: 16px;
    font-weight: 600;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

#adminPanel .btn {
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.2);
    position: relative;
    overflow: hidden;
}

#adminPanel .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
}

#adminPanel .btn:active {
    transform: translateY(0);
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.3);
}

#adminPanel .btn::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;
}

#adminPanel .btn:hover::before {
    left: 100%;
}

#submissionCount {
    font-weight: bold;
    color: #fff;
    background: rgba(255, 255, 255, 0.2);
    padding: 2px 6px;
    border-radius: 4px;
    display: inline-block;
    min-width: 20px;
    text-align: center;
}

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

#msg{
    color: #61b752;
    margin-top: -40px;
    display: block;
}