@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700;800;900&display=swap');

* {
    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: #1f242d;
    --second-bg-color: #323946;
    --text-color: #fff;
    --main-color: #0ef;
}

html {
    font-size: 62.5%;
    overflow-x: hidden;
}

body {
    background: var(--bg-color);
    color: var(--text-color);
    overflow-x: hidden;
    max-width: 100vw;
}

section {
    min-height: 100vh;
    padding: 10rem 9% 2rem;
}

.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 1rem 2%;
    background: var(--bg-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 100;
}

.header.sticky {
    border-bottom: .1rem solid rgba(0, 0, 0, .2);
}

.logo {
    font-size: 2.5rem;
    color: var(--text-color);
    text-decoration: none;
    font-weight: 600;
    cursor: default;
    opacity: 0;
    animation: slideRight 1s ease forwards;
}

.navbar a {
    display: inline-block;
    font-size: 1.7rem;
    color: var(--text-color);
    text-decoration: none;
    font-weight: 500;
    margin-left: 4rem;
    transition: .3s;
    opacity: 0;
    animation: slideTop .5s ease forwards;  
    animation-delay: calc(.2s * var(--i));
}

.navbar a:hover,
.navbar a.active {
    color: var(--main-color);
}

#menu-icon {
    font-size: 3.6rem;
    color: var(--text-color);
    display: none;
}

.lang-switcher {
  display: inline-block;
  margin-left: 18px;
}

.lang-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: transparent;
  border: 1px solid #00eaff;
  border-radius: 8px;
  padding: 6px 10px;
  color: #fff;
  cursor: pointer;
  font-weight: 600;
}

.lang-btn:focus { outline: 2px solid #00eaff55; }

.lang-list {
  position: absolute;
  top: calc(75% + 5px);
  background: #1f252d;
  border: 1px solid #2b323c;
  border-radius: 10px;
  min-width: 200px;
  padding: 6px 0;
  list-style: none;
  margin: 0;
  z-index: 1000;

  opacity: 0;
  transform: translateY(-6px);
  pointer-events: none;
  transition: opacity .15s, transform .15s;
}

.lang-list.open {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.lang-list li {
  padding: 10px 12px;
  color: #e8e8e8;
  cursor: pointer;
  white-space: nowrap;
}

.lang-list li:hover { background: #2b323c; }

.home {
    position: relative;
    width: 100%;
    height: 100vh;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 70px 10% 0;
    background: var(--bg-color);
}

.home-content {
    max-width: 600px;
}

.home-content h3 {
    font-size: 3.2rem;
    font-weight: 700;
    opacity: 0;
    animation: slideBottom 1s ease forwards;
    animation-delay: .7s;
}

.home-content h3:nth-of-type(2) {
    margin-bottom: 30px;
    animation: slideTop 1s ease forwards;
    animation-delay: .7s;
}

.home-content h3 span {
    color: #0ef;
}

.home-content h1 {
    font-size: 56px;
    font-weight: 700;
    margin: -3px 0;
    opacity: 0;
    animation: slideRight 1s ease forwards;
    animation-delay: 1s;
}

.home-content p {
    font-size: 16px;
    opacity: 0;
    animation: slideLeft 1s ease forwards;
    animation-delay: 1s;
}

.cta-buttons {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
    justify-content: space-around;
}

.home-img {
    width: 410px;
    height: 410px;
    /* width: 35vw; */
    opacity: 0;
    animation: zoomIn 1s ease forwards, floatImage 4s ease-in-out infinite;
    animation-delay: 2s, 3s;
}

.home-img .glowing-circle {
    position: relative;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}

.home-img .glowing-circle::after {
    content: '';
    position: absolute;
    width: 380px;
    height: 380px;
    background: #1f242d;
    border-radius: 50%;
}

.glowing-circle span {
    position: absolute;
    width: 100%;
    height: 100%;
    background: linear-gradient(#0ef, #1f242d);
    border-radius: 50%;
    animation: circleRotate 5s linear infinite;
    pointer-events: none;
    will-change: transform;
}

.glowing-circle span:nth-child(1) {
    filter: blur(10px);
}

.glowing-circle .image {
    position: relative;
    width: 380px;
    height: 380px;
    border-radius: 50%;
    z-index: 1;
    overflow: hidden;
}

.image img {
    max-width: 380px;
    object-fit: cover;
    position: absolute;
    left: 85%;
    transform: translateX(-50%);
    scale: 1.7;
}

.social-media a {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 40px;
    height: 40px;
    background: transparent;
    border: 2px solid var(--main-color);
    border-radius: 50%;
    font-size: 20px;
    color: var(--main-color);
    text-decoration: none;
    margin: 20px 15px 30px 0;
    transition: .5s ease;
    opacity: 0;
    animation: slideLeft 1s ease forwards;
    animation-delay: calc(.2s * var(--i));
}

.social-media a:hover {
    background: var(--main-color);
    color: var(--second-bg-color);
    box-shadow: 0 0 20px var(--main-color);
}

.btn {
    display: inline-block;
    padding: 12px 28px;
    background: var(--main-color);
    border-radius: 40px;
    box-shadow: 0 0 10px var(--main-color);
    font-size: 16px;
    color: var(--second-bg-color);
    letter-spacing: 1px;
    text-decoration: none;
    font-weight: 600;
    opacity: 0;
    animation: slideTop 1s ease forwards;
    animation-delay: 2s;
}

.btn:hover {
    box-shadow: none;
}

.about {
    position: relative;
    width: 100%;
    height: 100vh;
    padding-left: 30px;
    padding-right: 30px;
    display: flex;
    justify-content: center;
    align-items: center;
    justify-content: space-around;
    gap: 2rem;
    background: var(--second-bg-color);
}

.about-image img {
    width: 35vw;
    border-radius: 5rem;
}

.heading {
    text-align: center;
    font-size: 4.5rem;
}

.heading span {
    color: #0ef;
}

.about-content {
    width: 50%;
}

.about-content h2 {
    text-align: center;
    line-height: 1.2;
    margin-bottom: 50px;
}

.about-content h3 {
    font-size: 2.6rem;
}

.about-content p {
    font-size: 1.6rem;
    margin: 2rem 0 3rem;
    text-align: justify;
}

.about-content .btn {
    position: relative;
    left: 45%;
}

.services {
    background: var(--second-bg-color);
}

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

.portfolio h2 {
    font-size: 4rem;
    margin-bottom: 30px;
}

.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%;
    scale: 1;
    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, .9), 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 a i {
    font-size: 2rem;
    color: var(--second-bg-color);
}

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

.contact form .btn.slide-out {
    animation: slideRight 1s ease forwards;
}

.contact form .btn.slide-in {
    animation: slideRightReverse 2.5s ease forwards;
}

.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-iconTop a {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    padding: .8rem;
    background: var(--main-color);
    border-radius: .8rem;
    transition: .5s ease;
}

.footer-iconTop a:hover {
    box-shadow: 0 0 1rem var(--main-color);
}

.footer-iconTop a i {
    font-size: 2.4rem;
    color: var(--second-bg-color);
}

.modal {
    display: none; /* Hidden by default */
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.0);
    justify-content: center;
    align-items: center;
    z-index: 1000;
    animation: fadeInBackground 0.4s forwards;
}

.modal-content {
    background: var(--second-bg-color);
    padding: 2rem;
    border-radius: 1rem;
    font-size: medium;
    text-align: center;
    max-width: 90%;
    width: 70%;
    color: var(--text-color);
    position: relative;
    animation: modalReveal 0.4s ease-out;
    max-height: 80vh;
    overflow-y: auto;
    scrollbar-width: thin;
}

.modal-content::-webkit-scrollbar {
    width: 6px;
}

.modal-content::-webkit-scrollbar-thumb {
    background-color: var(--main-color);
    border-radius: 10px;
}

.close-btn {
    position: absolute;
    top: 1rem;
    right: 1rem;
    font-size: 2rem;
    color: var(--text-color);
    cursor: pointer;
}

.modal.closing {
    animation: fadeOutBackground 0.3s forwards;
}

.modal.closing .modal-content {
    animation: modalHide 0.3s ease forwards;
}

.services-modal-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    padding: 2rem 0;
    justify-content: flex-start;
}

.service-item {
    flex: 1 1 calc(33.333% - 2rem);
    box-sizing: border-box;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 0.8rem;
    text-align: left;
}

.service-item:hover {
    background: rgba(255, 255, 255, 0.05);
    transform: translateY(-3px);
}

.service-item h3 {
    font-size: 1.6rem;
    margin-bottom: 0.5rem;
    color: var(--text-color);
}

.service-item p {
    font-size: 1.4rem;
    margin-bottom: 0.4rem;
    color: #ccc;
}

.service-item strong {
    color: var(--main-color);
}

/* KEYFRAMES ANIMATION */
@keyframes fadeOutBackground {
    0% { background: rgba(0, 0, 0, 0.8); }
    100% { background: rgba(0, 0, 0, 0.0); }
}

@keyframes modalHide {
    0% {
        opacity: 1;
        transform: scale(1);
    }
    100% {
        opacity: 0;
        transform: scale(0.95);
    }
}

@keyframes fadeInBackground {
    0% { background: rgba(0, 0, 0, 0.0); }
    100% { background: rgba(0, 0, 0, 0.8); }
}

@keyframes modalReveal {
    0% {
        opacity: 0;
        transform: scale(0.95);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes slideRight {
    0% {
        transform: translateX(-100px);
        opacity: 0;
    }

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

@keyframes slideRightReverse {
    0% {
        transform: translateX(0);
        opacity: 1;
    }

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

@keyframes slideLeft {
    0% {
        transform: translateX(100px);
        opacity: 0;
    }

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

@keyframes slideTop {
    0% {
        transform: translateY(100px);
        opacity: 0;
    }

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

@keyframes slideBottom {
    0% {
        transform: translateY(-100px);
        opacity: 0;
    }

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

@keyframes zoomIn {
    0% {
        transform: scale(0);
        opacity: 0;
    }

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

@keyframes floatImage {
    0% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-24px);
    }

    100% {
        transform: translateY(0);
    }
}

@keyframes circleRotate {
    0% {
        transform: rotate(0);
    }

    100% {
        transform: rotate(360deg);
    }
}

/* Media Query for Tablets (max-width: 1200px) */
@media (max-width: 1200px) {
    html {
        font-size: 55%;
    }

    .header {
        padding: 2rem 5%;
    }

    .services-container {
        gap: 3rem;
    }

    .portfolio-container {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer {
        padding: 2rem 5%;
    }
}

/* Media Query for Mobile Devices (max-width: 768px) */
@media (max-width: 768px) {
    html {
        font-size: 50%;
    }

    body {
        width: 100%;
    }

    .header {
        align-items: flex-start;
        width: 100%;
    }

    #menu-icon {
        display: inline-block;
    }

    .logo img {
        width: 130px!important;
    }

    .lang-switcher {
        margin-left: 0;
    }

    .lang-list {
        top: calc(20% + 5px);
    }

    .navbar {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        padding: 1rem 5%;
        background: var(--bg-color);
        display: none;
    }

    .navbar.active {
        display: block;
    }

    .navbar a {
        display: block;
        font-size: 1.8rem;
        margin: 2rem 0;
    }

    .home {
        flex-direction: column;
        text-align: center;
        height: 100%;
    }

    .home-content h1 {
        font-size: 4rem;
    }

    .home-img {
        position: relative;
        top: 70px;
        left: 18%;
    }
    
    .home-img .glowing-circle {
        width: 60%;
        height: 60%;
        left: 30px;
    }
    
    .home-img .glowing-circle::after {
        width: 220px;
        height: 220px;
    }
    
    .glowing-circle .image {
        width: 220px;
        height: 220px;
    }
    
    .image img {
        max-width: 220px;
    }

    .social-media a {
        margin: 30px 15px;
    }

    .about {
        flex-direction: column;
        height: 100%;
    }

    .about-content {
        width: 100%;
    }

    .about-content .btn {
        position: relative;
        left: 28%;
    }

    .portfolio-container {
        grid-template-columns: 1fr;
    }

    .portfolio-container .portfolio-box {
        width: 100%;
    }

    .footer {
        flex-direction: column;
        gap: 5px;
        text-align: center;
    }

    .footer-text {
        max-width: 80%;
    }

    .footer-text p {
        margin-top: 1rem;
    }

    .services-modal-grid {
        gap: 5rem;
        flex-direction: column;
    }

    .service-item {
        flex: 1 1 100%;
    }
}