/* ================================================================================
   FERSA METAL Web Sitesi - Özel CSS Stilleri
   ================================================================================ */

/* Varino Bold Font Tanımı - Yerel Dosya */
@font-face {
    font-family: 'Varino';
    src: url('../fonts/VarinoBold-Regular.ttf') format('truetype');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

/* Eurostile Extended / Microgramma Font Tanımları */
@font-face {
    font-family: 'Eurostile Extended';
    src: url('../fonts/EurostileExtended-Regular.woff2') format('woff2'),
         url('../fonts/EurostileExtended-Regular.woff') format('woff'),
         url('../fonts/EurostileExtended-Regular.ttf') format('truetype');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Eurostile Extended';
    src: url('../fonts/EurostileExtended-Bold.woff2') format('woff2'),
         url('../fonts/EurostileExtended-Bold.woff') format('woff'),
         url('../fonts/EurostileExtended-Bold.ttf') format('truetype');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Microgramma';
    src: url('../fonts/Microgramma-Regular.woff2') format('woff2'),
         url('../fonts/Microgramma-Regular.woff') format('woff'),
         url('../fonts/Microgramma-Regular.ttf') format('truetype');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Microgramma';
    src: url('../fonts/Microgramma-Bold.woff2') format('woff2'),
         url('../fonts/Microgramma-Bold.woff') format('woff'),
         url('../fonts/Microgramma-Bold.ttf') format('truetype');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

/* Logo Stilleri */
.header-logo h1 {
    font-family: 'Varino', 'Orbitron', 'Arial Black', sans-serif !important;
    font-weight: 700 !important;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    font-feature-settings: "kern" 1, "liga" 1;
    text-rendering: optimizeLegibility;
}

.header-logo .text-primary {
    color: #1a365d !important;
}

.header-logo .text-gray-500 {
    color: #6b7280 !important;
}

/* Hover Efektleri */
.header-logo:hover h1 {
    transform: scale(1.02);
    transition: transform 0.3s ease;
}

/* Responsive Logo Boyutları */
@media (max-width: 640px) {
    .header-logo h1 {
        font-size: 1.125rem;
        letter-spacing: 0.06em;
    }
}

@media (min-width: 641px) and (max-width: 768px) {
    .header-logo h1 {
        font-size: 1.5rem;
        letter-spacing: 0.07em;
    }
}

@media (min-width: 769px) {
    .header-logo h1 {
        font-size: 1.875rem;
        letter-spacing: 0.08em;
    }
}

/* Font Fallback */
@supports not (font-display: swap) {
    .header-logo h1 {
        font-family: 'Arial Black', 'Helvetica Black', 'Impact', sans-serif;
        letter-spacing: 0.08em;
    }
}

/* Font Yükleme Optimizasyonu */
.header-logo h1 {
    font-synthesis: none;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Font Yükleme Durumu */
.font-loading .header-logo h1 {
    font-family: 'Orbitron', 'Arial Black', sans-serif !important;
    letter-spacing: 0.06em;
}

.font-loaded .header-logo h1 {
    font-family: 'Varino', 'Orbitron', 'Arial Black', sans-serif !important;
    letter-spacing: 0.08em;
}

.font-fallback .header-logo h1 {
    font-family: 'Orbitron', 'Arial Black', sans-serif !important;
    letter-spacing: 0.06em;
}

/* Footer Logo Stilleri */
.footer-logo h3,
.footer-logo .company-name {
    font-family: 'Varino', 'Orbitron', 'Arial Black', sans-serif !important;
    font-weight: 700 !important;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    font-feature-settings: "kern" 1, "liga" 1;
    text-rendering: optimizeLegibility;
}

.footer-logo h3 {
    color: #ffffff !important;
}

.footer-logo .company-name {
    color: #ffffff !important;
}

/* FERSA METAL Web Sitesi - Ana CSS Dosyası */

/* Custom Animations */
@keyframes fade-in-down {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fade-in-up {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slide-in-left {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slide-in-right {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes scale-in {
    from {
        opacity: 0;
        transform: scale(0.8);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* Animation Classes */
.animate-fade-in-down {
    animation: fade-in-down 0.8s ease-out forwards;
}

.animate-fade-in-up {
    animation: fade-in-up 0.8s ease-out forwards;
}

.animate-slide-in-left {
    animation: slide-in-left 0.8s ease-out forwards;
}

.animate-slide-in-right {
    animation: slide-in-right 0.8s ease-out forwards;
}

.animate-scale-in {
    animation: scale-in 0.8s ease-out forwards;
}

/* Delay Classes */
.delay-300 {
    animation-delay: 0.3s;
}

.delay-500 {
    animation-delay: 0.5s;
}

.delay-700 {
    animation-delay: 0.7s;
}

.delay-1000 {
    animation-delay: 1s;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f5f9;
}

::-webkit-scrollbar-thumb {
    background: #ff6b35;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #e55a2b;
}

/* Smooth Scrolling */
html {
    scroll-behavior: smooth;
}

/* Custom Focus Styles */
.focus-ring:focus {
    outline: 2px solid #ff6b35;
    outline-offset: 2px;
}

/* Glassmorphism Effect */
.glass {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

/* Gradient Text */
.gradient-text {
    background: linear-gradient(135deg, #ff6b35, #ff8c42);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Hover Effects */
.hover-lift {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.hover-lift:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

/* Loading Animation */
.loading-dots {
    display: inline-block;
}

.loading-dots::after {
    content: '';
    animation: loading-dots 1.5s infinite;
}

@keyframes loading-dots {
    0%, 20% {
        content: '';
    }
    40% {
        content: '.';
    }
    60% {
        content: '..';
    }
    80%, 100% {
        content: '...';
    }
}

/* Mobile Header Improvements */
@media (max-width: 768px) {
    /* Top bar responsive */
    .bg-primary .container {
        padding-left: 1rem;
        padding-right: 1rem;
    }
    
    /* Logo responsive */
    .header-logo img {
        max-height: 48px;
    }
    
    /* Mobile menu button */
    #mobile-menu-button {
        padding: 0.5rem;
        border-radius: 0.375rem;
    }
    
    #mobile-menu-button:hover {
        background-color: rgba(26, 54, 93, 0.1);
    }
    
    /* Mobile navigation */
    #mobile-menu {
        border-top: 1px solid rgba(255, 255, 255, 0.1);
        box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    }
    
    #mobile-menu ul li a {
        border-bottom: 1px solid rgba(255, 255, 255, 0.05);
        transition: all 0.3s ease;
    }
    
    #mobile-menu ul li a:hover {
        background-color: rgba(255, 255, 255, 0.1);
        padding-left: 1.5rem;
    }
    
    /* Mobile contact buttons */
    .mobile-contact-btn {
        transition: all 0.3s ease;
        box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    }
    
    .mobile-contact-btn:hover {
        transform: scale(1.1);
        box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    }
    
    /* Mobile contact buttons active state */
    .mobile-contact-btn:active {
        transform: scale(0.95);
    }
    
    /* Ensure mobile contact buttons don't overlap */
    .mobile-contact-btn + .mobile-contact-btn {
        margin-left: 0.75rem;
    }
}

/* Tablet responsive */
@media (min-width: 769px) and (max-width: 1024px) {
    .bg-primary .container {
        padding-left: 1.5rem;
        padding-right: 1.5rem;
    }
    
    .header-logo img {
        max-height: 56px;
    }
}

/* Smooth transitions for all interactive elements */
.transition-all {
    transition: all 0.3s ease;
}

/* Override Tailwind focus styles */
.focus\:outline-none:focus,
.focus\:ring-2:focus,
.focus\:ring-accent:focus,
.focus\:ring-offset-2:focus {
    outline: none !important;
    box-shadow: none !important;
}

/* Remove all focus outlines by default */
*:focus {
    outline: none;
}

/* Only show focus outline for keyboard navigation */
*:focus-visible {
    outline: 2px solid #ff6b35;
    outline-offset: 2px;
}

/* Specific button focus overrides */
button:focus,
.btn:focus,
.btn-primary:focus,
.btn-accent:focus {
    outline: none !important;
    box-shadow: none !important;
}

/* Remove focus ring from all interactive elements */
.focus\:ring-0:focus,
.focus\:ring-1:focus,
.focus\:ring-2:focus,
.focus\:ring-4:focus {
    box-shadow: none !important;
}

/* Active states for buttons */
button:active,
a:active {
    transform: scale(0.98);
}

/* Hover effects for mobile */
@media (hover: hover) {
    .hover-lift:hover {
        transform: translateY(-5px);
        box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    }
}

/* Touch device optimizations */
@media (pointer: coarse) {
    button,
    a {
        min-height: 44px;
        min-width: 44px;
    }
    
    .mobile-contact-btn {
        min-height: 48px;
        min-width: 48px;
    }
}
