/**
 * Modern Medical Aesthetics Website - Professional Design
 * Dr. Hamza Gemici - Inspired by contemporary medical websites
 */

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

/* Modern Design System Variables */
:root {
    /* Color System - Professional Medical Palette */
    --primary: hsl(221, 83%, 53%);
    --primary-foreground: hsl(210, 40%, 98%);
    --primary-hover: hsl(221, 83%, 48%);
    --secondary: hsl(210, 40%, 96%);
    --secondary-foreground: hsl(222, 84%, 4%);
    --accent: hsl(158, 64%, 52%);
    --accent-foreground: hsl(210, 40%, 98%);
    --background: hsl(210, 11%, 98%);
    --foreground: hsl(222, 84%, 4%);
    --muted: hsl(210, 40%, 96%);
    --muted-foreground: hsl(215, 16%, 47%);
    --border: hsl(214, 32%, 91%);
    --input: hsl(214, 32%, 91%);
    --ring: hsl(221, 83%, 53%);
    --card: hsl(0, 0%, 100%);
    --card-foreground: hsl(222, 84%, 4%);

    /* Semantic Colors */
    --success: hsl(142, 76%, 36%);
    --warning: hsl(38, 92%, 50%);
    --error: hsl(0, 84%, 60%);

    /* Typography */
    --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    --font-mono: ui-monospace, SFMono-Regular, "SF Mono", Consolas, monospace;

    /* Spacing & Layout */
    --radius: 0.5rem;
    --radius-lg: 0.75rem;
    --radius-xl: 1rem;

    /* Shadows */
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow: 0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
    --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);

    /* Transitions */
    --transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-colors: color 0.2s cubic-bezier(0.4, 0, 0.2, 1), background-color 0.2s cubic-bezier(0.4, 0, 0.2, 1), border-color 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Base Styles */
html {
    scroll-behavior: smooth;
    font-size: 16px;
    line-height: 1.5;
}

body {
    font-family: var(--font-sans);
    background-color: var(--background);
    color: var(--foreground);
    line-height: 1.7;
    letter-spacing: -0.01em;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* RTL Support */
[dir="rtl"] {
    text-align: right;
}

[dir="rtl"] .container {
    direction: rtl;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    letter-spacing: -0.025em;
    line-height: 1.2;
    margin-bottom: 1rem;
    color: var(--foreground);
}

h1 { font-size: 2.25rem; }
h2 { font-size: 1.875rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.25rem; }
h5 { font-size: 1.125rem; }
h6 { font-size: 1rem; }

p {
    margin-bottom: 1rem;
    line-height: 1.7;
    color: var(--foreground);
}

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

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

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

/* Container System */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.container-fluid {
    width: 100%;
    padding: 0 1.5rem;
}

/* Grid System */
.row {
    display: flex;
    flex-wrap: wrap;
    margin: 0 -15px;
}

.col {
    flex: 1;
    padding: 0 15px;
}

.col-6 { flex: 0 0 50%; padding: 0 15px; }
.col-4 { flex: 0 0 33.333%; padding: 0 15px; }
.col-3 { flex: 0 0 25%; padding: 0 15px; }
.col-8 { flex: 0 0 66.666%; padding: 0 15px; }
.col-12 { flex: 0 0 100%; padding: 0 15px; }

/* Header */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: hsla(0, 0%, 100%, 0.95);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
    transition: var(--transition);
}

.navbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 0;
    min-height: 4rem;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary);
    text-decoration: none;
    letter-spacing: -0.02em;
}

.logo a {
    color: var(--primary);
    text-decoration: none;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
    margin: 0;
}

.nav-item a {
    color: var(--foreground);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.875rem;
    transition: var(--transition-colors);
    padding: 0.5rem 0;
    position: relative;
}

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

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

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

/* Language Switcher */
.language-switcher {
    display: flex;
    gap: 0.25rem;
}

.lang-link {
    padding: 0.375rem 0.75rem;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    font-size: 0.75rem;
    font-weight: 500;
    text-decoration: none;
    color: var(--muted-foreground);
    transition: var(--transition-colors);
    background: var(--background);
}

.lang-link:hover,
.lang-link.active {
    background: var(--primary);
    color: var(--primary-foreground);
    border-color: var(--primary);
}

/* Nav Actions */
.nav-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

/* Mobile Menu */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    padding: 0.5rem;
    gap: 0.25rem;
}

.mobile-menu-toggle span {
    width: 1.5rem;
    height: 2px;
    background: var(--foreground);
    transition: var(--transition);
    border-radius: 1px;
}

/* Button System */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    white-space: nowrap;
    border-radius: var(--radius);
    font-size: 0.875rem;
    font-weight: 500;
    transition: var(--transition);
    cursor: pointer;
    border: none;
    text-decoration: none;
    min-height: 2.5rem;
    padding: 0.5rem 1rem;
    line-height: 1;
    font-family: inherit;
}

.btn:focus-visible {
    outline: 2px solid var(--ring);
    outline-offset: 2px;
}

.btn:disabled {
    pointer-events: none;
    opacity: 0.5;
}

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

.btn-primary:hover {
    background: var(--primary-hover);
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

.btn-secondary {
    background: var(--secondary);
    color: var(--secondary-foreground);
    border: 1px solid var(--border);
}

.btn-secondary:hover {
    background: hsl(210, 40%, 91%);
}

.btn-outline {
    border: 2px solid var(--primary);
    background: transparent;
    color: var(--primary);
}

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

.btn-lg {
    min-height: 3rem;
    padding: 0.75rem 2rem;
    font-size: 1rem;
}

/* Hero Section */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, rgba(33, 90, 228, 0.85) 0%, rgba(33, 90, 228, 0.9) 100%), url('../images/drhg.jpg?v=20250122');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    color: var(--primary-foreground);
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 50%;
    height: 100%;
    background: linear-gradient(45deg, transparent 0%, hsla(158, 64%, 52%, 0.05) 100%);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.hero h1 {
    font-size: 3.75rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    line-height: 1.1;
    letter-spacing: -0.02em;
    animation: fade-in-up 0.8s ease-out;
    color: var(--primary-foreground);
}

.hero .subtitle {
    font-size: 1.25rem;
    opacity: 0.9;
    margin-bottom: 1.5rem;
    animation: fade-in-up 0.8s ease-out 0.2s both;
    color: var(--primary-foreground);
}

.hero .description {
    font-size: 1.125rem;
    opacity: 0.8;
    margin-bottom: 2.5rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    animation: fade-in-up 0.8s ease-out 0.4s both;
    color: var(--primary-foreground);
}

.hero-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    animation: fade-in-up 0.8s ease-out 0.6s both;
}

/* Section Styling */
.section {
    padding: 5rem 0;
}

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

.section-title {
    font-size: 2.25rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--foreground);
    letter-spacing: -0.025em;
}

.section-subtitle {
    font-size: 1.125rem;
    color: var(--muted-foreground);
    line-height: 1.6;
}

/* Service Cards */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.service-card {
    background: var(--card);
    border-radius: var(--radius-lg);
    padding: 2rem;
    text-align: center;
    border: 1px solid var(--border);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.service-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary), var(--accent));
}

.service-content h3 {
    color: var(--foreground);
    margin-bottom: 1rem;
    font-size: 1.25rem;
}

.service-content p {
    color: var(--muted-foreground);
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

/* About Section */
.about-image {
    position: relative;
}

.about-image img {
    width: 100%;
    height: auto;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
}

.img-responsive {
    width: 100%;
    height: auto;
}

.about-content {
    padding-left: 2rem;
}

.about-content h2 {
    color: var(--foreground);
    margin-bottom: 0.5rem;
}

.about-content .subtitle {
    color: var(--muted-foreground);
    font-size: 1.125rem;
    margin-bottom: 1.5rem;
}

.about-content p {
    color: var(--muted-foreground);
    margin-bottom: 2rem;
    line-height: 1.7;
}

.about-stats {
    display: flex;
    gap: 2rem;
    margin: 2rem 0;
}

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

.stat-item h4 {
    font-size: 2rem;
    color: var(--primary);
    margin-bottom: 0.5rem;
    font-weight: 700;
}

.stat-item p {
    color: var(--muted-foreground);
    font-size: 0.875rem;
    margin: 0;
}

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

.gallery-placeholder {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 3rem 2rem;
    text-align: center;
    transition: var(--transition);
}

.gallery-placeholder:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.placeholder-content h4 {
    color: var(--primary);
    margin-bottom: 1rem;
}

.placeholder-content p {
    color: var(--muted-foreground);
}

/* Testimonials */
.testimonials-carousel {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
}

.testimonial-item {
    background: var(--card);
    border-radius: var(--radius-lg);
    padding: 3rem 2rem;
    text-align: center;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border);
}

.testimonial-content .rating {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
}

.testimonial-content p {
    font-size: 1.125rem;
    color: var(--foreground);
    margin-bottom: 2rem;
    font-style: italic;
    line-height: 1.7;
}

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

.testimonial-author strong {
    color: var(--primary);
    font-weight: 600;
    display: block;
    margin-bottom: 0.25rem;
}

.testimonial-author span {
    color: var(--muted-foreground);
    font-size: 0.875rem;
}

.carousel-controls {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 2rem;
}

.carousel-prev,
.carousel-next {
    background: var(--primary);
    color: var(--primary-foreground);
    border: none;
    border-radius: 50%;
    width: 3rem;
    height: 3rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    cursor: pointer;
    transition: var(--transition);
}

.carousel-prev:hover,
.carousel-next:hover {
    background: var(--primary-hover);
    transform: scale(1.05);
}

/* Contact Section */
.contact-info {
    padding-right: 2rem;
}

.contact-info h3 {
    color: var(--foreground);
    margin-bottom: 2rem;
}

.contact-item {
    margin-bottom: 1.5rem;
}

.contact-item strong {
    color: var(--foreground);
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.contact-item p {
    color: var(--muted-foreground);
    margin: 0;
    line-height: 1.6;
}

.contact-item a {
    color: var(--primary);
    text-decoration: none;
}

.contact-item a:hover {
    text-decoration: underline;
}

.contact-form-container {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 2rem;
    box-shadow: var(--shadow-sm);
}

.contact-form-container h3 {
    color: var(--foreground);
    margin-bottom: 2rem;
}

/* Form Styling */
.form-group {
    margin-bottom: 1.5rem;
}

.form-label {
    display: block;
    font-size: 0.875rem;
    font-weight: 500;
    margin-bottom: 0.5rem;
    color: var(--foreground);
}

.form-control {
    width: 100%;
    min-height: 2.5rem;
    padding: 0.5rem 0.75rem;
    background: var(--background);
    border: 1px solid var(--input);
    border-radius: var(--radius);
    font-size: 0.875rem;
    transition: var(--transition-colors);
    font-family: inherit;
}

.form-control:focus {
    outline: none;
    border-color: var(--ring);
    box-shadow: 0 0 0 2px hsla(221, 83%, 53%, 0.2);
}

.form-control::placeholder {
    color: var(--muted-foreground);
}

textarea.form-control {
    min-height: 100px;
    resize: vertical;
}

.checkbox-group {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.checkbox-group input[type="checkbox"] {
    width: auto;
    min-height: auto;
    margin: 0;
}

.checkbox-group label {
    margin: 0;
    cursor: pointer;
}

.appointment-fields {
    margin-top: 1rem;
    padding: 1rem;
    background: var(--muted);
    border-radius: var(--radius);
    border: 1px solid var(--border);
}

/* Footer */
.footer {
    background: var(--foreground);
    color: var(--primary-foreground);
    padding: 3rem 0 1rem;
}

.footer h5 {
    color: var(--primary-foreground);
    margin-bottom: 1rem;
    font-weight: 600;
}

.footer p,
.footer a {
    color: hsla(0, 0%, 100%, 0.8);
    text-decoration: none;
    line-height: 1.6;
}

.footer a:hover {
    color: var(--primary-foreground);
}

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

.footer li {
    margin-bottom: 0.5rem;
}

.social-links h6 {
    color: var(--primary-foreground);
    margin-bottom: 1rem;
}

.footer-bottom {
    border-top: 1px solid hsla(0, 0%, 100%, 0.1);
    padding-top: 1rem;
    margin-top: 2rem;
    text-align: center;
    font-size: 0.875rem;
}

/* Animations */
@keyframes fade-in-up {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fade-in {
    from { opacity: 0; }
    to { opacity: 1; }
}

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

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

.fade-in {
    animation: fade-in 0.8s ease;
}

/* Utility Classes */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }
.mb-5 { margin-bottom: 3rem; }

.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }
.mt-5 { margin-top: 3rem; }

.d-flex { display: flex; }
.d-block { display: block; }
.d-none { display: none; }

.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }
.align-center { align-items: center; }

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        padding: 0 1rem;
    }

    .hero h1 {
        font-size: 2.5rem;
    }

    .section {
        padding: 3rem 0;
    }

    .section-title {
        font-size: 1.875rem;
    }

    .col-6,
    .col-4,
    .col-3,
    .col-8 {
        flex: 0 0 100%;
        margin-bottom: 2rem;
    }

    .row {
        margin: 0;
    }

    .col {
        padding: 0;
    }

    .about-content {
        padding-left: 0;
        padding-top: 2rem;
    }

    .about-stats {
        justify-content: space-around;
        gap: 1rem;
    }

    .contact-info {
        padding-right: 0;
        margin-bottom: 2rem;
    }

    .nav-menu {
        position: fixed;
        top: 4rem;
        left: -100%;
        width: 100%;
        height: calc(100vh - 4rem);
        background: var(--background);
        flex-direction: column;
        padding: 2rem;
        transition: left 0.3s ease;
        box-shadow: var(--shadow-lg);
        border-right: 1px solid var(--border);
        gap: 1rem;
    }

    .nav-menu.active {
        left: 0;
    }

    .mobile-menu-toggle {
        display: flex;
    }

    .hero-actions {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
    }

    .services-grid,
    .gallery-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .service-card,
    .contact-form-container {
        padding: 1.5rem;
    }

    .language-switcher {
        flex-wrap: wrap;
        gap: 0.5rem;
    }
}

@media (max-width: 480px) {
    .hero h1 {
        font-size: 2rem;
    }

    .section-title {
        font-size: 1.5rem;
    }

    .service-card,
    .contact-form-container,
    .testimonial-item {
        padding: 1.25rem;
    }

    .hero-actions .btn {
        width: 100%;
        margin-bottom: 0.5rem;
    }

    .about-stats {
        flex-direction: column;
        text-align: center;
        gap: 1.5rem;
    }

    .btn {
        padding: 0.75rem 1.5rem;
    }

    .btn-lg {
        padding: 1rem 2rem;
    }
}