/* NOTE: Brand colors defined with CSS variables for consistency */
:root {
    --brand-blue-green: #0D7377;
    --brand-orange: #FF6B35;
    --brand-amber: #F7931E;
    --primary-50: #e6f7ff;
    --primary-500: #1890ff;
    --primary-600: #096dd9;
    --primary-700: #0050b3;
    --text-dark: #1a202c;
    --text-medium: #4a5568;
    --text-light: #718096;
    --bg-light: #f7fafc;
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 25px rgba(0, 0, 0, 0.1);
}

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

[dir="rtl"] .space-x-2 > * + * {
    margin-left: 0;
    margin-right: 0.5rem;
}

[dir="rtl"] .space-x-4 > * + * {
    margin-left: 0;
    margin-right: 1rem;
}

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

[dir="rtl"] .justify-between {
    flex-direction: row-reverse;
}

/* NOTE: Global styles and typography */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    overflow-x: hidden;
}

/* NOTE: Text overflow prevention */
h1, h2, h3, h4, h5, h6, p, span, a, button {
    word-wrap: break-word;
    hyphens: auto;
    overflow-wrap: break-word;
}

/* NOTE: Prevent scrolling when modals are open */
body.lightbox-open,
body.modal-open {
    overflow: hidden;
}

/* NOTE: Section padding standardized across all sections */
/* Temporarily reduced padding per user request */
.section-padding {
    padding-top: 5rem;
    padding-bottom: 5rem;
}

/* NOTE: Fade-in animation for scroll reveal effect */
.fade-in-element {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.fade-in-element.visible {
    opacity: 1;
    transform: translateY(0);
}

/* NOTE: Language switcher with proper text handling */
.language-switcher {
    display: flex;
    gap: 0.5rem;
    align-items: center;
    flex-shrink: 0;
}

.language-button {
    padding: 0.375rem 0.75rem;
    border: 1px solid #e2e8f0;
    background: white;
    border-radius: 0.375rem;
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    color: var(--text-medium);
    min-width: 40px;
    text-align: center;
    white-space: nowrap;
}

.language-button:hover {
    border-color: var(--brand-blue-green);
    color: var(--brand-blue-green);
    background: rgba(13, 115, 119, 0.05);
}

.language-button.active {
    background: var(--brand-blue-green);
    border-color: var(--brand-blue-green);
    color: white;
}

.language-button.active:hover {
    background: #0f666a;
    border-color: #0f666a;
    color: white;
}

/* NOTE: Mobile menu animation with max-height transition */
.mobile-navigation {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.mobile-navigation.open {
    max-height: 500px;
}

/* NOTE: Header with backdrop blur effect */
.main-header {
    position: sticky;
    top: 0;
    z-index: 50;
    width: 100%;
    border-bottom: 1px solid #e5e7eb;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
}

/* NOTE: Logo text handling */
.main-header .font-bold {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

@media (max-width: 480px) {
    .main-header .font-bold {
        font-size: 1rem;
    }
}

/* NOTE: Page hero for individual pages */
.page-hero {
    padding: 6rem 0 4rem;
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
}

/* NOTE: Hero section with gradient background and video integration */
.hero-section {
    position: relative;
    padding: 8rem 0 12rem;
    background: linear-gradient(135deg, var(--brand-blue-green) 0%, #14b8a6 50%, #06b6d4 100%);
    color: white;
    overflow: hidden;
    min-height: 80vh;
    display: flex;
    align-items: center;
}

.hero-background {
    position: absolute;
    inset: 0;
    opacity: 0.1;
    z-index: 1;
}

.hero-background img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    will-change: transform;
}

.hero-content {
    position: relative;
    z-index: 2;
}

/* NOTE: Hero text responsiveness */
.hero-content h1 {
    line-height: 1.2;
    word-break: break-word;
    hyphens: auto;
}

.hero-content p {
    line-height: 1.7;
    opacity: 0.95;
}

/* NOTE: Statistics section with hover effects */
.stats-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 1.5rem;
}

.stat-item {
    text-align: center;
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 1rem;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.stat-item:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-3px);
}

.stat-number {
    display: block;
    font-size: 2.5rem;
    font-weight: 700;
    color: white;
    margin-bottom: 0.5rem;
    line-height: 1;
}

.stat-label {
    display: block;
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.8);
    font-weight: 500;
}

/* NOTE: Gallery filters with underline animation */
.gallery-filters {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 3rem;
    flex-wrap: wrap;
}

.gallery-filter {
    padding: 0.75rem 1.5rem;
    background: transparent;
    border: 2px solid #e5e7eb;
    border-radius: 2rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    color: var(--text-medium);
    position: relative;
    overflow: hidden;
}

.gallery-filter:hover {
    border-color: var(--brand-blue-green);
    color: var(--brand-blue-green);
    background: rgba(13, 115, 119, 0.05);
}

.gallery-filter.active {
    background: var(--brand-blue-green);
    border-color: var(--brand-blue-green);
    color: white;
}

.gallery-filter.active:hover {
    background: #0f666a;
    border-color: #0f666a;
}

/* NOTE: Gallery grid with masonry-like layout */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.gallery-item {
    position: relative;
    border-radius: 1rem;
    overflow: hidden;
    background: white;
    box-shadow: var(--shadow-md);
    transition: all 0.3s ease;
    cursor: pointer;
}

.gallery-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-xl);
}

.gallery-image-container {
    position: relative;
    overflow: hidden;
    aspect-ratio: 4/3;
}

.gallery-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease, filter 0.3s ease;
    will-change: transform;
}

.gallery-item:hover .gallery-image {
    transform: scale(1.05);
}

.gallery-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(13, 115, 119, 0.8), rgba(255, 107, 53, 0.8));
    opacity: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.3s ease;
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

.gallery-item-title {
    font-size: 1.125rem;
    font-weight: 600;
    color: white;
    margin-bottom: 0.5rem;
    padding: 0 1rem;
    text-align: center;
    line-height: 1.4;
}

.gallery-item-description {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.9);
    padding: 0 1rem;
    text-align: center;
    line-height: 1.4;
    display: none;
}

@media (min-width: 768px) {
    .gallery-item-description {
        display: block;
    }
}

.gallery-view-btn {
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 2rem;
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 1rem;
    backdrop-filter: blur(10px);
    transform: translateY(20px);
    opacity: 0;
}

.gallery-item:hover .gallery-view-btn {
    transform: translateY(0);
    opacity: 1;
}

.gallery-view-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    border-color: rgba(255, 255, 255, 0.5);
    transform: scale(1.05);
}

/* NOTE: Gallery preview items for home page */
.gallery-preview-item {
    text-align: center;
    transition: all 0.3s ease;
}

.gallery-preview-item:hover {
    transform: translateY(-5px);
}

.gallery-preview-item img {
    transition: transform 0.3s ease;
}

.gallery-preview-item:hover img {
    transform: scale(1.05);
}

/* NOTE: Lightbox modal with backdrop blur */
.lightbox-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(10px);
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    padding: 1rem;
}

.lightbox-overlay.active {
    opacity: 1;
    visibility: visible;
}

.lightbox-content {
    position: relative;
    max-width: 90vw;
    max-height: 90vh;
    background: white;
    border-radius: 1rem;
    overflow: hidden;
    transform: scale(0.8);
    transition: transform 0.3s ease;
}

.lightbox-overlay.active .lightbox-content {
    transform: scale(1);
}

.lightbox-image {
    width: 100%;
    height: auto;
    max-height: 70vh;
    object-fit: contain;
}

.lightbox-info {
    padding: 1.5rem;
    background: white;
}

.lightbox-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
    line-height: 1.4;
}

.lightbox-description {
    font-size: 0.875rem;
    color: var(--text-medium);
    line-height: 1.5;
}

.lightbox-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: rgba(0, 0, 0, 0.8);
    border: none;
    color: white;
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.lightbox-close:hover {
    background: rgba(0, 0, 0, 1);
    transform: scale(1.1);
}

/* NOTE: Video modal with responsive design */
.video-modal {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(10px);
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    padding: 1rem;
}

.video-modal.active {
    opacity: 1;
    visibility: visible;
}

.video-modal-content {
    position: relative;
    max-width: 90vw;
    max-height: 90vh;
    background: black;
    border-radius: 1rem;
    overflow: hidden;
    transform: scale(0.8);
    transition: transform 0.3s ease;
}

.video-modal.active .video-modal-content {
    transform: scale(1);
}

.video-modal video {
    width: 100%;
    height: auto;
    max-height: 80vh;
}

.video-modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: rgba(0, 0, 0, 0.8);
    border: none;
    color: white;
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    font-size: 1.5rem;
}

.video-modal-close:hover {
    background: rgba(0, 0, 0, 1);
    transform: scale(1.1);
}

/* NOTE: Feature cards with subtle animations */
.feature-card {
    background: white;
    padding: 2rem;
    border-radius: 1rem;
    box-shadow: var(--shadow-md);
    text-align: center;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(13, 115, 119, 0.1), transparent);
    transition: left 0.5s ease;
}

.feature-card:hover::before {
    left: 100%;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-xl);
    border-color: var(--brand-blue-green);
}

.feature-card h3 {
    color: var(--text-dark);
    margin-bottom: 1rem;
}

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

.feature-icon-container {
    width: 4rem;
    height: 4rem;
    margin: 0 auto 1.5rem;
    border-radius: 50%;
    background: rgba(13, 115, 119, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.feature-card:hover .feature-icon-container {
    background: var(--brand-blue-green);
    transform: scale(1.1);
}

.feature-card:hover .feature-icon-container svg {
    color: white !important;
}

/* NOTE: Contact info cards */
.contact-info-card {
    background: white;
    padding: 2rem;
    border-radius: 1rem;
    box-shadow: var(--shadow-md);
    text-align: center;
    transition: all 0.3s ease;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.contact-info-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-xl);
    border-color: var(--brand-blue-green);
}

.contact-icon-large {
    width: 4rem;
    height: 4rem;
    margin: 0 auto 1rem;
    border-radius: 50%;
    background: rgba(255, 107, 53, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
}

.contact-icon {
    width: 3rem;
    height: 3rem;
    margin: 0 auto 1rem;
    border-radius: 50%;
    background: var(--brand-orange);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

/* NOTE: Philosophy cards */
.philosophy-card {
    background: white;
    padding: 2rem;
    border-radius: 1rem;
    box-shadow: var(--shadow-md);
    text-align: center;
    transition: all 0.3s ease;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.philosophy-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-xl);
    border-color: var(--brand-blue-green);
}

.philosophy-icon {
    width: 4rem;
    height: 4rem;
    margin: 0 auto 1.5rem;
    border-radius: 50%;
    background: rgba(255, 107, 53, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
}

/* NOTE: Working hours cards */
.working-hours-card {
    background: white;
    padding: 2rem;
    border-radius: 1rem;
    box-shadow: var(--shadow-md);
    transition: all 0.3s ease;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.working-hours-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-xl);
    border-color: var(--brand-blue-green);
}

/* NOTE: Enhanced form styles */
.contact-form {
    background: white;
    padding: 2rem;
    border-radius: 1rem;
    box-shadow: var(--shadow-md);
}

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

.form-label {
    display: block;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
    font-size: 0.875rem;
    letter-spacing: 0.025em;
}

.form-input,
.form-textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 2px solid #e5e7eb;
    border-radius: 0.5rem;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: white;
    color: var(--text-dark);
}

.form-input::placeholder,
.form-textarea::placeholder {
    color: var(--text-light);
}

.form-input:focus,
.form-textarea:focus {
    outline: none;
    border-color: var(--brand-blue-green);
    box-shadow: 0 0 0 3px rgba(13, 115, 119, 0.1);
    background: rgba(13, 115, 119, 0.01);
}

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

/* NOTE: Enhanced button styles with hover effects */
.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.875rem 2rem;
    background: linear-gradient(135deg, var(--brand-blue-green) 0%, #14b8a6 100%);
    color: white;
    border: none;
    border-radius: 2rem;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    box-shadow: var(--shadow-md);
    position: relative;
    overflow: hidden;
    min-height: 3rem;
}

.btn-primary::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, #0f666a 0%, #0d9488 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.btn-primary:hover::before {
    opacity: 1;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-xl);
}

.btn-primary > * {
    position: relative;
    z-index: 1;
}

/* Ensure button text stays visible on hover */
.btn-primary:hover,
.btn-primary:hover span,
.btn-primary:hover .hero-btn-text {
    color: white !important;
}

.btn-secondary {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.875rem 2rem;
    background: transparent;
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 2rem;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    backdrop-filter: blur(10px);
    min-height: 3rem;
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.6);
    transform: translateY(-2px);
}

.btn-outline {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    background: transparent;
    color: var(--brand-blue-green);
    border: 2px solid var(--brand-blue-green);
    border-radius: 2rem;
    font-weight: 600;
    font-size: 0.875rem;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
}

.btn-outline:hover {
    background: var(--brand-blue-green);
    color: white;
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-blue {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.875rem 2rem;
    background: linear-gradient(135deg, var(--brand-blue-green) 0%, #0ea5e9 100%);
    color: white;
    border: none;
    border-radius: 2rem;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    box-shadow: var(--shadow-md);
}

.btn-blue:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-xl);
    background: linear-gradient(135deg, #0f666a 0%, #0284c7 100%);
}

.contact-info-item {
    transition: all 0.3s ease;
}

/* NOTE: Navigation active states */
.nav-link.active {
    color: var(--brand-blue-green) !important;
    font-weight: 600;
}

.nav-link.active::after {
    width: 100% !important;
}

/* NOTE: Responsive grid and layout helpers */
.grid {
    display: grid;
}

.grid-cols-1 {
    grid-template-columns: repeat(1, minmax(0, 1fr));
}

.grid-cols-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.grid-cols-3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

@media (min-width: 768px) {
    .hero-section {
        padding: 10rem 0 14rem;
    }

    .grid-md-2 {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 3rem;
        align-items: center;
    }

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

    .gallery-grid {
        grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    }
}

@media (max-width: 767px) {
    .hero-section {
        padding: 6rem 0 8rem;
        min-height: 70vh;
    }

    .section-padding {
        padding-top: 3rem;
        padding-bottom: 3rem;
    }

    .feature-card {
        padding: 1.5rem;
    }

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

    .stat-item {
        padding: 1rem;
    }

    .stat-number {
        font-size: 2rem;
    }

    .gallery-filters {
        gap: 0.5rem;
    }

    .gallery-filter {
        padding: 0.5rem 1rem;
        font-size: 0.875rem;
    }

    .lightbox-overlay {
        padding: 0.5rem;
    }

    .video-modal {
        padding: 0.5rem;
    }

    .btn-primary,
    .btn-secondary,
    .btn-blue {
        padding: 0.75rem 1.5rem;
        font-size: 0.875rem;
    }

    .btn-primary span,
    .btn-secondary span,
    .btn-blue span {
        font-size: 0.875rem;
    }

    .hero-btn-text {
        display: none;
    }

    .hero-content h1 {
        font-size: 2.5rem;
        line-height: 1.1;
    }

    .hero-content p {
        font-size: 1rem;
    }

    .language-switcher {
        order: -1;
    }

    .language-button {
        padding: 0.25rem 0.5rem;
        font-size: 0.75rem;
        min-width: 32px;
    }
}

@media (max-width: 480px) {
    .container {
        padding-left: 1rem;
        padding-right: 1rem;
    }

    .hero-content h1 {
        font-size: 2rem;
    }

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

    .gallery-grid {
        grid-template-columns: 1fr;
    }

    .grid-md-2 {
        gap: 2rem;
    }

    .main-header .container {
        padding-left: 0.5rem;
        padding-right: 0.5rem;
    }

    .desktop-navigation {
        gap: 0.5rem;
    }
}

/* NOTE: Desktop navigation with hover effects */
.desktop-navigation {
    display: none;
    gap: 2rem;
    align-items: center;
}

@media (min-width: 768px) {
    .desktop-navigation {
        display: flex;
    }
}

.nav-link {
    position: relative;
    color: var(--text-medium);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.875rem;
    transition: color 0.3s ease;
    padding: 0.5rem 0;
}

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

.nav-link:hover {
    color: var(--brand-blue-green);
}

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

/* NOTE: Mobile menu button with hamburger animation */
.mobile-menu-button {
    background: none;
    border: none;
    color: var(--text-medium);
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 0.375rem;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.mobile-menu-button:hover {
    background: rgba(13, 115, 119, 0.1);
    color: var(--brand-blue-green);
}

@media (min-width: 768px) {
    .mobile-menu-button {
        display: none;
    }
}

/* NOTE: Container with responsive padding */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

@media (min-width: 640px) {
    .container {
        padding: 0 2rem;
    }
}

@media (min-width: 1024px) {
    .container {
        padding: 0 3rem;
    }
}

/* NOTE: Utility classes for common styling patterns */
.text-center {
    text-align: center;
}

.flex {
    display: flex;
}

.flex-col {
    flex-direction: column;
}

.items-center {
    align-items: center;
}

.justify-center {
    justify-content: center;
}

.justify-between {
    justify-content: space-between;
}

.space-x-2 > * + * {
    margin-left: 0.5rem;
}

.space-x-4 > * + * {
    margin-left: 1rem;
}

.gap-1 { gap: 0.25rem; }
.gap-2 { gap: 0.5rem; }
.gap-4 { gap: 1rem; }
.gap-6 { gap: 1.5rem; }
.gap-8 { gap: 2rem; }

.mb-2 { margin-bottom: 0.5rem; }
.mb-4 { margin-bottom: 1rem; }
.mb-6 { margin-bottom: 1.5rem; }
.mb-8 { margin-bottom: 2rem; }
.mb-12 { margin-bottom: 3rem; }
.mt-4 { margin-top: 1rem; }
.mt-8 { margin-top: 2rem; }
.my-4 { margin: 1rem 0; }
.my-8 { margin: 2rem 0; }

.relative { position: relative; }
.absolute { position: absolute; }
.z-10 { z-index: 10; }
.z-20 { z-index: 20; }

.bg-white { background-color: white; }
.bg-gray-50 { background-color: var(--bg-light); }
.bg-gray-900 { background-color: var(--text-dark); }
.text-white { color: white; }
.text-gray-600 { color: var(--text-medium); }
.text-gray-800 { color: var(--text-dark); }
.text-gray-400 { color: var(--text-light); }

.font-bold { font-weight: 700; }
.font-semibold { font-weight: 600; }
.font-medium { font-weight: 500; }

.text-sm { font-size: 0.875rem; }
.text-base { font-size: 1rem; }
.text-lg { font-size: 1.125rem; }
.text-xl { font-size: 1.25rem; }
.text-2xl { font-size: 1.5rem; }
.text-3xl { font-size: 1.875rem; }
.text-4xl { font-size: 2.25rem; }
.text-5xl { font-size: 3rem; }

@media (min-width: 768px) {
    .md\\:text-4xl { font-size: 2.25rem; }
    .md\\:text-5xl { font-size: 3rem; }
    .md\\:text-6xl { font-size: 3.75rem; }
}

.max-w-2xl { max-width: 42rem; }
.max-w-3xl { max-width: 48rem; }
.max-w-4xl { max-width: 56rem; }
.max-w-xl { max-width: 36rem; }
.mx-auto { margin-left: auto; margin-right: auto; }

.w-full { width: 100%; }
.h-auto { height: auto; }
.h-16 { height: 4rem; }
.h-64 { height: 16rem; }
.rounded-lg { border-radius: 0.5rem; }
.rounded-xl { border-radius: 0.75rem; }
.rounded-2xl { border-radius: 1rem; }
.shadow-sm { box-shadow: var(--shadow-sm); }
.shadow-md { box-shadow: var(--shadow-md); }
.shadow-lg { box-shadow: var(--shadow-lg); }
.shadow-xl { box-shadow: var(--shadow-xl); }
.shadow-2xl { box-shadow: 0 25px 50px rgba(0, 0, 0, 0.25); }

.border-t { border-top: 1px solid rgb(229, 231, 235); }
.border-gray-800 { border-color: var(--text-dark); }

.overflow-hidden { overflow: hidden; }
.object-cover { object-fit: cover; }
.object-contain { object-fit: contain; }

.py-4 { padding: 1rem 0; }
.py-8 { padding: 2rem 0; }
.py-12 { padding: 3rem 0; }
.px-4 { padding: 0 1rem; }
.p-2 { padding: 0.5rem; }
.p-3 { padding: 0.75rem; }
.p-4 { padding: 1rem; }

.w-4 { width: 1rem; }
.h-4 { height: 1rem; }
.w-5 { width: 1.25rem; }
.h-5 { height: 1.25rem; }
.w-6 { width: 1.5rem; }
.h-6 { height: 1.5rem; }
.w-8 { width: 2rem; }
.h-10 { height: 2.5rem; }
.w-12 { width: 3rem; }
.h-16 { height: 4rem; }

.space-y-2 > * + * { margin-top: 0.5rem; }
.space-y-3 > * + * { margin-top: 0.75rem; }
.space-y-6 > * + * { margin-top: 1.5rem; }

.leading-relaxed { line-height: 1.625; }

.order-1 { order: 1; }
.order-2 { order: 2; }

@media (min-width: 768px) {
    .md\\:order-1 { order: 1; }
    .md\\:order-2 { order: 2; }
    .md\\:grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .md\\:grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .md\\:grid-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
    .md\\:flex-row { flex-direction: row; }
}

.hover\\:text-white:hover { color: white; }
.transition-colors { transition: color 0.15s ease-in-out; }

.bg-orange-50 { background-color: #fff7ed; }
.text-orange-800 { color: #9a3412; }
.text-green-500 { color: #10b981; }
.flex-shrink-0 { flex-shrink: 0; }

.items-start { align-items: flex-start; }

/* NOTE: Custom scrollbar styling */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f5f9;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb {
    background: var(--brand-blue-green);
    border-radius: 4px;
    transition: background 0.3s ease;
}

::-webkit-scrollbar-thumb:hover {
    background: #0f666a;
}

/* NOTE: Animation keyframes */
@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
}

.animate-pulse {
    animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

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

.animate-fadeInUp {
    animation: fadeInUp 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

/* NOTE: Image optimization and performance */
img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Lazy loading placeholder */
img[loading="lazy"] {
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
}

img[loading="lazy"].loaded {
    opacity: 1;
}

/* Gallery images should always be visible */
.gallery-image,
.gallery-item img[loading="lazy"] {
    opacity: 1 !important;
}

/* WebP support fallback */
.no-webp img[src$=".webp"] {
    display: none;
}

/* Progressive image loading */
.progressive-image {
    background-color: #f8f9fa;
    background-image: linear-gradient(45deg, #f0f0f0 25%, transparent 25%, transparent 75%, #f0f0f0 75%, #f0f0f0),
                      linear-gradient(45deg, #f0f0f0 25%, transparent 25%, transparent 75%, #f0f0f0 75%, #f0f0f0);
    background-size: 20px 20px;
    background-position: 0 0, 10px 10px;
    animation: loading-shimmer 1.5s ease-in-out infinite;
}

@keyframes loading-shimmer {
    0% { background-position: 0 0, 10px 10px; }
    100% { background-position: 20px 20px, 30px 30px; }
}

/* Photo slider optimizations */
.photo-slider {
    position: relative;
    height: 500px; /* Desktop default */
    overflow: hidden;
}

.photo-slider img {
    will-change: opacity;
    backface-visibility: hidden;
    transform: translateZ(0);
    object-fit: cover;
    object-position: center center;
    min-height: 100%;
    min-width: 100%;
}

/* Ensure photos completely fill the card */
.photo-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top; /* Focus on upper part for better face visibility */
    transform: scale(1.05); /* Slight zoom to ensure full coverage */
}

/* Responsive photo slider heights */
@media (max-width: 1024px) {
    .photo-slider {
        height: 550px;
    }
}

@media (max-width: 768px) {
    .photo-slider {
        height: 500px;
    }
}

@media (max-width: 480px) {
    .photo-slider {
        height: 400px;
    }
}

@media (max-width: 320px) {
    .photo-slider {
        height: 350px;
    }
}

/* Preload critical images */
.preload-image {
    position: absolute;
    top: -9999px;
    left: -9999px;
    width: 1px;
    height: 1px;
    opacity: 0;
}

/* NOTE: Placeholder backgrounds for missing images */
.hero-background {
    background: linear-gradient(135deg, var(--brand-blue-green) 0%, #14b8a6 50%, #06b6d4 100%);
}

.hero-background::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: 
        radial-gradient(circle at 20% 30%, rgba(255,255,255,0.1) 2px, transparent 2px),
        radial-gradient(circle at 80% 70%, rgba(255,255,255,0.1) 2px, transparent 2px),
        radial-gradient(circle at 40% 80%, rgba(255,255,255,0.05) 1px, transparent 1px);
    background-size: 40px 40px, 60px 60px, 30px 30px;
    opacity: 0.3;
}

/* NOTE: Image placeholder with medical theme */
img[src*="medical-background"]:not([src*="http"]) {
    background: linear-gradient(135deg, var(--brand-blue-green) 0%, #14b8a6 50%, #06b6d4 100%);
    position: relative;
}

img[src*="physiotherapist"]:not([src*="http"]),
img[src*="bodybuilder"]:not([src*="http"]) {
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 400px; /* Ensure minimum height for placeholders */
}

img[src*="physiotherapist"]:not([src*="http"])::after {
    content: '👨‍⚕️ Fizyoterapist Fotoğrafı';
    position: absolute;
    color: var(--text-medium);
    font-size: 1.2rem;
    font-weight: 600;
    text-align: center;
    background: rgba(255,255,255,0.9);
    padding: 1rem;
    border-radius: 0.5rem;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

img[src*="bodybuilder"]:not([src*="http"])::after {
    content: '🏆 Şampiyon Fotoğrafı';
    position: absolute;
    color: var(--text-medium);
    font-size: 1.2rem;
    font-weight: 600;
    text-align: center;
    background: rgba(255,255,255,0.9);
    padding: 1rem;
    border-radius: 0.5rem;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

img[src*="clinic"]:not([src*="http"]),
img[src*="equipment"]:not([src*="http"]),
img[src*="treatment"]:not([src*="http"]),
img[src*="achievement"]:not([src*="http"]) {
    background: linear-gradient(135deg, #f1f5f9 0%, #e2e8f0 100%);
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-medium);
    font-weight: 600;
    border: 2px dashed #cbd5e1;
}

img[src*="modern-clinic"]:not([src*="http"])::after {
    content: '🏥 Modern Klinik';
}

img[src*="equipment"]:not([src*="http"])::after {
    content: '⚙️ Ekipman';
}

img[src*="treatment"]:not([src*="http"])::after {
    content: '👨‍⚕️ Tedavi';
}

img[src*="therapy"]:not([src*="http"])::after {
    content: '🤲 Terapi';
}

img[src*="achievement"]:not([src*="http"])::after {
    content: '🏆 Başarı';
}

img[src*="trophy"]:not([src*="http"])::after {
    content: '🏆 Kupa';
}

/* NOTE: Fallback for all placeholder images */
img:not([src*="http"]) {
    min-height: 200px;
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    border: 2px dashed #cbd5e1;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

img:not([src*="http"])::after {
    content: '📷 Fotoğraf Placeholder';
    color: var(--text-medium);
    font-weight: 600;
    text-align: center;
}

/* Photo containers for about page */
.photo-container {
    position: relative;
    overflow: hidden;
    border-radius: 1rem;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    flex: 1;
}

.photo-container:hover {
    flex: 1.8;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.2);
    z-index: 10;
}

.photo-container img {
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Photo labels with improved styling */
.photo-container .absolute {
    transition: all 0.3s ease;
}

.photo-container:hover .absolute {
    background: rgba(0, 0, 0, 0.8);
    transform: translateY(-5px);
}

/* Responsive photo containers */
@media (max-width: 768px) {
    .photo-container {
        margin-bottom: 0;
    }
    
    .photo-container img {
        min-height: 400px !important;
        max-height: 500px !important;
    }
    
    .photo-container .absolute {
        bottom: 0.5rem;
        left: 0.5rem;
        padding: 0.5rem;
        font-size: 0.75rem;
    }
}

@media (max-width: 480px) {
    .photo-container img {
        min-height: 300px !important;
        max-height: 400px !important;
    }
    
    .photo-container .absolute {
        bottom: 0.25rem;
        left: 0.25rem;
        padding: 0.25rem 0.5rem;
    }
    
    .photo-container .absolute .font-bold {
        font-size: 0.7rem;
    }
    
    .photo-container .absolute .text-xs {
        font-size: 0.6rem;
    }
}

/* Equipment Cards - Large Scattered Layout */
.equipment-cards {
    position: relative;
    height: 900px;
    width: 100%;
    overflow: visible;
    padding: 0;
    margin-top: 50%;
}

.equipment-card {
    position: absolute;
    background: transparent;
    border: none;
    padding: 0;
    margin: 0;
    transition: all 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    cursor: pointer;
    z-index: 1;
    will-change: transform;
}

.equipment-card:hover {
    transform: translateY(-20px) scale(1.12);
    z-index: 20;
}

/* Equipment Images - Special class for PNG equipment photos */
.equipment-img {
    width: auto !important;
    height: auto !important;
    max-width: 450px !important;
    max-height: 350px !important;
    object-fit: contain !important;
    filter: drop-shadow(0 5px 15px rgba(0, 0, 0, 0.1)) !important;
    transition: all 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94) !important;
    will-change: filter, transform !important;
    display: block !important;
    border: 0 !important;
    background: transparent !important;
    outline: 0 !important;
    box-shadow: none !important;
    min-height: auto !important;
    background-color: transparent !important;
    background-image: none !important;
    background-size: auto !important;
    background-position: initial !important;
    background-repeat: no-repeat !important;
}

.equipment-img:hover {
    filter: drop-shadow(0 15px 35px rgba(0, 0, 0, 0.2)) !important;
    transform: scale(1.05) !important;
}

/* Remove all placeholder effects for equipment images */
.equipment-img:not([src*="http"])::after {
    display: none !important;
}

.equipment-img[src*="equipment"]:not([src*="http"])::after {
    display: none !important;
}

/* Wider scattered positioning with floating animation */
.equipment-card-1 {
    top: -60px;
    left: -120px;
    transform: rotate(-20deg);
    animation: float1 6s ease-in-out infinite;
}

.equipment-card-1:hover {
    transform: rotate(-12deg) translateY(-20px) scale(1.12);
    animation-play-state: paused;
}

.equipment-card-2 {
    top: 250px;
    right: -150px;
    transform: rotate(28deg);
    animation: float2 7s ease-in-out infinite;
}

.equipment-card-2:hover {
    transform: rotate(18deg) translateY(-20px) scale(1.12);
    animation-play-state: paused;
}

.equipment-card-3 {
    bottom: -80px;
    left: 15%;
    transform: rotate(-18deg);
    animation: float3 8s ease-in-out infinite;
}

.equipment-card-3:hover {
    transform: rotate(-8deg) translateY(-20px) scale(1.12);
    animation-play-state: paused;
}

/* Floating animations */
@keyframes float1 {
    0%, 100% { 
        transform: rotate(-20deg) translateY(0px); 
    }
    50% { 
        transform: rotate(-16deg) translateY(-12px); 
    }
}

@keyframes float2 {
    0%, 100% { 
        transform: rotate(28deg) translateY(0px); 
    }
    50% { 
        transform: rotate(24deg) translateY(-15px); 
    }
}

@keyframes float3 {
    0%, 100% { 
        transform: rotate(-18deg) translateY(0px); 
    }
    50% { 
        transform: rotate(-14deg) translateY(-10px); 
    }
}

/* Mobile responsive for equipment images */
@media (max-width: 768px) {
    .equipment-cards {
        height: 950px;
    }
    
    .equipment-img {
        max-width: 350px !important;
        max-height: 260px !important;
    }
    
    .equipment-card:hover {
        transform: translateY(-15px) scale(1.1);
    }
    
    .equipment-card-1 {
        top: -30px;
        left: -80px;
        transform: rotate(-15deg);
        animation: float1Mobile 5s ease-in-out infinite;
    }
    
    .equipment-card-1:hover {
        transform: rotate(-8deg) translateY(-15px) scale(1.1);
    }
    
    .equipment-card-2 {
        top: 300px;
        right: -100px;
        transform: rotate(22deg);
        animation: float2Mobile 6s ease-in-out infinite;
    }
    
    .equipment-card-2:hover {
        transform: rotate(12deg) translateY(-15px) scale(1.1);
    }
    
    .equipment-card-3 {
        bottom: 20px;
        left: 8%;
        transform: rotate(-12deg);
        animation: float3Mobile 7s ease-in-out infinite;
    }
    
    .equipment-card-3:hover {
        transform: rotate(-6deg) translateY(-15px) scale(1.1);
    }
}

@keyframes float1Mobile {
    0%, 100% { transform: rotate(-15deg) translateY(0px); }
    50% { transform: rotate(-12deg) translateY(-8px); }
}

@keyframes float2Mobile {
    0%, 100% { transform: rotate(22deg) translateY(0px); }
    50% { transform: rotate(18deg) translateY(-10px); }
}

@keyframes float3Mobile {
    0%, 100% { transform: rotate(-12deg) translateY(0px); }
    50% { transform: rotate(-9deg) translateY(-6px); }
}

@media (max-width: 480px) {
    .equipment-cards {
        height: 850px;
    }
    
    .equipment-img {
        max-width: 250px !important;
        max-height: 190px !important;
    }
    
    .equipment-card:hover {
        transform: translateY(-12px) scale(1.08);
    }
    
    .equipment-card-1 {
        top: 10px;
        left: -50px;
        transform: rotate(-10deg);
        animation: float1Small 4s ease-in-out infinite;
    }
    
    .equipment-card-2 {
        top: 280px;
        right: -60px;
        transform: rotate(15deg);
        animation: float2Small 5s ease-in-out infinite;
    }
    
    .equipment-card-3 {
        bottom: 60px;
        left: 12%;
        transform: rotate(-8deg);
        animation: float3Small 6s ease-in-out infinite;
    }
}

@keyframes float1Small {
    0%, 100% { transform: rotate(-10deg) translateY(0px); }
    50% { transform: rotate(-7deg) translateY(-5px); }
}

@keyframes float2Small {
    0%, 100% { transform: rotate(15deg) translateY(0px); }
    50% { transform: rotate(12deg) translateY(-6px); }
}

@keyframes float3Small {
    0%, 100% { transform: rotate(-8deg) translateY(0px); }
    50% { transform: rotate(-5deg) translateY(-4px); }
}

/* Hide Career Timeline Section */
.section-padding.bg-gray-50:has([id="about-career-title"]) {
    display: none !important;
}

/* Alternative selector in case :has() is not supported */
section:has(#about-career-title) {
    display: none !important;
}

/* Fallback for older browsers - hide by ID */
#about-career-title {
    display: none !important;
}

/* Hide the entire career section container */
section.section-padding.bg-gray-50:nth-child(5) {
    display: none !important;
}

/* Equipment Images - Individual Size Controls */

/* Activator Tool - Özel boyut kontrolü */
.equipment-img.activator-tool {
    max-width: 380px !important;
    max-height: 300px !important;
}

/* Dynamic Table - Özel boyut kontrolü */
.equipment-img.dynamic-table {
    max-width: 650px !important;
    max-height: 480px !important;
}

/* Portable Table - Özel boyut kontrolü */
.equipment-img.portable-table {
    max-width: 620px !important;
    max-height: 480px !important;
}

/* Responsive controls for mobile */
@media (max-width: 768px) {
    .equipment-img.activator-tool {
        max-width: 280px !important;
        max-height: 220px !important;
    }
    
    .equipment-img.dynamic-table {
        max-width: 480px !important;
        max-height: 360px !important;
    }
    
    .equipment-img.portable-table {
        max-width: 460px !important;
        max-height: 350px !important;
    }
}

@media (max-width: 480px) {
    .equipment-img.activator-tool {
        max-width: 200px !important;
        max-height: 160px !important;
    }
    
    .equipment-img.dynamic-table {
        max-width: 350px !important;
        max-height: 260px !important;
    }
    
    .equipment-img.portable-table {
        max-width: 320px !important;
        max-height: 250px !important;
    }
}