/* --- Genel Sıfırlama ve Temel Ayarlar --- */
body, html {
    margin: 0;
    padding: 0;
    width: 100%;
    height: 100%;
    /* Base gradient overlaid by creative SVG hero background */
    background:
        url('bg-hero-creative.svg') center/cover no-repeat fixed,
        linear-gradient(45deg, #f3f1ec, #e8e6e1);
    font-family: 'Inter', sans-serif;
    color: #1a1a1a;
    -webkit-font-smoothing: antialiased;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    overflow: hidden;
    perspective: 1200px;
    transition: all 0.6s ease;
    position: relative;
}

/* Arka plan için atmosferik efektler */
body::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 20% 50%, rgba(255,255,255,0.1) 0%, transparent 50%),
                radial-gradient(circle at 80% 20%, rgba(0,0,0,0.05) 0%, transparent 50%),
                radial-gradient(circle at 40% 80%, rgba(255,255,255,0.08) 0%, transparent 50%);
    pointer-events: none;
    z-index: 1;
}

body::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        linear-gradient(45deg, transparent 49%, rgba(255,255,255,0.02) 50%, transparent 51%),
        linear-gradient(-45deg, transparent 49%, rgba(0,0,0,0.02) 50%, transparent 51%);
    background-size: 20px 20px;
    pointer-events: none;
    z-index: 2;
}

.content-wrapper {
    opacity: 1;
    position: relative;
    z-index: 10;
}

/* --- Logo ve Alt Başlık --- */
.main-title {
    font-size: 4vw;
    font-weight: 400;
    letter-spacing: 0.1em;
    margin: 0;
    color: #0e0e0e;
    opacity: 0;
    transform: scale(0.9);
    animation: fadeInScale 1.2s cubic-bezier(0.25, 0.46, 0.45, 0.94) 0.5s forwards;
}

.subtitle {
    font-size: 1.2vw;
    font-weight: 300;
    color: #6f6f6f;
    margin-top: 15px;
    letter-spacing: 0.05em;
    opacity: 0;
    animation: fadeIn 1s ease-out 1.2s forwards;
}

/* --- Hizmetler Menüsü (YATAY DÜZEN) --- */
.services-nav {
    margin-top: 40px;
    transition: transform 0.1s linear;
}

.services-nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    justify-content: center;
    gap: 40px;
    transition: transform 0.4s ease;
    width: 100%;
}

.services-nav li {
    opacity: 0;
    animation: fadeIn 0.8s ease-out forwards;
}

.services-nav a {
    text-decoration: none;
    color: #6f6f6f;
    font-size: 3.2vw;
    font-weight: 500;
    display: block;
    padding: 20px 30px;
    transition: all 0.4s ease;
    position: relative;
    text-transform: uppercase;
    letter-spacing: 0.02em;
}

.services-nav a:hover {
    color: #ffffff;
    font-weight: 600;
    z-index: 10;
}

/* Dinamik menü için sınıflar */
.services-nav a.focused {
    transform: scale(1.2);
    color: #ffffff;
    font-weight: 700;
}

.services-nav a.unfocused {
    opacity: 0.3;
    transform: scale(0.8);
}

/* --- Animasyon Gecikmeleri --- */
.services-nav li:nth-child(1) { animation-delay: 1.8s; }
.services-nav li:nth-child(2) { animation-delay: 2.0s; }
.services-nav li:nth-child(3) { animation-delay: 2.2s; }
.services-nav li:nth-child(4) { animation-delay: 2.4s; }

/* --- Animasyon Tanımları --- */
@keyframes fadeInScale { to { opacity: 1; transform: scale(1); } }
@keyframes fadeIn { to { opacity: 1; } }

/* --- Güncelleme Mesajı --- */
.update-message {
    margin: 60px auto 120px;
    max-width: 800px;
    text-align: center;
    padding: 30px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.update-message p {
    font-size: 1.8rem;
    font-weight: 400;
    color: #4a4a4a;
    margin: 0;
    padding: 25px 50px;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    opacity: 0;
    animation: fadeInMessage 1s ease-out 3s forwards;
    letter-spacing: 0.02em;
    line-height: 1.6;
    max-width: 800px;
    margin: 0 auto;
}

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

/* --- Mobil cihazlar için optimize edilmiş ayarlar --- */
@media (max-width: 768px) {
    /* Make the page scrollable on mobile and avoid fixed-centered layout */
    html, body {
        display: block;
        min-height: 100%;
        height: auto;
        overflow: auto;
        text-align: center;
        padding: 0;
    }

    .content-wrapper {
        padding: 18px 12px 0;
    }

    .main-title {
        font-size: 7.5vw;
        margin-top: 10px;
        letter-spacing: 0.08em;
    }

    .subtitle { font-size: 3.2vw; margin-bottom: 6px; }

    /* Stack services vertically and center them with bigger gaps for touch */
    .services-nav {
        margin-top: 10px;
    }
    .services-nav ul { flex-direction: column; gap: 28px; align-items: center; }
    .services-nav a {
        font-size: 6.2vw;
        padding: 10px 18px;
        white-space: normal;
        text-align: center;
    }

    /* Disable large scale hover/focus transforms on small screens */
    .services-nav a.focused,
    .services-nav a.unfocused {
        transform: none;
        opacity: 1;
    }

    /* Message box spacing and sizing adjusted for narrow screens */
    .update-message {
        margin: 18px auto 40px;
        padding: 14px;
        max-width: 92%;
    }
    .update-message p {
        font-size: 1.25rem;
        padding: 18px 18px;
        line-height: 1.5;
        max-width: 100%;
    }

    /* Footer should flow after content on mobile (not fixed) */
    .site-footer {
        position: static;
        bottom: auto;
        left: auto;
        width: 100%;
        background: rgba(255,255,255,0.03);
        backdrop-filter: blur(8px);
        transform: none;
        animation: none;
        margin-top: 10px;
        z-index: 10;
    }

    .footer-content {
        flex-direction: column;
        gap: 18px;
        padding: 18px 20px;
        text-align: center;
        align-items: center;
    }

    /* Center footer columns and social icons explicitly */
    .footer-left, .footer-center, .footer-right {
        width: 100%;
        display: flex;
        justify-content: center;
        align-items: center;
        text-align: center;
    }

    .footer-right .social-links {
        justify-content: center;
        gap: 12px;
    }

    .footer-bottom {
        text-align: center;
        padding: 18px 20px;
    }

    .footer-left .footer-logo { font-size: 1rem; }
    .footer-center .contact-info p { font-size: 0.95rem; }

    .footer-right .social-links { justify-content: center; }
    .footer-right .social-links a { width: 40px; height: 40px; }

    .footer-bottom { padding: 14px 20px; }
}

/* Ensure footer is visible on mobile devices */
@media (max-width: 768px) {
    .site-footer {
        opacity: 1 !important;
        transform: none !important;
        position: static !important;
    }

    /* Give the page bottom padding so the footer doesn't overlap the message */
    .content-wrapper {
        padding-bottom: 40px !important;
    }
}

/* --- Footer Tasarımı --- */
.site-footer {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(20px);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    z-index: 5;
    opacity: 0;
    transform: translateY(100%);
    animation: slideUpFooter 1s ease-out 4s forwards;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 40px 25px;
    gap: 50px;
}

.footer-left .footer-logo {
    font-size: 1.2rem;
    font-weight: 600;
    color: #2a2a2a;
    margin-bottom: 8px;
    letter-spacing: 0.05em;
}

.footer-left .footer-tagline {
    font-size: 0.9rem;
    color: #6f6f6f;
    margin: 0;
    font-weight: 300;
}

.footer-center .contact-info p {
    margin: 4px 0;
    font-size: 0.9rem;
    color: #4a4a4a;
}

.footer-center .contact-info p:first-child {
    font-weight: 500;
    margin-bottom: 8px;
}

.footer-right .social-links {
    display: flex;
    gap: 15px;
}

.footer-right .social-links a {
    display: inline-block;
    width: 35px;
    height: 35px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    text-decoration: none;
    color: #4a4a4a;
    font-size: 0.8rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.footer-right .social-links a:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.footer-bottom {
    text-align: center;
    padding: 20px 40px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(0, 0, 0, 0.02);
}

.footer-bottom p {
    margin: 5px 0;
    font-size: 0.8rem;
    color: #8a8a8a;
    font-weight: 300;
}

.powered-by {
    margin-top: 8px;
    font-size: 0.75rem;
}

.powered-by a {
    color: #ffffff;
    text-decoration: none;
    font-weight: 400;
    transition: all 0.3s ease;
    border-bottom: 1px solid transparent;
}

.powered-by a:hover {
    color: #007bff;
    border-bottom-color: #007bff;
    transform: translateY(-1px);
}

@keyframes slideUpFooter {
    from {
        opacity: 0;
        transform: translateY(100%);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* (Removed duplicate mobile styles — consolidated earlier in file) */

/* Final mobile safety overrides — placed last so they win against earlier rules */
@media (max-width: 768px) {
    html, body {
        display: block !important;
        overflow: auto !important;
        height: auto !important;
    }

    /* Ensure footer flows with content on small screens */
    .site-footer {
        position: static !important;
        bottom: auto !important;
        left: auto !important;
        transform: none !important;
        animation: none !important;
        z-index: 10 !important;
    }

    /* Remove any menu transforms and ensure normal flow */
    .services-nav, .services-nav ul {
        transform: none !important;
        width: auto !important;
    }
    .services-nav li, .services-nav a {
        opacity: 1 !important;
        transform: none !important;
        display: block !important;
    }

    /* Give more breathing room so the boxed message won't overlap */
    .content-wrapper { padding-bottom: 30px !important; }
}
