/* Custom CSS for Karahan Oto Kurtarma */

:root {
    --primary-color: #ffc107; /* Warning yellow */
    --primary-dark: #e0a800;
    --dark-bg: #121212;
    --darker-bg: #0a0a0a;
    --text-color: #f8f9fa;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--dark-bg);
    color: var(--text-color);
    overflow-x: hidden;
}

/* Utilities */
.text-warning {
    color: var(--primary-color) !important;
}

.bg-warning {
    background-color: var(--primary-color) !important;
}

.text-muted {
    color: #b0b0b0 !important; /* Lighter gray for better contrast on dark backgrounds */
}

.transition-all {
    transition: all 0.3s ease;
}

.tracking-wide {
    letter-spacing: 2px;
}

.heading-line {
    width: 60px;
    height: 4px;
    border-radius: 2px;
}

.hover-text-warning:hover {
    color: var(--primary-color) !important;
}

/* Navbar */
.navbar {
    background-color: rgba(18, 18, 18, 0.95) !important;
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    transition: padding 0.3s ease, background-color 0.3s ease;
}

.navbar.scrolled {
    padding-top: 10px;
    padding-bottom: 10px;
    background-color: rgba(10, 10, 10, 0.98) !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
}

.navbar-brand {
    font-size: 1.1rem;
    line-height: 1.2;
}

.brand-text {
    color: #fff;
    font-weight: 800;
}

.brand-text small {
    font-weight: 600;
}

.nav-link {
    color: #e0e0e0 !important;
    font-weight: 500;
    padding: 0.5rem 1rem !important;
    transition: color 0.3s ease;
}

.nav-link:hover, .nav-link.active {
    color: var(--primary-color) !important;
}

.navbar-toggler {
    border: none;
}

.navbar-toggler:focus {
    box-shadow: none;
}

/* Hero Section */
.hero-section {
    height: 100vh;
    min-height: 600px;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.65);
}

.hero-section .text-white {
    text-shadow: 2px 2px 15px rgba(0,0,0,0.9);
}

.hero-btn {
    box-shadow: 0 4px 15px rgba(255, 193, 7, 0.3);
    border: 2px solid var(--primary-color);
}

.hero-btn:hover {
    background-color: var(--primary-dark);
    border-color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 193, 7, 0.4);
}

/* Pulse Animation for CTA */
@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(255, 193, 7, 0.7);
    }
    70% {
        box-shadow: 0 0 0 15px rgba(255, 193, 7, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(255, 193, 7, 0);
    }
}

.pulse-anim {
    animation: pulse 2s infinite;
}

/* Floating Buttons */
.floating-buttons {
    position: fixed;
    bottom: 30px;
    right: 30px;
    display: flex;
    flex-direction: column;
    gap: 15px;
    z-index: 1000;
}

.float-btn {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    color: white;
    text-decoration: none;
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.3s ease;
}

.float-btn:hover {
    transform: scale(1.1);
    color: white;
}

.float-phone {
    background-color: #ffc107;
    color: #121212;
    box-shadow: 0 4px 15px rgba(255, 193, 7, 0.4);
}

.float-phone:hover {
    background-color: #e0a800;
    color: #121212;
    box-shadow: 0 6px 20px rgba(255, 193, 7, 0.6);
}

.float-whatsapp {
    background-color: #25D366;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4);
}

.float-whatsapp:hover {
    background-color: #1EBE5D;
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.6);
}

/* Services */
.service-card {
    background-color: rgba(30, 30, 30, 0.5);
    backdrop-filter: blur(5px);
}

.service-card:hover {
    transform: translateY(-10px);
    background-color: rgba(40, 40, 40, 0.8);
    border-color: rgba(255, 193, 7, 0.5) !important;
}

.icon-wrapper {
    transition: transform 0.3s ease;
}

.service-card:hover .icon-wrapper {
    transform: scale(1.1);
}

/* Gallery */
.gallery-item {
    cursor: pointer;
}

.gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 193, 7, 0.8);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

.gallery-item:hover img {
    transform: scale(1.1);
}

.gallery-item img {
    transition: transform 0.5s ease;
}

/* Social Link */
.social-link {
    width: 50px;
    height: 50px;
    border: 1px solid rgba(255,255,255,0.1);
}

.social-link:hover {
    background-color: var(--primary-color) !important;
    color: var(--dark-bg) !important;
    transform: translateY(-3px);
}

/* Responsive */
@media (max-width: 768px) {
    .display-3 {
        font-size: 2.5rem;
    }
    .hero-section {
        height: auto;
        min-height: 100vh;
        padding-top: 80px;
    }
    .floating-buttons {
        bottom: 20px;
        right: 20px;
    }
    .float-btn {
        width: 55px;
        height: 55px;
        font-size: 24px;
    }
}

/* Professional Bento Box Gallery */
.bento-gallery {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-auto-rows: 250px;
    gap: 20px;
    padding: 20px 0;
}

.bento-item {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    cursor: pointer;
    background-color: var(--darker-bg);
}

.item-1 { grid-column: span 2; grid-row: span 2; }
.item-2 { grid-column: span 1; grid-row: span 1; }
.item-3 { grid-column: span 1; grid-row: span 1; }
.item-4 { grid-column: span 1; grid-row: span 1; }
.item-5 { grid-column: span 2; grid-row: span 1; }

.bento-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.bento-item:hover img {
    transform: scale(1.1) rotate(1deg);
}

.bento-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(18, 18, 18, 0.95) 0%, rgba(255, 193, 7, 0.4) 100%);
    display: flex;
    align-items: flex-end;
    padding: 30px;
    opacity: 0;
    transition: all 0.5s cubic-bezier(0.2, 0.8, 0.2, 1);
    backdrop-filter: blur(2px);
}

.bento-item:hover .bento-overlay {
    opacity: 1;
}

.bento-content {
    color: white;
    transform: translateY(30px);
    transition: transform 0.5s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.bento-item:hover .bento-content {
    transform: translateY(0);
}

.bento-content i {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 15px;
    display: block;
}

.bento-content h4 {
    font-weight: 700;
    margin: 0;
    font-size: 1.5rem;
    text-shadow: 0 2px 4px rgba(0,0,0,0.8);
}

@media (max-width: 992px) {
    .bento-gallery {
        grid-template-columns: repeat(2, 1fr);
    }
    .item-1 { grid-column: span 2; grid-row: span 2; }
    .item-2 { grid-column: span 1; grid-row: span 1; }
    .item-3 { grid-column: span 1; grid-row: span 1; }
    .item-4 { grid-column: span 1; grid-row: span 1; }
    .item-5 { grid-column: span 1; grid-row: span 1; }
}

@media (max-width: 576px) {
    .bento-gallery {
        grid-template-columns: 1fr;
        grid-auto-rows: 220px;
    }
    .item-1, .item-2, .item-3, .item-4, .item-5 {
        grid-column: span 1;
        grid-row: span 1;
    }
    .item-1 { grid-row: span 2; } /* Keep the first one a bit larger vertically */
}

