:root {
    --primary-color: #1e88e5;
    --accent-color: #00bcd4;
    --secondary-color: #4caf50;
    --dental-blue: #2196f3;
    --dental-green: #00e676;
    --navy: #1565c0;
    --dark-navy: #0d47a1;
    --light-blue: #e3f2fd;
    --success-color: #4caf50;
    --warning-color: #ff9800;
    --error-color: #f44336;
    --text-dark: #263238;
    --text-light: #546e7a;
    --background-light: #fafafa;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Poppins", sans-serif;
    color: var(--text-dark);
    background-color: var(--background-light);
    position: relative;
    line-height: 1.6;
}

html {
    scroll-behavior: smooth;
}

/* Navigation */
.navbar {
    background: rgba(21, 101, 192, 0.95) !important;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
    padding: 1rem 0;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
}

.navbar.scrolled {
    background: rgba(21, 101, 192, 0.98) !important;
    padding: 0.5rem 0;
}

.navbar-brand {
    font-weight: 700;
    font-size: 1.8rem;
    color: white !important;
    text-decoration: none;
    transition: all 0.3s ease;
}

.navbar-brand:hover {
    color: var(--dental-green) !important;
}

.navbar-nav .nav-link {
    color: white !important;
    font-weight: 500;
    margin: 0 10px;
    transition: all 0.3s ease;
    position: relative;
}

.navbar-nav .nav-link:hover {
    color: var(--dental-green) !important;
}

.navbar-nav .nav-link::after {
    content: "";
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 50%;
    background-color: var(--dental-green);
    transition: all 0.3s ease;
}

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

/* Hero Section */
.hero {
    min-height: 100vh;
    background: linear-gradient(
        135deg,
        var(--dark-navy) 0%,
        var(--navy) 50%,
        var(--primary-color) 100%
    );
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Cpath d='M30 30c0-11.046-8.954-20-20-20s-20 8.954-20 20 8.954 20 20 20 20-8.954 20-20zm15 0c0-11.046-8.954-20-20-20s-20 8.954-20 20 8.954 20 20 20 20-8.954 20-20z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E")
        repeat;
    opacity: 0.5;
}

.hero-content {
    position: relative;
    z-index: 2;
}

.hero h1 {
    font-size: 3.5rem;
    font-weight: 700;
    color: white;
    margin-bottom: 1rem;
    animation: fadeInUp 1s ease-out;
}

.hero h2 {
    font-size: 2rem;
    font-weight: 600;
    color: var(--dental-green);
    margin-bottom: 1.5rem;
    animation: fadeInUp 1s ease-out 0.2s both;
}

.hero p {
    font-size: 1.3rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 2rem;
    animation: fadeInUp 1s ease-out 0.4s both;
}

.hero-quote {
    font-style: italic;
    font-size: 1.1rem;
    color: var(--dental-green);
    margin-bottom: 2rem;
    padding: 1rem;
    border-left: 4px solid var(--dental-green);
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    animation: fadeInUp 1s ease-out 0.6s both;
}

.hero-buttons {
    animation: fadeInUp 1s ease-out 0.8s both;
}

.hero-visual {
    position: relative;
    z-index: 2;
    animation: fadeInRight 1s ease-out 0.5s both;
}

.hero-image-placeholder {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 3rem;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

/* Buttons */
.btn-primary-custom {
    background: linear-gradient(
        45deg,
        var(--accent-color),
        var(--dental-green)
    );
    border: none;
    padding: 15px 40px;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 50px;
    color: white;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    margin-right: 1rem;
    box-shadow: 0 4px 15px rgba(0, 188, 212, 0.3);
}

.btn-primary-custom:hover {
    transform: translateY(-3px);
    color: white;
    text-decoration: none;
    box-shadow: 0 6px 20px rgba(0, 188, 212, 0.4);
}

.btn-secondary-custom {
    background: transparent;
    border: 2px solid var(--dental-green);
    padding: 13px 38px;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 50px;
    color: var(--dental-green);
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
}

.btn-secondary-custom:hover {
    background: var(--dental-green);
    color: white;
    text-decoration: none;
    transform: translateY(-3px);
}

/* Sections */
.section {
    padding: 100px 0;
    position: relative;
}

.section-title {
    text-align: center;
    margin-bottom: 4rem;
}

.section-title h2 {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 1rem;
    position: relative;
}

.section-title h2::after {
    content: "";
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(
        45deg,
        var(--primary-color),
        var(--dental-green)
    );
    border-radius: 2px;
}

.section-title p {
    font-size: 1.2rem;
    color: var(--text-light);
    max-width: 600px;
    margin: 0 auto;
}

/* Features Section */
.features {
    background: white;
}

.feature-card {
    text-align: center;
    padding: 2rem;
    border-radius: 15px;
    transition: all 0.3s ease;
    height: 100%;
    border: 1px solid rgba(0, 0, 0, 0.05);
    background: white;
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.feature-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(
        45deg,
        var(--primary-color),
        var(--accent-color)
    );
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    color: white;
    font-size: 2rem;
}

.feature-card h4 {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 1rem;
}

.feature-card p {
    color: var(--text-light);
    line-height: 1.6;
}

/* Workflow Section */
.workflow {
    background: var(--light-blue);
}

.workflow-step {
    text-align: center;
    padding: 1.5rem;
    position: relative;
    margin-bottom: 2rem;
}

.step-number {
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--primary-color);
    color: white;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 0.9rem;
}

.step-icon {
    width: 60px;
    height: 60px;
    background: white;
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    color: var(--primary-color);
    font-size: 1.5rem;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.workflow-step h5 {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
}

.workflow-step p {
    color: var(--text-light);
    font-size: 0.9rem;
}

/* Technology Section */
.technology {
    background: linear-gradient(135deg, #f8f9ff 0%, #ffffff 100%);
    position: relative;
    overflow: hidden;
}

.technology::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23E3F2FD' fill-opacity='0.4'%3E%3Ccircle cx='30' cy='30' r='2'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E")
        repeat;
    opacity: 0.5;
}

.tech-card {
    background: white;
    padding: 2.5rem 2rem;
    border-radius: 20px;
    text-align: center;
    transition: all 0.4s ease;
    border: 1px solid rgba(30, 136, 229, 0.1);
    height: 100%;
    margin-bottom: 2rem;
    position: relative;
    z-index: 2;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
}

.tech-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(30, 136, 229, 0.15);
    border-color: var(--primary-color);
}

.tech-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(
        45deg,
        var(--primary-color),
        var(--accent-color)
    );
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    color: white;
    font-size: 1.8rem;
    box-shadow: 0 8px 25px rgba(30, 136, 229, 0.3);
    transition: all 0.3s ease;
}

.tech-card:hover .tech-icon {
    transform: scale(1.1);
    box-shadow: 0 10px 30px rgba(30, 136, 229, 0.4);
}

.tech-card h5 {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 1rem;
    line-height: 1.4;
}

.tech-card p {
    color: var(--text-light);
    font-size: 1rem;
    line-height: 1.6;
}

/* Benefits Section */
.benefits {
    background: var(--background-light);
}

.benefit-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: white;
    border-radius: 15px;
    transition: all 0.3s ease;
    border-left: 4px solid var(--dental-green);
}

.benefit-item:hover {
    transform: translateX(10px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.benefit-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(
        45deg,
        var(--success-color),
        var(--dental-green)
    );
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 1.5rem;
    color: white;
    font-size: 1.3rem;
    flex-shrink: 0;
}

.benefit-content h4 {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
}

.benefit-content p {
    color: var(--text-light);
}

/* Contact Section */
.contact {
    background: linear-gradient(
        135deg,
        var(--navy) 0%,
        var(--primary-color) 100%
    );
    color: white;
}

.contact .section-title h2,
.contact .section-title p {
    color: white;
}

.contact-form {
    background: rgba(255, 255, 255, 0.1);
    padding: 3rem;
    border-radius: 20px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.contact-form .form-control {
    background: rgba(255, 255, 255, 0.9);
    border: none;
    border-radius: 10px;
    padding: 12px 20px;
    margin-bottom: 1rem;
    font-size: 1rem;
}

.contact-form .form-control:focus {
    background: white;
    box-shadow: 0 0 0 3px rgba(0, 188, 212, 0.3);
    outline: none;
}

.contact-info-card {
    text-align: center;
    padding: 2rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
}

.contact-info-card:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.15);
}

.contact-icon {
    font-size: 2rem;
    color: var(--dental-green);
    margin-bottom: 1rem;
}

.contact-info-card h5 {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.contact-info-card p {
    margin: 0;
    opacity: 0.9;
}

/* Footer */
.footer {
    background: var(--text-dark);
    color: white;
    padding: 2rem 0;
}

.footer-brand {
    font-size: 1.5rem;
    font-weight: 700;
}

.footer-brand p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.95rem;
}

.footer .small {
    color: rgba(255, 255, 255, 0.6);
}

/* Scroll to Top Button */
.scroll-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: linear-gradient(
        45deg,
        var(--primary-color),
        var(--dental-green)
    );
    color: white;
    border-radius: 50%;
    display: none;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    font-size: 1.2rem;
    transition: all 0.3s ease;
    z-index: 1000;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.scroll-top:hover {
    transform: translateY(-3px);
    color: white;
    text-decoration: none;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

/* Form Styling */
.form-check-label {
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.9rem;
}

.form-check-input:checked {
    background-color: var(--dental-green);
    border-color: var(--dental-green);
}

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

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

/* Responsive Design */
@media (max-width: 768px) {
    .hero h1 {
        font-size: 2.5rem;
    }

    .hero h2 {
        font-size: 1.5rem;
    }

    .hero p {
        font-size: 1.1rem;
    }

    .section {
        padding: 60px 0;
    }

    .section-title h2 {
        font-size: 2rem;
    }

    .btn-primary-custom,
    .btn-secondary-custom {
        display: block;
        margin: 0.5rem 0;
        text-align: center;
    }

    .workflow-step {
        margin-bottom: 3rem;
    }

    .benefit-item {
        flex-direction: column;
        text-align: center;
    }

    .benefit-icon {
        margin: 0 auto 1rem;
    }

    .contact-form {
        padding: 2rem;
        margin: 1rem;
    }

    .tech-card {
        margin-bottom: 2rem;
        padding: 2rem 1.5rem;
    }

    .tech-icon {
        width: 70px;
        height: 70px;
        font-size: 1.5rem;
    }
}

@media (max-width: 576px) {
    .hero {
        text-align: center;
    }

    .hero-buttons {
        text-align: center;
    }

    .navbar-brand {
        font-size: 1.5rem;
    }

    .scroll-top {
        width: 45px;
        height: 45px;
        bottom: 20px;
        right: 20px;
    }
}

/* Loading Animation for Hero Image */
.hero-image-placeholder i {
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        opacity: 0.7;
        transform: scale(1);
    }
    50% {
        opacity: 1;
        transform: scale(1.05);
    }
    100% {
        opacity: 0.7;
        transform: scale(1);
    }
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

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

::-webkit-scrollbar-thumb {
    background: linear-gradient(
        45deg,
        var(--primary-color),
        var(--dental-green)
    );
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(45deg, var(--navy), var(--primary-color));
}
