.container {
    width: 96%;
    /* max-width: 1300px; */
    background: #fff;
    border-radius: 15px;
    border-top-left-radius: 95px;
    padding: 0;
    height: 95vh;
    margin: 40px auto;
}

/* About Section */
.about-section {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 40px;
    position: relative;
}

.about-left {
    flex: 1;
    min-width: 320px;
    padding: 4%;
}

.about-left h1 {
    font-size: 46px;
    font-weight: 800;
    margin-bottom: 20px;
    line-height: 1.2;
}

.about-left h1 span {
    position: relative;
    color: #fff;
    padding: 5px 15px;
    border-radius: 10px;
    display: inline-block;
    overflow: hidden;
    /* keeps animated bg inside */
    font-weight: 600;
}

/* Animate only the background, not the text */
.about-left h1 span::before {
    content: "";
    position: absolute;
    inset: 0;
    background: #0a0a23;
    border-radius: inherit;
    z-index: -1;
    transform-origin: center;
    animation: waveSide 6s infinite ease-in-out;
}

/* shared keyframes */
@keyframes waveSide {
    0% {
        transform: rotate(0deg) skewX(0deg);
    }

    25% {
        transform: rotate(-2deg) skewX(-6deg);
    }

    50% {
        transform: rotate(0deg) skewX(0deg);
    }

    75% {
        transform: rotate(2deg) skewX(4deg);
    }

    100% {
        transform: rotate(0deg) skewX(0deg);
    }
}




.about-left p {
    font-size: 16px;
    color: #6b21a8;
    margin-bottom: 25px;
    line-height: 1.6;
}

.btn {
    display: inline-block;
    padding: 12px 25px;
    background: #4f46e5;
    color: #fff;
    border-top-right-radius: 12px;
    border-top-left-radius: 12px;
    font-weight: 500;
    text-decoration: none;
    transition: 0.3s;
}

.btn i {
    transform: rotate(-45deg);
}

.btn:hover {
    background: #4338ca;
}

/* Right Side */
.about-right {
    flex: 1;
    min-width: 800px;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 8%;

}

.about-right img {
    width: 100%;
    /* max-width: 450px; */
    display: block;
    transform: translateY(35px);
}

.tag {
    position: absolute;
    background: #222;
    color: #fff;
    padding: 6px 14px;
    border-radius: 12px;
    font-size: 20px;
    font-weight: 500;
}

.tag.react {
    top: 30%;
    left: 10%;
}

.tag.next {
    top: 5%;
    right: 60%;
}

.tag.vue {
    top: 55%;
    left: 5%;
}

.tag.angular {
    bottom: 15%;
    left: -5%;
}

/* Dot Pattern Background */
.dot-pattern {
    /* position: absolute; */
    width: 400px;
    height: 150px;
    opacity: 0.1;
    background-image: radial-gradient(circle, #6b21a8 2px, transparent 2px);
    background-size: 20px 20px;
}

.dot-pattern.top-left {
    top: 140px;
    left: 50px;
}

.dot-pattern.bottom-right {
    bottom: 100px;
    right: 50px;
}



/* ================= Animations ================= */

/* Fade + Slide In from Left */
@keyframes fadeInLeft {
    0% {
        opacity: 0;
        transform: translateX(-60px);
    }

    100% {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Fade + Zoom In from Bottom */
@keyframes fadeInUp {
    0% {
        opacity: 0;
        transform: translateY(60px) scale(0.9);
    }

    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* Tags Side-to-Side Floating */
@keyframes floatSide {
    0% {
        transform: translateX(0);
        opacity: 1;
    }

    25% {
        transform: translateX(-15px);
        opacity: 0.8;
    }

    50% {
        transform: translateX(0);
        opacity: 1;
    }

    75% {
        transform: translateX(15px);
        opacity: 0.8;
    }

    100% {
        transform: translateX(0);
        opacity: 1;
    }
}

/* Dotted Background Pulse */
@keyframes pulseDots {
    0% {
        transform: scale(1) rotate(0deg);
        opacity: 0.3;
    }

    50% {
        transform: scale(1.1) rotate(10deg);
        opacity: 0.5;
    }

    100% {
        transform: scale(1) rotate(0deg);
        opacity: 0.3;
    }
}

/* ================= Apply Animations ================= */

/* Left content */
.about-left h1,
.about-left p,
.about-left .btn {
    opacity: 0;
    animation: fadeInLeft 1s ease forwards;
}

.about-left h1 {
    animation-delay: 0.2s;
}

.about-left p {
    animation-delay: 0.5s;
}

.about-left .btn {
    animation-delay: 0.8s;
}

/* Laptop image */
.about-right img {
    opacity: 0;
    animation: fadeInUp 1.2s ease forwards;
    animation-delay: 0.6s;
}

/* Tags */
.tag {
    opacity: 0;
    animation: fadeInUp 1s ease forwards, floatSide 4s ease-in-out infinite;
}

.tag.react {
    animation-delay: 1s, 2s;
}

.tag.next {
    animation-delay: 1.2s, 2.2s;
}

.tag.vue {
    animation-delay: 1.4s, 2.4s;
}

.tag.angular {
    animation-delay: 1.6s, 2.6s;
}

/* Background dots */
.dotted-bg,
.dotted-bg-left {
    animation: pulseDots 6s ease-in-out infinite;
}


/* Our Story Section */

.our-story {
    border-top-left-radius: 40px;
    border-top-right-radius: 40px;
    padding: 60px 50px;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 40px;
    background-image: url('../images/aboutus-bg.png');
    /* background-position: center; */
    background-repeat: no-repeat;
    background-position: center;
    background-size: cover;
}

/* Left Content */
.story-left {
    flex: 1;
    min-width: 320px;
    color: #fff;
}

.story-left h5 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 20px;
    color: #c4b5fd;
}

.story-left h2 {
    font-size: 36px;
    font-weight: 600;
    line-height: 1.4;
    margin-bottom: 30px;
}

.story-left h2 span {
    display: inline-block;
    /* background: linear-gradient(90deg, #7d2fff, #2eb9ff); */
    color: #fff;
    padding: 4px 12px;
    border-radius: 12px;
    transform-origin: center;
    animation: waveSide 6s infinite ease-in-out;
}

/* Animated gradient background only */
.story-left h2 span::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, #7d2fff, #2eb9ff);
    border-radius: inherit;
    z-index: -1;
    /* behind text */
    transform-origin: center;
    animation: waveSide 6s infinite ease-in-out;
}

.story-left p {
    font-size: 16px;
    line-height: 1.7;
    color: #d1d5db;
    max-width: 550px;
}

/* Right Content */
.story-right {
    flex: 1;
    min-width: 320px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 1fr 1fr;
    gap: 20px;
}

.story-right img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    border-radius: 16px;
    display: block;
}


/* ******************* Our Technologies */
.technologies {
    width: 100%;
    /* max-width: 1300px; */
    padding: 20px 0;
    background-image: url('../images/aboutus-bg.png');
    /* background-position: center; */
    background-repeat: no-repeat;
    background-position: center;
    background-size: cover;
    /* border-radius: 40px; */
    color: #fff;
}

.technologies h5 {
    text-align: center;
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 30px;
}

/* Tech Tabs */
.tech-tabs {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 60px;
    flex-wrap: wrap;
}

.tech-tab {
    padding: 10px 22px;
    border: 1px solid #6b7280;
    border-radius: 10px;
    font-size: 16px;
    color: #fff;
    background: transparent;
    cursor: pointer;
    transition: all 0.3s;
}

.tech-tab.active {
    border-color: #9333ea;
    background: rgba(147, 51, 234, 0.2);
}

/* Content Grid */
.tech-content {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 40px;
    width: 94%;
    margin: auto;
}

/* Code Snippet Card */
.code-card {
    flex: 1;
    min-width: 350px;
    background: #1e1e1e;
    border-radius: 12px;
    overflow: hidden;
    color: #f5f5f5;
    max-width: 550px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
}

.code-header {
    display: flex;
    align-items: center;
    padding: 10px 15px;
    background: #2b2b2b;
    font-size: 14px;
}

.code-header::before {
    content: '';
    display: inline-block;
    width: 10px;
    height: 10px;
    background: #ff5f56;
    border-radius: 50%;
    margin-right: 6px;
    box-shadow: 18px 0 #ffbd2e, 36px 0 #27c93f;
}

.code-header span {
    margin-left: 30px;
    font-weight: 600;
    color: #d4d4d4;
}

.code-tabs {
    display: flex;
    padding: 8px 15px;
    gap: 12px;
    background: #2b2b2b;
}

.code-tab {
    padding: 5px 12px;
    border-radius: 8px;
    font-size: 13px;
    cursor: pointer;
    color: #d4d4d4;
}

.code-tab.active {
    background: #111;
    color: #fff;
}

.code-body {
    padding: 20px;
    font-family: monospace;
    font-size: 14px;
    color: #f5f5f5;
    line-height: 1.6;
    height: 350px;
}

.code-body .keyword {
    color: #569cd6;
}

.code-body .string {
    color: #ce9178;
}

.code-body .function {
    color: #dcdcaa;
}

/* Right Text */
.tech-text {
    flex: 1;
    min-width: 320px;
}

.tech-text h2 {
    font-size: 32px;
    font-weight: 600;
    line-height: 1.4;
    margin-bottom: 20px;
}

.tech-text h2 span {
    /* background: linear-gradient(90deg, #7d2fff, #2eb9ff); */
    padding: 4px 12px;
    border-radius: 12px;
    color: #fff;
    display: inline-block;
    transform-origin: center;
    animation: waveSide 6s infinite ease-in-out;
}

/* Animate only the background gradient */
.tech-text h2 span::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, #7d2fff, #2eb9ff);
    border-radius: inherit;
    z-index: -1;
    transform-origin: center;
    animation: waveSide 6s infinite ease-in-out;
}


.tech-text p {
    font-size: 16px;
    line-height: 1.7;
    color: #d1d5db;
    width: 100%;
}

/***************** Fade effect */
/* Fade animation */
.fade {
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

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

/* Ensure image fits */
#tech-image {
    width: 100%;
    border-radius: 8px;
    display: block;
}


/* Portfolio Container */
.portfolio-container {
    width: 100%;
    position: relative;
    background-image: url('../images/aboutus-bg.png');
    /* background-position: center; */
    background-repeat: no-repeat;
    background-position: center;
    background-size: cover;
    padding: 60px 0;
}

.portfolio-title {
    color: white;
    font-size: 3.5rem;
    font-weight: 300;
    margin-bottom: 60px;
    line-height: 1.2;
    letter-spacing: -1px;
    text-align: center;
}

/* Carousel Wrapper */
.portfolio-carousel-wrapper {
    position: relative;
}

.portfolio-carousel {
    width: 96%;
    margin: auto;
}

.project-card {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 20px;
    overflow: hidden;
    margin: 0 15px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    border: 1px solid #7d2fff;
}

.project-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.25);
}

.innovation-image {
    background: url('../images/project-name1.png') center/cover no-repeat;
    height: 350px;
}

.code-editor-image {
    background: url('../images/project-name2.png') center/cover no-repeat;
    height: 350px;
}

.project-content {
    padding: 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: white;
}

.project-name {
    font-size: 1.5rem;
    font-weight: 600;
    color: #333;
    margin: 0;
}

.arrow-btn {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: linear-gradient(to right, #7d2fff, #2eb9ff);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    cursor: pointer;
    margin-left: 15px;
    color: white;
}

.arrow-btn i {
    transform: rotate(-45deg);
    /* rotate only the arrow */
    display: inline-block;
}


.project-arrow::after {
    content: '';
    width: 12px;
    height: 12px;
    border: 2px solid white;
    border-left: none;
    border-bottom: none;
    transform: rotate(45deg);
    margin-left: 3px;
}

/* Slick Dots */
.slick-dots {
    text-align: center;
    margin-top: 40px;
    bottom: -50px !important;
}

.slick-dots li button:before {
    font-size: 14px;
    color: white !important;
    opacity: 1;
}

.slick-dots li.slick-active button:before {
    color: #7c3aed !important;
}

/* Custom Arrows */
.custom-arrow {
    position: absolute;
    bottom: 10px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10;
}

.custom-arrow:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1.1);
}

.slick-prev.custom-arrow {
    left: 20px;
}

.slick-next.custom-arrow {
    right: 20px;
}

/* Arrow Icons */
.custom-arrow::before {
    content: '';
    width: 12px;
    height: 12px;
    /* border: 2px solid white; */
    border-right: none;
    border-bottom: none;
}

.slick-prev.custom-arrow::before {
    transform: rotate(-45deg);
}

.slick-next.custom-arrow::before {
    transform: rotate(135deg);
}

/* Responsive */
@media (max-width: 768px) {
    .portfolio-title {
        font-size: 2.5rem;
        margin-bottom: 40px;
    }

    .project-card {
        margin: 0 10px;
    }

    .project-content {
        padding: 20px;
    }

    .project-name {
        font-size: 1.3rem;
    }

    .custom-arrow {
        display: none;
    }
}

@media (max-width: 480px) {
    .portfolio-title {
        font-size: 2rem;
    }

    .innovation-image,
    .code-editor-image {
        height: 250px;
    }
}

/*************** Our Services  */
.services-container {
    position: relative;
    z-index: 1;
    background-image: url('../images/our-portfolio-bg.png');
    /* background-position: center; */
    background-repeat: no-repeat;
    background-position: center;
    background-size: cover;
    padding: 4%;
    border-bottom-left-radius: 60px;
    border-bottom-right-radius: 60px;
}

.services-card {
    background: linear-gradient(135deg, #111111, #2d0b59);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 40px;
    padding: 20px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
    width: 90%;
    margin: auto;
}

.services-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1) 0%, rgba(70, 69, 69, 0.05) 100%);
    pointer-events: none;
    border-radius: inherit;
}

.services-content {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 60px;
    align-items: center;
    position: relative;
    z-index: 2;
}

.text-content {
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.services-title {
    font-size: 32px;
    font-weight: 300;
    color: white;
    line-height: 1.2;
    letter-spacing: -1px;
    margin: 0;
}

.services-description {
    font-size: 1.125rem;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.85);
    font-weight: 400;
    max-width: 500px;
}

.arrow-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, #8b5cf6 0%, #a855f7 50%, #c084fc 100%);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow:
        0 10px 30px rgba(139, 92, 246, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.arrow-icon:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow:
        0 20px 40px rgba(139, 92, 246, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.arrow-icon::after {
    content: '';
    width: 16px;
    height: 16px;
    border: 3px solid white;
    border-left: none;
    border-bottom: none;
    transform: rotate(45deg);
    margin-left: 4px;
}

.image-section {
    position: relative;
}

.services-image {
    width: 400px;
    height: 300px;
    border-radius: 25px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    overflow: hidden;
    box-shadow:
        0 25px 50px rgba(0, 0, 0, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.8);
    position: relative;
}

.services-image::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('../images/project-name1.png') center/cover;
    border-radius: inherit;
}

/* Floating elements animation */
.floating-element {
    position: absolute;
    opacity: 0.1;
    animation: float 6s ease-in-out infinite;
}

.floating-element:nth-child(1) {
    top: 10%;
    left: 10%;
    animation-delay: -2s;
}

.floating-element:nth-child(2) {
    top: 60%;
    right: 10%;
    animation-delay: -4s;
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0px) rotate(0deg);
    }

    50% {
        transform: translateY(-20px) rotate(10deg);
    }
}

/* Responsive Design */
@media (max-width: 1024px) {
    .services-card {
        padding: 40px;
    }

    .services-content {
        gap: 40px;
    }

    .services-image {
        width: 350px;
        height: 260px;
    }
}

@media (max-width: 768px) {
    body {
        padding: 40px 20px;
    }

    .services-card {
        padding: 30px;
        border-radius: 30px;
    }

    .services-content {
        grid-template-columns: 1fr;
        gap: 30px;
        text-align: center;
    }

    .services-title {
        font-size: 2.5rem;
    }

    .services-description {
        font-size: 1rem;
        max-width: none;
    }

    .services-image {
        width: 100%;
        max-width: 350px;
        height: 250px;
        margin: 0 auto;
    }

    .arrow-icon {
        width: 60px;
        height: 60px;
        margin: 0 auto;
    }
}

@media (max-width: 480px) {
    .services-title {
        font-size: 2rem;
    }

    .services-card {
        padding: 20px;
        border-radius: 25px;
    }

    .services-image {
        height: 200px;
    }
}