:root {
    --primary-color: #1c355e;
    --primary-light: #2a508f;
    --accent-color: #d4af37; /* Gold accent */
    --text-dark: #333333;
    --text-light: #666666;
    --bg-light: #f8f9fa;
    --white: #ffffff;
    --font-main: 'Outfit', sans-serif;
}

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

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

html {
    scroll-behavior: smooth;
}

a {
    text-decoration: none;
    color: inherit;
}

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

.section-padding {
    padding: 100px 0;
}

.bg-light {
    background-color: var(--bg-light);
}

.bg-dark {
    background-color: var(--primary-color);
    color: var(--white);
}

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

/* Typography */
h1, h2, h3, h4 {
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.bg-dark h2, .bg-dark h3 {
    color: var(--white);
}

.section-subtitle {
    display: inline-block;
    color: var(--accent-color);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 10px;
    font-size: 14px;
}

.section-title {
    font-size: 40px;
    line-height: 1.2;
    margin-bottom: 20px;
}

/* Buttons */
.btn-primary {
    display: inline-block;
    background-color: var(--primary-color);
    color: var(--white);
    padding: 12px 30px;
    border-radius: 30px;
    font-weight: 600;
    transition: all 0.3s ease;
    border: 2px solid var(--primary-color);
    cursor: pointer;
}

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

.btn-outline {
    display: inline-block;
    background-color: transparent;
    color: var(--white);
    padding: 12px 30px;
    border-radius: 30px;
    font-weight: 600;
    transition: all 0.3s ease;
    border: 2px solid var(--white);
    cursor: pointer;
}

.btn-outline:hover {
    background-color: var(--white);
    color: var(--primary-color);
}

.btn-large {
    padding: 15px 40px;
    font-size: 18px;
}

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

.navbar.scrolled {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
    padding: 15px 0;
}

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

.logo {
    cursor: pointer;
}
.logo img {
    height: 40px;
    transition: all 0.3s ease;
    filter: brightness(0) invert(1);
}

.navbar.scrolled .logo img {
    filter: none;
}

.nav-links {
    display: flex;
    list-style: none;
    align-items: center;
    gap: 30px;
}

.nav-links li a {
    font-weight: 500;
    color: var(--white);
    transition: color 0.3s ease;
}

.navbar.scrolled .nav-links li a {
    color: var(--text-dark);
}

.navbar.scrolled .nav-links li a.btn-primary {
    color: var(--white);
}

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

.hamburger {
    display: none;
    font-size: 24px;
    color: var(--white);
    cursor: pointer;
}

.navbar.scrolled .hamburger {
    color: var(--primary-color);
}

/* Hero Section */
.hero {
    position: relative;
    height: 100vh;
    min-height: 600px;
    background-image: url('https://nusamedicadental.com/wp-content/uploads/2026/02/about-hero-2048x1366.jpg');
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, rgba(28, 53, 94, 0.9), rgba(28, 53, 94, 0.5));
}

.hero-content {
    position: relative;
    z-index: 1;
    color: var(--white);
    max-width: 800px;
}

.hero-content h1 {
    color: var(--white);
    font-size: 56px;
    line-height: 1.1;
    margin-bottom: 20px;
}

.hero-content p {
    font-size: 20px;
    margin-bottom: 40px;
    opacity: 0.9;
}

.hero-buttons {
    display: flex;
    gap: 20px;
}

/* About Section */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.about-text p {
    margin-bottom: 20px;
    color: var(--text-light);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-top: 40px;
}

.stat-number {
    font-size: 36px;
    color: var(--accent-color);
    margin-bottom: 5px;
}

.stat-item p {
    font-size: 14px;
    font-weight: 600;
    color: var(--primary-color);
}

.glass-card {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 30px 60px rgba(0,0,0,0.1);
}

.glass-card img {
    width: 100%;
    display: block;
    transition: transform 0.5s ease;
}

.glass-card:hover img {
    transform: scale(1.05);
}

.experience-badge {
    position: absolute;
    bottom: -20px;
    right: -20px;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.5);
    padding: 30px;
    border-radius: 50%;
    text-align: center;
    color: var(--primary-color);
    width: 150px;
    height: 150px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    font-weight: 700;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    background: white;
}

.experience-badge i {
    font-size: 30px;
    color: var(--accent-color);
    margin-bottom: 10px;
}

/* Services Section */
.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 50px;
}

.service-card {
    background: var(--white);
    padding: 40px 30px;
    border-radius: 20px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
    border: 1px solid rgba(0,0,0,0.02);
}

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

.service-icon {
    width: 80px;
    height: 80px;
    background: rgba(28, 53, 94, 0.05);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0 auto 20px;
    font-size: 32px;
    color: var(--primary-color);
    transition: all 0.3s ease;
}

.service-card:hover .service-icon {
    background: var(--primary-color);
    color: var(--white);
}

/* Reusable Circular Photo Frame */
.photo-frame-circle {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    overflow: hidden;
    background: #f0f4f8;
    border: 4px solid var(--bg-light);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    position: relative;
    display: flex;
    justify-content: center;
    align-items: flex-end; /* Push to bottom for doctor cropped effect */
    margin: 0 auto;
}

.photo-frame-circle img {
    width: 90%;
    height: auto;
    transition: transform 0.3s ease;
}

/* Facility Frame Specific adjustment */
.facility-frame {
    width: 200px;
    height: 200px;
    align-items: center; /* Center facility image */
    background: #fff;
    margin-top: 20px;
}
.facility-frame img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Team Section (Swiper) */
.team-swiper {
    padding: 20px 10px 60px 10px;
}

.team-card {
    background: var(--white);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
    border: 1px solid rgba(0,0,0,0.02);
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-top: 30px;
    height: 100%;
}

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

.team-card:hover .photo-frame-circle img {
    transform: scale(1.05);
}

.team-info {
    padding: 20px;
    text-align: center;
    width: 100%;
}

.team-info h3 {
    font-size: 16px;
    margin-bottom: 5px;
    color: var(--primary-color);
}

.team-info .role {
    font-size: 13px;
    color: var(--accent-color);
    font-weight: 600;
    margin-bottom: 15px;
}

.credentials {
    font-size: 12px;
    color: var(--text-light);
    border-top: 1px solid #eee;
    padding-top: 15px;
    text-align: left;
}

.credentials p {
    margin-bottom: 10px;
}
.credentials strong {
    color: var(--primary-color);
}

/* Gallery Slider */
.gallery-swiper {
    padding: 20px 10px 60px 10px;
}

.gallery-card {
    background: var(--white);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    border: 1px solid rgba(0,0,0,0.02);
}

.gallery-card:hover .facility-frame img {
    transform: scale(1.05);
}

.gallery-info {
    padding: 20px;
    text-align: center;
    margin-top: 10px;
    width: 100%;
}

.gallery-info p {
    color: var(--text-light);
    font-size: 15px;
}

/* Swiper Customizations */
.swiper-pagination-bullet-active {
    background: var(--accent-color) !important;
}
.swiper-button-next, .swiper-button-prev {
    color: var(--accent-color) !important;
    background: white;
    width: 40px !important;
    height: 40px !important;
    border-radius: 50%;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}
.swiper-button-next:after, .swiper-button-prev:after {
    font-size: 16px !important;
}

/* Developer Mode Styles */
#dev-tools {
    position: fixed;
    bottom: 20px;
    left: 20px;
    background: rgba(0,0,0,0.9);
    padding: 20px;
    border-radius: 10px;
    z-index: 10000;
    color: white;
    width: 200px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    transition: all 0.3s ease;
}
.hidden {
    display: none !important;
}
.dev-header {
    font-weight: 600;
    font-size: 14px;
    text-align: center;
    margin-bottom: 10px;
    color: var(--accent-color);
}

.dev-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(28, 53, 94, 0.7);
    color: white;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 2;
    cursor: pointer;
    font-size: 24px;
}
.hidden-upload {
    display: none;
}

/* Active Dev Mode Styles */
body.dev-mode-active .dev-overlay {
    opacity: 1;
}
body.dev-mode-active .editable-text {
    outline: 1px dashed var(--accent-color);
    padding: 2px;
    cursor: text;
    transition: background 0.2s;
    border-radius: 3px;
}
body.dev-mode-active .editable-text:hover {
    background: rgba(212, 175, 55, 0.1);
}
body.dev-mode-active .editable-text:focus {
    outline: 2px solid var(--primary-color);
    background: white;
    color: var(--text-dark);
}

/* Reviews Section (Elegant) */
.reviews-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 50px;
}

.review-card {
    background: var(--white);
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 15px 35px rgba(0,0,0,0.05);
    position: relative;
    text-align: left;
    transition: transform 0.3s ease;
}

.review-card:hover {
    transform: translateY(-5px);
}

.review-card::before {
    content: '\201C';
    font-family: serif;
    font-size: 80px;
    position: absolute;
    top: -10px;
    right: 20px;
    color: rgba(28, 53, 94, 0.05);
}

.review-card .stars {
    margin-bottom: 20px;
}
.review-card .stars i {
    color: #FFD700;
    font-size: 18px;
    margin-right: 5px;
}

.review-text {
    font-size: 16px;
    font-style: italic;
    color: var(--text-light);
    margin-bottom: 20px;
    line-height: 1.8;
}

.review-author {
    font-weight: 700;
    color: var(--primary-color);
    font-size: 15px;
}

/* Map & Location Split Section */
.location-split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin-bottom: 20px;
}
.map-container {
    width: 100%;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 15px 35px rgba(0,0,0,0.1);
    background: #fff;
}
.location-image-container {
    width: 100%;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 15px 35px rgba(0,0,0,0.1);
    position: relative;
    background: var(--bg-light);
}
.location-img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    display: block;
}

/* Contact Section */
.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    padding: 60px;
    border-radius: 30px;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.contact-info p {
    margin-bottom: 30px;
    opacity: 0.8;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.contact-details a, .contact-details p {
    display: flex;
    align-items: center;
    gap: 15px;
    font-size: 16px;
    transition: color 0.3s ease;
    margin: 0;
}

.address-line {
    align-items: flex-start !important;
}
.address-line i {
    margin-top: 5px;
}

.contact-details a:hover {
    color: var(--accent-color);
}

.contact-details i {
    font-size: 20px;
    color: var(--accent-color);
    width: 24px;
    text-align: center;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.contact-form input, .contact-form textarea {
    width: 100%;
    padding: 15px 20px;
    border: none;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.1);
    color: var(--white);
    font-family: inherit;
    font-size: 16px;
    outline: none;
    transition: background 0.3s ease;
}

.contact-form input::placeholder, .contact-form textarea::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

.contact-form input:focus, .contact-form textarea:focus {
    background: rgba(255, 255, 255, 0.2);
}

/* Footer */
footer {
    background: #0f1c33;
    padding: 60px 0 30px;
    color: rgba(255,255,255,0.7);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-logo {
    height: 40px;
    margin-bottom: 20px;
    filter: brightness(0) invert(1);
    opacity: 0.8;
}

footer h4 {
    color: var(--white);
    font-size: 18px;
    margin-bottom: 20px;
}

.social-links {
    display: flex;
    gap: 15px;
}

.social-links a {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 40px;
    height: 40px;
    background: rgba(255,255,255,0.1);
    border-radius: 50%;
    color: var(--white);
    transition: all 0.3s ease;
}

.social-links a:hover {
    background: var(--accent-color);
    transform: translateY(-3px);
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255,255,255,0.1);
    font-size: 14px;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .reviews-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 992px) {
    .about-grid, .contact-wrapper, .location-split {
        grid-template-columns: 1fr;
    }
    .location-img {
        height: 300px;
    }
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }
    .social-links {
        justify-content: center;
    }
    .hero-content h1 {
        font-size: 40px;
    }
    .experience-badge {
        width: 100px;
        height: 100px;
        padding: 15px;
        font-size: 10px;
    }
    .experience-badge i {
        font-size: 20px;
        margin-bottom: 5px;
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
    }
    .hamburger {
        display: block;
    }
    .services-grid, .stats-grid {
        grid-template-columns: 1fr;
    }
    .hero-buttons {
        flex-direction: column;
    }
    .contact-wrapper {
        padding: 30px;
    }
}
