/* ===== CSS Variables ===== */
:root {
    --primary: #2563eb;
    --primary-dark: #1d4ed8;
    --secondary: #64748b;
    --dark: #0f172a;
    --light: #f8fafc;
    --white: #ffffff;
    --gray-100: #f1f5f9;
    --gray-200: #e2e8f0;
    --gray-300: #cbd5e1;
    --gray-600: #475569;
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.1);
    --radius: 8px;
    --transition: all 0.3s ease;
}

/* ===== Reset & Base ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: var(--dark);
    background: var(--white);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

ul {
    list-style: none;
}

/* ===== Buttons ===== */
.btn {
    display: inline-block;
    padding: 14px 28px;
    font-size: 15px;
    font-weight: 600;
    border-radius: var(--radius);
    cursor: pointer;
    transition: var(--transition);
    border: none;
}

.btn-primary {
    background: var(--primary);
    color: var(--white);
}

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-secondary {
    background: transparent;
    color: var(--dark);
    border: 2px solid var(--gray-300);
}

.btn-secondary:hover {
    border-color: var(--primary);
    color: var(--primary);
}

.btn-full {
    width: 100%;
}

/* ===== Section Styles ===== */
.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-tag {
    display: inline-block;
    background: rgba(37, 99, 235, 0.1);
    color: var(--primary);
    padding: 6px 16px;
    border-radius: 50px;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 16px;
}

.section-header h2 {
    font-size: 40px;
    font-weight: 700;
    margin-bottom: 16px;
    color: var(--dark);
}

.section-header p {
    font-size: 18px;
    color: var(--secondary);
    max-width: 600px;
    margin: 0 auto;
}

/* ===== Navigation ===== */
.navbar {
    background: rgba(255, 255, 255, 0.95) !important;
    backdrop-filter: blur(10px);
    padding: 12px 0;
}

.logo-img {
    height: 60px;
    width: auto;
}

@media (max-width: 991.98px) {
    .logo-img {
        height: 50px;
    }
}

.navbar .nav-link {
    font-weight: 500;
    color: var(--secondary) !important;
    padding: 8px 16px !important;
}

.navbar .nav-link:hover {
    color: var(--primary) !important;
}

.navbar-toggler {
    border: none;
    padding: 8px;
}

.navbar-toggler:focus {
    box-shadow: none;
}

/* ===== Hero Section ===== */
.hero {
    padding: 140px 0 80px;
    background: linear-gradient(135deg, var(--light) 0%, var(--white) 100%);
}

@media (max-width: 991.98px) {
    .hero {
        padding: 120px 0 60px;
    }
}

.hero-content h1 {
    font-size: clamp(2rem, 5vw, 3.25rem);
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 24px;
    color: var(--dark);
}

.highlight {
    color: var(--primary);
}

.hero-content p {
    font-size: 18px;
    color: var(--secondary);
    margin-bottom: 32px;
    line-height: 1.7;
}

.stat-number {
    font-size: clamp(1.5rem, 4vw, 2.25rem);
    font-weight: 800;
    color: var(--primary);
}

.stat-label {
    font-size: 14px;
    color: var(--secondary);
}

/* ===== Services Section ===== */
.services {
    background: var(--white);
}

.service-card {
    background: var(--white);
    padding: 32px;
    border-radius: 12px;
    border: 1px solid var(--gray-200);
    transition: var(--transition);
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary);
}

.service-icon {
    width: 80px;
    height: 80px;
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 20px;
}

.service-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.service-card h3 {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--dark);
}

.service-card p {
    color: var(--secondary);
    font-size: 15px;
    margin-bottom: 16px;
}

.service-link {
    color: var(--primary);
    font-weight: 600;
    font-size: 14px;
}

.service-link:hover {
    color: var(--primary-dark);
}

/* ===== About Section ===== */
.about {
    background: var(--light);
}

.about-badge {
    bottom: -20px;
    right: 20px;
    background: var(--primary);
    color: var(--white);
    padding: 20px 28px;
    border-radius: 12px;
    text-align: center;
    box-shadow: var(--shadow-lg);
}

@media (max-width: 991.98px) {
    .about-badge {
        bottom: -15px;
        right: 10px;
        padding: 16px 20px;
    }
}

.badge-number {
    display: block;
    font-size: 32px;
    font-weight: 800;
}

.badge-text {
    font-size: 14px;
    opacity: 0.9;
}

.about-content .section-tag {
    margin-bottom: 16px;
}

.about-content h2 {
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    font-weight: 700;
    margin-bottom: 24px;
    color: var(--dark);
}

.about-content p {
    color: var(--secondary);
    margin-bottom: 20px;
    line-height: 1.7;
}

.about-features li {
    color: var(--dark);
    font-weight: 500;
    padding: 8px 0;
}

/* ===== Platform Section ===== */
.platform {
    background: var(--dark);
    color: var(--white);
}

.platform .section-tag {
    background: rgba(255, 255, 255, 0.1);
    color: var(--white);
}

.platform h2 {
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    font-weight: 700;
    margin-bottom: 16px;
    color: var(--white);
}

.platform .lead {
    font-size: 1.15rem;
    color: rgba(255, 255, 255, 0.9);
}

.platform p {
    color: rgba(255, 255, 255, 0.8);
}

.platform h5 {
    color: var(--white);
    font-weight: 600;
}

.platform .text-secondary {
    color: rgba(255, 255, 255, 0.7) !important;
}

.platform .feature-icon {
    width: 40px;
    flex-shrink: 0;
}

/* ===== Team Section ===== */
.team {
    background: var(--white);
}

.team-card {
    text-align: center;
    padding: 32px 24px;
    background: var(--white);
    border-radius: 12px;
    border: 1px solid var(--gray-200);
    transition: var(--transition);
}

.team-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}

.team-image {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    overflow: hidden;
    margin: 0 auto 20px;
    border: 4px solid var(--gray-100);
}

.team-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.team-card h3 {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 4px;
    color: var(--dark);
}

.team-role {
    display: block;
    color: var(--primary);
    font-weight: 600;
    font-size: 14px;
    margin-bottom: 8px;
}

.team-card p {
    color: var(--secondary);
    font-size: 14px;
}

/* ===== Testimonials Section ===== */
.testimonials {
    background: var(--dark);
}

.testimonials .section-tag {
    background: rgba(255, 255, 255, 0.1);
    color: var(--white);
}

.testimonials .section-header h2 {
    color: var(--white);
}

.testimonial-card {
    background: rgba(255, 255, 255, 0.05);
    padding: 40px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.testimonial-rating {
    color: #fbbf24;
    font-size: 20px;
    margin-bottom: 20px;
}

.testimonial-card p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 18px;
    line-height: 1.7;
    margin-bottom: 24px;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 16px;
}

.testimonial-author img {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
}

.testimonial-author strong {
    display: block;
    color: var(--white);
    font-size: 16px;
}

.testimonial-author span {
    color: rgba(255, 255, 255, 0.6);
    font-size: 14px;
}

/* ===== Contact Section ===== */
.contact {
    background: var(--light);
}

.contact-info .section-tag {
    margin-bottom: 16px;
}

.contact-info h2 {
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    font-weight: 700;
    margin-bottom: 16px;
    color: var(--dark);
}

.contact-info > p {
    color: var(--secondary);
    margin-bottom: 32px;
}

.contact-item strong {
    display: block;
    color: var(--dark);
    margin-bottom: 4px;
}

.contact-item p {
    color: var(--secondary);
}

.contact-form .form-control:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

/* ===== Footer ===== */
.footer {
    background: var(--dark);
    color: var(--white);
}

.footer .logo-img {
    filter: brightness(0) invert(1);
}

.footer-brand p {
    color: rgba(255, 255, 255, 0.6);
    line-height: 1.7;
}

.footer-links h4,
.footer-newsletter h4 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 20px;
}

.footer-links ul li {
    margin-bottom: 10px;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.6);
}

.footer-links a:hover {
    color: var(--white);
}

.footer-newsletter p {
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 16px;
}

.footer-bottom p {
    color: rgba(255, 255, 255, 0.6);
}

.footer-social a {
    color: rgba(255, 255, 255, 0.6);
}

.footer-social a:hover {
    color: var(--white);
}

/* ===== Additional Responsive Tweaks ===== */
@media (max-width: 575.98px) {
    .section-header h2 {
        font-size: 1.75rem;
    }

    .service-card,
    .team-card,
    .testimonial-card {
        padding: 24px 20px;
    }
}

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

.hero-content,
.hero-image,
.service-card,
.team-card,
.testimonial-card {
    animation: fadeInUp 0.6s ease forwards;
}

.service-card:nth-child(2) { animation-delay: 0.1s; }
.service-card:nth-child(3) { animation-delay: 0.2s; }
.service-card:nth-child(4) { animation-delay: 0.3s; }

.team-card:nth-child(2) { animation-delay: 0.1s; }
.team-card:nth-child(3) { animation-delay: 0.2s; }
.team-card:nth-child(4) { animation-delay: 0.3s; }
