/*
================================================================
WEBQUILTERS DIGITAL - COMPLETE PROFESSIONAL CSS
Modern Tech Company Style with Blue Theme
Mobile-First, Framework-Based Design
================================================================
*/

/* 1. Base and Typography - Mobile Scroll Fix
----------------------------------------------------------------*/
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Inter', sans-serif;
    color: #1f2937;
    line-height: 1.6;
    overflow-x: hidden; /* Prevent horizontal scroll */
}

html {
    overflow-x: hidden; /* Prevent horizontal scroll on html */
    scroll-behavior: smooth;
}

/* Container width limits to prevent overflow */
.container {
    max-width: 100%;
    overflow-x: hidden;
}

/* Prevent scaling elements from causing overflow */
section {
    overflow-x: hidden;
}

/* Fix for containers with scaling elements */
.text-center {
    overflow-x: hidden;
}

/* Product Image Animations
----------------------------------------------------------------*/
/* Circling animation for sub-product images */
@keyframes circle-rotation {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

.sub-product-image {
    animation: circle-rotation 10s linear infinite;
}

/* Zoom animation for hotel feature images */
.hotel-feature-image {
    transition: transform 0.3s ease-in-out;
}

.hotel-feature-image:hover {
    transform: scale(1.1);
}

/* 2. Professional Navigation - Mobile Friendly
----------------------------------------------------------------*/
.nav-gradient {
    background: linear-gradient(135deg, #0074B7 0%, rgba(0, 116, 183, 0.95) 100%);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(96, 163, 217, 0.2);
}

.nav-default {
    background: #0074B7;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
}

.nav-link {
    position: relative;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-weight: 500;
    letter-spacing: 0.025em;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 50%;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #60A3D9, #BFD7ED);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    transform: translateX(-50%);
    border-radius: 2px;
}

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

.nav-link-active {
    color: #BFD7ED !important;
    font-weight: 600;
}

.nav-link:hover {
    color: #BFD7ED;
    transform: translateY(-1px);
}

/* 3. Hero Section - Mobile Optimized
----------------------------------------------------------------*/
.hero-section {
    position: relative;
    min-height: 100vh;
    scroll-margin-top: 0;
    z-index: 1;
    overflow: hidden; /* Prevent any overflow */
}

#hero-headline, #hero-subheadline {
    opacity: 0;
    transition: all 1.2s cubic-bezier(0.4, 0, 0.2, 1);
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

/* Section Scroll Adjustments - Mobile Friendly */
section {
    scroll-margin-top: 80px;
    position: relative;
    overflow-x: hidden; /* Prevent horizontal overflow */
    width: 100%;
}

#home {
    scroll-margin-top: 0;
}

/* Prevent section overlap */
#services {
    position: relative;
    z-index: 2;
    margin-top: 0;
    padding-top: 6rem; /* 24 in Tailwind = 6rem */
}

#about {
    position: relative;
    z-index: 3;
}

#contact {
    position: relative;
    z-index: 4;
}

/* 4. Button Styles - Professional
----------------------------------------------------------------*/
.btn-primary {
    background: linear-gradient(135deg, #60A3D9 0%, #0074B7 100%);
    box-shadow: 0 10px 25px rgba(96, 163, 217, 0.3);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    font-weight: 600;
    letter-spacing: 0.025em;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 1rem 2rem;
    font-size: 1rem;
    line-height: 1.25;
    border-radius: 0.75rem;
    border: none;
    color: #ffffff;
    cursor: pointer;
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.btn-primary:hover::before {
    left: 100%;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 35px rgba(96, 163, 217, 0.4);
}

.btn-secondary {
    background: linear-gradient(135deg, #003B73 0%, #0074B7 100%);
    border: 2px solid #60A3D9;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.875rem 2rem;
    font-size: 1rem;
    border-radius: 0.75rem;
    color: #ffffff;
    cursor: pointer;
    text-decoration: none;
}

.btn-secondary:hover {
    background: linear-gradient(135deg, #60A3D9 0%, #BFD7ED 100%);
    color: #003B73 !important;
    transform: translateY(-1px);
}

/* 5. Card Animations - Mobile Safe
----------------------------------------------------------------*/
.card-hover {
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(96, 163, 217, 0.1);
}

.card-hover:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 25px 50px rgba(0, 116, 183, 0.15);
    border-color: rgba(96, 163, 217, 0.3);
}

/* 6. Service Cards - Mobile Safe Animations
----------------------------------------------------------------*/
.service-image {
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.service-image::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(0, 116, 183, 0.1) 0%, rgba(96, 163, 217, 0.1) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.card-hover:hover .service-image {
    transform: scale(1.05); /* Reduced from 1.08 for mobile */
}

.card-hover:hover .service-image::after {
    opacity: 1;
}

.service-card-title {
    color: #003B73;
    font-weight: 700;
    transition: color 0.3s ease;
}

.card-hover:hover .service-card-title {
    color: #0074B7;
}

/* 7. Section Animations - Mobile Safe
----------------------------------------------------------------*/
.section-animate {
    opacity: 0;
    transform: translateY(20px); /* Reduced from 40px for mobile */
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.section-animate.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* 8. Founder Section
----------------------------------------------------------------*/
.founder-card {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, rgba(191, 215, 237, 0.1) 100%);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(96, 163, 217, 0.2);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.founder-card:hover {
    transform: translateY(-12px);
    box-shadow: 0 30px 60px rgba(0, 116, 183, 0.2);
}

.founder-image {
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 3px solid #60A3D9;
    box-shadow: 0 10px 25px rgba(96, 163, 217, 0.2);
}

.founder-card:hover .founder-image {
    transform: scale(1.05);
    border-color: #BFD7ED;
    box-shadow: 0 15px 35px rgba(96, 163, 217, 0.3);
}

/* 9. Feature Cards
----------------------------------------------------------------*/
.feature-card {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.9) 0%, rgba(191, 215, 237, 0.1) 100%);
    backdrop-filter: blur(15px);
    border: 1px solid rgba(96, 163, 217, 0.15);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
}

.feature-card:hover {
    transform: translateY(-6px);
    background: linear-gradient(135deg, #60A3D9 0%, #0074B7 100%);
    color: white;
    box-shadow: 0 20px 40px rgba(0, 116, 183, 0.3);
}

.feature-card:hover svg {
    color: #BFD7ED !important;
    transform: scale(1.1);
}

.feature-card:hover h4 {
    color: white !important;
}

/* 10. Background Gradients
----------------------------------------------------------------*/
.bg-gradient-light {
    background: linear-gradient(135deg, #f8fafc 0%, rgba(191, 215, 237, 0.1) 100%);
}

.bg-gradient-primary {
    background: linear-gradient(135deg, #003B73 0%, #0074B7 100%);
}

.bg-glass {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

/* 11. Go to Top Button
----------------------------------------------------------------*/
.go-top-btn {
    background: linear-gradient(135deg, #0074B7 0%, #60A3D9 100%);
    box-shadow: 0 8px 25px rgba(0, 116, 183, 0.3);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.go-top-btn:hover {
    transform: translateY(-2px) scale(1.1);
    box-shadow: 0 12px 35px rgba(0, 116, 183, 0.4);
}

/* 12. Form Styling - Professional Contact Forms
----------------------------------------------------------------*/
.form-group {
    position: relative;
}

.form-label {
    display: block;
    font-size: 0.875rem;
    font-weight: 600;
    color: #374151;
    margin-bottom: 0.5rem;
    letter-spacing: 0.025em;
}

.form-input {
    appearance: none;
    background-color: #ffffff;
    border: 2px solid #e5e7eb;
    border-radius: 0.75rem;
    padding: 0.875rem 1rem;
    font-size: 1rem;
    line-height: 1.5;
    color: #111827;
    width: 100%;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1);
}

.form-input:focus {
    outline: none;
    border-color: #60a3d9;
    box-shadow: 0 0 0 3px rgba(96, 163, 217, 0.1);
    background-color: #ffffff;
}

.form-input:hover {
    border-color: #d1d5db;
}

.form-input::placeholder {
    color: #9ca3af;
}

/* 13. Mobile Menu - Prevent Horizontal Scroll
----------------------------------------------------------------*/
.mobile-menu-gradient {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, rgba(191, 215, 237, 0.1) 100%);
    backdrop-filter: blur(20px);
    border-left: 1px solid rgba(96, 163, 217, 0.2);
}

.mobile-nav-link {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-weight: 500;
    position: relative;
    padding: 12px 0;
}

.mobile-nav-link::before {
    content: '';
    position: absolute;
    left: -24px;
    top: 50%;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #60A3D9, #0074B7);
    transition: width 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    transform: translateY(-50%);
}

.mobile-nav-link:hover::before {
    width: 16px;
}

.mobile-nav-link:hover {
    color: #0074B7;
    transform: translateX(4px); /* Reduced from 8px for mobile safety */
}

/* 14. Text Colors
----------------------------------------------------------------*/
.text-navy { color: #003B73; }
.text-royal { color: #0074B7; }
.text-grotto { color: #60A3D9; }
.text-baby { color: #BFD7ED; }

/* 15. Utilities - Mobile Scroll Safe
----------------------------------------------------------------*/
.body-lock-scroll {
    overflow: hidden !important;
    position: fixed !important;
    width: 100% !important;
}

/* Viewport width utilities for mobile */
.max-vw-100 {
    max-width: 100vw;
    overflow-x: hidden;
}

/* Grid safe for mobile */
.grid-safe {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
}

/* Text safe for mobile */
.text-safe {
    word-wrap: break-word;
    overflow-wrap: break-word;
    hyphens: auto;
}

/* 16. Hover Effects for Icons
----------------------------------------------------------------*/
.icon-hover {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

/* 17. Professional Typography
----------------------------------------------------------------*/
.section-title {
    color: #003B73;
    font-weight: 800;
    letter-spacing: -0.025em;
    line-height: 1.2;
}

.section-subtitle {
    color: #4b5563;
    font-weight: 500;
    letter-spacing: 0.025em;
}

/* 18. Loading Animation
----------------------------------------------------------------*/
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fade-in-up {
    animation: fadeInUp 0.8s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

/* 19. Contact Section
----------------------------------------------------------------*/
.contact-card {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.9) 0%, rgba(191, 215, 237, 0.05) 100%);
    backdrop-filter: blur(15px);
    border: 1px solid rgba(96, 163, 217, 0.1);
}

/* 20. Social Media Icons
----------------------------------------------------------------*/
.social-icon-hover {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.social-icon-hover:hover {
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 8px 25px rgba(96, 163, 217, 0.3);
}

.footer-social-icon {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.footer-social-icon:hover {
    transform: translateY(-2px) scale(1.1);
}

/* Social Links */
.social-link {
    display: block;
    text-decoration: none;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.social-link:hover {
    transform: translateY(-2px);
}

/* 21. Logo Styling
----------------------------------------------------------------*/
.nav-logo img {
    transition: transform 0.3s ease;
}

.nav-logo:hover img {
    transform: scale(1.05);
}

/* Services Section Logo */
.services-logo {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    filter: drop-shadow(0 4px 6px rgba(0, 116, 183, 0.1));
}

.services-logo-container {
    position: relative;
    display: inline-block;
    padding: 12px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, rgba(191, 215, 237, 0.1) 100%);
    backdrop-filter: blur(15px);
    border: 1px solid rgba(96, 163, 217, 0.2);
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(0, 116, 183, 0.1);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.services-logo-container:hover {
    transform: translateY(-4px) scale(1.05);
    box-shadow: 0 16px 48px rgba(0, 116, 183, 0.2);
    border-color: rgba(96, 163, 217, 0.4);
}

.services-logo-container:hover .services-logo {
    filter: drop-shadow(0 8px 16px rgba(0, 116, 183, 0.25));
}

.section-animate.is-visible .services-logo-container {
    animation: logoFadeInScale 0.8s ease-out 0.3s backwards;
}

@keyframes logoFadeInScale {
    from {
        opacity: 0;
        transform: scale(0.8) translateY(20px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.section-animate.is-visible .section-title {
    animation: titleSlideIn 0.8s ease-out 0.5s backwards;
}

.section-animate.is-visible .section-subtitle {
    animation: subtitleFadeIn 0.8s ease-out 0.7s backwards;
}

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

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

/* 22. FAQ Cards
----------------------------------------------------------------*/
.faq-card {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(96, 163, 217, 0.1);
}

.faq-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 24px rgba(0, 116, 183, 0.15);
    border-color: rgba(96, 163, 217, 0.2);
}

/* 23. Mobile Responsive Enhancements - Scroll Fix
----------------------------------------------------------------*/
@media (max-width: 768px) {
    /* Prevent horizontal scroll on mobile */
    body, html {
        overflow-x: hidden !important;
        max-width: 100vw;
    }
    
    .container {
        max-width: 100%;
        overflow-x: hidden;
        padding-left: 1rem;
        padding-right: 1rem;
    }
    
    /* Reduce animations that might cause scroll issues */
    .card-hover:hover {
        transform: translateY(-2px) scale(1.01); /* Reduced scale */
    }
    
    .mobile-nav-link:hover {
        transform: translateX(2px); /* Reduced movement */
    }
    
    .feature-card:hover {
        transform: translateY(-3px); /* Reduced movement */
    }
    
    /* Ensure sections don't overflow */
    section {
        overflow-x: hidden;
        width: 100%;
        max-width: 100vw;
    }
    
    /* Grid adjustments for mobile */
    .grid {
        width: 100%;
        overflow-x: hidden;
    }
    
    /* Text adjustments for mobile */
    .section-title {
        word-wrap: break-word;
        overflow-wrap: break-word;
    }
    
    /* Button adjustments */
    .btn-primary, .btn-secondary {
        width: auto;
        max-width: 100%;
        overflow: hidden;
    }
    
    /* Mobile menu width adjustment */
    #mobile-menu {
        max-width: 85vw; /* Prevent menu from being too wide */
    }
    
    /* Services logo container mobile fix */
    .services-logo-container {
        max-width: 100%;
        overflow: hidden;
        margin-bottom: 2rem;
        padding: 8px;
    }
    
    /* Form inputs mobile fix */
    .form-input {
        max-width: 100%;
        box-sizing: border-box;
        font-size: 16px; /* Prevents zoom on iOS */
        padding: 1rem;
    }
    
    .btn-primary, .btn-secondary {
        padding: 1rem 1.5rem;
        font-size: 1rem;
        width: 100%;
        justify-content: center;
    }
    
    .social-link .w-16 {
        width: 3rem;
        height: 3rem;
    }
    
    .social-link svg {
        width: 1.5rem;
        height: 1.5rem;
    }
    
    .faq-card {
        padding: 1.5rem;
    }
    
    .faq-card p {
        margin-left: 0;
        margin-top: 1rem;
    }
    
    .flex-shrink-0 {
        margin-right: 0;
        margin-bottom: 1rem;
    }
    
    .faq-card .flex {
        flex-direction: column;
        text-align: center;
    }
}

/* Extra small devices */
@media (max-width: 480px) {
    .container {
        padding-left: 0.75rem;
        padding-right: 0.75rem;
    }
    
    /* Reduce font sizes to prevent overflow */
    .section-title {
        font-size: 1.875rem !important;
        line-height: 1.2;
    }
    
    .section-subtitle {
        font-size: 1rem !important;
    }
    
    /* Reduce card padding */
    .card-hover {
        padding: 1.5rem !important;
    }
    
    /* Mobile menu width for very small screens */
    #mobile-menu {
        max-width: 90vw;
    }
    
    section {
        padding-top: 3rem;
        padding-bottom: 3rem;
    }
    
    .text-3xl {
        font-size: 1.875rem;
    }
    
    .grid.md\\:grid-cols-2 {
        gap: 1.5rem;
    }
    
    .bg-white, .bg-gradient-light {
        margin-bottom: 1.5rem;
    }
    
    .form-input {
        padding: 1rem;
    }
    
    .w-14.h-14 {
        width: 3rem;
        height: 3rem;
    }
    
    .w-16.h-16 {
        width: 3.5rem;
        height: 3.5rem;
    }
}

/* Large screen enhancements */
@media (min-width: 1024px) {
    .services-logo-container::before {
        content: '';
        position: absolute;
        top: -8px;
        left: -8px;
        right: -8px;
        bottom: -8px;
        background: linear-gradient(135deg, rgba(96, 163, 217, 0.1) 0%, transparent 50%);
        border-radius: 24px;
        z-index: -1;
        opacity: 0;
        transition: opacity 0.3s ease;
    }
    
    .services-logo-container:hover::before {
        opacity: 1;
    }
}