/* Custom CSS for Keremoğulları Nakliye Website - Tailwind CSS Version */

/* Root Variables */
:root {
    --primary-color: #c69a6b;
    --secondary-color: #054b61;
    --dark-color: #000000;
    --light-color: #f8f9fa;
    --white: #ffffff;
    --gradient-primary: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    --gradient-overlay: linear-gradient(135deg, rgba(198, 154, 107, 0.9), rgba(5, 75, 97, 0.9));
    --shadow-light: 0 10px 30px rgba(0, 0, 0, 0.1);
    --shadow-medium: 0 15px 40px rgba(0, 0, 0, 0.15);
    --shadow-heavy: 0 20px 50px rgba(0, 0, 0, 0.2);
    --border-radius: 20px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Custom Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Custom Utilities for Tailwind */
.animate-fade-in {
    animation: fadeIn 0.5s ease-in-out;
}

.animate-slide-up {
    animation: slideUp 0.6s ease-out;
}

/* Global Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--dark-color);
    overflow-x: hidden;
}

/* Smooth Scrolling */
html {
    scroll-behavior: smooth;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: var(--gradient-primary);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary-color);
}

/* Loading Animation */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: var(--white);
    animation: spin 1s ease-in-out infinite;
}

/* Form Validation Styles */
.form-control.is-invalid {
    border-color: #dc2626;
    box-shadow: 0 0 0 0.2rem rgba(220, 38, 38, 0.25);
}

.form-control.is-valid {
    border-color: #059669;
    box-shadow: 0 0 0 0.2rem rgba(5, 150, 105, 0.25);
}

/* Gallery Lightbox Styles */
.lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.lightbox img {
    max-width: 90%;
    max-height: 90%;
    border-radius: 10px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
    transform: scale(0.8);
    transition: transform 0.3s ease;
}

/* Notification Styles */
.notification {
    position: fixed;
    top: 100px;
    right: 20px;
    z-index: 9999;
    min-width: 300px;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

/* Print Styles */
@media print {
    .navbar,
    .back-to-top,
    .scroll-indicator {
        display: none !important;
    }
    
    .hero-section {
        min-height: auto;
        background: none !important;
    }
    
    .hero-title,
    .hero-subtitle {
        color: var(--dark-color) !important;
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
}

@media (max-width: 576px) {
    .hero-title {
        font-size: 2rem;
    }
    
    .navbar-brand {
        font-size: 1.2rem;
    }
}

/* Custom Tailwind Extensions */
.text-gradient {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Logo Styles */
.navbar-logo {
    width: 64px;
    height: 64px;
    object-fit: contain;
    transition: transform 0.3s ease;
    display: block !important;
    opacity: 1 !important;
}

.navbar-logo:hover {
    transform: scale(1.1);
}

/* Fallback logo container */
.logo-container {
    width: 64px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gradient-primary);
    border-radius: 16px;
    color: white;
    font-size: 1.5rem;
}

/* Force logo visibility */
nav img[src*="logo2.png"] {
    display: block !important;
    opacity: 1 !important;
    visibility: visible !important;
}

/* Logo styles - Responsive */
.logo-container-responsive {
    width: 700px;
    height: 350px;
    max-width: 700px;
    min-height: 350px;
}

.logo-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

/* Mobile responsive logo */
@media (max-width: 1024px) {
    .logo-container-responsive {
        width: 400px;
        height: 200px;
        max-width: 400px;
        min-height: 200px;
    }
}

@media (max-width: 768px) {
    .logo-container-responsive {
        width: 250px;
        height: 125px;
        max-width: 250px;
        min-height: 125px;
    }
    
    nav {
        height: auto !important;
        min-height: auto !important;
        max-height: none !important;
        padding: 0.75rem 0 !important;
    }
    
    nav .flex.justify-between {
        height: auto;
        min-height: auto;
        max-height: none;
        padding: 0.5rem 0;
        flex-wrap: nowrap;
        justify-content: space-between;
    }
    
    /* Mobile menu styles */
    .mobile-menu {
        display: none;
    }
    
    .mobile-menu.active {
        display: block;
    }
    
    .desktop-menu {
        display: none;
    }
    
    .mobile-menu-btn {
        display: block;
    }
}

@media (min-width: 769px) {
    .mobile-menu-btn {
        display: none !important;
    }
    
    .mobile-menu {
        display: none !important;
    }
    
    .desktop-menu {
        display: flex !important;
    }
}

@media (max-width: 480px) {
    .logo-container-responsive {
        width: 180px;
        height: 90px;
        max-width: 180px;
        min-height: 90px;
    }
    
    /* Address bar mobile adjustments */
    .bg-blue-900 {
        font-size: 0.7rem;
        padding: 0.5rem 0 !important;
    }
    
    .bg-blue-900 .flex {
        flex-direction: column;
        gap: 0.25rem;
    }
    
    .bg-blue-900 .flex > div:first-child {
        flex-direction: column;
        gap: 0.25rem;
    }
    
    .bg-blue-900 .flex > div:last-child {
        display: none;
    }
    
    nav {
        top: 60px !important;
    }
    
    #home {
        margin-top: 100px !important;
    }
    
    section#home {
        margin-top: 100px !important;
    }
}

/* Hero section mobile adjustments */
@media (max-width: 768px) {
    section#home {
        margin-top: 120px !important;
    }
}

/* Address bar styles */
.bg-blue-900 {
    background-color: #1e3a8a !important;
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    z-index: 60 !important;
}

/* Fixed navbar height and position */
nav {
    height: 120px !important;
    min-height: 120px !important;
    max-height: 120px !important;
    overflow: hidden;
    position: fixed !important;
    top: 40px !important;
    left: 0 !important;
    right: 0 !important;
    z-index: 50 !important;
}

/* Navbar container fixed height */
nav .flex.justify-between {
    align-items: center;
    height: 120px;
    min-height: 120px;
    max-height: 120px;
    padding: 1rem 0;
    justify-content: flex-start;
}

/* Logo container - positioned to left */
nav .flex-shrink-0 {
    position: relative;
    z-index: 10;
    margin-right: auto;
}

/* Logo itself - smaller and left aligned */
nav div[style*="width: 700px"] {
    position: relative;
    top: 0;
    left: 0;
    transform: none;
    z-index: 5;
    transition: transform 0.3s ease !important;
}

/* Logo hover - just scale */
nav div[style*="width: 700px"]:hover {
    transform: scale(1.05) !important;
}

/* Menu positioning - keep it on the right */
nav .flex.items-center.space-x-6 {
    position: absolute;
    right: 0;
    z-index: 10;
    height: fit-content;
}

/* Menu positioning - keep it in navbar */
nav .flex.items-center.space-x-6 {
    position: relative;
    z-index: 10;
    height: fit-content;
}

.bg-gradient-primary {
    background: var(--gradient-primary);
}

.shadow-custom {
    box-shadow: var(--shadow-medium);
}

.shadow-custom-lg {
    box-shadow: var(--shadow-heavy);
}

/* Animation Delays */
.delay-100 {
    animation-delay: 100ms;
}

.delay-200 {
    animation-delay: 200ms;
}

.delay-300 {
    animation-delay: 300ms;
}

.delay-400 {
    animation-delay: 400ms;
}

.delay-500 {
    animation-delay: 500ms;
}

.delay-600 {
    animation-delay: 600ms;
}

/* Call Button Styles */
.call-button {
    animation: pulse-call 2s infinite;
    box-shadow: 0 10px 30px rgba(59, 130, 246, 0.4);
}

.call-button:hover {
    box-shadow: 0 15px 40px rgba(59, 130, 246, 0.6);
    animation: none;
}

@keyframes pulse-call {
    0%, 100% {
        box-shadow: 0 10px 30px rgba(59, 130, 246, 0.4);
    }
    50% {
        box-shadow: 0 10px 40px rgba(59, 130, 246, 0.7);
    }
}

/* WhatsApp Button Styles */
.whatsapp-button {
    animation: pulse-whatsapp 2s infinite;
    box-shadow: 0 10px 30px rgba(34, 197, 94, 0.4);
}

.whatsapp-button:hover {
    box-shadow: 0 15px 40px rgba(34, 197, 94, 0.6);
    animation: none;
}

@keyframes pulse-whatsapp {
    0%, 100% {
        box-shadow: 0 10px 30px rgba(34, 197, 94, 0.4);
    }
    50% {
        box-shadow: 0 10px 40px rgba(34, 197, 94, 0.7);
    }
}

/* Mobile Call and WhatsApp Buttons */
@media (max-width: 768px) {
    .call-button {
        bottom: 100px;
        left: 20px;
        right: 20px;
        width: auto;
        justify-content: center;
        padding: 0.875rem 1rem;
    }
    
    .call-button span {
        font-size: 0.875rem;
    }
    
    .whatsapp-button {
        bottom: 20px;
        left: 20px;
        right: 20px;
        width: auto;
        justify-content: center;
        padding: 0.875rem 1rem;
    }
    
    .whatsapp-button span {
        font-size: 0.875rem;
    }
    
    #backToTop {
        bottom: 180px;
        right: 20px;
    }
}

@media (max-width: 480px) {
    .call-button {
        bottom: 90px;
        left: 16px;
        right: 16px;
        padding: 0.75rem 0.875rem;
    }
    
    .call-button span {
        font-size: 0.75rem;
    }
    
    .call-button i {
        font-size: 1.5rem;
    }
    
    .whatsapp-button {
        bottom: 16px;
        left: 16px;
        right: 16px;
        padding: 0.75rem 0.875rem;
    }
    
    .whatsapp-button span {
        font-size: 0.75rem;
    }
    
    .whatsapp-button i {
        font-size: 1.5rem;
    }
    
    #backToTop {
        bottom: 70px;
        right: 16px;
        width: 48px;
        height: 48px;
    }
}