/* Base Setup */
body {
    background-color: #050511;
    color: #e2e8f0;
    overflow-x: hidden;
    transition: background-color 0.5s ease, color 0.5s ease;
}

/* Typography */
h1, h2, h3, h4, h5, h6, .font-heading {
    font-family: 'Outfit', sans-serif;
}

/* Animated Aurora Background - Default Dark */
.aurora-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -2;
    background: radial-gradient(circle at 50% -20%, #1e1b4b, #050511);
    transition: background 0.5s ease;
}

.aurora-lights {
    position: fixed;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: conic-gradient(from 0deg at 50% 50%, #0f172a 0deg, #312e81 60deg, #0f172a 120deg, #4c1d95 180deg, #0f172a 240deg, #1e3a8a 300deg, #0f172a 360deg);
    filter: blur(120px);
    opacity: 0.4;
    animation: spin 30s linear infinite;
    z-index: -1;
    pointer-events: none;
    transition: opacity 0.5s ease, filter 0.5s ease;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* Glass Cards - Default Dark */
.glass-card {
    background: linear-gradient(145deg, rgba(255,255,255,0.08) 0%, rgba(255,255,255,0.02) 100%);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.2);
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.glass-card:hover {
    border-color: rgba(255, 255, 255, 0.25);
    transform: translateY(-5px);
    box-shadow: 0 10px 40px rgba(99, 102, 241, 0.15);
    background: linear-gradient(145deg, rgba(255,255,255,0.12) 0%, rgba(255,255,255,0.04) 100%);
}

/* Navbar */
.nav-modern {
    background: rgba(5, 5, 17, 0.85);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    transition: background 0.5s ease, border-color 0.5s ease;
}

/* Dropdown Menu */
.dropdown-menu {
    background-color: #0f172a;
    border: 1px solid rgba(255, 255, 255, 0.15);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
    transition: background-color 0.3s ease;
}

/* Gradient Text */
.text-gradient-main {
    background: linear-gradient(to right, #ffffff, #94a3b8);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.text-gradient-accent {
    background: linear-gradient(135deg, #818cf8 0%, #e879f9 50%, #22d3ee 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Modern Buttons */
.btn-glow {
    position: relative;
    background: transparent;
    color: white;
    z-index: 1;
    overflow: hidden;
    transition: all 0.3s ease;
    border: 1px solid rgba(255,255,255,0.2);
}
.btn-glow::before {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 0%; height: 100%;
    background: linear-gradient(90deg, #6366f1, #d946ef);
    z-index: -1;
    transition: all 0.4s cubic-bezier(0.77, 0, 0.175, 1);
}
.btn-glow:hover::before {
    width: 100%;
}
.btn-glow:hover {
    border-color: transparent;
    box-shadow: 0 0 20px rgba(217, 70, 239, 0.4);
}

/* Page View System */
.page-view {
    display: none;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}
.page-view.active {
    display: block;
    opacity: 1;
    transform: translateY(0);
}

/* Feature List Styling */
.modern-list li {
    position: relative;
    padding-left: 1.5rem;
    margin-bottom: 0.8rem;
    color: #cbd5e1;
}
.modern-list li::before {
    content: "\2022";
    color: #8b5cf6;
    position: absolute;
    left: 0;
    font-size: 1.5rem;
    line-height: 1.5rem;
}

/* Category Card Overlay */
.category-card {
    transition: all 0.3s ease;
    background-size: cover;
    background-position: center;
    position: relative;
    overflow: hidden;
}
.category-card:hover {
    transform: scale(1.02);
}
.category-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(5, 5, 17, 0.95), rgba(5, 5, 17, 0.3));
    transition: all 0.3s;
}

/* Table Styles for Dark Mode */
.tech-table tr {
    border-bottom: 1px solid rgba(255,255,255,0.1);
}
.tech-table tr:nth-child(even) {
    background-color: rgba(255,255,255,0.03);
}
.tech-table td {
    padding: 1rem;
    color: #e2e8f0;
}
.tech-table td:first-child {
    font-weight: bold;
    color: #94a3b8;
}

/* Ok Animasyonu */
.arrow-hit {
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

/* Slider Styles */
.slide-content h1, .slide-content p, .slide-content div {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease-out;
}
.slide-active .slide-content h1 { transition-delay: 0.2s; opacity: 1; transform: translateY(0); }
.slide-active .slide-content p { transition-delay: 0.4s; opacity: 1; transform: translateY(0); }
.slide-active .slide-content div { transition-delay: 0.6s; opacity: 1; transform: translateY(0); }

.nav-dropdown {
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
}
.group:hover .nav-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.num-badge {
    font-family: 'Outfit', sans-serif;
    font-weight: 800;
    opacity: 0.1;
    position: absolute;
    top: 1rem;
    right: 1.5rem;
    font-size: 4rem;
    color: white;
    pointer-events: none;
}

/* MOBİL MENÜ STİLLERİ */
#mobile-menu {
    transform: translateX(100%);
}
#mobile-menu.open {
    transform: translateX(0);
}
.mobile-link {
    border-bottom: 1px solid rgba(255,255,255,0.05);
}
.mobile-accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
}
.mobile-accordion-content.open {
    max-height: 500px;
}


/* =========================================
   LIGHT MODE OVERRIDES (AYDINLIK MOD)
   ========================================= */
body.light-mode {
    background-color: #f8fafc;
    color: #1e293b;
}

/* Mobile Menu Light */
body.light-mode #mobile-menu {
    background-color: rgba(255, 255, 255, 0.98);
}
body.light-mode #mobile-menu .text-white { color: #0f172a !important; }
body.light-mode .mobile-link { border-bottom-color: rgba(0,0,0,0.05); }
body.light-mode .mobile-link .text-white { color: #0f172a !important; }
body.light-mode .mobile-link .text-gray-400 { color: #64748b !important; }

/* Text Colors */
body.light-mode .text-white { color: #0f172a !important; }
body.light-mode .text-gray-300 { color: #475569 !important; }
body.light-mode .text-gray-400 { color: #64748b !important; }
body.light-mode .text-gray-500 { color: #94a3b8 !important; }
body.light-mode .text-slate-300 { color: #334155 !important; }

/* Background Colors */
body.light-mode .bg-slate-900 { background-color: #ffffff !important; }

/* Navbar Light */
body.light-mode .nav-modern {
    background: rgba(255, 255, 255, 0.9);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    box-shadow: 0 4px 20px rgba(0,0,0,0.03);
}
body.light-mode .nav-modern .text-gray-300 { color: #475569 !important; }
body.light-mode .nav-modern .hover\:text-white:hover { color: #000000 !important; }
body.light-mode .nav-modern .hover\:bg-white\/5:hover { background-color: rgba(0,0,0,0.05) !important; }

/* Dropdown Light */
body.light-mode .dropdown-menu {
    background-color: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.05);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}
body.light-mode .dropdown-menu a:hover { background-color: #f1f5f9; }

/* Glass Card Light */
body.light-mode .glass-card {
    background: #ffffff;
    border: 1px solid rgba(0,0,0,0.08);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    backdrop-filter: none;
}
body.light-mode .glass-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
    border-color: rgba(0,0,0,0.15);
}

/* Form Inputs Light */
body.light-mode input,
body.light-mode textarea {
    background-color: #ffffff !important;
    border-color: #cbd5e1 !important;
    color: #1e293b !important;
}
body.light-mode input::placeholder,
body.light-mode textarea::placeholder {
    color: #94a3b8 !important;
}
body.light-mode input:focus,
body.light-mode textarea:focus {
    border-color: #8b5cf6 !important;
    box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.1);
}

/* Table Light Fixes */
body.light-mode .border-white\/10 { border-color: #cbd5e1 !important; }
body.light-mode .divide-white\/10 > :not([hidden]) ~ :not([hidden]) { border-color: #cbd5e1 !important; }
body.light-mode .tech-table tr { border-bottom: 1px solid #cbd5e1 !important; }
body.light-mode .tech-table tr:nth-child(even) { background-color: #f1f5f9 !important; }
body.light-mode .tech-table td { color: #334155; }
body.light-mode .tech-table td:first-child { color: #0f172a; }

/* Aurora Light Fix */
body.light-mode .aurora-bg {
    background: #f8fafc;
}
body.light-mode .aurora-lights {
    display: none;
}

/* Footer Light */
body.light-mode footer {
    background-color: #f8fafc;
    border-top: 1px solid #e2e8f0;
}
body.light-mode .text-gray-500 { color: #64748b !important; }

/* Mobile Menu Button Color */
body.light-mode button .lucide-menu {
    color: #000 !important;
}

/* Modern List Bullets */
body.light-mode .modern-list li { color: #475569; }

/* Theme & Lang Toggle Button Style */
.action-toggle-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 40px;
    border-radius: 99px;
    transition: all 0.3s ease;
    cursor: pointer;
    border: 1px solid rgba(255,255,255,0.1);
    background: rgba(255,255,255,0.05);
    color: white;
    margin-left: 8px;
    padding: 0 12px;
    font-weight: bold;
    font-size: 0.85rem;
}
.action-toggle-btn.circle {
    width: 40px;
    padding: 0;
    border-radius: 50%;
}

body.light-mode .action-toggle-btn {
    border: 1px solid rgba(0,0,0,0.1);
    background: rgba(0,0,0,0.05);
    color: #0f172a;
}

.action-toggle-btn:hover {
    transform: scale(1.05);
    background: rgba(255,255,255,0.1);
}
body.light-mode .action-toggle-btn:hover {
    background: rgba(0,0,0,0.1);
}

/* --- LIGHT MODE TEXT CORRECTIONS --- */
body.light-mode .text-gradient-accent {
    background: linear-gradient(135deg, #4f46e5 0%, #c026d3 50%, #0891b2 100%);
    -webkit-background-clip: text !important;
    background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
    color: transparent !important;
    text-shadow: none !important;
}

body.light-mode #slider .text-white,
body.light-mode .page-hero .text-white,
body.light-mode #slider .text-gray-300,
body.light-mode .page-hero .text-slate-300,
body.light-mode .page-hero .text-gray-300 {
    color: #ffffff !important;
    text-shadow: 0 2px 10px rgba(0,0,0,0.5);
}

/* Aydınlık mod kart yazıları düzeltmeleri */
body.light-mode #hizmetlerimiz .glass-card .text-white,
body.light-mode #hizmetlerimiz .glass-card .text-gray-400,
body.light-mode #view-kurumsal-main section:first-child .text-white,
body.light-mode #view-kurumsal-main section:first-child .text-gray-300,
body.light-mode #view-hizmetlerimiz-main section:first-child .text-white,
body.light-mode #view-hizmetlerimiz-main section:first-child .text-gray-300,
body.light-mode #view-tumurly-main section:first-child .text-white,
body.light-mode #view-tumurly-main section:first-child .text-gray-300,
body.light-mode #view-iletisim section:first-child .text-white {
    color: #ffffff !important;
    text-shadow: 0 2px 10px rgba(0,0,0,0.5);
}

body.light-mode #view-hizmetlerimiz-main .glass-card .text-white,
body.light-mode #view-hizmetlerimiz-main .glass-card .text-gray-300,
body.light-mode #view-hizmetlerimiz-main .glass-card .text-gray-400,
body.light-mode #view-tumurly-main .group .text-white,
body.light-mode #view-tumurly-main .group .text-gray-300,
body.light-mode #view-kurumsal-main .glass-card .text-white,
body.light-mode #view-kurumsal-main .glass-card .text-gray-400 {
    color: #ffffff !important;
    text-shadow: 0 1px 5px rgba(0,0,0,0.8);
}

body.light-mode .dot {
    background-color: rgba(255,255,255,0.5);
}
body.light-mode .dot.bg-white {
    background-color: #ffffff !important;
}

/* Aydınlık Mod Slider Okları */
body.light-mode #prevBtn,
body.light-mode #nextBtn {
    background-color: rgba(255, 255, 255, 0.3);
    color: #0f172a !important;
    border-color: rgba(0, 0, 0, 0.05);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    text-shadow: none !important;
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}
body.light-mode #prevBtn:hover,
body.light-mode #nextBtn:hover {
    background-color: rgba(255, 255, 255, 0.5);
}

/* =========================================
   LOGO FİXLERİ
   ========================================= */
.logo-container {
    -webkit-tap-highlight-color: transparent !important;
}

.header-logo, .footer-logo {
    background-color: transparent !important;
    border: none !important;
    box-shadow: none !important;
    outline: none !important;
    -webkit-tap-highlight-color: transparent !important;
    filter: none !important;
    mix-blend-mode: normal !important;
}
