/* Custom Styles for Arabada Arıza Var Website */

:root {
    --primary-color: #1976d2;
    --secondary-color: #ffc107;
    --dark-color: #212529;
    --light-color: #f8f9fa;
}

* {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    padding-top: 76px;
    overflow-x: hidden;
}

/* Navigation */
.navbar {
    background: linear-gradient(135deg, #1a237e 0%, #283593 50%, #3949ab 100%) !important;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 4px 30px rgba(0,0,0,.3);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    padding: 1rem 0;
    position: fixed !important;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    width: 100%;
    overflow: visible;
}

.navbar .container {
    overflow: visible;
}

.navbar-backdrop {
    display: none;
}

.navbar.scrolled {
    background: linear-gradient(135deg, #1a237e 0%, #283593 50%, #3949ab 100%) !important;
    box-shadow: 0 4px 30px rgba(0,0,0,.3);
    padding: 0.75rem 0;
}

.navbar-brand {
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    transition: all 0.3s ease;
    position: relative;
    z-index: 1;
    flex-shrink: 0;
    max-width: fit-content;
}

.navbar-logo {
    height: 45px;
    width: auto;
    max-width: 150px;
    max-height: 45px;
    object-fit: contain;
    flex-shrink: 0;
    display: block;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    filter: brightness(0) invert(1) drop-shadow(0 2px 8px rgba(255, 255, 255, 0.3));
}

.brand-icon {
    width: 45px;
    height: 45px;
    background: linear-gradient(135deg, #ffc107 0%, #ffb300 100%);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: white;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 4px 15px rgba(255, 193, 7, 0.3);
}

.brand-text {
    font-weight: 700;
    background: linear-gradient(135deg, #ffffff 0%, #f0f0f0 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    transition: all 0.3s ease;
}

.navbar-brand:hover .navbar-logo {
    transform: scale(1.1);
    filter: brightness(0) invert(1) drop-shadow(0 4px 12px rgba(255, 255, 255, 0.5));
}

.navbar-brand:hover .brand-icon {
    transform: rotate(360deg) scale(1.1);
    box-shadow: 0 6px 20px rgba(255, 193, 7, 0.5);
}

.navbar-brand:hover .brand-text {
    transform: translateX(5px);
}

.navbar-brand:hover {
    transform: scale(1.02);
}

.nav-link {
    font-weight: 600;
    transition: all 0.3s ease;
    position: relative;
    padding: 0.5rem 1rem !important;
    margin: 0 0.25rem;
    border-radius: 8px;
    display: flex;
    align-items: center;
    color: rgba(255, 255, 255, 0.9) !important;
}

.nav-link i {
    font-size: 1.1rem;
    transition: all 0.3s ease;
}

.nav-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255, 193, 7, 0.1) 0%, rgba(255, 179, 0, 0.1) 100%);
    border-radius: 8px;
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: -1;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 3px;
    background: linear-gradient(90deg, #ffc107 0%, #ffb300 100%);
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    transform: translateX(-50%);
    border-radius: 2px;
}

.nav-link:hover::before {
    opacity: 1;
}

.nav-link:hover::after {
    width: 80%;
}

.nav-link:hover {
    color: #ffc107 !important;
    transform: translateY(-2px);
}

.nav-link:hover i {
    transform: scale(1.2) rotate(5deg);
    color: #ffc107;
}

.nav-link.active {
    color: #ffc107 !important;
    background: rgba(255, 193, 7, 0.15);
}

.nav-link.active::after {
    width: 80%;
}

/* Custom Toggler */
.navbar-toggler {
    border: none;
    padding: 0.5rem;
    position: relative;
    z-index: 1;
}

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

.navbar-toggler-icon {
    width: 30px;
    height: 24px;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.navbar-toggler-icon span {
    display: block;
    height: 3px;
    width: 100%;
    background: white;
    border-radius: 3px;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    transform-origin: center;
}

.navbar-toggler[aria-expanded="true"] .navbar-toggler-icon span:nth-child(1) {
    transform: translateY(10px) rotate(45deg);
}

.navbar-toggler[aria-expanded="true"] .navbar-toggler-icon span:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
}

.navbar-toggler[aria-expanded="true"] .navbar-toggler-icon span:nth-child(3) {
    transform: translateY(-10px) rotate(-45deg);
}

/* Mobile Menu */
@media (max-width: 991px) {
    .navbar-collapse {
        background: rgba(25, 118, 210, 0.98);
        backdrop-filter: blur(20px);
        margin-top: 1rem;
        padding: 1rem;
        border-radius: 12px;
        box-shadow: 0 10px 40px rgba(0,0,0,.2);
        animation: slideDown 0.3s ease-out;
    }

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

    .nav-link {
        padding: 0.75rem 1rem !important;
        margin: 0.25rem 0;
        border-radius: 8px;
    }

    .nav-link:hover {
        background: rgba(255, 193, 7, 0.2);
        transform: translateX(10px);
    }
}

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, #1976d2 0%, #1565c0 50%, #0d47a1 100%);
    position: relative;
    overflow: hidden;
    min-height: 100vh;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 50%, rgba(255,255,255,0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(255,255,255,0.1) 0%, transparent 50%);
    animation: backgroundMove 20s ease-in-out infinite;
}

@keyframes backgroundMove {
    0%, 100% {
        transform: translate(0, 0);
    }
    50% {
        transform: translate(-20px, -20px);
    }
}

.hero-section .container {
    position: relative;
    z-index: 1;
}

.hero-title {
    animation: fadeInDown 1s ease-out;
}

.hero-subtitle {
    animation: fadeInUp 1s ease-out 0.3s both;
}

.animated-text {
    display: inline-block;
    animation: pulse 2s ease-in-out infinite;
    position: relative;
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

.pulse-btn {
    animation: pulseButton 2s ease-in-out infinite;
}

@keyframes pulseButton {
    0%, 100% {
        box-shadow: 0 0 0 0 rgba(255, 193, 7, 0.7);
    }
    50% {
        box-shadow: 0 0 0 10px rgba(255, 193, 7, 0);
    }
}

.feature-badge {
    transition: transform 0.3s ease;
}

.feature-badge:hover {
    transform: translateX(5px);
}

.phone-mockup {
    animation: float 3s ease-in-out infinite;
    position: relative;
}

.phone-image {
    border-radius: 30px;
    box-shadow: 0 20px 60px rgba(0,0,0,.3);
    transition: transform 0.3s ease;
}

.phone-image:hover {
    transform: scale(1.05);
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px) rotate(0deg);
    }
    50% {
        transform: translateY(-20px) rotate(2deg);
    }
}

/* Scroll Indicator */
.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
}

.mouse {
    width: 30px;
    height: 50px;
    border: 2px solid rgba(255,255,255,0.5);
    border-radius: 15px;
    position: relative;
}

.mouse::before {
    content: '';
    width: 6px;
    height: 6px;
    background: rgba(255,255,255,0.7);
    border-radius: 50%;
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    animation: scrollDown 1.5s ease-in-out infinite;
}

@keyframes scrollDown {
    0% {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }
    100% {
        opacity: 0;
        transform: translateX(-50%) translateY(20px);
    }
}

/* Features Section */
.features-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 10% 20%, rgba(25, 118, 210, 0.05) 0%, transparent 50%),
        radial-gradient(circle at 90% 80%, rgba(255, 193, 7, 0.05) 0%, transparent 50%);
    pointer-events: none;
}

.feature-card {
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border-radius: 16px;
    overflow: hidden;
    position: relative;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(25, 118, 210, 0.05) 0%, rgba(255, 193, 7, 0.05) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.feature-card:hover::before {
    opacity: 1;
}

.feature-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 15px 40px rgba(0,0,0,.15) !important;
}

.feature-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto;
    background: linear-gradient(135deg, #1976d2 0%, #1565c0 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 2rem;
    transition: all 0.4s ease;
    position: relative;
    z-index: 1;
}

.feature-card:hover .feature-icon {
    transform: rotate(360deg) scale(1.1);
    background: linear-gradient(135deg, #ffc107 0%, #ffb300 100%);
}

/* Step Cards */
.step-card {
    padding: 2rem 1rem;
    transition: transform 0.3s ease;
}

.step-card:hover {
    transform: translateY(-5px);
}

.step-number {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, var(--primary-color) 0%, #1565c0 100%);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    font-weight: bold;
    margin: 0 auto 1.5rem;
    box-shadow: 0 5px 15px rgba(25, 118, 210, 0.3);
    transition: all 0.3s ease;
    position: relative;
}

.step-number::before {
    content: '';
    position: absolute;
    top: -5px;
    left: -5px;
    right: -5px;
    bottom: -5px;
    border-radius: 50%;
    border: 2px solid var(--primary-color);
    opacity: 0;
    animation: ripple 2s ease-out infinite;
}

@keyframes ripple {
    0% {
        transform: scale(0.8);
        opacity: 1;
    }
    100% {
        transform: scale(1.5);
        opacity: 0;
    }
}

.step-card:hover .step-number {
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 10px 25px rgba(25, 118, 210, 0.4);
}

.step-image {
    overflow: hidden;
    border-radius: 12px;
    transition: transform 0.3s ease;
}

.step-image img {
    transition: transform 0.5s ease;
}

.step-card:hover .step-image img {
    transform: scale(1.1);
}

/* Download Section */
.download-pattern {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        repeating-linear-gradient(45deg, transparent, transparent 10px, rgba(255,255,255,0.03) 10px, rgba(255,255,255,0.03) 20px);
    animation: patternMove 20s linear infinite;
}

@keyframes patternMove {
    0% {
        background-position: 0 0;
    }
    100% {
        background-position: 100px 100px;
    }
}

.download-btn {
    transition: all 0.3s ease;
    display: inline-block;
    filter: drop-shadow(0 5px 15px rgba(0,0,0,.2));
}

.download-btn:hover {
    transform: scale(1.1) translateY(-5px);
    filter: drop-shadow(0 10px 25px rgba(0,0,0,.3));
}

.store-badge {
    transition: filter 0.3s ease;
    display: block;
}

.google-play-badge {
    height: 65px;
    width: 155px;
    object-fit: contain;
}

.app-store-badge {
    height: 45px;
    width: 155px;
    object-fit: contain;
}

.download-btn:hover .store-badge {
    filter: brightness(1.1);
}

.phone-showcase {
    position: relative;
    animation: float 4s ease-in-out infinite;
}

.phone-showcase-img {
    border-radius: 30px;
    box-shadow: 0 20px 60px rgba(0,0,0,.4);
    transition: transform 0.3s ease;
}

.phone-showcase:hover .phone-showcase-img {
    transform: scale(1.05) rotate(2deg);
}

/* Contact Section */
.contact-card {
    transition: all 0.4s ease;
    border-radius: 20px;
    overflow: hidden;
    position: relative;
}

.contact-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(25, 118, 210, 0.05) 0%, rgba(255, 193, 7, 0.05) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.contact-card:hover::before {
    opacity: 1;
}

.contact-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 50px rgba(0,0,0,.15) !important;
}

.contact-icon-wrapper {
    width: 100px;
    height: 100px;
    margin: 0 auto;
    background: linear-gradient(135deg, #1976d2 0%, #1565c0 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    color: white;
    transition: all 0.4s ease;
    position: relative;
    z-index: 1;
}

.contact-card:hover .contact-icon-wrapper {
    transform: rotate(360deg) scale(1.1);
    background: linear-gradient(135deg, #ffc107 0%, #ffb300 100%);
}

.contact-card .btn {
    transition: all 0.3s ease;
    position: relative;
    z-index: 1;
}

.contact-card .btn:hover {
    transform: scale(1.05);
    box-shadow: 0 10px 25px rgba(25, 118, 210, 0.3);
}

/* Footer */
footer {
    background-color: var(--dark-color) !important;
    position: relative;
    overflow: hidden;
}

footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.1), transparent);
}

footer a {
    transition: all 0.3s ease;
    position: relative;
}

footer a::before {
    content: '';
    position: absolute;
    left: 0;
    bottom: -2px;
    width: 0;
    height: 1px;
    background: var(--secondary-color);
    transition: width 0.3s ease;
}

footer a:hover::before {
    width: 100%;
}

footer a:hover {
    color: var(--secondary-color) !important;
    transform: translateX(5px);
}

.footer-logo {
    height: 50px;
    width: auto;
    object-fit: contain;
    filter: brightness(0) invert(1);
    transition: all 0.3s ease;
}

.footer-logo:hover {
    transform: scale(1.1);
    filter: brightness(0) invert(1) drop-shadow(0 2px 8px rgba(255, 255, 255, 0.3));
}

.social-links a {
    transition: all 0.3s ease;
    display: inline-block;
}

.social-links a:hover {
    transform: scale(1.3) rotate(5deg);
    color: var(--secondary-color) !important;
}

/* Responsive */
@media (max-width: 768px) {
    .hero-section {
        text-align: center;
    }
    
    .display-4 {
        font-size: 2rem;
    }
    
    .display-5 {
        font-size: 1.75rem;
    }
    
    .phone-mockup {
        margin-top: 2rem;
    }
    
    .store-badge {
        max-width: 150px;
    }
}

/* Smooth Scroll */
html {
    scroll-padding-top: 80px;
}

/* Button Styles */
.btn-warning {
    background-color: var(--secondary-color);
    border-color: var(--secondary-color);
    color: var(--dark-color);
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-warning:hover {
    background-color: #ffb300;
    border-color: #ffb300;
    color: var(--dark-color);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 193, 7, 0.4);
}

.btn-outline-light:hover {
    background-color: rgba(255,255,255,0.1);
    border-color: white;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255,255,255,0.2);
}

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

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(25, 118, 210, 0.4);
}

/* Card Styles */
.card {
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.3s ease;
}

/* Section Spacing */
section {
    padding: 5rem 0;
    position: relative;
}

/* Text Colors */
.text-white-50 {
    color: rgba(255,255,255,0.7) !important;
}

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

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-up {
    animation: fadeInUp 0.6s ease-out;
}

/* Loading Animation */
@keyframes shimmer {
    0% {
        background-position: -1000px 0;
    }
    100% {
        background-position: 1000px 0;
    }
}

/* Parallax Effect */
.parallax {
    transform: translateZ(0);
    will-change: transform;
}

/* Smooth transitions for all interactive elements */
a, button {
    transition: all 0.3s ease;
}

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

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

::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: #1565c0;
}

/* Ripple effect */
.ripple {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.6);
    transform: scale(0);
    animation: ripple-animation 0.6s ease-out;
    pointer-events: none;
}

@keyframes ripple-animation {
    to {
        transform: scale(4);
        opacity: 0;
    }
}

/* Scroll to top button */
.scroll-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    box-shadow: 0 5px 15px rgba(0,0,0,.3);
    transition: all 0.3s ease;
}

.scroll-to-top:hover {
    transform: scale(1.1);
    background: #1565c0;
}
