/* Custom CSS for Capital Kitchen Website - Mobile First */

/* Import Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Cairo:wght@300;400;600;700;900&display=swap');

/* Root Variables */
:root {
    --primary-color: #d4af37;
    --secondary-color: #2c3e50;
    --accent-color: #e74c3c;
    --dark-color: #1a1a1a;
    --light-color: #f8f9fa;
    --gradient-primary: linear-gradient(135deg, #d4af37 0%, #f4d03f 100%);
    --gradient-dark: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
    --shadow-light: 0 5px 15px rgba(0,0,0,0.1);
    --shadow-medium: 0 10px 30px rgba(0,0,0,0.2);
    --shadow-heavy: 0 20px 40px rgba(0,0,0,0.3);
    --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-bounce: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

/* CRITICAL: Fix horizontal scroll issue */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    overflow-x: hidden !important;
    width: 100% !important;
    max-width: 100% !important;
    scroll-behavior: smooth;
}

body {
    font-family: 'Cairo', sans-serif;
    line-height: 1.6;
    color: var(--dark-color);
    overflow-x: hidden !important;
    width: 100% !important;
    max-width: 100% !important;
    position: relative;
}

/* Container fixes */
.container-fluid {
    padding-left: 15px !important;
    padding-right: 15px !important;
    max-width: 100% !important;
    overflow-x: hidden !important;
}

.container {
    max-width: 100% !important;
    overflow-x: hidden !important;
}

.row {
    margin-left: 0 !important;
    margin-right: 0 !important;
    max-width: 100% !important;
    overflow-x: hidden !important;
}

[class*="col-"] {
    padding-left: 10px !important;
    padding-right: 10px !important;
    max-width: 100% !important;
    overflow-x: hidden !important;
}

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

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

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

::-webkit-scrollbar-thumb:hover {
    background: var(--primary-color);
}

/* Navigation Styles */
.custom-navbar {
    background: rgba(44, 62, 80, 0.95);
    backdrop-filter: blur(10px);
    transition: var(--transition-smooth);
    padding: 15px 0;
    box-shadow: var(--shadow-light);
    width: 100% !important;
    max-width: 100% !important;
    overflow-x: hidden !important;
}

.custom-navbar.scrolled {
    background: rgba(44, 62, 80, 0.98);
    padding: 10px 0;
    box-shadow: var(--shadow-medium);
}

.logo-img {
    height: 50px;
    width: auto;
    border-radius: 10px;
    transition: var(--transition-smooth);
}

.logo-img:hover {
    transform: scale(1.1);
    box-shadow: var(--shadow-light);
}

.navbar-nav .nav-link {
    color: white !important;
    font-weight: 600;
    margin: 0 10px;
    position: relative;
    transition: var(--transition-smooth);
}

.navbar-nav .nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 3px;
    bottom: -5px;
    left: 50%;
    background: var(--gradient-primary);
    transition: var(--transition-smooth);
    transform: translateX(-50%);
}

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

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

/* Hero Section - INCREASED HEIGHT */
.hero-section {
    height: 100vh;
    min-height: 600px; /* Increased minimum height */
    position: relative;
    overflow: hidden !important;
    width: 100% !important;
    max-width: 100% !important;
}

.hero-slider {
    position: relative;
    height: 100%;
    width: 100% !important;
    max-width: 100% !important;
    overflow: hidden !important;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100% !important;
    max-width: 100% !important;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0;
    transition: opacity 1s ease-in-out;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden !important;
}

.slide.active {
    opacity: 1;
}

.slide-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, rgba(44, 62, 80, 0.8), rgba(212, 175, 55, 0.3));
}

.slide-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: white;
    width: 100% !important;
    max-width: 100% !important;
    padding: 0 20px;
    overflow: hidden !important;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 900;
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
    animation: slideInUp 1s ease-out;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.hero-subtitle {
    font-size: 1.5rem;
    font-weight: 300;
    margin-bottom: 30px;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
    animation: slideInUp 1s ease-out 0.2s both;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.hero-buttons {
    animation: slideInUp 1s ease-out 0.4s both;
}

.btn-primary {
    background: var(--gradient-primary);
    border: none;
    padding: 15px 30px;
    font-weight: 600;
    border-radius: 50px;
    transition: var(--transition-bounce);
    box-shadow: var(--shadow-light);
}

.btn-primary:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: var(--shadow-medium);
    background: var(--gradient-primary);
}

.btn-outline-light {
    border: 2px solid white;
    padding: 15px 30px;
    font-weight: 600;
    border-radius: 50px;
    transition: var(--transition-bounce);
}

.btn-outline-light:hover {
    background: white;
    color: var(--dark-color) !important;
    transform: translateY(-3px) scale(1.05);
    box-shadow: var(--shadow-medium);
}

/* Slider Controls */
.slider-controls {
    position: absolute;
    top: 50%;
    width: 100%;
    display: flex;
    justify-content: space-between;
    padding: 0 30px;
    z-index: 3;
    max-width: 100% !important;
    overflow: hidden !important;
}

.slider-controls button {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    color: white;
    font-size: 20px;
    cursor: pointer;
    transition: var(--transition-smooth);
    backdrop-filter: blur(10px);
}

.slider-controls button:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.1);
}

.slider-indicators {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 15px;
    z-index: 3;
}

.indicator {
    width: 15px;
    height: 15px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: var(--transition-smooth);
}

.indicator.active {
    background: var(--primary-color);
    transform: scale(1.2);
}

/* Section Styles */
.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--secondary-color);
    margin-bottom: 20px;
    position: relative;
    display: inline-block;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.section-title-custom {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--light-color);
    margin-bottom: 20px;
    position: relative;
    display: inline-block;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: var(--gradient-primary);
    border-radius: 2px;
}

.section-subtitle {
    font-size: 1.2rem;
    color: #666;
    margin-bottom: 40px;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

/* Gallery Section */
.gallery-section {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    overflow-x: hidden !important;
    width: 100% !important;
    max-width: 100% !important;
}

.gallery-item-video {
    position: relative;
    overflow: hidden;
    border-radius: 15px;
    box-shadow: var(--shadow-light);
    transition: var(--transition-smooth);
    height: 300px;
    width: 100% !important;
    max-width: 100% !important;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 15px;
    box-shadow: var(--shadow-light);
    transition: var(--transition-smooth);
    height: 300px;
    width: 100% !important;
    max-width: 100% !important;
}

.gallery-item:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-heavy);
}

.gallery-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-smooth);
}

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

.gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, rgba(44, 62, 80, 0.9), rgba(212, 175, 55, 0.8));
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: var(--transition-smooth);
}

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

.gallery-content {
    text-align: center;
    color: white;
    padding: 20px;
    transform: translateY(20px);
    transition: var(--transition-smooth);
    word-wrap: break-word;
    overflow-wrap: break-word;
}

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

.gallery-content h5 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 10px;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.gallery-content p {
    margin-bottom: 20px;
    opacity: 0.9;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.whatsapp-btn {
    background: #25d366;
    border: none;
    padding: 10px 20px;
    border-radius: 25px;
    font-weight: 600;
    transition: var(--transition-bounce);
    color: white;
}

.whatsapp-btn:hover {
    background: #128c7e;
    transform: scale(1.05);
    color: white;
}

/* About Section */
.about-section {
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    overflow-x: hidden !important;
    width: 100% !important;
    max-width: 100% !important;
}

.feature-item {
    padding: 20px;
    background: white;
    border-radius: 15px;
    box-shadow: var(--shadow-light);
    transition: var(--transition-smooth);
    margin-bottom: 20px;
    width: 100% !important;
    max-width: 100% !important;
    overflow: hidden !important;
}

.feature-item:hover {
    transform: translateX(10px);
    box-shadow: var(--shadow-medium);
}

.feature-icon {
    width: 60px;
    height: 60px;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: white;
}

.about-image img {
    border-radius: 20px;
    transition: var(--transition-smooth);
    width: 100% !important;
    max-width: 100% !important;
    height: auto;
}

.about-image img:hover {
    transform: scale(1.02);
}

/* Contact Section */
.contact-section {
    background: var(--gradient-dark);
    color: white;
    overflow-x: hidden !important;
    width: 100% !important;
    max-width: 100% !important;
}

.contact-form-wrapper {
    background: rgba(255, 255, 255, 0.1);
    padding: 40px;
    border-radius: 20px;
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow-medium);
    width: 100% !important;
    max-width: 100% !important;
    overflow: hidden !important;
}

.form-control {
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 10px;
    color: white;
    padding: 15px;
    transition: var(--transition-smooth);
    width: 100% !important;
    max-width: 100% !important;
}

.form-control:focus {
    background: rgba(255, 255, 255, 0.15);
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(212, 175, 55, 0.25);
    color: white;
}

.form-control::placeholder {
    color: rgba(255, 255, 255, 0.7);
}

.form-label {
    color: white;
    font-weight: 600;
    margin-bottom: 10px;
}

.contact-info-item {
    padding: 30px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    backdrop-filter: blur(10px);
    transition: var(--transition-smooth);
    width: 100% !important;
    max-width: 100% !important;
    overflow: hidden !important;
}

.contact-info-item:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.15);
}

.contact-icon {
    width: 80px;
    height: 80px;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 30px;
    color: white;
    margin: 0 auto 20px;
    transition: var(--transition-bounce);
}

.contact-info-item:hover .contact-icon {
    transform: scale(1.1) rotate(5deg);
}

/* Footer */
.footer {
    background: var(--dark-color) !important;
    overflow-x: hidden !important;
    width: 100% !important;
    max-width: 100% !important;
}

.footer-logo-img {
    height: 40px;
    width: auto;
    border-radius: 8px;
}

/* FLOATING WHATSAPP - FIXED ON RIGHT */
.floating-whatsapp {
    position: fixed;
    bottom: 20px;
    right: 20px; /* Always on the right */
    background-color: #25d366;
    color: white;
    font-size: 28px;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    text-align: center;
    line-height: 60px;
    z-index: 9999;
    box-shadow: 0 2px 10px rgba(0,0,0,0.3);
    transition: transform 0.3s;
    text-decoration: none;
}

.floating-whatsapp:hover {
    transform: scale(1.1);
    background-color: #128C7E;
    color: white;
    text-decoration: none;
}

/* Animations */
@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInScale {
    from {
        opacity: 0;
        transform: scale(0.8);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes bounce {
    0%, 20%, 60%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-20px);
    }
    80% {
        transform: translateY(-10px);
    }
}

/* Floating Animation */
.floating {
    animation: floating 3s ease-in-out infinite;
}

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

/* Pulse Animation */
.pulse {
    animation: pulse 2s infinite;
}

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

/* MOBILE RESPONSIVE - CRITICAL FIXES */
@media (max-width: 768px) {
    html, body {
        overflow-x: hidden !important;
        width: 100% !important;
        max-width: 100% !important;
    }
    
    .container-fluid {
        padding-left: 10px !important;
        padding-right: 10px !important;
        max-width: 100% !important;
        overflow-x: hidden !important;
    }
    
    .hero-section {
        min-height: 500px; /* Increased for mobile */
    }
    
    .hero-title {
        font-size: 2.5rem;
        word-wrap: break-word;
        overflow-wrap: break-word;
    }
    
    .hero-subtitle {
        font-size: 1.2rem;
        word-wrap: break-word;
        overflow-wrap: break-word;
    }
    
    .section-title {
        font-size: 2rem;
        word-wrap: break-word;
        overflow-wrap: break-word;
    }
    
    .slider-controls {
        padding: 0 15px;
    }
    
    .slider-controls button {
        width: 50px;
        height: 50px;
        font-size: 16px;
    }
    
    .contact-form-wrapper {
        padding: 20px;
    }
    
    .gallery-item,
    .gallery-item-video {
        height: 250px;
    }
    
    .feature-item:hover {
        transform: none;
    }
    
    /* Fix any potential overflow issues */
    .row {
        margin-left: 0 !important;
        margin-right: 0 !important;
    }
    
    [class*="col-"] {
        padding-left: 5px !important;
        padding-right: 5px !important;
    }
}

@media (max-width: 576px) {
    html, body {
        overflow-x: hidden !important;
        width: 100% !important;
        max-width: 100% !important;
    }
    
    .container-fluid {
        padding-left: 5px !important;
        padding-right: 5px !important;
        max-width: 100% !important;
        overflow-x: hidden !important;
    }
    
    .hero-section {
        min-height: 450px; /* Increased for small mobile */
    }
    
    .hero-title {
        font-size: 2rem;
        word-wrap: break-word;
        overflow-wrap: break-word;
    }
    
    .hero-subtitle {
        font-size: 1rem;
        word-wrap: break-word;
        overflow-wrap: break-word;
    }
    
    .btn-primary,
    .btn-outline-light {
        padding: 12px 25px;
        font-size: 14px;
    }
    
    .gallery-item,
    .gallery-item-video {
        height: 200px;
    }
    
    .contact-info-item {
        padding: 20px;
    }
    
    .contact-icon {
        width: 60px;
        height: 60px;
        font-size: 24px;
    }
    
    .floating-whatsapp {
        width: 50px;
        height: 50px;
        font-size: 24px;
        line-height: 50px;
        bottom: 15px;
        right: 15px;
    }
}

/* Loading Animation */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255,255,255,.3);
    border-radius: 50%;
    border-top-color: #fff;
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Success Animation */
.success-message {
    background: linear-gradient(135deg, #28a745, #20c997);
    color: white;
    padding: 15px 25px;
    border-radius: 10px;
    margin-top: 20px;
    opacity: 0;
    transform: translateY(-20px);
    transition: var(--transition-smooth);
}

.success-message.show {
    opacity: 1;
    transform: translateY(0);
}

/* Hover Effects */
.hover-lift {
    transition: var(--transition-smooth);
}

.hover-lift:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-medium);
}

.hover-glow {
    transition: var(--transition-smooth);
}

.hover-glow:hover {
    box-shadow: 0 0 20px rgba(212, 175, 55, 0.5);
}

/* Gradient Text */
.gradient-text {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}



/* Video specific styles */
.video-item {
    position: relative;
}

.gallery-video {
    border-radius: 15px;
    width: 100%;
    height: 250px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.video-item .gallery-overlay {
    background: linear-gradient(45deg, rgba(0, 0, 0, 0.7), rgba(212, 175, 55, 0.8));
}

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

/* Responsive adjustments for videos */
@media (max-width: 768px) {
    .gallery-video {
        height: 200px;
    }
}

@media (max-width: 576px) {
    .gallery-video {
        height: 180px;
    }
}

