:root {
    --primary: #0d6efd;
    --secondary: #00c6ff;
    --dark: #081120;
    --light: #f8fafc;
    --success: #10b981;
    --danger: #ef4444;
    --warning: #f59e0b;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Poppins', sans-serif;
    overflow-x: hidden;
    background: #f8fafc;
    color: #1e293b;
    line-height: 1.6;
}

/* NAVBAR */
.navbar {
    padding: 15px 0;
    transition: .4s;
    background: rgba(255, 255, 255, .95);
    backdrop-filter: blur(15px);
    box-shadow: 0 2px 10px rgba(0, 0, 0, .05);
}

.navbar.scrolled {
    box-shadow: 0 10px 30px rgba(0, 0, 0, .1);
    padding: 12px 0;
}

.navbar-brand {
    font-weight: 700;
    font-size: 1.3rem;
    color: var(--dark) !important;
}

.navbar-brand img {
    height: 40px;
    margin-right: 10px;
}

.nav-link {
    font-weight: 500;
    color: #334155 !important;
    margin: 0 8px;
    position: relative;
    transition: .3s;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary);
    transition: width .3s;
}

.nav-link:hover::after {
    width: 100%;
}

.navbar-toggler {
    border: none;
    padding: 5px 0;
}

.navbar-toggler:focus {
    box-shadow: none;
    outline: 2px solid var(--primary);
}

/* HERO */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    padding-top: 80px;
    background:
        radial-gradient(circle at top right, #00c6ff 0%, transparent 35%),
        radial-gradient(circle at bottom left, #0d6efd 0%, transparent 45%),
        linear-gradient(135deg, #081120, #0f2747);
}

.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url("https://www.transparenttextures.com/patterns/cubes.png");
    opacity: .08;
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
}

.hero-logo {
    width: 160px;
    margin-bottom: 25px;
    filter: drop-shadow(0 10px 25px rgba(0, 0, 0, .3));
    animation: float 3s ease-in-out infinite;
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-10px);
    }
}

.hero h1 {
    font-size: 3.5rem;
    font-weight: 800;
    color: white;
    line-height: 1.2;
    word-break: break-word;
}

.gradient-text {
    background: linear-gradient(90deg, #00c6ff, #ffffff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero p {
    color: #dbeafe;
    font-size: 1.1rem;
    max-width: 700px;
    margin: 20px auto 30px;
    line-height: 1.8;
}

.btn-brand {
    background: linear-gradient(135deg, #00c6ff, #0d6efd);
    border: none;
    color: white;
    border-radius: 50px;
    padding: 13px 32px;
    font-weight: 600;
    font-size: 0.95rem;
    transition: .3s;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-brand:hover {
    transform: translateY(-3px);
    color: white;
    box-shadow: 0 15px 35px rgba(0, 198, 255, .3);
}

.btn-hero {
    padding: 12px 28px !important;
    font-size: 0.9rem !important;
}

/* STATS */
.stats {
    margin-top: -60px;
    position: relative;
    z-index: 10;
    padding: 0 15px;
}

.stat-card {
    background: white;
    border-radius: 20px;
    padding: 30px 20px;
    text-align: center;
    box-shadow: 0 15px 40px rgba(0, 0, 0, .08);
    transition: .3s;
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, .12);
}

.stat-card h2 {
    color: var(--primary);
    font-weight: 800;
    font-size: 2.5rem;
    margin: 10px 0;
}

.stat-card p {
    color: #64748b;
    font-size: 0.95rem;
    margin: 0;
}

/* SECTIONS */
section {
    padding: 80px 0;
}

@media(max-width:768px) {
    section {
        padding: 60px 0;
    }
}

.section-title {
    font-size: 2.8rem;
    font-weight: 800;
    margin-bottom: 20px;
    color: #081120;
}

.section-subtitle {
    color: #64748b;
    max-width: 700px;
    margin: auto;
    font-size: 1rem;
    line-height: 1.7;
}

/* CARDS */
.service-card,
.feature-card {
    background: white;
    border: none;
    border-radius: 20px;
    padding: 35px 25px;
    height: 100%;
    transition: .4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 10px 30px rgba(0, 0, 0, .06);
    position: relative;
    overflow: hidden;
}

.service-card::before,
.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #00c6ff15, #0d6efd15);
    transition: left .4s;
    z-index: 0;
}

.service-card:hover::before,
.feature-card:hover::before {
    left: 100%;
}

.service-card:hover,
.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, .1);
}

.service-card>*,
.feature-card>* {
    position: relative;
    z-index: 1;
}

.icon-box {
    width: 70px;
    height: 70px;
    border-radius: 18px;
    background: linear-gradient(135deg, #00c6ff, #0d6efd);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.8rem;
    margin-bottom: 20px;
    transition: .3s;
}

/* Gradient variations for different service cards */
.service-card:nth-child(1) .icon-box {
    background: linear-gradient(135deg, #00c6ff, #0d6efd);
}

.service-card:nth-child(2) .icon-box {
    background: linear-gradient(135deg, #f59e0b, #f97316);
}

.service-card:nth-child(3) .icon-box {
    background: linear-gradient(135deg, #10b981, #14b8a6);
}

.service-card:nth-child(4) .icon-box {
    background: linear-gradient(135deg, #8b5cf6, #7c3aed);
}

.service-card:nth-child(5) .icon-box {
    background: linear-gradient(135deg, #ec4899, #f43f5e);
}

.service-card:nth-child(6) .icon-box {
    background: linear-gradient(135deg, #06b6d4, #0891b2);
}

.service-card:hover .icon-box,
.feature-card:hover .icon-box {
    transform: scale(1.1) rotate(5deg);
}

.service-card h4,
.feature-card h4 {
    font-weight: 700;
    color: #081120;
    margin-bottom: 15px;
    font-size: 1.3rem;
}

.service-card p,
.feature-card p {
    color: #64748b;
    font-size: 0.95rem;
    line-height: 1.7;
    margin: 0;
}

/* CONTACT */
.contact-box {
    background: white;
    border-radius: 25px;
    padding: 50px 30px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, .08);
}

.contact-item {
    padding: 30px 20px;
    transition: .3s;
    border-radius: 15px;
}

.contact-item:hover {
    background: #f1f5f9;
}

.contact-item i {
    font-size: 2.5rem;
    color: var(--primary);
    display: inline-block;
    width: 60px;
    height: 60px;
    background: #e0f2fe;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: .3s;
}

.contact-item:hover i {
    background: var(--primary);
    color: white;
    transform: scale(1.1);
}

.contact-item h5 {
    margin-top: 20px;
    font-weight: 700;
    color: #081120;
}

.contact-item a {
    text-decoration: none;
    color: var(--primary);
    font-weight: 600;
    transition: .3s;
    display: inline-block;
    margin-top: 10px;
}

.contact-item a:hover {
    color: var(--dark);
    text-decoration: underline;
}

/* CTA SECTION - IMPROVED */
.cta-section {
    position: relative;
    padding: 80px 0;
    overflow: hidden;
}

.cta-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, #00c6ff 0%, #0d6efd 50%, #081120 100%);
    z-index: 0;
}

.cta-section::after {
    content: '';
    position: absolute;
    inset: 0;
    background: url("https://www.transparenttextures.com/patterns/cubes.png");
    opacity: .05;
    z-index: 1;
}

.cta-content {
    position: relative;
    z-index: 2;
}

.cta-header {
    text-align: center;
    color: white;
    margin-bottom: 50px;
}

.cta-header h2 {
    font-size: 3rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 20px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, .2);
}

.cta-header p {
    font-size: 1.2rem;
    max-width: 650px;
    margin: 0 auto;
    opacity: 0.95;
    line-height: 1.8;
}

.cta-features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 50px;
    margin-bottom: 50px;
}

.cta-feature-item {
    background: rgba(255, 255, 255, .1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, .2);
    border-radius: 18px;
    padding: 30px 25px;
    text-align: center;
    color: white;
    transition: .4s cubic-bezier(0.4, 0, 0.2, 1);
}

.cta-feature-item:hover {
    background: rgba(255, 255, 255, .15);
    transform: translateY(-8px);
    border-color: rgba(255, 255, 255, .4);
    box-shadow: 0 20px 40px rgba(0, 0, 0, .2);
}

.cta-feature-item i {
    font-size: 2.5rem;
    margin-bottom: 15px;
    display: block;
}

.cta-feature-item h5 {
    font-weight: 700;
    margin-bottom: 10px;
    font-size: 1.1rem;
}

.cta-feature-item p {
    font-size: 0.9rem;
    opacity: 0.9;
    line-height: 1.6;
    margin: 0;
}

.cta-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 50px;
}

.btn-cta-primary {
    background: white;
    color: #0d6efd;
    font-weight: 700;
    padding: 16px 50px;
    border-radius: 50px;
    transition: .3s;
    border: none;
    font-size: 1rem;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, .2);
}

.btn-cta-primary:hover {
    transform: translateY(-4px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, .3);
    color: #0d6efd;
}

.btn-cta-secondary {
    background: transparent;
    color: white;
    font-weight: 700;
    padding: 16px 50px;
    border-radius: 50px;
    transition: .3s;
    border: 2px solid white;
    font-size: 1rem;
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.btn-cta-secondary:hover {
    background: white;
    color: #0d6efd;
    transform: translateY(-4px);
}

/* FOOTER */
footer {
    background: #081120;
    color: white;
    padding: 50px 0 20px;
}

footer img {
    max-width: 80px;
    margin-bottom: 15px;
}

footer h5 {
    font-weight: 700;
    margin-bottom: 10px;
}

footer p {
    color: #cbd5e1;
    margin: 10px 0;
    font-size: 0.95rem;
}

footer a {
    color: #93c5fd;
    text-decoration: none;
    transition: .3s;
}

footer a:hover {
    color: #dbeafe;
    text-decoration: underline;
}

/* ANIMATION */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: .8s cubic-bezier(0.4, 0, 0.2, 1);
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* SCROLL TO TOP */
.scroll-to-top {
    position: fixed;
    bottom: 100px;
    right: 25px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--primary);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    z-index: 999;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: .3s;
    box-shadow: 0 10px 25px rgba(0, 0, 0, .2);
}

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

.scroll-to-top:hover {
    transform: translateY(-3px);
}

/* SERVICE CATEGORY LABEL */
.service-label {
    display: inline-block;
    background: linear-gradient(135deg, #00c6ff, #0d6efd);
    color: white;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    margin-bottom: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* RESPONSIVE */
@media(max-width:768px) {
    .hero {
        padding-top: 70px;
        min-height: auto;
    }

    .hero h1 {
        font-size: 2.2rem;
    }

    .hero p {
        font-size: 1rem;
        margin: 15px auto 25px;
    }

    .btn-hero {
        width: 100%;
        justify-content: center;
        margin-bottom: 10px;
    }

    .hero .d-flex {
        flex-direction: column;
    }

    .section-title {
        font-size: 2rem;
    }

    .hero-logo {
        width: 130px;
    }

    .stat-card h2 {
        font-size: 2rem;
    }

    .stats {
        margin-top: -40px;
        padding: 0 10px;
    }

    .stat-card {
        padding: 25px 15px;
    }

    .service-card,
    .feature-card {
        padding: 30px 20px;
    }

    .icon-box {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
    }

    .contact-box {
        padding: 40px 20px;
    }

    .contact-item {
        padding: 20px 15px;
    }

    .contact-item i {
        width: 50px;
        height: 50px;
        font-size: 1.8rem;
    }

    .cta-section {
        padding: 60px 0;
    }

    .cta-header h2 {
        font-size: 2rem;
    }

    .cta-header p {
        font-size: 1rem;
    }

    .cta-features {
        grid-template-columns: 1fr;
        gap: 20px;
        margin-top: 40px;
        margin-bottom: 40px;
    }

    .cta-buttons {
        gap: 15px;
        margin-top: 40px;
    }

    .btn-cta-primary,
    .btn-cta-secondary {
        padding: 14px 35px;
        font-size: 0.95rem;
        width: 100%;
        justify-content: center;
    }

    footer {
        padding: 40px 0 15px;
    }

    .scroll-to-top {
        bottom: 90px;
        right: 20px;
        width: 45px;
        height: 45px;
        font-size: 18px;
    }
}

@media(max-width:480px) {
    .hero h1 {
        font-size: 1.8rem;
    }

    .hero p {
        font-size: 0.9rem;
    }

    .navbar-brand {
        font-size: 1.1rem;
    }

    .navbar-brand img {
        height: 35px;
    }

    .section-title {
        font-size: 1.6rem;
    }

    .section-subtitle {
        font-size: 0.9rem;
    }

    .service-card h4,
    .feature-card h4 {
        font-size: 1.1rem;
    }

    .stat-card h2 {
        font-size: 1.8rem;
    }

    .stat-card p {
        font-size: 0.85rem;
    }

    .cta-header h2 {
        font-size: 1.6rem;
    }

    .cta-header p {
        font-size: 0.9rem;
    }

    .cta-feature-item {
        padding: 25px 20px;
    }

    .cta-feature-item i {
        font-size: 2rem;
    }

    .cta-feature-item h5 {
        font-size: 1rem;
    }

    .contact-item h5 {
        font-size: 1rem;
    }

    .contact-item a {
        font-size: 0.9rem;
    }
}

.nav-link.active {
    color: var(--primary) !important;
}

.nav-link.active::after {
    width: 100%;
}

#pricing .service-card {
    transition: all .3s ease;
}

#pricing .service-card:hover {
    transform: translateY(-10px);
}

#pricing h2.text-primary {
    font-size: 3rem;
}

#pricing ul li {
    font-size: 0.95rem;
    padding: 6px 0;
}

/* ================================
   CERTIFICATE CARDS (FIXED HEIGHT)
================================ */

.certificate-grid {
    margin-top: 10px;
}

.certificate-card {
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.06);
    transition: 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.certificate-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.12);
}

/* FIX: Equal image height */
.certificate-image {
    width: 100%;
    height: 160px;
    /* <- controls uniform height */
    overflow: hidden;
    background: #f1f5f9;
    display: flex;
    align-items: center;
    justify-content: center;
}

.certificate-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    /* <- key for uniform cropping */
    transition: transform 0.4s ease;
}

.certificate-card:hover .certificate-image img {
    transform: scale(1.05);
}

.certificate-body {
    padding: 12px 12px 14px;
    text-align: center;
}

.certificate-body h6 {
    font-weight: 700;
    font-size: 0.95rem;
    margin-bottom: 10px;
    color: #081120;
}

.certificate-body .btn {
    font-size: 0.8rem;
    padding: 6px 14px;
}

/* MOBILE TWEAK */
@media (max-width: 576px) {
    .certificate-image {
        height: 140px;
    }
}