/* CSS Variables based on El Badry Pharmacy branding */
:root {
    --primary-color: #0b807a;       /* Teal/Dark Cyan */
    --primary-light: #12b0a9;       /* Lighter Teal */
    --primary-dark: #075e5a;        /* Darker Teal */
    --secondary-color: #0a2442;     /* Navy Blue */
    --secondary-light: #16365c;     /* Lighter Navy */
    
    --bg-color: #f2fafa;            /* Very light cyan/white */
    --white: #ffffff;
    --text-dark: #1a2a3a;
    --text-gray: #4a5a6a;
    --border-color: #d1e5e4;
    
    --success-color: #059669;
    --error-color: #dc2626;
    
    --font-family: 'Tajawal', sans-serif;
    
    /* Modern Glassmorphism variables */
    --glass-bg: rgba(255, 255, 255, 0.85);
    --glass-border: rgba(11, 128, 122, 0.2);
    --glass-shadow: 0 8px 32px 0 rgba(10, 36, 66, 0.08);
}

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

html {
    scroll-behavior: smooth;
}

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

::selection {
    background-color: var(--primary-light);
    color: var(--white);
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

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

/* Background Pattern */
.bg-pattern {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -1;
    background-color: var(--bg-color);
    background-image: radial-gradient(var(--primary-color) 0.5px, transparent 0.5px), radial-gradient(var(--primary-color) 0.5px, var(--bg-color) 0.5px);
    background-size: 20px 20px;
    background-position: 0 0, 10px 10px;
    opacity: 0.15;
}

/* Navbar */
.navbar {
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 4px 20px rgba(0,0,0,0.03);
    transition: all 0.3s ease;
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
}

.logo a {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.logo h1 {
    color: var(--secondary-color);
    font-size: 28px;
    font-weight: 900;
    letter-spacing: -0.5px;
    line-height: 1.1;
}

.logo h1 span {
    color: var(--primary-color);
}

.logo .en-logo {
    font-size: 13px;
    color: var(--primary-color);
    letter-spacing: 2px;
    font-weight: 700;
}

nav {
    display: flex;
    align-items: center;
    gap: 30px;
}

nav a {
    font-weight: 700;
    font-size: 17px;
    color: var(--secondary-color);
    position: relative;
}

nav a:not(.btn-primary)::after {
    content: '';
    position: absolute;
    bottom: -6px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 3px;
    background-color: var(--primary-color);
    border-radius: 2px;
    transition: width 0.3s ease;
}

nav a:hover:not(.btn-primary)::after, 
nav a.active:not(.btn-primary)::after {
    width: 100%;
}

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

/* Buttons */
.btn-primary, .btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 12px 28px;
    border-radius: 12px;
    font-weight: 800;
    font-size: 16px;
    border: none;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-light) 100%);
    color: var(--white) !important;
    box-shadow: 0 4px 15px rgba(11, 128, 122, 0.3);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(11, 128, 122, 0.4);
    background: linear-gradient(135deg, var(--primary-light) 0%, var(--primary-color) 100%);
}

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

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

.btn-large {
    padding: 16px 36px;
    font-size: 18px;
}

.btn-outline {
    background-color: transparent;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    padding: 10px 24px;
    border-radius: 8px;
    font-weight: 700;
    display: inline-block;
}

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

/* Pulse animation for CTA */
.pulse-btn {
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(11, 128, 122, 0.6); }
    70% { box-shadow: 0 0 0 15px rgba(11, 128, 122, 0); }
    100% { box-shadow: 0 0 0 0 rgba(11, 128, 122, 0); }
}

/* Hero Section */
.hero {
    position: relative;
    padding: 100px 0 120px;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -50%; right: -20%;
    width: 800px; height: 800px;
    background: radial-gradient(circle, rgba(11,128,122,0.08) 0%, rgba(255,255,255,0) 70%);
    border-radius: 50%;
    z-index: -1;
}

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

.text-content {
    flex: 1.2;
}

.badge {
    display: inline-block;
    padding: 6px 16px;
    background-color: rgba(11, 128, 122, 0.1);
    color: var(--primary-color);
    border-radius: 50px;
    font-weight: 800;
    font-size: 15px;
    margin-bottom: 25px;
    border: 1px solid rgba(11, 128, 122, 0.2);
}

.text-content h2 {
    font-size: 55px;
    color: var(--secondary-color);
    margin-bottom: 25px;
    line-height: 1.25;
    font-weight: 900;
}

.text-content h2 .highlight {
    color: var(--primary-color);
    position: relative;
    z-index: 1;
}

.text-content h2 .highlight::after {
    content: '';
    position: absolute;
    bottom: 5px; right: 0;
    width: 100%; height: 15px;
    background-color: rgba(11, 128, 122, 0.2);
    z-index: -1;
    border-radius: 4px;
}

.text-content p {
    font-size: 20px;
    color: var(--text-gray);
    margin-bottom: 40px;
    line-height: 1.8;
    max-width: 90%;
}

.actions {
    display: flex;
    gap: 20px;
}

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

.image-content::after {
    content: '';
    position: absolute;
    width: 100%; height: 100%;
    background: radial-gradient(circle, var(--primary-light) 0%, transparent 60%);
    opacity: 0.1;
    scale: 1.5;
    z-index: -1;
}

.hero-logo-img {
    width: 100%;
    max-width: 450px;
    height: auto;
    object-fit: contain;
    filter: drop-shadow(0 20px 40px rgba(11, 128, 122, 0.25));
}

.float-anim {
    animation: float 6s ease-in-out infinite;
}

@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-20px); }
    100% { transform: translateY(0px); }
}

/* Glassmorphism Cards */
.glass-card {
    background: var(--glass-bg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--glass-border);
    box-shadow: var(--glass-shadow);
    border-radius: 24px;
}

/* Features Section */
.features {
    padding: 100px 0;
    background-color: transparent;
    position: relative;
    z-index: 10;
}

.section-title {
    text-align: center;
    margin-bottom: 60px;
}

.section-title h2 {
    font-size: 40px;
    color: var(--secondary-color);
    font-weight: 900;
}

.section-title h2 span {
    color: var(--primary-color);
}

.section-title p {
    font-size: 18px;
    color: var(--text-gray);
    margin-top: 10px;
}

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

.feature-card {
    padding: 50px 40px;
    text-align: center;
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.feature-card:hover {
    transform: translateY(-15px);
    box-shadow: 0 20px 40px rgba(10, 36, 66, 0.12);
    border-color: rgba(11, 128, 122, 0.4);
}

.feature-card .icon-wrapper {
    width: 80px; height: 80px;
    margin: 0 auto 25px;
    background: linear-gradient(135deg, rgba(11, 128, 122, 0.1), rgba(11, 128, 122, 0.05));
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 40px;
    color: var(--primary-color);
}

.feature-card h3 {
    color: var(--secondary-color);
    font-size: 22px;
    margin-bottom: 15px;
    font-weight: 800;
}

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

/* Contact Section */
.contact-section {
    padding: 80px 0 120px;
}

.contact-card {
    display: flex;
    overflow: hidden;
    padding: 0;
}

.contact-info {
    flex: 1;
    padding: 60px;
}

.contact-info h2 {
    font-size: 36px;
    color: var(--secondary-color);
    font-weight: 900;
}

.contact-info h2 span {
    color: var(--primary-color);
}

.contact-info > p {
    font-size: 18px;
    color: var(--text-gray);
    margin-bottom: 40px;
}

.info-item {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    margin-bottom: 30px;
}

.info-icon {
    width: 50px; height: 50px;
    background-color: rgba(11, 128, 122, 0.1);
    color: var(--primary-color);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.info-text strong {
    display: block;
    color: var(--secondary-color);
    font-size: 18px;
    margin-bottom: 5px;
}

.info-text span {
    color: var(--text-gray);
    font-size: 16px;
}

.phone-num {
    font-size: 22px !important;
    font-weight: 800;
    color: var(--primary-color) !important;
    letter-spacing: 1px;
}

.contact-map {
    flex: 1;
    background: linear-gradient(135deg, #e0f2f1 0%, #b2dfdb 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 400px;
}

.map-placeholder {
    text-align: center;
    background: rgba(255,255,255,0.9);
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
}

.map-icon {
    font-size: 50px;
    margin-bottom: 15px;
}

.map-placeholder p {
    font-weight: 700;
    color: var(--secondary-color);
    margin-bottom: 20px;
    font-size: 20px;
}

/* Order Page Enhancements */
.order-body {
    background-color: var(--bg-color);
}

.order-header {
    margin-bottom: 40px;
}

.order-header h2 {
    font-size: 42px;
    color: var(--secondary-color);
    font-weight: 900;
}

.order-header h2 span {
    color: var(--primary-color);
}

.order-header p {
    font-size: 18px;
    color: var(--text-gray);
    max-width: 600px;
    margin: 15px auto 0;
}

.form-wrapper {
    max-width: 750px;
    margin: 0 auto;
    padding: 50px;
}

.form-anim {
    animation: slideUp 0.8s cubic-bezier(0.165, 0.84, 0.44, 1) forwards;
}

@keyframes slideUp {
    from { opacity: 0; transform: translateY(40px); }
    to { opacity: 1; transform: translateY(0); }
}

.input-row {
    display: flex;
    gap: 20px;
}

.input-row .input-group {
    flex: 1;
}

.input-group {
    margin-bottom: 25px;
}

.input-group label {
    display: block;
    margin-bottom: 10px;
    font-weight: 800;
    color: var(--secondary-color);
    font-size: 16px;
}

.required {
    color: var(--error-color);
}

.input-group input,
.input-group textarea {
    width: 100%;
    padding: 16px 20px;
    border: 2px solid var(--border-color);
    border-radius: 12px;
    font-family: inherit;
    font-size: 16px;
    transition: all 0.3s ease;
    background-color: rgba(255, 255, 255, 0.9);
}

.input-group input:focus,
.input-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 4px rgba(11, 128, 122, 0.15);
    background-color: var(--white);
    transform: translateY(-2px);
}

.form-note {
    text-align: center;
    margin-top: 20px;
    font-size: 14px;
    color: var(--text-gray);
}

.btn-submit {
    width: 100%;
    margin-top: 10px;
    padding: 18px;
    font-size: 20px;
    border-radius: 12px;
}

.spinner {
    display: inline-block;
    width: 20px; height: 20px;
    border: 3px solid rgba(255,255,255,0.3);
    border-radius: 50%;
    border-top-color: #fff;
    animation: spin 1s ease-in-out infinite;
    margin-left: 10px;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.alert {
    padding: 18px 20px;
    border-radius: 12px;
    margin-bottom: 25px;
    font-weight: 700;
    font-size: 16px;
    text-align: center;
    animation: fadeIn 0.5s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.alert-success {
    background-color: rgba(5, 150, 105, 0.1);
    color: var(--success-color);
    border: 2px solid rgba(5, 150, 105, 0.3);
}

.alert-error {
    background-color: rgba(220, 38, 38, 0.1);
    color: var(--error-color);
    border: 2px solid rgba(220, 38, 38, 0.3);
}

/* Footer */
footer {
    background-color: var(--secondary-color);
    color: var(--white);
    padding: 60px 0 30px;
    position: relative;
    border-top: 5px solid var(--primary-color);
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.footer-logo h3 {
    font-size: 30px;
    font-weight: 900;
    margin-bottom: 5px;
}

.footer-logo h3 span {
    color: var(--primary-light);
}

.footer-logo p {
    color: #a0aec0;
    font-size: 16px;
    margin-bottom: 40px;
}

.footer-bottom {
    width: 100%;
    padding-top: 30px;
    border-top: 1px solid rgba(255,255,255,0.1);
}

.footer-bottom p {
    color: #718096;
    font-size: 14px;
}

.hidden { display: none !important; }

/* Responsive */
@media (max-width: 992px) {
    .hero-content {
        flex-direction: column;
        text-align: center;
    }
    
    .hero-logo-img {
        max-width: 200px;
        margin-top: 20px;
    }
    
    .text-content h2 {
        font-size: 45px;
    }
    
    .text-content p {
        margin: 0 auto 30px;
    }
    
    .actions {
        justify-content: center;
    }
    
    .contact-card {
        flex-direction: column;
    }
}

@media (max-width: 768px) {
    .navbar .container {
        flex-direction: column;
        gap: 15px;
    }
    
    .input-row {
        flex-direction: column;
        gap: 0;
    }
    
    .text-content h2 {
        font-size: 38px;
    }
    
    .form-wrapper {
        padding: 30px 20px;
    }
    
    .contact-info {
        padding: 40px 20px;
    }
}
