/* Modern Minimalistic Portfolio Styles */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    overflow-x: hidden;
}

/* Smooth Scrolling */
html {
    scroll-behavior: smooth;
}

/* Custom Scrollbar - Modern */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background: #6366f1;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #4f46e5;
}

/* Navigation Link Styles */
.nav-link {
    position: relative;
    font-weight: 500;
}

/* Glass morphism effect for navbar */
header {
    backdrop-filter: blur(16px) saturate(180%);
    -webkit-backdrop-filter: blur(16px) saturate(180%);
    background: rgba(255, 255, 255, 0.7);
    border: 1px solid rgba(209, 213, 219, 0.2);
}

.dark header {
    background: rgba(10, 10, 10, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Add subtle glow effect on scroll */
header.scrolled {
    box-shadow: 0 8px 32px 0 rgba(99, 102, 241, 0.1);
}

.dark header.scrolled {
    box-shadow: 0 8px 32px 0 rgba(99, 102, 241, 0.15);
}

/* Skill Badge - Modern Gradient */
.skill-badge {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.1), rgba(139, 92, 246, 0.1));
    color: #6366f1;
    border: 1px solid rgba(99, 102, 241, 0.2);
    border-radius: 0.5rem;
    font-size: 0.875rem;
    font-weight: 600;
    transition: all 0.3s ease;
}

.dark .skill-badge {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.15), rgba(139, 92, 246, 0.15));
    border-color: rgba(99, 102, 241, 0.3);
    color: #818cf8;
}

.skill-badge:hover {
    transform: translateY(-2px);
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.2), rgba(139, 92, 246, 0.2));
    border-color: #6366f1;
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.2);
}

/* Tech Tag - Minimal */
.tech-tag {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    background: rgba(99, 102, 241, 0.08);
    color: #6366f1;
    border: 1px solid rgba(99, 102, 241, 0.15);
    border-radius: 0.375rem;
    font-size: 0.75rem;
    font-weight: 600;
}

.dark .tech-tag {
    background: rgba(99, 102, 241, 0.12);
    border-color: rgba(99, 102, 241, 0.25);
    color: #818cf8;
}

/* Project Card - Clean Border Hover */
.project-card {
    position: relative;
    transition: all 0.3s ease;
}

.project-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.08);
}

.dark .project-card:hover {
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.3);
}

/* Scroll to Top Button Visibility */
#scroll-top.visible {
    opacity: 1;
    visibility: visible;
}

/* Form Focus Effects - Modern Ring */
input:focus,
textarea:focus {
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

/* Selection Color */
::selection {
    background: #6366f1;
    color: white;
}

::-moz-selection {
    background: #6366f1;
    color: white;
}

/* Smooth Transitions for Theme Switch */
* {
    transition-property: background-color, color, border-color;
    transition-duration: 0.2s;
    transition-timing-function: ease;
}

/* ========================================
   CAROUSEL STYLES - Modern
   ======================================== */

.carousel-container {
    position: relative;
    width: 100%;
    height: 100%;
}

.carousel-image {
    transition: opacity 0.5s ease-in-out;
}

.carousel-btn {
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-center;
}

.carousel-btn:hover {
    transform: translateY(-50%) scale(1.05);
}

.carousel-btn i {
    font-size: 0.875rem;
}

.carousel-dots {
    z-index: 10;
}

.dot {
    transition: all 0.3s ease;
}

.dot.active {
    width: 0.75rem;
    background-color: white !important;
}

.dot:hover {
    transform: scale(1.2);
}

.carousel-image.hidden {
    display: none;
}

.carousel-image {
    object-fit: cover;
    object-position: top;
}

/* Skill Category - Subtle Hover */
.skill-category {
    transition: all 0.3s ease;
}

.skill-category:hover {
    transform: translateY(-2px);
}

/* Mobile Menu Animation */
#mobile-menu {
    animation: slideDown 0.3s ease;
}

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

/* Responsive Adjustments */
@media (max-width: 768px) {
    .skill-badge {
        font-size: 0.75rem;
        padding: 0.375rem 0.75rem;
    }
}

/* Accessibility Focus Styles */
*:focus-visible {
    outline: 2px solid #6366f1;
    outline-offset: 2px;
}

/* Remove default transitions from specific elements */
button,
a,
input,
textarea {
    transition-property: background-color, color, border-color, transform, box-shadow, opacity;
}

/* Image fade-in on load */
img {
    opacity: 0;
    animation: fadeIn 0.5s ease forwards;
}

@keyframes fadeIn {
    to {
        opacity: 1;
    }
}

/* Gradient Text Animation for Hero Name */
.animate-gradient {
    background-size: 200% auto;
    animation: gradientShift 3s ease infinite;
}

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

/* Floating animation for decorative icons */
@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-20px);
    }
}

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

/* Arrow Animation for CTA Buttons */
@keyframes arrowSlide {
    0%, 100% {
        transform: translateX(0);
    }
    50% {
        transform: translateX(4px);
    }
}

.group:hover .group-hover\:animate-\[arrowSlide_1s_ease-in-out_infinite\] {
    animation: arrowSlide 1s ease-in-out infinite;
}
