/* WhatsApp Float Button */
.whatsapp-float {
    position: fixed;
    width: 60px;
    height: 60px;
    bottom: 40px;
    right: 40px;
    background-color: #25d366;
    color: #FFF;
    border-radius: 50px;
    text-align: center;
    font-size: 30px;
    box-shadow: 2px 2px 3px #999;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.whatsapp-float:hover {
    background-color: #128C7E;
    transform: scale(1.1);
    color: #FFF;
}

.whatsapp-float i {
    margin-top: 2px;
}

/* WhatsApp Mobile Responsiveness */
@media screen and (max-width: 767px) {
    .whatsapp-float {
        width: 50px;
        height: 50px;
        bottom: 20px;
        right: 20px;
        font-size: 25px;
    }
}

/* Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap');

:root {
    /* Color Palette */
    --primary-color: #003366;
    /* Navy Blue - Trust, Professionalism */
    --secondary-color: #007bff;
    /* Bright Blue - Modern, Active */
    --accent-color: #ffcc00;
    /* Gold/Yellow - Highlights (Optional) */
    --text-color: #333333;
    --light-text: #666666;
    --background-light: #f8f9fa;
    --white: #ffffff;
    --border-color: #e0e0e0;

    /* Spacing */
    --container-width: 1320px;
    --header-height: 80px;

    /* Shadows */
    --shadow-sm: 0 2px 5px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 5px 15px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 30px rgba(0, 0, 0, 0.15);

    /* Transitions */
    --transition-fast: 0.3s ease;
}

/* Reset & Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    color: var(--text-color);
    line-height: 1.6;
    background-color: var(--white);
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition-fast);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    display: block;
}

/* Utilities */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
}

.d-flex {
    display: flex;
}

.align-center {
    align-items: center;
}

.justify-between {
    justify-content: space-between;
}

.justify-center {
    justify-content: center;
}

.flex-column {
    flex-direction: column;
}

.text-center {
    text-align: center;
}

.section-padding {
    padding: 80px 0;
}

/* Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
    color: var(--primary-color);
    font-weight: 700;
    margin-bottom: 20px;
}

h1 {
    font-size: 3.5rem;
    line-height: 1.2;
}

h2 {
    font-size: 2.5rem;
}

h3 {
    font-size: 1.5rem;
}

.text-highlight {
    color: var(--secondary-color);
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 5px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
}

.btn-primary {
    background-color: var(--secondary-color);
    color: var(--white);
    box-shadow: 0 4px 15px rgba(0, 123, 255, 0.3);
}

.btn-primary:hover {
    background-color: #0056b3;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 123, 255, 0.4);
}

.btn-outline {
    background-color: transparent;
    border: 2px solid var(--white);
    color: var(--white);
}

.btn-outline:hover {
    background-color: var(--white);
    color: var(--primary-color);
}

.btn-outline-dark {
    background-color: transparent;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
}

.btn-outline-dark:hover {
    background-color: var(--primary-color);
    color: var(--white);
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(60px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-up {
    animation: fadeInUp 1s ease forwards;
}

.fade-in-down {
    animation: fadeInDown 0.8s ease forwards;
}

.fade-in-left {
    animation: fadeInLeft 0.8s ease forwards;
}

.fade-in-right {
    animation: fadeInRight 0.8s ease forwards;
}

.scale-in {
    animation: scaleIn 0.8s ease forwards;
}

.delay-1 {
    animation-delay: 0.2s;
}

.delay-2 {
    animation-delay: 0.4s;
}

.delay-3 {
    animation-delay: 0.6s;
}

.delay-4 {
    animation-delay: 0.8s;
}

.delay-5 {
    animation-delay: 1s;
}

/* Header */
header {
    height: var(--header-height);
    background-color: var(--white);
    box-shadow: var(--shadow-sm);
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    display: flex;
    align-items: center;
}

.header-container {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
}

.logo img {
    height: 70px;
}

/* Navigation */
.nav-links {
    display: flex;
    gap: 20px;
    margin: 0 auto;
}

.header-buttons {
    display: flex;
    gap: 15px;
    align-items: center;
}

.header-buttons .btn {
    padding: 10px 20px;
    font-size: 0.85rem;
}

.nav-link {
    font-weight: 500;
    font-size: 1rem;
    color: var(--primary-color);
    position: relative;
    white-space: nowrap;
}

.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 0;
    background-color: var(--secondary-color);
    transition: width 0.3s;
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.mobile-toggle {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--primary-color);
}

/* Footer */
footer {
    background-color: var(--primary-color);
    color: var(--white);
    padding: 60px 0 20px;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-col h4 {
    color: var(--white);
    margin-bottom: 25px;
    font-size: 1.2rem;
    border-bottom: 2px solid var(--secondary-color);
    display: inline-block;
    padding-bottom: 5px;
}

.footer-col ul li {
    margin-bottom: 12px;
}

.footer-col ul li a {
    color: #cccccc;
}

.footer-col ul li a:hover {
    color: var(--secondary-color);
    padding-left: 5px;
}

.footer-bottom {
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 20px;
    font-size: 0.9rem;
    color: #cccccc;
}

/* =====================================================
   RESPONSIVE DESIGN - Mobile First Approach
   ===================================================== */

/* Large Desktop (1200px and above) */
@media (min-width: 1200px) {
    .container {
        max-width: 1320px;
    }
}

/* Desktop / Large Tablet (992px - 1199px) */
@media (max-width: 1199px) {
    .container {
        max-width: 960px;
    }

    .nav-links {
        gap: 25px;
    }

    .sector-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 30px 20px;
    }
}

/* Tablet (768px - 991px) */
@media (max-width: 991px) {
    :root {
        --header-height: 70px;
    }

    h1 {
        font-size: 2.8rem;
    }

    h2 {
        font-size: 2rem;
    }

    h3 {
        font-size: 1.3rem;
    }

    .container {
        max-width: 720px;
    }

    /* Header container mobile */
    .header-container {
        padding: 0 15px;
    }

    /* Logo mobile */
    .logo img {
        height: 55px;
    }

    /* Header - Show mobile toggle */
    .mobile-toggle {
        display: flex !important;
        align-items: center;
        justify-content: center;
        width: 40px;
        height: 40px;
        font-size: 1.5rem;
        cursor: pointer;
        color: var(--primary-color);
        background: transparent;
        border: none;
        z-index: 1001;
    }

    /* Navigation - Full screen overlay */
    .nav-links {
        position: fixed !important;
        top: var(--header-height) !important;
        left: -100% !important;
        transform: none !important;
        width: 100% !important;
        height: calc(100vh - var(--header-height));
        background-color: var(--white);
        flex-direction: column;
        align-items: center;
        justify-content: flex-start;
        padding-top: 20px;
        gap: 0;
        transition: left 0.3s ease;
        box-shadow: var(--shadow-lg);
        z-index: 999;
        overflow-y: auto;
    }

    .nav-links.active {
        left: 0 !important;
    }

    .nav-links .nav-link {
        display: block;
        width: 100%;
        padding: 18px 30px;
        text-align: center;
        font-size: 1.1rem;
        border-bottom: 1px solid var(--border-color);
    }

    .nav-links .nav-link:last-child {
        border-bottom: none;
    }

    .nav-links .nav-link::after {
        display: none;
    }

    .nav-links .nav-link:hover {
        background-color: var(--background-light);
        color: var(--secondary-color);
    }

    /* Header buttons */
    .header-buttons {
        gap: 10px;
    }

    .header-buttons .btn {
        padding: 8px 14px;
        font-size: 0.75rem;
    }

    /* Hero Section */
    .hero-section {
        height: auto;
        min-height: 500px;
        padding-top: 100px;
        padding-bottom: 60px;
    }

    .hero-content h1 {
        font-size: 2.2rem;
    }

    .hero-content p {
        font-size: 1rem;
    }

    /* Stats Bar */
    .stats-bar {
        padding: 30px 20px;
        flex-wrap: wrap;
        justify-content: center;
        gap: 20px;
    }

    .stat-item {
        flex: 1 1 calc(50% - 20px);
        padding: 15px 10px;
    }

    .stat-number {
        font-size: 2rem;
    }

    .stat-label {
        font-size: 0.8rem;
    }

    /* Feature Grid */
    .feature-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }

    .feature-card {
        padding: 30px 20px;
    }

    .feature-icon {
        font-size: 2.5rem;
        margin-bottom: 20px;
    }

    /* Sector Grid */
    .sector-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 25px 15px;
    }

    .sector-icon {
        width: 70px;
        height: 70px;
    }

    .sector-icon i {
        font-size: 1.8rem;
    }

    .sector-title {
        font-size: 0.85rem;
    }

    /* Section Padding */
    .section-padding {
        padding: 60px 0;
    }

    /* Footer */
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 30px;
    }
}

/* Mobile Large (576px - 767px) */
@media (max-width: 767px) {
    :root {
        --header-height: 65px;
    }

    h1 {
        font-size: 2.2rem;
    }

    h2 {
        font-size: 1.75rem;
    }

    h3 {
        font-size: 1.2rem;
    }

    .container {
        max-width: 100%;
        padding: 0 15px;
    }

    /* Logo */
    .logo img {
        height: 50px;
    }

    /* Header Buttons - Hide completely on mobile */
    .header-buttons {
        display: none !important;
    }

    /* Hero Section */
    .hero-section {
        min-height: 450px;
        padding-top: 90px;
        padding-bottom: 50px;
        background-position: center center;
    }

    .hero-content {
        padding: 0 10px;
    }

    .hero-content h1 {
        font-size: 1.8rem;
        line-height: 1.3;
    }

    .hero-content h1 br {
        display: none;
    }

    .hero-content p {
        font-size: 0.95rem;
        margin-bottom: 25px;
    }

    .hero-content .btn {
        display: block;
        width: 100%;
        max-width: 280px;
        margin: 10px auto !important;
        text-align: center;
    }

    /* Stats Bar */
    .stats-bar {
        margin-top: -30px;
        padding: 25px 15px;
        border-radius: 10px;
    }

    .stat-item {
        flex: 1 1 calc(50% - 10px);
        padding: 12px 8px;
    }

    .stat-number {
        font-size: 1.75rem;
    }

    .stat-label {
        font-size: 0.75rem;
    }

    /* Feature Grid */
    .feature-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .feature-card {
        padding: 25px 20px;
    }

    .feature-card h3 {
        font-size: 1.15rem;
    }

    .feature-card p {
        font-size: 0.9rem;
    }

    /* Sector Section */
    .sector-section {
        padding: 60px 0;
    }

    .sector-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px 15px;
    }

    .sector-icon {
        width: 65px;
        height: 65px;
        border-radius: 14px;
    }

    .sector-icon i {
        font-size: 1.6rem;
    }

    .sector-title {
        font-size: 0.8rem;
    }

    /* Sector grid - Force 2 columns on mobile */
    .sector-section .sector-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 25px 20px !important;
    }

    .sector-section .sector-icon {
        width: 70px !important;
        height: 70px !important;
    }

    .sector-section .sector-icon i {
        font-size: 1.6rem !important;
    }

    .sector-section .sector-title {
        font-size: 0.85rem !important;
    }

    /* Section Padding */
    .section-padding {
        padding: 50px 0;
    }

    /* Footer */
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 35px;
        text-align: center;
    }

    .footer-col h4 {
        display: block;
        margin-bottom: 15px;
    }

    .footer-col ul li {
        margin-bottom: 10px;
    }

    footer {
        padding: 50px 0 20px;
    }

    /* Step Grid for System Page */
    .step-grid {
        grid-template-columns: 1fr;
        gap: 25px;
    }

    .step-card {
        padding: 25px 20px;
    }
}

/* Mobile Small (max-width: 575px) */
@media (max-width: 575px) {
    :root {
        --header-height: 60px;
    }

    h1 {
        font-size: 1.75rem;
    }

    h2 {
        font-size: 1.5rem;
    }

    h3 {
        font-size: 1.1rem;
    }

    /* Buttons */
    .btn {
        padding: 10px 20px;
        font-size: 0.85rem;
    }

    /* Logo */
    .logo img {
        height: 45px;
    }

    /* Mobile Toggle */
    .mobile-toggle {
        font-size: 1.3rem;
        padding: 5px;
    }

    /* Nav Links Mobile */
    .nav-links .nav-link {
        padding: 15px 20px;
        font-size: 1rem;
    }

    /* Hero Section */
    .hero-section {
        min-height: 400px;
        padding-top: 80px;
        padding-bottom: 40px;
    }

    .hero-content h1 {
        font-size: 1.6rem;
    }

    .hero-content p {
        font-size: 0.9rem;
        margin-bottom: 20px;
    }

    /* Stats Bar */
    .stats-bar {
        flex-direction: column;
        padding: 20px 15px;
    }

    .stat-item {
        flex: 1 1 100%;
        padding: 10px 0;
        border-bottom: 1px solid var(--border-color);
    }

    .stat-item:last-child {
        border-bottom: none;
    }

    .stat-number {
        font-size: 1.5rem;
    }

    /* Sector Grid */
    .sector-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px 10px;
    }

    .sector-icon {
        width: 55px;
        height: 55px;
        border-radius: 12px;
        margin-bottom: 10px;
    }

    .sector-icon i {
        font-size: 1.4rem;
    }

    .sector-title {
        font-size: 0.75rem;
    }

    /* Footer Mobile */
    .footer-col p {
        font-size: 0.85rem;
    }

    .footer-bottom p {
        font-size: 0.8rem;
    }

    .social-links a {
        margin: 0 10px !important;
    }
}

/* Extra Small Devices (max-width: 400px) */
@media (max-width: 400px) {
    h1 {
        font-size: 1.5rem;
    }

    h2 {
        font-size: 1.35rem;
    }

    .hero-content h1 {
        font-size: 1.4rem;
    }

    .hero-content p {
        font-size: 0.85rem;
    }

    .sector-grid {
        gap: 12px 8px;
    }

    .sector-icon {
        width: 50px;
        height: 50px;
    }

    .sector-icon i {
        font-size: 1.2rem;
    }

    .sector-title {
        font-size: 0.7rem;
    }

    .stat-number {
        font-size: 1.4rem;
    }

    .stat-label {
        font-size: 0.7rem;
    }
}

/* Touch Device Optimizations */
@media (hover: none) and (pointer: coarse) {
    .nav-link:hover::after {
        width: 0;
    }

    .feature-card:hover {
        transform: none;
    }

    .sector-card:hover {
        transform: none;
    }

    .sector-card:hover .sector-icon {
        transform: none;
    }

    .btn:hover {
        transform: none;
    }
}

/* Landscape Mobile */
@media (max-width: 767px) and (orientation: landscape) {
    .hero-section {
        min-height: 350px;
        padding-top: 70px;
        padding-bottom: 30px;
    }

    .nav-links {
        padding-top: 20px;
    }

    .nav-links .nav-link {
        padding: 12px 20px;
    }
}

/* Homepage Specifics */
.hero-section {
    background: url('../../hero.png');
    background-size: cover;
    background-position: center;
    height: 85vh;
    min-height: 650px;
    display: flex;
    align-items: flex-start;
    /* Changed to flex-start */
    padding-top: 120px;
    /* Push content down from header but keep it higher */
    color: var(--white);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
    z-index: 2;
    opacity: 0;
    animation: fadeInUp 1.2s ease forwards;
}

.hero-content h1 {
    opacity: 0;
    animation: fadeInDown 1s ease forwards;
    animation-delay: 0.3s;
}

.hero-content p {
    opacity: 0;
    animation: fadeInUp 1s ease forwards;
    animation-delay: 0.6s;
}

.hero-content div {
    opacity: 0;
    animation: fadeInUp 1s ease forwards;
    animation-delay: 0.9s;
}

.hero-section::before {
    display: none;
    /* Remove overlay pattern since hero.png has its own design */
}

.stats-bar {
    background-color: var(--white);
    padding: 40px 60px;
    /* Added horizontal padding */
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    /* Increased shadow */
    margin-top: -50px;
    position: relative;
    z-index: 10;
    border-radius: 12px;
}

.stat-item {
    text-align: center;
    padding: 20px 30px;
    /* Added more horizontal padding */
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--secondary-color);
    display: block;
}

.stat-label {
    color: var(--light-text);
    font-weight: 500;
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 1px;
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.feature-card {
    background: var(--white);
    padding: 40px;
    border-radius: 10px;
    box-shadow: var(--shadow-sm);
    transition: var(--transition-fast);
    text-align: center;
    border: 1px solid var(--border-color);
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
    border-color: var(--secondary-color);
}

.feature-icon {
    font-size: 3rem;
    color: var(--secondary-color);
    margin-bottom: 25px;
}

/* Sectors Section Redesign */
.sector-section {
    background-color: #2c5f96;
    color: var(--white);
    padding: 80px 0;
}

.sector-section h2,
.sector-section p {
    color: var(--white) !important;
}

.sector-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    /* Exactly 5 columns */
    gap: 40px 30px;
    justify-items: center;
}

.sector-card {
    background: transparent;
    padding: 0;
    box-shadow: none;
    border: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    cursor: pointer;
    transition: transform 0.3s ease;
    width: 100%;
}

.sector-card:hover {
    transform: translateY(-5px);
}

.sector-icon {
    width: 90px;
    height: 90px;
    background: #ffffff;
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 15px auto;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
}

.sector-icon i {
    font-size: 2.2rem;
    color: #1a5490;
    line-height: 1;
    display: block;
    text-align: center;
}

.sector-card:hover .sector-icon {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.sector-title {
    color: var(--white);
    font-weight: 500;
    font-size: 0.95rem;
    line-height: 1.4;
    text-align: center;
}


/* System Page Process Steps */
.process-container {
    padding: 60px 0;
}

.step-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 50px;
    position: relative;
}

.step-card {
    background: var(--white);
    padding: 30px;
    border-radius: 12px;
    box-shadow: var(--shadow-sm);
    text-align: center;
    position: relative;
    z-index: 2;
    border: 1px solid var(--border-color);
}

.step-number {
    width: 50px;
    height: 50px;
    background-color: var(--primary-color);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0 auto 20px;
    transition: 0.3s;
}

.step-card:hover .step-number {
    background-color: var(--secondary-color);
    transform: scale(1.1);
}

.process-line {
    display: none;
    /* Hidden on mobile */
}

@media (min-width: 992px) {
    .step-grid::before {
        content: '';
        position: absolute;
        top: 55px;
        left: 10%;
        right: 10%;
        height: 2px;
        background-color: var(--border-color);
        z-index: 1;
    }
}