body {
    font-family: 'Inter', sans-serif;
    scroll-behavior: smooth;
    /* Background Image Styles */
    background-image: url('./images/background.jpg'); /* Placeholder image */
    background-size: cover; /* Cover the entire viewport */
    background-position: center; /* Center the image */
    background-attachment: fixed; /* Keep the image fixed when scrolling */
}

/* Overlay for readability over background image */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.3); /* Semi-transparent white overlay */
    z-index: -1; /* Ensure it's behind content but above the background image */
}

/* Custom scrollbar for a cleaner look */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}
::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 10px;
}
::-webkit-scrollbar-thumb:hover {
    background: #555;
}

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

/* Basic animation for sections on scroll (optional, can be expanded with JS) */
.section-fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}
.section-fade-in.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* Main Slider specific styles */
.slideshow-container {
    max-width: 1000px;
    position: relative;
    margin: auto;
    overflow: hidden; /* Hide overflowing parts of images */
    border-radius: 0.75rem; /* rounded-lg */
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05); /* shadow-xl */
}

.mySlides {
    display: none;
    position: relative;
    width: 100%;
    height: 400px; /* Fixed height for consistency */
    background-size: cover;
    background-position: center;
    animation: fadeEffect 1.5s; /* Apply fade effect */
}

.mySlides img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Ensures image covers the area without distortion */
}

.prev, .next {
    cursor: pointer;
    position: absolute;
    top: 50%;
    width: auto;
    padding: 16px;
    margin-top: -22px;
    color: white;
    font-weight: bold;
    font-size: 18px;
    transition: 0.6s ease;
    border-radius: 0 3px 3px 0;
    user-select: none;
    background-color: rgba(0,0,0,0.6);
}

.next {
    right: 0;
    border-radius: 3px 0 0 3px;
}

.prev:hover, .next:hover {
    background-color: rgba(0,0,0,0.8);
}

.text-caption {
    color: #f2f2f2;
    font-size: 15px;
    padding: 8px 12px;
    position: absolute;
    bottom: 8px;
    width: 100%;
    text-align: center;
    background-color: rgba(0,0,0,0.5);
    border-radius: 0 0 0.75rem 0.75rem; /* Matches container border-radius */
}

.dot {
    cursor: pointer;
    height: 15px;
    width: 15px;
    margin: 0 2px;
    background-color: #bbb;
    border-radius: 50%;
    display: inline-block;
    transition: background-color 0.6s ease;
}

.active, .dot:hover {
    background-color: #717171;
}

/* Project Slider specific styles */
.project-slider-container {
    position: relative;
    width: 100%;
    height: 200px; /* Fixed height for consistency in project cards */
    overflow: hidden;
    border-radius: 0.5rem 0.5rem 0 0; /* Rounded top corners to fit card */
    margin-bottom: 1rem; /* Space between slider and project details */
}

.project-slide {
    display: none;
    width: 100%;
    height: 100%;
    animation: fadeEffect 1.5s; /* Apply fade effect */
}

.project-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Ensures image covers the area without distortion */
}

.project-prev, .project-next {
    cursor: pointer;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: auto;
    padding: 8px 12px; /* Smaller padding for project sliders */
    color: white;
    font-weight: bold;
    font-size: 14px; /* Smaller font size */
    transition: 0.6s ease;
    background-color: rgba(0,0,0,0.5);
    border-radius: 0.25rem; /* rounded-md */
    user-select: none;
    z-index: 10;
}

.project-next {
    right: 0.5rem; /* Small margin from right */
}

.project-prev {
    left: 0.5rem; /* Small margin from left */
}

.project-prev:hover, .project-next:hover {
    background-color: rgba(0,0,0,0.8);
}

.project-dots {
    text-align: center;
    position: absolute;
    bottom: 0.5rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
}

.project-dot {
    cursor: pointer;
    height: 10px; /* Smaller dots */
    width: 10px;
    margin: 0 3px;
    background-color: rgba(255,255,255,0.7); /* Lighter dots */
    border-radius: 50%;
    display: inline-block;
    transition: background-color 0.6s ease;
}

.project-dot.active, .project-dot:hover {
    background-color: #fff; /* White active/hover dot */
}

/* Fading animation */
@keyframes fadeEffect {
    from {opacity: 0.4}
    to {opacity: 1}
}
