/* Custom CSS for Modern Buildora Digital Website */

/* CSS Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    line-height: 1.6;
    color: #4a4a4a;
    overflow-x: hidden;
}

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

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

::-webkit-scrollbar-thumb {
    background: #08a5ce;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #0891b2;
}

/* Navigation Link Hover Effects */
.nav-link {
    position: relative;
    overflow: hidden;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #08a5ce, #1de3e4);
    transition: width 0.3s ease;
}

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

/* Hero Section Styles */
.hero-bg-slider {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0;
    transition: opacity 2s ease-in-out;
}

.hero-slide.active {
    opacity: 1;
}

/* Floating Elements Animation */
.floating-element {
    animation: float 6s ease-in-out infinite;
}

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

/* Hero Button Effects */
.hero-btn {
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

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

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

.hero-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

/* Progress Bar Animation */
#progress-bar {
    position: relative;
    overflow: hidden;
}

#progress-bar::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    animation: shimmer 2s infinite;
}

@keyframes shimmer {
    0% { left: -100%; }
    100% { left: 100%; }
}

/* Month Card Hover Effects */
.month-card .group:hover {
    transform: translateY(-8px) scale(1.02);
}

.month-card .group {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Slideshow Styles */
.slideshow-container {
    position: relative;
    overflow: hidden;
}

.slideshow {
    position: relative;
    width: 100%;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.8s ease-in-out;
}

.slide.active {
    opacity: 1;
    position: relative;
}

.slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Slide Navigation */
.slide-nav {
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.slide-nav:hover {
    background: rgba(255, 255, 255, 0.4);
    transform: translateY(-50%) scale(1.1);
}

/* Slide Dots */
.slide-dots .dot {
    transition: all 0.3s ease;
}

.slide-dots .dot.active {
    background: white;
    transform: scale(1.2);
}

.slide-dots .dot:hover {
    background: rgba(255, 255, 255, 0.8);
    transform: scale(1.1);
}

/* CTA Button Effects */
.cta-btn {
    position: relative;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

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

.cta-btn:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

/* Contact Card Hover Effects */
.contact-card {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.contact-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.15);
}

/* Image Hover Effects */
img {
    transition: all 0.3s ease;
}

img:hover {
    transform: scale(1.05);
    filter: brightness(1.1);
}

/* Floating WhatsApp Button */
#whatsapp-float {
    animation: bounce 2s infinite;
}

#whatsapp-float:hover {
    animation: none;
}

@keyframes bounce {
    0%, 20%, 53%, 80%, 100% {
        transform: translate3d(0, 0, 0);
    }
    40%, 43% {
        transform: translate3d(0, -10px, 0);
    }
    70% {
        transform: translate3d(0, -5px, 0);
    }
    90% {
        transform: translate3d(0, -2px, 0);
    }
}

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

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

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

/* Loading Animation */
.loading {
    position: relative;
    overflow: hidden;
}

.loading::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    animation: loading 1.5s infinite;
}

@keyframes loading {
    0% { left: -100%; }
    100% { left: 100%; }
}

/* Smooth Transitions */
.smooth-transition {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Glow Effect */
.glow {
    box-shadow: 0 0 20px rgba(8, 165, 206, 0.3);
    transition: box-shadow 0.3s ease;
}

.glow:hover {
    box-shadow: 0 0 30px rgba(8, 165, 206, 0.5);
}

/* Text Gradient */
.text-gradient {
    background: linear-gradient(135deg, #08a5ce, #1de3e4);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Card Tilt Effect */
.card-tilt {
    transition: transform 0.3s ease;
}

.card-tilt:hover {
    transform: perspective(1000px) rotateX(5deg) rotateY(5deg);
}

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

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

/* Slide In Animations */
.slide-in-left {
    animation: slideInLeft 0.8s ease-out;
}

.slide-in-right {
    animation: slideInRight 0.8s ease-out;
}

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

@keyframes slideInRight {
    0% {
        opacity: 0;
        transform: translateX(50px);
    }
    100% {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Fade In Up Animation */
.fade-in-up {
    animation: fadeInUp 0.6s ease-out;
}

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

/* Bounce In Animation */
.bounce-in {
    animation: bounceIn 1s ease-out;
}

@keyframes bounceIn {
    0% {
        opacity: 0;
        transform: scale(0.3);
    }
    50% {
        opacity: 1;
        transform: scale(1.05);
    }
    70% {
        transform: scale(0.9);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}

/* Mobile Optimizations */
@media (max-width: 768px) {
    .hero-slide {
        background-attachment: scroll;
    }
    
    .floating-element {
        display: none;
    }
    
    .card-tilt:hover {
        transform: none;
    }
    
    img:hover {
        transform: none;
    }
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    .floating-element {
        animation: none;
    }
    
    #whatsapp-float {
        animation: none;
    }
}

/* High Contrast Mode */
@media (prefers-contrast: high) {
    .hero-slide::after {
        background: rgba(0, 0, 0, 0.8);
    }
    
    .text-gradient {
        -webkit-text-fill-color: #08a5ce;
        background: none;
    }
}

/* Print Styles */
@media print {
    .fixed,
    #whatsapp-float,
    .slide-nav,
    .slide-dots {
        display: none !important;
    }
    
    .hero-slide {
        background: none !important;
    }
    
    body {
        background: white !important;
        color: black !important;
    }
}

/* Focus Styles for Accessibility */
button:focus,
a:focus,
input:focus,
textarea:focus {
    outline: 2px solid #08a5ce;
    outline-offset: 2px;
}

/* Skip Link */
.skip-link {
    position: absolute;
    top: -40px;
    left: 6px;
    background: #08a5ce;
    color: white;
    padding: 8px;
    text-decoration: none;
    border-radius: 4px;
    z-index: 1000;
}

.skip-link:focus {
    top: 6px;
}

/* Loading State */
.loading-state {
    opacity: 0.6;
    pointer-events: none;
    position: relative;
}

.loading-state::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 2px solid #08a5ce;
    border-top: 2px solid transparent;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Error State */
.error-state {
    border: 2px solid #e02630;
    background: rgba(224, 38, 48, 0.1);
}

/* Success State */
.success-state {
    border: 2px solid #10b981;
    background: rgba(16, 185, 129, 0.1);
}

/* Custom Selection */
::selection {
    background: rgba(8, 165, 206, 0.3);
    color: #1f1f1f;
}

::-moz-selection {
    background: rgba(8, 165, 206, 0.3);
    color: #1f1f1f;
}

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

/* Performance Optimizations */
.will-change-transform {
    will-change: transform;
}

.will-change-opacity {
    will-change: opacity;
}

.gpu-accelerated {
    transform: translateZ(0);
    backface-visibility: hidden;
    perspective: 1000px;
}

/* Dark Mode Support (if needed in future) */
@media (prefers-color-scheme: dark) {
    /* Dark mode styles can be added here */
}

/* Container Queries (for modern browsers) */
@container (min-width: 768px) {
    .container-responsive {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 2rem;
    }
}

/* Modern CSS Features */
.backdrop-blur {
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.clip-path-polygon {
    clip-path: polygon(0 0, 100% 0, 100% 85%, 0 100%);
}

/* Intersection Observer Animations */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease-out;
}

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

/* Custom Properties for Dynamic Theming */
:root {
    --primary-hue: 195;
    --primary-saturation: 92%;
    --primary-lightness: 42%;
    --primary-color: hsl(var(--primary-hue), var(--primary-saturation), var(--primary-lightness));
    --primary-color-light: hsl(var(--primary-hue), var(--primary-saturation), 60%);
    --primary-color-dark: hsl(var(--primary-hue), var(--primary-saturation), 30%);
}

/* Utility Classes */
.text-shadow {
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.box-shadow-soft {
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

.box-shadow-medium {
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

.box-shadow-large {
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

.border-gradient {
    border: 2px solid transparent;
    background: linear-gradient(white, white) padding-box,
                linear-gradient(135deg, #08a5ce, #1de3e4) border-box;
}

/* Responsive Typography */
.responsive-text {
    font-size: clamp(1rem, 2.5vw, 2rem);
}

.responsive-heading {
    font-size: clamp(2rem, 5vw, 4rem);
}

/* Grid Layouts */
.auto-fit-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.auto-fill-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 1.5rem;
}

/* Flexbox Utilities */
.flex-center {
    display: flex;
    align-items: center;
    justify-content: center;
}

.flex-between {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.flex-around {
    display: flex;
    align-items: center;
    justify-content: space-around;
}

/* Aspect Ratio */
.aspect-ratio-16-9 {
    aspect-ratio: 16 / 9;
}

.aspect-ratio-4-3 {
    aspect-ratio: 4 / 3;
}

.aspect-ratio-1-1 {
    aspect-ratio: 1 / 1;
}

/* Modern Scrollbar for Firefox */
html {
    scrollbar-width: thin;
    scrollbar-color: #08a5ce #f1f1f1;
}

/* Smooth Focus Transitions */
*:focus {
    transition: outline 0.2s ease;
}

/* Enhanced Button States */
button, .btn {
    position: relative;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

button:active, .btn:active {
    transform: scale(0.98);
}

/* Modern Form Styles */
input, textarea, select {
    transition: all 0.3s ease;
    border-radius: 8px;
    border: 2px solid #e5e7eb;
    padding: 12px 16px;
    font-size: 16px;
}

input:focus, textarea:focus, select:focus {
    border-color: #08a5ce;
    box-shadow: 0 0 0 3px rgba(8, 165, 206, 0.1);
}

/* Improved Accessibility */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* High Performance Animations */
@keyframes optimizedFadeIn {
    0% {
        opacity: 0;
        transform: translate3d(0, 20px, 0);
    }
    100% {
        opacity: 1;
        transform: translate3d(0, 0, 0);
    }
}

.optimized-fade-in {
    animation: optimizedFadeIn 0.6s ease-out;
}

/* Container Queries Support */
.card-container {
    container-type: inline-size;
}

@container (min-width: 400px) {
    .card-responsive {
        display: flex;
        flex-direction: row;
        align-items: center;
    }
}

/* Modern CSS Grid */
.modern-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr));
    gap: clamp(1rem, 3vw, 2rem);
}

/* Enhanced Hover States */
.enhanced-hover {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.enhanced-hover:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

/* Optimized Images */
img {
    height: auto;
    max-width: 100%;
}

.lazy-image {
    opacity: 0;
    transition: opacity 0.3s;
}

.lazy-image.loaded {
    opacity: 1;
}

/* Modern Spacing */
.space-y-fluid > * + * {
    margin-top: clamp(1rem, 3vw, 2rem);
}

.space-x-fluid > * + * {
    margin-left: clamp(1rem, 3vw, 2rem);
}

/* Performance Optimizations */
.optimize-rendering {
    contain: layout style paint;
}

.optimize-animations {
    will-change: transform, opacity;
}

/* Final Responsive Adjustments */
@media (max-width: 640px) {
    .responsive-padding {
        padding-left: 1rem;
        padding-right: 1rem;
    }
    
    .responsive-text-size {
        font-size: 0.875rem;
    }
    
    .responsive-spacing {
        margin-bottom: 1rem;
    }
}

@media (min-width: 1024px) {
    .lg-enhanced-hover:hover {
        transform: translateY(-4px) scale(1.02);
    }
}

/* End of Custom CSS */

