/* ===== Custom Styles for Budget Home Improvement ===== */

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

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 10px;
}
::-webkit-scrollbar-track {
    background: #fdf0f7;
}
::-webkit-scrollbar-thumb {
    background: #6B2D5B;
    border-radius: 5px;
}
::-webkit-scrollbar-thumb:hover {
    background: #5a2450;
}

/* ===== Geometric Background Shapes ===== */
.geo-shape {
    position: absolute;
    pointer-events: none;
    opacity: 0.08;
}

.geo-circle-1 {
    width: 400px;
    height: 400px;
    border-radius: 50%;
    background: #F5A623;
    top: 10%;
    right: -100px;
    animation: float 8s ease-in-out infinite;
}

.geo-circle-2 {
    width: 250px;
    height: 250px;
    border-radius: 50%;
    background: #6B2D5B;
    bottom: 15%;
    left: -60px;
    animation: float 10s ease-in-out infinite reverse;
}

.geo-triangle {
    width: 0;
    height: 0;
    border-left: 100px solid transparent;
    border-right: 100px solid transparent;
    border-bottom: 173px solid #F5A623;
    top: 40%;
    left: 5%;
    opacity: 0.06;
    animation: rotate 20s linear infinite;
}

.geo-square {
    width: 120px;
    height: 120px;
    background: #6B2D5B;
    border-radius: 20px;
    top: 60%;
    right: 8%;
    opacity: 0.06;
    transform: rotate(45deg);
    animation: float 12s ease-in-out infinite;
}

.geo-ring {
    width: 180px;
    height: 180px;
    border-radius: 50%;
    border: 20px solid #F5A623;
    bottom: 25%;
    right: 15%;
    opacity: 0.05;
    animation: float 9s ease-in-out infinite reverse;
}

/* Geometric pattern overlay */
.geo-pattern {
    background-image:
        radial-gradient(circle at 20% 30%, rgba(255,255,255,0.15) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(245,166,35,0.2) 0%, transparent 50%),
        linear-gradient(135deg, rgba(255,255,255,0.03) 25%, transparent 25%),
        linear-gradient(225deg, rgba(255,255,255,0.03) 25%, transparent 25%);
    background-size: 100% 100%, 100% 100%, 60px 60px, 60px 60px;
}

.geo-pattern-light {
    background-image:
        radial-gradient(circle at 30% 20%, rgba(255,255,255,0.1) 0%, transparent 40%),
        radial-gradient(circle at 70% 80%, rgba(245,166,35,0.12) 0%, transparent 40%);
    background-size: 100% 100%;
}

/* ===== Animations ===== */
@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-20px); }
}

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

@keyframes rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

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

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.animate-float {
    animation: float 6s ease-in-out infinite;
}

.animate-float-delayed {
    animation: float 8s ease-in-out infinite;
    animation-delay: 2s;
}

.animate-fade-in-up {
    animation: fadeInUp 0.8s ease-out forwards;
    opacity: 0;
}

.delay-100 { animation-delay: 0.1s; }
.delay-200 { animation-delay: 0.2s; }
.delay-300 { animation-delay: 0.3s; }

/* ===== Scroll Reveal ===== */
.scroll-reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

.scroll-reveal.revealed {
    opacity: 1;
    transform: translateY(0);
}

.scroll-reveal.revealed:nth-child(2) { transition-delay: 0.1s; }
.scroll-reveal.revealed:nth-child(3) { transition-delay: 0.2s; }
.scroll-reveal.revealed:nth-child(4) { transition-delay: 0.3s; }
.scroll-reveal.revealed:nth-child(5) { transition-delay: 0.4s; }
.scroll-reveal.revealed:nth-child(6) { transition-delay: 0.5s; }

/* ===== Service Cards ===== */
.service-card {
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #6B2D5B, #F5A623);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s ease;
}

.service-card:hover::before {
    transform: scaleX(1);
}

/* ===== Navbar ===== */
#navbar {
    transition: background-color 0.4s ease, box-shadow 0.4s ease, padding 0.4s ease;
}

#navbar.scrolled {
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    box-shadow: 0 4px 30px rgba(107, 45, 91, 0.1);
}

.nav-link {
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: #F5A623;
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

/* ===== Form Styles ===== */
input:focus,
select:focus,
textarea:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(245, 166, 35, 0.2);
}

/* ===== Responsive adjustments ===== */
@media (max-width: 768px) {
    .geo-circle-1 {
        width: 200px;
        height: 200px;
        right: -50px;
    }
    .geo-circle-2 {
        width: 120px;
        height: 120px;
    }
    .geo-triangle {
        display: none;
    }
    .geo-square {
        width: 60px;
        height: 60px;
    }
    .geo-ring {
        width: 100px;
        height: 100px;
        border-width: 10px;
    }
}

/* ===== Focus visible for accessibility ===== */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
    outline: 3px solid #F5A623;
    outline-offset: 2px;
    border-radius: 4px;
}

/* ===== Selection color ===== */
::selection {
    background: #F5A623;
    color: #3d1836;
}
