/* FIX 1: Remove horizontal scrollbar & prevent overflow */
html, body {
    overflow-x: hidden;
    width: 100%;
    max-width: 100%;
    position: relative;
}

/* Hide scrollbar but keep functionality */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.3);
}

::-webkit-scrollbar-thumb {
    background: rgba(0, 212, 255, 0.5);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(0, 212, 255, 0.8);
}
/* ===== ANIMATED BACKGROUND ===== */
@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-20px); }
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

@keyframes glitch {
    0% { transform: translate(0); }
    20% { transform: translate(-2px, 2px); }
    40% { transform: translate(-2px, -2px); }
    60% { transform: translate(2px, 2px); }
    80% { transform: translate(2px, -2px); }
    100% { transform: translate(0); }
}

@keyframes countUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Global Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    line-height: 1.6;
    color: #e0e0e0;
    background: linear-gradient(-45deg, #000000, #001a33, #000000, #003366);
    background-size: 400% 400%;
    animation: gradientShift 15s ease infinite;
    min-height: 100vh;
    position: relative;
    overflow-x: hidden;
}

/* Particle Container */
.particle-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: -1;
}

/* Header & Navigation */
header {
    background: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding: 1.2rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
}

nav {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 3rem;
}

.logo {
    display: flex;
    align-items: center;
    gap: 1rem;
    text-decoration: none;
}

.logo img {
    height: 50px;
    width: auto;
}

.logo-text {
    font-size: 1.5rem;
    font-weight: 600;
    color: #ffffff;
    letter-spacing: 1px;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 3rem;
}

.nav-links a {
    color: #e0e0e0;
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    transition: color 0.3s;
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: #00d4ff;
    transition: width 0.3s;
}

.nav-links a:hover {
    color: #00d4ff;
}

.nav-links a:hover::after {
    width: 100%;
}

/* Urgency Banner */
.urgency-banner {
    background: linear-gradient(90deg, rgba(0, 212, 255, 0.1) 0%, rgba(0, 0, 0, 0.3) 100%);
    color: #00d4ff;
    text-align: center;
    padding: 12px 20px;
    font-size: 15px;
    font-weight: 500;
    position: relative;
    z-index: 1001;
    border-bottom: 1px solid rgba(0, 212, 255, 0.2);
    animation: pulse 2s infinite;
}

.urgency-banner a {
    color: #ffffff;
    text-decoration: none;
    font-weight: 600;
    background: linear-gradient(135deg, #00d4ff 0%, #0099cc 100%);
    padding: 6px 16px;
    border-radius: 4px;
    margin-left: 10px;
    transition: transform 0.3s, box-shadow 0.3s;
    display: inline-block;
}

.urgency-banner a:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(0, 212, 255, 0.3);
    animation: glitch 0.3s;
}

/* Hero Section */
.hero {
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.9) 0%, rgba(10, 10, 10, 0.8) 100%);
    padding: 8rem 3rem 6rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 50% 50%, rgba(0, 212, 255, 0.1) 0%, transparent 50%);
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 900px;
    margin: 0 auto;
}

.hero h1 {
    font-size: 4rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    background: linear-gradient(135deg, #ffffff 0%, #00d4ff 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1.2;
}

.hero .tagline {
    font-size: 1.5rem;
    color: #00d4ff;
    margin-bottom: 1rem;
    font-weight: 300;
}

.hero p {
    font-size: 1.15rem;
    color: #b0b0b0;
    margin-bottom: 2.5rem;
    line-height: 1.8;
}

/* CTA Button */
.cta-button {
    display: inline-block;
    background: linear-gradient(135deg, #00d4ff 0%, #0099cc 100%);
    color: #000000;
    padding: 1.2rem 3rem;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 1rem;
    transition: transform 0.3s, box-shadow 0.3s;
    text-transform: uppercase;
    letter-spacing: 1px;
    border: none;
    cursor: pointer;
}

.cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(0, 212, 255, 0.3);
}

/* Container */
.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 5rem 3rem;
}

.section {
    margin-bottom: 6rem;
}

.section h2 {
    font-size: 2.8rem;
    margin-bottom: 2rem;
    color: #ffffff;
    font-weight: 700;
    position: relative;
    display: inline-block;
}

.section h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, #00d4ff 0%, transparent 100%);
}

/* Mission Box */
.mission-box {
    background: linear-gradient(135deg, rgba(0, 212, 255, 0.05) 0%, rgba(0, 0, 0, 0.3) 100%);
    padding: 3rem;
    border-radius: 12px;
    border: 1px solid rgba(0, 212, 255, 0.2);
    margin-top: 2rem;
}

/* Services Grid */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.service-card {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.03) 0%, rgba(0, 0, 0, 0.3) 100%);
    padding: 2.5rem;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: transform 0.3s, border-color 0.3s, box-shadow 0.3s;
    text-decoration: none;
    display: block;
    color: inherit;
}

.service-card:hover {
    transform: translateY(-10px);
    border-color: rgba(0, 212, 255, 0.5);
    box-shadow: 0 20px 40px rgba(0, 212, 255, 0.2);
}

.service-card h3 {
    color: #00d4ff;
    font-size: 1.4rem;
    margin-bottom: 1rem;
    font-weight: 600;
}

.service-card p {
    color: #b0b0b0;
    font-size: 1rem;
    line-height: 1.7;
    margin-bottom: 1.5rem;
}

.read-more {
    color: #00d4ff;
    text-decoration: none;
    font-weight: 600;
    display: inline-block;
}

.read-more:hover {
    text-decoration: underline;
}

/* Stats Counter Section */
.stats-section {
    background: linear-gradient(135deg, rgba(0, 212, 255, 0.05) 0%, rgba(0, 0, 0, 0.4) 100%);
    padding: 5rem 3rem;
    margin: 4rem 0;
    border-radius: 20px;
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(0, 212, 255, 0.2);
    animation: float 6s ease-in-out infinite;
}

.stats-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, #00d4ff, transparent);
    animation: gradientShift 3s infinite;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
    text-align: center;
}

.stat-card {
    background: rgba(0, 0, 0, 0.3);
    padding: 2.5rem;
    border-radius: 15px;
    border: 1px solid rgba(0, 212, 255, 0.1);
    transition: all 0.3s;
    position: relative;
    overflow: hidden;
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 100%;
    background: linear-gradient(to bottom, transparent, rgba(0, 212, 255, 0.1), transparent);
    transform: translateY(-100%);
    transition: transform 0.6s;
}

.stat-card:hover::before {
    transform: translateY(100%);
}

.stat-card:hover {
    transform: translateY(-10px);
    border-color: rgba(0, 212, 255, 0.4);
    box-shadow: 0 15px 40px rgba(0, 212, 255, 0.2);
}

.stat-number {
    font-size: 4rem;
    font-weight: 700;
    background: linear-gradient(135deg, #00d4ff 0%, #0099cc 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 1rem;
    line-height: 1;
    animation: countUp 1s ease-out forwards;
    opacity: 0;
}

.stat-label {
    font-size: 1.2rem;
    color: #b0b0b0;
    font-weight: 300;
}

.stat-unit {
    font-size: 1.5rem;
    color: #00d4ff;
    margin-left: 5px;
}

/* Calculator Styles */
.calculator-container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 2rem;
}

.calculator-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    margin-top: 3rem;
}

.input-group {
    margin-bottom: 2rem;
}

.input-group label {
    display: block;
    color: #00d4ff;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.input-group input {
    width: 100%;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(0, 212, 255, 0.3);
    border-radius: 8px;
    color: white;
    font-size: 1.1rem;
    transition: all 0.3s;
}

.input-group input:focus {
    outline: none;
    border-color: #00d4ff;
    box-shadow: 0 0 0 3px rgba(0, 212, 255, 0.1);
}

.slider-container {
    position: relative;
    padding: 1rem 0;
}

.slider-value {
    position: absolute;
    top: -25px;
    right: 0;
    color: #00d4ff;
    font-weight: 600;
}

input[type="range"] {
    width: 100%;
    height: 6px;
    -webkit-appearance: none;
    background: rgba(0, 212, 255, 0.2);
    border-radius: 3px;
    outline: none;
}

input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 20px;
    height: 20px;
    background: #00d4ff;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s;
}

input[type="range"]::-webkit-slider-thumb:hover {
    transform: scale(1.2);
    box-shadow: 0 0 10px rgba(0, 212, 255, 0.5);
}

.results-display {
    background: linear-gradient(135deg, rgba(0, 212, 255, 0.1) 0%, rgba(0, 0, 0, 0.4) 100%);
    padding: 3rem;
    border-radius: 15px;
    border: 1px solid rgba(0, 212, 255, 0.3);
    animation: float 6s ease-in-out infinite;
}

.result-item {
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.result-label {
    color: #b0b0b0;
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}

.result-value {
    font-size: 2.5rem;
    font-weight: 700;
    color: #00d4ff;
    display: flex;
    align-items: baseline;
}

.result-unit {
    font-size: 1.2rem;
    color: #b0b0b0;
    margin-left: 0.5rem;
}

.savings-graph {
    height: 200px;
    margin: 2rem 0;
    position: relative;
    display: flex;
    align-items: flex-end;
    gap: 10px;
}

.bar {
    flex: 1;
    background: linear-gradient(to top, #00d4ff, #0099cc);
    border-radius: 5px 5px 0 0;
    position: relative;
    transition: height 1s ease;
}

.bar-label {
    position: absolute;
    bottom: -25px;
    left: 0;
    right: 0;
    text-align: center;
    color: #b0b0b0;
    font-size: 0.9rem;
}

.bar-value {
    position: absolute;
    top: -30px;
    left: 0;
    right: 0;
    text-align: center;
    color: #00d4ff;
    font-weight: 600;
}

/* Contact Section */
.contact-section {
    background: linear-gradient(135deg, rgba(0, 212, 255, 0.1) 0%, rgba(0, 0, 0, 0.5) 100%);
    padding: 5rem 3rem;
    text-align: center;
    border-top: 1px solid rgba(0, 212, 255, 0.2);
    border-bottom: 1px solid rgba(0, 212, 255, 0.2);
}

.contact-info {
    font-size: 1.3rem;
    margin: 1.5rem 0;
    color: #b0b0b0;
}

.contact-info a {
    color: #00d4ff;
    text-decoration: none;
    transition: color 0.3s;
}

.contact-info a:hover {
    color: #ffffff;
}

/* Footer */
footer {
    background: linear-gradient(180deg, #000000 0%, #001122 100%);
    color: #b0b0b0;
    text-align: center;
    padding: 4rem 2rem;
    border-top: 1px solid rgba(0, 212, 255, 0.2);
    position: relative;
    overflow: hidden;
}

footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, #00d4ff, transparent);
}

footer p {
    margin: 0.5rem 0;
    font-size: 1.1rem;
}

/* Back Button */
.back-button {
    display: inline-block;
    color: #00d4ff;
    text-decoration: none;
    font-size: 1.1rem;
    margin-bottom: 2rem;
    transition: color 0.3s;
}

.back-button:hover {
    color: #ffffff;
}

.back-button::before {
    content: '← ';
}

/* Elroy Hero */
.elroy-hero {
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.9) 0%, rgba(10, 10, 10, 0.8) 100%);
    padding: 6rem 3rem 4rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.elroy-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 50% 50%, rgba(0, 212, 255, 0.1) 0%, transparent 50%);
    pointer-events: none;
}

.elroy-content {
    position: relative;
    z-index: 1;
    max-width: 900px;
    margin: 0 auto;
}

.elroy-hero h1 {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    background: linear-gradient(135deg, #ffffff 0%, #00d4ff 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1.2;
}

/* Blog Styles */
.blog-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.blog-card {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.03) 0%, rgba(0, 0, 0, 0.3) 100%);
    padding: 2.5rem;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: transform 0.3s, border-color 0.3s, box-shadow 0.3s;
    cursor: pointer;
    text-decoration: none;
    display: block;
    color: inherit;
}

.blog-card:hover {
    transform: translateY(-5px);
    border-color: rgba(0, 212, 255, 0.5);
    box-shadow: 0 10px 30px rgba(0, 212, 255, 0.2);
}

.blog-card .date {
    color: #888;
    font-size: 0.9rem;
    margin-bottom: 1rem;
    display: block;
}

/* Mobile Menu */
.mobile-menu {
    display: none;
    background: none;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
}

/* Responsive Design */
@media (max-width: 768px) {
    .urgency-banner {
        font-size: 14px;
        padding: 10px 15px;
    }
    
    .urgency-banner a {
        margin-left: 5px;
        padding: 5px 12px;
        font-size: 13px;
    }
    
    nav {
        padding: 0 1.5rem;
    }

    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        right: 0;
        background: rgba(0, 0, 0, 0.98);
        flex-direction: column;
        padding: 2rem;
        border-radius: 0 0 10px 10px;
        border: 1px solid rgba(0, 212, 255, 0.2);
        min-width: 200px;
    }

    .nav-links.active {
        display: flex;
    }

    .mobile-menu {
        display: block;
    }

    .hero {
        padding: 5rem 1.5rem 4rem;
    }

    .hero h1 {
        font-size: 2.5rem;
    }

    .hero .tagline {
        font-size: 1.2rem;
    }

    .hero p {
        font-size: 1rem;
    }

    .container {
        padding: 3rem 1.5rem;
    }

    .section h2 {
        font-size: 2rem;
    }

    .services-grid {
        grid-template-columns: 1fr;
    }

    .calculator-grid {
        grid-template-columns: 1fr;
    }

    .stats-grid {
        grid-template-columns: 1fr;
    }

    .stat-number {
        font-size: 3rem;
    }

    .blog-list {
        grid-template-columns: 1fr;
    }

    .elroy-hero {
        padding: 5rem 1.5rem 4rem;
    }

    .elroy-hero h1 {
        font-size: 2.5rem;
    }

    .contact-section {
        padding: 3rem 1.5rem;
    }

    .contact-section h2 {
        font-size: 2.5rem;
    }

    .mission-box {
        padding: 2rem;
    }

    .service-card, .blog-card {
        padding: 2rem;
    }
}
/* Calculator Specific Styles */
.results-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.result-card {
    background: rgba(0, 212, 255, 0.05);
    padding: 1.5rem;
    border-radius: 12px;
    border: 1px solid rgba(0, 212, 255, 0.2);
    display: flex;
    align-items: center;
    gap: 1rem;
    transition: all 0.3s;
}

.result-card:hover {
    transform: translateY(-5px);
    border-color: rgba(0, 212, 255, 0.5);
    box-shadow: 0 10px 20px rgba(0, 212, 255, 0.2);
}

.result-icon {
    font-size: 2rem;
    background: rgba(0, 212, 255, 0.1);
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.result-content {
    flex: 1;
}

.result-label {
    color: #b0b0b0;
    font-size: 0.9rem;
    margin-bottom: 0.25rem;
}

.result-value {
    color: #00d4ff;
    font-size: 1.5rem;
    font-weight: 700;
}

.breakdown-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

.breakdown-item {
    background: rgba(255, 255, 255, 0.03);
    padding: 1rem;
    border-radius: 8px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.breakdown-label {
    color: #b0b0b0;
    font-size: 0.9rem;
}

.breakdown-value {
    color: #ffffff;
    font-weight: 600;
}

.breakdown-value.savings {
    color: #00ff88;
}

.breakdown-value.net-savings {
    color: #00d4ff;
}

.breakdown-value.year-savings {
    color: #ffd700;
}

.insights-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.insight-card {
    background: rgba(255, 255, 255, 0.03);
    padding: 2rem;
    border-radius: 12px;
    border: 1px solid rgba(0, 212, 255, 0.2);
    text-align: center;
    transition: all 0.3s;
}

.insight-card:hover {
    transform: translateY(-5px);
    border-color: rgba(0, 212, 255, 0.5);
    box-shadow: 0 10px 20px rgba(0, 212, 255, 0.2);
}

.insight-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.insight-card h4 {
    color: #00d4ff;
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.insight-card p {
    color: #b0b0b0;
    font-size: 0.95rem;
    line-height: 1.6;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .results-grid {
        grid-template-columns: 1fr;
    }
    
    .breakdown-grid {
        grid-template-columns: 1fr;
    }
    
    .insights-grid {
        grid-template-columns: 1fr;
    }
}