:root {
    --bs-font-sans-serif: 'Inter', sans-serif;
    --bs-body-font-family: 'Inter', sans-serif;
    --bs-heading-font-family: 'Poppins', sans-serif;
    
    /* Custom Color Scheme - Bowling themed with light background */
    --primary-color: #2563eb; /* Vibrant blue - reminiscent of bowling lanes */
    --primary-light: #60a5fa;
    --primary-dark: #1e40af;
    --accent-color: #2563eb; /* Changed to primary blue */
    --accent-light: #60a5fa; /* Changed to primary light */
    --secondary-color: #64748b; /* Slate gray */
    --background-light: #f8fafc;
    --background-white: #ffffff;
    --text-dark: #1e293b;
    --text-muted: #64748b;
    --border-color: #e2e8f0;
}

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--bs-body-font-family);
    background: linear-gradient(135deg, #f0f9ff 0%, #e0e7ff 50%, #fef3c7 100%);
    background-attachment: fixed;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    color: var(--text-dark);
}

h1, h2, h3, h4, h5, h6, .navbar-brand {
    font-family: var(--bs-heading-font-family);
    color: var(--text-dark);
}

.navbar {
    background-color: rgba(255, 255, 255, 0.95) !important;
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-color);
    transition: all 0.3s ease;
    animation: slideDown 0.6s ease-out;
}

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

.navbar-brand {
    font-weight: 700;
    color: var(--primary-color) !important;
    font-size: 1.5rem;
    transition: all 0.3s ease;
}

.navbar-brand:hover {
    transform: scale(1.05);
    letter-spacing: 0.5px;
}

.navbar-logo {
    height: 30px;
    width: auto;
    transition: all 0.3s ease;
}

.nav-link {
    font-weight: 500;
    color: var(--text-dark) !important;
    transition: all 0.3s ease;
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 50%;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

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

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

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

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    border: none;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
}

.btn-primary::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;
}

.btn-primary:hover::before {
    width: 300px;
    height: 300px;
}

.btn-primary:hover {
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary-color) 100%);
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 15px 35px rgba(37, 99, 235, 0.4);
}

.btn-primary:active {
    transform: translateY(-1px) scale(0.98);
}

.btn-outline-secondary {
    border: 2px solid var(--secondary-color);
    color: white;
    background: var(--secondary-color);
    position: relative;
    overflow: hidden;
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1),
                box-shadow 0.35s cubic-bezier(0.4, 0, 0.2, 1),
                border-color 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-outline-secondary::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    opacity: 0;
    transition: opacity 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: -1;
}

.btn-outline-secondary:hover::before {
    opacity: 1;
}

.btn-outline-secondary:hover {
    border-color: var(--primary-color);
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 15px 35px rgba(37, 99, 235, 0.4);
}

.btn-outline-secondary:active {
    transform: translateY(-1px) scale(0.98);
}

.footer {
    /* background-color: rgba(255, 255, 255, 0.95) !important; */
    /* backdrop-filter: blur(10px); */
    margin-top: auto;
    /* border-top: 1px solid var(--border-color); */
    background-color: rgba(255, 255, 255, 0.95) !important;
    backdrop-filter: blur(10px);
    border-top: 1px solid var(--border-color);
}

.footer h5 {
    color: var(--primary-color);
    font-weight: 600;
}

.footer .list-unstyled li {
    color: var(--text-dark);
    margin-bottom: 0.5rem;
}

.footer .bi {
    color: var(--accent-color);
}

.ratio iframe {
    border-radius: 1rem;
    /* box-shadow: 0 20px 50px rgba(37, 99, 235, 0.15); */
    border: 3px solid transparent !important;
}

/* Hero section enhancements */
.hero-section {
    min-height: calc(100vh - 80px); /* Account for navbar */
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 2rem 0;
}

.hero-title {
    font-style: italic;
    color: var(--primary-color);
    background: none;
    -webkit-text-fill-color: initial;
    background-clip: border-box;
    -webkit-background-clip: border-box;
    animation: none; /* Removed animation */
    cursor: default !important;
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
}

.hero-section p.lead:last-child {
    margin-bottom: 0;
}

.hero-title:hover{
    cursor: default !important; 
}

@keyframes gradientShift {
    0%, 100% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
}

@keyframes floatTitle {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-5px);
    }
}

.lead {
    color: var(--text-muted);
    cursor: default !important;
    /* animation: fadeInUp 0.8s ease-out 0.2s both; */
}

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

@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Section Styling */
section {
    position: relative;
}

section h2 {
    text-shadow: 0 2px 20px rgba(37, 99, 235, 0.15);
    position: relative;
    display: inline-block;
}

section h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
    border-radius: 2px;
}

section .lead {
    font-size: 1.2rem;
}

/* About Card Styling */
.about-card {
    position: relative;
    border: 2px solid transparent;
    background: linear-gradient(white, white) padding-box,
                linear-gradient(135deg, var(--primary-color), var(--accent-color)) border-box;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    /* animation: fadeInUp 0.8s ease-out 0.3s both; */
    text-align: center;
    isolation: isolate;
    will-change: transform;
}

.about-card::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    border-radius: 1.5rem;
    z-index: -1;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.about-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 60px rgba(37, 99, 235, 0.25), 0 0 30px rgba(245, 158, 11, 0.15) !important;
}

/* .about-card:hover::before {
    opacity: 0.1;
} */

.about-card p {
    font-size: 1.2rem;
    font-weight: bold;
    line-height: 1.8;
    color: var(--text-dark);
    position: relative;
    
}



/* Service Cards - New Design */
.service-card {
    height: 320px;
    cursor: pointer;
    transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    transform-style: preserve-3d;
    perspective: 1000px;
    border: 2px solid rgba(255, 255, 255, 0.5);
    background: linear-gradient(135deg, rgba(255,255,255,0.1), rgba(255,255,255,0.05));
    isolation: isolate;
    position: relative;
}

.service-card-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.service-card-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
}

.service-card-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.95) 0%, rgba(0,0,0,0.75) 60%, transparent 100%);
    padding: 2rem 1.5rem 1.5rem;
    transform: translateY(0);
    transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.service-card-overlay h5 {
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.8);
    font-size: 1.3rem;
}

.service-card-overlay p {
    text-shadow: 0 1px 5px rgba(0, 0, 0, 0.6);
    line-height: 1.5;
}

.service-card:hover {
    transform: translateY(-20px) rotateX(3deg) scale(1.02);
    box-shadow: 0 30px 80px rgba(37, 99, 235, 0.4), 0 0 40px rgba(245, 158, 11, 0.2) !important;
    border: none;
    
}

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

.service-card:hover .service-card-overlay {
    background: linear-gradient(to top, rgba(37, 99, 235, 0.98) 0%, rgba(37, 99, 235, 0.9) 60%, rgba(37, 99, 235, 0.4) 100%);
    padding-bottom: 2rem;
}

/* Click Hint Icon */
.service-card-hint {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: transparent;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    pointer-events: none;
    z-index: 10;
}

.service-card-hint i {
    font-size: 2.5rem;
    color: white;
    filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.8));
    animation: pulse 2s ease-in-out infinite;
}

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

.service-card:hover .service-card-hint {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1.2);
}

/* Lightbox */
.lightbox {
    display: none;
    position: fixed;
    z-index: 9999;
    padding-top: 50px;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(10px);
    animation: fadeIn 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.lightbox-content {
    margin: auto;
    display: block;
    max-width: 90%;
    max-height: 85vh;
    object-fit: contain;
    animation: zoomIn 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border-radius: 8px;
    box-shadow: 0 25px 100px rgba(0, 0, 0, 0.5);
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 40px;
    color: #fff;
    font-size: 50px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10000;
}

.lightbox-close:hover {
    color: var(--primary-light);
    transform: rotate(90deg) scale(1.2);
}

#lightbox-caption {
    margin: auto;
    display: block;
    width: 80%;
    max-width: 700px;
    text-align: center;
    color: #ccc;
    padding: 20px 0;
    font-size: 1.2rem;
    animation: fadeInUp 0.6s ease-out 0.2s both;
}

@keyframes fadeIn {
    from { 
        opacity: 0;
        backdrop-filter: blur(0px);
    }
    to { 
        opacity: 1;
        backdrop-filter: blur(10px);
    }
}

@keyframes zoomIn {
    from { 
        transform: scale(0.7);
        opacity: 0;
    }
    to { 
        transform: scale(1);
        opacity: 1;
    }
}

/* Scroll-triggered animations */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(50px);
    transition: all 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.animate-on-scroll.animate-left {
    transform: translateX(-50px);
}

.animate-on-scroll.animate-right {
    transform: translateX(50px);
}

.animate-on-scroll.visible {
    opacity: 1;
    transform: translateY(0) translateX(0);
}

/* Staggered animation delays for service cards */
.service-card:nth-child(1) {
    animation-delay: 0s;
}

.service-card:nth-child(2) {
    animation-delay: 0.1s;
}

.service-card:nth-child(3) {
    animation-delay: 0.2s;
}

/* Parallax effect */
.parallax {
    transition: transform 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

/* Floating animation for decorative elements */
@keyframes float {
    0%, 100% {
        transform: translateY(0px) rotate(0deg);
    }
    33% {
        transform: translateY(-10px) rotate(2deg);
    }
    66% {
        transform: translateY(-5px) rotate(-2deg);
    }
}

/* Shimmer effect for loading states */
@keyframes shimmer {
    0% {
        background-position: -1000px 0;
    }
    100% {
        background-position: 1000px 0;
    }
}

/* Bounce animation */
@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-10px);
    }
    60% {
        transform: translateY(-5px);
    }
}

/* Scale in animation */
@keyframes scaleIn {
    from {
        transform: scale(0.8);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

/* Rotate in animation */
@keyframes rotateIn {
    from {
        transform: rotate(-180deg) scale(0.5);
        opacity: 0;
    }
    to {
        transform: rotate(0deg) scale(1);
        opacity: 1;
    }
}

/* Footer fade in */
.footer {
    animation: fadeInUp 0.8s ease-out;
}

/* Responsive adjustments */
/* Responsive adjustments */
@media (max-width: 768px) {
    /* Navbar adjustments */
    .navbar-toggler {
        display: none !important;
    }

    .navbar-brand {
        margin: 0 auto;
        display: flex;
        justify-content: center;
        width: 100%;
    }

    .navbar-logo {
        height: 40px; /* Smaller, appropriate size for mobile center */
        max-width: 100%;
        object-fit: contain;
    }

    /* Hero adjustments */
    .hero-title {
        font-size: 2.2rem; /* Adjusted for longer text on mobile */
        line-height: 1.2;
    }

    .lead {
        font-size: 1.8rem !important; /* Bigger text under title */
    }

    .hero-section {
        min-height: calc(100vh - 100px);
        padding: 1rem 0;
    }

    .service-card:hover {
        transform: translateY(-10px);
    }
    
    .btn-primary:hover,
    .btn-outline-secondary:hover {
        transform: translateY(-2px) scale(1.01);
    }
}

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

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

::-webkit-scrollbar-track {
    background: var(--background-light);
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, var(--primary-color), var(--primary-dark));
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, var(--primary-dark), var(--primary-color));
}

/* Ripple effect for buttons */
.btn {
    position: relative;
    overflow: hidden;
}

.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;
    }
}

/* Image load animation */
img {
    opacity: 1;
    transition: opacity 0.5s ease-in-out;
}

img.loading {
    opacity: 0.3;
}

/* =========================================
   Animation Classes for Demo 
   ========================================= */

/* Base transition for all animations */
[class*="animate-"] {
    opacity: 0;
    transition: opacity 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275), 
                transform 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275),
                filter 0.8s ease;
    will-change: opacity, transform;
}

/* 1. Slide Up */
.animate-slide-up {
    transform: translateY(50px);
}

/* 2. Fade */
/* .animate-fade {
    /* distinct from base opacity: 0 */
/* } */

/* 3. Scale */
.animate-scale {
    transform: scale(0.8);
}

/* 4. Slide Left */
.animate-slide-left {
    transform: translateX(-50px);
}

/* 5. Slide Right */
.animate-slide-right {
    transform: translateX(50px);
}

/* 6. Rotate */
.animate-rotate {
    transform: rotate(-10deg) scale(0.9);
}

/* 7. Blur */
.animate-blur {
    filter: blur(10px);
    transform: scale(0.95);
}

/* 8. Bounce In */
.animate-bounce-in {
    transform: scale(0.5);
    transition-timing-function: cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

/* 9. Flip */
.animate-flip {
    transform: perspective(1000px) rotateY(90deg);
    backface-visibility: hidden;
}

/* 10. Slide Rotate */
.animate-slide-rotate {
    transform: translateY(50px) rotate(-5deg);
}

/* Stagger delays */
.stagger-0 { transition-delay: 0s; }
.stagger-1 { transition-delay: 0.1s; }
.stagger-2 { transition-delay: 0.2s; }
.stagger-3 { transition-delay: 0.3s; }

/* Visible State (Triggered by JS) */
[class*="animate-"].visible {
    opacity: 1;
    transform: translate(0) scale(1) rotate(0);
    filter: none;
}

/* =========================================
   Cookie Consent Banner
   ========================================= */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    box-shadow: 0 -5px 25px rgba(0, 0, 0, 0.1);
    z-index: 9999;
    padding: 1.5rem 0;
    padding-bottom: calc(1.5rem + env(safe-area-inset-bottom));
    border-top: 1px solid var(--border-color);
    transition: transform 0.8s cubic-bezier(0.2, 0.8, 0.2, 1);
    transform: translateY(100%); /* Hide completely regardless of height */
}

.cookie-banner.show {
    transform: translateY(0);
}

.cookie-content {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
}

.cookie-text {
    flex: 1;
    min-width: 300px;
}

.cookie-text h5 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--primary-color);
}

.cookie-text p {
    font-size: 0.95rem;
    margin-bottom: 0;
    color: var(--text-muted);
    line-height: 1.5;
}

.cookie-buttons {
    display: flex;
    gap: 1rem;
    flex-shrink: 0;
}

/* Disable animations for cookie buttons and banner content */
.cookie-buttons .btn {
    transition: none !important;
    transform: none !important;
    box-shadow: none !important;
    animation: none !important;
}

.cookie-buttons .btn::before {
    display: none !important;
}

.cookie-buttons .btn:hover {
    transform: none !important;
    box-shadow: none !important;
}

@media (max-width: 768px) {
    .cookie-banner {
        padding: 1rem 0;
        /* Ensure it's not too tall on small screens */
        max-height: 80vh;
        overflow-y: auto;
    }

    .cookie-content {
        flex-direction: column;
        align-items: stretch; /* Stretch buttons to full width */
        gap: 1rem;
    }
    
    .cookie-text {
        min-width: 0;
        width: 100%;
        margin-bottom: 0;
    }
    
    .cookie-buttons {
        width: 100%;
        gap: 0.75rem;
        flex-direction: column-reverse; /* Put Accept button on TOP for mobile */
    }

    .cookie-buttons button {
        width: 100%;
        margin: 0 !important;
        padding: 0.75rem 1rem; /* Bigger touch targets */
        font-size: 1rem;
    }
}

