﻿
/* =========================================================
   ACE SOFT SKILL SOLUTIONS - MASTER STYLESHEET
   ========================================================= */

/* ---------- ROOT VARIABLES ---------- */

:root {
    --ace-primary: #10243e;
    --ace-secondary: #183c60;
    --ace-accent: #f58232;
    --ace-blue: #00a9e8;
    --ace-purple: #41429b;
    --ace-text: #344054;
    --ace-muted: #738096;
    --ace-light: #f5f7fa;
    --ace-white: #ffffff;
    --ace-border: #e7ebf0;

    --ace-font: 'DM Sans', sans-serif;
    --ace-heading-font: 'Manrope', sans-serif;

    --ace-shadow: 0 8px 30px rgba(16, 36, 62, 0.08);
    --ace-transition: all 0.3s ease;
}

/* ---------- GLOBAL ---------- */

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 100px;
}

body {
    margin: 0;
    padding: 0;
    font-family: var(--ace-font);
    font-size: 16px;
    line-height: 1.7;
    color: var(--ace-text);
    background: var(--ace-white);
    overflow-x: hidden;
}

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

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

button,
input,
textarea,
select {
    font-family: inherit;
}

::selection {
    color: var(--ace-white);
    background: var(--ace-primary);
}

/* ---------- TOP BAR ---------- */

.top-bar {
    background: var(--ace-primary);
    color: rgba(255, 255, 255, 0.85);
    font-size: 13px;
    padding: 9px 0;
}

.top-bar-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 15px;
}

.top-bar-left,
.top-bar-right {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 22px;
}

.top-bar span,
.top-bar a {
    color: rgba(255, 255, 255, 0.88);
}

.top-bar i {
    color: var(--ace-accent);
    margin-right: 6px;
}

.top-bar a:hover {
    color: var(--ace-white);
}

.top-social {
    display: flex;
    align-items: center;
    gap: 13px;
}

.top-social a {
    font-size: 14px;
}

.top-social a:hover {
    color: var(--ace-accent);
    transform: translateY(-2px);
}

/* ---------- MAIN HEADER ---------- */

.main-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: var(--ace-white);
    box-shadow: 0 3px 18px rgba(16, 36, 62, 0.07);
}

.main-header .navbar {
    padding: 10px 0;
    background: var(--ace-white);
}

.ace-brand {
    display: flex;
    align-items: center;
    padding: 0;
    margin-right: 25px;
}

.ace-logo {
    display: block;
    width: auto;
    height: 66px;
    max-width: 245px;
    object-fit: contain;
    object-position: left center;
}

/* ---------- NAVIGATION ---------- */

.main-header .navbar-nav {
    gap: 3px;
}

.main-header .nav-link {
    position: relative;
    color: var(--ace-primary);
    font-size: 14px;
    font-weight: 700;
    padding: 12px 11px !important;
    white-space: nowrap;
}

.main-header .nav-link::after {
    content: "";
    position: absolute;
    left: 11px;
    right: 11px;
    bottom: 5px;
    height: 2px;
    background: var(--ace-accent);
    transform: scaleX(0);
    transform-origin: left;
    transition: var(--ace-transition);
}

.main-header .nav-link:hover,
.main-header .nav-link:focus {
    color: var(--ace-accent);
}

.main-header .nav-link:hover::after,
.main-header .nav-link:focus::after {
    transform: scaleX(1);
}

/* ---------- DROPDOWN ---------- */

.main-header .dropdown-menu {
    min-width: 230px;
    padding: 10px;
    margin-top: 12px;
    border: 1px solid var(--ace-border);
    border-radius: 10px;
    box-shadow: 0 12px 35px rgba(16, 36, 62, 0.13);
}

.main-header .dropdown-item {
    padding: 10px 13px;
    border-radius: 6px;
    color: var(--ace-text);
    font-size: 14px;
    font-weight: 600;
    white-space: normal;
}

.main-header .dropdown-item:hover,
.main-header .dropdown-item:focus {
    color: var(--ace-primary);
    background: #f1f5fa;
    padding-left: 18px;
}

/* ---------- CONTACT BUTTON ---------- */

.main-header .nav-contact-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 20px !important;
    color: var(--ace-white);
    background: var(--ace-accent);
    border-radius: 6px;
    font-weight: 700;
    transition: var(--ace-transition);
}

.main-header .nav-contact-btn::after {
    display: none;
}

.main-header .nav-contact-btn:hover {
    color: var(--ace-white);
    background: var(--ace-primary);
    transform: translateY(-2px);
    box-shadow: 0 7px 18px rgba(16, 36, 62, 0.16);
}

/* ---------- MOBILE MENU BUTTON ---------- */

.custom-toggler {
    width: 44px;
    height: 42px;
    padding: 8px 10px;
    border: 1px solid var(--ace-border) !important;
    border-radius: 6px;
    box-shadow: none !important;
}

.custom-toggler span {
    display: block;
    width: 22px;
    height: 2px;
    margin: 4px auto;
    background: var(--ace-primary);
    transition: var(--ace-transition);
}

.custom-toggler:hover {
    background: var(--ace-light);
}

/* ---------- PAGE CONTENT ---------- */

#mainContent {
    min-height: 300px;
}

/* ---------- COMMON BUTTONS ---------- */

.btn-ace-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    padding: 13px 25px;
    color: var(--ace-white);
    background: var(--ace-primary);
    border: 2px solid var(--ace-primary);
    border-radius: 6px;
    font-weight: 700;
    transition: var(--ace-transition);
}

.btn-ace-primary:hover {
    color: var(--ace-white);
    background: var(--ace-secondary);
    border-color: var(--ace-secondary);
    transform: translateY(-3px);
}

.btn-ace-accent {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    padding: 13px 25px;
    color: var(--ace-white);
    background: var(--ace-accent);
    border: 2px solid var(--ace-accent);
    border-radius: 6px;
    font-weight: 700;
    transition: var(--ace-transition);
}

.btn-ace-accent:hover {
    color: var(--ace-white);
    background: #df7024;
    border-color: #df7024;
    transform: translateY(-3px);
}

/* ---------- FOOTER ---------- */

.main-footer {
    position: relative;
    padding: 65px 0 0;
    color: rgba(255, 255, 255, 0.75);
    background: var(--ace-primary);
}

.footer-main {
    padding-bottom: 45px;
}

.footer-logo {
    display: block;
    width: auto;
    height: 75px;
    max-width: 260px;
    padding: 5px;
    background: var(--ace-white);
    border-radius: 5px;
    object-fit: contain;
}

.footer-about {
    max-width: 360px;
    margin: 22px 0;
    color: rgba(255, 255, 255, 0.72);
    font-size: 14px;
    line-height: 1.9;
}

.main-footer h5 {
    position: relative;
    margin-bottom: 25px;
    padding-bottom: 12px;
    color: var(--ace-white);
    font-family: var(--ace-heading-font);
    font-size: 17px;
    font-weight: 800;
}

.main-footer h5::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 3px;
    background: var(--ace-accent);
    border-radius: 3px;
}

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

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

.footer-links a {
    color: rgba(255, 255, 255, 0.72);
    font-size: 14px;
}

.footer-links a::before {
    content: "\f105";
    margin-right: 9px;
    color: var(--ace-accent);
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
}

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

.footer-contact li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 17px;
    color: rgba(255, 255, 255, 0.75);
    font-size: 14px;
}

.footer-contact li > i {
    min-width: 16px;
    margin-top: 5px;
    color: var(--ace-accent);
}

.footer-contact a {
    color: rgba(255, 255, 255, 0.75);
}

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

.footer-social {
    display: flex;
    gap: 10px;
}

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

.footer-social a:hover {
    color: var(--ace-white);
    background: var(--ace-accent);
    transform: translateY(-4px);
}

/* ---------- FOOTER BOTTOM ---------- */

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 15px;
    padding: 20px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.13);
}

.footer-bottom p {
    margin: 0;
    color: rgba(255, 255, 255, 0.65);
    font-size: 13px;
}

/* ---------- AOS SAFETY ---------- */

/* Keep animated elements visible until AOS is initialized */
html:not(.aos-ready) [data-aos] {
    opacity: 1 !important;
    transform: none !important;
}

/* ---------- RESPONSIVE: TABLET ---------- */

@media (max-width: 1199.98px) {
    .ace-logo {
        height: 58px;
        max-width: 210px;
    }

    .main-header .nav-link {
        padding-left: 8px !important;
        padding-right: 8px !important;
        font-size: 13px;
    }

    .main-header .nav-contact-btn {
        padding: 10px 13px !important;
    }
}

@media (max-width: 991.98px) {
    .main-header .navbar {
        padding: 10px 0;
    }

    .main-header .navbar-collapse {
        padding: 15px 0 10px;
    }

    .main-header .navbar-nav {
        align-items: stretch !important;
        gap: 0;
    }

    .main-header .nav-link {
        padding: 12px 8px !important;
        border-bottom: 1px solid var(--ace-border);
    }

    .main-header .nav-link::after {
        display: none;
    }

    .main-header .dropdown-menu {
        margin: 5px 0 10px;
        border: 0;
        box-shadow: none;
        background: var(--ace-light);
    }

    .main-header .nav-contact-btn {
        display: inline-flex;
        margin-top: 12px;
        width: fit-content;
        border-bottom: 0;
    }

    .footer-main {
        padding-bottom: 30px;
    }
}

/* ---------- RESPONSIVE: MOBILE ---------- */

@media (max-width: 767.98px) {
    .top-bar-inner {
        justify-content: center;
        text-align: center;
    }

    .top-bar-left,
    .top-bar-right {
        justify-content: center;
        gap: 10px 16px;
    }

    .top-bar-left {
        width: 100%;
    }

    .top-bar-right {
        width: 100%;
    }

    .top-social {
        display: none;
    }

    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }
}

@media (max-width: 575.98px) {
    .top-bar {
        padding: 8px 0;
        font-size: 11px;
    }

    .top-bar-left,
    .top-bar-right {
        gap: 6px 12px;
    }

    .ace-logo {
        height: 48px;
        max-width: 190px;
    }

    .main-header .navbar {
        padding: 8px 0;
    }

    .main-footer {
        padding-top: 45px;
    }

    .footer-logo {
        height: 65px;
        max-width: 225px;
    }
}

/* ---------- REDUCED MOTION ---------- */

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        transition-duration: 0.01ms !important;
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
    }
}
