/* 
 * Unified style: 
 * The contents of index.css have replaced ustyles.css for a single source of truth.
 * If you need to preserve unique styles from the old ustyles.css, manually merge them below.
 */
:root {
    --primary: #10B981;
    --primary-dark: #059669;
    --primary-light: #D1FAE5;
    --accent: #047857;
    --text-dark: #1F2937;
    --text-light: #6B7280;
    --light: #FFFFFF;
    --light-bg: #F9FAFB;
    --border: #E5E7EB;
    --shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    background-color: var(--light);
    color: var(--text-dark);
    line-height: 1.6;
    overflow-x: hidden;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

section {
    padding: 5rem 0;
}

/* Header Styles */
header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: var(--light);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.2rem 0;
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.logo-container img {
    height: 48px;
    width: 48px;
    border-radius: 50%;
    object-fit: cover;
}

.logo-text {
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--primary-dark);
}

.logo-text span {
    color: var(--accent);
}

/* Navigation */
.nav-desktop {
    display: flex;
    gap: 1.8rem;
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-dark);
    text-decoration: none;
    font-weight: 500;
    padding: 0.5rem 1rem;
    border-radius: 50px;
    transition: var(--transition);
}

.nav-link:hover, .nav-link.active {
    background: var(--primary-light);
    color: var(--primary-dark);
}

.nav-link .material-icons {
    font-size: 1.25rem;
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    color: var(--text-dark);
    font-size: 1.8rem;
    cursor: pointer;
}

/* Hero Section */
.hero {
    position: relative;
    padding: 7rem 0 5rem;
    background: linear-gradient(135deg, var(--light) 0%, var(--primary-light) 100%);
    overflow: hidden;
}

.hero::before {
    content: "";
    position: absolute;
    top: -100px;
    right: -100px;
    width: 400px;
    height: 400px;
    border-radius: 50%;
    background: rgba(16, 185, 129, 0.1);
    z-index: 0;
}

.hero::after {
    content: "";
    position: absolute;
    bottom: -150px;
    left: -150px;
    width: 500px;
    height: 500px;
    border-radius: 50%;
    background: rgba(16, 185, 129, 0.08);
    z-index: 0;
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.hero h1 {
    font-size: 3.2rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    line-height: 1.2;
    color: var(--primary-dark);
}

.hero p {
    font-size: 1.25rem;
    margin-bottom: 2.5rem;
    color: var(--text-light);
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.cta-container {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.9rem 2.2rem;
    border-radius: 50px;
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition);
    gap: 0.5rem;
    border: 2px solid transparent;
    font-size: 1.1rem;
}

.btn-primary {
    background: var(--primary);
    color: var(--light);
    box-shadow: 0 4px 14px rgba(16, 185, 129, 0.35);
}

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(5, 150, 105, 0.4);
}

.btn-secondary {
    background: transparent;
    color: var(--primary-dark);
    border: 2px solid var(--primary);
}

.btn-secondary:hover {
    background: rgba(16, 185, 129, 0.1);
    transform: translateY(-3px);
}

/* Features Section */
.section-title {
    text-align: center;
    margin-bottom: 4rem;
}

.section-title h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    position: relative;
    display: inline-block;
    color: var(--primary-dark);
}

.section-title h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: var(--primary);
    border-radius: 2px;
}

.section-title p {
    max-width: 700px;
    margin: 1.5rem auto 0;
    color: var(--text-light);
    font-size: 1.1rem;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2.5rem;
}

.feature-card {
    background: var(--light);
    border-radius: 16px;
    padding: 2.5rem 2rem;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
    text-align: center;
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 25px rgba(0, 0, 0, 0.08);
    border-color: rgba(16, 185, 129, 0.3);
}

.feature-icon {
    height: 80px;
    width: 80px;
    background: var(--primary-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
}

.feature-icon .material-icons {
    font-size: 2.8rem;
    color: var(--primary);
}

.feature-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--primary-dark);
}

.feature-card p {
    color: var(--text-light);
}

/* Platform Highlights */
.platform-highlights {
    background: var(--light-bg);
    position: relative;
}

.tabs-container {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    max-width: 900px;
    margin: 0 auto;
}

.tabs-header {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.tab-btn {
    padding: 1rem 2rem;
    background: var(--light);
    border: none;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1.1rem;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: var(--shadow);
    color: var(--text-light);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.tab-btn.active, .tab-btn:hover {
    background: var(--primary);
    color: var(--light);
}

.tab-content {
    display: none;
    background: var(--light);
    border-radius: 20px;
    padding: 3rem;
    box-shadow: var(--shadow);
    animation: fadeIn 0.5s ease;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.tab-content.active {
    display: block;
}

.tab-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    align-items: center;
}

.tab-text h3 {
    font-size: 2rem;
    color: var(--primary-dark);
    margin-bottom: 1.5rem;
}

.tab-text ul {
    list-style: none;
    margin: 1.5rem 0;
}

.tab-text li {
    margin-bottom: 1rem;
    display: flex;
    gap: 0.8rem;
}

.tab-text li::before {
    content: "✓";
    color: var(--primary);
    font-weight: bold;
}

.tab-image img {
    width: 100%;
    border-radius: 15px;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

/* Testimonials */
.testimonials {
    background: var(--light);
}

.testimonial-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2.5rem;
}

.testimonial-card {
    background: var(--light);
    border-radius: 16px;
    padding: 2.5rem;
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
}

.testimonial-text {
    font-style: italic;
    margin-bottom: 1.8rem;
    position: relative;
    color: var(--text-light);
    line-height: 1.8;
}

.testimonial-text::before {
    content: '"';
    position: absolute;
    top: -25px;
    left: -10px;
    font-size: 5rem;
    color: var(--primary-light);
    font-family: serif;
    line-height: 1;
    z-index: -1;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 1.2rem;
}

.author-avatar {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid var(--primary-light);
}

.author-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.author-info h4 {
    font-weight: 600;
    margin-bottom: 0.25rem;
    color: var(--primary-dark);
}

.author-info p {
    color: var(--text-light);
    font-size: 0.95rem;
}

/* Stats Section */
.stats {
    background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
    color: var(--light);
    text-align: center;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
}

.stat-item {
    padding: 1.5rem;
}

.stat-number {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.stat-text {
    font-size: 1.2rem;
}

/* CTA Section */
.cta-section {
    text-align: center;
    background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
    border-radius: 20px;
    padding: 5rem 2rem;
    margin: 0 auto;
    max-width: 900px;
    box-shadow: 0 20px 40px rgba(16, 185, 129, 0.3);
}

.cta-section h2 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    color: var(--light);
}

.cta-section p {
    max-width: 600px;
    margin: 0 auto 2.5rem;
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.9);
}

.cta-btn {
    background: var(--light);
    color: var(--primary-dark);
    font-weight: 700;
    padding: 1rem 2.5rem;
    border-radius: 50px;
    text-decoration: none;
    display: inline-block;
    transition: var(--transition);
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.15);
}

.cta-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
    background: rgba(255, 255, 255, 0.95);
}



.social-links {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    color: var(--light);
    transition: var(--transition);
}

.social-link:hover {
    background: var(--light);
    color: var(--primary-dark);
    transform: translateY(-3px);
}

.copyright {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.95rem;
}

/* Responsive Design */
@media (max-width: 992px) {
    .tab-grid {
        grid-template-columns: 1fr;
    }
    
    .hero h1 {
        font-size: 2.8rem;
    }
}

@media (max-width: 768px) {
    .nav-desktop {
        display: none;
    }
    
    .mobile-menu-btn {
        display: block;
    }
    
    .hero h1 {
        font-size: 2.3rem;
    }
    
    .cta-container {
        flex-direction: column;
        gap: 1rem;
    }
    
    .btn {
        width: 100%;
        max-width: 300px;
        margin: 0 auto;
    }
    
    .section-title h2 {
        font-size: 2rem;
    }
    
    .tabs-header {
        flex-direction: column;
        align-items: center;
    }
    
    .tab-btn {
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 576px) {
    section {
        padding: 3.5rem 0;
    }
    
    .hero {
        padding: 5rem 0;
    }
    
    .hero h1 {
        font-size: 2rem;
    }
    
    .hero p {
        font-size: 1.1rem;
    }
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate {
    animation: fadeInUp 0.8s ease forwards;
}

.delay-1 {
    animation-delay: 0.2s;
}

.delay-2 {
    animation-delay: 0.4s;
}

.delay-3 {
    animation-delay: 0.6s;
}

/* Add to your CSS file */
#searchOverlay {
  transition: opacity 0.3s ease, transform 0.3s ease;
  opacity: 0;
  pointer-events: none;
}
#searchOverlay:not(.hidden) {
  opacity: 1;
  pointer-events: auto;
  transform: scale(1);
}
#searchOverlay.hidden {
  transform: scale(0.98);
}

#scrollToTopBtn {
  transition: opacity 0.3s, transform 0.3s;
  opacity: 0;
  transform: translateY(20px);
  pointer-events: none;
}
#scrollToTopBtn.show {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

#scrollToTopBtn:hover {
  box-shadow: 0 0 16px 2px #22c55e88;
  animation: pulse 1s infinite alternate;
}
@keyframes pulse {
  to { box-shadow: 0 0 24px 4px #22c55eaa; }
}

/* --- Search Overlay Mobile Refinement --- */
#searchOverlay .bg-white {
  /* Already responsive, but let's improve padding and width on mobile */
  padding: 1.2rem;
  width: 98vw;
  max-width: 95vw;
}

@media (max-width: 600px) {
  #searchOverlay .bg-white {
    padding: 0.8rem 0.5rem;
    width: 100vw;
    max-width: 100vw;
    border-radius: 0.5rem;
  }
  #searchOverlay h2 {
    font-size: 1.1rem;
    margin-bottom: 1rem;
  }
  #overlaySearchInput {
    font-size: 1rem;
    padding: 0.7rem 0.5rem;
  }
  #searchOverlay button[type="submit"] {
    width: 100%;
    padding: 0.7rem 0;
    font-size: 1rem;
  }
  #searchOverlay .absolute.top-2.right-2 {
    top: 0.5rem;
    right: 0.5rem;
  }
}

/* --- Scroll to Top Button Mobile Refinement --- */
@media (max-width: 600px) {
  #scrollToTopBtn, .fixed.bottom-5.right-5.h-10.w-10 {
    width: 2.5rem !important;
    height: 2.5rem !important;
    bottom: 1rem !important;
    right: 1rem !important;
    font-size: 1.3rem !important;
  }
  #scrollToTopBtn .material-icons {
    font-size: 1.3rem !important;
  }
}

/* --- Floating Search Button Mobile Refinement --- */
@media (max-width: 600px) {
  .fixed.bottom-20.right-5.h-12.w-12 {
    width: 2.7rem !important;
    height: 2.7rem !important;
    bottom: 4.5rem !important;
    right: 1rem !important;
    font-size: 1.4rem !important;
  }
  .fixed.bottom-20.right-5.h-12.w-12 .material-icons {
    font-size: 1.4rem !important;
  }
}
