.main{
    margin: 0;
}

/* ===== Global Styles ===== */
body {
    margin: 0;
    font-family: "Poppins";
    color: #222;
}

main {
    overflow: hidden;
}

.hero-banner {
    background: linear-gradient(135deg, #eef2ff, #f8fafc);
    padding: 0 80px; /* ✅ only left-right padding */
    font-family: "Poppins", sans-serif;
    margin-top: -40px;
    margin-bottom: 20px;
}

/* Container */
.hero-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 420px; /* ✅ gives height instead of padding */
    gap: 40px;
}

/* LEFT CONTENT (70%) */
.hero-content {
    width: 70%;
}

/* RIGHT IMAGE (30%) */
.hero-image {
    width: 50%;
    display: flex;
    justify-content: center;
}

.hero-image img {
    width: 100%;
}

/* Heading */
.hero-content h1 {
    font-size: 42px;
    font-weight: 700;
    color: #0f172a;
    line-height: 1.3;
}

.hero-content h1 span {
    color: #3b5bdb;
}

/* Subtext */
.hero-content p {
    margin-top: 15px;
    font-size: 16px;
    color: #475569;
}

/* Points */
.hero-points {
    margin-top: 20px;
    list-style: none;
    padding: 0;
}

.hero-points li {
    margin-bottom: 10px;
    font-size: 15px;
    color: #334155;
}

/* Buttons */
.hero-buttons {
    margin-top: 25px;
    display: flex;
    gap: 15px;
}

/* Primary button */
.btn-primary {
    background: linear-gradient(135deg, #4f46e5, #ec4899);
    color: #fff;
    padding: 12px 22px;
    border-radius: 8px;
    text-decoration: none;
    font-size: 15px;
    font-weight: 500;
    transition: 0.3s;
    box-shadow: 0 8px 20px rgba(79,70,229,0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
}

/* Secondary button */
.btn-secondary {
    border: 1px solid #cbd5f5;
    padding: 12px 22px;
    border-radius: 8px;
    text-decoration: none;
    color: #0f172a;
    font-size: 15px;
    background: #fff;
    transition: 0.3s;
}

.btn-secondary:hover {
    background: #f1f5f9;
}

/* ---------- TABLET ---------- */
@media (max-width: 992px) {
    .hero-container {
        flex-direction: column;
        text-align: center;
        min-height: auto;
        padding: 40px 0;
    }

    .hero-content,
    .hero-image {
        width: 100%;
    }

    .hero-content h1 {
        font-size: 32px;
    }

    .hero-buttons {
        justify-content: center;
        flex-wrap: wrap;
    }

    .hero-image img {
        max-width: 320px;
        margin-top: 20px;
    }
}

/* ---------- MOBILE ---------- */
@media (max-width: 576px) {
    .hero-banner {
        padding: 0 20px;
    }

    .hero-content h1 {
        font-size: 26px;
    }

    .hero-content p {
        font-size: 14px;
    }

    .hero-points li {
        font-size: 14px;
    }

    .btn-primary,
    .btn-secondary {
        font-size: 14px;
        padding: 10px 16px;
    }
}


/* ===== GLOBAL FIX ===== */
*,
*::before,
*::after {
    box-sizing: border-box;
}

/* ===== Portfolio Section ===== */
.portfolio {
    width: 100%;
    padding: 40px 0; /* keep vertical spacing */
    margin-top: 40px;
    margin-bottom: 80px;
    font-family: "Poppins", sans-serif;
    background: #fff;
}

/* CENTER CONTENT WITH SAFE WIDTH */
.portfolio-container {
    max-width: 1200px;   /* ✅ prevents overflow */
    margin: 0 auto;
    padding: 0 20px;     /* ✅ required side padding */
    
    display: grid;
    grid-template-columns: 60% 40%; /* ✅ stable layout */
    gap: 40px;
}

/* LEFT SIDE */
.portfolio-left {
    min-width: 0; /* ✅ prevents text overflow */
}

/* RIGHT SIDE */
.portfolio-right {
    min-width: 0;
    align-content: center;
}

/* SOCIAL HEADER */
.social-header {
    display: flex;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
}

.social-header h3 {
    font-size: 20px;
    font-weight: 600;
    color: #0f172a;
}

/* SOCIAL ICONS */
.social-icons {
    display: flex;
    gap: 15px;
}

/* ICON STYLE */
.social-icons .icon {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #000;
    position: relative;
    overflow: hidden;
    transition: 0.25s;
}

.social-icons .icon::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 50%;
    box-shadow: 0 0 0 0 rgba(255, 0, 0, 0.6);
    transition: 0.25s;
}

.social-icons .icon img {
    width: 18px;
    transition: 0.25s;
}

/* HOVER */
.social-icons .icon:hover {
    transform: translateY(-4px) scale(1.05);
    box-shadow: 0 8px 20px rgba(255, 0, 0, 0.4);
}

.social-icons .icon:hover img {
    transform: scale(1.2) rotate(-5deg);
}

.social-icons .icon:hover::after {
    box-shadow: 0 0 0 6px rgba(255, 0, 0, 0.25);
}

/* TAGLINE */
.tagline {
    margin-top: 5px;
    font-size: 24px;
    font-weight: 600;
    background: linear-gradient(90deg, #4f46e5, #22c55e, #ef4444);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* TEXT */
.portfolio-text {
    margin-top: 10px;
    font-size: 16px;
    color: #475569;
    line-height: 1.6;
}

/* PROCESS GRID */
.process {
    display: grid;
    grid-template-columns: repeat(2, 1fr); /* ✅ 2x2 layout */
    gap: 20px;
}

/* STEP CARD */
.step {
    background: #f8fafc;
    padding: 20px;
    border-radius: 12px;
    text-align: center;
    transition: 0.3s;
}

/* NUMBER */
.step span {
    font-size: 20px;
    font-weight: 700;
    color: #4f46e5;
}

/* TEXT */
.step p {
    margin-top: 8px;
    font-size: 14px;
    color: #0f172a;
}

/* HOVER */
.step:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.08);
}

/* ---------- TABLET ---------- */
@media (max-width: 992px) {

    .portfolio-container {
        grid-template-columns: 1fr; /* stack */
        padding: 0 40px;
    }

    .process {
        margin-top: 30px;
    }
}


/* ---------- MOBILE ---------- */
@media (max-width: 576px) {

    .portfolio-container {
        padding: 0 20px;
    }

    .social-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .tagline {
        font-size: 20px;
    }

    .portfolio-text {
        font-size: 14px;
    }

    .process {
        grid-template-columns: 1fr; /* single column */
    }
}


.service-section-home {
    padding: 0 80px;
}


/* ===== About Us Section ===== */
.about-us {
    font-family: 'Poppins';
    position: relative;
    padding: 40px 80px; 
    background: linear-gradient(135deg, #eef2ff, #f8fafc);
    min-height: auto;      
    overflow: hidden;
    margin: 0;
}

.about-us .container {
    display: flex;
    gap: 40px;            
    align-items: flex-start;
    position: relative;
    z-index: 2;
}

.about-left {
    flex: 1;
}

.about-left .heading {
    font-size: 24px;      
    font-weight: 500;
    color: #0056b3;
    margin-bottom: 15px;
    white-space: nowrap;
    overflow: hidden;
    width: 12ch;
    max-width: 100%;

    animation: typing 8s steps(12, end) infinite;
}

@keyframes typing {
    0%   { width: 0; } 
    40%  { width: 12ch; }
    85%  { width: 12ch; }
    100% { width: 0; }
}

.about-left .description {
    margin-top: 10px;
    font-size: 16px;
    color: #475569;
    line-height: 1.6;
}

.about-left ul {
    padding-left: 0;
    margin-left: 0;
}

.about-left ul li {
    display: flex;
    align-items: top;
    margin-top: 10px;
    font-size: 16px;
    color: #475569;
    line-height: 1.6;
    margin: 5px 0 10px 0;
}

.about-left ul li img {
    width: 18px;
    height: 18px;
    margin-right: 5px;
    margin-top: 4px;
    flex-shrink: 0;
}

.about-right{
    margin-top: 20px;
    width: 50%;
    background: rgba(128, 128, 128, 0.1);
    padding: 5px 20px;
    border-radius: 18px;                  
    border: 1px solid rgba(0, 0, 0, 0.2);
}

.about-right{
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

.about-right {
    flex: 1;
    flex-direction: column;
}

.about-right .heading {
    font-family: 'Poppins';
    font-size: 24px;      
    font-weight: 500;
    color: #0056b3;
    margin-bottom: 15px;
}

.about-right .description {
    margin-top: 10px;
    font-size: 16px;
    color: #475569;
    line-height: 1.6;
    max-width: 450px;
}

.about-right ul {
    padding-left: 0;
    margin-left: 0;
}

.about-right ul li{
    align-items: flex-start;
    text-decoration: none;
    display: flex;
    margin-top: 10px;
    font-size: 16px;
    color: #475569;
    line-height: 1.6;
    list-style: none;
    margin: 5px 0 10px 0;
}


.about-right img {
    width: 16px;
    height: 16px;
    margin-right: 6px;
    margin-top: 3px;
    object-fit: contain;
}



/*overview section*/
.overview {
    font-family: 'Poppins';
    text-align: center;
    padding: 0 20px 140px;
}

.overview-content {
    max-width: 900px;
    margin: auto;
}

/* Gradient Heading */
.gradient-text {
    font-size: 56px;
    font-weight: 600;
    line-height: 1.2;
    margin-bottom: 20px;
}

/* First line gradient */
.gradient-text {
    background: linear-gradient(90deg,
        #2f6bff,
        #1cc88a);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.gradient-text span {
    background: linear-gradient(90deg,
        #f4b300cd,
        #ff6a00,
        #ff3d3dc8);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.overview p {
    max-width: 700px;
    margin: 20px auto;
    font-size: 16px;
    color: #555;
    font-weight: 400;
    line-height: 1.3;
}

/* Buttons */
.buttons {
    margin-top: 30px;
}

.btn {
    display: inline-block;
    padding: 8px 14px;
    border-radius: 8px;
    text-decoration: none;
    font-size: 16px;
    margin: 10px;
}

.primary {
    background: #2f6bff;
    color: white;
    transition: background 0.3s ease, transform 0.2s ease; /* smooth effect */
}

.primary:hover {
    background: #ff2f2f;   /* red on hover */
    color: #fff;
    transform: translateY(-2px);
}

/* Stats */
.stats {
    font-family: 'Poppins';
    display: flex;
    justify-content: center;
    gap: 100px;
    margin-top: 40px;
}

.stat h2 {
    color: #00008B;
    font-size: 30px;
    font-weight: 550;
    margin: 0;
}

.stat p {
    margin-top: 0;
    color: #666;
}

/* ===== Mobile Responsive (Phones & Small Tablets) ===== */
@media (max-width: 768px) {

    /* Reduce margins and padding */
    .main {
        margin: 0 20px;
    }

    .portfolio {
        flex-direction: column;
        align-items: center;
        margin: 0;
    }

    .portfolio-text {
        margin-right: 0;
        text-align: justify;
        font-size: 15px;
        line-height: 1.5;
    }

    .portfolio-img {
        position: relative;
        left: 0;
        display: flex;
        justify-content: center;
        margin-top: 20px;
    }

    .portfolio-img img {
        width: 90%;
        max-width: 300px;
    }

    .portfolio .title {
        font-size: 32px;
        text-align: center;
    }

    .portfolio .tagline {
        font-size: 16px;
        text-align: center;
    }

    /* Services section */
    .services {
        padding: 25px 20px;
        background: #f9f9f9;
    }

    .services .container {
        flex-direction: column;
        gap: 20px;
    }

    .services-left,
    .services-right {
        width: 100%;
    }

    .services-left .heading {
        font-size: 22px;
        text-align: center;
    }

    .services-left .description {
        font-size: 15px;
        text-align: justify;
    }

    /* About section */
    .about-us {
        padding: 25px 20px;
    }

    .about-us .container {
        flex-direction: column;
        align-items: center;
    }

    .about-left .heading {
        font-size: 30px;
        text-align: center;
    }

    .about-left .description {
        font-size: 15px;
        text-align: justify;
        max-width: 100%;
    }

    .about-right {
        width: 100%;
        margin-top: 20px;
        display: flex;
        justify-content: center;
    }

    .about-right img {
        width: 90%;
        max-width: 20px;
    }

     .gradient-text {
        font-size: 36px;
    }

    .stats {
        flex-direction: column;
        gap: 30px;
    }
}