/* ===========================
   SENIOR DEVELOPER PORTFOLIO
   Modern Design System
   =========================== */

/* === ROOT VARIABLES === */
:root {
    --primary-gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --secondary-gradient: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    --accent-gradient: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    --dark-gradient: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    --success-gradient: linear-gradient(135deg, #11998e 0%, #38ef7d 100%);
    
    --primary-color: #667eea;
    --secondary-color: #764ba2;
    --accent-color: #4facfe;
    --dark-color: #1a1a2e;
    --light-color: #f8f9fa;
    --text-color: #2d3748;
    --text-muted: #718096;
    --bg-color: #ffffff;
    --card-bg: #ffffff;
    
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.08);
    --shadow-md: 0 4px 20px rgba(0, 0, 0, 0.12);
    --shadow-lg: 0 10px 40px rgba(0, 0, 0, 0.15);
    --shadow-xl: 0 20px 60px rgba(0, 0, 0, 0.2);
    
    --transition-smooth: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-bounce: all 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

/* === DARK THEME === */
[data-theme="dark"] {
    --text-color: #e2e8f0;
    --text-muted: #a0aec0;
    --bg-color: #1a1a2e;
    --card-bg: #16213e;
    --light-color: #0f3460;
    --dark-color: #e94560;
}

/* === SMOOTH SCROLLING === */
html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

body {
    font-family: 'Inter', sans-serif;
    color: var(--text-color);
    overflow-x: hidden;
    background: var(--bg-color);
    transition: background 0.3s ease, color 0.3s ease;
}

[data-theme="dark"] body {
    background: linear-gradient(135deg, #0f0c29 0%, #302b63 50%, #24243e 100%);
}

/* === PARTICLES BACKGROUND === */
#particles-js {
    position: fixed;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    z-index: -1;
    opacity: 0.6;
}

/* === ENHANCED PRELOADER === */
#preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--dark-gradient);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 999999;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

#preloader.hide {
    opacity: 0;
    visibility: hidden;
}

.preloader-content {
    text-align: center;
}

/* 3D Cube Animation */
.cube-wrapper {
    perspective: 1000px;
    margin-bottom: 30px;
}

.cube {
    width: 100px;
    height: 100px;
    position: relative;
    transform-style: preserve-3d;
    animation: rotateCube 3s infinite ease-in-out;
}

.cube-face {
    position: absolute;
    width: 100px;
    height: 100px;
    border: 2px solid rgba(102, 126, 234, 0.5);
    background: rgba(102, 126, 234, 0.1);
    backdrop-filter: blur(10px);
}

.cube-face-front  { transform: translateZ(50px); background: rgba(102, 126, 234, 0.3); }
.cube-face-back   { transform: rotateY(180deg) translateZ(50px); background: rgba(118, 75, 162, 0.3); }
.cube-face-left   { transform: rotateY(-90deg) translateZ(50px); background: rgba(79, 172, 254, 0.3); }
.cube-face-right  { transform: rotateY(90deg) translateZ(50px); background: rgba(240, 147, 251, 0.3); }
.cube-face-top    { transform: rotateX(90deg) translateZ(50px); background: rgba(245, 87, 108, 0.3); }
.cube-face-bottom { transform: rotateX(-90deg) translateZ(50px); background: rgba(56, 239, 125, 0.3); }

@keyframes rotateCube {
    0% { transform: rotateX(0deg) rotateY(0deg); }
    50% { transform: rotateX(180deg) rotateY(180deg); }
    100% { transform: rotateX(360deg) rotateY(360deg); }
}

/* Loading Text Animation */
.loading-text {
    font-size: 24px;
    font-weight: 700;
    color: white;
    letter-spacing: 5px;
    margin-bottom: 30px;
}

.loading-text .letter {
    display: inline-block;
    animation: bounce 1.4s infinite ease-in-out both;
}

.loading-text .letter:nth-child(1) { animation-delay: -0.32s; }
.loading-text .letter:nth-child(2) { animation-delay: -0.16s; }
.loading-text .letter:nth-child(3) { animation-delay: 0s; }
.loading-text .letter:nth-child(4) { animation-delay: 0.16s; }
.loading-text .letter:nth-child(5) { animation-delay: 0.32s; }
.loading-text .letter:nth-child(6) { animation-delay: 0.48s; }
.loading-text .letter:nth-child(7) { animation-delay: 0.64s; }

@keyframes bounce {
    0%, 80%, 100% { 
        transform: scale(0.8) translateY(0);
        opacity: 0.5;
    }
    40% { 
        transform: scale(1.2) translateY(-20px);
        opacity: 1;
    }
}

/* Progress Bar */
.progress-bar-container {
    width: 300px;
    height: 6px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    overflow: hidden;
    margin: 0 auto;
}

.progress-bar-fill {
    height: 100%;
    background: var(--primary-gradient);
    width: 0;
    animation: fillProgress 3s ease-in-out forwards;
    box-shadow: 0 0 20px rgba(102, 126, 234, 0.8);
}

@keyframes fillProgress {
    0% { width: 0; }
    100% { width: 100%; }
}

/* === THEME TOGGLE BUTTON === */
.theme-toggle-btn {
    position: fixed;
    top: 20px;
    right: 20px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--primary-gradient);
    border: none;
    color: white;
    font-size: 20px;
    cursor: pointer;
    z-index: 9999;
    box-shadow: var(--shadow-lg);
    transition: var(--transition-bounce);
    display: flex;
    align-items: center;
    justify-content: center;
}

.theme-toggle-btn:hover {
    transform: scale(1.1) rotate(360deg);
    box-shadow: var(--shadow-xl);
}

.theme-toggle-btn i {
    transition: var(--transition-smooth);
}

[data-theme="dark"] .theme-toggle-btn {
    background: var(--success-gradient);
}

/* === LANGUAGE TOGGLE BUTTON === */
.lang-toggle-btn {
    position: fixed;
    top: 20px;
    right: 85px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--accent-gradient);
    border: none;
    color: white;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    z-index: 9999;
    box-shadow: var(--shadow-lg);
    transition: var(--transition-bounce);
    display: flex;
    align-items: center;
    justify-content: center;
    letter-spacing: 0.5px;
}

.lang-toggle-btn:hover {
    transform: scale(1.1) rotate(10deg);
    box-shadow: var(--shadow-xl);
}

.lang-toggle-btn.rotating {
    animation: langRotate 0.3s ease;
}

@keyframes langRotate {
    0%, 100% { transform: scale(1) rotate(0deg); }
    50% { transform: scale(1.15) rotate(180deg); }
}

.lang-toggle-btn .lang-text {
    transition: var(--transition-smooth);
}

@media (max-width: 768px) {
    .theme-toggle-btn {
        top: 10px;
        right: 10px;
        width: 45px;
        height: 45px;
        font-size: 18px;
    }
    
    .lang-toggle-btn {
        top: 10px;
        right: 65px;
        width: 45px;
        height: 45px;
        font-size: 12px;
    }
}

/* === CUSTOM SCROLLBAR === */
::-webkit-scrollbar {
    width: 12px;
}

::-webkit-scrollbar-track {
    background: var(--card-bg);
}

::-webkit-scrollbar-thumb {
    background: var(--primary-gradient);
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--secondary-gradient);
}

[data-theme="dark"] ::-webkit-scrollbar-track {
    background: #0f0c29;
}

/*** Spinner Start ***/
#spinner {
    opacity: 0;
    visibility: hidden;
    transition: opacity .5s ease-out, visibility 0s linear .5s;
    z-index: 99999;
    background: var(--dark-gradient);
}

#spinner.show {
    transition: opacity .5s ease-out, visibility 0s linear 0s;
    visibility: visible;
    opacity: 1;
}

#spinner .spinner-border {
    width: 4rem !important;
    height: 4rem !important;
    border-width: 4px;
    border-color: var(--primary-color);
    border-right-color: transparent;
    animation: spinner-glow 1.5s infinite;
}

@keyframes spinner-glow {
    0%, 100% { box-shadow: 0 0 20px var(--primary-color); }
    50% { box-shadow: 0 0 40px var(--primary-color); }
}
/*** Spinner End ***/

.back-to-top {
    position: fixed;
    right: 30px;
    bottom: 30px;
    transition: var(--transition-bounce);
    z-index: 99;
    background: var(--primary-gradient) !important;
    border: none;
    box-shadow: var(--shadow-lg);
    animation: float 3s ease-in-out infinite;
}

.back-to-top:hover {
    transform: translateY(-10px) scale(1.1);
    box-shadow: var(--shadow-xl);
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}


/*** Button Start ***/
.btn {
    font-weight: 600;
    transition: var(--transition-smooth);
    position: relative;
    overflow: hidden;
    z-index: 1;
    border: none;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.2);
    z-index: -1;
    transition: var(--transition-smooth);
}

.btn:hover::before {
    left: 100%;
}

.btn-square {
    width: 32px;
    height: 32px;
}

.btn-sm-square {
    width: 34px;
    height: 34px;
}

.btn-md-square {
    width: 40px;
    height: 40px;
}

.btn-lg-square {
    width: 46px;
    height: 46px;
}

.btn-xl-square {
    width: 56px;
    height: 56px;
}

.btn-square,
.btn-sm-square,
.btn-md-square,
.btn-lg-square,
.btn-xl-square {
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: normal;
    border-radius: 50%;
    transition: var(--transition-bounce);
}

.btn-square:hover,
.btn-sm-square:hover,
.btn-md-square:hover,
.btn-lg-square:hover,
.btn-xl-square:hover {
    transform: rotate(360deg) scale(1.15);
}

.btn.btn-primary {
    background: var(--primary-gradient);
    color: var(--bs-white);
    border: none;
    box-shadow: var(--shadow-md);
}

.btn.btn-primary:hover {
    background: var(--secondary-gradient);
    color: var(--bs-white);
    box-shadow: var(--shadow-xl);
    transform: translateY(-3px);
}

.btn.btn-light {
    color: var(--primary-color);
    background: var(--bs-white);
    border: none;
    box-shadow: var(--shadow-sm);
}

.btn.btn-light:hover {
    color: var(--bs-white);
    background: var(--primary-gradient);
    box-shadow: var(--shadow-lg);
    transform: translateY(-3px);
}



.pt-6 {
    padding-top: 60px;
}

.ps-6 {
    padding-left: 60px;
}

.pe-6 {
    padding-right: 60px;
}

.pb-6 {
    padding-bottom: 60px;
}

/* === TYPOGRAPHY === */
.sub-title {
    font-family: "Edu TAS Beginner", cursive;
    font-weight: 700;
    font-size: 24px;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: inline-block;
    animation: gradient-shift 3s ease infinite;
}

@keyframes gradient-shift {
    0%, 100% { filter: hue-rotate(0deg); }
    50% { filter: hue-rotate(20deg); }
}

.container-fluid {
    position: relative;
    border-bottom: 1px solid rgba(102, 126, 234, 0.1);
    backdrop-filter: blur(10px);
    animation: section-entrance 0.8s ease-out;
    background: var(--card-bg);
    transition: background 0.3s ease;
}

[data-theme="dark"] .container-fluid {
    background: rgba(22, 33, 62, 0.6);
    border-bottom-color: rgba(102, 126, 234, 0.3);
}

@keyframes section-entrance {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (min-width: 992px) {
    .container-fluid::before {
        content: "";
        position: absolute;
        width: 15%;
        height: 100%;
        top: 0;
        left: 0;
        background: var(--dark-gradient);
        z-index: -1;
        box-shadow: inset -20px 0 40px rgba(0, 0, 0, 0.3);
    }
    
    [data-theme="dark"] .container-fluid::before {
        background: linear-gradient(135deg, #0f0c29 0%, #1a1139 100%);
    }
    
    .container-fluid::after {
        content: "";
        position: absolute;
        width: 2px;
        height: 80%;
        top: 10%;
        left: 15%;
        background: var(--primary-gradient);
        z-index: 1;
        animation: line-glow 2s ease-in-out infinite;
    }
}

@keyframes line-glow {
    0%, 100% { opacity: 0.3; box-shadow: 0 0 10px var(--primary-color); }
    50% { opacity: 1; box-shadow: 0 0 30px var(--primary-color); }
}

@media (max-width: 991px) {
    .container-fluid {
        border: none;
    }

    .container-fluid .header-content,
    .container-fluid .about-header,
    .container-fluid .education-header,
    .container-fluid .experience-header,
    .container-fluid .skills-header,
    .container-fluid .service-header,
    .container-fluid .portfolio-header,
    .container-fluid .blog-header,
    .container-fluid .testimonial-header,
    .container-fluid .contact-header {
        padding: 25px;
        background: var(--dark-gradient);
        border-radius: 15px;
        box-shadow: var(--shadow-lg);
    }

    .container-fluid .header-img,
    .container-fluid .about-content,
    .container-fluid .education-content,
    .container-fluid .experience-content,
    .container-fluid .skills-content,
    .container-fluid .service-content,
    .container-fluid .portfolio-content,
    .container-fluid .blog-content,
    .container-fluid .testimonial-content,
    .container-fluid .contact-content {
        padding-left: 0;
        padding-top: 25px;
    }
}


/*** Navbar Start ***/
.nav-section {
    position: relative;
}

.nav-section .navbar {
    position: fixed;
    width: 100%;
    height: 100vh;
    top: 50%;
    right: calc(40px - 100%);
    transform: translateY(-50%);
    z-index: 99;
}

.navbar.navbar-light {
    background: transparent;
    width: 100%;
}

.navbar .navbar-nav {
    display: flex;
    align-items: center;
    justify-content: center;
}

.navbar .navbar-nav .nav-link {
    width: 100%;
    display: flex;
    align-items: center;
}

.navbar-nav .nav-link span {
    width: 40px; 
    height: 40px;
    margin-right: 8px;
    border-right: 1px solid rgba(102, 126, 234, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    color: var(--text-color);
    transition: var(--transition-bounce);
}

.nav-section .navbar .navbar-nav .nav-item {
    height: 40px;
    padding: 0;
    margin-bottom: 8px;
    border: 1px solid rgba(102, 126, 234, 0.2);
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    color: var(--text-color);
    font-size: 14px;
    font-weight: 700;
    transition: var(--transition-bounce);
    border-radius: 25px;
    box-shadow: var(--shadow-sm);
    position: relative;
    overflow: hidden;
}

.nav-section .navbar .navbar-nav .nav-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: var(--primary-gradient);
    z-index: -1;
    transition: var(--transition-smooth);
}

.nav-section .navbar .navbar-nav .nav-item:hover::before,
.nav-section .navbar .navbar-nav .nav-item.active::before {
    left: 0;
}

.nav-section .navbar .navbar-nav .nav-item:hover,
.nav-section .navbar .navbar-nav .nav-item.active {
    margin-right: calc(100% + 40px);
    color: white;
    box-shadow: var(--shadow-lg);
    border-color: transparent;
}

.nav-section .navbar .navbar-nav .nav-item:hover span,
.nav-section .navbar .navbar-nav .nav-item.active span {
    color: white;
    transform: rotate(360deg) scale(1.2);
}

.nav-section .navbar .navbar-nav .nav-item.active {
    background: var(--primary-gradient);
    color: white;
    border-color: transparent;
}
/*** Navbar End ***/


/*** About Start ***/
.about-content .about-img {
    position: relative;
    overflow: hidden;
    border-radius: 20px;
    transition: var(--transition-smooth);
}

.about-content .about-img img {
    transition: var(--transition-smooth);
    border-radius: 20px;
}

.about-content .about-img:hover img {
    transform: scale(1.1) rotate(2deg);
}

.about-content .about-img .sosial-icon {
    position: absolute;
    width: 100%;
    height: 100%;
    top: -100%;
    left: 0;
    padding: 50px;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.95) 0%, rgba(118, 75, 162, 0.95) 100%);
    backdrop-filter: blur(10px);
    transition: var(--transition-bounce);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border-radius: 20px;
}

.about-content .about-img:hover .sosial-icon {
    top: 0;
}

.about-content .about-img .sosial-icon .btn {
    animation: bounce-in 0.6s ease backwards;
}

.about-content .about-img .sosial-icon .btn:nth-child(1) { animation-delay: 0.1s; }
.about-content .about-img .sosial-icon .btn:nth-child(2) { animation-delay: 0.2s; }
.about-content .about-img .sosial-icon .btn:nth-child(3) { animation-delay: 0.3s; }
.about-content .about-img .sosial-icon .btn:nth-child(4) { animation-delay: 0.4s; }

@keyframes bounce-in {
    0% {
        opacity: 0;
        transform: scale(0) rotate(-180deg);
    }
    50% {
        transform: scale(1.2) rotate(10deg);
    }
    100% {
        opacity: 1;
        transform: scale(1) rotate(0);
    }
}
/*** About End ***/


/*** Education Start ***/
.education-content .education-item {
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: var(--transition-smooth);
    z-index: 1;
    border-radius: 20px;
    border-left: 4px solid transparent;
    background: var(--card-bg);
}

[data-theme="dark"] .education-content .education-item {
    background: rgba(22, 33, 62, 0.8);
    backdrop-filter: blur(10px);
}

.education-content .education-item:hover {
    box-shadow: var(--shadow-xl);
    transform: translateY(-10px) scale(1.02);
    border-left-color: var(--primary-color);
}

.education-content .education-item::after {
    content: "";
    position: absolute;
    width: 0;
    height: 100%;
    top: 0;
    left: 0;
    background: var(--primary-gradient);
    opacity: 0.05;
    transition: var(--transition-smooth);
    z-index: -1;
}

.education-content .education-item:hover::after {
    width: 100%;
}

.education-content .education-item .fa-calendar {
    color: var(--primary-color);
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

.education-content .education-item h4 {
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    transition: var(--transition-smooth);
}

[data-theme="dark"] .education-content .education-item h4 {
    filter: brightness(1.3);
}

.education-content .education-item:hover h4 {
    transform: translateX(10px);
}

.education-content .education-item p,
.education-content .education-item .fs-5 {
    color: var(--text-color);
}

[data-theme="dark"] .education-content .education-item p,
[data-theme="dark"] .education-content .education-item .fs-5 {
    color: var(--text-color);
}
/*** Education End ***/


/*** Experience Start ***/
.experience-content .experience-item {
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: var(--transition-smooth);
    z-index: 1;
    border-radius: 20px;
    background: var(--card-bg);
    border-top: 4px solid transparent;
}

[data-theme="dark"] .experience-content .experience-item {
    background: rgba(22, 33, 62, 0.8);
    backdrop-filter: blur(10px);
}

.experience-content .experience-item:hover {
    box-shadow: var(--shadow-xl);
    transform: translateY(-10px) scale(1.02);
    border-top-color: var(--secondary-color);
}

.experience-content .experience-item::before {
    content: "";
    position: absolute;
    width: 0;
    height: 100%;
    top: 0;
    right: 0;
    background: var(--secondary-gradient);
    opacity: 0.05;
    transition: var(--transition-smooth);
    z-index: -1;
}

.experience-content .experience-item:hover::before {
    width: 100%;
}

.experience-content .experience-item .fa-calendar {
    color: var(--secondary-color);
    animation: pulse 2s ease-in-out infinite;
}

.experience-content .experience-item h4 {
    background: var(--secondary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    transition: var(--transition-smooth);
}

[data-theme="dark"] .experience-content .experience-item h4 {
    filter: brightness(1.3);
}

.experience-content .experience-item:hover h4 {
    transform: translateX(10px);
}

.experience-content .experience-item strong {
    color: var(--primary-color);
    font-weight: 700;
}

.experience-content .experience-item p,
.experience-content .experience-item .fs-5 {
    color: var(--text-color);
}

[data-theme="dark"] .experience-content .experience-item p,
[data-theme="dark"] .experience-content .experience-item .fs-5 {
    color: var(--text-color);
}
/*** Experience End ***/


/*** Service Start ***/
.service-content .service-item {
    box-shadow: var(--shadow-md);
    transition: var(--transition-smooth);
    border-radius: 20px;
    background: var(--card-bg);
    position: relative;
    overflow: hidden;
    border: 2px solid transparent;
}

[data-theme="dark"] .service-content .service-item {
    background: rgba(22, 33, 62, 0.8);
    backdrop-filter: blur(10px);
}

.service-content .service-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: var(--accent-gradient);
    opacity: 0.05;
    transition: var(--transition-smooth);
    z-index: 0;
}

.service-content .service-item:hover::before {
    left: 0;
}

.service-content .service-item:hover {
    box-shadow: var(--shadow-xl);
    transform: translateY(-10px);
    border-color: var(--accent-color);
}

.service-content .service-item i {
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    transition: var(--transition-bounce);
}

[data-theme="dark"] .service-content .service-item i {
    filter: brightness(1.3);
}

.service-content .service-item:hover i {
    transform: scale(1.2) rotate(10deg);
    animation: icon-bounce 0.6s ease;
}

@keyframes icon-bounce {
    0%, 100% { transform: scale(1.2) rotate(10deg); }
    50% { transform: scale(1.4) rotate(-10deg); }
}

.service-content .service-item h4 {
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

[data-theme="dark"] .service-content .service-item h4 {
    filter: brightness(1.3);
}

.service-content .service-item .fa-check {
    color: var(--accent-color);
    animation: check-pulse 1.5s ease-in-out infinite;
}

.service-content .service-item p {
    color: var(--text-color);
}

[data-theme="dark"] .service-content .service-item p {
    color: var(--text-color);
}

@keyframes check-pulse {
    0%, 100% { transform: scale(1); opacity: 0.7; }
    50% { transform: scale(1.1); opacity: 1; }
}
/*** Service End ***/


/*** Portfolio Start ***/
.portfolio-content .portfolio-item {
    transition: var(--transition-smooth);
    padding: 20px;
    border-radius: 20px;
    background: var(--card-bg);
    position: relative;
    overflow: hidden;
}

[data-theme="dark"] .portfolio-content .portfolio-item {
    background: rgba(22, 33, 62, 0.8);
    backdrop-filter: blur(10px);
}

.portfolio-content .portfolio-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: var(--primary-gradient);
    opacity: 0.03;
    transition: var(--transition-smooth);
    z-index: 0;
}

.portfolio-content .portfolio-item:hover::before {
    left: 0;
}

.portfolio-content .portfolio-item:hover {
    box-shadow: var(--shadow-xl);
    transform: translateX(15px);
}

.portfolio-content .portfolio-item .portfolio-img {
    position: relative;
    width: 100%;
    height: 150px;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
}

.portfolio-item .portfolio-img .portfolio-img-inner {
    width: 100%;
    height: 150px;
    position: absolute;
    top: 0;
    left: 0;
    border-radius: 15px;
    overflow: hidden;
}

.portfolio-item .portfolio-img .portfolio-img-inner img {
    width: 100%;
    height: 150px;
    object-fit: cover;
    transition: var(--transition-smooth);
}

.portfolio-content .portfolio-item:hover .portfolio-img .portfolio-img-inner img {
    transform: scale(1.15) rotate(2deg);
}

.portfolio-content .portfolio-item .view-img {
    display: flex;
    align-items: center;
    justify-content: end;
}

.portfolio-content .portfolio-item .view-img .btn {
    transition: var(--transition-bounce);
}

.portfolio-content .portfolio-item:hover .view-img .btn {
    animation: zoom-pulse 0.6s ease;
}

@keyframes zoom-pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.2); }
}

.portfolio-content .portfolio-item h1 {
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    transition: var(--transition-smooth);
}

[data-theme="dark"] .portfolio-content .portfolio-item h1 {
    filter: brightness(1.3);
}

.portfolio-content .portfolio-item:hover h1 {
    transform: translateX(10px);
}

.portfolio-content .portfolio-item h4 {
    color: var(--primary-color);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 14px;
}

.portfolio-content .portfolio-item .portfolio-img .portfolio-img-inner {
    visibility: visible;
    transition: var(--transition-smooth);
}

.portfolio-content .portfolio-item:hover .portfolio-img .portfolio-img-inner {
    visibility: visible;
}
/*** Portfolio End ***/


/*** Testimonial Start ***/
.testimonial-carousel {
    position: relative;
    transition: var(--transition-smooth);
    border-radius: 20px;
    overflow: hidden;
}

.testimonial-carousel .testimonial-item {
    padding: 60px;
    position: relative;
}

.testimonial-carousel .testimonial-item::before {
    content: '"';
    position: absolute;
    top: 20px;
    left: 20px;
    font-size: 100px;
    font-family: Georgia, serif;
    color: var(--primary-color);
    opacity: 0.1;
    line-height: 1;
}

.testimonial-carousel .owl-nav .owl-prev,
.testimonial-carousel .owl-nav .owl-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bs-white);
    color: var(--primary-color);
    transition: var(--transition-bounce);
    border-radius: 50%;
    box-shadow: var(--shadow-md);
}

.testimonial-carousel .owl-nav .owl-prev {
    left: 0;
}

.testimonial-carousel .owl-nav .owl-next {
    right: 0;
}

.testimonial-carousel .owl-nav .owl-prev:hover,
.testimonial-carousel .owl-nav .owl-next:hover {
    background: var(--primary-gradient);
    color: var(--bs-white);
    transform: translateY(-50%) scale(1.1);
    box-shadow: var(--shadow-lg);
}

.testimonial-carousel .owl-dots {
    width: 100%;
    height: 130px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 60px 60px 60px;
    transition: var(--transition-smooth);
}

@media (max-width: 576px) {
    .testimonial-carousel .owl-dots {
        justify-content: start;
    }
}

.testimonial-carousel .owl-dots .owl-dot img {
    width: 40px;
    height: 40px;
    margin-right: 15px;
    border: 3px solid var(--bs-white);
    border-radius: 50%;
    transition: var(--transition-bounce);
    box-shadow: var(--shadow-sm);
    filter: grayscale(100%);
}

.testimonial-carousel .owl-dots .owl-dot:hover img {
    filter: grayscale(0%);
    transform: scale(1.1);
}

.testimonial-carousel .owl-dots .owl-dot.active img {
    width: 70px;
    height: 70px;
    border: 3px solid var(--primary-color);
    box-shadow: var(--shadow-lg);
    filter: grayscale(0%);
}

.testimonial-item h5 {
    color: var(--primary-color);
    font-weight: 700;
}

.testimonial-item .fas.fa-star {
    animation: star-glow 1.5s ease-in-out infinite;
}

.testimonial-item .fas.fa-star:nth-child(1) { animation-delay: 0s; }
.testimonial-item .fas.fa-star:nth-child(2) { animation-delay: 0.1s; }
.testimonial-item .fas.fa-star:nth-child(3) { animation-delay: 0.2s; }
.testimonial-item .fas.fa-star:nth-child(4) { animation-delay: 0.3s; }
.testimonial-item .fas.fa-star:nth-child(5) { animation-delay: 0.4s; }

@keyframes star-glow {
    0%, 100% { transform: scale(1); filter: brightness(1); }
    50% { transform: scale(1.1); filter: brightness(1.3); }
}

.testimonial-inner-img {
    border-radius: 50%;
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: var(--transition-smooth);
}

.testimonial-inner-img:hover {
    transform: scale(1.05);
    box-shadow: var(--shadow-lg);
}
/*** Testimonial End ***/

/*** Footer Start ***/
.footer {
    background: var(--dark-gradient);
    position: relative;
    overflow: hidden;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: -50%;
    width: 200%;
    height: 100%;
    background: radial-gradient(circle, rgba(102, 126, 234, 0.1) 0%, transparent 70%);
    animation: footer-glow 10s linear infinite;
}

@keyframes footer-glow {
    0% { transform: translateX(0); }
    100% { transform: translateX(50%); }
}

.footer .btn:hover {
    transform: translateY(-5px) scale(1.1);
}

@media (max-width: 991px) {
    .container-fluid .footer-content {
        padding-left: 0;
    }
}
/*** Footer End ***/

/* === ADDITIONAL MODERN ENHANCEMENTS === */

/* Glassmorphism Effect */
.glass-effect {
    background: rgba(255, 255, 255, 0.25);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.18);
    box-shadow: var(--shadow-lg);
}

/* Text Gradient */
.text-gradient {
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Animated Background */
@keyframes gradient-animation {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.animated-gradient {
    background: linear-gradient(-45deg, #667eea, #764ba2, #f093fb, #4facfe);
    background-size: 400% 400%;
    animation: gradient-animation 15s ease infinite;
}

/* Hover 3D Effect */
.hover-3d {
    transition: var(--transition-smooth);
}

.hover-3d:hover {
    transform: perspective(1000px) rotateX(10deg) rotateY(10deg);
}

/* Loading Animation */
@keyframes shimmer {
    0% { background-position: -1000px 0; }
    100% { background-position: 1000px 0; }
}

.skeleton {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 1000px 100%;
    animation: shimmer 2s infinite;
}

/* Smooth Reveal Animation */
.reveal {
    opacity: 0;
    transform: translateY(50px);
    transition: var(--transition-smooth);
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* Custom Input Styling */
.form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(102, 126, 234, 0.25);
}

/* Enhance Display Headings */
.display-6 {
    font-weight: 800;
    letter-spacing: -0.5px;
}

/* Contact Form Enhancement */
.contact-content .form-floating input,
.contact-content .form-floating textarea {
    border-radius: 15px;
    border: 2px solid #e2e8f0;
    transition: var(--transition-smooth);
}

.contact-content .form-floating input:focus,
.contact-content .form-floating textarea:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
    transform: translateY(-2px);
}

/* Header Image Enhancement */
.header-img img {
    animation: profile-float 6s ease-in-out infinite;
}

@keyframes profile-float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-20px); }
}

/* Section Headers Enhancement */
.header-content,
.about-header,
.education-header,
.experience-header,
.service-header,
.portfolio-header,
.testimonial-header,
.contact-header {
    position: relative;
    overflow: hidden;
}

.header-content::after,
.about-header::after,
.education-header::after,
.experience-header::after,
.service-header::after,
.portfolio-header::after,
.testimonial-header::after,
.contact-header::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: var(--primary-gradient);
    animation: progress-bar 3s ease-in-out infinite;
}

@keyframes progress-bar {
    0%, 100% { transform: translateX(-100%); }
    50% { transform: translateX(100%); }
}

/* === RIPPLE EFFECT === */
.btn {
    position: relative;
    overflow: hidden;
}

.btn .ripple {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.6);
    transform: scale(0);
    animation: ripple-animation 0.6s ease-out;
    pointer-events: none;
}

@keyframes ripple-animation {
    to {
        transform: scale(4);
        opacity: 0;
    }
}

/* === CUSTOM CURSOR === */
.custom-cursor {
    position: fixed;
    width: 10px;
    height: 10px;
    background: var(--primary-color);
    border-radius: 50%;
    pointer-events: none;
    z-index: 9999;
    transition: transform 0.1s ease;
    mix-blend-mode: difference;
}

.custom-cursor-follower {
    position: fixed;
    width: 40px;
    height: 40px;
    border: 2px solid var(--primary-color);
    border-radius: 50%;
    pointer-events: none;
    z-index: 9998;
    transition: transform 0.3s ease, width 0.3s ease, height 0.3s ease;
    transform: translate(-50%, -50%);
    mix-blend-mode: difference;
}

.custom-cursor.cursor-hover,
.custom-cursor-follower.cursor-hover {
    transform: scale(2);
}

/* === ERROR FIELD ANIMATION === */
.error-field {
    animation: shake 0.5s ease;
    border-color: #f5576c !important;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    10%, 30%, 50%, 70%, 90% { transform: translateX(-10px); }
    20%, 40%, 60%, 80% { transform: translateX(10px); }
}

/* === FADE OUT SPINNER === */
#spinner.fade-out {
    opacity: 0;
    transition: opacity 0.5s ease;
}

/* === LOADED STATE === */
body.loaded {
    animation: page-fade-in 0.8s ease;
}

@keyframes page-fade-in {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* === IMAGE LAZY LOAD === */
img[data-src] {
    opacity: 0;
    transition: opacity 0.5s ease;
}

img[data-src].loaded {
    opacity: 1;
}

/* === SKILL BAR ANIMATION (if needed) === */
.skill-bar {
    height: 8px;
    background: var(--primary-gradient);
    border-radius: 10px;
    width: 0;
    box-shadow: 0 3px 10px rgba(102, 126, 234, 0.3);
}

/* === PORTFOLIO FILTER BUTTONS (if needed) === */
.portfolio-filter button {
    padding: 10px 25px;
    margin: 5px;
    border: 2px solid var(--primary-color);
    background: transparent;
    color: var(--primary-color);
    border-radius: 25px;
    font-weight: 600;
    transition: var(--transition-smooth);
    cursor: pointer;
}

.portfolio-filter button.active,
.portfolio-filter button:hover {
    background: var(--primary-gradient);
    color: white;
    border-color: transparent;
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}

/* === ENHANCED CARD 3D TRANSFORM === */
.education-item,
.experience-item,
.service-item {
    transform-style: preserve-3d;
    transition: transform 0.3s ease;
}

/* === SELECTION STYLING === */
::selection {
    background: var(--primary-color);
    color: white;
}

::-moz-selection {
    background: var(--primary-color);
    color: white;
}

/* === FOCUS VISIBLE === */
a:focus-visible,
button:focus-visible {
    outline: 3px solid var(--primary-color);
    outline-offset: 3px;
}

/* === SMOOTH CARD ENTRY ANIMATIONS === */
.education-item,
.experience-item,
.service-item,
.portfolio-item {
    animation: card-entry 0.6s ease-out backwards;
}

.education-item:nth-child(1),
.experience-item:nth-child(1),
.service-item:nth-child(1) { animation-delay: 0.1s; }

.education-item:nth-child(2),
.experience-item:nth-child(2),
.service-item:nth-child(2) { animation-delay: 0.2s; }

.education-item:nth-child(3),
.experience-item:nth-child(3),
.service-item:nth-child(3) { animation-delay: 0.3s; }

@keyframes card-entry {
    from {
        opacity: 0;
        transform: translateY(50px) scale(0.9);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* === RESPONSIVE ENHANCEMENTS === */
@media (max-width: 768px) {
    .custom-cursor,
    .custom-cursor-follower {
        display: none;
    }
    
    :root {
        --shadow-xl: 0 10px 30px rgba(0, 0, 0, 0.15);
    }
}

/* === PRINT STYLES === */
@media print {
    .navbar,
    .back-to-top,
    .spinner {
        display: none !important;
    }
}

/* === ACCESSIBILITY === */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}

/* === HIGH CONTRAST MODE === */
@media (prefers-contrast: high) {
    :root {
        --primary-color: #0000ff;
        --text-color: #000000;
    }
}

/* === REDUCED MOTION === */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* === DARK MODE SUPPORT (Optional) === */
@media (prefers-color-scheme: dark) {
    body {
        background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
        color: #e2e8f0;
    }
    
    .container-fluid {
        border-color: rgba(255, 255, 255, 0.1);
    }
    
    .education-item,
    .experience-item,
    .service-item,
    .portfolio-item {
        background: rgba(255, 255, 255, 0.05);
        backdrop-filter: blur(10px);
    }
}

/* === THEME TRANSITION === */
body.theme-transitioning,
body.theme-transitioning * {
    transition: background 0.3s ease, color 0.3s ease, border-color 0.3s ease !important;
}

/* === ADDITIONAL ANIMATIONS === */

/* Magnetic Button Effect */
.btn-magnetic {
    transition: var(--transition-bounce);
}

.btn-magnetic:hover {
    animation: magnetic-pulse 0.8s ease-in-out;
}

@keyframes magnetic-pulse {
    0%, 100% { transform: scale(1); }
    25% { transform: scale(1.05) rotate(2deg); }
    50% { transform: scale(1.1); }
    75% { transform: scale(1.05) rotate(-2deg); }
}

/* Glow Effect */
.glow-effect {
    animation: glow 2s ease-in-out infinite alternate;
}

@keyframes glow {
    from {
        box-shadow: 0 0 5px var(--primary-color),
                    0 0 10px var(--primary-color),
                    0 0 15px var(--primary-color);
    }
    to {
        box-shadow: 0 0 10px var(--primary-color),
                    0 0 20px var(--primary-color),
                    0 0 30px var(--primary-color);
    }
}

/* Slide In Animations */
@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-100px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(100px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(100px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.slide-in-left {
    animation: slideInLeft 0.8s ease-out;
}

.slide-in-right {
    animation: slideInRight 0.8s ease-out;
}

.slide-in-up {
    animation: slideInUp 0.8s ease-out;
}

/* Animated Gradient Border */
.gradient-border {
    position: relative;
    border: 2px solid transparent;
    background: var(--card-bg);
    background-clip: padding-box;
}

.gradient-border::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: -1;
    margin: -2px;
    border-radius: inherit;
    background: var(--primary-gradient);
    animation: gradient-rotate 3s linear infinite;
}

@keyframes gradient-rotate {
    0% {
        filter: hue-rotate(0deg);
    }
    100% {
        filter: hue-rotate(360deg);
    }
}

/* Typewriter Cursor */
.typewriter {
    border-right: 3px solid var(--primary-color);
    animation: blink 0.7s steps(1) infinite;
}

@keyframes blink {
    50% {
        border-color: transparent;
    }
}

/* Wave Animation */
.wave {
    animation: wave 2.5s ease-in-out infinite;
    transform-origin: 70% 70%;
    display: inline-block;
}

@keyframes wave {
    0%, 100% { transform: rotate(0deg); }
    10%, 30% { transform: rotate(14deg); }
    20% { transform: rotate(-8deg); }
    40% { transform: rotate(14deg); }
    50% { transform: rotate(-4deg); }
    60% { transform: rotate(10deg); }
}

/* Breathing Animation */
.breathe {
    animation: breathe 3s ease-in-out infinite;
}

@keyframes breathe {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.05); opacity: 0.8; }
}

/* Bounce In Animation */
.bounce-in {
    animation: bounceIn 1s ease-out;
}

@keyframes bounceIn {
    0% {
        opacity: 0;
        transform: scale(0.3);
    }
    50% {
        opacity: 1;
        transform: scale(1.05);
    }
    70% {
        transform: scale(0.9);
    }
    100% {
        transform: scale(1);
    }
}

/* Fade Zoom Animation */
.fade-zoom {
    animation: fadeZoom 0.8s ease-out;
}

@keyframes fadeZoom {
    from {
        opacity: 0;
        transform: scale(0.8);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* Text Shadow Glow */
.text-glow {
    animation: textGlow 2s ease-in-out infinite alternate;
}

@keyframes textGlow {
    from {
        text-shadow: 0 0 5px var(--primary-color),
                     0 0 10px var(--primary-color);
    }
    to {
        text-shadow: 0 0 10px var(--primary-color),
                     0 0 20px var(--primary-color),
                     0 0 30px var(--primary-color);
    }
}

/* Flip Card Animation */
.flip-card {
    perspective: 1000px;
}

.flip-card-inner {
    transition: transform 0.6s;
    transform-style: preserve-3d;
}

.flip-card:hover .flip-card-inner {
    transform: rotateY(180deg);
}

/* Text Reveal Animation */
.text-reveal {
    position: relative;
    overflow: hidden;
}

.text-reveal::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--primary-color);
    animation: reveal 1.5s ease-out forwards;
}

@keyframes reveal {
    0% {
        left: 0;
        width: 0;
    }
    50% {
        left: 0;
        width: 100%;
    }
    100% {
        left: 100%;
        width: 0;
    }
}

/* Enhance Text Visibility for All Themes */
.text-dark {
    color: var(--text-color) !important;
}

[data-theme="dark"] .text-dark {
    color: var(--text-color) !important;
}

p, h1, h2, h3, h4, h5, h6, span, a {
    color: var(--text-color);
}

[data-theme="dark"] p,
[data-theme="dark"] h1,
[data-theme="dark"] h2,
[data-theme="dark"] h3,
[data-theme="dark"] h4,
[data-theme="dark"] h5,
[data-theme="dark"] h6,
[data-theme="dark"] span {
    color: var(--text-color);
}

.text-white {
    color: #ffffff !important;
}

/* Ensure header text is always visible */
.header-content h1,
.header-content p {
    color: #ffffff !important;
}

.about-header h1,
.about-header p,
.education-header h1,
.education-header p,
.experience-header h1,
.experience-header p,
.service-header h1,
.service-header p,
.portfolio-header h1,
.portfolio-header p,
.testimonial-header h1,
.testimonial-header p,
.contact-header h1,
.contact-header p {
    color: #ffffff !important;
}

/* Enhance icon visibility */
.fas, .far, .fab, .fa {
    opacity: 1 !important;
}

[data-theme="dark"] .text-primary {
    color: var(--primary-color) !important;
    filter: brightness(1.3);
}

/* Animate on Scroll Class */
.animate-in {
    animation: fadeInUp 0.8s ease-out forwards;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Loading Skeleton */
.skeleton {
    background: linear-gradient(
        90deg,
        rgba(255, 255, 255, 0.1) 25%,
        rgba(255, 255, 255, 0.2) 50%,
        rgba(255, 255, 255, 0.1) 75%
    );
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
}

@keyframes loading {
    0% {
        background-position: 200% 0;
    }
    100% {
        background-position: -200% 0;
    }
}

/* === DATE BADGE STYLING === */
.date-badge {
    background: var(--primary-gradient);
    color: #ffffff !important;
    padding: 8px 20px;
    border-radius: 25px;
    font-weight: 600;
    font-size: 0.9rem;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    box-shadow: var(--shadow-md);
    animation: pulse-glow 2s ease-in-out infinite;
}

.date-badge .fa-calendar {
    color: #ffffff !important;
    opacity: 1;
}

[data-theme="dark"] .date-badge {
    background: var(--accent-gradient);
    box-shadow: 0 4px 15px rgba(79, 172, 254, 0.4);
}

/* === TESTIMONIAL SECTION DARK THEME === */
.testimonial-bg {
    background: #f8f9fa;
    border-radius: 20px;
    padding: 40px;
}

[data-theme="dark"] .testimonial-bg {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
}

.testimonial-name {
    font-weight: 700;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

[data-theme="dark"] .testimonial-name {
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.testimonial-role {
    color: var(--text-muted);
    font-size: 0.95rem;
}

.testimonial-text {
    color: var(--text-color);
    line-height: 1.8;
    font-size: 1rem;
}

/* === CONTACT FORM WRAPPER === */
.contact-form-wrapper {
    background: #f8f9fa;
    border-radius: 20px;
    box-shadow: var(--shadow-md);
}

[data-theme="dark"] .contact-form-wrapper {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
}

.contact-heading {
    color: var(--text-color);
}

.contact-label {
    color: var(--text-color);
    font-weight: 600;
    font-size: 1.1rem;
    margin-bottom: 5px;
}

.contact-info {
    color: var(--text-muted);
    font-size: 0.95rem;
}

/* Light theme form styles */
.contact-form-wrapper input,
.contact-form-wrapper textarea {
    background: rgba(255, 255, 255, 0.95) !important;
    border: 2px solid rgba(102, 126, 234, 0.3) !important;
    color: #1a202c !important;
}

.contact-form-wrapper input:focus,
.contact-form-wrapper textarea:focus {
    background: white !important;
    border-color: var(--primary-color) !important;
    color: #1a202c !important;
}

.contact-form-wrapper input::placeholder,
.contact-form-wrapper textarea::placeholder {
    color: rgba(26, 32, 44, 0.6) !important;
}

.contact-form-wrapper label {
    color: #2d3748 !important;
    font-weight: 600 !important;
}

/* Dark theme form styles */
[data-theme="dark"] .contact-form-wrapper input,
[data-theme="dark"] .contact-form-wrapper textarea {
    background: rgba(255, 255, 255, 0.08) !important;
    border: 2px solid rgba(255, 255, 255, 0.2) !important;
    color: var(--text-color) !important;
}

[data-theme="dark"] .contact-form-wrapper input:focus,
[data-theme="dark"] .contact-form-wrapper textarea:focus {
    background: rgba(255, 255, 255, 0.12) !important;
    border-color: var(--primary-color) !important;
}

[data-theme="dark"] .contact-form-wrapper input::placeholder,
[data-theme="dark"] .contact-form-wrapper textarea::placeholder {
    color: rgba(255, 255, 255, 0.5) !important;
}

[data-theme="dark"] .contact-form-wrapper label {
    color: rgba(255, 255, 255, 0.9) !important;
}

/* === LANGUAGE SWITCHER === */
.language-switcher {
    position: fixed;
    top: 100px;
    right: 20px;
    z-index: 9998;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 12px;
    padding: 8px;
    box-shadow: var(--shadow-lg);
    animation: slideInRight 0.5s ease-out;
}

[data-theme="dark"] .language-switcher {
    background: rgba(22, 33, 62, 0.95);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
}

.language-switcher select {
    border: none;
    background: transparent;
    color: var(--text-color);
    font-weight: 600;
    cursor: pointer;
    padding: 5px 10px;
}

.language-switcher .goog-te-combo {
    background: transparent;
    border: 2px solid var(--primary-color);
    border-radius: 8px;
    padding: 8px 12px;
    color: var(--text-color);
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition-smooth);
}

.language-switcher .goog-te-combo:hover {
    border-color: var(--accent-color);
    background: rgba(102, 126, 234, 0.1);
}

[data-theme="dark"] .language-switcher .goog-te-combo {
    border-color: var(--accent-color);
    color: var(--text-color);
}

/* Hide Google Translate banner */
.goog-te-banner-frame.skiptranslate {
    display: none !important;
}

body {
    top: 0 !important;
}

/* === ADDITIONAL ANIMATIONS === */
@keyframes typing {
    from {
        width: 0;
    }
    to {
        width: 100%;
    }
}

@keyframes blink-caret {
    from, to {
        border-color: transparent;
    }
    50% {
        border-color: var(--primary-color);
    }
}

.typing-effect {
    overflow: hidden;
    border-right: 3px solid var(--primary-color);
    white-space: nowrap;
    margin: 0 auto;
    animation: typing 3.5s steps(40, end), blink-caret 0.75s step-end infinite;
}

@keyframes float-up-down {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-20px);
    }
}

.float-animation {
    animation: float-up-down 3s ease-in-out infinite;
}

@keyframes swing {
    0%, 100% {
        transform: rotate(-3deg);
    }
    50% {
        transform: rotate(3deg);
    }
}

.swing-animation {
    animation: swing 2s ease-in-out infinite;
}

@keyframes bounce-in {
    0% {
        opacity: 0;
        transform: scale(0.3);
    }
    50% {
        opacity: 1;
        transform: scale(1.05);
    }
    70% {
        transform: scale(0.9);
    }
    100% {
        transform: scale(1);
    }
}

.bounce-in {
    animation: bounce-in 0.6s ease-out;
}

@keyframes slide-in-left {
    0% {
        opacity: 0;
        transform: translateX(-100px);
    }
    100% {
        opacity: 1;
        transform: translateX(0);
    }
}

.slide-in-left {
    animation: slide-in-left 0.8s ease-out;
}

@keyframes slide-in-right {
    0% {
        opacity: 0;
        transform: translateX(100px);
    }
    100% {
        opacity: 1;
        transform: translateX(0);
    }
}

.slide-in-right {
    animation: slide-in-right 0.8s ease-out;
}

@keyframes zoom-in {
    0% {
        opacity: 0;
        transform: scale(0.5);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}

.zoom-in {
    animation: zoom-in 0.6s ease-out;
}

@keyframes flip-in {
    0% {
        opacity: 0;
        transform: rotateY(-90deg);
    }
    100% {
        opacity: 1;
        transform: rotateY(0);
    }
}

.flip-in {
    animation: flip-in 0.8s ease-out;
}

/* Parallax Effect */
.parallax-element {
    transition: transform 0.3s ease-out;
}

/* Stagger Animation for Skills */
.skill-item {
    opacity: 0;
    animation: fadeInUp 0.6s ease-out forwards;
}

.skill-item:nth-child(1) { animation-delay: 0.1s; }
.skill-item:nth-child(2) { animation-delay: 0.2s; }
.skill-item:nth-child(3) { animation-delay: 0.3s; }
.skill-item:nth-child(4) { animation-delay: 0.4s; }
.skill-item:nth-child(5) { animation-delay: 0.5s; }
.skill-item:nth-child(6) { animation-delay: 0.6s; }

/* Form Success Message Animation */
@keyframes success-bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-30px);
    }
    60% {
        transform: translateY(-15px);
    }
}

.success-message {
    animation: success-bounce 1s ease;
}

/* Enhanced Hover Effects */
.hover-lift {
    transition: var(--transition-smooth);
}

.hover-lift:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-xl);
}

.hover-glow:hover {
    box-shadow: 0 0 30px rgba(102, 126, 234, 0.5);
}

[data-theme="dark"] .hover-glow:hover {
    box-shadow: 0 0 30px rgba(79, 172, 254, 0.5);
}

/* === RESPONSIVE LANGUAGE SWITCHER === */
@media (max-width: 768px) {
    .language-switcher {
        top: 160px;
        right: 10px;
        padding: 6px;
    }
    
    .language-switcher .goog-te-combo {
        padding: 6px 10px;
        font-size: 0.85rem;
    }
}

/* === NOTIFICATION SYSTEM === */
.notification {
    position: fixed;
    top: -100px;
    right: 20px;
    background: var(--primary-gradient);
    color: #ffffff;
    padding: 20px 30px;
    border-radius: 12px;
    box-shadow: var(--shadow-xl);
    z-index: 99999;
    font-weight: 600;
    font-size: 1rem;
    min-width: 300px;
    transition: all 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    animation: notification-pulse 2s ease-in-out infinite;
}

.notification.show {
    top: 100px;
}

.notification.error {
    background: var(--secondary-gradient);
}

.notification.success {
    background: var(--success-gradient);
}

@keyframes notification-pulse {
    0%, 100% {
        box-shadow: 0 10px 40px rgba(102, 126, 234, 0.4);
    }
    50% {
        box-shadow: 0 10px 60px rgba(102, 126, 234, 0.6);
    }
}

/* === CUSTOM CURSOR === */
.custom-cursor,
.custom-cursor-follower {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    position: fixed;
    pointer-events: none;
    z-index: 99999;
    transition: all 0.1s ease;
}

.custom-cursor {
    background: var(--primary-color);
    mix-blend-mode: difference;
}

.custom-cursor-follower {
    width: 40px;
    height: 40px;
    border: 2px solid var(--primary-color);
    background: transparent;
    transition: all 0.3s ease;
}

.custom-cursor.cursor-hover {
    transform: scale(0.5);
}

.custom-cursor-follower.cursor-hover {
    transform: scale(1.5);
}

[data-theme="dark"] .custom-cursor {
    background: var(--accent-color);
}

[data-theme="dark"] .custom-cursor-follower {
    border-color: var(--accent-color);
}

/* === END OF SENIOR PORTFOLIO STYLES === */
