/* Modern Design for 3S Association - Inspired by Tailwind/React */
:root {
    /* Brand Colors */
    --orange-500: #FF6B35;
    --orange-600: #E55A2B;
    --orange-50: #FFF7F0;
    --orange-100: #FFE8D6;
    --orange-200: #FFD4B3;
    --orange-400: #FF8C5A;
    --orange-700: #C9481F;

    --blue-600: #1BA4D8;
    --blue-500: #4AB8E8;
    --blue-400: #6EC4F0;
    --blue-50: #E6F5FC;
    --blue-100: #CCEBF9;
    --blue-200: #B3E1F6;

    --gray-50: #F8F9FA;
    --gray-100: #F1F5F9;
    --gray-200: #E2E8F0;
    --gray-300: #CBD5E1;
    --gray-600: #475569;
    --gray-700: #334155;
    --gray-900: #0F172A;

    --white: #FFFFFF;
    --black: #000000;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 1rem;
    line-height: 1.6;
    color: var(--gray-900);
    background-color: var(--white);
    -webkit-font-smoothing: antialiased;
    padding-top: 100px;
}

/* Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-weight: 700;
    line-height: 1.2;
    color: var(--gray-900);
}

h1 {
    font-size: clamp(2.5rem, 6vw, 3.75rem);
}

h2 {
    font-size: clamp(2rem, 4vw, 2.5rem);
}

h3 {
    font-size: clamp(1.5rem, 3vw, 1.875rem);
}

/* Navigation - Fixed with backdrop blur */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background-color: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    z-index: 50;
    border-bottom: 1px solid var(--gray-100);
    padding: 0.75rem 0;
}

.navbar-brand img {
    height: 70px;
    width: auto;
    max-height: 70px;
}

.nav-link {
    color: var(--gray-700) !important;
    font-weight: 500;
    padding: 0.5rem 1rem !important;
    transition: color 0.3s ease;
}

.nav-link:hover {
    color: var(--blue-600) !important;
}

.navbar-toggler {
    border: none;
    padding: 0.25rem 0.5rem;
}

.navbar-toggler:focus {
    box-shadow: none;
}

/* Buttons - Rounded full style */
.btn {
    font-weight: 600;
    padding: 1rem 2rem;
    border-radius: 9999px;
    border: none;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
    cursor: pointer;
}

.btn-primary,
.btn-warning {
    background-color: var(--orange-500);
    color: var(--white);
}

.btn-primary:hover,
.btn-warning:hover {
    background-color: var(--orange-600);
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(255, 107, 53, 0.3);
}

.btn-secondary {
    background-color: var(--blue-600);
    color: var(--white);
}

.btn-secondary:hover {
    background-color: var(--blue-500);
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(46, 92, 138, 0.3);
}

.btn-outline-primary {
    background-color: transparent;
    border: 2px solid var(--blue-600);
    color: var(--blue-600);
}

.btn-outline-primary:hover {
    background-color: var(--blue-600);
    color: var(--white);
}

.btn-light {
    background-color: var(--white);
    color: var(--gray-900);
}

.btn-light:hover {
    background-color: var(--gray-50);
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

/* Hero Section */
.hero-section {
    padding-top: 20px;
    padding-bottom: 80px;
    background: linear-gradient(135deg, var(--orange-50) 0%, var(--white) 50%, var(--blue-50) 100%);
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: -100px;
    left: -100px;
    width: 400px;
    height: 400px;
    background: var(--orange-200);
    border-radius: 50%;
    mix-blend-mode: multiply;
    filter: blur(60px);
    opacity: 0.7;
    animation: blob 7s infinite;
}

.hero-section::after {
    content: '';
    position: absolute;
    bottom: -150px;
    right: -100px;
    width: 400px;
    height: 400px;
    background: var(--blue-200);
    border-radius: 50%;
    mix-blend-mode: multiply;
    filter: blur(60px);
    opacity: 0.7;
    animation: blob 7s infinite 2s;
}

@keyframes blob {

    0%,
    100% {
        transform: translate(0, 0) scale(1);
    }

    33% {
        transform: translate(30px, -50px) scale(1.1);
    }

    66% {
        transform: translate(-20px, 20px) scale(0.9);
    }
}

.hero-content {
    position: relative;
    z-index: 2;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background-color: var(--orange-100);
    color: var(--orange-700);
    padding: 0.5rem 1rem;
    border-radius: 9999px;
    font-size: 0.875rem;
    font-weight: 500;
    margin-bottom: 1.5rem;
}

.hero-title {
    font-size: clamp(2.5rem, 6vw, 3.75rem);
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 1.5rem;
}

.hero-title .highlight {
    color: var(--orange-500);
}

.hero-subtitle {
    font-size: clamp(1.125rem, 2vw, 1.25rem);
    color: var(--gray-600);
    line-height: 1.8;
    margin-bottom: 2rem;
}

.hero-image-wrapper {
    position: relative;
}

.hero-image-wrapper::before {
    content: '';
    position: absolute;
    top: -20px;
    left: -20px;
    width: 300px;
    height: 300px;
    background: var(--orange-200);
    border-radius: 50%;
    mix-blend-mode: multiply;
    filter: blur(60px);
    opacity: 0.7;
}

.hero-image-wrapper::after {
    content: '';
    position: absolute;
    bottom: -30px;
    right: -20px;
    width: 300px;
    height: 300px;
    background: var(--blue-200);
    border-radius: 50%;
    mix-blend-mode: multiply;
    filter: blur(60px);
    opacity: 0.7;
}

.hero-image {
    position: relative;
    background: var(--white);
    border-radius: 1.5rem;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.15);
    overflow: hidden;
    z-index: 1;
    width: 100%;
    min-height: 500px;
}

.hero-image img,
.hero-img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    min-height: 500px;
}

/* Section Styles */
.section {
    padding: 80px 0;
}

.section-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 4rem;
}

.section-title {
    font-size: clamp(2rem, 4vw, 2.5rem);
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: 1rem;
}

.section-subtitle {
    font-size: 1.25rem;
    color: var(--gray-600);
}

/* Cards */
.modern-card {
    background: var(--white);
    border-radius: 1.5rem;
    padding: 2rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.07);
    transition: all 0.3s ease;
    height: 100%;
}

.modern-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.12);
}

.card-icon {
    width: 56px;
    height: 56px;
    border-radius: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    transition: transform 0.3s ease;
}

.modern-card:hover .card-icon {
    transform: scale(1.1);
}

.card-icon-orange {
    background-color: var(--orange-500);
    color: var(--white);
}

.card-icon-blue {
    background-color: var(--blue-600);
    color: var(--white);
}

.card-icon-dark {
    background-color: var(--black);
    color: var(--white);
}

.modern-card h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
}

.modern-card p {
    color: var(--gray-600);
    line-height: 1.7;
}

/* Service Cards */
.service-card {
    background: var(--white);
    border-radius: 1.5rem;
    overflow: hidden;
    box-shadow: 0 10px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.service-card:hover {
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.15);
}

.service-image {
    height: 192px;
    background-size: cover;
    background-position: center;
}

.service-image-orange {
    background: linear-gradient(135deg, var(--orange-400) 0%, var(--orange-600) 100%);
}

.service-image-blue {
    background: linear-gradient(135deg, var(--blue-400) 0%, var(--blue-600) 100%);
}

.service-image {
    height: 192px;
    background-size: cover;
    background-position: center;
}

.service-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.service-content {
    padding: 2rem;
}

.service-icon-wrapper {
    display: inline-flex;
    background-color: var(--orange-100);
    padding: 0.5rem;
    border-radius: 0.5rem;
    margin-bottom: 1rem;
}

.service-icon-blue {
    background-color: var(--blue-100);
}

.service-content h3 {
    font-size: 1.75rem;
    margin-bottom: 1rem;
}

.service-link {
    color: var(--orange-600);
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 1.5rem;
    transition: gap 0.3s ease;
}

.service-link:hover {
    gap: 0.75rem;
}

.service-link-blue {
    color: var(--blue-600);
}

/* Statistics Section */
.stats-section {
    background: linear-gradient(135deg, var(--orange-500) 0%, var(--blue-600) 100%);
    color: var(--white);
    padding: 40px 0;
}

.stats-section .stats-card {
    text-align: center;
    padding: 2rem;
}

.stats-section .icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: rgba(255, 255, 255, 0.9);
}

.stat-number {
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    font-weight: 700;
    color: var(--white);
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 500;
}

/* CTA Section */
.cta-section {
    background: linear-gradient(135deg, var(--orange-500) 0%, var(--blue-600) 100%);
    padding: 80px 0;
    text-align: center;
    color: var(--white);
}

.cta-title {
    font-size: clamp(2rem, 4vw, 2.5rem);
    font-weight: 700;
    color: var(--white);
    margin-bottom: 1.5rem;
}

.cta-subtitle {
    font-size: 1.25rem;
    color: rgba(255, 255, 255, 0.95);
    margin-bottom: 2rem;
}

/* Footer */
.footer {
    background-color: var(--gray-900);
    color: var(--gray-300);
    padding: 3rem 0 1rem;
}

.footer h5 {
    color: var(--white);
    font-weight: 600;
    margin-bottom: 1rem;
}

.footer p {
    color: var(--gray-300);
}

.footer a {
    color: var(--gray-300);
    transition: color 0.3s ease;
}

.footer a:hover {
    color: var(--orange-500);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 2rem;
    margin-top: 2rem;
    text-align: center;
    font-size: 0.875rem;
    color: var(--gray-300);
}

/* Utility Classes */
.bg-gradient-hero {
    background: linear-gradient(135deg, var(--orange-50) 0%, var(--white) 50%, var(--blue-50) 100%);
}

.text-orange {
    color: var(--orange-500);
}

.text-blue {
    color: var(--blue-600);
}

/* Responsive */
@media (max-width: 768px) {
    body {
        padding-top: 80px;
    }

    .hero-section {
        padding-top: 20px;
        padding-bottom: 60px;
    }

    .section {
        padding: 60px 0;
    }

    .btn {
        width: 100%;
        justify-content: center;
    }
}

/* Animation delays */
.animation-delay-2000 {
    animation-delay: 2s;
}

/* Bootstrap overrides */
.container {
    max-width: 1280px;
}

.py-20 {
    padding-top: 5rem;
    padding-bottom: 5rem;
}

.px-4 {
    padding-left: 1rem;
    padding-right: 1rem;
}

.space-y-8>*+* {
    margin-top: 2rem;
}

.gap-4 {
    gap: 1rem;
}

.rounded-full {
    border-radius: 9999px;
}

.rounded-2xl {
    border-radius: 1rem;
}

.shadow-xl {
    box-shadow: 0 20px 25px rgba(0, 0, 0, 0.1);
}

/* =========================================
   Mobile Responsiveness Improvements
   ========================================= */

@media (max-width: 991.98px) {

    /* Navbar Mobile Tweaks */
    .navbar-collapse {
        background: var(--white);
        padding: 1.5rem;
        border-radius: 1rem;
        box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
        margin-top: 1rem;
        border: 1px solid var(--gray-100);
    }

    .navbar-nav .nav-link {
        padding: 0.75rem 0 !important;
        border-bottom: 1px solid var(--gray-50);
    }

    .navbar-nav .nav-item:last-child .nav-link {
        border-bottom: none;
    }

    .navbar-nav .btn {
        margin-top: 1rem;
        width: 100%;
        justify-content: center;
    }

    /* Hero Text on Tablet/Small Laptop */
    .hero-title {
        font-size: 3rem;
    }
}

@media (max-width: 767.98px) {

    /* Navbar Brand */
    .navbar-brand img {
        height: 50px;
    }

    /* Hero Section - Mobile Background Redesign */
    .hero-section {
        text-align: center;
        padding-top: 100px;
        padding-bottom: 80px;
        background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)), url('../images/home-hero.png');
        background-size: cover;
        background-position: center;
        background-repeat: no-repeat;
        color: var(--white);
        margin-top: -20px;
        /* Offset the body padding if needed, or adjust based on navbar */
    }

    .hero-section::before,
    .hero-section::after {
        display: none;
        /* Hide the blobs on mobile */
    }

    .hero-content {
        display: flex;
        flex-direction: column;
        align-items: center;
        position: relative;
        z-index: 2;
    }

    .hero-badge {
        margin-left: auto;
        margin-right: auto;
        background-color: rgba(255, 255, 255, 0.2);
        color: var(--white);
        backdrop-filter: blur(5px);
        border: 1px solid rgba(255, 255, 255, 0.3);
    }

    .hero-title {
        font-size: 2.25rem;
        color: var(--white);
        text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    }

    .hero-title .highlight {
        color: var(--orange-400);
        /* Lighter orange for better contrast on dark */
    }

    .hero-subtitle {
        font-size: 1.125rem;
        margin-left: auto;
        margin-right: auto;
        color: rgba(255, 255, 255, 0.9);
        text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
        font-weight: 500;
    }

    .hero-content .d-flex {
        flex-direction: column;
        width: 100%;
        gap: 1rem !important;
    }

    .hero-content .btn {
        width: 100%;
        justify-content: center;
    }

    .btn-outline-primary {
        border-color: var(--white);
        color: var(--white);
    }

    .btn-outline-primary:hover {
        background-color: var(--white);
        color: var(--primary-color);
        border-color: var(--white);
    }

    /* Hide the original image wrapper on mobile */
    .hero-image-wrapper {
        display: none;
    }

    /* Stats */
    .stats-section {
        padding: 40px 0;
    }

    .stats-section .stats-card {
        padding: 1.5rem 1rem;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }

    /* Modern Cards */
    .modern-card,
    .service-card {
        margin-bottom: 1.5rem;
    }

    .service-image {
        height: 200px;
    }

    /* Footer */
    .footer {
        text-align: center;
    }

    .footer .col-lg-2,
    .footer .col-lg-4 {
        margin-bottom: 2rem;
    }

    .footer-bottom .text-md-end {
        text-align: center !important;
        margin-top: 1rem;
    }
}