/* ===== CSS RESET & VARIABLES ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Colors - Dark Blue Theme (close to black) */
    --primary-blue: #0a1728;
    --dark-blue: #050b14;
    --medium-blue: #1a2942;
    --accent-blue: #2d4263;
    --pure-white: #ffffff;
    --off-white: #f8f9fb;
    --text-dark: #1a1a1a;
    --text-light: #6b6b6b;

    /* Gradients */
    --gradient-primary: linear-gradient(135deg, #0a1728 0%, #2d4263 100%);
    --gradient-dark: linear-gradient(135deg, #050b14 0%, #0a1728 100%);
    --gradient-overlay: linear-gradient(135deg, rgba(10, 23, 40, 0.95) 0%, rgba(5, 11, 20, 0.97) 100%);

    /* Spacing */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 2rem;
    --spacing-lg: 4rem;
    --spacing-xl: 6rem;

    /* Typography */
    --font-primary: 'Poppins', sans-serif;
    --font-secondary: 'Outfit', sans-serif;

    /* Transitions */
    --transition-fast: 0.2s ease;
    --transition-medium: 0.3s ease;
    --transition-slow: 0.5s ease;

    /* Shadows */
    --shadow-sm: 0 2px 8px rgba(10, 23, 40, 0.1);
    --shadow-md: 0 4px 20px rgba(10, 23, 40, 0.15);
    --shadow-lg: 0 10px 40px rgba(10, 23, 40, 0.2);
    --shadow-xl: 0 20px 60px rgba(10, 23, 40, 0.25);
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-primary);
    color: var(--text-dark);
    line-height: 1.6;
    overflow-x: hidden;
    background: var(--pure-white);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* ===== NAVIGATION ===== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: transparent;
    transition: all var(--transition-medium);
    padding: 1.5rem 0;
}

.navbar.scrolled {
    background: rgba(5, 11, 20, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow-md);
    padding: 1rem 0;
}

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

.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--pure-white);
    font-family: var(--font-secondary);
}

.logo svg {
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
}

.nav-menu {
    display: flex;
    list-style: none;
    align-items: center;
    gap: 2rem;
}

.nav-link {
    color: var(--pure-white);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition-fast);
    position: relative;
    padding: 0.5rem 0;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--pure-white);
    transition: var(--transition-medium);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.btn-appointment {
    padding: 0.75rem 1.5rem;
    background: var(--pure-white);
    color: var(--primary-blue);
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition-medium);
    box-shadow: var(--shadow-sm);
}

.btn-appointment:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 0.4rem;
    cursor: pointer;
}

.nav-toggle span {
    width: 25px;
    height: 3px;
    background: var(--pure-white);
    border-radius: 3px;
    transition: var(--transition-fast);
}

/* ===== HERO SECTION ===== */
.hero {
    min-height: 100vh;
    position: relative;
    display: flex;
    align-items: center;
    padding: 8rem 0 4rem;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url('magic-dental-studio.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    z-index: -1;
}

.hero-bg::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(10, 23, 40, 0.75) 0%, rgba(5, 11, 20, 0.80) 100%);
    z-index: 1;
}

@keyframes float {

    0%,
    100% {
        transform: translate(0, 0) scale(1);
    }

    50% {
        transform: translate(50px, 50px) scale(1.1);
    }
}

.hero-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    max-width: 900px;
    margin: 0 auto;
}

.hero-text {
    z-index: 1;
}

.hero-title {
    font-size: 4rem;
    font-weight: 700;
    color: var(--pure-white);
    line-height: 1.1;
    margin-bottom: 1.5rem;
    font-family: var(--font-secondary);
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.gradient-text {
    background: linear-gradient(135deg, #ffffff 0%, #c8dff0 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-description {
    font-size: 1.25rem;
    color: rgba(255, 255, 255, 0.95);
    margin-bottom: 2.5rem;
    line-height: 1.8;
    max-width: 700px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    margin-bottom: 3rem;
    justify-content: center;
}

.btn-primary,
.btn-secondary {
    padding: 1rem 2rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: all var(--transition-medium);
    display: inline-block;
}

.btn-primary {
    background: var(--pure-white);
    color: var(--primary-blue);
    box-shadow: var(--shadow-md);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.1);
    color: var(--pure-white);
    border: 2px solid rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(10px);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.5);
    transform: translateY(-3px);
}

.hero-stats {
    display: none;
}

.scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    color: var(--pure-white);
    font-size: 0.875rem;
    opacity: 0.7;
}

.scroll-line {
    width: 2px;
    height: 40px;
    background: linear-gradient(to bottom, var(--pure-white), transparent);
    animation: scrollAnimation 2s ease-in-out infinite;
}

@keyframes scrollAnimation {

    0%,
    100% {
        opacity: 0;
        height: 20px;
    }

    50% {
        opacity: 1;
        height: 40px;
    }
}

/* ===== SECTION COMMON STYLES ===== */
.section-label {
    display: inline-block;
    color: var(--primary-blue);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.875rem;
    margin-bottom: 1rem;
}

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

.section-description {
    font-size: 1.125rem;
    color: var(--text-light);
    line-height: 1.8;
    margin-bottom: 1rem;
}

.section-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 4rem;
}

/* ===== ABOUT SECTION ===== */
.about {
    padding: var(--spacing-xl) 0;
    background: var(--off-white);
}

.about-content {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 4rem;
    align-items: center;
}

.about-image-wrapper {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.about-lab-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.about-image-wrapper::before {
    content: '';
    position: absolute;
    top: -10px;
    left: -10px;
    right: -10px;
    bottom: -10px;
    background: var(--gradient-primary);
    border-radius: 20px;
    z-index: -1;
    opacity: 0.3;
}

.feature-list {
    list-style: none;
    margin-top: 2rem;
}

.feature-list li {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
    padding: 1rem;
    background: var(--pure-white);
    border-radius: 10px;
    transition: var(--transition-medium);
}

.feature-list li:hover {
    transform: translateX(10px);
    box-shadow: var(--shadow-sm);
}

.feature-list svg {
    color: var(--primary-blue);
    flex-shrink: 0;
}

/* ===== SERVICES SECTION ===== */
.services {
    padding: var(--spacing-xl) 0;
    background: var(--pure-white);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.service-card {
    background: var(--pure-white);
    background-image: url('images/service-bg.jpg');
    background-size: cover;
    background-position: center;
    background-blend-mode: overlay;
    padding: 2.5rem 2rem;
    border-radius: 20px;
    box-shadow: var(--shadow-sm);
    transition: all 0.4s ease-in-out;
    text-align: center;
    border: 2px solid transparent;
    position: relative;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.92);
    border-radius: 20px;
    z-index: 0;
    transition: all 1s ease-in-out;
}

.service-card>* {
    position: relative;
    z-index: 1;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-md);
}

.service-card:hover::before {
    background: rgba(255, 255, 255, 0.95);
}

.service-icon {
    width: 140px;
    height: 140px;
    margin: 0 auto 1.5rem;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 1s ease-in-out;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

.service-card:hover .service-icon {
    transform: scale(1.05);
    box-shadow: var(--shadow-md);
}

.service-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 20px;
}

.service-card h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 1rem;
}

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

/* ===== FEATURES SECTION ===== */
.features {
    padding: var(--spacing-xl) 0;
    background: var(--gradient-dark);
    position: relative;
    overflow: hidden;
}



.features .section-label {
    color: var(--accent-blue);
}

.features .section-title {
    color: var(--pure-white);
}

.features-container {
    margin-top: 4rem;
    display: flex;
    flex-direction: column;
    gap: 3rem;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 0;
    background: var(--pure-white);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    transition: transform 0.4s ease-in-out;
}

.feature-item:hover {
    transform: translateY(-8px);
}

.feature-image {
    flex: 1;
    position: relative;
    height: 400px;
    overflow: hidden;
}

.feature-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease-in-out;
}

.feature-item:hover .feature-image img {
    transform: scale(1.1);
}

.feature-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(10, 23, 40, 0.4) 0%, rgba(26, 54, 93, 0.3) 100%);
    transition: opacity 0.4s ease-in-out;
    z-index: 1;
}

.feature-item:hover .feature-overlay {
    opacity: 0.6;
}

.feature-content {
    flex: 1;
    padding: 3rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.feature-number {
    font-size: 3.5rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--accent-blue) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 1rem;
    line-height: 1;
}

.feature-content h3 {
    font-size: 1.75rem;
    color: var(--text-dark);
    margin-bottom: 1rem;
    font-weight: 600;
}

.feature-content p {
    color: var(--text-light);
    line-height: 1.8;
    font-size: 1.05rem;
}

/* ===== CONTACT SECTION ===== */
.contact {
    padding: var(--spacing-xl) 0;
    background: var(--off-white);
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: start;
}

.contact-info {
    background-image: url('images/koridor.png');
    background-size: cover;
    background-position: center;
    padding: 2.5rem;
    border-radius: 20px;
    position: relative;
    overflow: hidden;
}

.contact-info::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.65);
    z-index: 0;
}

.contact-info>* {
    position: relative;
    z-index: 1;
}

.contact-details {
    margin-top: 2rem;
}

.contact-item {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: var(--pure-white);
    border-radius: 15px;
    box-shadow: var(--shadow-sm);
    transition: var(--transition-medium);
}

.contact-item:hover {
    transform: translateX(10px);
    box-shadow: var(--shadow-md);
}

.contact-icon {
    width: 50px;
    height: 50px;
    background: var(--gradient-primary);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.contact-icon svg {
    width: 24px;
    height: 24px;
    color: var(--pure-white);
}

.contact-item h4 {
    font-size: 1rem;
    color: var(--text-dark);
    margin-bottom: 0.25rem;
}

.contact-item p {
    color: var(--text-light);
}

.contact-form-wrapper {
    background: var(--pure-white);
    padding: 3rem;
    border-radius: 20px;
    box-shadow: var(--shadow-sm);
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 1rem 1.25rem;
    border: 2px solid #e5e5e5;
    border-radius: 12px;
    font-family: var(--font-primary);
    font-size: 1rem;
    transition: var(--transition-medium);
    background: var(--off-white);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-blue);
    background: var(--pure-white);
}

.form-group textarea {
    resize: vertical;
    min-height: 100px;
}

.btn-submit {
    padding: 1rem 2rem;
    background: var(--gradient-primary);
    color: var(--pure-white);
    border: none;
    border-radius: 50px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-medium);
    box-shadow: var(--shadow-md);
}

.btn-submit:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}

/* ===== FOOTER ===== */
.footer {
    background: var(--gradient-dark);
    color: var(--pure-white);
    padding: 4rem 0 2rem;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.footer-col p {
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.8;
}

.footer-col h4 {
    font-size: 1.125rem;
    margin-bottom: 1.5rem;
    font-weight: 600;
}

.footer-col ul {
    list-style: none;
}

.footer-col ul li {
    margin-bottom: 0.75rem;
}

.footer-col ul li a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: var(--transition-fast);
}

.footer-col ul li a:hover {
    color: var(--pure-white);
    padding-left: 5px;
}

.footer-bottom {
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
    color: rgba(255, 255, 255, 0.6);
}

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 968px) {
    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 300px;
        height: 100vh;
        background: var(--dark-blue);
        flex-direction: column;
        align-items: flex-start;
        padding: 6rem 2rem 2rem;
        gap: 1.5rem;
        transition: var(--transition-medium);
        box-shadow: -5px 0 20px rgba(0, 0, 0, 0.3);
    }

    .nav-menu.active {
        right: 0;
    }

    .nav-toggle {
        display: flex;
    }

    .hero-content,
    .about-content,
    .contact-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .features-grid {
        grid-template-columns: 1fr;
    }

    .footer-content {
        grid-template-columns: 1fr 1fr;
        gap: 2rem;
    }

    .hero-title {
        font-size: 2.5rem;
    }

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

@media (max-width: 640px) {
    .container {
        padding: 0 1rem;
    }

    .hero {
        padding: 6rem 0 2rem;
    }

    .hero-title {
        font-size: 2rem;
    }

    .hero-buttons {
        flex-direction: column;
    }

    .services-grid {
        grid-template-columns: 1fr;
    }

    .footer-content {
        grid-template-columns: 1fr;
    }

    .contact-form-wrapper {
        padding: 2rem;
    }

    /* Features Section Responsive */
    .feature-item {
        flex-direction: column !important;
    }

    .feature-image {
        height: 250px;
        width: 100%;
    }

    .feature-content {
        padding: 2rem 1.5rem;
    }

    .feature-number {
        font-size: 2.5rem;
    }

    .feature-content h3 {
        font-size: 1.4rem;
    }

    .feature-content p {
        font-size: 1rem;
    }

    :root {
        --spacing-lg: 3rem;
        --spacing-xl: 4rem;
    }
}