/* Custom Fonts */
body {
    font-family: 'Inter', sans-serif;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Playfair Display', serif;
}

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

/* Hero Video Background - 60% width on right side */
.hero-video-container {
    position: absolute;
    top: 0;
    right: 0;
    left: auto;
    width: 60%;
    height: 100%;
    overflow: hidden;
    z-index: 1;
    pointer-events: none;
}

.hero-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    opacity: 1;
    visibility: visible;
}

/* Gradient Overlay - Left to Right Fade (starts from left edge of video) */
.hero-video-gradient {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        to right,
        rgba(240, 253, 250, 1) 0%,
        rgba(240, 253, 250, 0.95) 15%,
        rgba(240, 253, 250, 0.85) 30%,
        rgba(240, 253, 250, 0.7) 45%,
        rgba(240, 253, 250, 0.5) 60%,
        rgba(240, 253, 250, 0.25) 75%,
        rgba(240, 253, 250, 0.1) 90%,
        rgba(240, 253, 250, 0) 100%
    );
    z-index: 2;
    pointer-events: none;
}

/* Hero Shapes Container - Above video but transparent */
.hero-shapes-container {
    z-index: 2;
    pointer-events: none;
}

/* Hero Video Wrapper - Spacer for right side on desktop */
.hero-video-wrapper {
    position: relative;
    height: 100%;
    min-height: 500px;
}

/* Mobile Video Styles */
.hero-video-mobile {
    position: relative;
    z-index: 5;
    max-height: 400px;
    width: 100%;
    margin-top: 2rem;
}

.hero-video-mobile video {
    width: 100%;
    height: auto;
    max-height: 400px;
    object-fit: cover;
    border-radius: 1.5rem;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
}

/* Responsive: Show mobile video, hide desktop video container */
@media (max-width: 767px) {
    .hero-video-container {
        display: none !important;
    }
    
    .hero-video-gradient {
        display: none;
    }
    
    .hero-shapes-container {
        display: block;
    }
    
    .hero-video-mobile {
        display: block;
    }
}

/* Hide mobile video on desktop */
@media (min-width: 768px) {
    .hero-video-mobile {
        display: none;
    }
}

/* Desktop: Show video on right side (60% width) */
@media (min-width: 768px) {
    .hero-video-container {
        display: block;
        width: 60%;
        right: 0;
        left: auto;
    }
    
    /* Video covers the 60% container */
    .hero-video {
        width: 100%;
        height: 100%;
        object-fit: cover;
        object-position: center;
    }
    
    /* Gradient overlay for smooth transition */
    .hero-video-gradient {
        background: linear-gradient(
            to right,
            rgba(240, 253, 250, 1) 0%,
            rgba(240, 253, 250, 0.95) 15%,
            rgba(240, 253, 250, 0.85) 30%,
            rgba(240, 253, 250, 0.7) 45%,
            rgba(240, 253, 250, 0.5) 60%,
            rgba(240, 253, 250, 0.25) 75%,
            rgba(240, 253, 250, 0.1) 90%,
            rgba(240, 253, 250, 0) 100%
        );
    }
}

/* Custom Animations */
@keyframes blob {
    0%, 100% {
        transform: translate(0, 0) scale(1);
    }
    33% {
        transform: translate(30px, -50px) scale(1.1);
    }
    66% {
        transform: translate(-20px, 20px) scale(0.9);
    }
}

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

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

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

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

@keyframes pulse-glow {
    0%, 100% {
        box-shadow: 0 0 20px rgba(20, 184, 166, 0.3);
    }
    50% {
        box-shadow: 0 0 40px rgba(20, 184, 166, 0.6);
    }
}

/* Animation Classes */
.animate-blob {
    animation: blob 7s infinite;
}

.animation-delay-2000 {
    animation-delay: 2s;
}

.animation-delay-4000 {
    animation-delay: 4s;
}

.animation-delay-200 {
    animation-delay: 0.2s;
}

.animation-delay-400 {
    animation-delay: 0.4s;
}

.animation-delay-600 {
    animation-delay: 0.6s;
}

.animation-delay-800 {
    animation-delay: 0.8s;
}

.animation-delay-1000 {
    animation-delay: 1s;
}

.fade-in-up {
    animation: fadeInUp 1s ease-out;
}

.fade-in-left {
    animation: fadeInLeft 1s ease-out;
}

.fade-in-right {
    animation: fadeInRight 1s ease-out;
}

/* Floating Shapes - Full Width */
.shape-1 {
    position: absolute;
    top: 10%;
    left: 5%;
    width: 200px;
    height: 200px;
    background: linear-gradient(135deg, rgba(20, 184, 166, 0.3), rgba(167, 139, 250, 0.3));
    clip-path: polygon(50% 0%, 0% 100%, 100% 100%);
    animation: float 6s ease-in-out infinite;
    opacity: 0.4;
    z-index: 3;
}

.shape-2 {
    position: absolute;
    top: 60%;
    right: 10%;
    width: 150px;
    height: 150px;
    background: linear-gradient(135deg, rgba(255, 107, 107, 0.3), rgba(167, 139, 250, 0.3));
    clip-path: circle(50%);
    animation: float 8s ease-in-out infinite;
    animation-delay: 1s;
    opacity: 0.4;
    z-index: 3;
}

.shape-3 {
    position: absolute;
    bottom: 20%;
    left: 20%;
    width: 180px;
    height: 180px;
    background: linear-gradient(135deg, rgba(20, 184, 166, 0.3), rgba(255, 107, 107, 0.3));
    clip-path: polygon(30% 0%, 70% 0%, 100% 30%, 100% 70%, 70% 100%, 30% 100%, 0% 70%, 0% 30%);
    animation: float 7s ease-in-out infinite;
    animation-delay: 2s;
    opacity: 0.4;
    z-index: 3;
}

/* Button Styles */
.btn-primary {
    background: linear-gradient(135deg, #14b8a6, #8b5cf6, #ec4899);
    background-size: 200% 200%;
    animation: gradient-shift 3s ease infinite;
    position: relative;
    overflow: hidden;
}

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

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

.btn-secondary {
    background: white;
    transition: all 0.3s ease;
}

.btn-secondary:hover {
    background: linear-gradient(135deg, #14b8a6, #8b5cf6);
    color: white !important;
    border-color: transparent !important;
}

@keyframes gradient-shift {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

/* Section Dividers - Creative Shapes */
.section-divider-top {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100px;
    background: linear-gradient(to bottom, transparent, white);
    clip-path: polygon(0 0, 100% 0, 100% 60%, 50% 80%, 0 60%);
}

.section-divider-bottom {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100px;
    background: linear-gradient(to top, transparent, white);
    clip-path: polygon(0 40%, 50% 20%, 100% 40%, 100% 100%, 0 100%);
}

.section-divider-top-inverse {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100px;
    background: linear-gradient(to bottom, transparent, #f0fdfa);
    clip-path: polygon(0 0, 100% 0, 100% 40%, 50% 20%, 0 40%);
}

/* About Section Image Container */
.about-image-container {
    position: relative;
    perspective: 1000px;
}

.about-image-placeholder {
    position: relative;
    width: 100%;
    height: 500px;
    border-radius: 2rem;
    overflow: hidden;
    transform: rotateY(-5deg) rotateX(5deg);
    transition: transform 0.3s ease;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
    background: linear-gradient(135deg, #f0fdfa, #faf5ff);
}

.about-image-container:hover .about-image-placeholder {
    transform: rotateY(0deg) rotateX(0deg) scale(1.02);
}

.about-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.about-image-container:hover .about-image {
    transform: scale(1.05);
}

.about-image-fallback {
    display: none;
}

/* Show fallback if image fails to load */
.about-image[src=""],
.about-image:not([src]) {
    display: none;
}

.about-image[src=""] ~ .about-image-fallback,
.about-image:not([src]) ~ .about-image-fallback {
    display: flex;
}

/* Service Cards - Glassmorphism Effect */
.service-card {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 2rem;
    padding: 2.5rem;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(20, 184, 166, 0.1), rgba(167, 139, 250, 0.1));
    opacity: 0;
    transition: opacity 0.4s ease;
}

.service-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 20px 60px rgba(20, 184, 166, 0.3);
    border-color: rgba(20, 184, 166, 0.5);
}

.service-card:hover::before {
    opacity: 1;
}

.service-icon {
    width: 80px;
    height: 80px;
    border-radius: 1.5rem;
    background: linear-gradient(135deg, #14b8a6, #8b5cf6);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    margin-bottom: 1.5rem;
    transition: all 0.4s ease;
    box-shadow: 0 10px 30px rgba(20, 184, 166, 0.3);
}

.service-card:hover .service-icon {
    transform: rotate(5deg) scale(1.1);
    box-shadow: 0 15px 40px rgba(20, 184, 166, 0.5);
}

/* Badge Styles */
.badge {
    display: inline-block;
    padding: 0.5rem 1.25rem;
    background: linear-gradient(135deg, rgba(20, 184, 166, 0.1), rgba(167, 139, 250, 0.1));
    border: 1px solid rgba(20, 184, 166, 0.3);
    border-radius: 2rem;
    color: #14b8a6;
    font-weight: 500;
    font-size: 0.875rem;
    transition: all 0.3s ease;
}

.badge:hover {
    background: linear-gradient(135deg, #14b8a6, #8b5cf6);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(20, 184, 166, 0.3);
}

/* Form Styles */
.form-container {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 2rem;
    padding: 2.5rem;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.form-container:hover {
    box-shadow: 0 25px 70px rgba(20, 184, 166, 0.2);
    transform: translateY(-5px);
}

.form-input {
    transition: all 0.3s ease;
    background: white;
}

.form-input:focus {
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(20, 184, 166, 0.2);
}

/* Navigation Styles */
#navbar {
    backdrop-filter: blur(10px);
    background: rgba(255, 255, 255, 0.9);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

#navbar.scrolled {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

/* Scroll Animations */
.fade-in-up,
.fade-in-left,
.fade-in-right {
    opacity: 0;
}

.fade-in-up.visible,
.fade-in-left.visible,
.fade-in-right.visible {
    animation: fadeInUp 0.8s ease-out forwards;
}

.fade-in-left.visible {
    animation: fadeInLeft 0.8s ease-out forwards;
}

.fade-in-right.visible {
    animation: fadeInRight 0.8s ease-out forwards;
}

/* Modal Styles */
#modal {
    display: flex;
}

#modal.hidden {
    display: none;
}

#modal > div {
    animation: fadeInUp 0.3s ease-out;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .shape-1,
    .shape-2,
    .shape-3 {
        display: none;
    }
    
    .about-image-placeholder {
        height: 400px;
    }
    
    .service-card {
        padding: 2rem;
    }
    
    .form-container {
        padding: 2rem;
    }
}

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

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

::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, #14b8a6, #8b5cf6);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, #0d9488, #7c3aed);
}

/* Additional Creative Elements */
.service-card::after {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(20, 184, 166, 0.1) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.4s ease;
}

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

/* Loading States */
.form-input:invalid:not(:placeholder-shown) {
    border-color: #ef4444;
}

.form-input:valid:not(:placeholder-shown) {
    border-color: #10b981;
}

/* Smooth Transitions */
* {
    transition-property: color, background-color, border-color, transform, opacity, box-shadow;
    transition-duration: 0.2s;
    transition-timing-function: ease-in-out;
}

/* Google Maps in Contact Section */
.contact-map-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    overflow: hidden;
}

.contact-map-iframe {
    width: 100%;
    height: 100%;
    border: none;
    pointer-events: none;
}

.contact-map-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        to bottom,
        rgba(240, 253, 250, 0.7) 0%,
        rgba(240, 253, 250, 0.5) 50%,
        rgba(240, 253, 250, 0.7) 100%
    );
    z-index: 1;
    pointer-events: none;
}

/* Address Overlay Box */
.address-overlay-box {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
    position: relative;
    z-index: 10;
}

.address-overlay-box:hover {
    background: rgba(255, 255, 255, 0.95);
    transform: translateY(-5px);
    transition: all 0.3s ease;
}

/* Hero Video Play Button - Desktop only */
.hero-video-play-button {
    position: absolute;
    top: 50%;
    right: 20%;
    transform: translate(-50%, -50%);
    z-index: 100 !important;
    cursor: pointer;
    transition: all 0.3s ease;
    pointer-events: auto !important;
    display: none; /* Hidden by default, shown on desktop */
    text-decoration: none;
    width: 80px;
    height: 80px;
}

.hero-video-play-button:hover {
    transform: translate(-50%, -50%) scale(1.1);
}

.play-button-circle {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(20, 184, 166, 0.9), rgba(139, 92, 246, 0.9));
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.hero-video-play-button:hover .play-button-circle {
    background: linear-gradient(135deg, rgba(20, 184, 166, 1), rgba(139, 92, 246, 1));
    box-shadow: 0 15px 40px rgba(20, 184, 166, 0.5);
    transform: scale(1.1);
}

.play-icon {
    width: 32px;
    height: 32px;
    color: white;
    margin-left: 4px;
}

/* Mobile Play Button - Center of mobile video */
.hero-video-play-button-mobile {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 10 !important;
    cursor: pointer;
    transition: all 0.3s ease;
    pointer-events: auto !important;
    display: none; /* Hidden by default, shown on mobile */
    text-decoration: none;
    width: 80px;
    height: 80px;
}

.hero-video-play-button-mobile:hover {
    transform: translate(-50%, -50%) scale(1.1);
}

.hero-video-play-button-mobile .play-button-circle {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(20, 184, 166, 0.9), rgba(139, 92, 246, 0.9));
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.hero-video-play-button-mobile:hover .play-button-circle {
    background: linear-gradient(135deg, rgba(20, 184, 166, 1), rgba(139, 92, 246, 1));
    box-shadow: 0 15px 40px rgba(20, 184, 166, 0.5);
    transform: scale(1.1);
}

/* Hide desktop play button on mobile, hide mobile play button on desktop */
@media (max-width: 767px) {
    .hero-video-play-button {
        display: none !important;
        visibility: hidden !important;
    }
    
    .hero-video-play-button-mobile {
        display: block;
    }
}

@media (min-width: 768px) {
    .hero-video-play-button-mobile {
        display: none !important;
        visibility: hidden !important;
    }
    
    .hero-video-play-button {
        display: block;
    }
}

/* Print Styles */
@media print {
    .shape-1,
    .shape-2,
    .shape-3,
    nav,
    footer {
        display: none;
    }
}

