/* Unified CSS for Dr. Nabeel Mahomed's Website
   Works for both index page and procedure pages */

/* Base Variables */
:root {
    --primary: #2563eb;
    --primary-dark: #1d4ed8;
    --secondary: #10b981;
    --light: #f8fafc;
    --dark: #1e293b;
    --gray: #64748b;
    --gray-light: #e2e8f0;
}

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

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

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

/* Logo & Image Styles */
.logo-img, .footer-logo-img {
    width: 40px;
    height: 40px;
    object-fit: contain;
}

.hero-logo {
    max-width: 50%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

/* Header Styles */
header {
    background-color: white;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: fixed;
    width: 100%;
    z-index: 1000;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo-text {
    font-weight: 600;
    font-size: 20px;
}

.doctor-title {
    color: var(--gray);
    font-size: 14px;
    font-weight: 500;
}

nav ul {
    display: flex;
    list-style: none;
    gap: 30px;
}

nav a {
    text-decoration: none;
    color: var(--dark);
    font-weight: 500;
    transition: color 0.3s;
}

nav a:hover {
    color: var(--primary);
}

.menu-btn {
    display: none;
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: var(--dark);
}

/* Button Styles (for both appointment and back buttons) */
.appointment-btn, .back-btn {
    background-color: var(--primary);
    color: white;
    border: none;
    border-radius: 5px;
    padding: 10px 20px;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.3s;
    text-decoration: none;
    display: inline-block;
}

.appointment-btn:hover, .back-btn:hover {
    background-color: var(--primary-dark);
}

/* Hero Section */
.hero {
    padding: 180px 0 100px;
    background-color: #f0f9ff;
    position: relative;
    overflow: hidden;
}

.hero-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
}

.hero-text {
    flex: 1;
}

.hero-title {
    font-size: 48px;
    line-height: 1.2;
    margin-bottom: 20px;
    color: var(--dark);
}

.hero-subtitle {
    font-size: 20px;
    color: var(--gray);
    margin-bottom: 30px;
}

.hero-image {
    flex: 1;
    display: flex;
    justify-content: center;
}

.hero-image img {
    max-width: 100%;
    border-radius: 10px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

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

.hero-cta-secondary {
    background-color: white;
    color: var(--primary);
    border: 1px solid var(--primary);
    border-radius: 5px;
    padding: 10px 20px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s;
}

.hero-cta-secondary:hover {
    background-color: var(--primary);
    color: white;
}

/* Section Headers (used across many sections) */
.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-title {
    font-size: 36px;
    margin-bottom: 15px;
    color: var(--dark);
}

.section-subtitle {
    font-size: 18px;
    color: var(--gray);
    max-width: 700px;
    margin: 0 auto;
}

/* Services Section */
.services {
    padding: 100px 0;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.service-card {
    background-color: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s, box-shadow 0.3s;
}

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

.service-img {
    height: 200px;
    background-position: center;
    background-size: cover;
}

.service-content {
    padding: 30px;
}

.service-title {
    font-size: 22px;
    margin-bottom: 15px;
    color: var(--dark);
}

.service-text {
    color: var(--gray);
    margin-bottom: 20px;
}

.service-link {
    display: inline-flex;
    align-items: center;
    color: var(--primary);
    text-decoration: none;
    font-weight: 500;
    gap: 5px;
    transition: gap 0.3s;
}

.service-link:hover {
    gap: 10px;
}

/* About Section */
.about {
    padding: 100px 0;
    background-color: #f8fafc;
}

.about-content {
    display: flex;
    align-items: center;
    gap: 60px;
}

.about-image {
    flex: 1;
}

.about-image img {
    width: 100%;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.about-text {
    flex: 1;
}

.about-title {
    font-size: 36px;
    margin-bottom: 20px;
    color: var(--dark);
}

.about-subtitle {
    font-size: 18px;
    color: var(--gray);
    margin-bottom: 20px;
}

.about-description {
    margin-bottom: 30px;
    color: var(--gray);
}

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

.stat {
    text-align: center;
}

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

.stat-label {
    color: var(--gray);
}

.stats-section {
    padding: 80px 0;
    background-color: #f0f9ff;
    margin-top: 60px;
    margin-bottom: 60px;
}

.stats-container {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    gap: 40px;
}

.stat-item {
    text-align: center;
    min-width: 200px;
}

.stat-number {
    font-size: 48px;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 10px;
}

.stat-label {
    font-size: 18px;
    color: var(--gray);
    font-weight: 500;
}

/* Locations Section */
.locations {
    padding: 100px 0;
}

.locations-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.location-card {
    background-color: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s, box-shadow 0.3s;
}

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

.location-img {
    height: 200px;
    background-position: center;
    background-size: cover;
}

.location-content {
    padding: 30px;
}

.location-title {
    font-size: 22px;
    margin-bottom: 15px;
    color: var(--dark);
}

.location-address {
    color: var(--gray);
    margin-bottom: 20px;
}

.location-details {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.location-detail {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--gray);
}

.location-detail i {
    color: var(--primary);
    font-size: 18px;
    width: 24px;
}

/* Appointment Section */
.appointment {
    padding: 100px 0;
    background-color: #f0f9ff;
}

.appointment-content {
    display: flex;
    gap: 60px;
    align-items: center;
}

.appointment-text {
    flex: 1;
}

.appointment-title {
    font-size: 36px;
    margin-bottom: 20px;
    color: var(--dark);
}

.appointment-description {
    color: var(--gray);
    margin-bottom: 30px;
}

.appointment-form-container {
    flex: 1;
    background-color: white;
    border-radius: 10px;
    padding: 40px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

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

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

.form-input,
.form-select {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid var(--gray-light);
    border-radius: 5px;
    font-family: 'Poppins', sans-serif;
    font-size: 14px;
    transition: border-color 0.3s;
}

.form-input:focus,
.form-select:focus {
    border-color: var(--primary);
    outline: none;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.submit-btn {
    width: 100%;
    background-color: var(--primary);
    color: white;
    border: none;
    border-radius: 5px;
    padding: 12px;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.3s;
    font-family: 'Poppins', sans-serif;
    font-size: 16px;
}

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

/* Footer */
footer {
    background-color: var(--dark);
    color: white;
    padding: 80px 0 30px;
}

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

.footer-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
}

.footer-logo-icon {
    color: white;
    font-size: 24px;
}

.footer-logo-text {
    font-weight: 600;
    font-size: 20px;
    color: white;
}

.footer-description {
    color: #a3a3a3;
    margin-bottom: 20px;
}

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

.social-link {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-decoration: none;
    transition: background-color 0.3s;
}

.social-link:hover {
    background-color: var(--primary);
}

.footer-title {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 20px;
    color: white;
}

.footer-links {
    list-style: none;
}

.footer-link {
    margin-bottom: 12px;
}

.footer-link a {
    color: #a3a3a3;
    text-decoration: none;
    transition: color 0.3s;
}

.footer-link a:hover {
    color: white;
}

.contact-info {
    list-style: none;
}

.contact-item {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
    color: #a3a3a3;
}

.contact-item i {
    color: var(--primary);
}

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

/* Procedure Page Specific Styles */
.page-content {
    padding: 120px 0 80px;
}

.page-header {
    text-align: center;
    margin-bottom: 60px;
}

.page-title {
    font-size: 36px;
    margin-bottom: 15px;
    color: var(--dark);
}

.page-subtitle {
    font-size: 18px;
    color: var(--gray);
    max-width: 700px;
    margin: 0 auto;
}

.content-section {
    margin-bottom: 60px;
}

.content-section .section-title {
    font-size: 24px;
    margin-bottom: 20px;
    color: var(--dark);
    position: relative;
    padding-left: 15px;
    text-align: left;
}

.content-section .section-title::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 5px;
    background-color: var(--primary);
    border-radius: 20px;
}

.content-text {
    color: var(--gray);
    margin-bottom: 20px;
}

.content-image {
    width: 100%;
    border-radius: 10px;
    margin: 30px 0;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin: 40px 0;
}

.info-card {
    background-color: white;
    border-radius: 10px;
    padding: 30px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s, box-shadow 0.3s;
}

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

.info-icon {
    color: var(--primary);
    font-size: 36px;
    margin-bottom: 20px;
}

.info-title {
    font-size: 20px;
    margin-bottom: 15px;
    color: var(--dark);
}

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

.faq-item {
    margin-bottom: 20px;
}

.faq-question {
    font-size: 18px;
    margin-bottom: 10px;
    color: var(--dark);
    font-weight: 600;
}

.faq-answer {
    color: var(--gray);
}

.cta-section {
    background-color: #f0f9ff;
    padding: 60px 0;
    text-align: center;
    border-radius: 10px;
    margin: 60px 0;
}

.cta-title {
    font-size: 28px;
    margin-bottom: 20px;
    color: var(--dark);
}

.cta-text {
    color: var(--gray);
    max-width: 700px;
    margin: 0 auto 30px;
}

.cta-btn {
    background-color: var(--primary);
    color: white;
    border: none;
    border-radius: 5px;
    padding: 12px 25px;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.3s;
    text-decoration: none;
    display: inline-block;
}

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

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

@keyframes slideInLeft {
    from { opacity: 0; transform: translateX(-50px); }
    to { opacity: 1; transform: translateX(0); }
}

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

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

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
    40% { transform: translateY(-20px); }
    60% { transform: translateY(-10px); }
}

.fade-in {
    opacity: 0;
    animation: fadeIn 0.8s ease forwards;
}

.slide-in-left {
    opacity: 0;
    animation: slideInLeft 0.8s ease forwards;
}

.slide-in-right {
    opacity: 0;
    animation: slideInRight 0.8s ease forwards;
}

.pulse {
    animation: pulse 2s infinite;
}

.bounce {
    animation: bounce 2s ease infinite;
}

.animate-on-scroll {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.animate-on-scroll.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Mobile Menu */
.mobile-menu {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background-color: white;
    z-index: 2000;
    padding: 20px;
    transform: translateX(-100%);
    transition: transform 0.3s;
}

.mobile-menu.active {
    transform: translateX(0);
}

.mobile-menu-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
}

.close-menu {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: var(--dark);
}

.mobile-nav ul {
    list-style: none;
}

.mobile-nav li {
    margin-bottom: 20px;
}

.mobile-nav a {
    text-decoration: none;
    color: var(--dark);
    font-size: 18px;
    font-weight: 500;
}

/* Responsive Styles */
@media (max-width: 992px) {
    .hero-content,
    .about-content,
    .appointment-content {
        flex-direction: column;
    }
    
    .footer-content {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    .menu-btn {
        display: block;
    }
    
    nav {
        display: none;
    }
    
    .hero-title {
        font-size: 36px;
    }
    
    .section-title {
        font-size: 28px;
    }
    
    .stats {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .stats-container {
        flex-direction: column;
        align-items: center;
    }
    
    .page-content {
        padding-top: 150px; /* Extra padding for mobile to prevent overlap */
    }
}

/* Fix for Back to Home button formatting */
.back-btn {
    white-space: nowrap;
    padding: 10px 20px;
    line-height: 1.2;
    text-align: center;
    font-size: 15px;
}

/* Add to style.css */
.header-buttons {
    display: flex;
    align-items: center;
    gap: 15px;
}

/* Ensure menu button is properly positioned */
.menu-btn {
    order: 2; /* Makes hamburger appear after back button */
}

/* Ensure header buttons wrap properly on mobile */
@media (max-width: 768px) {
    .header-buttons {
        gap: 10px;
    }
    
    .back-btn {
        order: 1;
    }
    
    .menu-btn {
        order: 2;
        display: block !important; /* Force show on mobile */
    }
}

/* Make sure header content has proper spacing */
.header-content {
    gap: 20px;
}

/* Add to style.css */
.page-content {
    padding-top: 150px; /* Increased from 120px */
}

@media (max-width: 768px) {
    .page-content {
        padding-top: 180px; /* Extra space for mobile */
    }
    
    /* Ensure fixed header doesn't overlap */
    header {
        position: fixed;
        top: 0;
        width: 100%;
        z-index: 1000;
        background: white;
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    }
    
    /* Adjust logo size on mobile */
    .logo-img {
        width: 35px;
        height: 35px;
    }
}
