/* style.css */

/* Custom font imports and definitions */
body {
    font-family: 'Quicksand', sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f8f8f8;
}

h1, h2, h3 {
    font-family: 'Saira', sans-serif;
}

.font-handlee {
    font-family: 'Handlee', cursive;
}

/* Smooth scrolling for anchor links */
html {
    scroll-behavior: smooth;
}

/* Keyframes for subtle gradient background animation */
@keyframes gradient-shift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

@keyframes gradient-shift-alt {
    0% { background-position: 100% 50%; }
    50% { background-position: 0% 50%; }
    100% { background-position: 100% 50%; }
}

/* Apply animations to sections */
.animate-gradient-shift {
    background-size: 400% 400%;
    animation: gradient-shift 15s ease infinite;
}

.animate-gradient-shift-alt {
    background-size: 400% 400%;
    animation: gradient-shift-alt 15s ease infinite;
}

/* Fade-in-up animation for hero section text */
@keyframes fade-in-up {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 3;
        transform: translateY(0);
    }
}

.animate-fade-in-up {
    animation: fade-in-up 0.8s ease-out forwards;
}

.animation-delay-200 {
    animation-delay: 0.2s;
}

.animation-delay-400 {
    animation-delay: 0.4s;
}

/* Blur to Clear animation for images */
@keyframes blur-to-clear {
    0% {
        opacity: 0;
        filter: blur(10px);
        transform: scale(0.95);
    }
    100% {
        opacity: 1;
        filter: blur(0);
        transform: scale(1);
    }
}

.animate-blur-to-clear {
    animation: blur-to-clear 0.8s ease-out forwards;
    animation-delay: 0.2s; /* Default delay, can be overridden */
}

/* Specific animation for merged contact section */
@keyframes fade-in-up-delay {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fade-in-up-delay {
    animation: fade-in-up-delay 1s ease-out forwards;
    animation-delay: 0.5s; /* Delay for this specific element */
}


/* Ensure images are responsive */
img {
    max-width: 100%;
    height: auto;
}

/* Key Skills Carousel specific styles */
.key-skills-carousel-container {
    background-color: #fff;
    border-radius: 0.75rem;
    box-shadow: 0 4px 6px -1px rgba(47, 149, 222, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    overflow: hidden;
}

.key-skills-carousel-slides {
    display: flex;
    transition: transform 0.7s ease-in-out;
}

.key-skills-carousel-slide {
    min-width: 100%;
    box-sizing: border-box;
    opacity: 1;
    transition: opacity 0.7s ease-in-out;
}

.key-skills-carousel-dot {
    width: 10px;
    height: 10px;
    background-color: #a8b6fd;
    border-radius: 50%;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.key-skills-carousel-dot.active {
    background-color: #3B82F6; /* blue-600 */
}

/* Carousel Arrows */
.carousel-arrow {
    background-color: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    padding: 0.75rem 1rem;
    cursor: pointer;
    border-radius: 50%;
    font-size: 1.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

.carousel-arrow:hover {
    background-color: rgba(0, 0, 0, 0.7);
    transform: scale(1.1);
}

/* Gradient Button Style */
.gradient-button {
    background-image: linear-gradient(to right, #60A5FA 0%, #8B5CF6 50%, #EC4899 100%);
    background-size: 200% auto;
    color: white;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: all 0.5s ease;
}

.gradient-button:hover {
    background-position: right center; /* change the direction of the change here */
    box-shadow: 0 8px 12px rgba(0, 0, 0, 0.2);
}

/* Modal Styles */
#skill-modal { /* Renamed from project-modal */
    transition: opacity 0.3s ease-in-out;
}

#skill-modal.hidden {
    opacity: 0;
    pointer-events: none; /* Allows clicks through when hidden */
}

/* Header fade out effect */
.header-fade-out {
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.7s;
}

/* Marquee styles */
.marquee-container {
    overflow: hidden;
    width: 100%; /* Adjust as needed */
}

.marquee-content {
    display: flex;
    animation: marquee 20s linear infinite; /* Adjust duration as needed */
}

.skill-card {
    flex: 0 0 auto; /* Important for the marquee to work correctly */
    width: 200px; /* Adjust card width as needed */
    margin-right: 20px; /* Space between cards */
}

@keyframes marquee {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-100%);
    }
}

/* Make it responsive */
@media (max-width: 768px) {
    /* Adjust header navigation for smaller screens */
    header nav {
        flex-direction: column;
        align-items: center;
    }
    header nav ul {
        margin-top: 1rem;
    }
    header nav .flex.items-center {
        flex-direction: column;
        gap: 1rem;
    }
    header nav .flex.items-center .flex.space-x-4 {
        margin-bottom: 1rem;
        
    }

    /* Adjust hero section text size */
    #home h1 {
        font-size: 3rem; /* Smaller on mobile */
    }
    #home p {
        font-size: 1.5rem; /* Smaller on mobile */
    }

    /* Adjust grid columns for skills on smaller screens */
    #skills .grid {
        grid-template-columns: 1fr;
    }

    /* Adjust about section layout for smaller screens */
    #about .flex-col {
        flex-direction: column;
    }
    #about .md\:w-1\/3, #about .md\:w-2\/3 {
        width: 100%;
    }
    #about .text-left {
        text-align: center;
    }

    /* Adjust hero section image alignment for mobile */
    #home .md\:w-1\/2.flex.justify-center.md\:justify-start {
        justify-content: center;
    }

    /* Adjust skill card width in marquee for mobile */
    .skill-card {
        width: 150px; /* Smaller cards on mobile */
    }
}

/* Dark Mode Styles */
body.dark-mode {
    background-color: #121212; /* Dark background */
    color: #fff; /* Light text */
}

body.dark-mode .bg-white {
    background-color: #242424; /* Darker white */
}

body.dark-mode .text-gray-800 {
    color: #f0f0f0; /* Lighter gray text */
}

body.dark-mode .shadow-md {
    box-shadow: 0 4px 6px -1px rgba(255, 255, 255, 0.1), 0 2px 4px -1px rgba(255, 255, 255, 0.06); /* Light shadow */
}

body.dark-mode .bg-blue-50 {
    background-color: #30475E; /* Darker blue */
}

body.dark-mode .border-blue-200 {
    border-color: #476A8E; /* Darker blue border */
}

body.dark-mode .text-blue-700 {
    color: #90AFC5; /* Lighter blue text */
}

body.dark-mode .bg-gray-100 {
    background-color: #333;
}

body.dark-mode .bg-gradient-to-br {
    background-image: linear-gradient(to bottom right, #243B55, #14284A);
}

body.dark-mode .bg-gradient-to-tl {
    background-image: linear-gradient(to top left, #243B55, #14284A);
}

body.dark-mode .text-gray-300 {
    color: #ddd;
}

body.dark-mode .bg-gray-800 {
    background-color: #000;
}

body.dark-mode .bg-blue-600 {
    background-color: #4070F4;
}

body.dark-mode .bg-blue-700 {
    background-color: #5080FF;
}

body.dark-mode .hover\:bg-blue-700:hover {
    background-color: #6090FF;
}
.about-me {
    background-color: #1E1E1E; /* Darker background for about me section */
    color: #0eb190; /* Lighter text color */
}

/* Add more dark mode styles for other elements as needed */


