/* 
====================================================================
    Bridger Dental Hygiene DIGITAL MARKETING AGENCY - CORE STYLESHEET
    Version: 2.0
    Author: Frontend Team
==================================================================== 
*/

/* -----------------------------------------------------------------
   1.0 VARIABLES & RESET
----------------------------------------------------------------- */
:root {
    /* Color Palette */
    --primary-color: #4facfe;
    --primary-dark: #00f2fe;
    --secondary-color: #667eea;
    --accent-color: #764ba2;
    --dark-bg: #0f172a;
    --light-bg: #f8f9fa;
    --card-bg: #ffffff;
    --text-main: #334155;
    --text-light: #94a3b8;
    --white: #ffffff;
    --success: #10b981;
    --warning: #f59e0b;
    --danger: #ef4444;

    /* Gradients */
    --gradient-main: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    --gradient-text: linear-gradient(to right, var(--primary-color), var(--accent-color));
    --gradient-dark: linear-gradient(to bottom, #0f172a, #1e293b);

    /* Typography */
    --font-main: 'Poppins', sans-serif;
    --h1-size: 3.5rem;
    --h2-size: 2.5rem;
    --h3-size: 1.75rem;
    --body-size: 1rem;
    --small-size: 0.875rem;

    /* Spacing */
    --section-padding: 100px 0;
    --container-width: 1200px;
    --border-radius: 12px;
    --shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
    --shadow-neon: 0 0 20px rgba(79, 172, 254, 0.4);

    /* Transitions */
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s ease;
    --transition-slow: 0.5s ease;
}

/* Reset */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-main);
    color: var(--text-main);
    background-color: var(--white);
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition-normal);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    display: block;
}

/* -----------------------------------------------------------------
   2.0 UTILITIES & ANIMATIONS
----------------------------------------------------------------- */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
    position: relative;
    z-index: 2;
}

.section-subtitle {
    display: inline-block;
    padding: 8px 16px;
    background: rgba(79, 172, 254, 0.1);
    color: var(--secondary-color);
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 15px;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.section-title {
    font-size: var(--h2-size);
    font-weight: 700;
    color: var(--dark-bg);
    margin-bottom: 20px;
}

.section-title span {
    background: var(--gradient-text);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 32px;
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn-primary {
    background: var(--gradient-main);
    color: var(--white);
    box-shadow: var(--shadow-neon);
    border: none;
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(102, 126, 234, 0.5);
}

.btn-secondary {
    background: transparent;
    border: 2px solid var(--secondary-color);
    color: var(--secondary-color);
}

.btn-secondary:hover {
    background: var(--secondary-color);
    color: var(--white);
}

/* Animations */
@keyframes float {
    0% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-20px);
    }

    100% {
        transform: translateY(0px);
    }
}

@keyframes pulse-glow {
    0% {
        box-shadow: 0 0 0 0 rgba(79, 172, 254, 0.7);
    }

    70% {
        box-shadow: 0 0 0 20px rgba(79, 172, 254, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(79, 172, 254, 0);
    }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(50px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes rotate-shape {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

.fade-in-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.fade-in-up.visible {
    opacity: 1;
    transform: translateY(0);
}

/* -----------------------------------------------------------------
   3.0 HEADER & NAVIGATION
----------------------------------------------------------------- */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 20px 0;
    transition: all 0.4s ease;
    backdrop-filter: blur(10px);
    background: rgba(255, 255, 255, 0.95);
}

.header.scrolled {
    padding: 10px 0;
    box-shadow: var(--shadow-sm);
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-link img {
    height: 50px;
    width: auto;
    /* Invert filter for dark logo if needed, assumed logo is colored */
}

.nav-list {
    display: flex;
    gap: 30px;
}

.nav-link {
    font-weight: 500;
    color: var(--text-main);
    position: relative;
    padding: 5px 0;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gradient-main);
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 20px;
}

.mobile-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    flex-direction: column;
    gap: 6px;
}

.bar {
    width: 30px;
    height: 3px;
    background-color: var(--text-main);
    transition: 0.3s;
}

/* Mobile Nav Overlay */
.mobile-nav {
    position: fixed;
    top: 0;
    right: -100%;
    width: 300px;
    height: 100vh;
    background: var(--white);
    box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
    z-index: 999;
    padding: 80px 40px;
    transition: 0.4s ease;
}

.mobile-nav.active {
    right: 0;
}

.mobile-nav ul {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.mobile-nav a {
    font-size: 1.2rem;
    font-weight: 600;
}

/* -----------------------------------------------------------------
   4.0 HERO SECTION
----------------------------------------------------------------- */
.hero-section {
    position: relative;
    padding-top: 180px;
    padding-bottom: 120px;
    background-color: var(--light-bg);
    overflow: hidden;
    min-height: 100vh;
    display: flex;
    align-items: center;
}

.hero-shapes .shape {
    position: absolute;
    border-radius: 50%;
    filter: blur(60px);
    z-index: 0;
    animation: float 6s infinite ease-in-out;
}

.hero-shapes .shape-1 {
    top: -10%;
    left: -5%;
    width: 400px;
    height: 400px;
    background: rgba(79, 172, 254, 0.2);
}

.hero-shapes .shape-2 {
    bottom: 10%;
    right: -10%;
    width: 500px;
    height: 500px;
    background: rgba(118, 75, 162, 0.15);
    animation-delay: 2s;
}

.hero-content {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.hero-text h1 {
    font-size: var(--h1-size);
    line-height: 1.2;
    margin-bottom: 25px;
    font-weight: 800;
    color: var(--dark-bg);
}

.hero-text p {
    font-size: 1.2rem;
    color: var(--text-light);
    margin-bottom: 35px;
    max-width: 500px;
}

.hero-btns {
    display: flex;
    gap: 20px;
}

.hero-visual {
    position: relative;
}

.hero-card {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(20px);
    padding: 30px;
    border-radius: 20px;
    box-shadow: var(--shadow-lg);
    border: 1px solid rgba(255, 255, 255, 0.5);
    transform: perspective(1000px) rotateY(-10deg) rotateX(5deg);
    transition: transform 0.5s ease;
}

.hero-card:hover {
    transform: perspective(1000px) rotateY(0deg) rotateX(0deg);
}

.chart-placeholder {
    height: 200px;
    background: linear-gradient(to bottom, transparent, rgba(79, 172, 254, 0.1));
    border-bottom: 2px solid var(--primary-color);
    position: relative;
    display: flex;
    align-items: flex-end;
    justify-content: space-around;
    padding-bottom: 0;
}

.bar-graph {
    width: 30px;
    background: var(--gradient-main);
    border-radius: 5px 5px 0 0;
    animation: slideUp 1s forwards;
}

/* -----------------------------------------------------------------
   5.0 SERVICES SECTION
----------------------------------------------------------------- */
.services-section {
    padding: var(--section-padding);
    background-color: var(--white);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.service-card {
    background: var(--white);
    padding: 40px 30px;
    border-radius: 20px;
    box-shadow: var(--shadow-sm);
    transition: all 0.4s ease;
    border: 1px solid rgba(0, 0, 0, 0.05);
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: var(--gradient-main);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s ease;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
}

.service-card:hover::before {
    transform: scaleX(1);
}

.service-icon {
    font-size: 3rem;
    margin-bottom: 25px;
    background: var(--gradient-text);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.service-card h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: var(--dark-bg);
}

.service-card p {
    color: var(--text-light);
    margin-bottom: 20px;
}

.learn-more {
    color: var(--secondary-color);
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.learn-more i {
    transition: transform 0.3s;
}

.learn-more:hover i {
    transform: translateX(5px);
}

/* -----------------------------------------------------------------
   6.0 INTERACTIVE CALCULATOR
----------------------------------------------------------------- */
.calculator-section {
    padding: var(--section-padding);
    background: var(--dark-bg);
    color: var(--white);
    position: relative;
}

.calc-container {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    padding: 50px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
}

.calc-inputs label {
    display: block;
    margin-bottom: 10px;
    font-weight: 500;
    color: var(--text-light);
}

.input-group {
    margin-bottom: 25px;
}

.calc-inputs input {
    width: 100%;
    padding: 15px;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    background: rgba(0, 0, 0, 0.2);
    color: var(--white);
    font-size: 1rem;
    font-family: var(--font-main);
}

.calc-inputs input:focus {
    outline: none;
    border-color: var(--primary-color);
}

.range-slider {
    width: 100%;
    margin-top: 10px;
}

.calc-results {
    background: var(--gradient-main);
    border-radius: 15px;
    padding: 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    box-shadow: var(--shadow-neon);
}

.result-item {
    margin-bottom: 30px;
}

.result-item h4 {
    font-size: 1.2rem;
    opacity: 0.9;
    margin-bottom: 10px;
}

.result-number {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1;
}

/* -----------------------------------------------------------------
   7.0 TESTIMONIALS & STATS
----------------------------------------------------------------- */
.stats-section {
    padding: 60px 0;
    background: var(--white);
    border-bottom: 1px solid #eee;
}

.stats-grid {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    gap: 30px;
}

.stat-item {
    text-align: center;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-color);
    display: block;
}

.stat-label {
    color: var(--text-light);
    font-weight: 500;
}

.testimonials-section {
    padding: var(--section-padding);
    background-color: var(--light-bg);
}

.testimonial-slider {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
    overflow: hidden;
}

.testimonial-wrapper {
    display: flex;
    transition: transform 0.5s ease;
}

.testimonial-slide {
    min-width: 100%;
    padding: 20px;
    text-align: center;
}

.quote-icon {
    font-size: 3rem;
    color: var(--primary-color);
    opacity: 0.2;
    margin-bottom: 20px;
}

.testimonial-text {
    font-size: 1.25rem;
    font-style: italic;
    margin-bottom: 30px;
    color: var(--dark-bg);
}

.client-info img {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    margin: 0 auto 15px;
    object-fit: cover;
    border: 3px solid var(--primary-color);
}

.client-name {
    font-weight: 700;
    display: block;
    color: var(--dark-bg);
}

.client-role {
    font-size: 0.9rem;
    color: var(--text-light);
}

.slider-controls {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 30px;
}

.dot {
    width: 12px;
    height: 12px;
    background: #ccc;
    border-radius: 50%;
    cursor: pointer;
    transition: 0.3s;
}

.dot.active {
    background: var(--primary-color);
    transform: scale(1.2);
}

/* -----------------------------------------------------------------
   8.0 FOOTER
----------------------------------------------------------------- */
.footer {
    background-color: #0b1120;
    color: #e2e8f0;
    padding-top: 80px;
    position: relative;
    overflow: hidden;
}

.footer-shapes .footer-shape {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.1;
}

.footer-shape.shape-1 {
    top: -100px;
    left: -100px;
    width: 400px;
    height: 400px;
    background: var(--primary-color);
}

.footer-shape.shape-2 {
    bottom: -100px;
    right: -100px;
    width: 500px;
    height: 500px;
    background: var(--accent-color);
}

.footer-top {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: 40px;
    padding-bottom: 60px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
    z-index: 1;
}

.footer-logo {
    height: 40px;
    margin-bottom: 20px;
    filter: brightness(0) invert(1);
}

.footer-about-text {
    color: #94a3b8;
    margin-bottom: 25px;
    font-size: 0.95rem;
}

.social-links {
    display: flex;
    gap: 15px;
}

.social-link {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: 0.3s;
}

.social-link:hover {
    background: var(--primary-color);
    transform: translateY(-3px);
}

.footer-col-title {
    color: var(--white);
    font-size: 1.1rem;
    margin-bottom: 25px;
    font-weight: 600;
}

.footer-links ul li {
    margin-bottom: 12px;
}

.footer-links ul li a {
    color: #94a3b8;
    transition: 0.3s;
    font-size: 0.95rem;
}

.footer-links ul li a:hover {
    color: var(--primary-color);
    padding-left: 5px;
}

.contact-info-list li {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
    color: #94a3b8;
    font-size: 0.95rem;
}

.contact-info-list i {
    color: var(--primary-color);
    margin-top: 5px;
}

.footer-bottom {
    padding: 30px 0;
    text-align: center;
    color: #64748b;
    font-size: 0.9rem;
    position: relative;
    z-index: 1;
}

/* -----------------------------------------------------------------
   9.0 PAGE SPECIFIC: CONTACT
----------------------------------------------------------------- */
.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 50px;
    margin-top: 40px;
    background: var(--white);
    border-radius: 20px;
    padding: 50px;
    box-shadow: var(--shadow-lg);
}

.contact-info {
    padding-right: 30px;
}

.contact-method {
    display: flex;
    gap: 20px;
    margin-bottom: 30px;
    align-items: flex-start;
}

.method-icon {
    width: 50px;
    height: 50px;
    background: rgba(79, 172, 254, 0.1);
    color: var(--primary-color);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    font-size: 0.9rem;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    font-family: var(--font-main);
    transition: 0.3s;
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(79, 172, 254, 0.1);
    outline: none;
}

/* -----------------------------------------------------------------
   10.0 LEGAL PAGE STYLES
----------------------------------------------------------------- */
.page-header-section {
    background: var(--dark-bg);
    padding: 180px 0 80px;
    position: relative;
    overflow: hidden;
    color: var(--white);
    text-align: center;
}

.page-header-shapes .page-shape {
    position: absolute;
    border-radius: 50%;
    filter: blur(60px);
}

.page-header-shapes .shape-1 {
    top: 50px;
    left: -50px;
    width: 300px;
    height: 300px;
    background: rgba(79, 172, 254, 0.2);
}

.page-header-shapes .shape-2 {
    bottom: -50px;
    right: -50px;
    width: 300px;
    height: 300px;
    background: rgba(118, 75, 162, 0.2);
}

.page-header-content {
    position: relative;
    z-index: 2;
}

.page-header-content h1 {
    font-size: 3rem;
    margin-bottom: 20px;
}

.breadcrumbs {
    color: var(--text-light);
    font-size: 0.9rem;
}

.breadcrumbs a {
    color: var(--white);
}

.breadcrumbs i {
    margin: 0 10px;
    font-size: 0.7rem;
}

.page-content {
    padding: 80px 0;
}

.content-wrapper {
    max-width: 900px;
    margin: 0 auto;
    background: var(--white);
    padding: 50px;
    border-radius: 12px;
    box-shadow: var(--shadow-sm);
}

.content-wrapper h2 {
    margin: 40px 0 20px;
    color: var(--dark-bg);
    font-size: 1.8rem;
}

.content-wrapper p {
    margin-bottom: 20px;
    color: var(--text-main);
}

.content-wrapper ul {
    list-style: disc;
    padding-left: 20px;
    margin-bottom: 20px;
}

.content-wrapper li {
    margin-bottom: 10px;
}

/* -----------------------------------------------------------------
   11.0 RESPONSIVE MEDIA QUERIES
----------------------------------------------------------------- */
@media (max-width: 1024px) {
    :root {
        --h1-size: 2.8rem;
        --h2-size: 2.2rem;
    }

    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-text p,
    .hero-btns {
        margin-left: auto;
        margin-right: auto;
    }

    .hero-btns {
        justify-content: center;
    }

    .hero-card {
        max-width: 600px;
        margin: 40px auto 0;
        transform: none;
    }

    .nav {
        display: none;
    }

    .header-cta {
        display: none;
    }

    .mobile-toggle {
        display: flex;
    }

    .footer-top {
        grid-template-columns: 1fr 1fr;
    }

    .contact-wrapper {
        grid-template-columns: 1fr;
    }

    .contact-info {
        padding-right: 0;
        margin-bottom: 40px;
    }
}

@media (max-width: 768px) {
    :root {
        --h1-size: 2.2rem;
        --section-padding: 60px 0;
    }

    .calc-container {
        grid-template-columns: 1fr;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .footer-top {
        grid-template-columns: 1fr;
    }

    .stats-grid {
        flex-direction: column;
    }
}

/* Popup Styles */
.popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: 2000;
    display: none;
    justify-content: center;
    align-items: center;
}

.popup-content {
    background: var(--white);
    padding: 40px;
    border-radius: 15px;
    text-align: center;
    max-width: 400px;
    position: relative;
    animation: slideUp 0.4s ease;
}

.popup-icon {
    font-size: 3rem;
    color: var(--success);
    margin-bottom: 20px;
}

.popup-close {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 1.5rem;
    cursor: pointer;
}