/* ===== Custom Styles for Grant Sechen Homes ===== */

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

/* ===== Navbar ===== */
#navbar {
    background: transparent;
    transition: background 0.4s ease, box-shadow 0.4s ease, backdrop-filter 0.4s ease;
}

#navbar.scrolled {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(12px);
    box-shadow: 0 1px 20px rgba(123, 63, 158, 0.08);
}

.nav-link {
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #7B3F9E, #fbbf24);
    border-radius: 1px;
    transition: width 0.3s ease;
}

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

/* ===== Hero Gradient ===== */
.hero-gradient {
    background: linear-gradient(135deg, 
        #7B3F9E 0%, 
        #9333ea 25%, 
        #a855f7 45%, 
        #d97706 70%, 
        #f59e0b 100%
    );
    background-size: 300% 300%;
    animation: gradientShift 12s ease infinite;
}

@keyframes gradientShift {
    0%, 100% { background-position: 0% 50%; }
    25% { background-position: 100% 0%; }
    50% { background-position: 100% 100%; }
    75% { background-position: 0% 100%; }
}

/* ===== Hero Floating Shapes ===== */
.hero-shapes {
    position: absolute;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
}

.shape {
    position: absolute;
    border-radius: 50%;
    opacity: 0.12;
}

.shape-1 {
    width: 400px;
    height: 400px;
    background: #fbbf24;
    top: -100px;
    right: -100px;
    animation: float1 8s ease-in-out infinite;
}

.shape-2 {
    width: 250px;
    height: 250px;
    background: #e9d5ff;
    bottom: 10%;
    left: -50px;
    animation: float2 10s ease-in-out infinite;
}

.shape-3 {
    width: 150px;
    height: 150px;
    background: #fde68a;
    top: 40%;
    right: 10%;
    animation: float3 7s ease-in-out infinite;
}

.shape-4 {
    width: 80px;
    height: 80px;
    background: #ffffff;
    top: 20%;
    left: 15%;
    animation: float1 6s ease-in-out infinite reverse;
}

@keyframes float1 {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(30px, -30px) scale(1.05); }
}

@keyframes float2 {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    50% { transform: translate(-20px, 20px) rotate(10deg); }
}

@keyframes float3 {
    0%, 100% { transform: translate(0, 0); }
    33% { transform: translate(15px, -15px); }
    66% { transform: translate(-10px, 10px); }
}

/* ===== Hero Animations ===== */
.hero-badge {
    animation: fadeInDown 0.8s ease forwards;
}

.hero-headline {
    animation: fadeInUp 0.8s ease 0.2s forwards;
    opacity: 0;
}

.hero-subtext {
    animation: fadeInUp 0.8s ease 0.4s forwards;
    opacity: 0;
}

.hero-buttons {
    animation: fadeInUp 0.8s ease 0.6s forwards;
    opacity: 0;
}

.hero-stats {
    animation: fadeInUp 0.8s ease 0.8s forwards;
    opacity: 0;
}

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

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ===== Scroll Indicator ===== */
.scroll-indicator {
    animation: fadeInUp 1s ease 1.2s forwards;
    opacity: 0;
}

/* ===== CTA Gradient ===== */
.cta-gradient {
    background: linear-gradient(135deg, 
        #4c1d95 0%, 
        #7B3F9E 40%, 
        #b45309 100%
    );
}

/* ===== Service Cards ===== */
.service-card {
    opacity: 1;
}

.service-card:hover {
    border-color: rgba(123, 63, 158, 0.2);
}

/* ===== Reveal Animations (progressive enhancement) ===== */
@media (prefers-reduced-motion: no-preference) {
    .reveal-up,
    .reveal-left,
    .reveal-right {
        opacity: 1;
        transform: none;
    }
}

/* ===== Mobile Menu ===== */
#mobile-menu {
    animation: slideDown 0.3s ease;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.mobile-link {
    display: block;
}

/* ===== Selection Color ===== */
::selection {
    background: rgba(123, 63, 158, 0.2);
    color: #4c1d95;
}

/* ===== Focus Visible ===== */
*:focus-visible {
    outline: 2px solid #7B3F9E;
    outline-offset: 2px;
}

/* ===== Responsive tweaks ===== */
@media (max-width: 640px) {
    .hero-headline {
        font-size: 2.75rem;
    }
}
