/* ===== Custom Styles for Picture Perfect Remodelers ===== */

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

/* ===== Navbar ===== */
#navbar {
    background: transparent;
}

#navbar.scrolled {
    background: rgba(80, 7, 36, 0.95);
    backdrop-filter: blur(20px);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.2);
}

.nav-link {
    position: relative;
}

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

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

/* ===== Geometric Shapes ===== */
.geo-shape {
    position: absolute;
    opacity: 0.15;
    animation: float 6s ease-in-out infinite;
}

.circle-1 {
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, #fbbf24, transparent);
    border-radius: 50%;
    top: 10%;
    right: -5%;
    animation-delay: 0s;
}

.circle-2 {
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, #f472b6, transparent);
    border-radius: 50%;
    bottom: 20%;
    left: 5%;
    animation-delay: 2s;
}

.triangle-1 {
    width: 0;
    height: 0;
    border-left: 80px solid transparent;
    border-right: 80px solid transparent;
    border-bottom: 140px solid #fbbf24;
    top: 30%;
    left: 10%;
    transform: rotate(15deg);
    animation-delay: 1s;
}

.square-1 {
    width: 120px;
    height: 120px;
    background: #f472b6;
    top: 60%;
    right: 15%;
    transform: rotate(45deg);
    animation-delay: 3s;
}

.circle-3 {
    width: 150px;
    height: 150px;
    background: radial-gradient(circle, #fcd34d, transparent);
    border-radius: 50%;
    bottom: 10%;
    right: 30%;
    animation-delay: 4s;
}

.triangle-2 {
    width: 0;
    height: 0;
    border-left: 60px solid transparent;
    border-right: 60px solid transparent;
    border-bottom: 100px solid #ec4899;
    top: 15%;
    left: 30%;
    transform: rotate(-20deg);
    animation-delay: 2.5s;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0) rotate(0deg);
    }
    33% {
        transform: translateY(-20px) rotate(5deg);
    }
    66% {
        transform: translateY(10px) rotate(-3deg);
    }
}

/* ===== CTA Button ===== */
.cta-button {
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.cta-button::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.6s ease, height 0.6s ease;
}

.cta-button:hover::before {
    width: 300px;
    height: 300px;
}

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

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, #db2777, #f59e0b);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.5s ease;
}

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

/* ===== Portfolio Items ===== */
.portfolio-item {
    position: relative;
}

.portfolio-item::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 24px;
    border: 2px solid transparent;
    transition: border-color 0.3s ease;
    pointer-events: none;
}

.portfolio-item:hover::after {
    border-color: rgba(251, 191, 36, 0.5);
}

/* ===== Testimonial Cards ===== */
.testimonial-card {
    transition: all 0.5s ease;
}

.testimonial-card:hover {
    transform: translateY(-8px);
    border-color: rgba(251, 191, 36, 0.3);
}

/* ===== Mobile Menu ===== */
.mobile-link {
    position: relative;
}

.mobile-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background: #fbbf24;
    transition: width 0.3s ease;
}

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

/* ===== Form Styles ===== */
input:focus,
select:focus,
textarea:focus {
    box-shadow: 0 0 0 4px rgba(219, 39, 119, 0.1);
}

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

.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.animate-on-scroll.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ===== Responsive ===== */
@media (max-width: 768px) {
    .geo-shape {
        opacity: 0.1;
    }
    
    .circle-1 {
        width: 150px;
        height: 150px;
    }
    
    .circle-2 {
        width: 100px;
        height: 100px;
    }
    
    .triangle-1, .square-1, .circle-3, .triangle-2 {
        display: none;
    }
}

/* ===== Selection ===== */
::selection {
    background: #db2777;
    color: white;
}

/* ===== Scrollbar ===== */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: #fdf4f8;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, #db2777, #f59e0b);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, #be185d, #d97706);
}
