/* 
   ========================================================================
   Pi İlaçlama Hizmetleri - Modern Glassmorphism Vanilla CSS Design 
   ======================================================================== 
*/

:root {
    /* Color Palette */
    --primary: #155E95;
    --primary-light: #2A79B8;
    --primary-dark: #0F426B;
    --secondary: #F6A316; /* Turuncu uyarı/hareket rengi */
    --secondary-hover: #E3920B;
    --accent: #27AE60; /* Yeşil güven rengi */
    --accent-hover: #219653;
    
    --dark: #121A2F;
    --darker: #0B101D;
    --text-main: #334155;
    --text-light: #64748B;
    --white: #FFFFFF;
    --bg-light: #F8FAFC;
    --bg-gray: #F1F5F9;

    /* Shadows & Glass */
    --glass-bg: rgba(255, 255, 255, 0.85);
    --glass-border: 1px solid rgba(255, 255, 255, 0.5);
    --shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
    --shadow-md: 0 10px 25px -3px rgba(0, 0, 0, 0.08), 0 4px 6px -2px rgba(0, 0, 0, 0.04);
    --shadow-lg: 0 20px 30px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    
    /* Layout */
    --container: 1200px;
    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Base Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Outfit', sans-serif;
    color: var(--text-main);
    background-color: var(--bg-light);
    line-height: 1.6;
    overflow-x: hidden;
}

ul {
    list-style: none;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Layout Utilities */
.container {
    width: 100%;
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 20px;
}

.d-flex { display: flex; }
.justify-between { justify-content: space-between; }
.justify-center { justify-content: center; }
.align-center { align-items: center; }
.flex-column { flex-direction: column; }
.gap-1 { gap: 10px; }
.gap-2 { gap: 20px; }
.gap-3 { gap: 30px; }

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 28px;
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    border: none;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.1);
    transform: translateY(100%);
    transition: var(--transition);
    z-index: -1;
}

.btn:hover::before {
    transform: translateY(0);
}

.btn-primary {
    background: var(--primary);
    color: var(--white);
    box-shadow: 0 4px 15px rgba(21, 94, 149, 0.3);
}

.btn-secondary {
    background: var(--secondary);
    color: var(--white);
    box-shadow: 0 4px 15px rgba(246, 163, 22, 0.3);
}

.btn-accent {
    background: var(--accent);
    color: var(--white);
    box-shadow: 0 4px 15px rgba(39, 174, 96, 0.3);
}

.btn-outline {
    background: transparent;
    color: var(--primary);
    border: 2px solid var(--primary);
}
.btn-outline:hover {
    color: var(--white);
    background: var(--primary);
}


/* Typography Helpers */
.section-title {
    font-size: 2.5rem;
    color: var(--dark);
    font-weight: 700;
    margin-bottom: 15px;
    position: relative;
    display: inline-block;
}
.section-title::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 60px;
    height: 4px;
    background: var(--secondary);
    border-radius: 2px;
}
.section-title.center { margin-left: auto; margin-right: auto; }
.section-title.center::after { left: 50%; transform: translateX(-50%); }

.section-subtitle {
    color: var(--text-light);
    font-size: 1.1rem;
    margin-bottom: 40px;
    max-width: 600px;
}
.section-subtitle.center { margin-left: auto; margin-right: auto; text-align: center; }

/* --- Top Bar --- */
.top-bar {
    background-color: var(--darker);
    color: rgba(255,255,255,0.8);
    padding: 8px 0;
    font-size: 0.85rem;
}
.top-info span {
    margin-right: 20px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}
.top-social a {
    color: rgba(255,255,255,0.8);
    margin-left: 15px;
}
.top-social a:hover { color: var(--secondary); }

/* --- Header / Nav --- */
.main-header {
    background: var(--glass-bg);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border-bottom: var(--glass-border);
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: var(--transition);
    padding: 15px 0;
}
.main-header.scrolled {
    padding: 10px 0;
    box-shadow: var(--shadow-sm);
    background: rgba(255, 255, 255, 0.95);
}

.logo-text {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--dark);
    letter-spacing: -0.5px;
}
.logo-text span {
    color: var(--primary);
}

.nav-links li {
    position: relative;
    margin: 0 15px;
}
.nav-links a {
    font-weight: 600;
    color: var(--text-main);
    padding: 10px 0;
    display: block;
}
.nav-links a:hover {
    color: var(--primary);
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: var(--white);
    min-width: 220px;
    box-shadow: var(--shadow-md);
    border-radius: var(--radius-sm);
    padding: 10px 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(15px);
    transition: var(--transition);
}
.dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}
.dropdown-menu li { margin: 0; }
.dropdown-menu a {
    padding: 8px 20px;
    font-size: 0.9rem;
    font-weight: 500;
}
.dropdown-menu a:hover {
    background: var(--bg-gray);
    color: var(--primary);
    padding-left: 25px;
}

.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--dark);
    cursor: pointer;
    margin-left: 15px;
}

/* --- Mobile Menu Overlay --- */
.mobile-nav-overlay {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.6);
    backdrop-filter: blur(5px);
    z-index: 2000;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
}
.mobile-nav-overlay.active {
    opacity: 1;
    visibility: visible;
}
.mobile-nav-content {
    background: var(--white);
    width: 300px;
    max-width: 80%;
    height: 100vh;
    transform: translateX(-100%);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    padding: 30px 20px;
    position: relative;
    overflow-y: auto;
}
.mobile-nav-overlay.active .mobile-nav-content {
    transform: translateX(0);
}
.close-menu {
    position: absolute;
    top: 20px; right: 20px;
    background: none; border: none;
    font-size: 1.5rem;
    color: var(--text-main);
    cursor: pointer;
}
.mobile-logo {
    font-size: 1.8rem; font-weight: 800; color: var(--dark); margin-bottom: 30px;
}
.mobile-logo span { color: var(--primary); }
.mobile-links li { margin-bottom: 15px; }
.mobile-links a { font-weight: 600; font-size: 1.1rem; display: block; }
.mobile-links .sub-link { margin-left: 15px; margin-bottom: 10px; }
.mobile-links .sub-link a { font-size: 0.95rem; font-weight: 400; color: var(--text-light); }

/* --- Pages layout --- */
.page-header {
    background: linear-gradient(135deg, var(--dark) 0%, var(--primary-dark) 100%);
    color: var(--white);
    padding: 80px 0;
    text-align: center;
    position: relative;
}
.page-header h1 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 10px;
}
.breadcrumb {
    font-size: 0.9rem;
    color: rgba(255,255,255,0.7);
}
.breadcrumb a { color: var(--secondary); font-weight: 500; }
.section-padding { padding: 80px 0; }

/* --- Footer --- */
.site-footer {
    background: var(--darker);
    color: rgba(255,255,255,0.7);
    padding-top: 80px;
}
.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 40px;
    margin-bottom: 50px;
}
.footer-logo { font-size: 2rem; color: var(--white); margin-bottom: 20px; font-weight: 800;}
.footer-logo span { color: var(--primary); }
.footer-about-text { margin-bottom: 25px; font-size: 0.95rem; }
.footer-socials a {
    width: 40px; height: 40px;
    border-radius: 50%;
    background: rgba(255,255,255,0.05);
    display: flex; align-items: center; justify-content: center;
    color: var(--white);
    margin-right: 10px;
    transition: var(--transition);
}
.footer-socials a:hover { background: var(--primary); transform: translateY(-3px); }

.widget-title { color: var(--white); font-size: 1.2rem; font-weight: 600; margin-bottom: 25px; position: relative;}
.widget-title::after { content: ''; position: absolute; left: 0; bottom: -8px; width: 40px; height: 3px; background: var(--secondary); }
.footer-links li { margin-bottom: 12px; }
.footer-links a:hover { color: var(--secondary); padding-left: 5px; }

.footer-contact-info li { display: flex; align-items: flex-start; gap: 12px; margin-bottom: 15px; }
.footer-contact-info i { color: var(--secondary); margin-top: 5px; }

.footer-bottom { border-top: 1px solid rgba(255,255,255,0.1); padding: 20px 0; font-size: 0.9rem; }
.developer-link i { color: #e74c3c; }

/* WhatsApp Float */
.whatsapp-float {
    position: fixed;
    bottom: 30px; right: 30px;
    width: 60px; height: 60px;
    background-color: #25d366;
    color: #FFF;
    border-radius: 50px;
    text-align: center;
    font-size: 30px;
    box-shadow: 2px 2px 10px rgba(0,0,0,0.2);
    z-index: 100;
    display: flex; align-items: center; justify-content: center;
    transition: var(--transition);
    animation: pulse 2s infinite;
}
.whatsapp-float:hover {
    transform: scale(1.1);
    background-color: #20b858;
    color: #fff;
}
@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7); }
    70% { box-shadow: 0 0 0 15px rgba(37, 211, 102, 0); }
    100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); }
}

/* Animations & Effects */
.fade-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}
.fade-up.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Base Card (Glassmorphic) */
.glass-card {
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: var(--glass-border);
    border-radius: var(--radius-md);
    padding: 30px;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}
.glass-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
    border-color: rgba(255, 255, 255, 0.8);
}


/* Media Queries */
@media (max-width: 1024px) {
    .nav-links-wrapper { display: none; }
    .btn-call { display: none !important; }
    .mobile-menu-toggle { display: block; }
    
    .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
    .top-bar { display: none; } /* Hide top bar on very small devices to save space */
    .page-header h1 { font-size: 2.2rem; }
    .footer-grid { grid-template-columns: 1fr; gap: 30px;}
}
