/* Add to your style.css */
:root {
    transition: background-color 0.3s ease, color 0.3s ease;
}

body {
    transition: background-color 0.3s ease, color 0.3s ease;
}

#theme-toggle-btn {
    transition: all 0.3s ease;
}

/* Custom styles */
.font-inter {
    font-family: 'Inter', sans-serif;
}

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

/* Animation classes */
.fade-in {
    animation: fadeIn 0.5s ease-in forwards;
}

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

/* Project card hover effects */
article[onclick] {
    position: relative;
}

article[onclick]::after {
    content: '👆 Click to view project';
    position: absolute;
    bottom: 1rem;
    right: 1rem;
    background: rgba(249, 115, 22, 0.9);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    font-size: 0.875rem;
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.3s ease;
}

article[onclick]:hover::after {
    opacity: 1;
    transform: translateY(0);
}

/* Skill badges animations */
.skill-badge {
    animation: fadeInUp 0.6s ease-out forwards;
    opacity: 0;
}

.skill-badge:nth-child(1) { animation-delay: 0.1s; }
.skill-badge:nth-child(2) { animation-delay: 0.2s; }
.skill-badge:nth-child(3) { animation-delay: 0.3s; }
.skill-badge:nth-child(4) { animation-delay: 0.4s; }
.skill-badge:nth-child(5) { animation-delay: 0.5s; }
.skill-badge:nth-child(6) { animation-delay: 0.6s; }
.skill-badge:nth-child(7) { animation-delay: 0.7s; }
.skill-badge:nth-child(8) { animation-delay: 0.8s; }

.skill-badge img {
    transition: transform 0.3s ease;
}

.skill-badge:hover img {
    transform: translateY(-5px);
}

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

/* Progress bar animations */
.progress-bar {
    animation: growWidth 1.5s ease-out forwards;
    transform-origin: left;
    opacity: 0;
}

@keyframes growWidth {
    from {
        width: 0;
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.skill-bar {
    opacity: 0;
    animation: fadeInUp 0.6s ease-out forwards;
}

/* Stagger skill bar animations */
.skill-bar:nth-child(1) { animation-delay: 0.2s; }
.skill-bar:nth-child(2) { animation-delay: 0.4s; }
.skill-bar:nth-child(3) { animation-delay: 0.6s; }

/* Back to Top Button */
.back-to-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    background: rgba(249, 115, 22, 0.9);
    color: white;
    width: 3rem;
    height: 3rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    backdrop-filter: blur(4px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    z-index: 50;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    transform: translateY(-5px);
    background: rgba(249, 115, 22, 1);
}

/* Profile image glow and animation */
.glow-effect {
    box-shadow: 0 0 25px rgba(249, 115, 22, 0.4);
    animation: pulse 3s infinite;
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 25px rgba(249, 115, 22, 0.4);
        transform: scale(1);
    }
    50% {
        box-shadow: 0 0 35px rgba(249, 115, 22, 0.6);
        transform: scale(1.02);
    }
    100% {
        box-shadow: 0 0 25px rgba(249, 115, 22, 0.4);
        transform: scale(1);
    }
}

.animate-profile {
    animation: float 6s ease-in-out infinite;
    transform-origin: center;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0) rotate(0);
    }
    50% {
        transform: translateY(-10px) rotate(2deg);
    }
}

/* Section animations */
section {
    animation: fadeInUp 0.8s ease-out forwards;
    opacity: 0;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Smooth transitions */
.bg-white\/80, .dark\:bg-gray-800\/80 {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.bg-white\/80:hover, .dark\:bg-gray-800\/80:hover {
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

/* Dark mode adjustments */
.dark .glow-effect {
    box-shadow: 0 0 25px rgba(249, 115, 22, 0.25);
}

.dark .glow-effect:hover {
    box-shadow: 0 0 35px rgba(249, 115, 22, 0.4);
}

/* Scrollbar styling */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: rgba(249, 115, 22, 0.1);
}

::-webkit-scrollbar-thumb {
    background: rgba(249, 115, 22, 0.5);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(249, 115, 22, 0.7);
}

/* Typing effect */
.typing::after {
    content: '|';
    animation: blink 1s infinite;
}

@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0; }
}

/* Update theme colors */
:root {
    --primary-color: #f97316;
    --primary-dark: #ea580c;
    --bg-light: #fff7ed;
    --bg-dark: #7c2d12;
}

/* Card hover effects */
.project-card {
    transition: all 0.3s ease;
}

.project-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}