/* ========================================
   EDS ELEKTRIK - PREMIUM DESIGN SYSTEM
   Professional & Corporate Identity
   ======================================== */

/* === SMOOTH BEHAVIORS === */
html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

body {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* === PREMIUM ANIMATIONS === */
.fade-in {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94),
        transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.fade-in.animate-in {
    opacity: 1;
    transform: translateY(0);
}

.fade-in-left {
    opacity: 0;
    transform: translateX(-60px);
    transition: all 0.9s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.fade-in-left.animate-in {
    opacity: 1;
    transform: translateX(0);
}

.fade-in-right {
    opacity: 0;
    transform: translateX(60px);
    transition: all 0.9s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.fade-in-right.animate-in {
    opacity: 1;
    transform: translateX(0);
}

.scale-in {
    opacity: 0;
    transform: scale(0.9);
    transition: all 0.7s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.scale-in.animate-in {
    opacity: 1;
    transform: scale(1);
}

/* === STAGGER DELAY FOR SEQUENTIAL ANIMATIONS === */
.fade-in:nth-child(1) {
    transition-delay: 0.1s;
}

.fade-in:nth-child(2) {
    transition-delay: 0.2s;
}

.fade-in:nth-child(3) {
    transition-delay: 0.3s;
}

.fade-in:nth-child(4) {
    transition-delay: 0.4s;
}

.fade-in:nth-child(5) {
    transition-delay: 0.5s;
}

/* === MOBILE MENU TRANSITIONS === */
#mobile-menu {
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    transform-origin: top;
}

#mobile-menu a {
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

#mobile-menu a::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 0;
    background: linear-gradient(90deg, rgba(10, 38, 71, 0.05), transparent);
    transition: width 0.3s ease;
}

#mobile-menu a:hover::before {
    width: 100%;
}

/* === PREMIUM SCROLLBAR === */
::-webkit-scrollbar {
    width: 12px;
}

::-webkit-scrollbar-track {
    background: #f1f5f9;
    border-left: 1px solid #e2e8f0;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, #0A2647, #475569);
    border-radius: 6px;
    border: 2px solid #f1f5f9;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, #D4AF37, #0A2647);
}

/* === PREMIUM IMAGE LOADING === */
img {
    transition: opacity 0.4s ease, transform 0.4s ease;
}

img[loading="lazy"] {
    opacity: 0;
    transform: scale(0.98);
}

img.loaded {
    opacity: 1;
    transform: scale(1);
}

/* === LUXURY GRADIENT OVERLAYS === */
.gradient-overlay-navy {
    background: linear-gradient(135deg, rgba(10, 38, 71, 0.95) 0%, rgba(71, 85, 105, 0.85) 100%);
}

.gradient-overlay-gold {
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.1) 0%, transparent 100%);
}

/* === PREMIUM CARD EFFECTS === */
.premium-card {
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    position: relative;
    overflow: hidden;
}

.premium-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(212, 175, 55, 0.1), transparent);
    transition: left 0.6s ease;
}

.premium-card:hover::before {
    left: 100%;
}

.premium-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(10, 38, 71, 0.15);
}

/* === GOLD ACCENT HOVER === */
.gold-hover {
    position: relative;
    transition: all 0.3s ease;
}

.gold-hover::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #D4AF37, #FFD700);
    transition: width 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.gold-hover:hover::after {
    width: 100%;
}

/* === SECTION DECORATIVE ELEMENTS === */
.section-decorator {
    position: relative;
}

.section-decorator::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, #D4AF37, transparent);
}

/* === PREMIUM BUTTON EFFECTS === */
.btn-premium {
    position: relative;
    overflow: hidden;
    z-index: 1;
    transition: all 0.3s ease;
}

.btn-premium::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    transform: translate(-50%, -50%);
    transition: width 0.6s ease, height 0.6s ease;
    z-index: -1;
}

.btn-premium:hover::before {
    width: 300px;
    height: 300px;
}

/* === PARALLAX SUPPORT === */
.parallax-container {
    transform: translateZ(0);
    will-change: transform;
}

/* === HERO TEXT EFFECTS === */
.hero-title {
    background: linear-gradient(135deg, #ffffff 0%, #e2e8f0 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 2px 20px rgba(212, 175, 55, 0.3);
}

.gold-accent {
    color: #D4AF37;
    text-shadow: 0 0 20px rgba(212, 175, 55, 0.4);
}

/* === PROFESSIONAL SHADOW SYSTEM === */
.shadow-premium {
    box-shadow: 0 4px 20px rgba(10, 38, 71, 0.08),
        0 1px 3px rgba(10, 38, 71, 0.05);
}

.shadow-premium-lg {
    box-shadow: 0 20px 60px rgba(10, 38, 71, 0.15),
        0 4px 12px rgba(10, 38, 71, 0.08);
}

/* === RESPONSIVE OPTIMIZATIONS === */

/* Desktop: Hide mobile hero image, show video */
#hero-mobile-image {
    display: none;
}

#hero-video-container {
    display: block;
}

@media (max-width: 768px) {
    .fade-in {
        transform: translateY(20px);
    }

    .fade-in-left,
    .fade-in-right {
        transform: translateY(20px);
    }

    /* Hero Section - Mobile: Auto height to fit image */
    section.min-h-screen:first-of-type {
        min-height: auto !important;
        height: auto !important;
        display: block !important;
        background-color: white;
        overflow: visible !important;
    }

    /* Mobile: Show mobile hero image, hide video */
    #hero-mobile-image {
        display: block !important;
        position: relative !important;
        width: 100% !important;
        height: auto !important;
        z-index: 1 !important;
        top: auto !important;
        left: auto !important;
        background-color: white;
    }

    #hero-mobile-image img {
        width: 100% !important;
        height: auto !important;
        display: block !important;
        object-fit: contain !important;
        max-width: 100% !important;
    }

    #hero-video-container {
        display: none !important;
    }

    /* Hide gradient overlay and scroll indicator on mobile */
    .hero-gradient {
        display: none !important;
    }

    /* Hide scroll indicator on mobile */
    section.min-h-screen:first-of-type>.absolute.bottom-8 {
        display: none !important;
    }

    /* Hide hero content div on mobile */
    section.min-h-screen:first-of-type>.relative.z-10 {
        display: none !important;
    }

    /* Faaliyet Hero Image - Mobile Fix */
    #hero-faaliyet-img {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        object-fit: cover;
        object-position: center center;
    }

    /* Faaliyet hero section - mobilde tam ekran yüksekliği */
    #hero-faaliyet {
        min-height: 50vh !important;
        height: 50vh !important;
    }

    /* Genel hero background resimleri için mobil düzeltmesi */
    [style*="background-image"] {
        background-attachment: scroll !important;
    }

    /* === MOBILE HERO CLICKABLE BUTTONS === */
    /* Resmin üzerinde konumlandırılmış tıklanabilir buton alanları */
    #hero-mobile-image {
        position: relative !important;
    }

    .hero-mobile-btn {
        position: absolute;
        z-index: 10;
        cursor: pointer;
        /* Debug için görünür yapabilirsiniz */
        /* background: rgba(255, 0, 0, 0.3); */
        border-radius: 8px;
        transition: transform 0.2s ease, box-shadow 0.2s ease;
    }

    .hero-mobile-btn:hover,
    .hero-mobile-btn:active {
        transform: scale(1.02);
        box-shadow: 0 4px 15px rgba(212, 175, 55, 0.3);
    }

    .hero-mobile-btn:active {
        transform: scale(0.98);
    }

    /* Sol Buton - Resimdeki sol turuncu/altın buton */
    .hero-mobile-btn-1 {
        bottom: 8%;
        left: 5%;
        width: 42%;
        height: 7%;
    }

    /* Sağ Buton - Resimdeki sağ turuncu/altın buton */
    .hero-mobile-btn-2 {
        bottom: 8%;
        right: 5%;
        width: 42%;
        height: 7%;
    }
}

/* === PRINT OPTIMIZATION === */
@media print {
    .no-print {
        display: none !important;
    }
}