.gradient-bg {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.light-gradient-bg {
    background: linear-gradient(135deg, #e0f2fe 0%, #f0f9ff 100%);
}

.hero-gradient-bg {
    background: linear-gradient(135deg, #dbeafe 0%, #e0e7ff 50%, #ede9fe 100%);
    position: relative;
    overflow: hidden;
}

.dark .hero-gradient-bg {
    background: linear-gradient(135deg, #1e3a8a 0%, #312e81 50%, #4c1d95 100%);
}

.hero-gradient-bg::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 50% 50%, rgba(59, 130, 246, 0.1) 0%, rgba(124, 58, 237, 0.1) 100%);
    z-index: 0;
}

.dark .hero-gradient-bg::before {
    background: radial-gradient(circle at 50% 50%, rgba(59, 130, 246, 0.15) 0%, rgba(124, 58, 237, 0.15) 100%);
}

.hero-gradient-bg>* {
    position: relative;
    z-index: 1;
}

.glass-effect {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.nav-blur {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
}

.dark .nav-blur {
    background: rgba(17, 24, 39, 0.8);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.nav-scrolled {
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.dark .nav-scrolled {
    background: rgba(17, 24, 39, 0.95);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.nav-link {
    position: relative;
    font-weight: 500;
}

.nav-link::before {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 50%;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #3b82f6, #8b5cf6);
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

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

.skill-tag {
    background: linear-gradient(135deg, #4f46e5, #7c3aed);
    transition: all 0.3s ease;
}

.skill-tag:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(79, 70, 229, 0.3);
}

.project-card {
    transition: all 0.4s ease;
    background: linear-gradient(145deg, #ffffff, #f3f4f6);
    border: 1px solid rgba(229, 231, 235, 0.3);
}

.dark .project-card {
    background: linear-gradient(145deg, #1e293b, #334155);
    border: 1px solid rgba(75, 85, 99, 0.3);
}

.project-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    background: linear-gradient(145deg, #f8fafc, #f1f5f9);
}

.dark .project-card:hover {
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    background: linear-gradient(145deg, #1e293b, #0f172a);
}

.animate-float {
    animation: float 6s ease-in-out infinite;
}

@keyframes float {

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

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

.typing::after {
    content: '|';
    animation: blink 1s infinite;
}

@keyframes blink {

    0%,
    50% {
        opacity: 1;
    }

    51%,
    100% {
        opacity: 0;
    }
}

.scroll-smooth {
    scroll-behavior: smooth;
}

.hero-pattern {
    background-image: radial-gradient(circle at 25px 25px, rgba(0, 0, 0, 0.1) 2px, transparent 0);
    background-size: 50px 50px;
}

.dark .hero-pattern {
    background-image: radial-gradient(circle at 25px 25px, rgba(255, 255, 255, 0.1) 2px, transparent 0);
}

.theme-switch {
    position: relative;
    display: inline-block;
    width: 60px;
    height: 34px;
}

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

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: .4s;
    border-radius: 34px;
    display: flex;
    align-items: center;
    padding: 4px;
}

.slider:before {
    position: absolute;
    content: "";
    height: 26px;
    width: 26px;
    left: 4px;
    bottom: 4px;
    background-color: white;
    transition: .4s;
    border-radius: 50%;
    z-index: 2;
}

.slider .icon {
    position: absolute;
    transition: .4s;
    color: white;
    font-size: 14px;
}

.slider .sun {
    left: 8px;
    opacity: 0;
}

.slider .moon {
    right: 8px;
    opacity: 1;
}

input:checked+.slider {
    background-color: #2196F3;
}

input:checked+.slider:before {
    transform: translateX(26px);
}

input:checked+.slider .sun {
    opacity: 1;
}

input:checked+.slider .moon {
    opacity: 0;
}

/* Floating WhatsApp Button Styles */
.whatsapp-float {
    position: fixed;
    bottom: 25px;
    right: 25px;
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #25D366, #128C7E);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 25px rgba(37, 211, 102, 0.3);
    z-index: 1000;
    transition: all 0.3s ease;
    animation: whatsapp-pulse 2s infinite;
    cursor: pointer;
}

.whatsapp-float:hover {
    transform: scale(1.1);
    box-shadow: 0 12px 35px rgba(37, 211, 102, 0.4);
}

.whatsapp-float i {
    color: white;
    font-size: 28px;
    transition: transform 0.3s ease;
}

.whatsapp-float:hover i {
    transform: rotate(15deg) scale(1.1);
}

/* Pulse animation */
@keyframes whatsapp-pulse {
    0% {
        box-shadow: 0 8px 25px rgba(37, 211, 102, 0.3), 0 0 0 0 rgba(37, 211, 102, 0.7);
    }

    70% {
        box-shadow: 0 8px 25px rgba(37, 211, 102, 0.3), 0 0 0 15px rgba(37, 211, 102, 0);
    }

    100% {
        box-shadow: 0 8px 25px rgba(37, 211, 102, 0.3), 0 0 0 0 rgba(37, 211, 102, 0);
    }
}

/* Tooltip */
.whatsapp-tooltip {
    position: absolute;
    right: 70px;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 14px;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    pointer-events: none;
}

.whatsapp-tooltip::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 100%;
    margin-top: -5px;
    border-width: 5px;
    border-style: solid;
    border-color: transparent transparent transparent rgba(0, 0, 0, 0.8);
}

.whatsapp-float:hover .whatsapp-tooltip {
    opacity: 1;
    visibility: visible;
    right: 75px;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .whatsapp-float {
        width: 55px;
        height: 55px;
        bottom: 20px;
        right: 20px;
    }

    .whatsapp-float i {
        font-size: 24px;
    }

    .whatsapp-tooltip {
        display: none;
    }
}
