@tailwind base;
@tailwind components;
@tailwind utilities;

html {
    scroll-behavior: smooth;
}

body {
    background-color: #f4f4f0;
    color: #333;
}

/* Custom Gradients */
.hero-bg {
    background: linear-gradient(90deg, rgba(0,0,0,0.7) 0%, rgba(0,0,0,0.3) 100%),
                url('../assets/images/hero-bg.png') no-repeat center center;
    background-size: cover;
}

.project-bg-1 {
    background: linear-gradient(135deg, #b55b4b 0%, #924a3d 100%);
}

.project-bg-2 {
    background: linear-gradient(135deg, #8da399 0%, #6e8077 100%);
}

.project-bg-3 {
    background: linear-gradient(135deg, #6e8077 0%, #4a5a52 100%);
}

/* Animations & Interactions */
.project-card:hover .project-img {
    transform: scale(1.05);
}

.project-img {
    transition: transform 0.5s ease;
}

.custom-input {
    border: 1px solid #e5e5e5;
    transition: border-color 0.3s;
}

.custom-input:focus {
    border-color: #8da399;
    outline: none;
}

.profile-photo {
    filter: grayscale(100%);
    transition: filter 0.7s ease;
}

.profile-photo:hover {
    filter: grayscale(0%);
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-up {
    animation: fadeInUp 0.8s ease-out forwards;
}

/* Accents */
.corner-accent {
    position: absolute;
    width: 80px;
    height: 80px;
    pointer-events: none;
}

.corner-accent-tl {
    top: -8px;
    left: -8px;
    border-top: 2px solid #8da399;
    border-left: 2px solid #8da399;
}

.corner-accent-br {
    bottom: -8px;
    right: -8px;
    border-bottom: 2px solid #b55b4b;
    border-right: 2px solid #b55b4b;
}

/* Image Utilities */
.img-placeholder {
    background-size: cover;
    background-position: center;
    position: relative;
    width: 100%;
    height: 100%;
}

.img-placeholder::after {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.1);
    opacity: 0;
    transition: opacity 0.3s;
}

.img-placeholder:hover::after {
    opacity: 1;
}

/* Before/After Slider */
.ba-slider {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.ba-before {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('../assets/images/project1-before.png');
    background-size: cover;
    background-position: center;
}

.ba-after {
    position: absolute;
    top: 0;
    left: 0;
    width: 50%; /* Initial state */
    height: 100%;
    background-image: url('../assets/images/project1-after.png');
    background-size: cover;
    background-position: center;
    border-right: 2px solid white;
}

.ba-handle {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 40px;
    height: 40px;
    background: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: ew-resize;
    box-shadow: 0 0 10px rgba(0,0,0,0.3);
    z-index: 10;
}
