/* ==========================================
   Dr. Walaa Shehab Website - Main Stylesheet
   Brand Colors: Teal #17a2a2, Navy #2c3854
   Target: 75% Female, 25% Male
   ========================================== */

/* Font Faces */
@font-face {
    font-family: 'GE Dinar Two';
    src: url('../fonts/ArbFONTS-GE_Dinar_Two_Medium.otf') format('opentype');
    font-weight: 500;
    font-display: swap;
}

@font-face {
    font-family: 'GE Dinar Two Light';
    src: url('../fonts/ArbFONTS-GE_Dinar_Two_Light.otf') format('opentype');
    font-weight: 300;
    font-display: swap;
}

@font-face {
    font-family: 'Candara';
    src: url('../fonts/candara.ttf') format('truetype');
    font-weight: normal;
    font-display: swap;
}

/* CSS Variables */
:root {
    --primary-teal: #17a2a2;
    --dark-navy: #2c3854;
    --light-teal: #4db8b8;
    --bg-light: #f5f9f9;
    --white: #ffffff;
    --text-dark: #2c3854;
    --text-gray: #6b7280;
    --shadow-sm: 0 2px 10px rgba(23, 162, 162, 0.08);
    --shadow-md: 0 4px 20px rgba(23, 162, 162, 0.12);
    --shadow-lg: 0 10px 40px rgba(23, 162, 162, 0.15);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: 'GE Dinar Two Light', 'Candara', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    direction: rtl;
    color: var(--text-dark);
    line-height: 1.8;
    background: var(--white);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'GE Dinar Two', 'Candara', sans-serif;
    font-weight: 500;
    line-height: 1.3;
    color: var(--dark-navy);
}

h1 { font-size: clamp(2rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.75rem, 4vw, 2.5rem); }
h3 { font-size: clamp(1.25rem, 3vw, 1.75rem); }
h4 { font-size: clamp(1.1rem, 2.5vw, 1.25rem); }

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 clamp(1rem, 3vw, 2rem);
}

/* ==========================================
   Header & Navigation
   ========================================== */

.header {
    background: var(--white);
    box-shadow: var(--shadow-sm);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    transition: var(--transition);
}

.header.scrolled {
    box-shadow: var(--shadow-md);
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.logo img {
    height: 90px;
    width: auto;
}

.logo h1 {
    font-size: 1.5rem;
    color: var(--primary-teal);
    margin: 0;
}

.logo p {
    font-size: 0.85rem;
    color: var(--text-gray);
    margin: 0;
}

.main-nav ul {
    display: flex;
    list-style: none;
    gap: 2rem;
    align-items: center;
    margin: 0;
    padding: 0;
}

.main-nav a {
    color: var(--text-dark);
    font-weight: 500;
    font-size: 1rem;
    position: relative;
    padding: 0.5rem 0;
}

.main-nav a::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 0;
    height: 2px;
    background: var(--primary-teal);
    transition: width 0.3s ease;
}

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

.main-nav a:hover,
.main-nav a.active {
    color: var(--primary-teal);
}

/* Dropdown Menu */
.dropdown {
    position: relative;
}

.dropbtn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
}

.dropdown-content {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    background: var(--white);
    min-width: 250px;
    box-shadow: var(--shadow-lg);
    border-radius: 10px;
    padding: 1rem 0;
    margin-top: 0.5rem;
    z-index: 1000;
}

.dropdown:hover .dropdown-content {
    display: block;
}

.dropdown-content a {
    display: block;
    padding: 0.75rem 1.5rem;
    color: var(--text-dark);
    font-size: 0.95rem;
    transition: var(--transition);
}

.dropdown-content a:hover {
    background: var(--bg-light);
    color: var(--primary-teal);
    padding-right: 2rem;
}

.mobile-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--primary-teal);
    cursor: pointer;
    padding: 0.5rem;
}

/* ==========================================
   Hero Section
   ========================================== */

.hero {
    margin-top: 80px;
    background: linear-gradient(135deg, #f0fdfa 0%, #ffffff 100%);
    padding: clamp(3rem, 8vw, 6rem) 2rem;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -10%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(23, 162, 162, 0.06) 0%, transparent 70%);
    border-radius: 50%;
}

.hero-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    position: relative;
    z-index: 1;
}

.hero-content {
    animation: slideInRight 0.8s ease-out;
}

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

.hero-badge {
    display: inline-block;
    background: linear-gradient(135deg, var(--primary-teal), #14b8a6);
    color: var(--white);
    padding: 0.5rem 1.5rem;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 500;
    margin-bottom: 1.5rem;
    box-shadow: 0 4px 15px rgba(23, 162, 162, 0.3);
}

.hero h1 {
    margin-bottom: 1rem;
}

.hero h2 {
    font-size: clamp(1.25rem, 3vw, 1.75rem);
    color: var(--text-gray);
    font-weight: 300;
    margin-bottom: 1.5rem;
}

.hero .highlight {
    color: var(--primary-teal);
    position: relative;
}

.hero-subtitle {
    font-size: clamp(1rem, 2vw, 1.15rem);
    color: var(--text-gray);
    margin-bottom: 2rem;
    line-height: 1.8;
}

.cta-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 3rem;
}

.btn {
    padding: 1rem 2rem;
    border-radius: 50px;
    font-size: 1.05rem;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 0.7rem;
    transition: var(--transition);
    border: none;
    cursor: pointer;
    font-family: inherit;
}

.btn-primary {
    background: linear-gradient(135deg, #25d366, #20ba5a);
    color: var(--white);
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.3);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 25px rgba(37, 211, 102, 0.4);
}

.btn-secondary {
    background: var(--white);
    color: var(--primary-teal);
    border: 2px solid var(--primary-teal);
}

.btn-secondary:hover {
    background: var(--primary-teal);
    color: var(--white);
    transform: translateY(-3px);
}

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

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

.stat-number {
    font-size: 2.5rem;
    font-weight: 500;
    color: var(--primary-teal);
    display: block;
    font-family: 'GE Dinar Two', sans-serif;
}

.stat-label {
    font-size: 0.95rem;
    color: var(--text-gray);
    margin-top: 0.5rem;
}

.hero-image {
    position: relative;
    animation: fadeInScale 1s ease-out;
}

@keyframes fadeInScale {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.hero-image img {
    width: 100%;
    max-width: 500px;
    border-radius: 30px;
    box-shadow: var(--shadow-lg);
}

/* ==========================================
   Section Styles
   ========================================== */

section {
    padding: clamp(3rem, 8vw, 5rem) 2rem;
}

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

.section-header {
    text-align: center;
    margin-bottom: 4rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.section-badge {
    display: inline-block;
    color: var(--primary-teal);
    font-weight: 500;
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 1rem;
}

.section-title {
    margin-bottom: 1rem;
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--text-gray);
    line-height: 1.8;
}

/* ==========================================
   Services Section
   ========================================== */

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

.service-category {
    background: var(--white);
    padding: 2.5rem;
    border-radius: 20px;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    border: 1px solid rgba(23, 162, 162, 0.1);
}

.service-category:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-teal);
}

.category-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--primary-teal), var(--light-teal));
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    font-size: 2.5rem;
    color: var(--white);
    box-shadow: 0 4px 15px rgba(23, 162, 162, 0.2);
}

.service-category h3 {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    color: var(--dark-navy);
}

.service-list {
    list-style: none;
    margin-bottom: 1.5rem;
}

.service-list li {
    padding: 0.75rem 0;
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    font-size: 1.05rem;
    color: var(--text-dark);
    border-bottom: 1px solid rgba(23, 162, 162, 0.1);
}

.service-list li:last-child {
    border-bottom: none;
}

.service-list i {
    color: var(--primary-teal);
    font-size: 1.1rem;
    margin-top: 0.2rem;
    flex-shrink: 0;
}

.service-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--primary-teal);
    font-weight: 500;
    font-size: 1.05rem;
    transition: var(--transition);
}

.service-link:hover {
    gap: 1rem;
    color: var(--dark-navy);
}

/* ==========================================
   Why Us Section
   ========================================== */

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.feature-card {
    text-align: center;
    padding: 2rem;
    background: var(--white);
    border-radius: 15px;
    transition: var(--transition);
}

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

.feature-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, var(--primary-teal), var(--light-teal));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    font-size: 2rem;
    color: var(--white);
}

.feature-card h3 {
    font-size: 1.25rem;
    margin-bottom: 1rem;
}

.feature-card p {
    color: var(--text-gray);
    line-height: 1.7;
}

/* ==========================================
   CTA Section
   ========================================== */

.cta-section {
    background: linear-gradient(135deg, var(--primary-teal), var(--light-teal));
    color: var(--white);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 40%;
    height: 100%;
    background: rgba(255, 255, 255, 0.05);
    transform: skewX(-15deg);
}

.cta-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
    margin: 0 auto;
}

.cta-section h2 {
    color: var(--white);
    margin-bottom: 1.5rem;
}

.cta-section p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    opacity: 0.95;
}

.cta-section .btn {
    background: var(--white);
    color: var(--primary-teal);
    font-size: 1.1rem;
    padding: 1.25rem 2.5rem;
}

.cta-section .btn:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

/* ==========================================
   Footer
   ========================================== */

.footer {
    background: var(--dark-navy);
    color: rgba(255, 255, 255, 0.9);
    padding: 3rem 2rem 1.5rem;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
    margin-bottom: 2rem;
}

.footer-section h3 {
    color: var(--white);
    margin-bottom: 1.5rem;
    font-size: 1.25rem;
}

.footer-section p {
    line-height: 1.8;
    opacity: 0.9;
}

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

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

.footer-links a {
    color: rgba(255, 255, 255, 0.8);
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.footer-links a:hover {
    color: var(--primary-teal);
    padding-right: 0.5rem;
}

.footer-links i {
    color: var(--primary-teal);
    font-size: 0.9rem;
}

.social-links {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
}

.social-links a {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    transition: var(--transition);
}

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

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 1.5rem;
    text-align: center;
    font-size: 0.95rem;
    opacity: 0.8;
}

/* ==========================================
   WhatsApp Float Button
   ========================================== */

.whatsapp-float {
    position: fixed;
    bottom: 30px;
    left: 30px;
    width: 60px;
    height: 60px;
    background: #25D366;
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
    z-index: 999;
    transition: var(--transition);
    animation: pulse 2s infinite;
}

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

.whatsapp-float:hover {
    transform: scale(1.15);
    box-shadow: 0 6px 25px rgba(37, 211, 102, 0.6);
}

/* ==========================================
   Responsive Design
   ========================================== */

@media (max-width: 968px) {
    .hero-container {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }
    
    .hero-image {
        order: -1;
    }
    
    .hero-image img {
        margin: 0 auto;
    }
    
    .cta-buttons {
        justify-content: center;
    }
    
    .hero-stats {
        grid-template-columns: repeat(3, 1fr);
        gap: 1rem;
    }
}

@media (max-width: 768px) {
    .main-nav {
        position: fixed;
        top: 80px;
        right: -100%;
        width: 80%;
        max-width: 300px;
        height: calc(100vh - 80px);
        background: var(--white);
        box-shadow: var(--shadow-lg);
        transition: right 0.3s ease;
        padding: 2rem;
    }
    
    .main-nav.active {
        right: 0;
    }
    
    .main-nav ul {
        flex-direction: column;
        gap: 0;
        align-items: flex-start;
    }
    
    .main-nav li {
        width: 100%;
        border-bottom: 1px solid rgba(23, 162, 162, 0.1);
    }
    
    .main-nav a {
        display: block;
        padding: 1rem 0;
        width: 100%;
    }
    
    .dropdown-content {
        position: static;
        box-shadow: none;
        padding: 0 0 0 1rem;
        margin-top: 0;
        background: var(--bg-light);
    }
    
    .mobile-toggle {
        display: block;
    }
    
    .hero-stats {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .stat-number {
        font-size: 2rem;
    }
}

@media (max-width: 480px) {
    .nav-container {
        padding: 1rem;
    }
    
    .logo h1 {
        font-size: 1.25rem;
    }
    
    .logo p {
        display: none;
    }
    
    .btn {
        padding: 0.875rem 1.5rem;
        font-size: 0.95rem;
    }
    
    .whatsapp-float {
        bottom: 20px;
        left: 20px;
        width: 50px;
        height: 50px;
        font-size: 1.5rem;
    }
}

/* ==========================================
   Utility Classes
   ========================================== */

.text-center { text-align: center; }
.text-teal { color: var(--primary-teal); }
.text-navy { color: var(--dark-navy); }
.mb-1 { margin-bottom: 1rem; }
.mb-2 { margin-bottom: 2rem; }
.mb-3 { margin-bottom: 3rem; }
.mt-1 { margin-top: 1rem; }
.mt-2 { margin-top: 2rem; }
.mt-3 { margin-top: 3rem; }
