/* =========================================================
   Izwan Systec Enterprise - Main Stylesheet
   ========================================================= */

:root {
    --primary: #0F2A44;
    --primary-2: #16406A;
    --secondary: #1E88E5;
    --secondary-2: #42A5F5;
    --accent: #FF6B35;
    --green: #2E9E5B;
    --light: #F4F7FB;
    --dark: #0A1C2E;
    --text: #22303F;
    --muted: #6B7A8C;
    --radius: 18px;
    --shadow-sm: 0 4px 14px rgba(15, 42, 68, .08);
    --shadow-lg: 0 18px 40px rgba(15, 42, 68, .18);
    --nav-h: 72px;
}

*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    font-family: 'Poppins', 'Segoe UI', Tahoma, sans-serif;
    color: var(--text);
    background: #fff;
    overflow-x: hidden;
    line-height: 1.65;
}

img { max-width: 100%; display: block; }

a { color: var(--secondary); }

/* ---------------- Navbar ---------------- */
.site-nav {
    position: fixed;
    inset: 0 0 auto 0;
    height: var(--nav-h);
    z-index: 1000;
    display: flex;
    align-items: center;
    background: rgba(10, 28, 46, .55);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    transition: background .3s, box-shadow .3s;
}

.site-nav.scrolled {
    background: rgba(10, 28, 46, .95);
    box-shadow: 0 6px 20px rgba(0, 0, 0, .2);
}

.site-nav .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.brand {
    display: flex;
    align-items: center;
    gap: .6rem;
    color: #fff;
    font-weight: 700;
    font-size: 1.25rem;
    text-decoration: none;
    letter-spacing: .3px;
}

.brand:hover { color: #fff; }

.brand-mark {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    display: grid;
    place-items: center;
    background: linear-gradient(135deg, var(--secondary), var(--accent));
    font-size: 1.1rem;
}

.nav-links {
    display: flex;
    gap: .25rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-links a {
    display: block;
    color: rgba(255, 255, 255, .85);
    text-decoration: none;
    padding: .5rem .85rem;
    border-radius: 999px;
    font-size: .95rem;
    font-weight: 500;
    transition: background .25s, color .25s;
}

.nav-links a:hover,
.nav-links a.active {
    color: #fff;
    background: rgba(255, 255, 255, .14);
}

.menu-toggle {
    display: none;
    background: rgba(255, 255, 255, .12);
    color: #fff;
    border: 0;
    width: 44px;
    height: 44px;
    border-radius: 12px;
    font-size: 1.4rem;
    cursor: pointer;
}

/* ---------------- Sidebar (mobile) ---------------- */
.sidebar-mobile {
    position: fixed;
    top: 0;
    left: 0;
    width: 280px;
    max-width: 85vw;
    height: 100vh;
    background: linear-gradient(180deg, var(--primary), var(--dark));
    z-index: 2000;
    transform: translateX(-100%);
    transition: transform .3s ease;
    box-shadow: 4px 0 20px rgba(0, 0, 0, .35);
    overflow-y: auto;
}

.sidebar-mobile.active { transform: translateX(0); }

.sidebar-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.4rem 1.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, .1);
}

.sidebar-close {
    background: none;
    border: 0;
    color: #fff;
    font-size: 1.6rem;
    line-height: 1;
    cursor: pointer;
}

.sidebar-menu { padding: 1rem 0; }

.sidebar-menu a {
    display: block;
    color: #fff;
    padding: .9rem 1.5rem;
    text-decoration: none;
    border-left: 3px solid transparent;
    transition: background .25s, border-color .25s, padding-left .25s;
}

.sidebar-menu a:hover,
.sidebar-menu a.active {
    background: rgba(255, 255, 255, .08);
    border-left-color: var(--secondary-2);
    padding-left: 1.9rem;
}

.overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, .5);
    z-index: 1500;
    opacity: 0;
    visibility: hidden;
    transition: opacity .3s, visibility .3s;
}

.overlay.active {
    opacity: 1;
    visibility: visible;
}

body.no-scroll { overflow: hidden; }

/* ---------------- Sections ---------------- */
section {
    padding: 90px 0;
    scroll-margin-top: var(--nav-h);
}

.bg-soft { background: var(--light); }

.section-head {
    text-align: center;
    max-width: 720px;
    margin: 0 auto 3.5rem;
}

.eyebrow {
    display: block;
    width: fit-content;
    margin-left: auto;
    margin-right: auto;
    font-size: .8rem;
    font-weight: 600;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--secondary);
    background: rgba(30, 136, 229, .1);
    padding: .35rem .9rem;
    border-radius: 999px;
    margin-bottom: .9rem;
}

.section-title {
    font-size: 2.4rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 1rem;
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 70px;
    height: 4px;
    background: linear-gradient(90deg, var(--secondary), var(--accent));
    border-radius: 2px;
}

.section-head p {
    color: var(--muted);
    margin-top: 1.4rem;
    margin-bottom: 0;
}

/* ---------------- Hero ---------------- */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: calc(var(--nav-h) + 60px) 0 120px;
    color: #fff;
    background:
        radial-gradient(circle at 15% 20%, rgba(66, 165, 245, .35), transparent 45%),
        radial-gradient(circle at 85% 80%, rgba(255, 107, 53, .25), transparent 40%),
        linear-gradient(135deg, var(--dark), var(--primary-2));
    overflow: hidden;
}

.hero-wave {
    position: absolute;
    left: 0;
    bottom: -1px;
    width: 200%;
    height: 120px;
    animation: wave 18s linear infinite;
    pointer-events: none;
}

.hero-wave path { fill: #fff; }

@keyframes wave {
    from { transform: translateX(0); }
    to { transform: translateX(-50%); }
}

.hero .container { position: relative; z-index: 1; }

.hero h1 {
    font-size: 3.3rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1.4rem;
    animation: fadeInUp .9s both;
}

.hero h1 .highlight {
    background: linear-gradient(90deg, var(--secondary-2), #FFB38A);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.hero p.lead {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, .85);
    margin-bottom: 2rem;
    animation: fadeInUp .9s .2s both;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: .8rem;
    animation: fadeInUp .9s .4s both;
}

.hero-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    margin-top: 2.5rem;
    animation: fadeInUp .9s .6s both;
}

.hero-stats strong {
    display: block;
    font-size: 1.8rem;
    font-weight: 700;
}

.hero-stats span {
    font-size: .85rem;
    color: rgba(255, 255, 255, .7);
}

.hero-visual {
    position: relative;
    animation: fadeInUp .9s .3s both;
}

.hero-visual img {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    border-radius: 24px;
    box-shadow: 0 30px 60px rgba(0, 0, 0, .4);
    border: 6px solid rgba(255, 255, 255, .1);
}

.hero-badge {
    position: absolute;
    left: -20px;
    bottom: 30px;
    background: #fff;
    color: var(--primary);
    border-radius: 14px;
    padding: .8rem 1.1rem;
    display: flex;
    align-items: center;
    gap: .7rem;
    box-shadow: var(--shadow-lg);
    font-weight: 600;
    font-size: .9rem;
    animation: float 4s ease-in-out infinite;
}

.hero-badge i {
    font-size: 1.5rem;
    color: var(--green);
}

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

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ---------------- Buttons ---------------- */
.btn-brand,
.btn-ghost {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    padding: .8rem 1.7rem;
    border-radius: 999px;
    font-weight: 600;
    border: 2px solid transparent;
    transition: transform .25s, box-shadow .25s, background .25s, color .25s;
    text-decoration: none;
}

.btn-brand {
    background: linear-gradient(135deg, var(--secondary), var(--primary-2));
    color: #fff;
}

.btn-brand:hover {
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 10px 22px rgba(30, 136, 229, .35);
}

.btn-ghost {
    border-color: rgba(255, 255, 255, .6);
    color: #fff;
    background: transparent;
}

.btn-ghost:hover {
    background: #fff;
    color: var(--primary);
}

.btn-sm-brand {
    padding: .55rem 1.2rem;
    font-size: .9rem;
}

/* ---------------- Cards (generic) ---------------- */
.card-x {
    background: #fff;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    height: 100%;
    display: flex;
    flex-direction: column;
    transition: transform .35s, box-shadow .35s;
}

.card-x:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}

.card-x .card-media {
    position: relative;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    background: var(--light);
}

.card-x .card-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .6s;
}

.card-x:hover .card-media img { transform: scale(1.06); }

.card-media.contain img {
    object-fit: contain;
    padding: 1rem;
    background: #fff;
}

.card-x .card-content {
    padding: 1.6rem;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.card-x h4 {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: .6rem;
}

.card-x p {
    color: var(--muted);
    font-size: .95rem;
}

.card-x .card-footer-x {
    margin-top: auto;
    padding-top: .8rem;
}

.tag {
    position: absolute;
    top: 14px;
    left: 14px;
    background: rgba(10, 28, 46, .8);
    color: #fff;
    font-size: .75rem;
    font-weight: 600;
    padding: .3rem .75rem;
    border-radius: 999px;
    backdrop-filter: blur(4px);
}

.tag.tag-new { background: var(--accent); }

.icon-pill {
    width: 56px;
    height: 56px;
    border-radius: 16px;
    display: grid;
    place-items: center;
    font-size: 1.6rem;
    color: #fff;
    background: linear-gradient(135deg, var(--secondary), var(--primary-2));
    margin-bottom: 1rem;
    box-shadow: 0 8px 18px rgba(30, 136, 229, .3);
}

.feature-list {
    list-style: none;
    padding: 0;
    margin: 0 0 1rem;
    font-size: .9rem;
}

.feature-list li {
    display: flex;
    gap: .5rem;
    padding: .2rem 0;
    color: var(--text);
}

.feature-list i { color: var(--green); }

/* ---------------- Focus areas (overlapping hero) ---------------- */
.focus { padding-top: 0; }

.focus .row { margin-top: -60px; position: relative; z-index: 2; }

/* ---------------- About ---------------- */
.about-img {
    position: relative;
}

.about-img img {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    border-radius: 24px;
    box-shadow: var(--shadow-lg);
}

.about-img .exp-badge {
    position: absolute;
    right: -10px;
    bottom: -20px;
    background: linear-gradient(135deg, var(--accent), #FF9A5A);
    color: #fff;
    border-radius: 18px;
    padding: 1rem 1.3rem;
    text-align: center;
    box-shadow: var(--shadow-lg);
}

.exp-badge strong { display: block; font-size: 2rem; line-height: 1; }
.exp-badge span { font-size: .8rem; }

.value-box {
    background: #fff;
    border-radius: 14px;
    padding: 1.1rem 1.2rem;
    box-shadow: var(--shadow-sm);
    height: 100%;
}

.value-box h5 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--primary);
    margin-bottom: .4rem;
}

.value-box h5 i { color: var(--secondary); margin-right: .4rem; }
.value-box p { font-size: .9rem; color: var(--muted); margin: 0; }

/* ---------------- Services (wide) ---------------- */
.service-wide {
    display: grid;
    grid-template-columns: 5fr 7fr;
    background: #fff;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: box-shadow .35s, transform .35s;
    height: 100%;
}

.service-wide:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-6px);
}

.service-wide .media { position: relative; min-height: 260px; }

.service-wide .media img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.service-wide .content { padding: 2rem; display: flex; flex-direction: column; }
.service-wide h4 { font-weight: 700; color: var(--primary); }
.service-wide p { color: var(--muted); font-size: .95rem; }

/* ---------------- Solutions ---------------- */
.solution {
    text-align: center;
    padding: 2rem 1.5rem;
    border-radius: var(--radius);
    background: #fff;
    height: 100%;
    box-shadow: var(--shadow-sm);
    transition: transform .3s, box-shadow .3s;
}

.solution:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.solution .icon-pill { margin: 0 auto 1rem; }
.solution h5 { font-weight: 600; color: var(--primary); }
.solution p { color: var(--muted); font-size: .92rem; margin: 0; }

/* ---------------- Clients ---------------- */
.client-box {
    background: #fff;
    border-radius: var(--radius);
    padding: 1.5rem 1rem;
    text-align: center;
    height: 100%;
    box-shadow: var(--shadow-sm);
    transition: transform .3s, box-shadow .3s;
}

.client-box:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); }

.client-logo {
    width: 120px;
    height: 120px;
    margin: 0 auto 1rem;
    display: grid;
    place-items: center;
}

.client-logo img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    filter: grayscale(25%);
    transition: filter .3s;
}

.client-box:hover .client-logo img { filter: none; }
.client-box h5 { font-size: 1rem; font-weight: 600; color: var(--primary); margin-bottom: .2rem; }
.client-box p { font-size: .82rem; color: var(--muted); margin: 0; }

/* ---------------- Contact ---------------- */
.contact-card {
    background: linear-gradient(135deg, var(--primary), var(--primary-2));
    color: #fff;
    border-radius: 24px;
    padding: 2.2rem;
    height: 100%;
}

.contact-item {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.4rem;
}

.contact-item i {
    flex: 0 0 44px;
    height: 44px;
    border-radius: 12px;
    display: grid;
    place-items: center;
    background: rgba(255, 255, 255, .12);
    font-size: 1.2rem;
}

.contact-item strong { display: block; }
.contact-item span,
.contact-item a { color: rgba(255, 255, 255, .8); text-decoration: none; }
.contact-item a:hover { color: #fff; text-decoration: underline; }

.form-card {
    background: #fff;
    border-radius: 24px;
    padding: 2.2rem;
    box-shadow: var(--shadow-sm);
    height: 100%;
}

.form-card .form-control,
.form-card .form-select {
    border-radius: 12px;
    padding: .75rem 1rem;
    border-color: #DCE3EC;
}

.form-card .form-control:focus,
.form-card .form-select:focus {
    border-color: var(--secondary);
    box-shadow: 0 0 0 .2rem rgba(30, 136, 229, .15);
}

.form-status { font-size: .9rem; margin-top: .8rem; }

/* ---------------- Footer ---------------- */
footer {
    background: var(--dark);
    color: rgba(255, 255, 255, .75);
    padding: 4rem 0 1.5rem;
}

footer h5 { color: #fff; font-weight: 600; margin-bottom: 1rem; }

footer a {
    color: rgba(255, 255, 255, .7);
    text-decoration: none;
    transition: color .2s;
}

footer a:hover { color: #fff; }
footer ul li { padding: .2rem 0; }

.social a {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: inline-grid;
    place-items: center;
    background: rgba(255, 255, 255, .08);
    font-size: 1.1rem;
    transition: background .25s, transform .25s;
}

.social a:hover { background: var(--secondary); transform: translateY(-3px); color: #fff; }

footer hr { border-color: rgba(255, 255, 255, .15); opacity: 1; }

/* ---------------- Floating buttons ---------------- */
.scroll-btn,
.wa-btn {
    position: fixed;
    right: 24px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: 0;
    color: #fff;
    display: grid;
    place-items: center;
    font-size: 1.3rem;
    z-index: 1000;
    box-shadow: 0 6px 16px rgba(0, 0, 0, .25);
    transition: transform .25s, opacity .3s, visibility .3s;
}

.scroll-btn { background: var(--secondary); bottom: 90px; cursor: pointer; }
.wa-btn { background: #25D366; bottom: 24px; text-decoration: none; }
.wa-btn:hover { color: #fff; }
.scroll-btn:hover,
.wa-btn:hover { transform: scale(1.1); }

.scroll-btn {
    opacity: 0;
    visibility: hidden;
}

.scroll-btn.show { opacity: 1; visibility: visible; }

/* ---------------- Modal ---------------- */
.modal-content { border: 0; border-radius: 20px; overflow: hidden; }
.modal-img { width: 100%; max-height: 320px; object-fit: contain; background: var(--light); }

/* ---------------- Reveal animation ---------------- */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity .7s ease, transform .7s ease;
}

.fade-in.visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation: none !important; transition: none !important; }
    .fade-in { opacity: 1; transform: none; }
    html { scroll-behavior: auto; }
}

/* ---------------- Responsive ---------------- */
@media (max-width: 991.98px) {
    .nav-links { display: none; }
    .menu-toggle { display: grid; place-items: center; }
    .hero { min-height: auto; text-align: center; }
    .hero h1 { font-size: 2.5rem; }
    .hero-actions, .hero-stats { justify-content: center; }
    .hero-badge { left: 10px; }
    .about-img .exp-badge { right: 10px; }
}

@media (max-width: 767.98px) {
    section { padding: 70px 0; }
    .service-wide { grid-template-columns: 1fr; }
    .service-wide .media { min-height: 220px; }
}

@media (max-width: 575.98px) {
    .hero h1 { font-size: 2rem; }
    .section-title { font-size: 1.9rem; }
    .hero-stats { gap: 1.3rem; }
    .contact-card, .form-card { padding: 1.6rem; }
    .client-logo { width: 90px; height: 90px; }
}
