﻿/*=========================================================
  EMS PRO - HOME PAGE
  Part 1 : Global + Navbar + Hero
  Bootstrap 5.3 | Mobile First
==========================================================*/


/*=========================
    GOOGLE FONT
==========================*/
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700;800&display=swap');


/*=========================
        VARIABLES
==========================*/

:root {
    --primary: #2563EB;
    --primary-dark: #1D4ED8;
    --dark: #0F172A;
    --gray: #64748B;
    --light: #F8FAFC;
    --white: #FFFFFF;
    --border: #E2E8F0;
    --radius-sm: 8px;
    --radius: 14px;
    --radius-lg: 22px;
    --shadow-sm: 0 2px 8px rgba(0,0,0,.05);
    --shadow: 0 8px 30px rgba(0,0,0,.08);
    --shadow-lg: 0 20px 50px rgba(0,0,0,.15);
    --transition: .35s ease;
}


/*=========================
      GLOBAL
==========================*/

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Poppins',sans-serif;
    background: var(--white);
    color: var(--dark);
    overflow-x: hidden;
    line-height: 1.7;
    padding-top: 90px;
}

img {
    max-width: 100%;
    display: block;
}

a {
    text-decoration: none;
    transition: var(--transition);
}

ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

section {
    padding: 70px 0;
}

.container {
    max-width: 1200px;
}


/*=========================
      TYPOGRAPHY
==========================*/

.section-title {
    font-size: 2rem;
    font-weight: 800;
    text-align: center;
    margin-bottom: 18px;
    color: var(--dark);
}

    .section-title::after {
        content: "";
        width: 65px;
        height: 5px;
        background: var(--primary);
        display: block;
        margin: 15px auto 0;
        border-radius: 100px;
    }

.section-description {
    text-align: center;
    color: var(--gray);
    max-width: 650px;
    margin: auto auto 60px;
}


/*======================================================
                    NAVBAR
=======================================================*/

/* =========================
   FIXED NAVBAR
========================= */

.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1055;
    background: rgba(255,255,255,.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(0,0,0,.06);
    padding: 14px 0;
    transition: all .35s ease;
}

    .navbar.scrolled {
        padding: 10px 0;
        background: rgba(255,255,255,.98);
        box-shadow: 0 8px 25px rgba(0,0,0,.08);
    }

.navbar-brand {
    color: var(--primary) !important;
    font-size: 1.5rem;
    font-weight: 700;
}

    .navbar-brand i {
        margin-right: 8px;
    }

.navbar-toggler {
    border: none;
    box-shadow: none !important;
}

.navbar-collapse {
    margin-top: 15px;
}

.nav-link {
    color: var(--dark) !important;
    font-weight: 500;
    padding: 12px 0 !important;
    position: relative;
}

    .nav-link:hover {
        color: var(--primary) !important;
    }

    .nav-link::after {
        content: "";
        position: absolute;
        left: 0;
        bottom: 6px;
        width: 0;
        height: 2px;
        background: var(--primary);
        transition: .3s;
    }

    .nav-link:hover::after {
        width: 100%;
    }


/*=========================
    NAV BUTTONS
==========================*/

.btn-login {
    display: block;
    width: 100%;
    text-align: center;
    padding: 12px;
    border-radius: 10px;
    border: 2px solid var(--primary);
    color: var(--primary);
    font-weight: 600;
    margin-top: 12px;
}

    .btn-login:hover {
        background: var(--primary);
        color: white;
    }

.btn-primary-custom {
    display: block;
    width: 100%;
    text-align: center;
    padding: 12px;
    border-radius: 10px;
    background: linear-gradient(135deg,var(--primary),var(--primary-dark));
    color: white;
    font-weight: 600;
    margin-top: 12px;
}

    .btn-primary-custom:hover {
        color: white;
        transform: translateY(-2px);
        box-shadow: var(--shadow);
    }


/*======================================================
                    HERO
=======================================================*/

.hero-section {
    background: linear-gradient(135deg,#2563EB 0%,#1D4ED8 55%,#0F172A 100%);
    color: white;
    padding-bottom: 70px;
    position: relative;
    overflow: hidden;
}


    /* floating circles */

    .hero-section::before {
        content: "";
        position: absolute;
        width: 300px;
        height: 300px;
        background: rgba(255,255,255,.08);
        border-radius: 50%;
        top: -120px;
        right: -120px;
    }

    .hero-section::after {
        content: "";
        position: absolute;
        width: 220px;
        height: 220px;
        background: rgba(255,255,255,.04);
        border-radius: 50%;
        left: -70px;
        bottom: -70px;
    }


/*=========================
 HERO CONTENT
==========================*/

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
}

.hero-headline {
    font-size: 2.4rem;
    font-weight: 800;
    line-height: 1.15;
    margin-bottom: 20px;
}

.hero-subheadline {
    font-size: 1rem;
    color: rgba(255,255,255,.88);
    max-width: 550px;
    margin: auto;
    margin-bottom: 35px;
}


/*=========================
 HERO BUTTONS
==========================*/

.hero-buttons {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.btn-cta {
    width: 100%;
    padding: 15px;
    border-radius: 12px;
    font-weight: 600;
    transition: .3s;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    min-height: 52px;
}

.btn-cta-primary {
    background: white;
    color: var(--primary);
}

    .btn-cta-primary:hover {
        transform: translateY(-4px);
    }

.btn-cta-secondary {
    border: 2px solid white;
    color: white;
}

    .btn-cta-secondary:hover {
        background: white;
        color: var(--primary);
    }


/*=========================
 HERO CARDS
==========================*/

.hero-illustration {
    margin-top: 50px;
}

.floating-card {
    background: rgba(255,255,255,.12);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255,255,255,.15);
    border-radius: 18px;
    padding: 25px;
    margin-bottom: 20px;
}

    .floating-card h6 {
        font-size: .9rem;
        opacity: .85;
        margin-bottom: 10px;
    }

    .floating-card h3 {
        font-size: 2rem;
        font-weight: 700;
    }


/*======================================================
                TABLET (768px+)
=======================================================*/

@media(min-width:768px) {

    .hero-headline {
        font-size: 3.3rem;
    }

    .hero-subheadline {
        font-size: 1.15rem;
    }

    .hero-buttons {
        flex-direction: row;
        justify-content: center;
    }

    .btn-cta {
        width: auto;
        min-width: 180px;
    }
}


/*======================================================
                LAPTOP (992px+)
=======================================================*/

@media(min-width:992px) {

    .navbar-collapse {
        margin-top: 0;
    }

    .nav-link {
        margin: 0 12px;
    }

    .btn-login {
        width: auto;
        margin-top: 0;
        padding: 10px 24px;
    }

    .btn-primary-custom {
        width: auto;
        margin-top: 0;
        padding: 10px 24px;
    }

    .hero-content {
        text-align: left;
    }

    .hero-subheadline {
        margin-left: 0;
    }

    .hero-buttons {
        justify-content: flex-start;
    }

    .hero-illustration {
        margin-top: 0;
        padding-left: 40px;
    }
}


/*======================================================
                DESKTOP (1200px+)
=======================================================*/

@media(min-width:1200px) {

    .hero-section {
        min-height: 90vh;
        display: flex;
        align-items: center;
    }

    .hero-headline {
        font-size: 4.4rem;
    }

    .hero-subheadline {
        font-size: 1.2rem;
    }
}
/*=========================================================
    PART 2
    ABOUT
    FEATURES
    EMPLOYEE STATS
    DEPARTMENTS
=========================================================*/


/*==========================================
            COMMON SECTION
==========================================*/

.about-section,
.features-section,
.employees-section,
.departments-section {
    padding: 80px 0;
}

.about-section,
.employees-section {
    background: var(--light);
}

.features-section,
.departments-section {
    background: var(--white);
}



/*==========================================
              ABOUT
==========================================*/

.about-card {
    background: #fff;
    border-radius: 20px;
    padding: 35px 28px;
    height: 100%;
    text-align: center;
    border: 1px solid var(--border);
    transition: .35s;
    box-shadow: var(--shadow-sm);
}

    .about-card:hover {
        transform: translateY(-8px);
        box-shadow: var(--shadow-lg);
        border-color: var(--primary);
    }

.about-icon {
    width: 80px;
    height: 80px;
    margin: auto auto 25px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(37,99,235,.08);
    color: var(--primary);
    font-size: 2rem;
}

.about-card h4 {
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 15px;
    color: var(--dark);
}

.about-card p {
    color: var(--gray);
    line-height: 1.8;
    margin: 0;
}



/*==========================================
            FEATURES
==========================================*/

.feature-card {
    background: #fff;
    border-radius: 20px;
    padding: 35px 30px;
    border: 1px solid var(--border);
    height: 100%;
    transition: .35s;
    text-align: center;
}

    .feature-card:hover {
        transform: translateY(-10px);
        border-color: var(--primary);
        box-shadow: var(--shadow-lg);
    }

.feature-icon {
    width: 85px;
    height: 85px;
    margin: auto auto 25px;
    border-radius: 18px;
    background: linear-gradient( 135deg, var(--primary), var(--primary-dark) );
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
}

.feature-card h5 {
    font-size: 1.35rem;
    font-weight: 700;
    margin-bottom: 15px;
}

.feature-card p {
    color: var(--gray);
    line-height: 1.8;
}



/*==========================================
         EMPLOYEE STATISTICS
==========================================*/

.stats-card {
    background: #fff;
    border-radius: 20px;
    padding: 35px 25px;
    text-align: center;
    height: 100%;
    border: 1px solid var(--border);
    transition: .35s;
    position: relative;
    overflow: hidden;
}

    .stats-card::before {
        content: "";
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 5px;
        background: linear-gradient( 90deg, var(--primary), var(--primary-dark) );
    }

    .stats-card:hover {
        transform: translateY(-10px);
        box-shadow: var(--shadow-lg);
    }

.stats-number h3 {
    font-size: 3rem;
    font-weight: 800;
    color: var(--primary);
    margin-bottom: 10px;
}

.stats-label {
    font-size: 1rem;
    color: var(--gray);
    font-weight: 500;
}



/*==========================================
          DEPARTMENTS
==========================================*/

.dept-card {
    background: #fff;
    border-radius: 20px;
    border: 1px solid var(--border);
    padding: 35px 30px;
    text-align: center;
    transition: .35s;
    height: 100%;
}

    .dept-card:hover {
        transform: translateY(-10px);
        border-color: var(--primary);
        box-shadow: var(--shadow-lg);
    }

.dept-icon {
    width: 80px;
    height: 80px;
    margin: auto auto 20px;
    border-radius: 18px;
    display: flex;
    justify-content: center;
    align-items: center;
    background: rgba(37,99,235,.08);
    color: var(--primary);
    font-size: 2rem;
}

.dept-card h5 {
    font-size: 1.35rem;
    font-weight: 700;
    margin-bottom: 10px;
}

.dept-count {
    font-size: 2rem;
    font-weight: 800;
    color: var(--primary);
    margin-bottom: 12px;
}

.dept-card p {
    color: var(--gray);
    margin: 0;
}



/*==========================================
      SECTION ANIMATION
==========================================*/

.scroll-reveal {
    opacity: 0;
    transform: translateY(60px);
    transition: 1s;
}

    .scroll-reveal.active {
        opacity: 1;
        transform: translateY(0);
    }



/*==========================================
         MOBILE
==========================================*/

@media(max-width:575px) {

    .about-section,
    .features-section,
    .employees-section,
    .departments-section {
        padding: 60px 0;
    }

    .about-card,
    .feature-card,
    .dept-card,
    .stats-card {
        padding: 28px 22px;
    }

    .about-icon,
    .feature-icon,
    .dept-icon {
        width: 70px;
        height: 70px;
        font-size: 1.8rem;
    }

    .stats-number h3 {
        font-size: 2.5rem;
    }
}



/*==========================================
          TABLET
==========================================*/

@media(min-width:768px) {

    .about-card,
    .feature-card,
    .dept-card,
    .stats-card {
        padding: 35px;
    }
}



/*==========================================
          DESKTOP
==========================================*/

@media(min-width:1200px) {

    .about-card:hover {
        transform: translateY(-12px);
    }

    .feature-card:hover {
        transform: translateY(-15px);
    }

    .dept-card:hover {
        transform: translateY(-15px);
    }

    .stats-card:hover {
        transform: translateY(-15px);
    }
}

/*=========================================================
    PART 3
    CONTACT
    FOOTER
    SOCIAL ICONS
    BACK TO TOP
    ANIMATIONS
=========================================================*/


/*=========================================================
                    CONTACT
=========================================================*/

.contact-section {
    padding: 80px 0;
    background: linear-gradient(180deg,#f8fbff 0%,#eef5ff 100%);
}

.contact-info {
    background: rgba(255,255,255,.75);
    backdrop-filter: blur(18px);
    border: 1px solid rgba(255,255,255,.5);
    border-radius: 28px;
    padding: 40px;
    box-shadow: var(--shadow-lg);
    height: 100%;
}

.contact-info-item {
    display: flex;
    align-items: flex-start;
    gap: 18px;
    margin-bottom: 30px;
}

.contact-icon {
    width: 60px;
    height: 60px;
    border-radius: 18px;
    background: linear-gradient( 135deg, var(--primary), var(--primary-dark) );
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    flex-shrink: 0;
}

.contact-info-text h6 {
    font-size: 1.05rem;
    font-weight: 700;
    margin-bottom: 6px;
    color: var(--dark);
}

.contact-info-text p {
    margin: 0;
    color: var(--gray);
    line-height: 1.7;
}



/*=========================================================
                    CONTACT FORM
=========================================================*/

#contactForm {
    background: #fff;
    border-radius: 28px;
    padding: 40px;
    box-shadow: var(--shadow-lg);
}

.form-control {
    height: 56px;
    border-radius: 14px;
    border: 1px solid var(--border);
    font-size: 1rem;
    padding: 0 18px;
    transition: .3s;
}

textarea.form-control {
    height: auto;
    padding-top: 16px;
}

.form-control:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 .2rem rgba(37,99,235,.15);
}

.btn-submit {
    width: 100%;
    height: 56px;
    border: none;
    border-radius: 14px;
    background: linear-gradient( 135deg, var(--primary), var(--primary-dark) );
    color: #fff;
    font-size: 1rem;
    font-weight: 600;
    transition: .35s;
}

    .btn-submit:hover {
        transform: translateY(-3px);
        box-shadow: var(--shadow-lg);
    }



/*=========================================================
                    SOCIAL ICONS
=========================================================*/

.social-icons {
    display: flex;
    gap: 15px;
    margin-top: 35px;
    flex-wrap: wrap;
}

.social-icon {
    width: 52px;
    height: 52px;
    border-radius: 16px;
    background: #fff;
    color: var(--primary);
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.15rem;
    border: 1px solid var(--border);
    transition: .35s;
    text-decoration: none;
}

    .social-icon:hover {
        background: linear-gradient( 135deg, var(--primary), var(--primary-dark) );
        color: #fff;
        transform: translateY(-6px);
        box-shadow: var(--shadow-lg);
    }



/*=========================================================
                    FOOTER
=========================================================*/

footer {
    background: #0f172a;
    color: #fff;
    padding: 70px 0 25px;
}

.footer-section {
    margin-bottom: 30px;
}

    .footer-section h5 {
        font-weight: 700;
        margin-bottom: 22px;
    }

    .footer-section p {
        color: #94a3b8;
        line-height: 1.8;
    }

.footer-link {
    display: inline-block;
    color: #cbd5e1;
    margin-bottom: 12px;
    text-decoration: none;
    transition: .3s;
}

    .footer-link:hover {
        color: #60a5fa;
        transform: translateX(5px);
    }

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,.1);
    margin-top: 35px;
    padding-top: 20px;
    text-align: center;
    color: #94a3b8;
    font-size: .95rem;
}



/*=========================================================
                BACK TO TOP
=========================================================*/

.back-to-top {
    position: fixed;
    right: 24px;
    bottom: 24px;
    width: 56px;
    height: 56px;
    border: none;
    border-radius: 50%;
    background: linear-gradient( 135deg, var(--primary), var(--primary-dark) );
    color: #fff;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: .35s;
    box-shadow: var(--shadow-lg);
    z-index: 999;
}

    .back-to-top.show {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }

    .back-to-top:hover {
        transform: translateY(-5px);
    }



/*=========================================================
                ANIMATIONS
=========================================================*/

@keyframes fadeUp {

    from {
        opacity: 0;
        transform: translateY(40px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.scroll-reveal {
    opacity: 0;
    transform: translateY(40px);
}

    .scroll-reveal.active {
        animation: fadeUp .8s ease forwards;
    }



/*=========================================================
                iPHONE 12
=========================================================*/

@media (max-width:390px) {

    .contact-section {
        padding: 60px 0;
    }

    .contact-info {
        padding: 28px;
        border-radius: 22px;
    }

    #contactForm {
        margin-top: 25px;
        padding: 28px;
        border-radius: 22px;
    }

    .contact-info-item {
        flex-direction: column;
        text-align: center;
        align-items: center;
    }

    .social-icons {
        justify-content: center;
    }

    .footer-section {
        text-align: center;
    }

    .footer-bottom {
        font-size: .85rem;
    }

    .back-to-top {
        width: 48px;
        height: 48px;
        right: 18px;
        bottom: 18px;
    }
}



/*=========================================================
                TABLET
=========================================================*/

@media (min-width:768px) and (max-width:991px) {

    .contact-info {
        margin-bottom: 30px;
    }

    .footer-section {
        margin-bottom: 35px;
    }
}



/*=========================================================
                DESKTOP
=========================================================*/

@media (min-width:1200px) {

    .contact-info {
        padding: 48px;
    }

    #contactForm {
        padding: 48px;
    }

    .social-icon:hover {
        transform: translateY(-8px) scale(1.05);
    }

    .back-to-top:hover {
        transform: translateY(-8px);
    }
}



/*=========================================================
            SMOOTH HOVER EFFECTS
=========================================================*/

.about-card,
.feature-card,
.stats-card,
.dept-card,
.contact-info,
#contactForm {
    transition: transform .35s ease, box-shadow .35s ease, border-color .35s ease;
}

    .about-card:hover,
    .feature-card:hover,
    .stats-card:hover,
    .dept-card:hover {
        box-shadow: var(--shadow-xl);
    }

/*=========================================================
            NAVBAR FIXED EFFECTS
=========================================================*/
@media (max-width:991px) {

    .navbar-collapse {
        margin-top: 15px;
        background: #fff;
        border-radius: 16px;
        padding: 20px;
        box-shadow: 0 12px 35px rgba(0,0,0,.08);
    }

    .navbar-nav {
        gap: 12px;
    }
}