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

html {
    scroll-behavior: smooth;
}

body {
    font-family: Arial, sans-serif;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    overflow-x: hidden;
}

/* Page Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeOut {
    from {
        opacity: 1;
        transform: translateY(0);
    }
    to {
        opacity: 0;
        transform: translateY(-20px);
    }
}

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

@keyframes slideInFromLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.page-transition {
    animation: fadeIn 0.6s ease-out;
}

.page-exit {
    animation: fadeOut 0.4s ease-in;
    pointer-events: none;
}

.seko-page {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    animation: fadeIn 0.5s ease-out;
}

.main-content {
    flex: 1;
    animation: fadeIn 0.7s ease-out 0.2s backwards;
}

/* Navigation Styles */
.main-nav {
    background: #ffffff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
    animation: slideInFromTop 0.5s ease-out;
}

@keyframes slideInFromTop {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

/* Section Fade In Animation */
.fade-in-section {
    opacity: 0;
    transform: translateY(30px);
    will-change: opacity, transform;
}

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

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

.logo-link img {
    height: 40px;
    width: auto;
    transition: transform 0.3s ease;
}

.logo-link:hover img {
    transform: scale(1.05);
}

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

.nav-links a {
    text-decoration: none;
    color: #333;
    font-weight: 500;
    font-size: 15px;
    transition: all 0.3s ease;
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: #0066CC;
    transition: width 0.3s ease;
}

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

.nav-links a:hover {
    color: #0066CC;
}

.main-nav .language-switcher {
    position: relative;
    display: flex;
    gap: 8px;
    background: #f5f5f5;
    padding: 8px 12px;
    border-radius: 20px;
}

.main-nav .language-switcher a {
    text-decoration: none;
    color: #666;
    font-weight: 600;
    font-size: 13px;
    padding: 4px 12px;
    border-radius: 12px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.main-nav .language-switcher a::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(0, 102, 204, 0.1);
    transform: translate(-50%, -50%);
    transition: width 0.4s ease, height 0.4s ease;
}

.main-nav .language-switcher a:hover::before {
    width: 100%;
    height: 100%;
}

.main-nav .language-switcher a:hover {
    background: #e0e0e0;
    color: #333;
    transform: translateY(-2px);
}

.main-nav .language-switcher a.active {
    background: #0066CC;
    color: white;
    box-shadow: 0 2px 8px rgba(0, 102, 204, 0.3);
    transform: scale(1.05);
}

/* Hamburger Menu Button */
.hamburger-menu {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    z-index: 1001;
    transition: all 0.3s ease;
    position: relative;
}

.hamburger-menu span {
    width: 25px;
    height: 3px;
    background: #333;
    border-radius: 3px;
    transition: all 0.3s ease;
    display: block;
}

.hamburger-menu.active span {
    background: #333;
}

.hamburger-menu.active span:nth-child(1) {
    transform: rotate(45deg) translate(8px, 8px);
}

.hamburger-menu.active span:nth-child(2) {
    opacity: 0;
}

.hamburger-menu.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
}

/* Mobile Menu Overlay */
.mobile-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    z-index: 1000;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Mobile Menu Close Button */
.mobile-menu-close {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
    background: none;
    border: none;
    cursor: pointer;
    z-index: 1001;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transform: rotate(0deg);
    transition: all 0.3s ease;
}

.mobile-menu-overlay.active .mobile-menu-close {
    opacity: 1;
    transform: rotate(90deg);
    transition-delay: 0.2s;
}

.mobile-menu-close::before,
.mobile-menu-close::after {
    content: '';
    position: absolute;
    width: 30px;
    height: 3px;
    background: #333;
    border-radius: 3px;
    transition: all 0.3s ease;
}

.mobile-menu-close::before {
    transform: rotate(45deg);
}

.mobile-menu-close::after {
    transform: rotate(-45deg);
}

.mobile-menu-close:hover::before,
.mobile-menu-close:hover::after {
    background: #0066CC;
}

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

.mobile-menu-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 30px;
    padding: 40px 20px;
    transform: translateY(20px);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1) 0.1s;
}

.mobile-menu-overlay.active .mobile-menu-content {
    transform: translateY(0);
}

.mobile-menu-content a {
    text-decoration: none;
    color: #333;
    font-size: 28px;
    font-weight: 600;
    transition: all 0.3s ease;
    opacity: 0;
    transform: translateY(20px);
}

.mobile-menu-overlay.active .mobile-menu-content a {
    opacity: 1;
    transform: translateY(0);
}

.mobile-menu-overlay.active .mobile-menu-content a:nth-child(1) { transition-delay: 0.15s; }
.mobile-menu-overlay.active .mobile-menu-content a:nth-child(2) { transition-delay: 0.2s; }
.mobile-menu-overlay.active .mobile-menu-content a:nth-child(3) { transition-delay: 0.25s; }
.mobile-menu-overlay.active .mobile-menu-content a:nth-child(4) { transition-delay: 0.3s; }
.mobile-menu-overlay.active .mobile-menu-content a:nth-child(5) { transition-delay: 0.35s; }

.mobile-menu-content a:hover {
    color: #0066CC;
    transform: scale(1.1);
}

.mobile-language-switcher {
    display: flex;
    gap: 15px;
    margin-top: 40px;
    padding: 15px 30px;
    background: #f5f5f5;
    border-radius: 30px;
}

.mobile-language-switcher a {
    font-size: 18px !important;
    padding: 10px 20px;
    border-radius: 20px;
    background: white;
    color: #333;
    transition: all 0.3s ease;
}

.mobile-language-switcher a:hover {
    background: #e0e0e0;
    transform: scale(1.05) !important;
}

.mobile-language-switcher a.active {
    background: #0066CC;
    color: white;
}

/* Mobile Navigation */
@media (max-width: 768px) {
    .hamburger-menu {
        display: flex;
        margin-right: 0;
        padding: 0;
    }

    .nav-links,
    .main-nav .language-switcher {
        display: none !important;
    }

    .nav-container {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        gap: 0;
        padding: 15px 20px;
        width: 100%;
    }

    .logo-link {
        margin-left: 0;
    }

    .logo-link img {
        height: 35px;
    }
}

.language-switcher a:hover {
    background: #f0f0f0;
}

.language-switcher a.active {
    background: #333;
    color: white;
}

/* RTL Support for Arabic */
[dir="rtl"] .language-switcher {
    right: auto;
    left: 20px;
}

/* Mobile - Yatay bölünmüş (üst üste) */
@media (max-width: 768px) {
    .container {
        grid-template-columns: 1fr;
        grid-template-rows: 1fr 1fr;
    }

    .logo {
        width: 150px;
        height: 150px;
        font-size: 20px;
    }

    .logo-image {
        max-width: 180px;
    }

    .tagline {
        font-size: 18px;
    }

    .description {
        font-size: 14px;
        max-width: 90%;
    }

    .content {
        gap: 15px;
        max-width: 90%;
    }

    .enter-button {
        padding: 12px 30px;
        font-size: 16px;
    }
}

img.logo-image {
    filter: brightness(15);
}

/* SEKO Footer Styles */
.seko-footer {
    background: #1a1a1a;
    color: #ffffff;
    padding: 40px 20px 30px;
    margin-top: auto;
    animation: fadeIn 0.8s ease-out 0.4s backwards;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
}

/* Back to Home Button - Below Address */
.footer-home-btn {
    margin-top: 20px;
}

.home-button {
    display: inline-block;
    padding: 10px 25px;
    background: #0066CC;
    color: #ffffff;
    text-decoration: none;
    border-radius: 6px;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.3s ease;
}

.home-button:hover {
    background: #0052A3;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 102, 204, 0.3);
}

/* Footer 3 Column Grid */
.footer-grid-3col {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 0;
}

.footer-section {
    animation: fadeIn 0.6s ease-out backwards;
}

.footer-section:nth-child(1) {
    animation-delay: 0.5s;
}

.footer-section:nth-child(2) {
    animation-delay: 0.6s;
}

.footer-section:nth-child(3) {
    animation-delay: 0.7s;
}

.footer-section h3 {
    font-size: 16px;
    margin-bottom: 20px;
    color: #ffffff;
    font-weight: 600;
}

/* Logo Inline (smaller) */
.footer-logo-inline {
    margin-bottom: 20px;
}

.footer-logo-inline img {
    max-width: 120px;
    height: auto;
    filter: brightness(15);
}

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

.footer-links li {
    margin-bottom: 12px;
    transform: translateX(0);
    transition: transform 0.3s ease;
}

.footer-links li:hover {
    transform: translateX(5px);
}

.footer-links a {
    color: #cccccc;
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 14px;
    position: relative;
}

.footer-links a::before {
    content: '→';
    position: absolute;
    left: -20px;
    opacity: 0;
    transition: all 0.3s ease;
}

.footer-links a:hover::before {
    opacity: 1;
    left: -15px;
}

.footer-links a:hover {
    color: #0066CC;
}

.footer-address {
    color: #cccccc;
    line-height: 1.8;
    font-size: 13px;
    margin-top: 10px;
}

/* RTL Support for Footer */
[dir="rtl"] .footer-grid-3col {
    direction: rtl;
}

[dir="rtl"] .footer-links {
    text-align: right;
}

[dir="rtl"] .footer-links li:hover {
    transform: translateX(-5px);
}

[dir="rtl"] .footer-links a::before {
    content: '←';
    right: -20px;
    left: auto;
}

[dir="rtl"] .footer-links a:hover::before {
    right: -15px;
}

[dir="rtl"] .footer-address {
    text-align: right;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .footer-grid-3col {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .seko-footer {
        padding: 30px 20px 20px;
    }

    .footer-logo-inline img {
        max-width: 100px;
    }

    .home-button {
        font-size: 13px;
        padding: 8px 20px;
    }
}

/* Accessibility: Respect prefers-reduced-motion */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    .page-transition,
    .page-exit,
    .seko-page,
    .main-content,
    .seko-footer,
    .footer-section,
    .main-nav {
        animation: none !important;
    }
}