/* Custom animations and styles for TTA Grup website */

/* Fade-in animation */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fade-in {
    animation: fadeIn 1s ease-out;
}

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

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

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

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

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

/* Hero section background pattern */
.hero-pattern {
    background-image: 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");
}

/* Card hover effects */
.card-hover {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card-hover:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

/* Navigation active state */
.nav-active {
    color: #E30A17 !important;
    font-weight: 600;
}

/* Button hover effects */
.btn-primary {
    background: linear-gradient(135deg, #212529 0%, #000000 100%);
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background: linear-gradient(135deg, #000000 0%, #212529 100%);
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
}

/* Loading animation - DISABLED */
.loading {
    display: none !important;
}

.loading.fade-out {
    display: none !important;
}

/* Quote section styling */
.quote-card {
    position: relative;
    overflow: hidden;
}

.quote-card::before {
    content: '"';
    position: absolute;
    top: -10px;
    left: 20px;
    font-size: 4rem;
    color: rgba(0, 0, 0, 0.1);
    font-family: serif;
}

/* Clean White & Black colors */
.turkish-red {
    color: #000000;
}

.bg-turkish-red {
    background-color: #ffffff;
}

.border-turkish-red {
    border-color: #000000;
}

/* Accent colors */
.text-gold {
    color: #000000;
}

.bg-gold {
    background-color: #ffffff;
}

/* Section separator */
.section-separator {
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg, transparent 0%, #e0e0e0 20%, #000000 50%, #e0e0e0 80%, transparent 100%);
    margin: 0;
    border: none;
}

.section-separator-thick {
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, transparent 0%, #f0f0f0 10%, #000000 50%, #f0f0f0 90%, transparent 100%);
    margin: 3rem 0;
    border: none;
}

/* Mobile responsive improvements */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.25rem;
    }
    
    .section-padding {
        padding: 3rem 0;
    }
    
    /* Responsive separator lines - override w-96 on mobile */
    .w-96 {
        width: 8rem !important; /* w-32 equivalent */
    }
    
    /* Separator icons smaller on mobile */
    .w-12.h-12 {
        width: 2rem !important; /* w-8 */
        height: 2rem !important; /* h-8 */
    }
}

/* Tablet responsive */
@media (min-width: 769px) and (max-width: 1024px) {
    .w-96 {
        width: 16rem !important; /* w-64 equivalent */
    }
    
    .w-12.h-12 {
        width: 2.5rem !important; /* w-10 */
        height: 2.5rem !important; /* h-10 */
    }
}

/* Scroll reveal animations - DISABLED */
.scroll-reveal {
    opacity: 1 !important;
    transform: translateY(0) !important;
    transition: none !important;
}

.scroll-reveal.revealed {
    opacity: 1 !important;
    transform: translateY(0) !important;
}

/* Social media icon hover effects */
.social-icon {
    transition: all 0.3s ease;
}

.social-icon:hover {
    transform: scale(1.2) rotate(5deg);
}

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

/* Pulse animation for important elements */
@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

.pulse {
    animation: pulse 2s infinite;
}

/* Form focus states */
.form-input:focus {
    outline: none;
    ring: 2px;
    ring-color: #000000;
    border-color: transparent;
}

/* Back to top button */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 1000;
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #212529, #000000);
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

/* New Mobile Menu Styles */
#mobile-menu {
    transition: all 0.3s ease-in-out;
    max-height: 0;
    overflow: hidden;
}

#mobile-menu:not(.hidden) {
    max-height: 400px;
}

#mobile-menu.hidden {
    max-height: 0;
    overflow: hidden;
}

/* Hamburger Animation */
#mobile-menu-btn span {
    display: block;
    width: 24px;
    height: 2px;
    background-color: #374151;
    transition: all 0.3s ease-in-out;
    transform-origin: center;
}

/* Mobile Menu Links */
.mobile-menu-link {
    display: block;
    padding: 12px 0;
    color: #374151;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s ease;
    border-bottom: 1px solid transparent;
}

.mobile-menu-link:hover {
    color: #000000;
    border-bottom-color: #e5e7eb;
}

/* Mobile menu animation improvements */
@media (max-width: 768px) {
    .mobile-menu {
        animation: slideDown 0.3s ease-out;
    }
    
    .mobile-menu.hidden {
        animation: slideUp 0.3s ease-in;
    }
}

@keyframes slideDown {
    from {
        transform: translateY(-20px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes slideUp {
    from {
        transform: translateY(0);
        opacity: 1;
    }
    to {
        transform: translateY(-20px);
        opacity: 0;
    }
}

/* Print styles */
@media print {
    .no-print {
        display: none !important;
    }
    
    body {
        font-size: 12pt;
        line-height: 1.4;
    }
    
    .print-break {
        page-break-before: always;
    }
} 