/* Hero Section Styles */
.hero-section {
    width: 100%;
    height: 100vh;
    position: relative;
    margin-top: 0;
    overflow: hidden;
}

#heroCarousel {
    width: 100%;
    height: 100%;
    position: relative;
}

.carousel-inner {
    height: 100%;
}

.carousel-item {
    height: 100%;
    transition: transform 1.2s ease-in-out;
}

.hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

/* Custom indicators */
.carousel-indicators {
    bottom: 30px;
    margin-bottom: 0;
    z-index: 15;
}

.carousel-indicators button {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.5);
    border: 2px solid transparent;
    margin: 0 6px;
    transition: all 0.3s ease;
}

.carousel-indicators button.active {
    background-color: white;
    transform: scale(1.2);
}

.carousel-indicators button:hover {
    background-color: rgba(255, 255, 255, 0.8);
    transform: scale(1.1);
}

.hero-image::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, rgba(0, 0, 0, 0.7) 0%, rgba(0, 0, 0, 0.4) 30%, rgba(0, 0, 0, 0) 100%);
}

@keyframes slideIn {
    from {
        transform: translateX(-100%);
        opacity: 0.5;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes contentAppear {
    from {
        opacity: 0;
        transform: translateY(15px) scale(0.98);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 25%;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    padding-top: 20vh;
    background: rgba(60, 60, 60, 0.4);
    backdrop-filter: blur(12px);
    border-right: 1px solid rgba(255, 255, 255, 0.3);
    animation: slideIn 1s ease-out forwards;
}

.hero-content {
    color: white;
    text-align: center;
    margin-bottom: 4rem;
    animation: contentAppear 0.7s ease-out 0.4s both;
}

.hero-content h1 {
    font-size: 2.1rem;
    font-weight: 650;
    margin-bottom: 1.5rem;
    color: white;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.hero-content p {
    font-size: 1.1rem;
    line-height: 1.6;
    color: white;
    margin-bottom: 0;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

.hero-cta {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    align-items: center;
    width: 100%;
    animation: contentAppear 0.7s ease-out 0.6s both;
}

.cta-text {
    font-size: 1.5rem;
    font-weight: 500;
    margin-bottom: 0.25rem;
    color: white;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

.cta-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 1.2rem;
    padding: 1.1rem 2rem;
    border-radius: 12px;
    color: white;
    text-decoration: none;
    font-weight: 500;
    font-size: 1.15rem;
    position: relative;
    transition: all 0.35s cubic-bezier(0.25, 1, 0.5, 1);
    margin-right: 0;
    margin-bottom: 15px;
    width: 250px;
    overflow: hidden;
    z-index: 1;
    letter-spacing: 0.2px;
}

.cta-button:last-child {
    margin-bottom: 0;
}

.button-text {
    position: relative;
    z-index: 2;
    transition: transform 0.35s ease;
    flex: 1;
    text-align: center;
}

.button-icon {
    position: relative;
    font-size: 1.1rem;
    z-index: 2;
    transition: all 0.35s ease;
    opacity: 0.9;
    width: 20px;
    text-align: center;
}

/* First CTA button (primary) */
.cta-button-first {
    background: #333;
    border: none;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25), 
                inset 0 1px 1px rgba(255, 255, 255, 0.15);
}

.cta-button-first::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #3a3a3a;
    opacity: 0;
    transition: opacity 0.35s ease;
    z-index: -1;
}

.cta-button-first:hover {
    transform: translateY(-6px) scale(1.02);
    background: #555;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.35), 
                inset 0 1px 1px rgba(255, 255, 255, 0.2);
}

.cta-button-first:hover::before {
    opacity: 1;
}

.cta-button-first::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 70%;
    height: 100%;
    background: linear-gradient(90deg, 
                rgba(255,255,255,0) 0%, 
                rgba(255,255,255,0.2) 50%, 
                rgba(255,255,255,0) 100%);
    transform: skewX(-25deg);
    transition: left 0.75s ease;
}

.cta-button-first:hover::after {
    left: 150%;
}

/* Second CTA button (secondary) */
.cta-button-second {
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.cta-button-second::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, 
                rgba(255, 255, 255, 0.1) 0%, 
                rgba(255, 255, 255, 0.15) 50%, 
                rgba(255, 255, 255, 0.1) 100%);
    opacity: 0;
    transition: opacity 0.35s ease;
    z-index: -1;
}

.cta-button-second:hover {
    transform: translateY(-6px) scale(1.02);
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.5);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.cta-button-second:hover::before {
    opacity: 1;
}

.cta-button:hover .button-text {
    transform: translateX(-4px);
}

.cta-button:hover .button-icon {
    transform: translateX(4px);
    opacity: 1;
}

/* Third CTA button (services) */
.cta-button-services {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.4);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.cta-button-services::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, 
                rgba(255, 255, 255, 0.2) 0%, 
                rgba(255, 255, 255, 0.25) 50%, 
                rgba(255, 255, 255, 0.2) 100%);
    opacity: 0;
    transition: opacity 0.35s ease;
    z-index: -1;
}

.cta-button-services:hover {
    transform: translateY(-6px) scale(1.02);
    background: rgba(255, 255, 255, 0.25);
    border-color: rgba(255, 255, 255, 0.6);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.cta-button-services:hover::before {
    opacity: 1;
}

.cta-button-services::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 70%;
    height: 100%;
    background: linear-gradient(90deg, 
                rgba(255,255,255,0) 0%, 
                rgba(255,255,255,0.15) 50%, 
                rgba(255,255,255,0) 100%);
    transform: skewX(-25deg);
    transition: left 0.75s ease;
}

.cta-button-services:hover::after {
    left: 150%;
}

/* Pulsing effect for primary button */
@keyframes subtle-pulse {
    0% {
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15), 
                    inset 0 1px 1px rgba(255, 255, 255, 0.15);
    }
    50% {
        box-shadow: 0 4px 25px rgba(0, 0, 0, 0.3), 
                    inset 0 1px 1px rgba(255, 255, 255, 0.15);
    }
    100% {
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15), 
                    inset 0 1px 1px rgba(255, 255, 255, 0.15);
    }
}

.cta-button-first {
    animation: subtle-pulse 2.5s infinite;
}

/* Reviews section */
.reviews-section {
    background-color: #f8f9fa;
    padding: 4rem 0;
    overflow: hidden;
}

.reviews-carousel {
    position: relative;
    width: 100%;
    overflow: hidden;
}

.reviews-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    padding: 1rem;
    opacity: 0;
    transform: translateX(100%);
    position: absolute;
    width: 100%;
    transition: all 0.5s ease-in-out;
}

.reviews-container.active {
    opacity: 1;
    transform: translateX(0);
    position: relative;
}

.reviews-indicators {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 2rem;
}

.reviews-indicators .indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: #ddd;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 0;
}

.reviews-indicators .indicator.active {
    background-color: #333;
    transform: scale(1.2);
}

.reviews-indicators .indicator:hover {
    background-color: #666;
}

.review-card {
    background: white;
    border-radius: 15px;
    padding: 2rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
    position: relative;
    overflow: hidden;
}

.review-card::before {
    content: '"';
    position: absolute;
    top: -20px;
    left: 20px;
    font-size: 120px;
    color: rgba(0, 0, 0, 0.05);
    font-family: Georgia, serif;
}

.review-card:hover {
    transform: translateY(-5px);
}

.review-content {
    position: relative;
    z-index: 1;
}

.stars {
    color: #ffd700;
    font-size: 1.2rem;
}

.review-text {
    font-size: 1.1rem;
    line-height: 1.6;
    color: #666;
    margin-bottom: 0;
    font-style: italic;
}

.review-author {
    border-top: 1px solid #eee;
    margin-top: 1.5rem;
    padding-top: 1rem;
}

.review-author h4 {
    color: #333;
    margin-bottom: 0.25rem;
    font-size: 1.1rem;
}

.review-author p {
    color: #666;
    font-size: 0.9rem;
    margin: 0;
}

.hero-section .carousel-item img {
    -webkit-user-drag: none;
    -khtml-user-drag: none;
    -moz-user-drag: none;
    -o-user-drag: none;
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
}

/* Media Queries */
@media (max-width: 992px) {
    .reviews-container {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .hero-section {
        height: 100vh;
    }
    
    .carousel-indicators {
        bottom: 20px;
    }
    
    .carousel-indicators button {
        width: 10px;
        height: 10px;
        margin: 0 5px;
    }
    
    .hero-overlay {
        width: 100%;
        background: linear-gradient(to bottom, rgba(0, 0, 0, 0.7) 0%, rgba(0, 0, 0, 0.5) 60%, rgba(0, 0, 0, 0.3) 100%);
        padding: 1.5rem;
        padding-top: 30vh;
        justify-content: center;
        align-items: center;
        text-align: center;
        backdrop-filter: blur(5px);
        border-right: none;
    }
    
    .hero-content {
        text-align: center;
        margin-bottom: 2rem;
        max-width: 90%;
    }
    
    .hero-content h1 {
        font-size: 1.8rem;
    }
    
    .hero-content p {
        font-size: 1rem;
    }

    .hero-cta {
        align-items: center;
    }

    .cta-text {
        font-size: 1.3rem;
        text-align: center;
    }

    .cta-button {
        width: 280px;
        margin-right: 0;
        margin-bottom: 12px;
        padding: 0.9rem 1.6rem;
        font-size: 1.05rem;
    }
    
    .reviews-container {
        grid-template-columns: 1fr;
    }
    
    .reviews-section {
        padding: 3rem 0;
    }
}

/* Add smaller screen sizes for even better mobile responsiveness */
@media (max-width: 576px) {
    .hero-overlay {
        padding-top: 25vh;
    }
    
    .hero-content {
        max-width: 100%;
        margin-bottom: 1.5rem;
    }
    
    .hero-content h1 {
        font-size: 1.6rem;
        margin-bottom: 1rem;
    }
    
    .hero-content p {
        font-size: 0.95rem;
    }
    
    .cta-button {
        width: 240px;
        padding: 0.8rem 1.4rem;
        font-size: 1rem;
        margin-bottom: 10px;
    }
    
    .button-icon {
        font-size: 1rem;
    }
}

/* Add special handling for very small screens */
@media (max-width: 380px) {
    .hero-overlay {
        padding-top: 15vh;
    }
    
    .hero-content h1 {
        font-size: 1.4rem;
    }
    
    .hero-content p {
        display: none; /* Hide the paragraph on very small screens */
    }
    
    .cta-button {
        width: 220px;
        padding: 0.7rem 1.2rem;
        margin-bottom: 8px;
    }
}

/* Pages Preview Section */
.pages-preview {
    background-color: #f9f9f9;
    padding: 5rem 0;
    position: relative;
}

.pages-preview::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(245, 245, 245, 0.9) 0%, rgba(250, 250, 250, 0.9) 100%);
    z-index: 0;
}

.pages-preview .container {
    position: relative;
    z-index: 1;
}

.preview-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 30px rgba(0,0,0,0.08);
    transition: all 0.4s cubic-bezier(0.25, 1, 0.5, 1);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.preview-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.15);
}

.preview-card-image {
    position: relative;
    height: 260px;
    overflow: hidden;
}

.preview-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 1.2s ease;
}

.preview-card:hover .preview-card-image img {
    transform: scale(1.05);
}

.overlay-gradient {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 60%;
    background: linear-gradient(to top, rgba(0,0,0,0.7) 0%, rgba(0,0,0,0) 100%);
    z-index: 1;
}

.preview-card-content {
    padding: 1.8rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.preview-card-content h3 {
    color: #333;
    font-size: 1.5rem;
    margin-bottom: 1rem;
    position: relative;
    padding-bottom: 0.8rem;
}

.preview-card-content h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 2px;
    background-color: #333;
}

.preview-card-content p {
    color: #666;
    margin-bottom: 1.5rem;
    line-height: 1.6;
    flex-grow: 1;
}

.preview-link {
    display: inline-flex;
    align-items: center;
    color: #333;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    margin-top: auto;
}

.preview-link span {
    margin-right: 10px;
    position: relative;
}

.preview-link span::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 1px;
    background-color: #333;
    transition: width 0.3s ease;
}

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

.preview-link i {
    transition: transform 0.3s ease;
}

.preview-link:hover {
    color: #333;
}

.preview-link:hover i {
    transform: translateX(5px);
}

@media (max-width: 768px) {
    .pages-preview {
        padding: 3rem 0;
    }
    
    .preview-card {
        margin-bottom: 2rem;
    }
    
    .preview-card-image {
        height: 220px;
    }
}

/* Why Choose Us Section */
.why-choose-us {
    background-color: #fff;
    padding: 5rem 0;
    position: relative;
}

.why-choose-us::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #f9f9f9 0%, #ffffff 100%);
    z-index: 0;
}

.why-choose-us .container {
    position: relative;
    z-index: 1;
}

.advantage-card {
    background: white;
    border-radius: 12px;
    padding: 3rem 2.2rem;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    transition: all 0.4s ease;
    height: 100%;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.advantage-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 5px;
    height: 0;
    background: linear-gradient(to bottom, #333 0%, #666 100%);
    transition: height 0.5s ease;
}

.advantage-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.1);
}

.advantage-card:hover::before {
    height: 100%;
}

.advantage-icon {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    background: #f8f8f8;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.2rem;
    color: #333;
    margin-bottom: 1.8rem;
    position: relative;
    transition: all 0.3s ease;
}

.advantage-card:hover .advantage-icon {
    background: #333;
    color: white;
    transform: scale(1.1);
}

.advantage-card h3 {
    color: #333;
    font-size: 1.3rem;
    margin-bottom: 1rem;
    position: relative;
    font-weight: 600;
}

.advantage-card p {
    color: #666;
    line-height: 1.7;
    font-size: 0.95rem;
}

@media (max-width: 768px) {
    .why-choose-us {
        padding: 3rem 0;
    }
    
    .advantage-card {
        margin-bottom: 1.5rem;
        padding: 1.8rem 1.5rem;
    }
    
    .advantage-icon {
        width: 70px;
        height: 70px;
        font-size: 1.8rem;
    }
}

/* Hero image mobile optimization - make sure images display well */
.carousel-item .hero-image {
    object-position: right center;
    object-fit: cover;
}

@media (max-width: 768px) {
    .carousel-item .hero-image {
        object-position: center right; /* Focus on right side of images for better composition on mobile */
    }
    
    /* Optimize carousel image appearance on mobile */
    .hero-image::after {
        background: linear-gradient(to bottom, 
                    rgba(0, 0, 0, 0.4) 0%, 
                    rgba(0, 0, 0, 0.2) 50%, 
                    rgba(0, 0, 0, 0) 100%);
    }
    
    /* Make CTA buttons more prominent and easier to tap */
    .cta-button {
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    }
    
    .cta-button-first {
        animation: subtle-pulse 3s infinite; /* Slightly slower animation for better visibility */
    }
    
    /* Add space between buttons for easier tapping */
    .hero-cta {
        gap: 0.6rem;
    }
}

/* Mobile Hero Section Optimization */
@media (max-width: 767px) {
    /* Hide carousel indicators and controls on mobile */
    .carousel-indicators, 
    .carousel-control-prev, 
    .carousel-control-next {
        display: none !important;
    }
    
    /* On mobile, always show the first slide and hide others */
    .carousel-inner .carousel-item:not(:first-child) {
        display: none !important;
    }
    
    /* Ensure the first slide is always visible on mobile */
    .carousel-inner .carousel-item:first-child {
        display: block !important;
    }
    
    /* Optimize hero image for mobile */
    .hero-image {
        height: 100vh;
        object-position: center;
        object-fit: cover;
    }
    
    /* Adjust hero overlay for mobile */
    .hero-overlay {
        background: linear-gradient(to bottom, rgba(0,0,0,0), rgba(0,0,0,0.7) 50%);
        padding: 20px;
        text-align: center;
        position: absolute;
        bottom: 0;
        top: auto;
        height: auto;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: flex-end;
        width: 100%;
    }
    
    /* Hide or minimize the content text on mobile */
    .hero-content {
        max-width: 100%;
        margin-bottom: 15px;
    }
    
    .hero-content h1 {
        font-size: 24px;
        margin-bottom: 10px;
        text-shadow: 1px 1px 3px rgba(0,0,0,0.8);
    }
    
    .hero-content p {
        display: none; /* Hide description on mobile */
    }
    
    /* Optimize CTA buttons for mobile */
    .hero-cta {
        display: flex;
        flex-direction: column;
        align-items: center;
        width: 100%;
        gap: 10px;
        margin-bottom: 20px;
    }
    
    .cta-button {
        width: 100%;
        max-width: 250px;
        padding: 12px 15px;
        font-size: 14px;
        margin: 0;
        text-shadow: none;
        box-shadow: 0 2px 5px rgba(0,0,0,0.3);
        border-radius: 50px;
        backdrop-filter: blur(5px);
    }
    
    .cta-button-first {
        background-color: rgba(255, 255, 255, 0.9);
        color: #333;
    }
    
    .cta-button-services, 
    .cta-button-second {
        background-color: rgba(0, 0, 0, 0.7);
        color: white;
    }
    
    .button-icon {
        font-size: 16px;
    }
    
    /* Make hero section fit viewport */
    .hero-section {
        height: 100vh;
        position: relative;
        overflow: hidden;
        max-height: -webkit-fill-available; /* Fix for Safari mobile */
    }
    
    /* Disable carousel functionality on mobile */
    #heroCarousel {
        touch-action: manipulation;
    }
    
    /* Force carousel to not slide on mobile */
    #heroCarousel.carousel {
        pointer-events: none;
    }
    
    /* Additional performance optimizations for mobile */
    .carousel {
        will-change: transform;
        backface-visibility: hidden;
    }
    
    /* Improve performance for mobile browsers */
    .carousel-item .hero-image {
        transform: translateZ(0); /* Hardware acceleration */
    }
    
    /* Enhance image on mobile */
    .carousel-item:first-child .hero-image {
        height: 100vh;
        object-position: 65% center; /* Focus slightly to the right */
    }
    
    /* Add overlay gradient */
    .carousel-item:first-child::after {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: linear-gradient(to bottom, rgba(0,0,0,0.1), rgba(0,0,0,0.5));
        pointer-events: none;
    }
    
    /* Make buttons more touchable */
    .cta-button {
        padding: 14px 18px;
    }
    
    .cta-button-first {
        margin-bottom: 5px;
    }
    
    .hero-cta {
        gap: 0.6rem;
    }
}

/* Additional rules for mobile using the JS-applied class */
.is-mobile-view #heroCarousel {
    height: 100vh !important;
    overflow: hidden !important;
}

.is-mobile-view #heroCarousel .carousel-inner {
    height: 100% !important;
}

.is-mobile-view #heroCarousel .carousel-item {
    transition: none !important; /* Disable all transitions */
}

.is-mobile-view #heroCarousel .carousel-item:not(.active) {
    display: none !important;
    opacity: 0 !important;
    visibility: hidden !important;
}

.is-mobile-view #heroCarousel .carousel-item.active {
    display: block !important;
    opacity: 1 !important;
    visibility: visible !important;
}

/* Smaller mobile screens */
@media (max-width: 380px) {
    .hero-content h1 {
        font-size: 20px;
    }
    
    .cta-button {
        padding: 10px 15px;
        font-size: 13px;
    }
} 