* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
    text-decoration: none;
    border: none;
    outline: none;
    scroll-behavior: smooth;
}

:root {
    --bg-color: black;
    --second-bg-color: rgb(38, 35, 35);
    --text-color: #fff;
    --main-color: rgb(0, 255, 255);
}

html {
    font-size: 62.5%;
    overflow-x: hidden;
}

body {
    background: var(--bg-color);
    color: var(--text-color);
}

section {
    min-height: 100vh;
    padding: 10rem 9% 2rem;
}

.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 2rem 9%;
    background: var(--bg-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 99;
}

.header.sticky {
    border-bottom: .1rem solid black;
}

.cssanimation {
    font-size: 2.5rem;
    color: var(--text-color);
    font-weight: 600;
    cursor: default;
}

/* Adding css animetion !!! */
.cssanimation,
.cssanimation span {
    animation-duration: 5s;
    animation-fill-mode: both;
}

.cssanimation span {
    display: inline-block
}

.leFadeIn span {
    animation-name: leFadeIn
}

@keyframes leFadeIn {
    from {
        opacity: 0
    }

    to {
        opacity: 1
    }
}

.navbar a {
    font-size: 1.7rem;
    color: var(--text-color);
    margin-left: 4rem;
    transition: .3s;
}

.navbar a:hover,
.navbar a.active {
    color: var(--main-color);
}

#menu-icon {
    font-size: 3.6rem;
    color: var(--text-color);
    display: none;
}

.home {
    display: flex;
    justify-content: center;
    align-items: center;
}

.home-img img {
    width: 35vw;
    animation: floatImage 4s ease-in-out infinite;
}

@keyframes floatImage {
    0% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-3.4rem);
    }

    100% {
        transform: translateY(0);
    }
}

.home-content h3 {
    font-size: 3.2rem;
    font-weight: 700;
}

.home-content h3:nth-of-type(2) {
    margin-bottom: 2rem;
}

span {
    color: var(--main-color);
}

.multiple-text2 {
    display: inline-block;
    padding: 1rem 1.5rem;
    background: var(--main-color);
    border-radius: 4rem;
    box-shadow: 0 0 2rem var(--main-color);
    font-size: 1.6rem;
    color: var(--second-bg-color);
    letter-spacing: 0.5rem;
    font-weight: 600;
    transition: .5s ease;
}

.multiple-text2:hover {
    box-shadow: none;
}

.home-content h1 {
    font-size: 5.6rem;
    font-weight: 700;
    line-height: 1.3;
}

.home-content p {
    font-size: 1.6rem;
}

.social-media a {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 4rem;
    height: 4rem;
    background: transparent;
    border: .2rem solid var(--main-color);
    border-radius: 50%;
    font-size: 2rem;
    color: var(--main-color);
    margin: 3rem 1.5rem 3rem 0;
    transition: .5s ease;
}

.social-media a:hover {
    background: var(--main-color);
    color: var(--second-bg-color);
    box-shadow: 0 0 1rem var(--main-color);
}

.btn {
    display: inline-block;
    padding: 1rem 1.5rem;
    background: var(--main-color);
    border-radius: 4rem;
    box-shadow: 0 0 2rem var(--main-color);
    font-size: 1.6rem;
    color: var(--second-bg-color);
    letter-spacing: 0.25rem;
    font-weight: 600;
    transition: .5s ease;
}

.btn:hover {
    box-shadow: none;
}

.about {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    background: var(--second-bg-color);
}

.about-img img {
    width: 35vw;
}

.heading {
    text-align: center;
    font-size: 4.5rem;
}

.about-content h2 {
    text-align: left;
    line-height: 1.2;
}

.about-content h3 {
    font-size: 2.6rem;
}

.about-content p {
    font-size: 1.6rem;
    margin: 2rem 0 3rem;
}

.services h2 {
    margin-bottom: 5rem;
}

.services-container {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 2rem;
}

.services-container .services-box {
    flex: 1 1 30rem;
    background: var(--second-bg-color);
    padding: 3rem 2rem 4rem;
    border-radius: 2rem;
    text-align: center;
    border: .2rem solid var(--bg-color);
    transition: .5s ease;
}

.services-container .services-box:hover {
    border-color: var(--main-color);
    transform: scale(1.02);
}

.services-box i {
    font-size: 7rem;
    color: var(--main-color);
}

.services-box h3 {
    font-size: 2.6rem;
}

.services-box p {
    font-size: 1.6rem;
    margin: 1rem 0 3rem;
}

.portfolio {
    background: var(--second-bg-color);
}

.portfolio h2 {
    margin-bottom: 4rem;
}

.portfolio-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    align-items: center;
    gap: 2.5rem;
}

.portfolio-container .portfolio-box {
    position: relative;
    border-radius: 2rem;
    box-shadow: 0 0 1rem var(--bg-color);
    overflow: hidden;
    display: flex;
}

.portfolio-box img {
    width: 100%;
    transition: .5s ease;
}

.portfolio-box:hover img {
    transform: scale(1.1);
}

.portfolio-box .portfolio-layer {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(rgba(0, 0, 0, .1), var(--main-color));
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    text-align: center;
    padding: 0 4rem;
    transform: translateY(100%);
    transition: .5s ease;
}

.portfolio-box:hover .portfolio-layer {
    transform: translateY(0);
}

.portfolio-layer h4 {
    font-size: 3rem;
}

.portfolio-layer p {
    font-size: 1.6rem;
    margin: .3rem 0 1rem;
}

.portfolio-layer a {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 5rem;
    height: 5rem;
    background: var(--text-color);
    border-radius: 50%;
}

.portfolio-layer i {
    font-size: 2rem;
    color: var(--second-bg-color);
}

/* =============================================== */
/* ENHANCED CAROUSEL SECTION - FULLY RESPONSIVE */
/* =============================================== */

.carousel-section {
    background: var(--bg-color);
    min-height: 100vh;
    padding: 10rem 5% 5rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.carousel-section h2 {
    margin-bottom: 5rem;
    text-align: center;
}

.carousel-wrapper {
    position: relative;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    overflow: hidden;
    padding: 2rem 0;
}

.carousel-slides {
    display: flex;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    list-style: none;
    padding: 0;
    margin: 0;
}

.perspective {
    perspective: 1500px;
    transform-style: preserve-3d;
    flex: 0 0 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 2rem;
}

.slide {
    width: 100%;
    max-width: 900px;
    min-height: 550px;
    margin: 0 auto;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    color: var(--text-color);
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    transform-origin: center;
    padding: 2rem;
}

.bg-layer {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #1a1d2e 0%, #2d3142 100%);
    border-radius: 2rem;
    overflow: hidden;
    transition: all 200ms ease-out;
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.6);
    border: 2px solid rgba(0, 255, 255, 0.1);
}

.slide-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 3rem;
    opacity: 0.4;
    transition: opacity 0.5s ease-in-out;
    filter: brightness(0.8);
}

.overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(0,0,0,0.3) 0%, rgba(0,0,0,0.8) 100%);
    opacity: 0;
    transition: opacity 0.5s;
}

.content {
    position: relative;
    padding: 3rem 2.5rem;
    opacity: 0;
    visibility: hidden;
    transition: all 0.6s ease-in-out;
    z-index: 20;
    margin-top: auto;
    background: rgba(0, 0, 0, 0.85);
    border-radius: 1.5rem;
    backdrop-filter: blur(15px);
    width: 100%;
    border: 1px solid rgba(0, 255, 255, 0.2);
}

.content.active {
    opacity: 1;
    visibility: visible;
}

.slide-title {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    line-height: 1.3;
    color: var(--main-color);
    text-shadow: 0 2px 10px rgba(0, 255, 255, 0.3);
}

.description {
    font-size: 1.7rem;
    margin-bottom: 2.5rem;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.95);
    text-align: left;
}

.project-btn {
    margin-top: 1rem;
    padding: 1.3rem 2.5rem;
    background: var(--main-color);
    color: var(--bg-color);
    border: 2px solid transparent;
    font-size: 1.7rem;
    font-weight: 600;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    border-radius: 4rem;
    transition: all 300ms;
    box-shadow: 0 5px 20px rgba(0, 255, 255, 0.4);
    text-decoration: none;
    letter-spacing: 0.1rem;
}

.project-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(0, 255, 255, 0.6);
    background: var(--text-color);
    color: var(--bg-color);
}

.controls {
    position: absolute;
    display: flex;
    gap: 2rem;
    z-index: 30;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
}

.control {
    width: 5.5rem;
    height: 5.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--main-color);
    border: 3px solid transparent;
    border-radius: 50%;
    color: var(--bg-color);
    cursor: pointer;
    transition: all 300ms;
    outline: none;
    box-shadow: 0 5px 20px rgba(0, 255, 255, 0.4);
}

.control:hover {
    transform: translateY(-5px) scale(1.1);
    box-shadow: 0 10px 35px rgba(0, 255, 255, 0.7);
}

.control:active {
    transform: translateY(0) scale(0.95);
}

.control i {
    font-size: 2.5rem;
    font-weight: bold;
}

/* Active slide enhancement */
.slide.active {
    transform: scale(1);
}

.slide.active .slide-img {
    opacity: 0.9;
}

.slide.active .overlay {
    opacity: 1;
}

.slide.active .bg-layer {
    border-color: rgba(0, 255, 255, 0.3);
    box-shadow: 0 20px 60px rgba(0, 255, 255, 0.2);
}

/* =============================================== */
/* RESPONSIVE BREAKPOINTS */
/* =============================================== */

/* Desktop Large */
@media (min-width: 1400px) {
    .slide {
        max-width: 1000px;
        min-height: 600px;
    }
    
    .slide-title {
        font-size: 3.5rem;
    }
    
    .description {
        font-size: 1.8rem;
    }
}

/* Laptop */
@media (max-width: 1199px) {
    .carousel-section {
        padding: 10rem 4% 5rem;
    }
    
    .slide {
        max-width: 800px;
        min-height: 500px;
    }
    
    .slide-title {
        font-size: 2.8rem;
    }
    
    .description {
        font-size: 1.6rem;
    }
}

/* Tablet Landscape */
@media (max-width: 991px) {
    html {
        font-size: 55%;
    }
    
    .carousel-section {
        padding: 10rem 3% 5rem;
    }
    
    .slide {
        max-width: 700px;
        min-height: 550px;
    }
    
    .perspective {
        padding: 1.5rem;
    }
    
    .controls {
        bottom: 1.5rem;
        gap: 1.5rem;
    }
    
    .control {
        width: 5rem;
        height: 5rem;
    }
    
    .control i {
        font-size: 2.3rem;
    }
}

/* Tablet Portrait */
@media (max-width: 768px) {
    .carousel-section {
        padding: 10rem 2% 6rem;
        min-height: auto;
    }
    
    .carousel-section h2 {
        margin-bottom: 4rem;
        font-size: 4rem;
    }
    
    .slide {
        max-width: 100%;
        min-height: 520px;
        padding: 1.5rem;
    }
    
    .bg-layer {
        border-radius: 1.5rem;
    }
    
    .slide-img {
        padding: 2rem;
    }
    
    .slide-title {
        font-size: 2.6rem;
        margin-bottom: 1.2rem;
    }
    
    .description {
        font-size: 1.5rem;
        line-height: 1.6;
        margin-bottom: 2rem;
    }
    
    .content {
        padding: 2.5rem 2rem;
    }
    
    .project-btn {
        padding: 1.2rem 2.2rem;
        font-size: 1.6rem;
    }
    
    .controls {
        bottom: 1.2rem;
    }
    
    .control {
        width: 4.5rem;
        height: 4.5rem;
    }
    
    .control i {
        font-size: 2.1rem;
    }
    
    .portfolio-container {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Mobile Landscape */
@media (max-width: 617px) {
    html {
        font-size: 52%;
    }
    
    .carousel-section {
        padding: 9rem 2% 6rem;
    }
    
    .carousel-section h2 {
        font-size: 3.8rem;
        margin-bottom: 3.5rem;
    }
    
    .slide {
        min-height: 500px;
        padding: 1.2rem;
    }
    
    .slide-title {
        font-size: 2.4rem;
        margin-bottom: 1rem;
    }
    
    .description {
        font-size: 1.45rem;
        text-align: center;
        margin-bottom: 1.8rem;
    }
    
    .content {
        padding: 2.2rem 1.8rem;
    }
    
    .project-btn {
        padding: 1.1rem 2rem;
        font-size: 1.5rem;
    }
    
    .portfolio-container {
        grid-template-columns: 1fr;
    }
}

/* Mobile Portrait */
@media (max-width: 450px) {
    html {
        font-size: 50%;
    }
    
    .carousel-section {
        padding: 8rem 1.5% 6rem;
    }
    
    .carousel-section h2 {
        font-size: 3.5rem;
        margin-bottom: 3rem;
    }
    
    .perspective {
        padding: 1rem;
    }
    
    .slide {
        min-height: 480px;
        padding: 1rem;
    }
    
    .bg-layer {
        border-radius: 1.2rem;
    }
    
    .slide-img {
        padding: 1.5rem;
    }
    
    .slide-title {
        font-size: 2.2rem;
        margin-bottom: 0.8rem;
    }
    
    .description {
        font-size: 1.4rem;
        line-height: 1.5;
        margin-bottom: 1.5rem;
    }
    
    .content {
        padding: 2rem 1.5rem;
        border-radius: 1.2rem;
    }
    
    .project-btn {
        padding: 1rem 1.8rem;
        font-size: 1.4rem;
    }
    
    .controls {
        bottom: 1rem;
        gap: 1.2rem;
    }
    
    .control {
        width: 4.2rem;
        height: 4.2rem;
    }
    
    .control i {
        font-size: 2rem;
    }
    
    .contact form .input-box input {
        width: 100%;
    }
}

/* Mobile Small */
@media (max-width: 365px) {
    html {
        font-size: 48%;
    }
    
    .carousel-section {
        padding: 8rem 1% 6rem;
    }
    
    .carousel-section h2 {
        font-size: 3.2rem;
        margin-bottom: 2.5rem;
    }
    
    .slide {
        min-height: 450px;
    }
    
    .slide-title {
        font-size: 2rem;
    }
    
    .description {
        font-size: 1.35rem;
    }
    
    .content {
        padding: 1.8rem 1.2rem;
    }
    
    .project-btn {
        padding: 0.9rem 1.6rem;
        font-size: 1.3rem;
    }
    
    .control {
        width: 4rem;
        height: 4rem;
    }
    
    .control i {
        font-size: 1.9rem;
    }
    
    .home-img img {
        width: 90vw;
    }

    .about-img img {
        width: 90vw;
    }

    .footer {
        flex-direction: column-reverse;
    }

    .footer p {
        text-align: center;
        margin-top: 2rem;
    }
}

/* Contact section */
.contact h2 {
    margin-bottom: 3rem;
}

.contact form {
    max-width: 70rem;
    margin: 1rem auto;
    text-align: center;
    margin-bottom: 3rem;
}

.contact form .input-box {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
}

.contact form .input-box input,
.contact form textarea {
    width: 100%;
    padding: 1.5rem;
    font-size: 1.6rem;
    color: var(--text-color);
    background: var(--second-bg-color);
    border-radius: .8rem;
    margin: .7rem 0;
}

.contact form .input-box input {
    width: 49%;
}

.contact form textarea {
    resize: none;
}

.contact form .btn {
    margin-top: 2rem;
    cursor: pointer;
}

/* Footer */
.footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    padding: 2rem 9%;
    background: var(--second-bg-color);
}

.footer-text p {
    font-size: 1.6rem;
}

.footer-icon a {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    padding: .8rem;
    background: var(--main-color);
    border-radius: .8rem;
    transition: .5s ease;
}

.footer-icon a:hover {
    box-shadow: 0 0 1rem var(--main-color);
}

.footer-icon a i {
    font-size: 2.4rem;
    color: var(--second-bg-color);
}

/* General responsive */
@media (max-width: 1200px) {
    html {
        font-size: 55%;
    }
}

@media (max-width: 991px) {
    .header {
        padding: 2rem 3%;
    }

    section {
        padding: 10rem 3% 2rem;
    }

    .services {
        padding-bottom: 4rem;
    }

    .portfolio {
        padding-bottom: 7rem;
    }

    .contact {
        min-height: auto;
    }

    .footer {
        padding: 2rem 3%;
    }
}

@media (max-width: 768px) {
    #menu-icon {
        display: block;
    }

    .navbar {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        padding: 1rem 3%;
        background: var(--bg-color);
        border-top: .1rem solid black;
        box-shadow: 0 .5rem 1rem black;
        display: none;
    }

    .navbar.active {
        display: block;
    }

    .navbar a {
        display: block;
        font-size: 2rem;
        margin: 3rem 0;
    }

    .home {
        flex-direction: column;
    }

    .home-content h3 {
        font-size: 2.6rem;
    }

    .home-content h1 {
        font-size: 5rem;
    }

    .home-img img {
        width: 70vw;
        margin-top: 4rem;
    }

    .about {
        flex-direction: column-reverse;
    }

    .about img {
        width: 70vw;
        margin-top: 4rem;
    }

    .services h2 {
        margin-bottom: 3rem;
    }

    .portfolio h2 {
        margin-bottom: 3rem;
    }
}