/* Modern Glass Design with Purple to Green Gradient */

:root {
    /* Glass effect variables */
    --glass-bg: rgba(255, 255, 255, 0.1);
    --glass-border: rgba(255, 255, 255, 0.2);
    --glass-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.37);
    --glass-backdrop: blur(8px);

    /* Gradient colors */
    --gradient-purple: #8B5CF6;
    --gradient-green: #10B981;
    --gradient-start: #8B5CF6;
    --gradient-end: #10B981;

    /* Text colors for glass effect */
    --text-primary: #ffffff;
    --text-secondary: rgba(255, 255, 255, 0.8);
    --text-muted: rgba(255, 255, 255, 0.6);
}

/* Global body styling with gradient background */
body {
    background: linear-gradient(135deg, var(--gradient-start) 0%, var(--gradient-end) 100%);
    background-attachment: fixed;
    min-height: 100vh;
    color: var(--text-primary);
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    position: relative;
}

/* Fixed gradient overlay for mobile to prevent scroll issues */
body::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: linear-gradient(135deg, var(--gradient-start) 0%, var(--gradient-end) 100%);
    z-index: -1;
    pointer-events: none;
    display: none;
}

/* Glass morphism base class */
.glass {
    background: var(--glass-bg);
    backdrop-filter: var(--glass-backdrop);
    -webkit-backdrop-filter: var(--glass-backdrop);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    box-shadow: var(--glass-shadow);
}

/* Header/Navbar glass effect */
.header {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.header.sticky-top {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
}

/* Navigation links */
.navmenu ul li a {
    color: var(--text-primary);
    font-weight: 500;
    padding: 8px 16px;
    border-radius: 8px;
    transition: all 0.3s ease;
    position: relative;
}

.navmenu ul li a:hover,
.navmenu ul li a.active {
    background: rgba(255, 255, 255, 0.2);
    color: var(--text-primary);
    transform: translateY(-2px);
}

/* Logo styling */
.logo img {
    filter: brightness(0) invert(1);
    transition: all 0.3s ease;
}

/* Hero section with glass effect */
.hero {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 24px;
    margin: 20px;
    padding: 60px 40px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.hero h1 {
    color: var(--text-primary);
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.hero p {
    color: var(--text-secondary);
    font-size: 1.2rem;
    margin-bottom: 2rem;
}

/* Buttons with glass effect */
.btn-get-started,
.btn-watch-video {
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: var(--text-primary);
    padding: 12px 24px;
    border-radius: 12px;
    font-weight: 600;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-get-started:hover,
.btn-watch-video:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    color: var(--text-primary);
}

/* Section styling */
.section {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 20px;
    margin: 20px;
    padding: 60px 40px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.section-title h2 {
    color: var(--text-primary);
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    text-align: center;
}

.section-title p {
    color: var(--text-secondary);
    font-size: 1.1rem;
    text-align: center;
    margin-bottom: 3rem;
}

/* Cards with glass effect */
.service-item,
.testimonial-card,
.team-member {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 16px;
    padding: 30px;
    transition: all 0.3s ease;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.service-item:hover,
.testimonial-card:hover,
.team-member:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.15);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);
}

/* Service item specific styling */
.service-item[data-bs-toggle="modal"] {
    cursor: pointer;
}

.service-item[data-bs-toggle="modal"]:hover {
    transform: translateY(-8px);
    background: rgba(255, 255, 255, 0.2);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.25);
}

/* Service item styling */
.service-item h3 {
    color: var(--text-primary);
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.service-item p {
    color: var(--text-secondary);
    line-height: 1.6;
}

/* Testimonial styling - All text dark for readability */
.testimonial-quote {
    color: #333333 !important;
    font-style: italic;
    font-size: 1.1rem;
    line-height: 1.7;
}

.testimonial-quote span {
    color: #333333 !important;
}

.testimonial-content h3 {
    color: #222222 !important;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.testimonial-role {
    color: #666666 !important;
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.testimonial-item {
    color: #333333 !important;
}

.testimonial-content {
    color: #333333 !important;
}

.testimonial-card {
    color: #333333 !important;
}

/* Quote icons */
.quote-icon-left,
.quote-icon-right {
    color: #666666 !important;
}

/* Team member styling */
.team-member h4 {
    color: var(--text-primary);
    font-size: 1.4rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.team-member span {
    color: var(--text-muted);
    font-size: 1rem;
    margin-bottom: 1rem;
    display: block;
}

.team-member p {
    color: var(--text-secondary);
    line-height: 1.6;
}

/* FAQ styling */
.faq-item {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    margin-bottom: 15px;
    transition: all 0.3s ease;
}

.faq-item:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-2px);
}

.faq-item h3 {
    color: var(--text-primary);
    font-size: 1.1rem;
    font-weight: 600;
    padding: 20px;
    margin: 0;
}

.faq-content p {
    color: var(--text-secondary);
    padding: 0 20px 20px;
    line-height: 1.6;
}

/* Footer styling */
.footer {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px 20px 0 0;
    margin-top: 40px;
}

.footer .sitename {
    color: var(--text-primary);
    font-size: 2rem;
    font-weight: 700;
}

.footer p {
    color: var(--text-secondary);
    line-height: 1.6;
}

.footer h4 {
    color: var(--text-primary);
    font-weight: 600;
    margin-bottom: 1rem;
}

.footer ul li a {
    color: var(--text-secondary);
    transition: all 0.3s ease;
}

.footer ul li a:hover {
    color: var(--text-primary);
    transform: translateX(5px);
}

/* Contact form styling */
.form-control {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    color: #333333;
    padding: 12px 16px;
    transition: all 0.3s ease;
}

.form-control:focus {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.4);
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.1);
    color: #333333;
}

.form-control::placeholder {
    color: #666666;
}

/* Form labels */
label {
    color: #333333;
    font-weight: 500;
    font-size: 15px;
}

@media (max-width: 768px) {
    label {
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    label {
        font-size: 13px;
    }
}

/* Button styling */
button[type="submit"] {
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: var(--text-primary);
    padding: 12px 30px;
    border-radius: 12px;
    font-weight: 600;
    transition: all 0.3s ease;
}

button[type="submit"]:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

/* Removed fade-in animations for smoother loading */

/* Responsive design */
@media (max-width: 991px) {
    .hero h1 {
        font-size: 2.8rem;
    }
    
    .section-title h2 {
        font-size: 2.2rem;
    }
}

@media (max-width: 768px) {
    .hero {
        margin: 10px;
        padding: 30px 15px;
    }

    .hero h1 {
        font-size: 2rem;
        text-align: center;
    }
    
    .hero p {
        font-size: 1rem;
        text-align: center;
    }

    .section {
        margin: 10px;
        padding: 30px 15px;
    }

    .section-title h2 {
        font-size: 1.8rem;
    }
    
    .section-title p {
        font-size: 1rem;
    }
    
    .service-item,
    .testimonial-card,
    .team-member {
        padding: 20px 15px;
    }
    
    .service-item h3 {
        font-size: 1.1rem;
    }
    
    .btn-get-started,
    .btn-watch-video {
        padding: 10px 18px;
        font-size: 14px;
    }
}

/* Mobile-specific fix: Use fixed pseudo-element for gradient to prevent scroll issues */
@media (max-width: 991px) {
    body {
        background: transparent !important;
        background-attachment: scroll !important;
    }
    
    body::before {
        display: block !important;
        background: linear-gradient(135deg, var(--gradient-start) 0%, var(--gradient-end) 100%);
    }
}

/* Additional modern touches */
.hero-image {
    border-radius: 40px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
    max-height: 500px;
    object-fit: cover;
}

@media (max-width: 991px) {
    .hero-image {
        border-radius: 30px;
        max-height: 400px;
    }
}

@media (max-width: 768px) {
    .hero-image {
        border-radius: 20px;
        max-height: 300px;
        max-width: 90%;
    }
}

@media (max-width: 480px) {
    .hero-image {
        border-radius: 16px;
        max-height: 250px;
        max-width: 95%;
    }
}

/* Optimized transitions - only for specific elements */
.service-item,
.testimonial-card,
.team-member,
.btn-get-started,
.btn-watch-video,
.navmenu ul li a,
.info-item,
.form-control,
button[type="submit"],
.scroll-top {
    transition: all 0.3s ease;
}

/* Enhanced glass effect for modals */
.modal-content {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 16px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

.modal-header {
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.modal-title {
    color: var(--text-primary);
    font-weight: 600;
}

.modal-body {
    color: var(--text-secondary);
}

/* Enhanced button styling */
.btn-close {
    filter: brightness(0) invert(1);
}

/* Swiper pagination styling */
.swiper-pagination-bullet {
    background: rgba(255, 255, 255, 0.5);
    opacity: 1;
}

.swiper-pagination-bullet-active {
    background: var(--text-primary);
}

/* Info items in contact section */
.info-item {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 20px;
    transition: all 0.3s ease;
}

.info-item:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-2px);
}

.info-item h3 {
    color: #222222;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.info-item p {
    color: #333333;
    margin: 0;
    word-wrap: break-word;
    word-break: break-all;
    overflow-wrap: break-word;
    hyphens: auto;
}

/* Loading and message states */
.loading, .sent-message, .error-message {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    padding: 10px 15px;
    margin-top: 10px;
    color: #333333;
}

/* Scroll to top button */
.scroll-top {
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    color: var(--text-primary);
    transition: all 0.3s ease;
}

.scroll-top:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
    color: var(--text-primary);
}

/* Preloader styling */
#preloader {
    background: linear-gradient(135deg, var(--gradient-start) 0%, var(--gradient-end) 100%);
}

/* Mobile responsiveness improvements */
@media (max-width: 576px) {
    .hero h1 {
        font-size: 1.6rem;
    }
    
    .hero p {
        font-size: 0.9rem;
    }

    .section-title h2 {
        font-size: 1.5rem;
    }
    
    .section-title p {
        font-size: 0.9rem;
        margin-bottom: 2rem;
    }

    .glass {
        margin: 8px;
        padding: 25px 15px;
        border-radius: 12px;
    }

    /* Contact section mobile improvements */
    .info-item {
        padding: 15px;
        margin-bottom: 15px;
    }

    .info-item p {
        font-size: 0.85rem;
        line-height: 1.4;
    }
    
    .info-item h3 {
        font-size: 1rem;
    }
    
    /* Service items mobile */
    .service-item,
    .testimonial-card,
    .team-member {
        padding: 18px 12px;
        border-radius: 12px;
    }
    
    .service-item h3 {
        font-size: 1rem;
    }
    
    .service-item p {
        font-size: 0.85rem;
    }
    
    /* Forms mobile */
    .form-control {
        padding: 10px 12px;
        font-size: 14px;
    }
    
    button[type="submit"] {
        padding: 10px 24px;
        font-size: 14px;
    }
    
    /* Footer mobile */
    .footer .sitename {
        font-size: 1.5rem;
    }
    
    .footer p {
        font-size: 0.85rem;
    }
    
    .footer h4 {
        font-size: 1rem;
    }
    
    /* FAQ mobile */
    .faq-item h3 {
        font-size: 0.95rem;
        padding: 15px;
    }
    
    .faq-content p {
        font-size: 0.85rem;
        padding: 0 15px 15px;
    }
}

/* Extra small devices */
@media (max-width: 380px) {
    .hero h1 {
        font-size: 1.4rem;
    }
    
    .section-title h2 {
        font-size: 1.3rem;
    }
    
    .section-title p {
        font-size: 0.85rem;
    }
    
    .glass {
        margin: 5px;
        padding: 20px 12px;
    }
    
    .service-item h3 {
        font-size: 0.9rem;
    }
}
