/* 
   FritonDental3D - Premium Dental Website
   Colors: Deep Navy (#0a192f), Mint/Cyan (#64ffda), White (#ffffff)
   Font: Inter, sans-serif
*/

:root {
    --primary: #0a192f;
    /* Deep Navy */
    --accent: #64ffda;
    /* Mint/Cyan */
    --white: #ffffff;
    --text-light: #e6f1ff;
    --text-dark: #8892b0;
    --bg-light: #f8fafc;
    --card-bg: rgba(255, 255, 255, 0.95);
    --shadow: 0 10px 30px -10px rgba(2, 12, 27, 0.1);
}

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

body {
    font-family: 'Inter', sans-serif;
    color: var(--primary);
    background-color: var(--white);
    line-height: 1.6;
    overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    color: var(--primary);
    line-height: 1.2;
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

ul {
    list-style: none;
}

/* UTILITIES */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.section {
    padding: 100px 0;
}

.text-accent {
    color: var(--accent);
}

.btn {
    display: inline-block;
    padding: 15px 35px;
    background-color: transparent;
    color: var(--accent);
    border: 1px solid var(--accent);
    border-radius: 4px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn:hover {
    background-color: rgba(100, 255, 218, 0.1);
}

.btn-primary {
    background-color: var(--accent);
    color: var(--primary);
    border: 1px solid var(--accent);
}

.btn-primary:hover {
    background-color: transparent;
    color: var(--accent);
}

/* NAVIGATION */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 25px 0;
    transition: all 0.4s ease;
    background-color: transparent;
    /* Start transparent */
}

.navbar.scrolled {
    background-color: rgba(10, 25, 47, 0.85);
    /* Glassy Deep Navy */
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    padding: 15px 0;
    /* Shrink on scroll */
    box-shadow: 0 10px 30px -10px rgba(2, 12, 27, 0.3);
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-light);
    letter-spacing: 1px;
    text-decoration: none;
}

.logo span {
    color: var(--accent);
}

.nav-links {
    display: flex;
    gap: 40px;
    /* More space */
    align-items: center;
}

.nav-links a:not(.btn) {
    color: var(--text-light);
    font-size: 0.95rem;
    /* Slightly larger */
    font-weight: 500;
    position: relative;
    padding: 5px 0;
}

.nav-links a:not(.btn)::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 0;
    background-color: var(--accent);
    transition: width 0.3s ease;
}

.nav-links a:not(.btn):hover {
    color: var(--accent);
}

.nav-links a:not(.btn):hover::after {
    width: 100%;
}

.nav-cta {
    margin-left: 10px;
    border-radius: 50px;
    /* Pill shape */
    padding: 12px 25px;
    font-size: 0.9rem;
}

/* HERO SECTION */
.hero {
    height: 100vh;
    background: linear-gradient(rgba(10, 25, 47, 0.85), rgba(10, 25, 47, 0.95)), url('https://images.unsplash.com/photo-1581091226825-a6a2a5aee158?auto=format&fit=crop&q=80&w=2000');
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    color: var(--text-light);
    padding-top: 80px;
    /* Offset for fixed header */
}

.hero-content {
    max-width: 800px;
}

.hero h1 {
    font-size: 4rem;
    font-weight: 800;
    margin-bottom: 20px;
    color: var(--text-light);
}

.hero h1 span {
    color: var(--accent);
}

/* Dynamic Word Animation */
.dynamic-word {
    display: inline-block;
    transition: opacity 0.5s ease-in-out, transform 0.5s ease;
    opacity: 1;
    transform: translateY(0);
}

.dynamic-word.hidden {
    opacity: 0;
    transform: translateY(10px);
}

.hero p {
    font-size: 1.2rem;
    color: var(--text-dark);
    margin-bottom: 40px;
    max-width: 600px;
}

/* SERVICES */
.services {
    background-color: var(--bg-light);
    position: relative;
    overflow: hidden;
}

/* Subtle pattern for background */
.services::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: radial-gradient(var(--text-dark) 1px, transparent 1px);
    background-size: 30px 30px;
    opacity: 0.1;
    pointer-events: none;
}

.section-header {
    text-align: center;
    margin-bottom: 80px;
    position: relative;
    z-index: 2;
}

.section-header h2 {
    font-size: 2.5rem;
    margin-bottom: 15px;
}

.section-header p {
    color: var(--text-dark);
    max-width: 600px;
    margin: 0 auto;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 40px;
    position: relative;
    z-index: 2;
}

.service-card {
    background: var(--white);
    padding: 50px 40px;
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    /* Softer initial shadow */
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(0, 0, 0, 0.03);
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.service-card:hover {
    transform: translateY(-15px);
    box-shadow: 0 20px 40px rgba(10, 25, 47, 0.15);
    border-color: var(--accent);
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--accent);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s ease;
}

.service-card:hover::before {
    transform: scaleX(1);
}

.service-icon {
    font-size: 3rem;
    color: var(--primary);
    margin-bottom: 30px;
    transition: color 0.3s ease;
    background: var(--bg-light);
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.service-card:hover .service-icon {
    color: var(--accent);
    background: rgba(100, 255, 218, 0.1);
}

.service-card h3 {
    margin-bottom: 20px;
    font-size: 1.6rem;
    font-weight: 700;
}

.service-card p {
    color: var(--text-dark);
    font-size: 1rem;
    line-height: 1.7;
    margin-bottom: 30px;
}

/* Add a subtle "Learn More" link style if needed later, 
   but for now just ensure the card looks clickable/interactive */


/* USP SECTION */
.usp {
    background-color: var(--primary);
    color: var(--text-light);
}

.usp h2 {
    color: var(--text-light);
}

.usp-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 40px;
    text-align: center;
}

.usp-item h3 {
    color: var(--accent);
    margin-bottom: 15px;
    font-size: 1.8rem;
}

.usp-item p {
    color: var(--text-dark);
}

/* TEAM */
.team {
    background-color: var(--white);
}

.team-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 60px;
}

.team-member {
    max-width: 500px;
    text-align: center;
}

.team-photo {
    width: 200px;
    height: 200px;
    background-color: #ddd;
    border-radius: 50%;
    margin: 0 auto 25px;
    overflow: hidden;
    position: relative;
    border: 3px solid var(--accent);
}

.team-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.team-member h3 {
    font-size: 1.5rem;
    margin-bottom: 5px;
}

.team-member .role {
    color: var(--accent);
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 20px;
    display: block;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.team-member p {
    color: var(--text-dark);
    font-style: italic;
    line-height: 1.8;
}

/* FOOTER */
.cta-section {
    background: linear-gradient(135deg, var(--primary) 0%, #112240 100%);
    color: var(--white);
    text-align: center;
    padding: 80px 20px;
}

.cta-section h2 {
    color: var(--text-light);
    margin-bottom: 20px;
    font-size: 2.5rem;
}

.cta-section p {
    color: var(--text-dark);
    margin-bottom: 40px;
    font-size: 1.1rem;
}

footer {
    background-color: #020c1b;
    color: var(--text-dark);
    padding: 40px 0;
    text-align: center;
    font-size: 0.9rem;
}

footer a {
    color: var(--text-light);
}

footer a:hover {
    color: var(--accent);
}

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

    .nav-links {
        display: none;
        /* Simplification for now */
    }

    .team-container {
        flex-direction: column;
        align-items: center;
    }
}/* CONTACT SECTION */
.contact-section {
    background-color: var(--primary);
    color: var(--white);
    padding: 100px 0;
}

.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.contact-info h2 {
    color: var(--text-light);
    font-size: 3rem;
    margin-bottom: 20px;
}

.contact-info p {
    color: var(--text-dark);
    font-size: 1.1rem;
    margin-bottom: 40px;
}

.contact-details {
    margin-top: 30px;
}

.contact-item {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
    font-size: 1.1rem;
}

.contact-item i {
    color: var(--accent);
    font-size: 1.5rem;
    margin-right: 20px;
    width: 30px;
    text-align: center;
}

/* Contact Form */
.contact-form {
    background: #112240;
    /* Lighter Navy */
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 10px 30px -15px rgba(2, 12, 27, 0.7);
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: var(--text-light);
    font-weight: 500;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 12px 15px;
    background: #0a192f;
    /* Darker Navy inputs */
    border: 1px solid #233554;
    border-radius: 4px;
    color: var(--white);
    font-family: inherit;
    font-size: 1rem;
    outline: none;
    transition: border-color 0.3s ease;
}

.contact-form input:focus,
.contact-form textarea:focus {
    border-color: var(--accent);
}

.btn-block {
    width: 100%;
    text-align: center;
    margin-top: 10px;
}

/* RESPONSIVE UPDATES */
@media (max-width: 768px) {
    .contact-wrapper {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .contact-info h2 {
        font-size: 2.5rem;
    }
}