/* Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: system-ui, sans-serif;
}

html{
    scroll-behavior: smooth;
}


h1{
    font-family: "Plus Jakarta Sans", sans-serif;
    font-size: 3.5rem;
}

h2{
    font-family: "Plus Jakarta Sans", sans-serif;
    font-size: 2.5rem;
}

h3{
    font-family: "Plus Jakarta Sans", sans-serif;
    font-size: 1.5rem;  
}


p{
    font-family: sans-serif;
    font-size: 1rem;
    line-height: 150%;
}

section{
    padding: 2rem 10vw;
}

.landing-top{
    margin-top: 4.5rem;
}

/* Navbar */
.navbar {
    background-color: #240f57;
    padding: 1rem 10vw 1rem 10vw;
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 10000;
}

.nav-container {
    width: 100%;
    margin-inline: auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
}


/* Logo */
.logo img {
    height: 3rem;
    width: auto;
}

/* Links */
.nav-links {
    list-style: none;
    display: flex;
    gap: 2rem;
}

.nav-links a {
    color: #fff;
    text-decoration: none;
    font-size: 1rem;
}


.nav-links .nav-link {
    position: relative;
    color: #fff;
    opacity: 0.8;
    text-decoration: none;
    transition: opacity 0.2s ease;
}

.nav-links .nav-link:hover {
    color: #ffea00;
}

/* Active page */
.nav-links .nav-link.active {
    opacity: 1;
    font-weight: 600;
}

/* Active underline */
.nav-links .nav-link.active::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -0.4em;
    width: 100%;
    height: 0.12em;
    background: #f5c400;
    border-radius: 1em;
}

.nav-links a.cta-btn {
    color: #1a1a1a;
}
/* CTA Button */
.cta-btn {
    margin-left: 1rem;
    background: linear-gradient(
        135deg,
        #ffeb00,
        #ffe600
        );
        color: #1a1a1a;
        padding: 0.65em 1.4em;
        border-radius: 0.6em;
        font-weight: 600;
        font-size: 1rem;
        text-decoration: none;
        box-shadow:
        0 0 1.2em rgba(255, 235, 0, 0.6),
        0 0 2.2em rgba(255, 235, 0, 0.4);
        transition: transform 0.25s ease, box-shadow 0.25s ease;
    }
    
    /* Hover effect */
    .cta-btn:hover {
        transform: translateY(-0.1em);
        box-shadow:
        0 0 1.6em rgba(255, 235, 0, 0.8),
        0 0 3em rgba(255, 235, 0, 0.6);
    }
    
    
    /* Hamburger */
    #menu-toggle {
        display: none;
    }
    
    .menu-icon {
        display: none;
        flex-direction: column;
        cursor: pointer;
    }
    
    .menu-icon span {
        width: 1.6rem;
        height: 0.18rem;
        background: #fff;
        margin: 0.25rem 0;
    }

/* Contact Info */
.contact-primary p {
    margin-bottom: 0.8rem;
    font-size: 1rem;
}

.contact-primary a {
    color: #111;
    text-decoration: none;
}

/* Social */
.contact-secondary {
    margin-top: 1.5rem;
}

.contact-secondary p {
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
    opacity: 0.7;
}

.social-links {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.social-links a {
    font-size: 0.9rem;
    text-decoration: none;
    color: #111;
    padding: 0.4em 0.7em;
    border: 1px solid #ddd;
    border-radius: 0.4em;
}

.contact-footer {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    width: 80vw;
    margin-left: 10vw;
    margin-right: 10vw;
    background-color: #240f57;
    color: white;
    border-radius: 1000px;
    align-items: center;
    padding: 4rem;
    padding-left: 8rem;
    margin-top: 3rem;
}

.contact-footer a{
    text-decoration: none;
    color: white;
    font-size: 1.5rem;
    font-family: "Plus Jakarta Sans", sans-serif;
    font-weight: 600;
    word-spacing: 0.2rem;
}

.contact-footer a:hover{
    text-decoration: underline;
}

.contact-footer p{
    font-weight: 600;
    color: #ffea00;
    margin-bottom: 0.2rem;
}

.contact-footer img{
    width: 10rem;
}

.social-footer{
    display: flex;
    padding: 1rem;
    padding-bottom: 1.2rem;
    width: 100%;
    justify-content: center;
    gap: 0;
}

.social-footer a{
    text-decoration: none;
    font-weight: 500;
    color: #111;
    padding: 0.8rem;
}

.social-footer a.whatsapp:hover{color: #25D366;}
.social-footer a.linkedin:hover{color: #0077b5;}
.social-footer a.instagram:hover{color: #FF0069;}
.social-footer a.facebook:hover{color: #1877f2;}
.social-footer a.twitter:hover{color: #1DA1F2;}

/* Home Page */

.hero {
    margin-top: 4rem;
    padding-top: 20vh;
    padding-bottom: 20vh;
    width: 100%;
    background-image: radial-gradient(farthest-side at 50% 100%, #331564, #240f57);
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15%;
}

.hero img{
    width: 30%;
}

.hero-text{
    display: flex;
    flex-direction: column;
    width: 70%;
    gap: 1em;
}

.hero-text h1{
    color: #fff;
}

.hero-text p{
    color: #fff;
    font-size: 1rem;
}


.clients-section{
    background-color: #F1EEF6;
    display: flex;
    flex-direction: row;
    align-items: center;
}

.clients-section h2 {
    white-space: nowrap;
}

.clients-grid{
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    align-items: center;
}

.clients-grid img{
    width: 100%;
}
.services-section{
    padding-top: 10vh;
}

.services-grid{
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    max-width: unset;
    margin: 0;
    margin-top: 5vh;
}


.service-card{
    background-color: #fff;
    outline: 1px solid #e8e8e8;
    border-radius: 1rem;
    box-shadow: 0 5px 40px rgba(0, 0, 0, 0.15);
    padding: 1.875rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex; 
    flex-direction: column;
}

.service-card:hover{
    transform: translateY(-1rem);
    box-shadow: 0 10px 150px rgba(0, 0, 0, 0.25);
}

.card-title{
    color: #333;
    margin-bottom: 0.8rem;
    border-bottom: 2px solid #eeeeee;
    padding-bottom: 1rem;
    padding-top: 0.2rem;
}

.service-card ul {
    list-style: none; 
    padding-left: 0;
    flex-grow: 1; 
}

.service-card ul li {
    /* Using em for font size for better scaling within the list item context */
    font-size: 1em; /* 1.0em (keep as em) */
    color: #555555;
    /* Using rem for padding */
    padding: 0.3rem 0; /* 8px -> 0.5rem */
    position: relative;
    /* Using rem for padding-left */
    padding-left: 1.5625rem; /* 25px -> 1.5625rem */
}

.service-card ul li {
    /* Using em for font size for better scaling within the list item context */
    font-size: 1em; /* 1.0em (keep as em) */
    color: #555555;
    /* Using rem for padding */
    position: relative;
    /* Using rem for padding-left */
    padding-left: 1.5625rem; /* 25px -> 1.5625rem */
}

.service-card ul li::before {
    content: '▶'; 
    color: #007bff; 
    /* Using em for font size so it scales with the parent li font size */
    font-size: 0.8em; 
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
}

/* --- Optional: Specific Card Colors (no size changes needed here) --- */
.card-1 h2 { color: #007bff; }
.card-2 h2 { color: #008121; }
.card-3 h2 { color: #ffbe00; }
.card-4 h2 { color: #e50000; }
.card-5 h2 { color: #760188; }
.card-6 h2 { color: #ff8d00; }
/* ... (and the corresponding list item color definitions) */
.card-1 ul li::before { color: #007bff; }
.card-2 ul li::before { color: #008121; }
.card-3 ul li::before { color: #ffbe00; }
.card-4 ul li::before { color: #e50000; }
.card-5 ul li::before { color: #760188; }
.card-6 ul li::before { color: #ff8d00; }

/* Our works page */

.works-top{    
    padding-top: 8rem;
    padding-bottom: 3rem;
    display: flex;
    flex-direction: column;
    gap: 2rem;
    align-items: center;
    justify-content: center;
    background: #240f57;
    color: white;
}

.works-section{
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    margin:0;
    
}

.works-section img{
    width: 100%;
    margin-bottom: 0.4rem;
}

.works-section h3{
    font-size: 1rem;
    color: #111;
    text-decoration: none;
}

.works-section p{
    color: #1a1a1a;
}

.work-link {
  display: block;
  text-decoration: none;
  color: inherit;
}

.work-info{
    padding: 0 1rem 2rem 1rem;
}

/* Casestudy page */

.casestudy-top{
    margin-top: 7rem;
    margin-bottom: 1rem;
}

.back-btn {
  background: none;
  border: none;
  font-size: 1rem;
  cursor: pointer;
  padding: 0;
}


.casestudy img{
    width: 100%;
}

.casestudy img.margin-image{
    padding: 0 20vw;
}

.work-explain{
    padding: 0 10rem 1rem 10rem;
}



/* Tutorials page */

.tutorial-videos{    
    padding-top: 8rem;
    display: flex;
    flex-direction: column;
    gap: 2rem;
    align-items: center;
    justify-content: center;
    background: #240f57;
    color: white;
}

.filters {
  display: flex;
  gap: 12px;
  margin-bottom: 24px;
}

select {
  padding: 10px 14px;
  border-radius: 8px;
  border: none;
  background: #1c1c1c;
  color: #fff;
}

#videos {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.video-card {
  background: #ffffff;
  border-radius: 16px;
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.2s ease;
}

.video-card img {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: 12px;
}

.video-content {
  padding: 0.2rem 1rem 1rem 1rem;
}

.video-tags {
  display: flex;
  gap: 8px;
  margin-top: 8px;
  flex-wrap: wrap;
}

.tag {
  font-size: 11px;
  font-weight: 600;
  padding: 4px 8px;
  border-radius: 999px;
  text-transform: uppercase;
  letter-spacing: 0.4px;
}

.tag-lang {
  background: #e3f2fd;
  color: #1565c0;
}

.tag-cat {
  background: #ede7f6;
  color: #4527a0;
}

.tag-soft {
  background: #e8f5e9;
  color: #1b5e20;
}

/* Services page */

.services-top{
    padding-top: 8rem;
    padding-bottom: 4rem;
    display: flex;
    flex-direction: column;
    gap: 2rem;
    align-items: center;
    justify-content: center;
    background: #240f57;
    color: white;
}

.main-service{
    padding-top: 5rem;
}


.main-service h2{
    margin-bottom: 0.8rem;
}

.services{
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.subservices > p {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: #111;
}

.subservices ul {
    list-style: none;
    padding: 0;
}

.subservices li{
    margin-bottom: 1rem;
}

/* 404 Not found */

.page-not-found{
    background-color: #240f57;
}

.page-not-found a{
    color: white;
}
.page-not-found .back-btn{
    color: #000;
}
.error-content{
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding-top: 12rem;
    padding-bottom: 4rem;
    gap: 1rem;
}

.error-content h1{
    color: #ffea00;
    text-align: center;
}
.error-content p{
    color: white;
    font-size: 1.5rem;
    font-family: "Plus Jakarta Sans", sans-serif;
    font-weight: 600;
    word-spacing: 0.2rem;
    text-align: center;
    margin-bottom: 1rem;
}

.error-content a.cta-btn{
    color: #000;
}

.error-footer .contact-footer{
    grid-template-columns: repeat(2, 1fr);
    padding: 2rem 0;
    margin: 0;
}

.error-footer .email{
    display: flex;
    flex-direction: column;
    align-items: center;
}
.error-footer .call{
    display: flex;
    flex-direction: column;
    align-items: center;
}

@media (max-width: 800px) {
    .menu-icon {
        display: flex;
        position: relative;
    z-index: 1002;
    }

    .nav-links {
        position: fixed;
        top: 0;
        right: 0;
        height: 100vh;
        width: 80%;
        max-width: 300px;

        background-color: #170a36;
        flex-direction: column;
        align-items: flex-start;
        padding-top: 2rem;
        gap: 0.5rem;

        transform: translateX(100%);
        transition: transform 0.35s ease;

        box-shadow: 4px 0 30px rgba(0, 0, 0, 0.4);
        border-radius: 0;
        z-index: 1000;
    }

    .nav-links li {
        width: 100%;
        padding: 0.8rem 2rem;
    }

    .nav-links .cta-btn {
    display: block; /* or inline-block */
    margin-top: 0.5rem; /* Adjust the spacing as needed */
}
    #menu-toggle:checked ~ .nav-links {
        transform: translateX(0);
    }

#menu-toggle:checked + .menu-icon span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

#menu-toggle:checked + .menu-icon span:nth-child(2) {
    opacity: 0;
}

#menu-toggle:checked + .menu-icon span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

.menu-icon span {
    transition: all 0.3s ease;
}

.clients-section{
    flex-direction: column;
    align-items: first baseline;
    padding: 2rem 5vw;
    gap: 1rem;
}

.clients-grid{
    grid-template-columns: repeat(4, 1fr);
}


    .services-grid{
    grid-template-columns: repeat(2, 1fr);
    
}

    .navbar{
        padding: 1rem 2rem;
    }

    h1{
        font-size: 2.5rem;
    }

    h2{
    font-size: 1.5rem;
}

    h3{
        font-size: 1.2rem;  
    }
    section{
        padding: 0 5vw 0 5vw;
    }


    .contact-footer{
    grid-template-columns: repeat(1, 1fr);
    padding: 1.6rem;
    border-radius: 1rem;
    margin: 5vw;
    margin-bottom: 0;
    width: 90vw;
    }


    .hero{
        flex-direction: column-reverse;
        padding-top: 5rem;
        padding-bottom: 3rem;
    }

    .hero-text{
        width: 100%;
        margin-top: 2rem;
    }
    .works-section{
        grid-template-columns: 1fr 1fr;
    }

    .hero img{
    width: 60%;
}

    #videos{
        grid-template-columns: 1fr 1fr;
        margin-top: 1rem;
    }

    .work-explain{
        padding: 1rem;
    }
}

@media (max-width: 600px) {
    
    h1{
        font-size: 2.5rem;
    }

    h2{
    font-size: 1.5rem;
}

    h3{
        font-size: 1.2rem;  
    }
    section{
        padding: 0 5vw 0 5vw;
    }

    .navbar{
        padding: 1rem 5vw;
    }
    .contact-footer{
    grid-template-columns: repeat(1, 1fr);
    padding: 1.6rem;
    border-radius: 1rem;
    margin: 5vw;
    width: 90vw;
    }

    .social-footer{
        flex-direction: column;
        align-items: center;
        gap: 0.5em;
    }

    .social-footer a{
        width: 100%;
        text-align: center;
    }

    .hero{
        flex-direction: column-reverse;
        padding-top: 5rem;
        padding-bottom: 3rem;
    }

    .hero-text{
        width: 100%;
        margin-top: 2rem;
    }

.clients-grid{
    grid-template-columns: repeat(2, 1fr);
}


    .works-section{
        grid-template-columns: 1fr;
    }

        .work-info{
    padding: 0 5vw 2rem 5vw;
}

    .hero img{
    width: 80%;
}

    #videos{
        grid-template-columns: 1fr;
        margin-top: 1rem;
    }

    .work-explain{
        padding: 1rem;
    }
        .services-grid{
    grid-template-columns: repeat(1, 1fr);
    
}

    .services-grid{
    grid-template-columns: 1fr;
    
}
.error-content{
    align-items: flex-start;
}

.error-content h1{
    color: #ffea00;
    text-align: left;
    font-size: 2rem;
}
.error-content p{
    font-size: 1.2rem;
    text-align: left;
}

.error-footer .contact-footer{
    grid-template-columns: repeat(1, 1fr);
}

.error-footer .email{
    align-items: flex-start;
}
.error-footer .call{
    align-items: flex-start;
}
.error-content .cta-btn{
    margin: 0;
}
}