/* AOS Animation Library */
@import url('https://unpkg.com/aos@2.3.1/dist/aos.css');

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: #333;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Navigation */
.navbar {
    background: white;
    padding: 1rem 0;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 9999;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    justify-content: center;
}

.logo a {
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
}

.logo-img {
    height: 40px;
    width: auto;
    max-width: 200px;
    object-fit: contain;
}

.footer-logo {
    background: white;
    padding: 8px 12px;
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.nav-links {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.nav-links a {
    color: #1e3a5f;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.nav-links a:hover {
    color: #ff8c00;
}

.cta-button {
    background: #ff8c00;
    padding: 0.5rem 1.5rem;
    border-radius: 25px;
    color: white !important;
    transition: background 0.3s ease;
}

.cta-button:hover {
    background: #e67e00;
}

.language-toggle {
    background: transparent;
    border: 2px solid #ff8c00;
    color: #ff8c00;
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-left: 1rem;
}

.language-toggle:hover {
    background: #ff8c00;
    color: white;
    transform: translateY(-1px);
}

.mobile-menu {
    display: none;
    color: #1e3a5f;
    font-size: 1.5rem;
    cursor: pointer;
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, rgba(30, 58, 95, 0.85) 0%, rgba(44, 82, 130, 0.85) 100%), 
                url('https://images.unsplash.com/photo-1497366754035-f200968a6e72?ixlib=rb-4.0.3&auto=format&fit=crop&w=1920&q=80');
    background-size: cover;
    background-position: center;
    /* Changed background-attachment from fixed to scroll to fix scroll issue */
    background-attachment: scroll;
    color: white;
    padding: 120px 0 80px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero-fullscreen {
    height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, rgba(30, 58, 95, 0.1), rgba(255, 140, 0, 0.05));
    animation: gradientShift 8s ease-in-out infinite;
    z-index: 1;
}

@keyframes gradientShift {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.8; }
}

.scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.scroll-indicator.hidden {
    opacity: 0;
    pointer-events: none;
}

.scroll-arrow {
    width: 30px;
    height: 50px;
    border: 2px solid white;
    border-radius: 15px;
    position: relative;
}

.scroll-arrow::before {
    content: '';
    position: absolute;
    top: 8px;
    left: 50%;
    width: 6px;
    height: 6px;
    background: white;
    border-radius: 50%;
    transform: translateX(-50%);
    animation: scrollIndicator 2s infinite;
}

@keyframes scrollIndicator {
    0% { transform: translate(-50%, 0); opacity: 1; }
    100% { transform: translate(-50%, 20px); opacity: 0; }
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(30, 58, 95, 0.1);
    backdrop-filter: blur(1px);
}

.hero .container {
    position: relative;
    z-index: 2;
}

.hero h1 {
    font-size: 4rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    background: linear-gradient(135deg, #ffffff, #f0f8ff, #ff8c00);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: titleGlow 3s ease-in-out infinite alternate;
}

.hero p {
    font-size: 1.3rem;
    margin-bottom: 2rem;
    opacity: 0.9;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    animation: fadeInUp 1s ease-out 0.3s both;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(15px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes titleGlow {
    from { text-shadow: 0 0 20px rgba(255, 255, 255, 0.5); }
    to { text-shadow: 0 0 30px rgba(255, 140, 0, 0.8), 0 0 40px rgba(255, 140, 0, 0.6); }
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-10px);
    }
}

.hero .cta-buttons {
    animation: fadeInUp 1s ease-out 0.6s both;
}

.cta-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.primary-button, .secondary-button {
    padding: 1rem 2rem;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.primary-button {
    background: #ff8c00;
    color: white;
}

.primary-button:hover {
    background: #e67e00;
    transform: translateY(-2px);
}

.secondary-button {
    background: transparent;
    color: white;
    border-color: white;
}

.secondary-button:hover {
    background: white;
    color: #1e3a5f;
}

/* Services Section */
.services {
    padding: 80px 0;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    position: relative;
    /* Changed background-attachment from fixed to scroll to fix scroll issue */
    background-attachment: scroll;
    overflow: hidden;
}

.button-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    flex-grow: 1;
    /* Changed flex-direction from column to row for horizontal centering */
    flex-direction: row;
    /* Set fixed min-height to align buttons horizontally */
    min-height: 60px;
    /* Set fixed width to align buttons horizontally */
    width: 200px;
    /* Remove margin auto to align buttons horizontally */
    margin: 0;
    align-self: center;
}

.learn-more {
    color: #ff8c00;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    padding: 0.5rem 1rem;
    border-radius: 25px;
    border: 2px solid #ff8c00;
    display: block;
    width: 100%;
    max-width: 200px;
    margin: 0 auto;
    height: 40px;
    line-height: 40px;
    text-align: center;
    align-self: stretch;
}

.services::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('https://images.unsplash.com/photo-1497366754035-f200968a6e72?ixlib=rb-4.0.3&auto=format&fit=crop&w=1920&q=80');
    background-size: cover;
    background-position: center;
    opacity: 0.05;
    z-index: 1;
}

.services .container {
    position: relative;
    z-index: 2;
}

.services h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: #1e3a5f;
    position: relative;
}

.services h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, #ff8c00, #e67e00);
    border-radius: 2px;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    /* Align items to start to align buttons horizontally */
    align-items: start;
}

.service-card {
    background: white;
    padding: 2.5rem;
    border-radius: 20px;
    text-align: center;
    box-shadow: 0 15px 35px rgba(0,0,0,0.08);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(255, 140, 0, 0.1);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    /* Added min-height for uniform box size */
    min-height: 420px;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 140, 0, 0.1), transparent);
    transition: left 0.6s ease;
}

.service-card:hover::before {
    left: 100%;
}

.service-card:hover {
    transform: translateY(-15px) scale(1.02);
    box-shadow: 0 25px 50px rgba(0,0,0,0.15);
    border-color: rgba(255, 140, 0, 0.3);
}

.service-card i {
    font-size: 3.5rem;
    color: #ff8c00;
    margin-bottom: 1.5rem;
    transition: all 0.3s ease;
    background: linear-gradient(135deg, #ff8c00, #e67e00);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.service-card:hover i {
    transform: scale(1.1) rotate(5deg);
}

.service-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: #1e3a5f;
    transition: color 0.3s ease;
}

.service-card:hover h3 {
    color: #ff8c00;
}

.service-card p {
    margin-bottom: 1.5rem;
    color: #666;
    line-height: 1.6;
    transition: color 0.3s ease;
}

.service-card:hover p {
    color: #555;
}

.learn-more {
    color: #ff8c00;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    /* Remove padding to avoid vertical misalignment */
    padding: 0;
    border-radius: 25px;
    border: 2px solid #ff8c00;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    max-width: 200px;
    margin: 0 auto;
    height: 40px;
    /* Remove line-height to avoid conflict with flexbox */
    line-height: normal;
    text-align: center;
    align-self: center;
}

.learn-more:hover {
    background: #ff8c00;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 140, 0, 0.3);
}

/* About Section */
.about {
    padding: 80px 0;
    background: linear-gradient(rgba(255, 255, 255, 0.95), rgba(255, 255, 255, 0.95)), 
                url('https://images.unsplash.com/photo-1486406146926-c627a92ad1ab?ixlib=rb-4.0.3&auto=format&fit=crop&w=1920&q=80');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}

.about-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.about h2 {
    font-size: 2.5rem;
    margin-bottom: 2rem;
    color: #1e3a5f;
}

.about p {
    font-size: 1.1rem;
    margin-bottom: 2rem;
    color: #666;
    line-height: 1.8;
}

.features {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.feature {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #1e3a5f;
    font-weight: 600;
}

.feature i {
    color: #ff8c00;
}

/* Testimonials Section */
.testimonials {
    padding: 80px 0;
    background: #1e3a5f;
    color: white;
    text-align: center;
}

.testimonials h2 {
    font-size: 2.5rem;
    margin-bottom: 3rem;
}

.testimonials-carousel {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
    padding: 0 40px;
}

.testimonials-wrapper {
    position: relative;
    overflow: hidden;
}

.testimonial {
    display: none;
    max-width: 600px;
    margin: 0 auto;
    opacity: 0;
    transform: translateX(100%);
    transition: all 0.6s ease;
}

.testimonial.active {
    display: block;
    opacity: 1;
    transform: translateX(0);
}

.testimonial.slide-out-left {
    transform: translateX(-100%);
    opacity: 0;
}

.testimonial.slide-in-right {
    transform: translateX(100%);
    opacity: 0;
}

.testimonial-content p {
    font-size: 1.3rem;
    font-style: italic;
    margin-bottom: 2rem;
    line-height: 1.6;
}

.client-info {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.client-name {
    font-weight: 600;
    color: #ff8c00;
}

.client-position {
    opacity: 0.8;
}

/* Carousel Navigation */
.carousel-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: transparent;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 10px;
    transition: all 0.3s ease;
    z-index: 2;
}

.carousel-arrow:hover {
    color: #ff8c00;
}

.carousel-arrow-left {
    left: 0;
}

.carousel-arrow-right {
    right: 0;
}

/* Carousel Dots */
.carousel-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 2rem;
}

.dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    cursor: pointer;
    transition: all 0.3s ease;
}

.dot.active {
    background: #ff8c00;
    transform: scale(1.2);
}

.dot:hover {
    background: rgba(255, 140, 0, 0.5);
}

/* Google Reviews Section */
.google-reviews-section {
    margin-top: 3rem;
    padding-top: 3rem;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.google-reviews-content {
    text-align: center;
}

.reviews-text {
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    opacity: 0.9;
}

.google-logo-link {
    display: inline-flex;
    align-items: center;
    gap: 1rem;
    background: white;
    padding: 1rem 2rem;
    border-radius: 50px;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.google-logo-link:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

.google-logo {
    width: 80px;
    height: auto;
}

.google-logo svg {
    width: 100%;
    height: auto;
}

.reviews-cta {
    color: #1e3a5f;
    font-weight: 600;
    font-size: 1rem;
}

.google-logo-link:hover .reviews-cta {
    color: #ff8c00;
}

/* Enhanced hover effects for Google logo */
.google-logo-link:active {
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

/* Smooth transitions for all interactive elements */
.google-logo-link * {
    transition: all 0.3s ease;
}

/* Focus state for accessibility */
.google-logo-link:focus {
    outline: 3px solid #ff8c00;
    outline-offset: 2px;
}

/* Additional mobile optimizations */
@media (max-width: 768px) {
    .google-reviews-section {
        margin-top: 2rem;
        padding-top: 2rem;
    }
    
    .reviews-text {
        font-size: 1rem;
        margin-bottom: 1rem;
    }
    
    .google-logo-link {
        padding: 0.8rem 1.5rem;
    }
    
    .google-logo {
        width: 70px;
    }
}

/* Contact Section */
.contact {
    padding: 80px 0;
    background: #f8f9fa;
}

.contact-form select {
    width: 100%;
    padding: 1rem;
    margin: 0.5rem 0 1rem 0;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    font-size: 1rem;
    font-family: inherit;
    box-sizing: border-box;
    transition: border-color 0.3s ease;
}

.contact-form select:focus {
    outline: none;
    border-color: #ff8c00;
}

.contact-form select option[disabled][selected] {
    color: #999999;
}

.contact-form label {
    font-weight: 600;
    margin-top: 1rem;
    display: block;
    color: #1e3a5f;
}

.contact h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: #1e3a5f;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: start;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.info-item {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.info-item i {
    font-size: 1.5rem;
    color: #ff8c00;
    width: 30px;
}

.info-item p {
    font-size: 1.1rem;
    color: #666;
}

.address-info {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}

.address-info p {
    font-size: 1.1rem;
    color: #666;
    margin: 0;
}

.map-container {
    margin: calc(1rem - 10px) 0 2rem 0;
    border: 2px solid #ff8c00;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: none;
    transition: all 0.3s ease;
    background: #ff8c00;
    padding: 0px;
}

.map-container iframe {
    height: 270px;
}

.map-container:hover {
    box-shadow: 0 8px 25px rgba(30, 58, 95, 0.3);
    border-color: #2c5282;
    background: #2c5282;
}

.map-container iframe {
    border-radius: 12px;
    transition: transform 0.3s ease;
    display: block;
    width: 100%;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.contact-form input,
.contact-form textarea {
    padding: 1rem;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: #ff8c00;
}

.contact-form textarea {
    min-height: 120px;
    resize: vertical;
}

.contact-form button {
    background: #ff8c00;
    color: white;
    border: none;
    padding: 1rem 2rem;
    border-radius: 30px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s ease;
}

.contact-form button:hover {
    background: #e67e00;
}

/* Footer */
.footer {
    background: #1e3a5f;
    color: white;
    padding: 1.5rem 0 0.5rem;
}

.footer-content {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 1rem;
    flex-wrap: nowrap;
    gap: 1rem;
}
.footer-logo-new {
    margin-right: auto;
}

.footer-logo-new img {
    filter: brightness(0) invert(1);
}

.footer-links {
    display: flex;
    gap: 1rem;
}

.footer-links a {
    color: white;
    text-decoration: none;
    transition: color 0.3s ease;
    font-size: 0.9rem;
}

.footer-links a:hover {
    color: #ff8c00;
}

.social-links {
    display: flex;
    gap: 0.5rem;
}

.social-links a {
    color: white;
    font-size: 1.2rem;
    transition: color 0.3s ease;
}

.social-links a:hover {
    color: #ff8c00;
}

.footer-bottom {
    text-align: center;
    padding-top: 1rem;
    border-top: 1px #2c5282;
    opacity: 0.8;
}

.footer-policies-bottom {
    margin-bottom: 0.5rem;
}

.footer-policies-bottom a {
    color: white;
    text-decoration: none;
    transition: color 0.3s ease;
    font-size: 0.9rem;
}

.footer-policies-bottom a:hover {
    color: #ff8c00;
}

/* Responsive Design */
@media (max-width: 768px) {
    .mobile-menu {
        display: block;
    }
    
    .nav-links {
        display: none;
    }
    
    /* Show language toggle button on mobile navbar */
    .language-toggle {
        display: block !important;
        margin-left: 1rem;
    }

    .nav-links.active {
        display: flex;
        flex-direction: column;
        position: fixed;
        top: 70px;
        right: 20px;
        background: white;
        border: 1px solid #ff8c00;
        border-radius: 10px;
        padding: 1rem 2rem;
        box-shadow: 0 8px 25px rgba(255, 140, 0, 0.3);
        z-index: 10000;
        width: 200px;
        max-height: calc(100vh - 90px);
        overflow-y: auto;
    }
    
    /* Show language toggle in the mobile menu */
    .nav-links.active .language-toggle {
        display: block !important;
        margin: 0.5rem 0 0 0;
        padding: 0.5rem 1rem;
        align-self: center;
        width: auto;
    }

    .nav-links.active a {
        padding: 0.5rem 0;
        color: #1e3a5f;
        font-weight: 600;
        border-bottom: 1px solid #ff8c00;
    }

    .nav-links.active a:last-child {
        border-bottom: none;
    }
    
    .hero {
        background-attachment: scroll;
    }
    
    .services {
        background-attachment: scroll;
    }
    
    .about {
        background-attachment: scroll;
    }
    
    .hero h1 {
        font-size: 2.5rem;
    }
    
    .hero p {
        font-size: 1.1rem;
    }
    
    .scroll-indicator {
        display: none;
    }
    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .footer-content {
        flex-direction: column;
        text-align: center;
    }
    
    .features {
        flex-direction: column;
        align-items: center;
    }
    
    /* Testimonials carousel mobile adjustments */
    .testimonials-carousel {
        padding: 0 20px;
    }
    
    .carousel-arrow {
        font-size: 1.2rem;
        padding: 8px;
    }
    
    .carousel-dots {
        margin-top: 1.5rem;
    }
    
    .dot {
        width: 8px;
        height: 8px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }
    
    .hero {
        padding: 100px 0 60px;
    }
    
    .hero h1 {
        font-size: 2rem;
    }
    
    .services, .about, .testimonials, .contact {
        padding: 60px 0;
    }
    
    .service-card {
        padding: 2rem;
    }
    
    .google-logo-link {
        flex-direction: column;
        gap: 0.5rem;
        padding: 1rem 1.5rem;
    }
    
    .google-logo {
        width: 60px;
    }
    
    .reviews-cta {
        font-size: 0.9rem;
    }
}

/* Active Navigation Link */
.nav-links a.active {
    color: #ff8c00;
    position: relative;
}

.nav-links a.active::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    right: 0;
    height: 2px;
    background: #ff8c00;
    border-radius: 1px;
}

/* Smooth Scrolling */
html {
    scroll-behavior: smooth;
}

/* Animation Classes */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, #ff8c00, #e67e00);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, #e67e00, #cc6600);
}