/**
 * Usta Uydu - Özel CSS Stilleri
 * Tailwind CSS + daisyUI üzerine özelleştirmeler
 */

/* ========================================
   GENEL AYARLAR
   ======================================== */

:root {
    --primary: #1e40af;
    --secondary: #0ea5e9;
    --accent: #f59e0b;
    --dark: #1f2937;
}

* {
    scroll-behavior: smooth;
    box-sizing: border-box;
}

html {
    overflow-x: hidden !important;
}

body {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    overflow-x: hidden !important;
    max-width: 100vw;
    margin: 0;
    padding: 0;
}

/* Yatay scrollbar tamamen gizle */
*::-webkit-scrollbar:horizontal {
    height: 0 !important;
    display: none !important;
}

/* Seçim rengi */
::selection {
    background-color: var(--primary);
    color: white;
}

/* ========================================
   NAVİGASYON
   ======================================== */

.navbar {
    transition: all 0.3s ease;
}

.navbar.scrolled {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.menu li a.active {
    color: var(--primary);
    font-weight: 600;
}

/* Dropdown hover efekti */
.dropdown-content {
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.2s ease;
    pointer-events: none;
}

.dropdown:hover .dropdown-content,
.dropdown:focus-within .dropdown-content {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    pointer-events: auto;
}

.dropdown-hover .dropdown-content {
    top: 100%;
    padding-top: 0.5rem;
}

/* ========================================
   HERO BÖLÜMÜ
   ======================================== */

.hero-section {
    background: linear-gradient(135deg, var(--primary) 0%, #1e3a8a 50%, #0f172a 100%);
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    opacity: 0.5;
}

.hero-content {
    position: relative;
    z-index: 1;
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-20px);
    }
}

.hero-icon {
    animation: float 3s ease-in-out infinite;
}

@keyframes pulse-ring {
    0% {
        transform: scale(0.8);
        opacity: 1;
    }

    100% {
        transform: scale(2);
        opacity: 0;
    }
}

.pulse-ring::before {
    content: '';
    position: absolute;
    inset: -10px;
    border: 2px solid var(--accent);
    border-radius: 50%;
    animation: pulse-ring 2s ease-out infinite;
}

/* ========================================
   KARTLAR
   ======================================== */

.service-card {
    transition: all 0.3s ease;
    border: 1px solid transparent;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
    border-color: var(--primary);
}

.service-card .icon-box {
    transition: all 0.3s ease;
}

.service-card:hover .icon-box {
    background: var(--primary);
    color: white;
    transform: rotateY(180deg);
}

.blog-card {
    transition: all 0.3s ease;
}

.blog-card:hover {
    transform: translateY(-5px);
}

.blog-card img {
    transition: transform 0.5s ease;
}

.blog-card:hover img {
    transform: scale(1.1);
}

/* ========================================
   BUTONLAR
   ======================================== */

.btn-primary {
    background: linear-gradient(135deg, var(--primary), #1e3a8a);
    border: none;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background: linear-gradient(135deg, #1e3a8a, var(--primary));
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(30, 64, 175, 0.3);
}

.btn-accent {
    background: linear-gradient(135deg, var(--accent), #d97706);
    border: none;
}

.btn-accent:hover {
    background: linear-gradient(135deg, #d97706, var(--accent));
    transform: translateY(-2px);
}

.cta-button {
    position: relative;
    overflow: hidden;
}

.cta-button::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: 0.5s;
}

.cta-button:hover::before {
    left: 100%;
}

/* ========================================
   BÖLÜMLER
   ======================================== */

.section-title {
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, var(--primary), var(--accent));
    border-radius: 2px;
}

.step-item {
    position: relative;
}

.step-item::before {
    content: '';
    position: absolute;
    top: 40px;
    left: 50%;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
}

.step-item:last-child::before {
    display: none;
}

.step-number {
    position: relative;
    z-index: 1;
    transition: all 0.3s ease;
}

.step-item:hover .step-number {
    transform: scale(1.1);
    box-shadow: 0 10px 30px rgba(30, 64, 175, 0.4);
}

/* ========================================
   FORM ELEMANLARI
   ======================================== */

.input,
.textarea,
.select {
    transition: all 0.3s ease;
}

.input:focus,
.textarea:focus,
.select:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(30, 64, 175, 0.1);
}

/* ========================================
   GALERİ
   ======================================== */

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 1rem;
}

.gallery-item img {
    transition: transform 0.5s ease;
}

.gallery-item:hover img {
    transform: scale(1.1);
}

.gallery-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
    opacity: 0;
    transition: all 0.3s ease;
    display: flex;
    align-items: flex-end;
    padding: 1.5rem;
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

/* ========================================
   ACCORDION
   ======================================== */

.collapse-title {
    font-weight: 600;
    transition: all 0.3s ease;
}

.collapse-content {
    transition: all 0.3s ease;
}

/* ========================================
   ANİMASYONLAR
   ======================================== */

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fadeInUp {
    animation: fadeInUp 0.6s ease forwards;
}

.scroll-animate {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
}

.scroll-animate.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ========================================
   RESPONSIVE
   ======================================== */

@media (max-width: 1024px) {
    .hero-section {
        min-height: auto;
        padding: 4rem 0;
    }

    .step-item::before {
        display: none;
    }
}

@media (max-width: 768px) {
    .section-title {
        font-size: 1.75rem;
    }
}

/* ========================================
   SABİT BUTONLAR
   ======================================== */

.fixed-buttons {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 1000;
}

@keyframes whatsapp-pulse {

    0%,
    100% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.5);
    }

    50% {
        box-shadow: 0 0 0 15px rgba(37, 211, 102, 0);
    }
}

.whatsapp-float {
    animation: whatsapp-pulse 2s infinite;
}

/* ========================================
   BREADCRUMB
   ======================================== */

.breadcrumbs ul li+li::before {
    content: '›';
    opacity: 0.5;
}

/* ========================================
   LOADING SPINNER
   ======================================== */

.loading-spinner {
    width: 40px;
    height: 40px;
    border: 3px solid #f3f3f3;
    border-top: 3px solid var(--primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

/* ========================================
   LAZY LOAD
   ======================================== */

img[loading="lazy"] {
    opacity: 0;
    transition: opacity 0.3s ease;
}

img[loading="lazy"].loaded {
    opacity: 1;
}

/* ========================================
   PRINT STİLLERİ
   ======================================== */

@media print {

    .fixed-buttons,
    .whatsapp-float,
    header,
    footer {
        display: none !important;
    }

    body {
        font-size: 12pt;
    }
}