.main{
    margin: 0 150px;
}

/* ===== Global Styles ===== */
body {
    margin: 0;
    font-family: 'roboto slab';
    color: #222;
}

main {
    overflow: hidden;
}

/* Floating WhatsApp Button */
.whatsapp-float {
  position: fixed !important;
  right: 28px;          /* more space from right */
  bottom: 28px;         /* more space from bottom */
  width: 56px;
  height: 56px;
  background: transparent;   /* remove green bg if image already has green */
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 999999;
  box-shadow: 0 8px 20px rgba(0,0,0,0.25);
  padding: 0;                /* remove any default padding */
}

/* Image inside circle */
.whatsapp-float img {
  width: 56px;               /* fill full circle */
  height: 56px;
  border-radius: 50%;       /* force image into circle */
  object-fit: cover;        /* crop properly */
  display: block;
}

/* Optional hover effect */
.whatsapp-float:hover {
  transform: scale(1.06);
  transition: 0.2s ease;
}

/* Footer must not clip it */
.footer {
  overflow: visible !important;
}

.hero-banner {
    margin-top: -30px;
    height: 350px;
    position: relative;
    overflow: hidden;
    background: linear-gradient(90deg, #071a3c, #380d0d);
    color: #fff;
    padding: 35px 55px 0 55px;
    font-family: "Poppins", sans-serif;
}

/* Dots layer */
.hero-banner::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image: radial-gradient(circle, rgba(255,255,255,0.15) 1px, transparent 1px);
    background-size: 22px 22px;
    opacity: 1;
    animation: moveDots 10s linear infinite;
    z-index: 0;
}

/* Content above dots */
.hero-banner > * {
    position: relative;
    z-index: 1;
}

/* Animation */
@keyframes moveDots {
    0% {
        background-position: 0 0;
    }
    100% {
        background-position: 200px 200px;
    }
}

.slide{
    position: absolute;
    opacity: 0;
    transition: opacity 0.6s ease;
}

.slide.active{
    opacity: 1;
    position: relative;
}

.hero-banner h1{
    font-size:30px;
    font-weight: 450;
}

.hero-banner p{
    max-width:600px;
    opacity:.9;
    line-height:1.6;
}

.slide {
    width: 50%;
}

.hero-head img{
    width: auto;
    height: 300px;
    position: absolute;
    right: 5px;
    top: -20px;
    border-radius: 25px;
    opacity: 0.45;
}

.btn-title{
    position: absolute;
    right: 80px;
    bottom: 60px;
    font-size: 25px;
    font-weight: 500;
}

.red-btn{
    display: inline-block;
    background-color: #e60000;
    padding: 8px 20px;
    border-radius: 6px;
    text-decoration: none;
    font-size: 16px;
    font-weight: 500;
    border: none;
    cursor: pointer;
    transition: 0.3s;
    position: absolute;
    right: 80px;
    bottom: 40px;
}

.red-btn a{
    text-decoration: none;
    color: #fff;
}

.red-btn:hover{
    background-color: #cc0000;
    transform: translateY(-2px);
}

.red-btn:active{
    transform: translateY(0);
}

/* Tablet */
@media (max-width: 992px) {
    .hero-banner {
        height: auto;
        padding: 30px 30px 30px 30px;
    }

    .slide {
        width: 100%;
        text-align: center;
    }

    .hero-head img {
        position: relative;
        right: 0;
        top: 0;
        height: 220px;
        margin: 20px auto 0;
        display: block;
        opacity: 0.35;
    }

    .btn-title {
        position: relative;
        right: 0;
        bottom: 0;
        font-size: 22px;
        margin-top: 15px;
        align-self: flex-start;
        text-align: left !important;
        margin-left: 0;
    }

    .red-btn {
        position: relative;
        right: 0;
        bottom: 0;
        display: inline-block;
        margin-top: 10px;
    }
}

/* Mobile */
@media (max-width: 576px) {
    .hero-banner {
        margin-top: 0;
        padding: 20px 16px 24px 16px;
        height: auto;
    }

    .hero-banner h1 {
        font-size: 22px;
        line-height: 1.3;
    }

    .hero-banner p {
        font-size: 14px;
        max-width: 100%;
    }

    .slide {
        width: 100%;
    }

    .hero-head img {
        height: 170px;
        border-radius: 14px;
        margin-top: 16px;
        opacity: 0.35;
    }

    .btn-title {
        font-size: 18px;
        margin-top: 20px;
        align-self: flex-start;
        text-align: left !important;
        margin-left: 0;
    }

    .red-btn {
        font-size: 14px;
        padding: 7px 16px;
        margin-top: -8px;
    }
}


@media (max-width: 420px) {
    .hero-head img {
        display: none;
    }
}

/* ===== Portfolio Section ===== */
.social-icons {
    display: flex;
    gap: 15px;
    justify-content: left;
    margin-top: 20px;
}

.social-icons .icon {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #000; /* black background */
    text-decoration: none;
    overflow: hidden;
    position: relative;
    transition: 
        transform 0.25s ease,
        box-shadow 0.25s ease,
        background 0.25s ease;
}

/* glow ring effect */
.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: box-shadow 0.25s ease;
}

.social-icons .icon img {
    width: 18px;
    height: 18px;
    object-fit: contain;
    display: block;
    transition: transform 0.25s ease;
}

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

.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);
}

.portfolio {
    position: relative;
    height: auto;          
    margin-left: 50px;
    margin-bottom: 40px; 
    display: flex;  
}

.portfolio .header {
    display: flex;
    align-items: center;
}

.portfolio .logo {
    width: 40px;
    height: auto;
}

.portfolio .brand {
    font-size: 20px;
    color: #004dc8;
    margin: 0;
    font-weight: 600;
}

.portfolio .tagline {
    user-select: none;
    font-family: 'Comic Sans MS';
    text-transform: uppercase;
    font-size: 20px;     /* adjust as needed */
    font-weight: 600;
    line-height: 1.2;
    margin-top: 20px;

    background: linear-gradient(
        90deg,
        #000080,   /* blue */
        #1d4ed8,   /* sky blue */
        #22c55e,   /* green */
        #84cc16,   /* lime */
        #000000,   /* black */
        #ef4444    /* red */
    );

    background-size: 400% 400%;

    /* Gradient text */
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    
     animation: gradientMove 6s ease-in-out infinite;

}

@keyframes gradientMove {
    0% {
        background-position: 0% 100%;
    }
    50% {
        background-position: 100% 0%;
    }
    100% {
        background-position: 0% 100%;
    }
}

.portfolio .tagline {
    animation:
        gradientMove 6s ease-in-out infinite,
        fadeSlide 1.2s ease-out forwards;
}

@keyframes fadeSlide {
    from {
        opacity: 0;
        transform: translateY(12px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}




.portfolio .title {
    user-select: none;
    font-size: 60px;
    font-weight: bold;
    color: #19b5d9;
    margin: 0;  
}

.portfolio-text {
    user-select: none;
    font-family: 'Poppins';
    position: relative;
    margin-right: 55%;
    font-size: 16px;
    font-weight: 300;
    line-height: 1.2;
    color: #333333;
}

.portfolio-img{
   position: absolute;
   display: flex;
   left: 50%;
}

.portfolio-img img{
    margin-top: 20px;
    width: 100%;
    max-width: 500px;
    border-radius: 10px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}




/* ===== Responsive Design ===== */
@media (max-width: 900px) {
    .services .container {
        flex-direction: column;
        gap: 30px; 
    }

    .portfolio {
        height: auto;
        padding: 30px 20px;
        margin-left: 0;
        margin-bottom: 30px;
    }

    .portfolio .title {
        font-size: 40px;
        margin: 20px 0;
    }
}

/* ===== About Us Section ===== */
.about-us {
    font-family: 'Poppins';
    position: relative;
    padding: 40px 0px;    
    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 {
    font-size: 15px;       
    line-height: 1.2;
    color: #333;
    max-width: 450px;
    font-weight: 400;
}

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

.about-left ul li {
    display: flex;
    align-items: top;
    font-size: 15px; 
    font-weight: 400;
    list-style: none;
    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 {
    font-size: 15px;       
    line-height: 1.2;
    color: #333;
    max-width: 450px;
    font-weight: 400;
}

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

.about-right ul li{
    align-items: flex-start;
    text-decoration: none;
    display: flex;
    align-items: top;
    font-size: 15px; 
    font-weight: 400;
    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;
    }
}