:root {
    --teal: #3E9C95;
    --teal-dark: #2B7A72;
    --yellow: #C6A75E;
    --gold: #C6A75E;
    --navy: #0B1C2D;
    --light-gray: #F9FAFB;
    --white: #FFFFFF;
    --gray: #4A5568;
}

body {
    font-family: 'Poppins', 'Inter', sans-serif;
    color: var(--gray);
}

html {
    scroll-behavior: smooth;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    letter-spacing: -0.5px;
}

h1 {
    font-size: 3.5rem;
    line-height: 1.2;
}

h2 {
    font-size: 2.5rem;
    line-height: 1.3;
    color: var(--navy);
}

h3 {
    font-size: 1.75rem;
    color: var(--navy);
}

/* Color Utilities */
.bg-teal { 
    background-color: var(--teal); 
}

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

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

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

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

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

/* Top Bar */
.top-bar {
    padding: 5px 0;
    font-size: 0.9rem;
}

/* Navbar Styling */
.navbar-brand img {
    height: 50px;
    position: absolute;
    top: 0;
    z-index: 1030;
    border-bottom-left-radius: 10px;
    border-bottom-right-radius: 10px;
    
    transition: all 0.3s ease;
}

@media (min-width: 992px) {
    .navbar-brand img {
        height: 50px;
    }
}

/* Premium Navbar */
.navbar {
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
    border-bottom: 1px solid rgba(198, 167, 94, 0.1);
}

.navbar.scrolled {
    /* background-color: rgba(255, 255, 255, 0.95) !important; */
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
}

.navbar.scrolled .nav-link {
    color: var(--white) !important;
}

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

.navbar.scrolled .nav-link.active {
    color: var(--gold) !important;
}

/* Top Bar */
.top-bar {
    padding: 12px 0;
    font-size: 0.9rem;
    background: linear-gradient(135deg, rgba(11, 28, 45, 0.05), rgba(198, 167, 94, 0.05));
    border-bottom: 1px solid rgba(198, 167, 94, 0.1);
}

/* Navbar Links */
.navbar-nav .nav-link {
    color: var(--white) !important;
    font-weight: 600;
    transition: all 0.3s ease;
    position: relative;
}

.navbar-nav .nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--gold);
    transition: width 0.3s ease;
}

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

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

.navbar-nav .nav-link.active {
    color: var(--gold) !important;
}

/* Nav Pills Styling (Vertical Tabs) */
.nav-pills .nav-link {
    color: var(--teal);
    font-weight: 600;
}

.nav-pills .nav-link:hover {
    color: var(--white);
    background-color: var(--teal);
}

.nav-pills .nav-link.active {
    color: var(--white);
    background-color: var(--teal);
}

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, rgba(11, 28, 45, 0.7), rgba(62, 156, 149, 0.3)), url('https://via.placeholder.com/1920x1080?text=EcoMed+Facade');
    background-size: cover;
    background-position: center;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero-section h1 {
    color: var(--white);
    font-weight: 800;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    margin-bottom: 1.5rem;
}

.hero-section p {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    text-shadow: 0 1px 5px rgba(0, 0, 0, 0.2);
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* Decorative Gold Line - Hero */
.hero-decoration {
    position: absolute;
    bottom: 40px;
    right: 60px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.hero-decoration .gold-line {
    width: 3px;
    height: 80px;
    background: linear-gradient(to bottom, var(--gold), transparent);
}

.hero-decoration .gold-text {
    color: var(--gold);
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 2px;
}

/* Section Padding & Backgrounds */
.section-padding {
    padding: 100px 0;
}

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

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

.section-dark {
    background-color: var(--navy);
    color: var(--white);
}

/* Premium Section Header */
.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-header h2 {
    position: relative;
    display: inline-block;
    padding-bottom: 1rem;
}

.section-header h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: var(--teal);
}

.section-header p {
    font-size: 1.1rem;
    color: var(--gray);
    max-width: 600px;
    margin: 1rem auto 0;
}

/* About Section */
.about-image-wrapper {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.about-image-wrapper img {
    width: 100%;
    height: auto;
    transition: transform 0.6s ease;
}

.about-image-wrapper:hover img {
    transform: scale(1.05);
}

.about-badge {
    position: absolute;
    bottom: 30px;
    right: 30px;
    background: var(--teal);
    color: var(--white);
    padding: 20px 25px;
    border-radius: 8px;
    text-align: center;
    font-weight: 700;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.about-badge-number {
    font-size: 2rem;
    display: block;
    color: var(--white);
}

.about-badge-text {
    font-size: 0.85rem;
    letter-spacing: 1px;
}

.gold-border {
    position: absolute;
    top: 20px;
    left: 0;
    width: 4px;
    height: 80px;
    background: var(--gold);
}

/* Doctor/Team Cards */
.doctor-card {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    background: var(--white);
    transition: all 0.4s ease;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(198, 167, 94, 0.1);
}

.doctor-card:hover {
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15);
    transform: translateY(-8px);
}

.doctor-image {
    position: relative;
    overflow: hidden;
    height: 400px;
}

.doctor-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.doctor-card:hover .doctor-image img {
    transform: scale(1.08);
}

.doctor-overlay {
    position: absolute;
    inset: 0;
    background: rgba(11, 28, 45, 0.85);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.doctor-card:hover .doctor-overlay {
    opacity: 1;
}

.doctor-overlay a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: var(--gold);
    color: var(--navy);
    transition: all 0.3s ease;
    font-size: 1.25rem;
}

.doctor-overlay a:hover {
    background: var(--white);
    transform: scale(1.1);
}

.doctor-info {
    padding: 2rem 1.5rem;
    text-align: center;
}

.doctor-name {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--navy);
    margin-bottom: 0.5rem;
}

.doctor-specialty {
    color: var(--gold);
    font-weight: 600;
    font-size: 0.9rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 0.5rem;
}

.doctor-bio {
    color: var(--gray);
    font-size: 0.9rem;
    line-height: 1.5;
}

/* Contact Section */
.contact-card {
    background: var(--white);
    padding: 2.5rem;
    border-radius: 8px;
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;
    margin-bottom: 2rem;
    border-left: 4px solid var(--gold);
    transition: all 0.3s ease;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
}

.contact-card:hover {
    box-shadow: 0 10px 35px rgba(0, 0, 0, 0.1);
    transform: translateX(5px);
}

.contact-icon {
    font-size: 2rem;
    color: var(--gold);
    flex-shrink: 0;
    margin-top: 0.5rem;
}

.contact-info h4 {
    color: var(--navy);
    margin-bottom: 0.5rem;
}

.contact-info p {
    color: var(--gray);
    margin: 0;
}

/* Contact Form */
.contact-form {
    background: var(--white);
    padding: 2.5rem;
    border-radius: 8px;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-label {
    color: var(--navy);
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.form-control {
    border: 1px solid rgba(198, 167, 94, 0.2);
    border-radius: 6px;
    padding: 0.75rem 1rem;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-control:focus {
    border-color: var(--gold);
    box-shadow: 0 0 0 3px rgba(198, 167, 94, 0.1);
    outline: none;
}

/* Premium CTA Button */
.btn-premium {
    background: linear-gradient(135deg, var(--teal), var(--teal-dark));
    color: var(--white);
    border: none;
    padding: 12px 32px;
    border-radius: 6px;
    font-weight: 600;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.btn-premium::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: white;
    transition: left 0.3s ease;
    z-index: -1;
}

.btn-premium:hover {
    color: var(--navy);
    box-shadow: 0 10px 30px rgba(62, 156, 149, 0.3);
    transform: translateY(-2px);
}

.btn-premium:hover::before {
    left: 0;
}

.btn-outline-premium {
    background: transparent;
    color: var(--white);
    border: 2px solid var(--white);
    padding: 10px 30px;
    border-radius: 6px;
    font-weight: 600;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn-outline-premium::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: var(--gold);
    transition: left 0.3s ease;
    z-index: -1;
}

.btn-outline-premium:hover {
    color: var(--white) !important;
    transform: translateY(-2px);
    border-color: var(--white);
}

.btn-outline-premium:hover::before {
    left: 0;
}

/* Footer */
.footer {
    background-color: #05111b;
    color: #CBD5E0;
    padding: 60px 0 20px;
}

.footer-top {
    border-bottom: 1px solid rgba(198, 167, 94, 0.2);
    padding-bottom: 3rem;
    margin-bottom: 2rem;
}

.footer-logo {
    display: flex;
    align-items: center;
    margin-bottom: 2rem;
}

.footer-logo img {
    height: 50px;
    margin-right: 1rem;
}

.footer-col h5 {
    color: var(--gold);
    font-weight: 700;
    margin-bottom: 1rem;
}

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

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

.footer-col ul li a {
    color: #CBD5E0;
    text-decoration: none;
    transition: all 0.3s ease;
}

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

.footer-social {
    display: flex;
    gap: 1rem;
}

.footer-social a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: var(--teal);
    color: var(--white);
    transition: all 0.3s ease;
}

.footer-social a:hover {
    background: var(--white);
    color: var(--teal);
    transform: translateY(-3px);
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(198, 167, 94, 0.2);
    flex-wrap: wrap;
    gap: 1rem;
    color: #A0AEC0;
    font-size: 0.9rem;
}

.footer-legal a {
    color: #A0AEC0;
    text-decoration: none;
    transition: color 0.3s ease;
    margin-left: 1.5rem;
}

.footer-legal a:first-child {
    margin-left: 0;
}

.footer-legal a:hover {
    color: var(--gold);
}

/* Tab Styling */
.nav-tabs .nav-link.active {
    background-color: var(--teal);
    color: white;
    border-color: var(--teal);
}

/* Scroll Animation Styles */
.section-fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease-out;
}

.section-fade-in.animate {
    opacity: 1;
    transform: translateY(0);
}

/* Card Animations */
.card {
    transition: transform 0.3s ease-out, box-shadow 0.3s ease-out;
}

.card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.15) !important;
}

/* Button Animations */
.btn {
    transition: all 0.3s ease-out;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

/* Fade In From Left */
.fade-in-left {
    opacity: 0;
    transform: translateX(-50px);
    transition: all 0.8s ease-out;
}

.fade-in-left.animate {
    opacity: 1;
    transform: translateX(0);
}

/* Fade In From Right */
.fade-in-right {
    opacity: 0;
    transform: translateX(50px);
    transition: all 0.8s ease-out;
}

.fade-in-right.animate {
    opacity: 1;
    transform: translateX(0);
}

/* Scale In Animation */
.scale-in {
    opacity: 0;
    transform: scale(0.9);
    transition: all 0.8s ease-out;
}

.scale-in.animate {
    opacity: 1;
    transform: scale(1);
}

/* Stagger Animation for Children */
.stagger-item {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.6s ease-out;
}

.stagger-item.animate {
    opacity: 1;
    transform: translateY(0);
}

.stagger-item:nth-child(2) {
    transition-delay: 0.1s;
}

.stagger-item:nth-child(3) {
    transition-delay: 0.2s;
}

.stagger-item:nth-child(4) {
    transition-delay: 0.3s;
}

.stagger-item:nth-child(5) {
    transition-delay: 0.4s;
}

.stagger-item:nth-child(6) {
    transition-delay: 0.5s;
}
