/* ================================================
   QUANTIX - Modern Website Styles
   ================================================ */

/* -------------------- Variables -------------------- */
:root {
    --primary-color: #6366f1;
    --primary-dark: #4f46e5;
    --primary-light: #818cf8;
    --secondary-color: #0ea5e9;
    --accent-color: #22d3ee;
    --success-color: #10b981;
    --warning-color: #f59e0b;
    --danger-color: #ef4444;
    --dark-color: #0f172a;
    --dark-secondary: #1e293b;
    --light-color: #f8fafc;
    --gray-100: #f1f5f9;
    --gray-200: #e2e8f0;
    --gray-300: #cbd5e1;
    --gray-400: #94a3b8;
    --gray-500: #64748b;
    --gray-600: #475569;
    --text-dark: #1e293b;
    --text-light: #f8fafc;
    --gradient-primary: linear-gradient(135deg, #6366f1 0%, #0ea5e9 100%);
    --gradient-secondary: linear-gradient(135deg, #0ea5e9 0%, #22d3ee 100%);
    --gradient-dark: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1);
    --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1);
    --shadow-2xl: 0 25px 50px -12px rgb(0 0 0 / 0.25);
    --border-radius: 12px;
    --border-radius-lg: 20px;
    --transition: all 0.3s ease;
}

/* -------------------- Base Styles -------------------- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

html, body {
    max-width: 100%;
    overflow-x: hidden;
}

body {
    font-family: 'Poppins', sans-serif;
    font-size: 16px;
    line-height: 1.7;
    color: var(--text-dark);
    background-color: var(--light-color);
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.3;
    color: var(--dark-color);
}

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

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

/* -------------------- Utility Classes -------------------- */
.text-gradient {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.section-badge {
    display: inline-block;
    padding: 8px 20px;
    background: var(--gradient-primary);
    color: white;
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-radius: 50px;
    margin-bottom: 15px;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 20px;
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--gray-500);
    max-width: 600px;
    margin: 0 auto 40px;
}

.section-text {
    color: var(--gray-600);
    font-size: 1.05rem;
    margin-bottom: 20px;
}

/* -------------------- Buttons -------------------- */
.btn {
    padding: 12px 28px;
    font-weight: 600;
    border-radius: var(--border-radius);
    transition: var(--transition);
    border: none;
}

.btn-primary {
    background: var(--gradient-primary);
    color: white;
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.4);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(99, 102, 241, 0.5);
    color: white;
}

.btn-outline-light {
    border: 2px solid rgba(255, 255, 255, 0.8);
    color: white;
}

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

/* -------------------- Navbar -------------------- */
.navbar {
    padding: 20px 0;
    transition: var(--transition);
    background: transparent;
}

.navbar.scrolled {
    background: rgba(15, 23, 42, 0.95);
    backdrop-filter: blur(10px);
    padding: 15px 0;
    box-shadow: var(--shadow-lg);
}

.navbar-brand {
    display: flex;
    align-items: center;
    gap: 12px;
}

.navbar-logo {
    height: 50px !important;
    width: 50px !important;
    max-height: 50px !important;
    max-width: 50px !important;
    min-height: 50px;
    min-width: 50px;
    border-radius: 50%;
    object-fit: cover;
    transition: var(--transition);
    border: 2px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    flex-shrink: 0;
}

.navbar.scrolled .navbar-logo {
    height: 42px !important;
    width: 42px !important;
    max-height: 42px !important;
    max-width: 42px !important;
    min-height: 42px;
    min-width: 42px;
}

.navbar-brand .brand-text {
    font-size: 1.8rem;
    font-weight: 800;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.navbar-nav .nav-link {
    color: rgba(255, 255, 255, 0.9);
    font-weight: 500;
    padding: 10px 20px;
    margin: 0 5px;
    border-radius: var(--border-radius);
    transition: var(--transition);
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
    color: white;
    background: rgba(255, 255, 255, 0.1);
}

.navbar-nav .btn-signin {
    background: var(--gradient-primary);
    color: white !important;
    margin-left: 10px;
}

.navbar-nav .btn-signin:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.4);
}

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

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

/* -------------------- Hero Section -------------------- */
.hero-section {
    position: relative;
    min-height: 100vh;
    background: var(--gradient-dark);
    overflow: hidden;
    width: 100%;
    max-width: 100vw;
}

.floating-shapes {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    pointer-events: none;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="50" cy="50" r="1" fill="rgba(255,255,255,0.03)"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
    opacity: 0.5;
}

.floating-shapes .shape {
    position: absolute;
    border-radius: 50%;
    opacity: 0.1;
    animation: float 20s infinite ease-in-out;
}

.shape-1 {
    width: 400px;
    height: 400px;
    background: var(--primary-color);
    top: -100px;
    right: -100px;
}

.shape-2 {
    width: 300px;
    height: 300px;
    background: var(--secondary-color);
    bottom: -50px;
    left: -50px;
    animation-delay: -5s;
}

.shape-3 {
    width: 200px;
    height: 200px;
    background: var(--accent-color);
    top: 50%;
    left: 30%;
    animation-delay: -10s;
}

.shape-4 {
    width: 150px;
    height: 150px;
    background: var(--primary-light);
    bottom: 20%;
    right: 20%;
    animation-delay: -15s;
}

@keyframes float {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    33% { transform: translateY(-30px) rotate(120deg); }
    66% { transform: translateY(20px) rotate(240deg); }
}

.hero-content {
    position: relative;
    z-index: 10;
    padding-top: 100px;
}

.hero-badge {
    display: inline-block;
    padding: 10px 25px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    color: var(--accent-color);
    font-size: 14px;
    font-weight: 600;
    border-radius: 50px;
    margin-bottom: 25px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    color: white;
    margin-bottom: 25px;
    line-height: 1.2;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--gray-300);
    margin-bottom: 35px;
    max-width: 500px;
}

.hero-buttons {
    margin-bottom: 50px;
}

.hero-stats {
    display: flex;
    gap: 40px;
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--gray-300);
    font-size: 14px;
}

.stat-item i {
    color: var(--accent-color);
    font-size: 18px;
}

/* Hero Image / Dashboard Mockup */
.hero-image {
    position: relative;
    z-index: 10;
}

.dashboard-mockup {
    background: var(--dark-secondary);
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-2xl);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.mockup-header {
    padding: 15px 20px;
    background: rgba(0, 0, 0, 0.3);
    display: flex;
    gap: 8px;
}

.mockup-header .dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.dot.red { background: #ef4444; }
.dot.yellow { background: #f59e0b; }
.dot.green { background: #10b981; }

.mockup-content {
    padding: 40px;
}

.chart-placeholder {
    height: 250px;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.2) 0%, rgba(14, 165, 233, 0.2) 100%);
    border-radius: var(--border-radius);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 15px;
}

.chart-placeholder i {
    font-size: 4rem;
    color: var(--primary-light);
}

.chart-placeholder span {
    color: var(--gray-400);
    font-weight: 500;
}

/* Scroll Indicator */
.scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
}

.scroll-indicator a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: white;
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
    40% { transform: translateY(-15px); }
    60% { transform: translateY(-7px); }
}

/* -------------------- Introduction Section -------------------- */
.introduction-section {
    padding: 100px 0;
    background: white;
}

.intro-image {
    position: relative;
    padding: 40px;
}

.image-wrapper {
    position: relative;
    border-radius: var(--border-radius-lg);
    overflow: hidden;
}

.intro-graphic {
    height: 400px;
    background: var(--gradient-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--border-radius-lg);
}

.intro-graphic i {
    font-size: 8rem;
    color: rgba(255, 255, 255, 0.9);
}

.floating-card {
    position: absolute;
    background: white;
    padding: 15px 25px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-xl);
    display: flex;
    align-items: center;
    gap: 12px;
    animation: floatCard 3s infinite ease-in-out;
}

.floating-card i {
    font-size: 24px;
    color: var(--primary-color);
}

.floating-card span {
    font-weight: 600;
    color: var(--dark-color);
}

.card-1 {
    top: 20%;
    right: -20px;
}

.card-2 {
    bottom: 20%;
    left: -20px;
    animation-delay: -1.5s;
}

@keyframes floatCard {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.intro-content {
    padding: 20px;
}

.intro-features {
    margin-top: 30px;
}

.feature-item {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
}

.feature-icon {
    flex-shrink: 0;
}

.feature-icon i {
    font-size: 24px;
    color: var(--success-color);
}

.feature-text h5 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 5px;
}

.feature-text p {
    color: var(--gray-500);
    font-size: 14px;
    margin: 0;
}

/* -------------------- How It Works Section -------------------- */
.how-it-works-section {
    padding: 100px 0;
    background: var(--gray-100);
}

.step-card {
    background: white;
    padding: 40px 30px;
    border-radius: var(--border-radius-lg);
    text-align: center;
    position: relative;
    height: 100%;
    transition: var(--transition);
    box-shadow: var(--shadow-md);
}

.step-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-xl);
}

.step-number {
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 3rem;
    font-weight: 800;
    color: var(--gray-200);
    line-height: 1;
}

.step-icon {
    width: 80px;
    height: 80px;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 25px;
}

.step-icon i {
    font-size: 2rem;
    color: white;
}

.step-card h4 {
    font-size: 1.3rem;
    margin-bottom: 15px;
}

.step-card p {
    color: var(--gray-500);
    font-size: 15px;
    margin: 0;
}

/* -------------------- Features Section -------------------- */
.features-section {
    padding: 100px 0;
    background: white;
}

.feature-card {
    background: white;
    padding: 40px 30px;
    border-radius: var(--border-radius-lg);
    text-align: center;
    height: 100%;
    transition: var(--transition);
    border: 1px solid var(--gray-200);
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-xl);
    border-color: transparent;
}

.feature-card-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.1) 0%, rgba(14, 165, 233, 0.1) 100%);
    border-radius: var(--border-radius);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 25px;
    transition: var(--transition);
}

.feature-card:hover .feature-card-icon {
    background: var(--gradient-primary);
}

.feature-card-icon i {
    font-size: 2rem;
    color: var(--primary-color);
    transition: var(--transition);
}

.feature-card:hover .feature-card-icon i {
    color: white;
}

.feature-card h4 {
    font-size: 1.2rem;
    margin-bottom: 15px;
}

.feature-card p {
    color: var(--gray-500);
    font-size: 15px;
    margin: 0;
}

/* -------------------- About Section -------------------- */
.about-section {
    padding: 100px 0;
    background: var(--gray-100);
}

.about-content {
    padding: 20px;
}

.about-leader {
    margin: 30px 0;
}

.leader-info {
    display: flex;
    align-items: center;
    gap: 15px;
}

.leader-avatar {
    width: 70px;
    height: 70px;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.leader-avatar i {
    font-size: 2rem;
    color: white;
}

.leader-details h5 {
    font-size: 1.1rem;
    margin-bottom: 5px;
}

.leader-details span {
    color: var(--gray-500);
    font-size: 14px;
}

.about-stats {
    display: flex;
    gap: 30px;
    margin-top: 30px;
}

.stat-box {
    text-align: center;
    padding: 20px;
    background: white;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-md);
    flex: 1;
}

.stat-box h3 {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 5px;
}

.stat-box span {
    color: var(--gray-500);
    font-size: 14px;
}

.about-image {
    position: relative;
    padding: 40px;
}

.about-graphic {
    height: 400px;
    background: var(--gradient-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--border-radius-lg);
}

.about-graphic i {
    font-size: 8rem;
    color: rgba(255, 255, 255, 0.9);
}

.experience-badge {
    position: absolute;
    bottom: 60px;
    right: 20px;
    background: white;
    padding: 25px 30px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-xl);
    text-align: center;
}

.experience-badge .years {
    display: block;
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--primary-color);
    line-height: 1;
}

.experience-badge .text {
    font-size: 14px;
    color: var(--gray-500);
}

/* -------------------- Sectors Section -------------------- */
.sectors-section {
    padding: 100px 0;
    background: white;
}

.sector-card {
    background: white;
    padding: 40px 30px;
    border-radius: var(--border-radius-lg);
    text-align: center;
    height: 100%;
    transition: var(--transition);
    border: 1px solid var(--gray-200);
}

.sector-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-xl);
    border-color: var(--primary-color);
}

.sector-icon {
    width: 100px;
    height: 100px;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 25px;
}

.sector-icon i {
    font-size: 2.5rem;
    color: white;
}

.sector-card h4 {
    font-size: 1.3rem;
    margin-bottom: 15px;
}

.sector-card p {
    color: var(--gray-500);
    font-size: 15px;
    margin: 0;
}

/* -------------------- Contact Section -------------------- */
.contact-section {
    padding: 100px 0;
    background: var(--gradient-dark);
}

.contact-info {
    padding: 20px;
    color: white;
}

.contact-info .section-badge {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.contact-info .section-title {
    color: white;
}

.contact-info .section-text {
    color: var(--gray-300);
}

.contact-details {
    margin: 40px 0;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 25px;
}

.contact-icon {
    width: 55px;
    height: 55px;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.contact-icon i {
    font-size: 1.2rem;
    color: white;
}

.contact-text h5 {
    color: white;
    font-size: 1rem;
    margin-bottom: 5px;
}

.contact-text a,
.contact-text span {
    color: var(--gray-300);
    font-size: 15px;
}

.contact-text a:hover {
    color: var(--accent-color);
}

.social-links {
    display: flex;
    gap: 15px;
}

.social-link {
    width: 45px;
    height: 45px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    transition: var(--transition);
}

.social-link:hover {
    background: var(--gradient-primary);
    color: white;
    transform: translateY(-5px);
}

/* Contact Form */
.contact-form-wrapper {
    background: white;
    padding: 50px;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-2xl);
}

.contact-form .form-group label {
    font-weight: 500;
    color: var(--dark-color);
    margin-bottom: 8px;
    display: block;
}

.contact-form .form-control {
    padding: 15px 20px;
    border: 2px solid var(--gray-200);
    border-radius: var(--border-radius);
    font-size: 15px;
    transition: var(--transition);
}

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

.contact-form textarea.form-control {
    resize: none;
}

/* -------------------- Footer -------------------- */
.footer {
    background: var(--dark-color);
    padding: 80px 0 30px;
    color: var(--gray-300);
}

.footer-logo {
    height: 70px !important;
    width: 70px !important;
    max-height: 70px !important;
    max-width: 70px !important;
    min-height: 70px;
    min-width: 70px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 15px;
    border: 2px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    flex-shrink: 0;
}

.footer-brand .brand-text {
    font-size: 2rem;
    font-weight: 800;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 15px;
}

.footer-brand p {
    color: var(--gray-400);
    font-size: 15px;
}

.footer h5 {
    color: white;
    font-size: 1.1rem;
    margin-bottom: 20px;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

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

.footer-links a {
    color: var(--gray-400);
    font-size: 15px;
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--accent-color);
    padding-left: 5px;
}

.newsletter-form .input-group {
    background: var(--dark-secondary);
    border-radius: var(--border-radius);
    overflow: hidden;
}

.newsletter-form .form-control {
    background: transparent;
    border: none;
    color: white;
    padding: 15px 20px;
}

.newsletter-form .form-control::placeholder {
    color: var(--gray-500);
}

.newsletter-form .form-control:focus {
    box-shadow: none;
}

.newsletter-form .btn {
    padding: 15px 25px;
}

.footer hr {
    border-color: var(--dark-secondary);
    margin: 40px 0 25px;
}

.footer-bottom {
    padding-top: 10px;
}

.copyright {
    color: var(--gray-500);
    font-size: 14px;
    margin: 0;
}

.footer-social {
    display: flex;
    gap: 15px;
    justify-content: flex-end;
}

.footer-social a {
    width: 40px;
    height: 40px;
    background: var(--dark-secondary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gray-400);
    transition: var(--transition);
}

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

/* -------------------- Back to Top -------------------- */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    z-index: 999;
    box-shadow: var(--shadow-lg);
}

.back-to-top.active {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    transform: translateY(-5px);
    color: white;
}

/* -------------------- Responsive -------------------- */
@media (max-width: 991.98px) {
    .hero-title {
        font-size: 2.5rem;
    }

    .hero-content {
        text-align: center;
        padding-top: 120px;
    }

    .hero-subtitle {
        margin-left: auto;
        margin-right: auto;
    }

    .hero-stats {
        justify-content: center;
    }

    .hero-image {
        margin-top: 50px;
    }

    .section-title {
        font-size: 2rem;
    }

    .about-stats {
        flex-wrap: wrap;
    }

    .stat-box {
        flex: 0 0 calc(50% - 15px);
    }

    .navbar-collapse {
        background: var(--dark-secondary);
        padding: 20px;
        border-radius: var(--border-radius);
        margin-top: 15px;
    }
}

@media (max-width: 767.98px) {
    .hero-title {
        font-size: 2rem;
    }

    .hero-buttons .btn {
        display: block;
        width: 100%;
        margin-bottom: 15px;
    }

    .hero-buttons .btn:last-child {
        margin-bottom: 0;
    }

    .hero-stats {
        flex-direction: column;
        gap: 20px;
    }

    .stat-item {
        justify-content: center;
    }

    .section-title {
        font-size: 1.75rem;
    }

    .contact-form-wrapper {
        padding: 30px 20px;
    }

    .footer-social {
        justify-content: center;
        margin-top: 20px;
    }

    .about-stats {
        gap: 15px;
    }

    .stat-box {
        flex: 0 0 100%;
    }

    .intro-image,
    .about-image {
        padding: 20px;
    }

    .floating-card {
        display: none;
    }

    .experience-badge {
        right: 20px;
        bottom: 40px;
        padding: 15px 20px;
    }

    .experience-badge .years {
        font-size: 1.8rem;
    }
}

@media (max-width: 575.98px) {
    .hero-title {
        font-size: 1.75rem;
    }

    .section-badge {
        font-size: 12px;
        padding: 6px 16px;
    }

    .step-card,
    .feature-card,
    .sector-card {
        padding: 30px 20px;
    }

    .contact-item {
        flex-direction: column;
        text-align: center;
    }
}

/* -------------------- Enhanced Mobile Responsive -------------------- */

/* Tablets and below */
@media (max-width: 991.98px) {
    .container {
        padding-left: 20px;
        padding-right: 20px;
    }

    .intro-content,
    .about-content {
        text-align: center;
        padding: 20px 0;
    }

    .intro-features .feature-item {
        justify-content: center;
    }

    .feature-text {
        text-align: center;
    }

    .about-leader .leader-info {
        justify-content: center;
    }

    .about-stats {
        justify-content: center;
    }

    .module-title {
        justify-content: center;
        text-align: center;
    }
}

/* Mobile phones */
@media (max-width: 767.98px) {
    /* Prevent horizontal scroll */
    body, html {
        overflow-x: hidden !important;
        max-width: 100vw !important;
    }

    .container {
        max-width: 100% !important;
        overflow-x: hidden;
    }

    /* Hide floating shapes on mobile */
    .floating-shapes {
        display: none;
    }

    /* Hero Section */
    .hero-section {
        min-height: auto;
        padding: 100px 0 60px;
        overflow: hidden;
    }

    .hero-content {
        padding-top: 40px;
        padding-bottom: 40px;
    }

    .hero-badge {
        font-size: 11px;
        padding: 8px 15px;
        display: inline-block;
        line-height: 1.4;
        word-break: break-word;
    }

    .hero-title {
        font-size: 1.8rem;
        line-height: 1.3;
    }

    .hero-subtitle {
        font-size: 1rem;
        padding: 0 10px;
    }

    .hero-buttons {
        padding: 0 20px;
    }

    .hero-buttons .btn {
        padding: 12px 20px;
        font-size: 0.95rem;
    }

    /* Ensure all sections don't overflow */
    section {
        overflow-x: hidden;
        max-width: 100vw;
    }

    .row {
        margin-left: 0;
        margin-right: 0;
    }

    /* Section Badges */
    .section-badge {
        font-size: 11px !important;
        padding: 8px 16px !important;
        display: inline-block;
    }

    /* Section Titles */
    .section-title {
        font-size: 1.5rem;
        line-height: 1.3;
    }

    .section-subtitle {
        font-size: 0.95rem;
        padding: 0 15px;
    }

    .section-text {
        font-size: 0.95rem;
    }

    /* Introduction Section */
    .introduction-section {
        padding: 60px 0;
    }

    .intro-content {
        padding: 10px;
    }

    .intro-features .feature-item {
        flex-direction: column;
        text-align: center;
    }

    .feature-text h5 {
        font-size: 1rem;
    }

    /* Step Cards */
    .step-card {
        padding: 25px 15px;
    }

    .step-card h4 {
        font-size: 1.1rem;
    }

    .step-card p {
        font-size: 0.9rem;
    }

    .step-number {
        font-size: 2rem;
        top: 10px;
        right: 10px;
    }

    .step-icon {
        width: 60px;
        height: 60px;
    }

    .step-icon i {
        font-size: 1.5rem;
    }

    /* Feature Cards */
    .feature-card {
        padding: 25px 15px;
    }

    .feature-card h4 {
        font-size: 1rem;
    }

    .feature-card p {
        font-size: 0.9rem;
    }

    .feature-card-icon {
        width: 60px;
        height: 60px;
    }

    /* Sector Cards */
    .sector-card {
        padding: 25px 15px;
    }

    .sector-card h4 {
        font-size: 1.1rem;
    }

    .sector-icon {
        width: 70px;
        height: 70px;
    }

    .sector-icon i {
        font-size: 1.8rem;
    }

    /* About Section */
    .about-section {
        padding: 60px 0;
    }

    .about-graphic {
        height: 250px;
    }

    .about-graphic i {
        font-size: 5rem;
    }

    .leader-info {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }

    .leader-avatar {
        width: 60px;
        height: 60px;
    }

    .stat-box h3 {
        font-size: 1.5rem;
    }

    .stat-box span {
        font-size: 12px;
    }

    /* Contact Section */
    .contact-section {
        padding: 60px 0;
    }

    .contact-info {
        text-align: center;
        padding: 20px 10px;
    }

    .contact-details {
        margin: 30px 0;
    }

    .contact-icon {
        width: 45px;
        height: 45px;
    }

    .contact-text h5 {
        font-size: 0.95rem;
    }

    .contact-text a,
    .contact-text span {
        font-size: 0.9rem;
    }

    .social-links {
        justify-content: center;
    }

    .contact-form-wrapper {
        margin-top: 30px;
        padding: 25px 15px;
    }

    .contact-form .form-control {
        padding: 12px 15px;
        font-size: 14px;
    }

    /* Footer */
    .footer {
        padding: 50px 0 20px;
        text-align: center;
    }

    .footer h5 {
        margin-top: 20px;
    }

    .footer-links {
        margin-bottom: 20px;
    }

    .footer-brand {
        margin-bottom: 20px;
    }

    .footer-social,
    .social-links {
        justify-content: center;
    }

    .footer-bottom {
        text-align: center;
    }

    .footer-bottom .col-md-6 {
        margin-bottom: 15px;
    }

    /* Back to top */
    .back-to-top {
        width: 40px;
        height: 40px;
        bottom: 20px;
        right: 20px;
    }

    /* Scroll indicator */
    .scroll-indicator {
        bottom: 20px;
    }

    .scroll-indicator a {
        width: 40px;
        height: 40px;
    }

    /* Navbar */
    .navbar-logo {
        height: 40px !important;
        width: 40px !important;
        max-height: 40px !important;
        max-width: 40px !important;
        min-height: 40px;
        min-width: 40px;
    }

    .navbar-brand .brand-text {
        font-size: 1.4rem;
    }

    .navbar-collapse {
        max-height: 80vh;
        overflow-y: auto;
    }

    .navbar-nav .nav-link {
        padding: 12px 15px;
        text-align: center;
    }
}

/* Extra small phones */
@media (max-width: 400px) {
    .hero-title {
        font-size: 1.5rem;
    }

    .hero-badge {
        font-size: 10px;
        padding: 6px 12px;
    }

    .section-title {
        font-size: 1.3rem;
    }

    .section-badge {
        font-size: 10px !important;
        padding: 6px 12px !important;
    }

    .step-card h4,
    .feature-card h4,
    .sector-card h4 {
        font-size: 0.95rem;
    }

    .btn {
        padding: 10px 18px;
        font-size: 0.9rem;
    }

    .contact-form-wrapper {
        padding: 20px 12px;
    }

    .experience-badge {
        padding: 10px 15px;
    }

    .experience-badge .years {
        font-size: 1.5rem;
    }

    .experience-badge .text {
        font-size: 11px;
    }
}
