/* Fonts - Loaded via preload in HTML for better performance */

body {
    font-family: "Bai Jamjuree", sans-serif;
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Hero subtitle styling */
.hero-subtitle {
    font-size: 1rem;
    color: #6c757d;
    font-weight: 500;
    margin-bottom: 1.5rem;
}

.dark-theme .hero-subtitle {
    color: #adb5bd;
}

.section-padding {
    padding-top: 120px;
    padding-bottom: 120px;
}

.divider {
    border-bottom: 1px solid rgba(0,0,0,0.08);
}

a {
    text-decoration: none;
}

.border-hover {
    transition: border-color 0.3s ease-out, transform 0.3s ease-out;
    border: 3px solid transparent;
    will-change: border-color, transform;
}

.border-hover:hover {
    border-color: var(--bs-info);
}

/* Intro Section */
.intro-section p {
    max-width: 560px;
}

/* Animated Skills Heading */
.intro-section h1 {
    position: relative;
    display: inline-block;
    padding-bottom: 10px;
}

.intro-section h1::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, transparent, #5b62f4, transparent);
    animation: underlineSlide 3s infinite;
}

@keyframes underlineSlide {
    0% {
        transform: scaleX(0);
        transform-origin: left;
    }
    50% {
        transform: scaleX(1);
        transform-origin: left;
    }
    51% {
        transform: scaleX(1);
        transform-origin: right;
    }
    100% {
        transform: scaleX(0);
        transform-origin: right;
    }
}

/* Dark theme adjustments for heading */
.dark-theme .intro-section h1 {
    color: #ffffff;
}

.dark-theme .intro-section h1::after {
    background: linear-gradient(90deg, transparent, #0dcaf0, transparent);
}

/* Light mode text improvements for better readability */
.text-muted.small {
    color: #495057 !important;
    font-weight: 500;
}

#work .border-hover p,
#Models .border-hover p {
    color: #495057 !important;
    font-weight: 500;
}

/* Dark theme keeps lighter text */
.dark-theme .text-muted.small,
.dark-theme #work .border-hover p,
.dark-theme #Models .border-hover p {
    color: #adb5bd !important;
    font-weight: 400;
}

/* Enhanced Navbar Styles - Fixed visibility */
.navbar {
    padding: 1rem 0;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
    will-change: transform;
}

.navbar .navbar-brand {
    font-weight: 700;
    letter-spacing: 1px;
    transition: all 0.3s ease;
}

.navbar .navbar-brand:hover {
    transform: translateY(-2px);
    color: var(--bs-info) !important;
}

.navbar .navbar-nav .nav-link {
    font-size: 14px;
    text-transform: uppercase;
    font-weight: 600;
    letter-spacing: 1px;
    padding: 0.5rem 1rem;
    margin: 0 0.2rem;
    border-radius: 50px;
    transition: all 0.3s ease;
    position: relative;
}

.navbar .navbar-nav .nav-link::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--bs-info);
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.navbar .navbar-nav .nav-link:hover::before,
.navbar .navbar-nav .nav-link.active::before {
    width: 80%;
}

.navbar .navbar-nav .nav-link:hover,
.navbar .navbar-nav .nav-link.active {
    color: var(--bs-info) !important;
    transform: translateY(-2px);
}


/* Enhanced Navbar Link Effects */
.navbar .navbar-nav .nav-link {
    background: transparent;
    border: 1px solid transparent;
}

.navbar .navbar-nav .nav-link:hover {
    background: rgba(13, 202, 240, 0.05);
    border-color: rgba(13, 202, 240, 0.2);
    box-shadow: 0 2px 8px rgba(13, 202, 240, 0.1);
}

/* Active Link Styling */
.navbar .navbar-nav .nav-link.active {
    background: rgba(13, 202, 240, 0.1);
    border-color: rgba(13, 202, 240, 0.3);
    color: var(--bs-info) !important;
}

.navbar .navbar-toggler {
    border: none;
    padding: 0.5rem;
    transition: all 0.3s ease;
}

.navbar .navbar-toggler:focus {
    box-shadow: none;
}

.navbar .navbar-toggler-icon {
    background-image: none;
    position: relative;
    width: 24px;
    height: 2px;
    background-color: currentColor;
    transition: all 0.3s ease;
}

.navbar .navbar-toggler-icon::before,
.navbar .navbar-toggler-icon::after {
    content: '';
    position: absolute;
    width: 24px;
    height: 2px;
    background-color: currentColor;
    transition: all 0.3s ease;
}

.navbar .navbar-toggler-icon::before {
    top: -8px;
}

.navbar .navbar-toggler-icon::after {
    bottom: -8px;
}

.navbar .navbar-toggler[aria-expanded="true"] .navbar-toggler-icon {
    background-color: transparent;
}

.navbar .navbar-toggler[aria-expanded="true"] .navbar-toggler-icon::before {
    transform: rotate(45deg);
    top: 0;
}

.navbar .navbar-toggler[aria-expanded="true"] .navbar-toggler-icon::after {
    transform: rotate(-45deg);
    bottom: 0;
}

/* Dark Mode Navbar Adjustments */
.dark-theme .navbar {
    background-color: rgba(26, 26, 26, 0.95) !important;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
}

.dark-theme .navbar .navbar-brand,
.dark-theme .navbar .nav-link {
    color: #ffffff !important;
}

.dark-theme .navbar .navbar-brand {
    color: #5B62F4 !important;
}

.dark-theme .navbar .navbar-brand:hover {
    color: var(--bs-info) !important;
}

.dark-theme .navbar .nav-link:hover,
.dark-theme .navbar .nav-link.active {
    color: var(--bs-info) !important;
}


.dark-theme .navbar .navbar-nav .nav-link:hover {
    background: rgba(13, 202, 240, 0.1);
    border-color: rgba(13, 202, 240, 0.3);
    box-shadow: 0 2px 8px rgba(13, 202, 240, 0.2);
}

.dark-theme .navbar .navbar-nav .nav-link.active {
    background: rgba(13, 202, 240, 0.15);
    border-color: rgba(13, 202, 240, 0.4);
}

/* Mobile Navbar Improvements */
@media (max-width: 991.98px) {
    .navbar .navbar-nav .nav-link {
        padding: 0.75rem 1rem;
        margin: 0.2rem 0;
        border-radius: 8px;
    }
    
    .navbar .navbar-nav .nav-link:hover {
        background-color: rgba(13, 202, 240, 0.1);
        transform: translateX(5px);
    }
}

/* Light Mode Navbar Adjustments */
.navbar {
    background-color: rgba(255, 255, 255, 0.95) !important;
}

.navbar .navbar-brand,
.navbar .nav-link {
    color: #333 !important;
}

.navbar .navbar-brand:hover {
    color: var(--bs-info) !important;
}

.navbar .nav-link:hover,
.navbar .nav-link.active {
    color: var(--bs-info) !important;
}

/* Service */
#services .row {
    display: flex;
    flex-wrap: wrap;
}

#services .col-md-6,
#services .col-lg-4 {
    display: flex;
    margin-bottom: 1.5rem;
}

.service {
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.service .icon {
    display: grid;
    align-content: center;
    text-align: center;
    width: 80px;
    height: 80px;
    color: var(--bs-info);
    font-size: 34px;
    box-shadow: inset 2px 2px 8px rgba(30, 55, 88, 0.3), inset -3px -2px 5px rgba(255, 255, 255, 0.8);
}

.service h5 {
    flex-grow: 0;
    margin-bottom: 1rem;
}

.service p {
    flex-grow: 1;
    margin-bottom: 0;
    line-height: 1.6;
}

/* Ensure consistent spacing between service cards */
#services .col-md-6,
#services .col-lg-4 {
    margin-bottom: 2rem;
}

/* Dark theme service card adjustments */
.dark-theme .service {
    background-color: #2a2a2a;
    border: 1px solid #3a3a3a;
}

.dark-theme .service:hover {
    background-color: #3a3a3a;
    border-color: var(--bs-info);
}

/* Responsive adjustments for service cards */
@media (max-width: 767.98px) {
    #services .col-md-6,
    #services .col-lg-4 {
        margin-bottom: 1.5rem;
    }
    
    .service {
        min-height: 280px;
    }
}

@media (min-width: 768px) and (max-width: 991.98px) {
    .service {
        min-height: 300px;
    }
}

@media (min-width: 992px) {
    .service {
        min-height: 320px;
    }
}

/* Footer */
.btn-icon {
    width: 44px;
    height: 44px;
    display: inline-grid;
    align-content: center;
    padding: 0;
    font-weight: normal;
}

/* Back to Top Button */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(13, 202, 240, 0.7);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.3s ease;
    border: none;
    box-shadow: 0 4px 15px rgba(13, 202, 240, 0.3);
    z-index: 999;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:hover {
    background: rgba(11, 94, 215, 0.8);
    transform: translateY(-5px);
    box-shadow: 0 6px 20px rgba(13, 202, 240, 0.4);
}

/* Dark/Light Mode Toggle */
.theme-toggle {
    position: fixed;
    bottom: 30px;
    left: 30px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(13, 202, 240, 0.7);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.3s ease;
    border: none;
    box-shadow: 0 4px 15px rgba(13, 202, 240, 0.3);
    z-index: 999;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.theme-toggle.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

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

.theme-toggle i:first-child {
    opacity: 1;
    transform: translateY(0);
}

.theme-toggle i:last-child {
    opacity: 0;
    transform: translateY(20px);
}

.theme-toggle.active i:first-child {
    opacity: 0;
    transform: translateY(-20px);
}

.theme-toggle.active i:last-child {
    opacity: 1;
    transform: translateY(0);
}

.theme-toggle:hover {
    background: rgba(11, 94, 215, 0.8);
    transform: translateY(-5px);
    box-shadow: 0 6px 20px rgba(13, 202, 240, 0.4);
}

/* Dark Theme Styles */
.dark-theme {
    background-color: #1a1a1a;
    color: #ffffff;
}

.dark-theme .navbar {
    background-color: #1a1a1a !important;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.dark-theme .navbar-brand,
.dark-theme .nav-link {
    color: #ffffff !important;
}

.dark-theme .service,
.dark-theme .border-hover {
    background-color: #2a2a2a;
    border-color: #3a3a3a;
}

.dark-theme .divider {
    border-bottom-color: rgba(255, 255, 255, 0.1);
}


.dark-theme .progress {
    background-color: #2a2a2a;
}

.dark-theme .intro-section p {
    color: #cccccc;
}

.dark-theme .btn-outline-info {
    color: #0dcaf0;
    border-color: #0dcaf0;
}

.dark-theme .btn-outline-info:hover {
    background-color: #0dcaf0;
    color: #ffffff;
}

/* Social Icons */
.social-icons {
    display: flex;
    gap: 20px;
    justify-content: center;
}

/* Pulse animation for social icons */
@keyframes socialPulse {
    0% {
        box-shadow: 0 8px 25px rgba(13, 202, 240, 0.3), 
                    0 0 0 1px rgba(255, 255, 255, 0.2);
    }
    50% {
        box-shadow: 0 8px 25px rgba(13, 202, 240, 0.4), 
                    0 0 0 1px rgba(255, 255, 255, 0.3),
                    0 0 20px rgba(13, 202, 240, 0.3);
    }
    100% {
        box-shadow: 0 8px 25px rgba(13, 202, 240, 0.3), 
                    0 0 0 1px rgba(255, 255, 255, 0.2);
    }
}

.social-icon {
    animation: socialPulse 3s ease-in-out infinite;
}

.social-icon:hover {
    animation: none;
}


/* Contact Me Cards - Simplified to match other section cards */
#contact .service {
    background: transparent;
    border: none;
    border-radius: 20px;
    padding: 2rem;
    text-align: center;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

#contact .service::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(13, 202, 240, 0.05), rgba(11, 94, 215, 0.05));
    opacity: 0;
    transition: all 0.4s ease;
    z-index: 1;
}

#contact .service:hover::before {
    opacity: 1;
}

#contact .service .icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    background: linear-gradient(135deg, rgba(13, 202, 240, 0.2), rgba(11, 94, 215, 0.2));
    border: 3px solid rgba(13, 202, 240, 0.3);
    box-shadow: 0 8px 25px rgba(13, 202, 240, 0.2);
    position: relative;
    z-index: 2;
}

#contact .service h5 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: #2c3e50;
    position: relative;
    z-index: 2;
}

#contact .service a {
    color: inherit;
    transition: all 0.3s ease;
    text-decoration: none;
    position: relative;
    z-index: 2;
}

#contact .service a:hover {
    color: var(--bs-info);
    text-decoration: none;
}

#contact .service a:hover p {
    transform: translateY(-3px);
    text-shadow: 0 3px 6px rgba(13, 202, 240, 0.4);
}

#contact .service a p {
    transition: all 0.3s ease;
    margin-bottom: 0;
    font-size: 1.1rem;
    font-weight: 500;
    color: #495057;
}

#contact .service:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 20px 40px rgba(13, 202, 240, 0.2);
}

#contact .service:hover .icon {
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 12px 30px rgba(13, 202, 240, 0.3);
}

/* Dark theme contact cards */
.dark-theme #contact .service {
    background-color: #2a2a2a;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.dark-theme #contact .service::before {
    background: linear-gradient(135deg, rgba(13, 202, 240, 0.1), rgba(11, 94, 215, 0.1));
}

.dark-theme #contact .service h5 {
    color: #ffffff;
}

.dark-theme #contact .service a p {
    color: #e9ecef;
}

.dark-theme #contact .service:hover {
    box-shadow: 0 20px 40px rgba(13, 202, 240, 0.3);
}

/* Contact Me Section - Removed special background to match other sections */

/* Contact Me Title - Removed special styling to match other sections */

/* Contact Me Cards Animation - Simplified to match other sections */

/* Responsive Contact Me Cards */
@media (max-width: 768px) {
    #contact .service {
        padding: 1.5rem;
        margin-bottom: 1.5rem;
    }
    
    #contact .service .icon {
        width: 70px;
        height: 70px;
    }
    
    #contact .intro-section h1 {
        font-size: 2rem;
    }
}

/* Contact Me Badges - Simplified to match other sections */

/* Location Card - Simplified to match other sections */

/* Simple Footer Styling */
footer {
    background: #0dcaf0 !important;
    position: relative;
    border-top: none;
    box-shadow: none;
}

/* Removed decorative elements for simple design */

/* Removed geometric shapes for simple design */

/* Removed wave patterns for simple design */

/* Animations for Footer Art */
@keyframes footerPatternShift {
    0%, 100% {
        transform: translateX(0) translateY(0);
        opacity: 1;
    }
    25% {
        transform: translateX(10px) translateY(-5px);
        opacity: 0.8;
    }
    50% {
        transform: translateX(-5px) translateY(10px);
        opacity: 0.9;
    }
    75% {
        transform: translateX(5px) translateY(-8px);
        opacity: 0.7;
    }
}

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

@keyframes floatDecorative {
    0%, 100% {
        transform: translateY(0) rotate(0deg);
        opacity: 0.6;
    }
    50% {
        transform: translateY(-10px) rotate(180deg);
        opacity: 1;
    }
}

@keyframes decorativeLine {
    0%, 100% {
        transform: scaleX(1);
        opacity: 0.4;
    }
    50% {
        transform: scaleX(1.5);
        opacity: 0.8;
    }
}

/* Beautiful Shape Animations */
@keyframes diamondFloat {
    0%, 100% {
        transform: translateY(0) rotate(0deg) scale(1);
        opacity: 0.6;
    }
    25% {
        transform: translateY(-8px) rotate(90deg) scale(1.1);
        opacity: 0.8;
    }
    50% {
        transform: translateY(-12px) rotate(180deg) scale(1.2);
        opacity: 1;
    }
    75% {
        transform: translateY(-8px) rotate(270deg) scale(1.1);
        opacity: 0.8;
    }
}

@keyframes octagonFloat {
    0%, 100% {
        transform: translateY(0) rotate(0deg) scale(1);
        opacity: 0.7;
    }
    33% {
        transform: translateY(-10px) rotate(120deg) scale(1.15);
        opacity: 0.9;
    }
    66% {
        transform: translateY(-15px) rotate(240deg) scale(1.3);
        opacity: 1;
    }
}

@keyframes triangleFloat {
    0%, 100% {
        transform: translateY(0) rotate(0deg);
        opacity: 0.4;
    }
    50% {
        transform: translateY(-8px) rotate(180deg);
        opacity: 0.8;
    }
}

@keyframes circleFloat {
    0%, 100% {
        transform: translateY(0) scale(1);
        opacity: 0.5;
    }
    50% {
        transform: translateY(-6px) scale(1.2);
        opacity: 0.9;
    }
}

@keyframes waveFlow {
    0%, 100% {
        transform: scaleX(1) translateY(0);
        opacity: 0.6;
    }
    25% {
        transform: scaleX(1.2) translateY(-2px);
        opacity: 0.8;
    }
    50% {
        transform: scaleX(1.5) translateY(-4px);
        opacity: 1;
    }
    75% {
        transform: scaleX(1.2) translateY(-2px);
        opacity: 0.8;
    }
}

.footer-content {
    position: relative;
    z-index: 1;
    padding: 0;
    border: none;
    border-radius: 0;
    margin: 0;
    background: transparent;
}

/* Additional border animations */
@keyframes sophisticatedBorderGlow {
    0%, 100% {
        opacity: 0.3;
        transform: scale(1) rotate(0deg);
        box-shadow: 
            0 0 20px rgba(255, 255, 255, 0.2),
            inset 0 0 20px rgba(255, 255, 255, 0.1);
    }
    25% {
        opacity: 0.5;
        transform: scale(1.01) rotate(1deg);
        box-shadow: 
            0 0 25px rgba(255, 255, 255, 0.3),
            inset 0 0 25px rgba(255, 255, 255, 0.15);
    }
    50% {
        opacity: 0.7;
        transform: scale(1.02) rotate(0deg);
        box-shadow: 
            0 0 30px rgba(255, 255, 255, 0.4),
            inset 0 0 30px rgba(255, 255, 255, 0.2);
    }
    75% {
        opacity: 0.5;
        transform: scale(1.01) rotate(-1deg);
        box-shadow: 
            0 0 25px rgba(255, 255, 255, 0.3),
            inset 0 0 25px rgba(255, 255, 255, 0.15);
    }
}

@keyframes cornerFloat {
    0%, 100% {
        transform: translateY(0) rotate(0deg);
        opacity: 0.4;
    }
    50% {
        transform: translateY(-5px) rotate(45deg);
        opacity: 0.8;
    }
}

.footer-content h5 {
    font-size: 1.5rem;
    letter-spacing: 0.5px;
    text-shadow: none;
    margin-bottom: 0.8rem;
    color: #ffffff !important;
}

.footer-content p {
    font-size: 1rem;
    margin-bottom: 0.3rem;
    text-shadow: none;
}

.footer-content a {
    transition: opacity 0.2s ease;
    position: relative;
}

.footer-content a:hover {
    color: #ffffff !important;
    opacity: 0.8;
}

/* Dark theme footer - simple */
.dark-theme footer {
    background: #1a1a1a !important;
    border-top: none;
    box-shadow: none;
}

.dark-theme .footer-content h5 {
    color: #ffffff !important;
    text-shadow: none;
}

.dark-theme .footer-content p {
    color: #e0e0e0 !important;
    text-shadow: none;
}

.dark-theme .footer-content a {
    color: #0dcaf0 !important;
    text-shadow: none;
}

.dark-theme .footer-content a:hover {
    color: #ffffff !important;
    opacity: 0.8;
}


.social-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    color: white;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, rgba(13, 202, 240, 0.3), rgba(11, 94, 215, 0.3));
    border: 3px solid rgba(13, 202, 240, 0.5);
    box-shadow: 0 8px 25px rgba(13, 202, 240, 0.3), 
                0 0 0 1px rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.social-icon i {
    position: relative;
    z-index: 2;
    transition: all 0.3s ease;
}

.social-icon::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transform: translateX(-100%);
    transition: 0.6s;
}

.social-icon::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.3) 0%, transparent 70%);
    opacity: 0;
    transition: all 0.4s ease;
}

.social-icon:hover i {
    color: white;
    filter: brightness(1.4) drop-shadow(0 4px 8px rgba(0, 0, 0, 0.5));
    text-shadow: 0 0 20px rgba(255, 255, 255, 0.9);
    transform: scale(1.1);
}

.social-icon:hover::before {
    transform: translateX(100%);
}

.social-icon:hover::after {
    opacity: 1;
    animation: gentleGlow 3s infinite;
}

.social-icon:hover {
    transform: translateY(-8px) scale(1.15);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.4),
                0 0 0 1px rgba(255, 255, 255, 0.3);
}

/* Individual Social Icons Colors with Enhanced Glow */
.social-icon.facebook:hover {
    background: linear-gradient(135deg, #1877f2, #42a5f5);
    border-color: #1877f2;
    box-shadow: 0 12px 30px rgba(24, 119, 242, 0.5),
                0 0 0 1px rgba(24, 119, 242, 0.4),
                0 0 30px rgba(24, 119, 242, 0.7);
}

.social-icon.telegram:hover {
    background: linear-gradient(135deg, #0088cc, #29b6f6);
    border-color: #0088cc;
    box-shadow: 0 12px 30px rgba(0, 136, 204, 0.5),
                0 0 0 1px rgba(0, 136, 204, 0.4),
                0 0 30px rgba(0, 136, 204, 0.7);
}

.social-icon.whatsapp:hover {
    background: linear-gradient(135deg, #25d366, #4caf50);
    border-color: #25d366;
    box-shadow: 0 12px 30px rgba(37, 211, 102, 0.5),
                0 0 0 1px rgba(37, 211, 102, 0.4),
                0 0 30px rgba(37, 211, 102, 0.7);
}

.social-icon.youtube:hover {
    background: linear-gradient(135deg, #ff0000, #f44336);
    border-color: #ff0000;
    box-shadow: 0 12px 30px rgba(255, 0, 0, 0.5),
                0 0 0 1px rgba(255, 0, 0, 0.4),
                0 0 30px rgba(255, 0, 0, 0.7);
}

.social-icon.tiktok:hover {
    background: #000000;
    border-color: #ff0050;
    box-shadow: 0 0 15px rgba(255, 0, 80, 0.6),
                0 0 25px rgba(255, 0, 80, 0.4),
                0 0 35px rgba(255, 0, 80, 0.2);
}

/* TikTok Icon Fix */
.social-icon.tiktok i {
    position: relative;
    z-index: 2;
}

.social-icon.tiktok::before {
    background: linear-gradient(45deg, #ff0050, #00f2ea);
}

/* Hover Animation for Icons */
@keyframes iconFloat {
    0% {
        transform: translateY(0) rotate(0deg);
    }
    50% {
        transform: translateY(-5px) rotate(5deg);
    }
    100% {
        transform: translateY(0) rotate(0deg);
    }
}

.social-icon:hover i {
    animation: iconFloat 1s ease-in-out infinite;
}

/* Hero Buttons Enhanced Styles */
#hero .btn {
    position: relative;
    padding: 10px 24px;
    font-weight: 500;
    text-transform: none;
    letter-spacing: 0.3px;
    border-radius: 30px;
    overflow: hidden;
    transition: all 0.3s ease;
    z-index: 1;
    opacity: 0;
    transform: translateX(100px);
    animation: slideInFromRight 0.8s ease-out 0.5s forwards;
    font-size: 0.9rem;
    min-width: 140px;
}

#hero .btn:nth-child(2) {
    transform: translateX(-100px);
    animation: slideInFromLeft 0.8s ease-out 0.7s forwards;
}

@keyframes slideInFromRight {
    0% {
        opacity: 0;
        transform: translateX(100px);
    }
    100% {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInFromLeft {
    0% {
        opacity: 0;
        transform: translateX(-100px);
    }
    100% {
        opacity: 1;
        transform: translateX(0);
    }
}

#hero .btn-outline-info {
    background: transparent;
    border: 1.5px solid var(--bs-info);
    color: var(--bs-info);
    box-shadow: 0 2px 8px rgba(13, 202, 240, 0.2);
}

#hero .btn-info {
    background: var(--bs-info);
    border: 1.5px solid var(--bs-info);
    color: white;
    box-shadow: 0 2px 8px rgba(13, 202, 240, 0.2);
}

#hero .btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transform: translateX(-100%);
    transition: 0.6s;
    z-index: -1;
}

#hero .btn:hover::before {
    transform: translateX(100%);
}

#hero .btn::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.3) 0%, transparent 70%);
    opacity: 0;
    transition: all 0.4s ease;
    z-index: -1;
}

#hero .btn:hover::after {
    opacity: 1;
}

#hero .btn:hover {
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 4px 15px rgba(13, 202, 240, 0.4);
}

#hero .btn-outline-info:hover {
    background: var(--bs-info);
    color: white;
}

#hero .btn-info:hover {
    background: #0b5ed7;
    border-color: #0b5ed7;
}

#hero .btn span {
    position: relative;
    z-index: 2;
    transition: all 0.3s ease;
}

#hero .btn:hover span {
    transform: scale(1.05);
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.8);
}

/* Dark Mode Button Adjustments */
.dark-theme #hero .btn-outline-info {
    color: var(--bs-info);
    border-color: var(--bs-info);
}

.dark-theme #hero .btn-outline-info:hover {
    background: var(--bs-info);
    color: white;
}

.dark-theme #hero .btn-info {
    background: var(--bs-info);
    border-color: var(--bs-info);
    color: white;
}

.dark-theme #hero .btn-info:hover {
    background: #0b5ed7;
    border-color: #0b5ed7;
}

/* Enhanced Progress Bar Styling */
.progress {
    height: 16px;
    background-color: #f0f5fa;
    border-radius: 50rem;
    box-shadow: inset 2px 2px 8px rgba(55, 94, 148, 0.3), 
                inset -3px -2px 5px rgba(255, 255, 255, 0.8);
    overflow: hidden;
    position: relative;
    transition: all 0.3s ease;
}

.progress:hover {
    transform: scale(1.02);
    box-shadow: inset 2px 2px 8px rgba(55, 94, 148, 0.4), 
                inset -3px -2px 5px rgba(255, 255, 255, 0.9);
}

.skill-progress {
    position: relative;
    margin-bottom: 25px;
}

.skill-progress h6 {
    margin-bottom: 10px;
    font-weight: 600;
    color: var(--bs-dark);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.skill-progress h6::after {
    content: attr(data-value) '%';
    font-size: 14px;
    font-weight: 600;
    color: var(--bs-info);
    text-shadow: 0 0 5px rgba(13, 202, 240, 0.3);
    animation: fadeIn 0.5s ease-out;
}

.dark-theme .skill-progress h6 {
    color: var(--bs-light);
}

.progress-bar {
    position: relative;
    border-radius: 50rem;
    transition: width 1.5s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 2px 2px 5px rgba(0, 0, 0, 0.2);
    overflow: hidden;
    animation: progressFill 1.5s ease-out forwards;
}

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

@keyframes progressFill {
    0% {
        width: 0;
        opacity: 0;
    }
    100% {
        opacity: 1;
    }
}

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

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.progress-bar.bg-info {
    background: linear-gradient(45deg, #5b62f4, #378dfc);
}

.progress-bar.bg-success {
    background: linear-gradient(45deg, #43cc29, #28a745);
}

.progress-bar.bg-warning {
    background: linear-gradient(45deg, #ffc107, #ff9800);
}

.progress-bar.bg-danger {
    background: linear-gradient(45deg, #dc3545, #f44336);
}

/* Dark theme progress bar adjustments */
.dark-theme .progress {
    background-color: #2a2a2a;
    box-shadow: inset 2px 2px 8px rgba(0, 0, 0, 0.3), 
                inset -3px -2px 5px rgba(255, 255, 255, 0.1);
}

.dark-theme .progress-bar {
    box-shadow: 2px 2px 5px rgba(0, 0, 0, 0.4);
}

/* Design Print, Web, and Services Sections Enhanced Effects */
#work .border-hover,
#Models .border-hover,
#services .service {
    transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

#work .border-hover::before,
#Models .border-hover::before,
#services .service::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transform: translateX(-100%);
    transition: 0.6s;
}

#work .border-hover:hover::before,
#Models .border-hover:hover::before,
#services .service:hover::before {
    transform: translateX(100%);
}

#work .border-hover img,
#Models .border-hover img {
    transition: transform 0.5s ease;
}

#work .border-hover:hover img,
#Models .border-hover:hover img {
    transform: scale(1.05);
}

#work .border-hover .badge,
#Models .border-hover .badge,
#services .service .icon {
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

#work .border-hover:hover .badge,
#Models .border-hover:hover .badge,
#services .service:hover .icon {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(13, 202, 240, 0.3);
}

#work .border-hover h5,
#Models .border-hover h5,
#services .service h5 {
    transition: all 0.3s ease;
    position: relative;
}

#work .border-hover:hover h5,
#Models .border-hover:hover h5,
#services .service:hover h5 {
    color: var(--bs-info);
    transform: translateX(10px);
}

/* Uniform image sizing inside Design Web cards */
#Models .border-hover img {
    width: 100%;
    height: 220px; /* consistent height */
    object-fit: cover;
}

/* Uniform image sizing inside Design Print cards */
#work .border-hover img {
    width: 100%;
    height: 220px; /* match Design Web */
    object-fit: cover;
}


#work .border-hover:hover,
#Models .border-hover:hover,
#services .service:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

/* Dark Mode Enhancements */
.dark-theme #work .border-hover,
.dark-theme #Models .border-hover,
.dark-theme #services .service {
    background-color: #2a2a2a; /* unified dark card background */
    border: none;                /* remove outline */
    box-shadow: none;            /* remove outer glow */
}

.dark-theme #services .service p {
    color: #cccccc; /* light text for readability in dark mode */
}

/* Dark Mode Enhancements */
.dark-theme #work .border-hover:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4); /* subtle depth without glow */
}

.dark-theme #work .border-hover::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, var(--bs-info), transparent);
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.5s ease;
}

.dark-theme #work .border-hover:hover::after {
    transform: scaleX(1);
    transform-origin: left;
}

/* Ensure all section backgrounds adopt dark color */
.dark-theme .section-padding {
    background-color: #1e1e1e;
}

/* Remove default borders for all elements with .border-hover in dark theme */
.dark-theme .border-hover,
.dark-theme .border-hover:hover {
    border: none !important;
    box-shadow: none !important; /* remove any glow */
}

.dark-theme .border-hover::after {
    display: none !important; /* disable decorative after pseudo-element */
}

/* Icon style adjustment for dark theme to remove white inner border */

/* Live Info styles */
#live-info .service{
    min-height:220px;
    display:flex;
    flex-direction:column;
    justify-content:center;
    align-items:center;
}
#live-info .service h5{
    font-size:1.25rem;
}
#live-info .service p{
    margin-bottom:0;
}

.weather-icon{
    width:40px;
    height:40px;
    object-fit: contain;
}
.flag-img{
    width:40px;
    height:25px;
    object-fit: cover;
    border-radius:3px;
}

.dark-theme #live-info .service {
    background-color: #2a2a2a;
    border: none;
    box-shadow: none;
}
.dark-theme #live-info .service h5 {
    color: var(--bs-info);
}
.dark-theme #live-info .service p {
    color: #cccccc;
}

/* Hover effect for Live Info cards in dark theme */
.dark-theme #live-info .service {
    transition: transform .3s ease, box-shadow .3s ease;
}
.dark-theme #live-info .service:hover {
    transform: translateY(-8px);
    box-shadow: 0 0 15px rgba(23, 162, 184, 0.4); /* glow with bs-info color */
}

/* Icon style adjustment for dark theme to remove white inner border */
.dark-theme .service .icon {
    box-shadow: inset 2px 2px 6px rgba(0,0,0,0.5), inset -2px -2px 4px rgba(255,255,255,0.05); /* subtle depth, no white rim */
    border: none;
}


/* Enhanced Button Styles */
.btn-info {
    background: linear-gradient(45deg, #0dcaf0, #0b5ed7);
    border: none;
    border-radius: 50px;
    padding: 12px 30px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
}

.btn-info::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, transparent, rgba(255,255,255,0.2), transparent);
    transform: translateX(-100%);
    transition: 0.6s;
}

.btn-info:hover::before {
    transform: translateX(100%);
}

.btn-info:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 8px 25px rgba(13, 202, 240, 0.5);
}

/* Hero Image - Static (no animation) */
#hero img {
    transition: transform 0.3s ease;
}

#hero img:hover {
    transform: scale(1.05);
}

/* Hero Section Mobile Responsive Styles */
@media (max-width: 768px) {
    #hero {
        padding-top: 100px !important;
        padding-bottom: 80px !important;
    }
    
    #hero .row {
        flex-direction: column-reverse;
        text-align: center;
    }
    
    #hero .col-lg-5 {
        margin-top: 2rem;
        order: 2;
    }
    
    #hero .col-lg-6 {
        order: 1;
        margin-bottom: 1.5rem;
    }
    
    #hero img {
        max-width: 280px;
        height: auto;
        margin: 0 auto;
        display: block;
    }
    
    #hero h1 {
        font-size: 2rem !important;
        margin-bottom: 1rem;
        line-height: 1.3;
    }
    
    #hero p[style*="font-size: 1.5rem"] {
        font-size: 1.2rem !important;
        margin-bottom: 0.5rem;
    }
    
    #hero .hero-subtitle {
        font-size: 0.9rem !important;
        line-height: 1.4;
        margin-bottom: 1.5rem;
    }
    
    #hero .btn {
        display: inline-block;
        width: auto;
        margin: 0.5rem 0.3rem;
        padding: 8px 18px;
        font-size: 0.85rem;
        min-width: 120px;
    }
    
    #hero .btn:last-child {
        margin-bottom: 0;
    }
}

@media (max-width: 576px) {
    #hero {
        padding-top: 90px !important;
        padding-bottom: 60px !important;
    }
    
    #hero img {
        max-width: 240px;
    }
    
    #hero h1 {
        font-size: 1.8rem !important;
    }
    
    #hero p[style*="font-size: 1.5rem"] {
        font-size: 1.1rem !important;
    }
    
    #hero .hero-subtitle {
        font-size: 0.85rem !important;
        padding: 0 1rem;
    }
    
    #hero .btn {
        padding: 7px 15px;
        font-size: 0.8rem;
        min-width: 100px;
        margin: 0.4rem 0.2rem;
    }
}

/* Pulse Animation for Service Icons */
@keyframes pulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
    100% {
        transform: scale(1);
    }
}

.service .icon:hover {
    animation: pulse 2s infinite;
}

/* Gradient Text Animation */
@keyframes gradientShift {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

.intro-section h1 {
    background: linear-gradient(-45deg, #0dcaf0, #0b5ed7, #6f42c1, #0dcaf0);
    background-size: 400% 400%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: gradientShift 3s ease infinite;
}

.dark-theme .intro-section h1 {
    background: linear-gradient(-45deg, #0dcaf0, #66ccff, #aa66cc, #0dcaf0);
    background-size: 400% 400%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Loading Animation for Live Info */
@keyframes loading {
    0% {
        opacity: 0.5;
    }
    50% {
        opacity: 1;
    }
    100% {
        opacity: 0.5;
    }
}

#visitor-ip:contains("Loading"), #visitor-weather:contains("Loading") {
    animation: loading 2s infinite;
}

/* Smooth Scroll Enhancement - Removed */

/* Custom Scrollbar - Removed */

/* Text colors inside dark cards */

/* Footer mobile layout with artistic elements */
@media (max-width: 767.98px) {
    footer .row.align-items-center{
        flex-direction: column !important;
        text-align: center;
    }
    footer .social-icons{
        margin-top: 1rem;
    }
    footer .social-icons a{
        margin: 0 6px;
    }
    
    /* Adjust beautiful shapes for mobile */
    footer .footer-content::before {
        width: 28px;
        height: 28px;
        top: 12px;
        left: 6%;
    }
    
    footer .footer-content::after {
        width: 24px;
        height: 24px;
        top: 20px;
        right: 8%;
    }
    
    /* Adjust footer content for mobile */
    .footer-content {
        margin: 5px;
        padding: 15px 0;
    }
    
    .footer-content .container::before,
    .footer-content .container::after {
        font-size: 24px;
        top: -12px;
    }
    
    footer .container::before,
    footer .container::after {
        width: 40px;
        top: 40%;
    }
}

@media (max-width: 576px) {
    /* Further adjustments for small mobile */
    footer .footer-content::before {
        width: 24px;
        height: 24px;
        top: 8px;
        left: 4%;
    }
    
    footer .footer-content::after {
        width: 20px;
        height: 20px;
        top: 16px;
        right: 6%;
    }
    
    /* Adjust footer content for small mobile */
    .footer-content {
        margin: 3px;
        padding: 10px 0;
    }
    
    .footer-content .container::before,
    .footer-content .container::after {
        font-size: 20px;
        top: -10px;
    }
    
    footer .container::before,
    footer .container::after {
        width: 30px;
        top: 35%;
    }
    
    /* Reduce animation intensity on small screens */
    footer::before {
        animation-duration: 12s;
    }
    
    footer::after {
        animation-duration: 8s;
    }
}

.dark-theme #work .border-hover h5,
.dark-theme #Models .border-hover h5,
.dark-theme #services .service h5 {
    color: #ffffff;
}

/* ===== SIMPLIFIED SLIDESHOW STYLES ===== */

/* Simplified Slideshow Container */
.slideshow-container {
    position: relative;
    max-width: 100%;
    margin: 0 auto;
    overflow: hidden;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Simplified Individual Slides */
.slide {
    display: none;
    padding: 1.5rem;
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
}

.slide.active {
    display: block;
    opacity: 1;
}

/* Simplified Slide Animation Types - Only Practical Animations */
.slide.slide-fade {
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
}

.slide.slide-fade.active {
    opacity: 1;
}

.slide.slide-slide-left {
    transform: translateX(50px);
    opacity: 0;
    transition: all 0.5s ease-in-out;
}

.slide.slide-slide-left.active {
    transform: translateX(0);
    opacity: 1;
}

.slide.slide-slide-right {
    transform: translateX(-50px);
    opacity: 0;
    transition: all 0.5s ease-in-out;
}

.slide.slide-slide-right.active {
    transform: translateX(0);
    opacity: 1;
}

/* Simple card animations during slide transitions */
.slide.active .border-hover {
    animation: simpleCardFadeIn 0.6s ease-out forwards;
}

@keyframes simpleCardFadeIn {
    0% {
        opacity: 0;
        transform: translateY(20px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Simple staggered animation for cards */
.slide.active .border-hover:nth-child(1) {
    animation-delay: 0.1s;
}

.slide.active .border-hover:nth-child(2) {
    animation-delay: 0.2s;
}

.slide.active .border-hover:nth-child(3) {
    animation-delay: 0.3s;
}

/* Simplified Navigation Arrows */
.slideshow-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: var(--bs-info);
    color: white;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    font-size: 18px;
    cursor: pointer;
    z-index: 10;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.slideshow-nav:hover {
    background: #0b5ed7;
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.slideshow-nav.prev {
    left: 20px;
}

.slideshow-nav.next {
    right: 20px;
}

/* Simplified Dots Indicator */
.slideshow-dots {
    text-align: center;
    padding: 20px 0;
    position: relative;
    z-index: 10;
}

.dot {
    height: 10px;
    width: 10px;
    margin: 0 8px;
    background-color: #ccc;
    border-radius: 50%;
    display: inline-block;
    cursor: pointer;
    transition: all 0.3s ease;
}

.dot:hover {
    background-color: var(--bs-info);
    transform: scale(1.2);
}

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


/* Simplified More Button */
.more-control {
    position: absolute;
    bottom: 20px;
    right: 20px;
    z-index: 10;
}

.more-btn {
    background: var(--bs-info);
    color: white;
    border: none;
    padding: 8px 14px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    display: flex;
    align-items: center;
    gap: 5px;
}

.more-btn:hover {
    background: #0b5ed7;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.more-btn i {
    font-size: 14px;
}

.more-btn span {
    font-size: 12px;
}

/* Dark theme more button */
.dark-theme .more-btn {
    background: rgba(13, 202, 240, 0.7);
    border: 2px solid rgba(13, 202, 240, 0.5);
}

.dark-theme .more-btn:hover {
    background: rgba(11, 94, 215, 0.8);
    box-shadow: 0 6px 20px rgba(13, 202, 240, 0.6);
}

/* Simplified Card Animations in Slideshow */
.slideshow-container .border-hover {
    transition: all 0.3s ease;
    position: relative;
}

.slideshow-container .border-hover:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.slideshow-container .border-hover img {
    transition: all 0.3s ease;
}

.slideshow-container .border-hover:hover img {
    transform: scale(1.05);
}

.slideshow-container .border-hover h5 {
    transition: all 0.3s ease;
}

.slideshow-container .border-hover:hover h5 {
    color: var(--bs-info);
}

.slideshow-container .border-hover .badge {
    transition: all 0.3s ease;
}

.slideshow-container .border-hover:hover .badge {
    transform: translateY(-2px);
}

/* Web Visit Button */
.web-visit-btn {
    margin-top: 15px;
    text-align: center;
}

.web-visit-btn .btn {
    font-size: 0.8rem;
    padding: 6px 12px;
    border-radius: 20px;
    font-weight: 600;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.web-visit-btn .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(13, 202, 240, 0.3);
}

.web-visit-btn .btn i {
    font-size: 0.9rem;
}

/* Dark Theme Slideshow Styles */
.dark-theme .slideshow-container {
    background: rgba(42, 42, 42, 0.8);
    border: 1px solid rgba(13, 202, 240, 0.3);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.dark-theme .slideshow-container .border-hover {
    background-color: #2a2a2a;
    border: 1px solid #3a3a3a;
}

.dark-theme .slideshow-container .border-hover:hover {
    background-color: #3a3a3a;
}

.dark-theme .slideshow-container .border-hover h5 {
    color: #ffffff;
}

.dark-theme .slideshow-container .border-hover:hover h5 {
    color: var(--bs-info);
}

.dark-theme .web-visit-btn .btn {
    color: #0dcaf0;
    border-color: #0dcaf0;
    background-color: rgba(13, 202, 240, 0.1);
    backdrop-filter: blur(10px);
}

.dark-theme .web-visit-btn .btn:hover {
    background-color: #0dcaf0;
    color: #1a1a1a;
    border-color: #0dcaf0;
    box-shadow: 0 6px 20px rgba(13, 202, 240, 0.5);
    transform: translateY(-3px);
}

.dark-theme .web-visit-btn .btn:active {
    transform: translateY(-1px);
    box-shadow: 0 3px 10px rgba(13, 202, 240, 0.4);
}

.dark-theme .web-visit-btn .btn i {
    color: inherit;
    transition: all 0.3s ease;
}

.dark-theme .web-visit-btn .btn:hover i {
    transform: scale(1.1);
}

/* Simplified Mobile Design for Slideshow */
@media (max-width: 768px) {
    .slideshow-container {
        margin: 0 10px;
    }
    
    .slide {
        padding: 1rem;
        transition: opacity 0.4s ease-in-out;
    }
    
    /* Mobile: Show only one card per slide */
    .slide .row .col-md-6.col-lg-4 {
        flex: 0 0 100%;
        max-width: 100%;
        margin-bottom: 0;
    }
    
    /* Hide other cards in mobile */
    .slide .row .col-md-6.col-lg-4:nth-child(n+2) {
        display: none;
    }
    
    .slideshow-nav {
        width: 35px;
        height: 35px;
        font-size: 16px;
    }
    
    .slideshow-nav.prev {
        left: 15px;
    }
    
    .slideshow-nav.next {
        right: 15px;
    }
    
    /* Simplified mobile card adjustments */
    .slideshow-container .border-hover {
        padding: 1.5rem !important;
        margin: 0 auto;
        max-width: 350px;
        transition: all 0.3s ease;
    }
    
    .slideshow-container .border-hover:hover {
        transform: translateY(-3px);
    }
    
    .slideshow-container .border-hover img {
        height: 250px;
        object-fit: cover;
        transition: all 0.3s ease;
    }
    
    .slideshow-container .border-hover:hover img {
        transform: scale(1.03);
    }
    
    .web-visit-btn {
        margin-top: 12px;
    }
    
    .web-visit-btn .btn {
        font-size: 0.75rem;
        padding: 5px 10px;
    }
    
    .web-visit-btn .btn i {
        font-size: 0.8rem;
    }
}

@media (max-width: 576px) {
    .slideshow-container {
        margin: 0 5px;
    }
    
    .slide {
        padding: 0.8rem;
    }
    
    .slideshow-nav {
        width: 30px;
        height: 30px;
        font-size: 14px;
    }
    
    .slideshow-nav.prev {
        left: 10px;
    }
    
    .slideshow-nav.next {
        right: 10px;
    }
    
    /* Simplified small mobile card adjustments */
    .slideshow-container .border-hover {
        padding: 1rem !important;
        max-width: 300px;
    }
    
    .slideshow-container .border-hover img {
        height: 200px;
    }
    
    .slideshow-container .border-hover h5 {
        font-size: 1rem;
    }
    
    .slideshow-container .border-hover .badge {
        font-size: 0.8rem;
        padding: 6px 12px;
    }
    
    .web-visit-btn {
        margin-top: 10px;
    }
    
    .web-visit-btn .btn {
        font-size: 0.7rem;
        padding: 4px 8px;
    }
    
    .web-visit-btn .btn i {
        font-size: 0.75rem;
    }
}

/* Design Web Slideshow Mobile Styles */
@media (max-width: 768px) {
    .web-slideshow .slide .row .col-md-6.col-lg-4 {
        flex: 0 0 100%;
        max-width: 100%;
        margin-bottom: 0;
    }
    
    .web-slideshow .slide .row .col-md-6.col-lg-4:nth-child(n+2) {
        display: none;
    }
    
    .web-slideshow .border-hover {
        padding: 1.5rem !important;
        margin: 0 auto;
        max-width: 350px;
    }
    
    .web-slideshow .border-hover img {
        height: 250px;
        object-fit: cover;
    }
    
    .web-slideshow .web-visit-btn {
        margin-top: 12px;
    }
    
    .web-slideshow .web-visit-btn .btn {
        font-size: 0.75rem;
        padding: 5px 10px;
    }
}

@media (max-width: 576px) {
    .web-slideshow .border-hover {
        padding: 1rem !important;
        max-width: 300px;
    }
    
    .web-slideshow .border-hover img {
        height: 200px;
    }
    
    .web-slideshow .border-hover h5 {
        font-size: 1rem;
    }
    
    .web-slideshow .border-hover .badge {
        font-size: 0.8rem;
        padding: 6px 12px;
    }
    
    .web-slideshow .web-visit-btn {
        margin-top: 10px;
    }
    
    .web-slideshow .web-visit-btn .btn {
        font-size: 0.7rem;
        padding: 4px 8px;
    }
}

/* ===== SETTINGS FLOATING BUTTON ===== */

.settings-container {
    position: fixed;
    bottom: 20px;
    left: 20px;
    z-index: 1000;
}

.settings-btn {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    background: linear-gradient(135deg, #0dcaf0, #0a58ca);
    border: none;
    color: white;
    font-size: 16px;
    cursor: pointer;
    box-shadow: 0 3px 12px rgba(13, 202, 240, 0.3);
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.settings-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(13, 202, 240, 0.4);
    background: linear-gradient(135deg, #0a58ca, #0dcaf0);
}

.settings-btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(13, 202, 240, 0.3);
}

.settings-menu {
    position: absolute;
    bottom: 50px;
    left: 0;
    width: 280px;
    background: white;
    border-radius: 15px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.3s ease;
    border: 1px solid rgba(0, 0, 0, 0.1);
}

.settings-menu.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.settings-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 20px 15px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.settings-header h6 {
    margin: 0;
    font-weight: 600;
    color: #333;
    font-size: 1.1rem;
}

.settings-close {
    background: none;
    border: none;
    color: #666;
    font-size: 18px;
    cursor: pointer;
    padding: 5px;
    border-radius: 5px;
    transition: all 0.2s ease;
}

.settings-close:hover {
    background: rgba(0, 0, 0, 0.1);
    color: #333;
}

.settings-content {
    padding: 15px 20px 20px;
}

.setting-item {
    margin-bottom: 15px;
}

.setting-item:last-child {
    margin-bottom: 0;
}

.setting-label {
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    font-size: 0.95rem;
    color: #555;
    font-weight: 500;
}

.setting-label span {
    flex: 1;
}

.toggle-switch {
    position: relative;
    width: 50px;
    height: 25px;
}

.toggle-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.toggle-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: 0.3s;
    border-radius: 25px;
}

.toggle-slider:before {
    position: absolute;
    content: "";
    height: 19px;
    width: 19px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: 0.3s;
    border-radius: 50%;
}

.toggle-switch input:checked + .toggle-slider {
    background-color: #0dcaf0;
}

.toggle-switch input:checked + .toggle-slider:before {
    transform: translateX(25px);
}

.setting-divider {
    height: 1px;
    background: rgba(0, 0, 0, 0.1);
    margin: 20px 0;
}

.setting-action-btn {
    width: 100%;
    padding: 12px 15px;
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    color: #555;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.setting-action-btn:hover {
    background: linear-gradient(135deg, #e9ecef, #dee2e6);
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.setting-action-btn i {
    font-size: 16px;
}

/* Dark Theme Styles for Settings */
.dark-theme .settings-menu {
    background: #2a2a2a;
    border-color: rgba(255, 255, 255, 0.1);
}

.dark-theme .settings-header {
    border-bottom-color: rgba(255, 255, 255, 0.1);
}

.dark-theme .settings-header h6 {
    color: #fff;
}

.dark-theme .settings-close {
    color: #ccc;
}

.dark-theme .settings-close:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
}

.dark-theme .setting-label {
    color: #ccc;
}

.dark-theme .setting-divider {
    background: rgba(255, 255, 255, 0.1);
}

.dark-theme .setting-action-btn {
    background: linear-gradient(135deg, #3a3a3a, #4a4a4a);
    border-color: rgba(255, 255, 255, 0.1);
    color: #ccc;
}

.dark-theme .setting-action-btn:hover {
    background: linear-gradient(135deg, #4a4a4a, #5a5a5a);
    color: #fff;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .settings-container {
        bottom: 15px;
        left: 15px;
    }
    
    .settings-btn {
        width: 35px;
        height: 35px;
        font-size: 14px;
        border-radius: 6px;
    }
    
    .settings-menu {
        width: 260px;
        bottom: 45px;
    }
    
    .settings-header {
        padding: 15px 15px 10px;
    }
    
    .settings-content {
        padding: 10px 15px 15px;
    }
}

@media (max-width: 576px) {
    .settings-container {
        bottom: 10px;
        left: 10px;
    }
    
    .settings-btn {
        width: 32px;
        height: 32px;
        font-size: 12px;
        border-radius: 5px;
    }
    
    .settings-menu {
        width: 240px;
        bottom: 42px;
        left: -10px;
    }
    
    .settings-header h6 {
        font-size: 1rem;
    }
    
    .setting-label {
        font-size: 0.9rem;
    }
}
/* ===== SIMPLE CLEAN MODAL ===== */
.image-modal {
    display: none;
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    animation: modalFadeIn 0.3s ease;
    overflow-y: auto;
    padding: 40px 20px;
}

.image-modal.show {
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Modal Content - Simple Card */
.modal-content {
    position: relative;
    max-width: 1000px;
    width: 90%;
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    animation: modalSlideIn 0.4s ease;
    transition: transform 0.3s ease;
}

/* Image Container */
.modal-content img {
    width: 100%;
    height: auto;
    max-height: 65vh;
    object-fit: contain;
    display: block;
    padding: 25px;
    background: #f8f9fa;
    border-radius: 20px 20px 0 0;
    cursor: default;
}

/* Modal Caption */
.modal-caption {
    padding: 30px 35px 35px;
    background: white;
    display: flex;
    flex-direction: column;
    position: relative;
    border-radius: 0 0 20px 20px;
}

/* Remove decorative element */

/* Modal Details Container */
.modal-details {
    width: 100%;
    margin-top: 0;
    display: block !important;
    opacity: 1 !important;
    visibility: visible !important;
    position: relative;
    z-index: 1;
}

/* Modal Title */
.modal-caption h5 {
    margin: 0 0 15px 0;
    color: #1a1a1a;
    font-weight: 700;
    font-size: 1.8rem;
    text-align: left;
    line-height: 1.3;
    position: relative;
    z-index: 1;
}

/* Badge - Simple Style */
.modal-caption .badge {
    display: inline-block;
    font-size: 0.75rem;
    padding: 6px 14px;
    margin-bottom: 18px;
    font-weight: 600;
    letter-spacing: 0.5px;
    border-radius: 20px;
    text-transform: uppercase;
    transition: all 0.3s ease;
    position: relative;
    z-index: 1;
}

/* Modal Description */
.modal-description {
    margin: 0 0 20px 0;
    color: #4a5568;
    font-size: 0.95rem;
    line-height: 1.6;
    text-align: left;
    font-weight: 400;
    position: relative;
    z-index: 1;
}

/* Modal Technologies */
.modal-technologies {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: flex-start;
    margin-bottom: 20px;
    position: relative;
    z-index: 1;
}

.modal-tech-tag {
    background: #f0f7ff;
    color: #0b5ed7;
    padding: 6px 14px;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 600;
    border: 1px solid #d6e9f8;
    transition: all 0.3s ease;
    cursor: default;
}

.modal-tech-tag:hover {
    background: #0dcaf0;
    color: white;
    transform: translateY(-2px);
    border-color: #0dcaf0;
}

/* Modal Date */
.modal-date {
    color: #718096;
    font-size: 0.85rem;
    font-style: normal;
    margin-bottom: 20px;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    position: relative;
    z-index: 1;
}

.modal-date::before {
    content: '📅';
    font-size: 1rem;
}

.modal-title-row {
    display: block;
    margin-bottom: 0;
    width: 100%;
    position: relative;
    z-index: 1;
}

.modal-title-row h5 {
    margin: 0 0 20px 0;
}

/* Visit Website Button */
.visit-website-btn {
    display: inline-block;
    margin: 0;
    position: relative;
    z-index: 1;
}

.visit-website-btn a,
.visit-website-btn .visit-link {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: #0dcaf0;
    color: white;
    text-decoration: none;
    padding: 6px 14px;
    border-radius: 18px;
    font-weight: 600;
    font-size: 0.75rem;
    transition: all 0.3s ease;
    border: 2px solid #0dcaf0;
    box-shadow: 0 3px 10px rgba(13, 202, 240, 0.3);
    cursor: pointer;
    position: relative;
    letter-spacing: 0.3px;
}

.visit-website-btn a:hover,
.visit-website-btn .visit-link:hover {
    background: #0b5ed7;
    border-color: #0b5ed7;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(13, 202, 240, 0.5);
    text-decoration: none;
}

.visit-website-btn a:active,
.visit-website-btn .visit-link:active {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(13, 202, 240, 0.4);
}

.visit-website-btn a i,
.visit-website-btn .visit-link i {
    font-size: 0.8rem;
    transition: all 0.3s ease;
}

.visit-website-btn a:hover i,
.visit-website-btn .visit-link:hover i {
    transform: translateX(2px);
}

.visit-website-btn a span,
.visit-website-btn .visit-link span {
    transition: all 0.3s ease;
}

/* Dark theme visit button */
.dark-theme .visit-website-btn a,
.dark-theme .visit-website-btn .visit-link {
    background: #0dcaf0;
    border-color: #0dcaf0;
    box-shadow: 0 3px 10px rgba(13, 202, 240, 0.4);
}

.dark-theme .visit-website-btn a:hover,
.dark-theme .visit-website-btn .visit-link:hover {
    background: #0b5ed7;
    border-color: #0b5ed7;
    box-shadow: 0 5px 15px rgba(13, 202, 240, 0.6);
}

/* Close Button - Simple */
.modal-close {
    position: absolute;
    top: 15px;
    right: 15px;
    color: white;
    font-size: 28px;
    font-weight: 600;
    cursor: pointer;
    z-index: 10001;
    background: #dc3545;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px rgba(220, 53, 69, 0.3);
    border: none;
}

.modal-close:hover {
    background: #c82333;
    transform: scale(1.1) rotate(90deg);
    box-shadow: 0 4px 15px rgba(220, 53, 69, 0.5);
}

/* Modal Animations */
@keyframes modalFadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes modalSlideIn {
    0% {
        opacity: 0;
        transform: translateY(-30px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}


@keyframes modalFadeOut {
    from {
        opacity: 1;
    }
    to {
        opacity: 0;
    }
}

@keyframes modalSlideOut {
    from {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
    to {
        opacity: 0;
        transform: scale(0.85) translateY(-40px);
    }
}


/* Dark Theme Modal - Simple */
.dark-theme .image-modal {
    background: rgba(0, 0, 0, 0.9);
}

.dark-theme .modal-content {
    background: #1f2937;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
}

.dark-theme .modal-content img {
    background: #111827;
}

.dark-theme .modal-caption {
    background: #1f2937;
}

.dark-theme .modal-caption h5 {
    color: #ffffff;
}

.dark-theme .modal-description {
    color: #d1d5db;
}

.dark-theme .modal-tech-tag {
    background: rgba(13, 202, 240, 0.15);
    color: #66ccff;
    border-color: rgba(13, 202, 240, 0.3);
}

.dark-theme .modal-tech-tag:hover {
    background: #0dcaf0;
    color: white;
    border-color: #0dcaf0;
}

.dark-theme .modal-date {
    color: #9ca3af;
}

.dark-theme .modal-close {
    background: #dc3545;
    box-shadow: 0 2px 10px rgba(220, 53, 69, 0.4);
}

.dark-theme .modal-close:hover {
    background: #c82333;
    box-shadow: 0 4px 15px rgba(220, 53, 69, 0.6);
}

/* Responsive Modal */
@media (max-width: 992px) {
    .modal-content {
        max-width: 92%;
        width: 92%;
    }
    
    .modal-content img {
        max-height: 60vh;
        padding: 25px;
    }
    
    .modal-caption {
        padding: 30px 30px 35px;
    }
    
    .modal-caption h5 {
        font-size: 1.7rem;
    }
}

@media (max-width: 768px) {
    .image-modal {
        padding: 20px 10px;
    }
    
    .modal-content {
        width: 98%;
        border-radius: 25px;
    }
    
    .modal-content img {
        min-height: 300px;
        max-height: 350px;
        border-radius: 25px 25px 0 0;
    }
    
    .modal-caption {
        padding: 30px 25px;
    }
    
    .modal-caption h5 {
        font-size: 1.5rem;
        margin-bottom: 15px;
    }
    
    .modal-description {
        font-size: 0.95rem;
        margin-bottom: 20px;
        line-height: 1.6;
    }
    
    .modal-technologies {
        gap: 8px;
        margin-bottom: 20px;
    }
    
    .modal-tech-tag {
        font-size: 0.8rem;
        padding: 8px 16px;
    }
    
    .modal-date {
        font-size: 0.85rem;
        margin-bottom: 20px;
    }
    
    .visit-website-btn a,
    .visit-website-btn .visit-link {
        padding: 6px 14px;
        font-size: 0.75rem;
        gap: 4px;
    }
    
    .visit-website-btn a i,
    .visit-website-btn .visit-link i {
        font-size: 0.8rem;
    }
    
    .modal-close {
        top: 15px;
        right: 15px;
        width: 45px;
        height: 45px;
        font-size: 24px;
        border-radius: 12px;
    }
}

@media (max-width: 576px) {
    .image-modal {
        padding: 15px 5px;
    }
    
    .modal-content {
        width: 99%;
        border-radius: 20px;
    }
    
    .modal-content img {
        min-height: 250px;
        max-height: 300px;
        border-radius: 20px 20px 0 0;
    }
    
    .modal-caption {
        padding: 25px 20px;
    }
    
    .modal-caption h5 {
        font-size: 1.3rem;
        margin-bottom: 12px;
    }
    
    .modal-caption .badge {
        font-size: 0.7rem;
        padding: 5px 12px;
        margin-bottom: 18px;
    }
    
    .modal-description {
        font-size: 0.9rem;
        margin-bottom: 18px;
        line-height: 1.5;
    }
    
    .modal-technologies {
        gap: 6px;
        margin-bottom: 18px;
    }
    
    .modal-tech-tag {
        font-size: 0.75rem;
        padding: 7px 14px;
    }
    
    .modal-date {
        font-size: 0.8rem;
        margin-bottom: 18px;
    }
    
    .modal-date::before {
        font-size: 1rem;
    }
    
    .visit-website-btn a,
    .visit-website-btn .visit-link {
        padding: 5px 12px;
        font-size: 0.7rem;
        gap: 4px;
        border-radius: 15px;
    }
    
    .visit-website-btn a i,
    .visit-website-btn .visit-link i {
        font-size: 0.75rem;
    }
    
    .modal-close {
        top: 12px;
        right: 12px;
        width: 40px;
        height: 40px;
        font-size: 22px;
        border-radius: 10px;
    }
}
    
    .modal-caption h5 {
        font-size: 1.1rem;
        margin-bottom: 12px;
    }
    
    .modal-title-row {
        gap: 10px;
        margin-bottom: 8px;
        display: flex;
        align-items: center;
        justify-content: center;
        width: 100%;
        flex-wrap: wrap;
    }
    
    .modal-title-row h5 {
        text-align: center;
    }
    
    .modal-caption .badge {
        margin: 0;
        display: inline-block;
    }
    
    .modal-caption .badge {
        font-size: 0.8rem;
        padding: 6px 12px;
    }
    
    .modal-description {
        font-size: 0.85rem;
        margin-bottom: 10px;
        line-height: 1.5;
    }
    
    .modal-technologies {
        gap: 4px;
        margin-bottom: 10px;
    }
    
    .modal-tech-tag {
        font-size: 0.7rem;
        padding: 2px 6px;
    }
    
    .modal-date {
        font-size: 0.75rem;
        margin-bottom: 8px;
    }
    
    .visit-website-btn a {
        padding: 4px 8px;
        font-size: 11px;
        border-radius: 12px;
    }
    
    .visit-website-btn a i {
        font-size: 10px;
    }
}

/* Image Click Cursor */
.slideshow-container img,
.web-slideshow img,
#work .border-hover img,
#Models .border-hover img {
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease, filter 0.3s ease;
    will-change: transform;
    /* Mobile touch improvements */
    -webkit-tap-highlight-color: rgba(13, 202, 240, 0.3);
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    -khtml-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    /* Prevent image dragging */
    -webkit-user-drag: none;
    -khtml-user-drag: none;
    -moz-user-drag: none;
    -o-user-drag: none;
    user-drag: none;
    /* Image optimization */
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
}

.slideshow-container img:hover,
.web-slideshow img:hover,
#work .border-hover img:hover,
#Models .border-hover img:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 30px rgba(13, 202, 240, 0.3);
    filter: brightness(1.05);
}

/* No Animations Class */
.no-animations * {
    animation-duration: 0s !important;
    animation-delay: 0s !important;
    transition-duration: 0s !important;
    transition-delay: 0s !important;
}

.no-animations [data-aos] {
    transform: none !important;
    opacity: 1 !important;
}

/* Performance optimization for low-end devices */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01s !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01s !important;
        scroll-behavior: auto !important;
    }
    
    .modal-content {
        animation: none !important;
    }
    
    [data-aos] {
        transform: none !important;
        opacity: 1 !important;
    }
}

/* Mobile touch feedback */
@media (max-width: 768px) {
    .slideshow-container img:active,
    .web-slideshow img:active,
    #work .border-hover img:active,
    #Models .border-hover img:active {
        transform: scale(0.95);
        opacity: 0.8;
        transition: all 0.1s ease;
    }
}

/* ===== GALLERY MODAL STYLES ===== */

/* Gallery Modal Overlay */
.gallery-modal {
    display: none;
    position: fixed;
    z-index: 10001;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    animation: galleryFadeIn 0.4s ease;
    overflow-y: auto;
}

.gallery-modal.show {
    display: block !important;
}

/* Gallery Content */
.gallery-content {
    position: relative;
    max-width: 95%;
    max-height: 95%;
    margin: 2.5% auto;
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 25px 80px rgba(0, 0, 0, 0.6);
    animation: gallerySlideIn 0.4s ease;
    display: flex;
    flex-direction: column;
}

/* Gallery Header */
.gallery-header {
    padding: 25px 30px;
    background: linear-gradient(135deg, #0dcaf0, #0b5ed7);
    color: white;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.gallery-header h3 {
    margin: 0;
    font-size: 1.5rem;
    font-weight: 700;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.gallery-close {
    font-size: 35px;
    font-weight: bold;
    cursor: pointer;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.gallery-close:hover {
    background: rgba(220, 53, 69, 0.8);
    transform: scale(1.1);
    color: white;
}

/* Gallery Grid */
.gallery-grid {
    padding: 30px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
    max-height: 70vh;
    overflow-y: auto;
}

.gallery-item {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    cursor: pointer;
    position: relative;
    border: 2px solid transparent;
    user-select: none;
    -webkit-tap-highlight-color: rgba(13, 202, 240, 0.2);
}

.gallery-item:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 20px 40px rgba(13, 202, 240, 0.2);
    border-color: rgba(13, 202, 240, 0.3);
}

.gallery-item:active {
    transform: translateY(-4px) scale(0.98);
    box-shadow: 0 10px 25px rgba(13, 202, 240, 0.15);
}

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

.gallery-item:hover img {
    transform: scale(1.05);
    filter: brightness(1.1) contrast(1.05);
}

.gallery-item-content {
    padding: 20px;
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
}

.gallery-item h5 {
    margin: 0 0 10px 0;
    color: #2c3e50;
    font-weight: 600;
    font-size: 1.1rem;
}

.gallery-item .badge {
    font-size: 0.85rem;
    padding: 6px 12px;
    margin-bottom: 10px;
}

.gallery-item p {
    margin: 0;
    color: #6c757d;
    font-size: 0.9rem;
    line-height: 1.5;
}

/* Gallery Description */
.gallery-description {
    margin: 0 0 10px 0 !important;
    color: #6c757d;
    font-size: 0.9rem;
    line-height: 1.5;
}

/* Gallery Technologies */
.gallery-technologies {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    justify-content: center;
    margin-bottom: 10px;
}

.gallery-tech-tag {
    background: rgba(13, 202, 240, 0.1);
    color: var(--bs-info);
    padding: 3px 8px;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 500;
    border: 1px solid rgba(13, 202, 240, 0.2);
    transition: all 0.3s ease;
}

.gallery-tech-tag:hover {
    background: rgba(13, 202, 240, 0.2);
    transform: translateY(-1px);
}

/* Gallery Date */
.gallery-date {
    color: #8e9aaf !important;
    font-size: 0.8rem !important;
    font-style: italic;
    margin-bottom: 0 !important;
}

/* Gallery Animations */
@keyframes galleryFadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes gallerySlideIn {
    from {
        opacity: 0;
        transform: scale(0.8) translateY(-50px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

/* Dark Theme Gallery */
.dark-theme .gallery-content {
    background: #2a2a2a;
    border: 1px solid #3a3a3a;
}

.dark-theme .gallery-item {
    background: #3a3a3a;
    border-color: #4a4a4a;
}

.dark-theme .gallery-item:hover {
    border-color: rgba(13, 202, 240, 0.5);
    box-shadow: 0 20px 40px rgba(13, 202, 240, 0.3);
}

.dark-theme .gallery-item-content {
    background: linear-gradient(135deg, #3a3a3a, #2a2a2a);
}

.dark-theme .gallery-item h5 {
    color: #ffffff;
}

.dark-theme .gallery-item p {
    color: #cccccc;
}

.dark-theme .gallery-description {
    color: #cccccc;
}

.dark-theme .gallery-tech-tag {
    background: rgba(13, 202, 240, 0.2);
    color: #66ccff;
    border: 1px solid rgba(13, 202, 240, 0.3);
}

.dark-theme .gallery-tech-tag:hover {
    background: rgba(13, 202, 240, 0.3);
}

.dark-theme .gallery-date {
    color: #999999 !important;
}

/* Responsive Gallery */
@media (max-width: 768px) {
    .gallery-content {
        max-width: 98%;
        margin: 1% auto;
        border-radius: 15px;
    }
    
    .gallery-header {
        padding: 20px 25px;
    }
    
    .gallery-header h3 {
        font-size: 1.3rem;
    }
    
    .gallery-close {
        width: 40px;
        height: 40px;
        font-size: 30px;
    }
    
    .gallery-grid {
        padding: 20px;
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 20px;
    }
    
    .gallery-item img {
        height: 180px;
    }
    
    .gallery-item-content {
        padding: 15px;
    }
    
    .gallery-description {
        font-size: 0.85rem;
        margin-bottom: 8px !important;
    }
    
    .gallery-technologies {
        gap: 4px;
        margin-bottom: 8px;
    }
    
    .gallery-tech-tag {
        font-size: 0.7rem;
        padding: 2px 6px;
    }
    
    .gallery-date {
        font-size: 0.75rem !important;
    }
    
    .more-control {
        bottom: 15px;
        right: 15px;
    }
    
    .more-btn {
        padding: 8px 14px;
        font-size: 13px;
    }
    
    .more-btn span {
        display: none;
    }
    
    .more-btn i {
        font-size: 18px;
    }
}

@media (max-width: 576px) {
    .gallery-grid {
        grid-template-columns: 1fr;
        padding: 15px;
        gap: 15px;
    }
    
    .gallery-item img {
        height: 160px;
    }
    
    .gallery-item-content {
        padding: 12px;
    }
    
    .gallery-item h5 {
        font-size: 1rem;
    }
    
    .gallery-item .badge {
        font-size: 0.8rem;
        padding: 5px 10px;
    }
    
    .gallery-description {
        font-size: 0.8rem;
        margin-bottom: 6px !important;
        line-height: 1.4;
    }
    
    .gallery-technologies {
        gap: 3px;
        margin-bottom: 6px;
    }
    
    .gallery-tech-tag {
        font-size: 0.65rem;
        padding: 2px 5px;
    }
    
    .gallery-date {
        font-size: 0.7rem !important;
    }
}






