@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;
    }

:root {
    --primary-color: #56c6b7; /* Soft green */
    --primary-color-dark: #00bcd4; /* Bright teal */
    --accent-color: #00eeff; /* Light cyan for highlights */
    --background-color: #121212; /* Dark background */
    --box-color: #2c2f3a; /* Slightly lighter background for sections */
    --text-color: #e0e0e0; /* Light gray for text */
    --dark-text: #1c1c1c; /* Dark background for inputs or darker sections */
    --input-bg: #2e2e2e; /* Darker background for input fields */
    --input-focus-bg: #424242; /* Darker on focus */
}

a {
    color: #fff;
    text-decoration: none;
}

.navbar {
    position: fixed;
    left: 0;
    top: 0;
    width: 100%;
    padding: 25px 9%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 100;
    visibility: hidden;
    opacity: 0;
    animation: show-content 1.5s linear forwards;
    animation-delay: 1.2s;
}

@keyframes show-content {
    100% {
        visibility: visible;
        opacity: 1;
    }
}

.navbar .logo {
    font-size: 30px;
    font-weight: 700;
}

.navbar ul {
    display: flex;
}

.navbar ul li {
    list-style: none;
    margin-left: 35px;
}

.navbar ul li a {
    font-size: 20px;
    font-weight: 500;
    transition: 0.5s;
}

.navbar ul li:hover a,
.navbar ul li.active a {
    color: var(--primary-color);
}

.home {
    display: flex;
    align-items: center;
    gap: 50px;
    height: 100vh;
    padding: 60px 9% 0;
    color: var(--text-color);
    visibility: hidden;
    opacity: 0;
    animation: show-content 1.5s linear forwards;
    animation-delay: 1.6s;
}

.home-info h1 {
    font-size: 55px;
}

.home-info h2 {
    display: inline-block;
    font-size: 32px;
    margin-top: -10px;
}

.home-info h2 span {
    position: relative;
    display: inline-block;
    color: transparent;
    -webkit-text-stroke: 0.7px var(--primary-color);
    animation: display-text 16s linear infinite;
    animation-delay: calc(-4s * var(--i));
}

@keyframes display-text {
    25%, 100% {
        display: none;
    }
}

.home-info h2 span::before {
    content: attr(data-text);
    position: absolute;
    width: 0;
    border-right: 2px solid var(--primary-color);
    color: var(--primary-color);
    white-space: nowrap;
    overflow: hidden;
    animation: fill-text 4s linear infinite;
}

@keyframes fill-text {
    10%, 100% {
        width: 0;
    }

    70%, 90% {
        width: 100%;
    }
}

.home-info p {
    font-size: 16px;
    margin: 10px 0 25px;
}

.home-info .btn-sci {
    display: flex;
    align-items: center;
}

.btn {
    display: inline-block;
    padding: 10px 30px;
    background: var(--primary-color);
    border: 2px solid var(--primary-color);
    border-radius: 40px;
    box-shadow: 0 0 10px var(--primary-color);
    font-size: 16px;
    color: #1f242d;
    font-weight: 600;
}

.btn:hover {
    background: transparent;
    color: var(--primary-color);
    box-shadow: none;
}

.home-info .btn-sci .sci {
    margin-left: 20px;
}

.home-info .btn-sci .sci a {
    display: inline-flex;
    padding: 8px;
    border: 2px solid var(--primary-color);
    border-radius: 50%;
    font-size: 20px;
    color: var(--primary-color);
    margin: 0 8px;
    transition: 0.5s;
}

.home-info .btn-sci .sci a:hover {
    background: var(--primary-color);
    color: #1f242d;
    box-shadow: 0 0 10px var(--primary-color);
}

.home-img .img-box {
    position: relative;
    width: 32vw;
    height: 32vw;
    border-radius: 50%;
    padding: 5px;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}

.home-img .img-box::before,
.home-img .img-box::after {
    content: '';
    position: absolute;
    width: 500px;
    height: 500px;
    background: conic-gradient(transparent, transparent, transparent, var(--primary-color));
    transform: rotate(0deg);
    animation: rotate-border 10s linear infinite;
}

@keyframes rotate-border {
    100% {
        transform: rotate(360deg);
    }
}

.home-img .img-box .img-item {
    position: relative;
    width: 100%;
    height: 100%;
    background: var(--background-color);
    border-radius: 50%;
    border: 0.1px solid var(--background-color);
    display: flex;
    justify-content: center;
    z-index: 1;
    overflow: hidden;
}

.home-img .img-box .img-item img {
    position: absolute;
    display: block;
    width: 120%;
    object-fit: cover;
    mix-blend-mode: lighten;
}

.bars-animation {
    position: absolute;
    width: 100%;
    height: 100%;
    display: flex;
    z-index: -1;
}

.bars-animation .bar {
    width: 100%;
    height: 100%;
    background: var(--background-color);
    transform: translateY(-100%);
    animation: show-bars 0.5s ease-in-out forwards;
    animation-delay: calc(0.1s * var(--i));
}

@keyframes show-bars {
    100% {
        transform: translateY(0%);
    }
}

/* Responsive styles */
@media (max-width: 1024px) {
    .home {
        flex-direction: column;
        padding: 80px 5% 0;
        text-align: center;
    }

    .home-info h1 {
        font-size: 42px;
    }

    .home-info h2 {
        font-size: 26px;
    }

    .home-info p {
        font-size: 15px;
    }

    .home-img {
        margin-top: 30px;
    }

    .home-img .img-box {
        width: 300px;
        height: 300px;
    }
}

/* Hamburger Icon */
.menu-toggle {
    display: none;
    font-size: 28px;
    color: #fff;
    cursor: pointer;
    z-index: 101;
}

.menu-toggle.active i::before {
    content: '\2715'; /* Cross icon */
}

@media (max-width: 768px) {
    .navbar {
        padding: 20px 5%;
    }

    .menu-toggle {
        display: block;
    }

    .navbar ul {
        position: absolute;
        top: 70px;
        right: 5%;
        background: var(--background-color);
        width: 200px;
        display: flex;
        flex-direction: column;
        padding: 15px;
        border-radius: 10px;
        box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
        opacity: 0;
        visibility: hidden;
        transform: translateY(-20px);
        transition: all 0.3s ease;
    }

    .navbar ul.active {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }

    .navbar ul li {
        margin: 15px 0;
        text-align: right;
    }

    .home {
        flex-direction: column;
        text-align: center;
    }

    .home-info h1 {
        font-size: 38px;
    }

    .home-info h2 {
        font-size: 22px;
    }

    .home-info p {
        font-size: 14px;
    }

    .home-img {
        margin-top: 30px;
    }

    .home-img .img-box {
        width: 250px;
        height: 250px;
    }
}

@media (max-width: 480px) {
    .home-info h1 {
        font-size: 30px;
    }

    .home-info h2 {
        font-size: 20px;
    }

    .home-img .img-box {
        width: 200px;
        height: 200px;
    }

    .btn {
        font-size: 14px;
        padding: 8px 20px;
    }

    .home-info .btn-sci .sci a {
        font-size: 18px;
        padding: 6px;
    }
}

.popup-section {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: var(--background-color);
    z-index: 99;
    overflow-y: auto;
    padding: 80px 20px 40px; /* top padding for navbar space */
    opacity: 0;
    visibility: hidden;
    transform: scale(0.95);
    transition: all 0.4s ease-in-out;
}

.popup-section.active {
    z-index: 999;
    opacity: 1;
    visibility: visible;
    transform: scale(1);
}

.popup-section .content {
    width: 90vw;
    height: 80vh; /* Fixed height */
    margin: auto;
    background: var(--background-color);
    color: white;
    padding: 30px;
    border-radius: 16px;
    box-shadow: 0 0 20px var(--primary-color-dark);

    overflow-y: auto;   /* Enables vertical scroll */
    scrollbar-width: thin; /* For Firefox */
}

.popup-section .content::-webkit-scrollbar {
    width: 6px;
}
.popup-section .content::-webkit-scrollbar-thumb {
    background-color: var(--primary-color);
    border-radius: 10px;
}

/* Optional: add smooth scrolling behavior */
html {
    scroll-behavior: smooth;
}

/* Contact form */
.contact-container {
    max-width: 600px;
    margin: 40px auto;
    background: var(--box-color);
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}

.section-title {
    font-size: 32px;
    color: var(--accent-color);
    text-align: center;
    margin-bottom: 20px;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.contact-form input,
.contact-form textarea {
    padding: 12px 16px;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    background: var(--input-bg);
    color: #fff;
    transition: 0.3s ease;
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: 2px solid var(--accent-color);
    background: var(--input-focus-bg);
}

.contact-form button {
    padding: 12px;
    background: var(--primary-color);
    border: none;
    border-radius: 8px;
    color: #fff;
    font-size: 18px;
    cursor: pointer;
}

.contact-form button:hover {
    background: var(--primary-color-dark);
}


/* Service Section */
.popup-section#service {
    background-color: var(--background-color);
    color: var(--text-color);
    padding: 80px 20px 40px; /* Adjusted padding for consistency */
    transition: all 0.4s ease-in-out;
}

.popup-section#service .content {
    width: 90vw;
    max-width: 800px;
    margin: auto;
    background-color: var(--box-color);
    border-radius: 16px;
    padding: 40px;
    box-shadow: 0 0 20px var(--primary-color-dark);
    overflow-y: auto;
    transition: transform 0.4s ease;
}

.popup-section#service .section-title {
    font-size: 36px;
    font-weight: 600;
    color: var(--primary-color);
    text-align: center;
    margin-bottom: 30px;
}

.popup-section#service .service-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.popup-section#service .service-item {
    background: var(--box-color);
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.popup-section#service .service-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}

.popup-section#service .service-item h3 {
    font-size: 24px;
    color: var(--accent-color);
    margin-bottom: 10px;
}

.popup-section#service .service-item p {
    font-size: 16px;
    color: var(--text-color);
}

/* Responsive Design */
@media (max-width: 768px) {
    .popup-section#service .content {
        padding: 20px;
    }
    
    .popup-section#service .section-title {
        font-size: 28px;
    }

    .popup-section#service .service-item h3 {
        font-size: 20px;
    }

    .popup-section#service .service-item p {
        font-size: 14px;
    }
}


/* Portfolio Section */
#portfolio {
    background: var(--background-color);
    color: var(--text-color);
    padding: 80px 20px;
    opacity: 0;
    visibility: hidden;
    transform: scale(0.95);
    transition: all 0.4s ease-in-out;
}

#portfolio.active {
    opacity: 1;
    visibility: visible;
    transform: scale(1);
}

#portfolio .content {
    width: 90vw;
    max-width: 1200px;
    margin: auto;
    padding: 40px;
    background: var(--box-color);
    border-radius: 16px;
    box-shadow: 0 0 20px var(--primary-color-dark);
    color: white;
    text-align: center;
    overflow-y: auto;
}

#portfolio h2 {
    font-size: 36px;
    margin-bottom: 20px;
    color: var(--accent-color);
}

#portfolio p {
    font-size: 18px;
    line-height: 1.6;
    margin-bottom: 30px;
}

#portfolio .btn {
    padding: 12px 30px;
    background: var(--primary-color);
    border: 2px solid var(--primary-color);
    border-radius: 40px;
    font-size: 16px;
    color: #1f242d;
    font-weight: 600;
    box-shadow: 0 0 10px var(--primary-color);
    transition: 0.3s ease;
}

#portfolio .btn:hover {
    background: transparent;
    color: var(--primary-color);
    box-shadow: none;
}

/* Portfolio list styles */
.portfolio-list {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    justify-content: center;
}

.portfolio-item {
    background: var(--box-color);
    width: 350px;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 0 10px var(--primary-color-dark);
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.portfolio-item:hover {
    transform: scale(1.05);
    box-shadow: 0 0 20px var(--primary-color-dark);
}

.portfolio-item img {
    width: 100%;
    height: auto;
    border-radius: 10px;
    margin-bottom: 15px;
}

.portfolio-item h3 {
    font-size: 22px;
    margin-bottom: 10px;
    color: var(--accent-color);
}

.portfolio-item p {
    font-size: 16px;
    color: var(--text-color);
}

@media (max-width: 1024px) {
    #portfolio .content {
        padding: 30px 20px;
    }

    .portfolio-item {
        width: 90%;
    }
}


/* About Section */
#about {
    background: var(--background-color);
    color: var(--text-color);
    padding: 80px 20px;
    opacity: 0;
    visibility: hidden;
    transform: scale(0.95);
    transition: all 0.4s ease-in-out;
}

#about.active {
    opacity: 1;
    visibility: visible;
    transform: scale(1);
}

#about .content {
    width: 90vw;
    max-width: 1200px;
    margin: auto;
    padding: 40px;
    background: var(--box-color);
    border-radius: 16px;
    box-shadow: 0 0 20px var(--primary-color-dark);
    color: white;
    text-align: center;
    overflow-y: auto;
}

#about h2 {
    font-size: 36px;
    margin-bottom: 20px;
    color: var(--accent-color);
}

#about p {
    font-size: 18px;
    line-height: 1.6;
    margin-bottom: 30px;
    color: var(--text-color);
}

#about .btn {
    padding: 12px 30px;
    background: var(--primary-color);
    border: 2px solid var(--primary-color);
    border-radius: 40px;
    font-size: 16px;
    color: #1f242d;
    font-weight: 600;
    box-shadow: 0 0 10px var(--primary-color);
    transition: 0.3s ease;
}

#about .btn:hover {
    background: transparent;
    color: var(--primary-color);
    box-shadow: none;
}


/* Responsive styles */
@media (max-width: 1024px) {
    #about .content {
        padding: 30px 20px;
    }
}

@media (max-width: 768px) {
    #about h2 {
        font-size: 30px;
    }
}

.form-message {
    margin-top: 10px;
    font-size: 16px;
    font-weight: 500;
}

html, body {
    min-height: 100%;
    background-color: var(--background-color);
}
