@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;700;900&display=swap');

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
}

/* Custom transitions for theme switching */
.transition-colors {
    transition-property: background-color, border-color, color, fill, stroke;
    transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
    transition-duration: 400ms;
}

/* Logo animation */
@keyframes logo-float {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-8px) rotate(5deg); }
}

/* Hero image adjustment */
#home img {
    object-position: 50% 50%;
    filter: brightness(0.6);
}

.dark #home img {
    filter: brightness(0.4);
}

/* Parallax-like effect */
#home {
    background-attachment: fixed;
}

/* Refined hero text shadows */
#home h1 {
    text-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

#home p {
    text-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

#logo-container svg {
    animation: logo-float 4s ease-in-out infinite;
    filter: drop-shadow(0 0 8px rgba(59, 130, 246, 0.4));
}

/* Animations */
@keyframes fade-in {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.animate-fade-in {
    animation: fade-in 1.2s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
}

/* Project card image zoom */
.group:hover img {
    transform: scale(1.08);
}

img {
    transition: transform 0.8s cubic-bezier(0.4, 0, 0.2, 1), filter 0.5s ease;
}

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

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

::-webkit-scrollbar-thumb {
    background: #3b82f6;
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: #2563eb;
}

/* Section entrance animation classes */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 1s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* Project images adjustment */
.group img {
    object-position: center;
}

/* Glassmorphism helpers */
.glass {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.dark .glass {
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.05);
}
