/* =================== CSS Variables for Easy Theming =================== */
:root {
    --primary-color: #0052cc; /* A professional, trustworthy blue */
    --primary-color-dark: #003d99;
    --secondary-color: #4A90E2; /* A lighter, vibrant blue */
    --accent-color: #FFA500; /* A touch of orange for CTAs */
    --text-color: #333;
    --text-color-light: #666;
    --bg-color: #ffffff;
    --bg-color-light: #f8f9fa;
    --border-color: #e9ecef;
    --shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    --shadow-hover: 0 8px 25px rgba(0, 0, 0, 0.12);
    --container-width: 1140px;
    --transition: all 0.3s ease-in-out;
}

/* =================== Base & Reset =================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Poppins', sans-serif;
    font-size: 16px;
    line-height: 1.7;
    color: var(--text-color);
    background-color: var(--bg-color);
}

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
}

section {
    padding: 80px 0;
}

.section--bg-light {
    background-color: var(--bg-color-light);
}

.section__header {
    text-align: center;
    margin-bottom: 60px;
}

.section__title {
    font-size: 2.5rem;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 10px;
}

.section__subtitle {
    font-size: 1.1rem;
    color: var(--text-color-light);
    max-width: 600px;
    margin: 0 auto;
}

.section__footer {
    text-align: center;
    margin-top: 40px;
}

/* =================== Buttons =================== */
.btn {
    display: inline-block;
    padding: 12px 28px;
    border-radius: 50px;
    font-weight: 500;
    text-decoration: none;
    transition: var(--transition);
    cursor: pointer;
    border: none;
}

.btn--primary {
    background-color: var(--primary-color);
    color: #fff;
}

.btn--primary:hover {
    background-color: var(--primary-color-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

.btn--secondary {
    background-color: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.btn--secondary:hover {
    background-color: var(--primary-color);
    color: #fff;
}

.btn--large {
    padding: 15px 35px;
    font-size: 1.1rem;
}

/* =================== Header & Navigation =================== */
.header {
    position: sticky;
    top: 0;
    left: 0;
    width: 100%;
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 80px;
}

.nav__logo img {
    height: 50px; /* Adjust based on your logo's aspect ratio */
}

.nav__menu {
    position: fixed;
    top: 0;
    right: -100vw; /* Hide off-screen */
    width: 80%;
    max-width: 300px;
    height: 100vh;
    background-color: var(--bg-color);
    box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

/* This class is added by JS to show the menu */
.nav__menu.nav--active {
    right: 0;
}

.nav__list {
    list-style: none;
    text-align: center;
}

.nav__item {
    margin-bottom: 2rem;
}

.nav__link {
    font-size: 1.2rem;
    font-weight: 500;
    color: var(--text-color);
    text-decoration: none;
    transition: var(--transition);
}

.nav__link:hover {
    color: var(--primary-color);
}

.nav__close, .nav__toggle {
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--primary-color);
}

.nav__close {
    position: absolute;
    top: 20px;
    right: 20px;
}

.nav__toggle {
    display: block; /* Always show on mobile */
}

/* =================== Hero Section =================== */
.hero {
    position: relative;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #fff;
    overflow: hidden;
}

.hero__background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('../images/digital-hero.jpg') no-repeat center center/cover;
    z-index: -2;
}

.hero__overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(0, 82, 204, 0.8), rgba(0, 0, 0, 0.7));
    z-index: -1;
}

.hero__content {
    max-width: 800px;
}

.hero__title {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.hero__subtitle {
    font-size: 1.5rem;
    font-weight: 300;
    color: var(--accent-color);
    margin-bottom: 1.5rem;
}

.hero__description {
    font-size: 1.1rem;
    margin-bottom: 2.5rem;
    opacity: 0.9;
}

.hero__buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* =================== Trust Bar =================== */
.trust-bar {
    background-color: var(--primary-color);
    color: #fff;
    padding: 40px 0;
}

.trust-bar__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    text-align: center;
}

.trust-bar__item {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
}

.trust-bar__icon {
    font-size: 2.5rem;
    color: var(--accent-color);
}

.trust-bar__item h3 {
    font-size: 1.8rem;
    font-weight: 600;
}

.trust-bar__item p {
    font-size: 0.9rem;
    opacity: 0.8;
}

/* =================== Services Section =================== */
.services__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
}

.service-card {
    background-color: #fff;
    padding: 40px 30px;
    border-radius: 10px;
    box-shadow: var(--shadow);
    text-align: center;
    transition: var(--transition);
    border: 1px solid var(--border-color);
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-hover);
}

.service-card__icon {
    font-size: 3rem;
    color: var(--secondary-color);
    margin-bottom: 20px;
}

.service-card__title {
    font-size: 1.4rem;
    font-weight: 600;
    margin-bottom: 15px;
    color: var(--text-color);
}

.service-card__description {
    color: var(--text-color-light);
    margin-bottom: 20px;
}

.service-card__link {
    color: var(--primary-color);
    font-weight: 500;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    transition: var(--transition);
}

.service-card__link:hover {
    gap: 10px;
}

/* =================== Training Section =================== */
.training__content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.training__info p {
    margin-bottom: 20px;
    color: var(--text-color-light);
}

.training__list {
    list-style: none;
    margin-bottom: 30px;
}

.training__list li {
    padding: 10px 0;
    color: var(--text-color);
}

.training__list li i {
    color: var(--accent-color);
    margin-right: 10px;
}

.training__image img {
    width: 100%;
    border-radius: 10px;
    box-shadow: var(--shadow);
}

/* =================== Portfolio Section =================== */
.portfolio__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
}

.portfolio-item {
    position: relative;
    overflow: hidden;
    border-radius: 10px;
    box-shadow: var(--shadow);
    cursor: pointer;
}

.portfolio-item img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    transition: var(--transition);
}

.portfolio-item__overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 20px;
    color: #fff;
    opacity: 0;
    transition: var(--transition);
}

.portfolio-item:hover .portfolio-item__overlay {
    opacity: 1;
}

.portfolio-item:hover img {
    transform: scale(1.1);
}

.portfolio-item__overlay h4 {
    font-size: 1.2rem;
    font-weight: 600;
}

.portfolio-item__overlay p {
    font-size: 0.9rem;
    opacity: 0.9;
}

/* =================== Testimonials Section =================== */
.testimonials__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 30px;
}

.testimonial-card {
    background-color: #fff;
    padding: 30px;
    border-radius: 10px;
    box-shadow: var(--shadow);
    border-left: 4px solid var(--secondary-color);
}

.testimonial-card__text {
    font-style: italic;
    margin-bottom: 20px;
    color: var(--text-color-light);
}

.testimonial-card__author {
    display: flex;
    align-items: center;
    gap: 15px;
}

.testimonial-card__author img {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
}

.testimonial-card__author h4 {
    font-weight: 600;
    color: var(--text-color);
}

.testimonial-card__author p {
    font-size: 0.9rem;
    color: var(--text-color-light);
}

/* =================== Final CTA Section =================== */
.cta {
    background-color: var(--primary-color);
    color: #fff;
    text-align: center;
    padding: 80px 0;
}

.cta__title {
    font-size: 2.5rem;
    font-weight: 600;
    margin-bottom: 10px;
}

.cta__subtitle {
    font-size: 1.1rem;
    margin-bottom: 30px;
    opacity: 0.9;
}

.cta .btn--primary {
    background-color: var(--accent-color);
    color: var(--text-color);
}

.cta .btn--primary:hover {
    background-color: #fff;
}

/* =================== Footer =================== */
.footer {
    background-color: #222;
    color: #aaa;
    padding: 60px 0 20px;
}

.footer__grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 40px;
    margin-bottom: 40px;
}

.footer__logo {
    height: 40px;
    margin-bottom: 20px;
    filter: brightness(0) invert(1); /* Makes logo white */
}

.footer__brand p {
    margin-bottom: 20px;
}

.footer__socials a {
    color: #aaa;
    font-size: 1.2rem;
    margin-right: 15px;
    transition: var(--transition);
}

.footer__socials a:hover {
    color: var(--secondary-color);
}

.footer__links h4 {
    color: #fff;
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 10px;
}

.footer__links h4::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 40px;
    height: 2px;
    background-color: var(--secondary-color);
}

.footer__links ul {
    list-style: none;
}

.footer__links ul li {
    margin-bottom: 10px;
}

.footer__links a {
    color: #aaa;
    text-decoration: none;
    transition: var(--transition);
}

.footer__links a:hover {
    color: var(--secondary-color);
    padding-left: 5px;
}

.footer__contact h4 {
    color: #fff;
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 20px;
}

.footer__contact p {
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.footer__contact i {
    color: var(--secondary-color);
    width: 20px;
}

.footer__copyright {
    text-align: center;
    border-top: 1px solid #444;
    padding-top: 20px;
    font-size: 0.9rem;
}
/* =================== Styling for Contact Links =================== */

/* --- Phone Link --- */
a[href^="tel:"] {
    color: inherit; /* Inherits color from parent <p> tag */
    text-decoration: none; /* Removes underline */
    transition: var(--transition); /* Smooth hover effect */
}

a[href^="tel:"]:hover {
    color: var(--primary-color); /* Changes to primary blue on hover */
}

/* --- Email Link --- */
a[href^="mailto:"] {
    color: inherit;
    text-decoration: none;
    transition: var(--transition);
}

a[href^="mailto:"]:hover {
    color: var(--primary-color);
}

/* --- WhatsApp Link --- */
a[href^="https:"] {
    color: inherit;
    text-decoration: none;
    transition: var(--transition);
}

a[href^="https:"]:hover {
    color: #25D366;
}

/* --- WhatsApp Link --- */
.contact-link-whatsapp {
    color: inherit;
    text-decoration: none;
    transition: var(--transition);
}

.contact-link-whatsapp:hover {
    color: #25D366; /* WhatsApp's brand green on hover */
}



/* =================== Responsive Design =================== */
@media (max-width: 992px) {
    .section__title { font-size: 2.2rem; }
    .hero__title { font-size: 3rem; }
    .training__content { grid-template-columns: 1fr; }
    .training__image { margin-top: 30px; }
    .footer__grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
    .nav__menu { width: 70%; }
    .hero__title { font-size: 2.5rem; }
    .hero__subtitle { font-size: 1.2rem; }
    .hero__buttons { flex-direction: column; align-items: center; }
    .trust-bar__grid { grid-template-columns: repeat(2, 1fr); }
    .services__grid { grid-template-columns: 1fr; }
    .testimonials__grid { grid-template-columns: 1fr; }
    .cta__title { font-size: 2rem; }
    .footer__grid { grid-template-columns: 1fr; text-align: center; }
    .footer__socials { justify-content: center; }
    .footer__links h4::after { left: 50%; transform: translateX(-50%); }
}

@media (max-width: 576px) {
    .section { padding: 60px 0; }
    .section__title { font-size: 2rem; }
    .hero__title { font-size: 2.2rem; }
    .trust-bar__grid { grid-template-columns: 1fr; }
    .trust-bar__item { justify-content: flex-start; }
}

/* =================== Prevent Unwanted Horizontal Scroll =================== */
html, body {
    overflow-x: hidden;
}