/* Custom Styles for Cascade River Web Design */

:root {
    --primary-blue: #00509d;
    --secondary-blue: #002855;
    --light-blue: #f0f8ff;
    --dark-grey: #333333;
    --white: #ffffff;
    --accent-blue: #007bff;
}

body {
    font-family: 'Raleway', sans-serif;
    color: var(--dark-grey);
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3, h4, .navbar-brand {
    font-family: 'Montserrat', sans-serif;
}

/* Navbar */
.transition-nav {
    transition: all 0.4s ease;
    padding: 20px 0;
}

.navbar-scrolled {
    background-color: var(--secondary-blue) !important;
    padding: 10px 0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.navbar-brand {
    font-size: 1.5rem;
    letter-spacing: 1px;
}

.nav-link {
    font-weight: 500;
    text-transform: uppercase;
    font-size: 0.9rem;
    margin: 0 10px;
    letter-spacing: 1px;
}

/* Hero Section */
.hero-section {
    height: 100vh;
    background: linear-gradient(rgba(0, 40, 85, 0.7), rgba(0, 80, 157, 0.5)), 
                url('https://images.unsplash.com/photo-1464822759023-fed622ff2c3b?auto=format&fit=crop&q=80&w=1920') no-repeat center center/cover;
    position: relative;
    clip-path: polygon(0 0, 100% 0, 100% 90%, 50% 100%, 0 90%);
}

.hero-section::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100px;
    background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1440 320"><path fill="%23f8f9fa" fill-opacity="1" d="M0,224L48,213.3C96,203,192,181,288,181.3C384,181,480,203,576,213.3C672,224,768,224,864,197.3C960,171,1056,117,1152,112C1248,107,1344,149,1392,170.7L1440,192L1440,320L1392,320C1344,320,1248,320,1152,320C1056,320,960,320,864,320C768,320,672,320,576,320C480,320,384,320,288,320C192,320,96,320,48,320L0,320Z"></path></svg>');
    background-size: cover;
    z-index: 1;
}

.max-width-700 {
    max-width: 700px;
}

/* Section Title Styling */
.section-title {
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    position: relative;
    display: inline-block;
}

.section-underline {
    width: 80px;
    height: 4px;
    background-color: var(--primary-blue);
    margin: 15px auto;
}

/* Service Cards */
.service-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.1) !important;
}

/* Portfolio Overlay */
.portfolio-item {
    cursor: pointer;
}

.portfolio-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 80, 157, 0.9);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.portfolio-item:hover .portfolio-overlay {
    opacity: 1;
}

/* Lighthouse Scores */
.lighthouse-score-container {
    width: 100px;
    height: 100px;
    margin: 0 auto;
}

.lighthouse-circle {
    width: 100%;
    height: 100%;
}

.circle-bg {
    fill: none;
    stroke: #eee;
    stroke-width: 2.8;
}

.circle {
    fill: none;
    stroke: #00cc66; /* Lighthouse Green */
    stroke-width: 2.8;
    stroke-linecap: round;
    animation: progress 1s ease-out forwards;
}

@keyframes progress {
    0% {
        stroke-dasharray: 0 100;
    }
}

.lighthouse-number {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 1.5rem;
    color: #00cc66;
}

/* Pricing Cards */
.pricing-card {
    border-radius: 15px;
    transition: transform 0.3s ease;
}

.featured-plan {
    border: 2px solid var(--primary-blue) !important;
    transform: scale(1.05);
}

.popular-badge {
    background-color: var(--primary-blue);
    color: white;
    padding: 10px 40px;
    position: absolute;
    top: 20px;
    right: -40px;
    transform: rotate(45deg);
    font-size: 0.8rem;
    font-weight: bold;
    text-transform: uppercase;
}

/* Animations */
.animate-fade-in {
    animation: fadeIn 1s ease-out;
}

.animate-fade-in-delayed {
    animation: fadeIn 1.5s ease-out;
}

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

/* Responsive Adjustments */
@media (max-width: 768px) {
    .featured-plan {
        transform: scale(1);
        margin-top: 30px;
    }
    
    .hero-section h1 {
        font-size: 2.5rem;
    }
}
