/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #f1f5f9;
    min-height: 100vh;
    background-color: #0b1220;
    /* VENDOS FOTON TËND KËTU - Replace 'Fotot/Background.png' with your image path */
    background-image: url('Fotot/Background.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    position: relative;
    scroll-behavior: smooth;
    overflow-x: hidden;
    overflow-y: hidden;
}

body.loaded {
    overflow-y: auto;
}

/* Hide content until splash screen is done */
header,
.hero,
.cars,
.services,
.contactt,
footer {
    opacity: 0;
    animation: contentFadeIn 0.5s ease-out 2.5s forwards;
}

@keyframes contentFadeIn {
    0% {
        opacity: 0;
    }
    100% {
        opacity: 1;
    }
}

body::before {
    content: '';
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.4);
    z-index: -1;
    pointer-events: none;
}

/* Splash Screen */
.splash-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(11, 18, 32, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    animation: splashFadeOut 0.5s ease-out 2.5s forwards;
}

.splash-logo {
    display: flex;
    flex-direction: column;
    align-items: center;
   gap: 1.5rem;
    animation: splashLogoScale 1.5s ease-out;
}

.splash-logo img {
    height: 120px;
    width: auto;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(59, 130, 246, 0.4);
    animation: splashImageRotate 1.5s ease-out;
}

.splash-logo-text {
    font-size: 2.5rem;
    font-weight: 700;
    background: linear-gradient(135deg, #ffffff 0%, #60a5fa 50%, #3b82f6 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: splashTextFadeIn 1s ease-out 0.5s both;
    text-align: center;
}

@keyframes splashLogoScale {
    0% {
        opacity: 0;
        transform: scale(0.3);
    }
    50% {
        transform: scale(1.1);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes splashImageRotate {
    0% {
        opacity: 0;
        transform: rotate(-360deg) scale(0.5);
    }
    100% {
        opacity: 1;
        transform: rotate(0deg) scale(1);
    }
}

@keyframes splashTextFadeIn {
    0% {
        opacity: 0;
        transform: translateY(20px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes splashFadeOut {
    0% {
        opacity: 1;
        visibility: visible;
    }
    100% {
        opacity: 0;
        visibility: hidden;
    }
}

/* Header Styles */
header {
    background: rgba(30, 41, 59, 0.7);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, 
        transparent, 
        rgba(59, 130, 246, 0.5), 
        rgba(96, 165, 250, 0.8), 
        rgba(59, 130, 246, 0.5), 
        transparent
    );
    background-size: 200% 100%;
    animation: shimmer 3s linear infinite;
    will-change: background-position;
}

nav {
    max-width: 1280px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.5rem;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    transition: transform 0.2s ease;
    position: relative;
}

.logo:hover {
    transform: scale(1.02);
}

.logo img {
    height: 3rem;
    width: auto;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.3);
    transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.logo:hover img {
    box-shadow: 0 6px 20px rgba(59, 130, 246, 0.5);
    transform: translateY(-1px);
}

.logo-text {
    background: linear-gradient(135deg, #ffffff 0%, #60a5fa 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-size: 1.5rem;
    font-weight: 700;
    text-shadow: none;
    transition: all 0.3s ease;
}

.logo::after {
    content: '';
    position: absolute;
    left: -6px;
    right: -6px;
    top: -6px;
    bottom: -6px;
    border-radius: 16px;
    opacity: 0;
    background: radial-gradient(60% 60% at 50% 50%, rgba(96,165,250,0.18), transparent 70%);
    transition: opacity 0.2s ease;
    pointer-events: none;
}

.logo:hover::after {
    opacity: 1;
}

/* Hamburger Menu */
.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    padding: 0.5rem;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background-color: #ffffff;
    margin: 3px 0;
    transition: 0.3s;
    border-radius: 2px;
}

.hamburger.active span:nth-child(1) {
    transform: rotate(-45deg) translate(-5px, 6px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(45deg) translate(-5px, -6px);
}

/* Navigation Menu */
.nav-menu {
    display: flex;
    gap: 2rem;
    list-style: none;
}

.nav-menu li {
    position: relative;
}

.nav-menu li a {
    color: #ffffff;
    font-weight: 600;
    font-size: 1.125rem;
    text-decoration: none;
    padding: 0.5rem 1rem;
    border-radius: 12px;
    transition: color 0.2s ease, background-color 0.2s ease;
    position: relative;
    display: block;
}

.nav-menu li a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    background-color: #60a5fa;
    transition: width 0.3s ease;
    border-radius: 2px;
}

.nav-menu li a:hover {
    color: #60a5fa;
    background: rgba(96, 165, 250, 0.1);
}

.nav-menu li a:hover::after {
    width: calc(100% - 2rem);
    left: 50%;
}

/* Hero Section */
.hero {
    position: relative;
    background: transparent;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #ffffff;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.4), rgba(15, 23, 42, 0.6));
    z-index: -1;
}

.hero::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.1) 0%, transparent 70%);
    animation: rotate 20s linear infinite;
    z-index: -1;
}

@media (min-width: 769px) {
    body::before {
        background: rgba(15, 23, 42, 0.45);
    }

    body {
        background-attachment: fixed; /* Background fiks - nuk lëviz me scroll */
    }

    .hero::before {
        background: linear-gradient(rgba(0, 0, 0, 0.3), rgba(15, 23, 42, 0.5));
    }
}

.hero h1 {
    font-size: 4rem;
    font-weight: 800;
    background: rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    padding: 2.5rem 4rem;
    border-radius: 24px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 
        0 8px 32px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    animation: fadeInUp 1s ease-out, float 6s ease-in-out infinite;
    position: relative;
    overflow: hidden;
}

.hero h1::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(96, 165, 250, 0.1), transparent);
    animation: shine 3s infinite;
}

.hero h1 span {
    background: linear-gradient(135deg, #ffffff 0%, #60a5fa 50%, #3b82f6 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    position: relative;
    z-index: 1;
}

/* About Section */
.about {
    padding: 6rem 1.5rem;
    max-width: 1280px;
    margin: 0 auto;
    text-align: center;
    opacity: 0;
    transform: translateY(50px);
    animation: fadeInUp 1s ease-out 0.3s forwards;
}

.about h1 {
    font-size: 3rem;
    font-weight: 800;
    color: #f8fafc;
    margin-bottom: 2rem;
    position: relative;
}

.about h1::after {
    content: '';
    position: absolute;
    width: 100px;
    height: 4px;
    background: linear-gradient(90deg, #3b82f6, #60a5fa, #3b82f6);
    background-size: 200% 100%;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    border-radius: 4px;
    animation: gradientShift 3s ease infinite;
    box-shadow: 0 2px 10px rgba(59, 130, 246, 0.5);
}

.about p {
    font-size: 1.25rem;
    color: rgba(226, 232, 240, 0.9);
    margin-bottom: 3rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.about-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.about .card {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(15px) saturate(180%);
    -webkit-backdrop-filter: blur(15px) saturate(180%);
    padding: 2.5rem;
    border-radius: 20px;
    box-shadow: 
        0 8px 32px rgba(0, 0, 0, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(255, 255, 255, 0.15);
    position: relative;
    overflow: hidden;
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 0.8s ease-out 0.4s forwards;
}

.about .card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(96, 165, 250, 0.1), transparent);
    transition: left 0.6s ease;
}

.about .card:hover::before {
    left: 100%;
}

.about .card:hover {
    transform: translateY(-12px) scale(1.02);
    box-shadow: 
        0 20px 60px rgba(0, 0, 0, 0.3),
        0 0 40px rgba(96, 165, 250, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
    border-color: rgba(96, 165, 250, 0.3);
}

.about .card h2 {
    font-size: 1.75rem;
    color: #f8fafc;
    margin-bottom: 1rem;
    font-weight: 700;
}

.about .card p {
    font-size: 1.125rem;
    color: #e2e8f0;
    line-height: 1.7;
}

/* Cars Section */
.cars {
    padding: 6rem 1.5rem;
    text-align: center;
    opacity: 0;
    transform: translateY(50px);
    animation: fadeInUp 1s ease-out 0.5s forwards;
}

.cars h1 {
    font-size: 3rem;
    font-weight: 800;
    color: #f8fafc;
    margin-bottom: 3rem;
    position: relative;
}

.cars h1::after {
    content: '';
    position: absolute;
    width: 100px;
    height: 4px;
    background: linear-gradient(90deg, #3b82f6, #60a5fa, #3b82f6);
    background-size: 200% 100%;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    border-radius: 4px;
    animation: gradientShift 3s ease infinite;
    box-shadow: 0 2px 10px rgba(59, 130, 246, 0.5);
}

.car-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
    max-width: 1280px;
    margin: 0 auto;
}

.car-card {
    perspective: 1000px;
    height: 400px;
    opacity: 0;
    animation: fadeInUp 0.8s ease-out forwards;
}

.car-card:nth-child(1) { animation-delay: 0.1s; }
.car-card:nth-child(2) { animation-delay: 0.2s; }
.car-card:nth-child(3) { animation-delay: 0.3s; }
.car-card:nth-child(4) { animation-delay: 0.4s; }
.car-card:nth-child(5) { animation-delay: 0.5s; }
.car-card:nth-child(6) { animation-delay: 0.6s; }
.car-card:nth-child(7) { animation-delay: 0.7s; }
.car-card:nth-child(8) { animation-delay: 0.8s; }
.car-card:nth-child(9) { animation-delay: 0.9s; }
.car-card:nth-child(10) { animation-delay: 1s; }

.car-card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    text-align: center;
    transition: transform 0.6s ease-in-out;
    transform-style: preserve-3d;
}

/* Desktop hover effect */
@media (hover: hover) and (pointer: fine) {
    .car-card:hover .car-card-inner {
        transform: rotateY(180deg);
    }
}

/* Click functionality for all devices */
.car-card.flipped .car-card-inner {
    transform: rotateY(180deg);
}

.car-card-front, .car-card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    border-radius: 16px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 1.5rem;
}

.car-card-front {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(15px) saturate(180%);
    -webkit-backdrop-filter: blur(15px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.15);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.car-card:hover .car-card-front {
    border-color: rgba(96, 165, 250, 0.3);
}

.car-card-back {
    background: linear-gradient(135deg, #1e293b 0%, #334155 100%);
    color: #ffffff;
    transform: rotateY(180deg);
}

.car-card-front img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 16px;
    margin-bottom: 1rem;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.car-card:hover .car-card-front img {
    transform: scale(1.05);
}

.car-card-front h2 {
    font-size: 1.5rem;
    color: #f8fafc;
    font-weight: 700;
    margin-bottom: 1rem;
}

/* Mobile details button - hidden on desktop */
.mobile-details-btn {
    display: none;
    background: linear-gradient(135deg, #3b82f6, #60a5fa);
    color: white;
    border: none;
    padding: 0.875rem 2rem;
    border-radius: 12px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.4);
    position: relative;
    overflow: hidden;
}

.mobile-details-btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.mobile-details-btn:hover::before {
    width: 300px;
    height: 300px;
}

.mobile-details-btn:hover {
    background: linear-gradient(135deg, #2563eb, #3b82f6);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(59, 130, 246, 0.6);
}

.mobile-details-btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 10px rgba(59, 130, 246, 0.4);
}

.car-card-back h3 {
    font-size: 1.5rem;
    color: #ffffff;
    margin-bottom: 1rem;
    font-weight: 700;
}

.car-card-back p {
    font-size: 1rem;
    color: #cbd5e1;
    margin-bottom: 0.5rem;
    text-align: left;
}

/* Services Section */
.services {
    padding: 6rem 1.5rem;
    max-width: 1280px;
    margin: 0 auto;
    text-align: center;
    opacity: 0;
    transform: translateY(50px);
    animation: fadeInUp 1s ease-out 0.7s forwards;
}

.services h1 {
    font-size: 3rem;
    font-weight: 800;
    color: #f8fafc;
    margin-bottom: 3rem;
    position: relative;
}

.services h1::after {
    content: '';
    position: absolute;
    width: 100px;
    height: 4px;
    background: linear-gradient(90deg, #3b82f6, #60a5fa, #3b82f6);
    background-size: 200% 100%;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    border-radius: 4px;
    animation: gradientShift 3s ease infinite;
    box-shadow: 0 2px 10px rgba(59, 130, 246, 0.5);
}

.service-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
}

.service-card {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(15px) saturate(180%);
    -webkit-backdrop-filter: blur(15px) saturate(180%);
    padding: 2.5rem;
    border-radius: 24px;
    box-shadow: 
        0 8px 32px rgba(0, 0, 0, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.15);
    position: relative;
    overflow: hidden;
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 0.8s ease-out forwards;
    will-change: transform;
}

.service-card:nth-child(1) { animation-delay: 0.1s; }
.service-card:nth-child(2) { animation-delay: 0.2s; }
.service-card:nth-child(3) { animation-delay: 0.3s; }
.service-card:nth-child(4) { animation-delay: 0.4s; }

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #3b82f6, #60a5fa, #3b82f6);
    background-size: 200% 100%;
    animation: gradientShift 3s ease infinite;
}

.service-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at center, rgba(96, 165, 250, 0.08) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
    border-radius: 24px;
}

.service-card:hover::after {
    opacity: 1;
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: 
        0 20px 60px rgba(0, 0, 0, 0.3),
        0 0 40px rgba(96, 165, 250, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
    border-color: rgba(96, 165, 250, 0.3);
}

.service-icon {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    display: block;
    transition: all 0.3s ease;
    filter: drop-shadow(0 4px 8px rgba(96, 165, 250, 0.3));
}

.service-card:hover .service-icon {
    transform: scale(1.1);
    filter: drop-shadow(0 6px 12px rgba(96, 165, 250, 0.5));
}

.service-card h2 {
    font-size: 1.75rem;
    color: #f8fafc;
    margin-bottom: 1rem;
    font-weight: 700;
}

.service-card p {
    font-size: 1.125rem;
    color: #e2e8f0;
    margin-bottom: 1.5rem;
    line-height: 1.7;
}

.service-card ul {
    list-style: none;
    text-align: left;
}

.service-card ul li {
    color: #cbd5e1;
    margin-bottom: 0.5rem;
    position: relative;
    padding-left: 1.5rem;
}

.service-card ul li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: #3b82f6;
    font-weight: bold;
}

/* Contact Section */
.contactt {
    padding: 6rem 1.5rem;
    color: #ffffff;
    opacity: 0;
    transform: translateY(50px);
    animation: fadeInUp 1s ease-out 0.9s forwards;
}

.contact-container {
    max-width: 1280px;
    margin: 0 auto;
}

.contactt h1 {
    font-size: 3rem;
    font-weight: 800;
    text-align: center;
    margin-bottom: 3rem;
    position: relative;
}

.contactt h1::after {
    content: '';
    position: absolute;
    width: 100px;
    height: 4px;
    background: linear-gradient(90deg, #60a5fa, #3b82f6, #60a5fa);
    background-size: 200% 100%;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    border-radius: 4px;
    animation: gradientShift 3s ease infinite;
    box-shadow: 0 2px 10px rgba(96, 165, 250, 0.5);
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: start;
}

.contact-side {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.contact-info h3 {
    font-size: 1.5rem;
    color: #60a5fa;
    margin-bottom: 1rem;
    font-weight: 700;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 16px;
    backdrop-filter: blur(15px) saturate(180%);
    -webkit-backdrop-filter: blur(15px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.contact-item:hover {
    transform: translateX(10px);
    background: rgba(255, 255, 255, 0.06);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.2);
    border-color: rgba(96, 165, 250, 0.3);
}

.contact-icon {
    font-size: 2rem;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #3b82f6, #60a5fa);
    border-radius: 50%;
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.4);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.contact-item:hover .contact-icon {
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 6px 20px rgba(59, 130, 246, 0.6);
}

.contact-details h3 {
    color: #ffffff;
    margin-bottom: 0.5rem;
}

.contact-details p {
    color: #cbd5e1;
    font-size: 1.125rem;
}

.contact-details p a {
    color: #cbd5e1 !important;
    text-decoration: none;
}

.contact-details p a:hover {
    color: #ffffff !important;
}

.social-links {
    margin-top: 2rem;
}

.social-icons {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    margin-top: 1rem;
}

.social-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 12px;
    text-decoration: none;
    color: #ffffff;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.social-link:hover {
    background: rgba(96, 165, 250, 0.2);
    transform: translateY(-4px) scale(1.05);
    box-shadow: 0 8px 25px rgba(96, 165, 250, 0.4);
    border-color: rgba(96, 165, 250, 0.5);
}

.social-link img {
    width: 32px;
    height: 32px;
    border-radius: 8px;
}

.map-container {
    background: rgba(255, 255, 255, 0.03);
    padding: 2rem;
    border-radius: 16px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.map-container h3 {
    color: #60a5fa;
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
    font-weight: 700;
}

.map-container iframe {
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

/* Rules Section */
.rules-card {
    background: rgba(255, 255, 255, 0.04);
    padding: 2rem;
    border-radius: 16px;
    backdrop-filter: blur(12px) saturate(160%);
    -webkit-backdrop-filter: blur(12px) saturate(160%);
    border: 1px solid rgba(255, 255, 255, 0.12);
    position: relative;
    overflow: hidden;
}

.rules-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #3b82f6, #60a5fa, #3b82f6);
    background-size: 200% 100%;
    animation: gradientShift 3s ease infinite;
}

.rules-card h3 {
    color: #60a5fa;
    margin-bottom: 1rem;
    font-size: 1.5rem;
    font-weight: 700;
}

.rules-card p {
    color: #cbd5e1;
    margin-bottom: 1rem;
    font-size: 1.05rem;
}

.rules-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.75rem 1rem;
}

.rules-list li {
    position: relative;
    padding: 0.875rem 1rem 0.875rem 2rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    color: #e2e8f0;
}

.rules-list li::before {
    content: '✓';
    position: absolute;
    left: 0.75rem;
    top: 50%;
    transform: translateY(-50%);
    color: #3b82f6;
    font-weight: 900;
}

@media (max-width: 768px) {
    .rules-list {
        grid-template-columns: 1fr;
    }
}

/* Car Modal Styles */
.car-modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
    overflow-y: auto; /* Allow scrolling within the modal */
    -webkit-overflow-scrolling: touch; /* Smooth scrolling on iOS */
}

.modal-content {
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    margin: 5% auto; /* Default margin */
    padding: 2rem;
    border-radius: 20px;
    width: 90%;
    max-width: 500px;
    position: relative;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    animation: modalSlideIn 0.3s ease-out;
}

/* Ensure modal content fits on smaller screens with enough space to scroll */
@media (max-height: 800px) {
    .modal-content {
        margin: 2rem auto;
    }
}

.close-modal {
    position: absolute;
    top: 1rem;
    right: 1.5rem;
    font-size: 2rem;
    font-weight: bold;
    color: #64748b;
    cursor: pointer;
    transition: color 0.3s ease;
}

.close-modal:hover {
    color: #1e293b;
}

#modalCarImage {
    text-align: center;
    margin-bottom: 1.5rem;
}

#modalCarImage img {
    width: 100%;
    max-width: 300px;
    height: 200px;
    object-fit: cover;
    border-radius: 12px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

#modalCarDetails h3 {
    font-size: 1.75rem;
    color: #1e293b;
    margin-bottom: 1rem;
    text-align: center;
    font-weight: 700;
}

#modalCarDetails p {
    font-size: 1.125rem;
    color: #475569;
    margin-bottom: 0.75rem;
    padding: 0.5rem 0;
    border-bottom: 1px solid #e2e8f0;
}

#modalCarDetails p:last-child {
    border-bottom: none;
    font-weight: 600;
    color: #1e293b;
    font-size: 1.25rem;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-50px) scale(0.9);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* Footer Section */
footer {
    background: rgba(15, 23, 42, 0.8);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    color: #ffffff;
    padding: 2rem 1.5rem;
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
}

footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, 
        transparent, 
        rgba(59, 130, 246, 0.5), 
        rgba(96, 165, 250, 0.8), 
        rgba(59, 130, 246, 0.5), 
        transparent
    );
}

.footer-content p {
    font-size: 1rem;
    color: #94a3b8;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-20px);
    }
}

@keyframes rotate {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

@keyframes shine {
    0% {
        transform: translateX(-100%) translateY(-100%) rotate(45deg);
    }
    100% {
        transform: translateX(100%) translateY(100%) rotate(45deg);
    }
}

@keyframes shimmer {
    0% {
        background-position: -200% 0;
    }
    100% {
        background-position: 200% 0;
    }
}

@keyframes gradientShift {
    0%, 100% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
}


/* Responsive Design */
@media (max-width: 768px) {
    body {
        /* VENDOS FOTON TËND PËR MOBILE KËTU - Replace 'Fotot/Background.png' with your image path */
        background-image: url('Fotot/Background.png');
        background-attachment: fixed;
        background-position: center;
        background-repeat: no-repeat;
        background-size: cover;
    }


    .hamburger {
        display: flex;
    }

    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background: linear-gradient(135deg, #1e293b 0%, #334155 100%);
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: 0 10px 27px rgba(0, 0, 0, 0.05);
        padding: 2rem 0;
        gap: 1rem;
    }

    .nav-menu.active {
        left: 0;
    }

    .nav-menu li {
        margin: 0.5rem 0;
    }

    .nav-menu li a {
        padding: 1rem 2rem;
        display: block;
        width: 100%;
    }

    /* Fix hero background for mobile */
    .hero {
        min-height: 100vh;
    }

    .hero h1 {
        font-size: 2.5rem;
        padding: 1.5rem 2rem;
    }

    .about h1, .cars h1, .services h1, .contactt h1 {
        font-size: 2.5rem;
    }

    .contact-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .social-icons {
        grid-template-columns: 1fr;
    }

    .car-cards {
        grid-template-columns: 1fr;
    }

    /* Mobile car card improvements */
    .car-card {
        cursor: default;
        -webkit-tap-highlight-color: transparent;
        touch-action: manipulation;
        user-select: none;
    }

    /* Show mobile button on mobile only */
    .mobile-details-btn {
        display: block !important;
        margin-top: 1rem;
    }

    /* Disable flip functionality on mobile */
    .car-card:hover .car-card-inner {
        transform: none !important;
    }

    .car-card.flipped .car-card-inner {
        transform: none !important;
    }

    /* Hide the back side on mobile */
    .car-card-back {
        display: none;
    }

    /* Modal adjustments for mobile */
    .modal-content {
        margin: 10% auto;
        width: 95%;
        padding: 1.5rem;
    }

    #modalCarImage img {
        height: 150px;
    }

    .service-cards {
        grid-template-columns: 1fr;
    }

    .about-cards {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .hero h1 {
        font-size: 2rem;
        padding: 1rem 1.5rem;
    }

    .about h1, .cars h1, .services h1, .contactt h1 {
        font-size: 2rem;
    }

    .logo-text {
        font-size: 1.25rem;
    }

    .contact-item {
        flex-direction: column;
        text-align: center;
    }
}





.mapsi iframe {
  width: 600px;
  height: 450px;
  border: 0;
}

/* Mobile view: screens smaller than 600px */
@media (max-width: 600px) {
  .mapsi iframe {
    width: 100%;  /* Make iframe take full container width */
    height: auto; /* Adjust height proportionally */
    aspect-ratio: 4 / 3; /* Keep aspect ratio similar to 600x450 */
  }
}

/* Reservation Button on Card */
.reserve-btn {
    margin-top: 1rem;
    background: linear-gradient(135deg, #10b981, #34d399);
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.4);
    width: 100%;
}

.reserve-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(16, 185, 129, 0.6);
    background: linear-gradient(135deg, #059669, #10b981);
}

/* Reservation Button in Mobile Modal */
.reserve-btn-modal {
    margin-top: 1.5rem;
    background: linear-gradient(135deg, #10b981, #34d399);
    color: white;
    border: none;
    padding: 1rem 2rem;
    border-radius: 12px;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.4);
}

.reserve-btn-modal:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(16, 185, 129, 0.6);
}

/* Reservation Form Styles */
.reservation-content {
    max-width: 500px;
    width: 90%;
    background: rgba(30, 41, 59, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #f1f5f9;
}

.reservation-content h3 {
    text-align: center;
    color: #f1f5f9;
    margin-bottom: 1.5rem;
    font-size: 1.75rem;
    font-weight: 700;
}

.reservation-content h3 span {
    background: linear-gradient(135deg, #34d399, #10b981);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.form-group {
    margin-bottom: 1.25rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: #94a3b8;
    font-weight: 600;
    font-size: 0.95rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.875rem 1rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    font-size: 1rem;
    color: #f1f5f9;
    transition: all 0.3s ease;
    font-family: inherit;
    background: rgba(15, 23, 42, 0.6);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #10b981;
    background: rgba(15, 23, 42, 0.8);
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.2);
}

.submit-reservation {
    background: linear-gradient(135deg, #3b82f6, #2563eb);
    color: white;
    border: none;
    padding: 1rem;
    width: 100%;
    border-radius: 12px;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 1rem;
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.4);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.submit-reservation:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(59, 130, 246, 0.6);
    background: linear-gradient(135deg, #2563eb, #1d4ed8);
}

.close-reservation {
    position: absolute;
    top: 1.25rem;
    right: 1.5rem;
    font-size: 2rem;
    font-weight: bold;
    color: #64748b;
    cursor: pointer;
    transition: color 0.3s ease;
    line-height: 1;
    background: transparent;
    border: none;
    padding: 0;
}

.close-reservation:hover {
    color: #f87171;
}

/* Date Input Styling */
input[type="date"]::-webkit-calendar-picker-indicator {
    filter: invert(1);
    cursor: pointer;
    opacity: 0.6;
    transition: opacity 0.2s;
}

input[type="date"]::-webkit-calendar-picker-indicator:hover {
    opacity: 1;
}
