/* --- Global Variables & Reset --- */
:root {
    --primary-red: #E74C3C;
    --hero-bg: #F9F9F9;
    --section-bg: #FFFFFF;
    --dark-text: #333;
    --light-text: #666;
    --cta-gradient-start: #9B59B6;
    --cta-gradient-end: #E74C3C;
    --main-border-radius: 20px;
}

* {
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    margin: 0;
    padding: 0;
    background-color: #ff00b3;
    color: #ffffff;
    line-height: 1.6;
    padding-top: 90px;
}

.container {
    width: 100%;
    max-width: 1350px;
    margin: auto;
    padding: 0 40px;
}

h1, h2, h3 {
    font-weight: 800;
}

.section-title {
    font-size: 2em;
    margin-bottom: 60px;
    color: #ffffff;
    text-align: center;
}

/* --- Hero Section --- */
.hero-section { 
    padding: 15px 0; 
}

.hero-content {
    display: flex;
    gap: 80px;
    align-items: center;
    justify-content: space-between;
}

.hero-text { 
    flex: 1; 
}

.headline {
    font-size: 2.7em;
    line-height: 1.15;
}

.highlight { 
    color: #ffffff; 
}

.sub-headline {
    margin: 20px 0 30px;
    font-size: 1.2em;
    color: #ffffff;
}

.hero-image {
    flex: 1;
    height: 450px;
}

.hero-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 12px;
}

/* CTA Buttons */
.cta-button {
    display: inline-block;
    padding: 12px 25px;
    font-weight: 600;
    border-radius: 5px;
    text-decoration: none;
    text-transform: uppercase;
    font-size: .9em;
}

.primary-cta {
    background: #000000;
    color: #ffffff;
    transition: background-color 0.3s ease, box-shadow 0.3s;
}

.primary-cta:hover {
    background: #ffffff;
    color: #ff00b3;
    box-shadow: 0 4px 10px rgba(231,76,60,0.4);
}

.cta-social {
    display: flex;
    align-items: flex-start !important;
    gap: 18px;
    margin-top: 20px;
}

.social-icons a {
    color: #E74C3C;
    font-size: 25px;
    margin-right: 10px;
    transition: 0.3s;
}

.social-icons a:hover {
    transform: translateY(-3px);
    color: #c0392b;
}

/* --- Services Section --- */
.services-section { 
    padding: 40px 0 60px; 
}

.services-grid {
    /* CHANGED from display: flex to display: grid */
    display: grid;
    /* NEW: Set default desktop layout to 4 columns */
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    padding: 0 20px;
    /* Removed flex: 1 from .service-card as grid handles sizing */
}

/* REMOVE the 'flex: 1' rule from the original .service-card */
.service-card {
    /* REMOVE: flex: 1; */
    padding: 40px 20px;
    background-color: #000000; 
    border-radius: 8px; 
    text-align: center;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05); 
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-card:hover {
    transform: translateY(-10px) scale(1.01);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
    background: #ffffff;
    color: #ff00b3;
}

.service-card .icon {
    display: inline-flex; 
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    font-size: 28px;
    margin-bottom: 20px;
    border-radius: 50%; 
    font-weight: bold;
    background-color: #ff00b3; 
}


.service-card h3 {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 15px;
    color: #ffffff;
}

.service-card p {
    font-size: 16px;
    line-height: 1.6;
    color: #ffffff;
    text-align: center;
}

.service-card h3, 
.service-card p,
.service-card .icon {
    transition: transform 0.3s ease, text-shadow 0.3s ease;
}

.service-card:hover h3 {
    transform: translateY(-2px); 
    text-shadow: 0 4px 6px rgba(0, 0, 0, 0.1); 
    color: #ff00b3;
}

.service-card:hover .icon {
    transform: translateY(-3px) scale(1.1);
    box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1); 
    background: #ff00b3;
}

.service-card:hover p {
    transform: translateY(-1px);
    color: #ff00b3;
}

/* --- Portfolio --- */
.portfolio-section { 
    padding: 60px 0 160px; 
}

.portfolio-wrapper {
    width: 100%;
    overflow: hidden;
    margin-top: 30px;
}

.portfolio-track {
    display: flex;
    gap: 15px;
    animation: slideLeft 3s linear infinite;
}

/* Project CardS */
.project-card {
    background: #ddd;
    min-width: 260px;
    height: 150px;
    border-radius: 8px;
    overflow: hidden;
    flex-shrink: 0;
}

.project-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.portfolio-track:hover {
    animation-play-state: paused;
}

/* --- Partner --- */
.partner-section { 
    padding: 10px 0 60px; 
}

.section-title-partner {
    font-size: 2em;
    color: #ffffff;
    text-align: center;
}

.partner-wrapper {
    width: 100%;
    overflow: hidden;
}

.partner-logos {
    display: flex;
    align-items: center;
    gap: 50px;
    flex-wrap: wrap;
    justify-content: center;
}

.partner-logos img {
    max-width: 130px;
    height: auto;
    opacity: 1;
    margin-top: 0px;
}

/* Infinite Left Slide */
@keyframes slideLeft {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* --- Bottom CTA --- */
.cta-bottom {
    color: #ffffff;
    padding: 10px 0 10px;
    background: linear-gradient(90deg,#9B59B6 0%,#E74C3C 100%);
}

.cta-content {
    margin: 0 auto;
    text-align: center;
}

.cta-text {
    margin-bottom: 25px;
}

.cta-text h2 {
    font-size: 30px;
}

.cta-text p {
    font-size: 16px;
    color: #f0f0f0;
}

.secondary-cta {
    background: #ffffff;
    color: #ff00b3;
    border: none;
    margin-bottom: 25px;
    transition: background-color 0.3s ease, box-shadow 0.3s;
}

.secondary-cta:hover { 
    color: #ffffff; 
    background: #ff00b3;
}

/* --- Footer --- */
.corp-footer {
    background: #0A0A0A;
    color: #E6E6E6;
    padding: 20px 0 10px;
    font-family: "Poppins", sans-serif;
}

.corp-container {
    width: 92%;
    margin: auto;
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 50px;
}

.corp-col h3, 
.corp-col h4 {
    color: #FFFFFF;
    margin-bottom: 15px;
    font-weight: 600;
}

.corp-desc {
    line-height: 1.6;
    font-size: 14px;
    color: #CFCFCF;
    max-width: 330px;
}

.corp_socials {
    margin: 5px 0;
    color: #a9a9a9;
    line-height: 1.6;
}

.corp_socials a {
    color: #a9a9a9;
    margin-right: 5px;
    font-size: 18px;
    transition: 0.3s;
}

.corp-links {
    list-style: none;
    padding: 0;
}

.corp-links li {
    margin-bottom: 8px;
}

.corp-col a {
    color: #BDBDBD;
    text-decoration: none;
    font-size: 14px;
}

.corp-col a:hover {
    color: #ff00b3;
}

.corp-col p {
    font-size: 14px;
    line-height: 1.6;
    color: #CFCFCF;
}

.corp-bottom {
    border-top: 1px solid #2E2E2E;
    text-align: center;
    margin-top: 40px;
    font-size: 13px;
    color: #CFCFCF;
}

/* ===== FADE-IN ANIMATION ===== */
.fade-in {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.fade-in.show {
    opacity: 1;
    transform: translateY(0);
}

.service-card:nth-child(1) { transition-delay: 0.1s; }
.service-card:nth-child(2) { transition-delay: 0.2s; }
.service-card:nth-child(3) { transition-delay: 0.3s; }
.service-card:nth-child(4) { transition-delay: 0.4s; }

/* ==============================
   📌  HERO RESPONSIVE
   ============================== */
@media (max-width: 950px) {
    .container { 
        padding: 0 20px; 
    }

    .cta-social { 
        flex-direction: column; 
        gap: 15px; 
        align-items: center !important;
        display: flex; 
        margin: 0 auto;
    }

    .corp-desc { max-width: 100%; }
    .hero-content { flex-direction: column; text-align: center; gap: 50px; }
    .hero-text { width: 100%; }
    .hero-image { height: 260px; width: 100%; }
    .sub-headline { font-size: 0.95em; }
    .social-icons {
        display: flex; 
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .headline { font-size: 1.9em; }
    .sub-headline { font-size: 0.9em; }
    .cta-button { padding: 10px 20px; font-size: 0.8em; }
}

/* ==============================
   📌  SERVICE SECTION RESPONSIVE
   ============================== */
@media (max-width: 900px) {
    .services-grid { grid-template-columns: repeat(2,1fr); }
}

@media (max-width: 500px) {
    .services-grid { grid-template-columns: 1fr; }
    .service-card { text-align: center; }
}

/* ==============================
   📌  PORTFOLIO RESPONSIVE
   ============================== */
@media (max-width: 600px) {
    .portfolio-track { gap: 8px; }
    .project-card { min-width: 200px; height: 120px; }
}

/* ==============================
   📌  CTA BOTTOM RESPONSIVE
   ============================== */
@media (max-width: 900px) {
    .cta-content { flex-direction: column; gap: 20px; text-align: center; }
}

/* ==============================
   📌  FOOTER RESPONSIVE
   ============================== */
@media (max-width: 700px) {
    .corp-container { flex-direction: column; gap: 30px; text-align: center; }
    .corp-col { width: 100%; }
}

/* ==============================
   📌  SERVICE SECTION RESPONSIVE (Now Fixed with Grid)
   ============================== */
@media (max-width: 1100px) { /* Added a larger breakpoint for slightly smaller desktops */
    .services-grid { 
        /* Switch from 4 columns to 2 columns on medium screens */
        grid-template-columns: repeat(2, 1fr); 
    }
}

@media (max-width: 650px) { /* Adjusted breakpoint from 500px to 650px for better flow */
    .services-grid { 
        /* Switch from 2 columns to 1 column on mobile screens */
        grid-template-columns: 1fr; 
    }
    .service-card { 
        text-align: center; 
    }
}