:root {
    --primary-color: #007bff;
    --primary-hover: #0056b3;
    --primary-light: #66b3ff;
    --secondary-color: #17a2b8;
    --accent-color: #28a745;
    --warning-color: #ffc107;
    --danger-color: #dc3545;
    --text-color: #2c3e50;
    --text-light: #6c757d;
    --text-muted: #95a5a6;
    --light-bg: #f8f9fa;
    --white: #ffffff;
    --border-color: #e9ecef;
    --border-light: #dee2e6;
    --gradient-primary: linear-gradient(135deg, #007bff 0%, #0056b3 100%);
    --gradient-secondary: linear-gradient(135deg, #17a2b8 0%, #138496 100%);
    --gradient-accent: linear-gradient(135deg, #28a745 0%, #1e7e34 100%);
    --shadow-light: 0 2px 10px rgba(0, 123, 255, 0.1);
    --shadow-medium: 0 8px 25px rgba(0, 123, 255, 0.15);
    --shadow-heavy: 0 15px 35px rgba(0, 123, 255, 0.2);
}

/* Base Styles */
body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    color: var(--text-color);
    line-height: 1.6;
    margin: 0;
    padding: 0;
}

/* Skip to Content Link */
.skip-to-content {
    position: absolute;
    top: -40px;
    left: 6px;
    background: var(--primary-color);
    color: white;
    padding: 8px;
    text-decoration: none;
    z-index: 1000;
    border-radius: 0 0 4px 4px;
    font-size: 14px;
    transition: top 0.3s;
}

.skip-to-content:focus {
    top: 0;
    color: white;
}

/* Top Info Bar */
.top-info-bar {
    background: var(--gradient-primary);
    color: white;
    padding: 12px 0;
    font-size: 14px;
    font-weight: 400;
    position: relative;
    overflow: hidden;
}

.top-info-bar::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.1), transparent);
    animation: shimmer 3s infinite;
}

@keyframes shimmer {
    0% { left: -100%; }
    100% { left: 100%; }
}

.address-info {
    font-size: 14px;
}

.address-info span {
    font-weight: 600;
}

.header-phone {
    font-size: 14px;
    font-weight: 600;
    text-align: right;
}

/* Header */
.site-header {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    padding: 15px 0;
    box-shadow: var(--shadow-medium);
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: all 0.3s ease;
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.logo-section {
    flex-shrink: 0;
}

.logo-link {
    text-decoration: none;
    color: var(--text-color);
    display: block;
}

.text-logo {
    text-align: left;
}

.doctor-title {
    font-size: 22px;
    font-weight: 300;
    color: var(--text-light);
    margin-bottom: 2px;
    line-height: 1;
}

.doctor-name {
    font-size: 28px;
    font-weight: 700;
    letter-spacing: 0.5px;
    color: var(--text-color);
    line-height: 1;
}

.nav-section {
    flex: 1;
    display: flex;
    justify-content: center;
}

.header-actions {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    gap: 12px;
}

.header-phone-btn {
    background: var(--gradient-primary);
    color: white;
    padding: 12px 20px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 600;
}

/* Language Toggle */
.lang-toggle {
    display: flex;
    align-items: center;
    gap: 4px;
    background: transparent;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    padding: 8px 12px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 600;
    transition: all 0.2s ease;
}

.lang-toggle:hover {
    border-color: var(--primary-color);
    background: var(--light-bg);
}

.lang-current {
    color: var(--primary-color);
}

.lang-divider {
    color: var(--border-color);
}

.lang-other {
    color: var(--text-muted);
}

.lang-toggle[data-lang="en"] .lang-current {
    color: var(--text-muted);
}

.lang-toggle[data-lang="en"] .lang-other {
    color: var(--primary-color);
}

/* Header Phone Button continued */
.header-phone-btn {
    font-size: 14px;
    transition: all 0.3s ease;
    display: inline-block;
    box-shadow: var(--shadow-light);
    position: relative;
    overflow: hidden;
}

.header-phone-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s ease;
}

.header-phone-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-medium);
    color: white;
}

.header-phone-btn:hover::before {
    left: 100%;
}

/* Main Navigation */
.main-navigation {
    position: relative;
}

.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
    flex-direction: column;
    gap: 4px;
    width: 40px;
    height: 40px;
    align-items: center;
    justify-content: center;
}

.hamburger-line {
    width: 25px;
    height: 3px;
    background: var(--text-color);
    transition: all 0.3s ease;
    border-radius: 2px;
}

.nav-menu {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 35px;
    align-items: center;
}

.nav-item {
    position: relative;
}

.nav-link {
    color: var(--text-color);
    text-decoration: none;
    font-size: 15px;
    font-weight: 500;
    padding: 8px 0;
    display: flex;
    align-items: center;
    gap: 5px;
    transition: color 0.3s ease;
    white-space: nowrap;
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary-color);
}

.submenu-arrow {
    font-size: 12px;
    transition: transform 0.3s ease;
}

/* Submenu */
.has-submenu .submenu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: white;
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
    border-radius: 8px;
    min-width: 280px;
    z-index: 1000;
    margin-top: 5px;
    padding: 15px 0;
    border: 1px solid var(--border-light);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
}

.has-submenu::before {
    content: '';
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    height: 10px;
    background: transparent;
    z-index: 999;
}

.has-submenu:hover .submenu,
.has-submenu.submenu-open .submenu {
    display: block;
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    animation: submenuFadeIn 0.3s ease;
}

.has-submenu:hover .submenu-arrow,
.has-submenu.submenu-open .submenu-arrow {
    transform: rotate(180deg);
}

@keyframes submenuFadeIn {
    0% {
        opacity: 0;
        transform: translateY(-10px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

.submenu li {
    list-style: none;
}

.submenu li a {
    color: var(--text-color);
    text-decoration: none;
    padding: 12px 25px;
    display: block;
    font-size: 14px;
    font-weight: 400;
    transition: all 0.3s ease;
    border-left: 3px solid transparent;
}

.submenu li a:hover {
    background: var(--light-bg);
    color: var(--primary-color);
    border-left-color: var(--primary-color);
}

/* Footer */
.site-footer {
    background: #333;
    color: white;
    padding: 60px 0 30px;
}

.footer-section h4 {
    font-size: 18px;
    margin-bottom: 25px;
    font-weight: 600;
    color: white;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    color: #ccc;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: var(--primary-color);
}

.footer-hours {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-hours li {
    margin-bottom: 12px;
    font-size: 14px;
    color: #ccc;
}

.footer-hours li span {
    font-weight: 500;
    color: white;
}

.footer-contact h5 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 20px;
    color: white;
}

.contact-item {
    display: inline;
    margin-bottom: 15px;
    font-size: 14px;
    color: #252525;
}

.contact-item strong {
    color: white;
    font-weight: 500;
}

.contact-item span {
    display: block;
    margin-bottom: 5px;
}

.footer-phone {
    display: inline;
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    font-size: 16px;
    transition: color 0.3s ease;
}

.footer-phone:hover {
    color: var(--primary-hover);
}

.social-links {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.social-links a {
    color: white;
    font-size: 20px;
    width: 40px;
    height: 40px;
    background: rgba(255,255,255,0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.social-links a:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-2px);
}

.footer-bottom {
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid rgba(255,255,255,0.1);
}

.copyright {
    margin: 0;
    opacity: 0.8;
    font-size: 14px;
}

.designed-by {
    margin: 0;
    opacity: 0.8;
    font-size: 14px;
}

.design-link {
    color: #ccc;
    text-decoration: none;
    transition: color 0.3s ease;
}

.design-link:hover {
    color: var(--primary-color);
}

.kvkk-link {
    color: #ccc;
    text-decoration: none;
    font-size: 14px;
    margin-top: 15px;
    display: inline-block;
    transition: color 0.3s ease;
}

.kvkk-link:hover {
    color: var(--primary-color);
}

/* Mobile Styles */
@media (max-width: 991px) {
    .site-header {
        padding: 10px 0;
    }

    .header-content {
        display: grid;
        grid-template-columns: 1fr auto auto;
        grid-template-areas: "logo phone menu";
        align-items: center;
        gap: 10px;
        max-width: 100%;
    }
    
    .logo-section {
        grid-area: logo;
        min-width: 0; /* Allow shrinking */
        overflow: hidden;
    }
    
    .header-phone-section {
        grid-area: phone;
        white-space: nowrap;
    }
    
    .nav-section {
        grid-area: menu;
        position: relative;
    }

    .mobile-menu-toggle {
        display: flex;
    }

    /* Compact logo for mobile */
    .doctor-title {
        font-size: 14px;
    }
    
    .doctor-name {
        font-size: 18px;
        letter-spacing: 0px;
    }

    /* Compact phone button */
    .header-phone-btn {
        padding: 8px 12px;
        font-size: 11px;
        border-radius: 20px;
        white-space: nowrap;
        min-width: fit-content;
    }

    .nav-menu {
        display: none;
        flex-direction: column;
        gap: 0;
        background: white;
        position: fixed;
        top: 0;
        left: 0;
        width: 100vw;
        height: 100vh;
        padding: 80px 0 20px;
        z-index: 9999;
        overflow-y: auto;
        box-shadow: none;
    }

    .nav-menu.active {
        display: flex;
    }

    .nav-item {
        border-bottom: 1px solid var(--border-light);
        width: 100%;
    }

    .nav-item:last-child {
        border-bottom: none;
    }

    .nav-link {
        padding: 20px 30px;
        justify-content: space-between;
        font-size: 16px;
        font-weight: 600;
        width: 100%;
        display: flex;
    }

    .nav-link:hover {
        background: var(--light-bg);
    }

    .has-submenu .submenu {
        position: static;
        box-shadow: none;
        border: none;
        margin: 0;
        padding: 0;
        background: var(--light-bg);
        display: none;
        width: 100%;
        opacity: 1;
        visibility: visible;
        transform: none;
        transition: none;
    }

    .has-submenu.active .submenu {
        display: block;
    }

    .submenu li {
        width: 100%;
    }

    .submenu li a {
        padding: 15px 50px;
        border-left: none;
        background: none;
        font-size: 15px;
        color: var(--text-light);
        width: 100%;
        display: block;
    }

    .submenu li a:hover {
        background: rgba(0, 123, 255, 0.1);
        color: var(--primary-color);
    }

    /* Mobile menu close button */
    .nav-menu::before {
        content: '×';
        position: fixed;
        top: 20px;
        right: 30px;
        font-size: 30px;
        color: var(--text-color);
        cursor: pointer;
        z-index: 10000;
        width: 40px;
        height: 40px;
        display: flex;
        align-items: center;
        justify-content: center;
        background: var(--light-bg);
        border-radius: 50%;
        box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    }
}

/* Very small mobile screens - Creative two-row layout */
@media (max-width: 480px) {
    .site-header {
        padding: 8px 0;
    }

    .header-content {
        grid-template-columns: 1fr auto;
        grid-template-areas: 
            "logo menu"
            "phone phone";
        gap: 5px;
        padding: 0 10px;
        row-gap: 10px;
    }
    
    .header-phone-section {
        grid-area: phone;
        justify-self: center;
        margin-top: 0;
    }
    
    /* Super compact logo */
    .text-logo {
        display: flex;
        align-items: baseline;
        gap: 5px;
    }
    
    .doctor-title {
        font-size: 11px;
        line-height: 1;
    }
    
    .doctor-name {
        font-size: 15px;
        line-height: 1;
        letter-spacing: -0.5px;
    }
    
    /* Compact phone button with icon */
    .header-phone-btn {
        padding: 6px 12px;
        font-size: 10px;
        font-weight: 600;
        display: flex;
        align-items: center;
        gap: 4px;
        border-radius: 15px;
    }
    
    .header-phone-btn::before {
        content: '📞';
        font-size: 10px;
        margin-right: 2px;
    }
    
    /* Smaller hamburger */
    .mobile-menu-toggle {
        width: 32px;
        height: 32px;
        gap: 3px;
    }
    
    .hamburger-line {
        width: 18px;
        height: 2px;
    }
}

/* Medium mobile screens */
@media (max-width: 767px) and (min-width: 481px) {
    .header-content {
        gap: 8px;
        padding: 0 15px;
    }
    
    .doctor-title {
        font-size: 13px;
    }
    
    .doctor-name {
        font-size: 17px;
    }
    
    .header-phone-btn {
        padding: 7px 14px;
        font-size: 11px;
    }
}

/* Large mobile/small tablet */
@media (max-width: 991px) and (min-width: 768px) {
    .header-content {
        gap: 15px;
        padding: 0 20px;
    }
    
    .doctor-title {
        font-size: 16px;
    }
    
    .doctor-name {
        font-size: 20px;
    }
    
    .header-phone-btn {
        padding: 10px 16px;
        font-size: 12px;
    }
}

/* Mobile landscape mode - Creative horizontal-friendly layout */
@media (max-width: 991px) and (orientation: landscape) and (max-height: 500px) {
    .site-header {
        padding: 5px 0;
    }
    
    .header-content {
        grid-template-columns: 1fr auto auto;
        grid-template-areas: "logo phone menu";
        gap: 10px;
        padding: 0 15px;
    }
    
    .header-phone-section {
        grid-area: phone;
        justify-self: auto;
        margin-top: 0;
    }
    
    .doctor-title {
        font-size: 12px;
    }
    
    .doctor-name {
        font-size: 16px;
    }
    
    .nav-menu {
        padding: 50px 0 10px;
        max-height: 100vh;
    }
    
    .nav-link {
        padding: 12px 20px;
        font-size: 14px;
    }
}

/* Common mobile nav styles */
@media (max-width: 991px) {
    .nav-menu {
        padding: 70px 0 20px;
    }
    
    .nav-link {
        padding: 18px 20px;
        font-size: 15px;
    }
    
    .submenu li a {
        padding: 12px 40px;
        font-size: 14px;
    }
}

/* Ultra-creative fallback for very constrained spaces */
@media (max-width: 360px) {
    .doctor-name {
        font-size: 14px !important;
        font-weight: 800;
    }
    
    .doctor-title {
        font-size: 10px !important;
    }
    
    .header-phone-btn {
        padding: 5px 10px !important;
        font-size: 9px !important;
    }
    
    .mobile-menu-toggle {
        width: 30px !important;
        height: 30px !important;
    }
    
    .hamburger-line {
        width: 16px !important;
        height: 2px !important;
    }
}

@media (max-width: 991px) {
    .header-actions {
        gap: 8px;
    }
    
    .header-phone-btn {
        display: none;
    }
    
    .lang-toggle {
        padding: 6px 10px;
        font-size: 12px;
    }
    
    .footer-section {
        margin-bottom: 40px;
        text-align: center;
    }

    .footer-hours li {
        text-align: center;
    }

    .contact-item {
        text-align: center;
    }

    .social-links {
        justify-content: center;
    }
    
    .designed-by {
        text-align: left !important;
        margin-top: 10px;
    }
}

/* ==========================================
   Image Lightbox (Reusable Component)
   Usage: Add class "lightbox-trigger" to any img
   ========================================== */
.lightbox {
    position: fixed;
    inset: 0;
    z-index: 10000;
    background: rgba(0, 0, 0, 0.95);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.lightbox.active {
    opacity: 1;
    visibility: visible;
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: none;
    border: none;
    color: white;
    font-size: 24px;
    cursor: pointer;
    padding: 10px;
    opacity: 0.7;
    transition: opacity 0.2s ease;
    z-index: 1;
}

.lightbox-close:hover {
    opacity: 1;
}

.lightbox-content {
    max-width: 90vw;
    max-height: 90vh;
    transform: scale(0.95);
    transition: transform 0.3s ease;
}

.lightbox.active .lightbox-content {
    transform: scale(1);
}

.lightbox-content img {
    max-width: 100%;
    max-height: 90vh;
    object-fit: contain;
    border-radius: 4px;
    box-shadow: 0 10px 50px rgba(0, 0, 0, 0.5);
}

/* Clickable images that open lightbox */
.lightbox-trigger {
    cursor: zoom-in;
}