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

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    text-decoration: none;
    border: none;
    outline: none;
    scroll-behavior: smooth;
    font-family: 'Poppins', sans-serif;
}

:root {
    --bg-color: #081b29;
    --second-bg-color: #112e42;
    --text-color: #ededed;
    --main-color: #00abf0;
}

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

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

.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 2rem 9%;
    background: transparent;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 100;
    transition: .3s;
}

.header.sticky {
    background: var(--bg-color);
    
}

.logo {
    position: relative;
    font-size: 1.5rem;
    color: var(--text-color);
    font-weight: 600;
    margin-top: 15px;
    margin-left: 70px;
}

.navbar {
    display: flex;
    gap: 1.5rem;
    margin-right: 52px;
}

.navbar.active {
    left: 0; /* Bring navbar into view */
    display: flex;
}

.navbar a {
    display: inline-block;
    font-size: 25px;
    color: #fff;
    text-decoration: none;
    font-weight: 500;
    font-weight: 500;
    margin-left: 18px;
    transition: .3s;
}

.navbar a:hover,
.navbar a.active {
    color: #0ef;
}


#menu-icon {
    font-size: 30px;
    color: var(--text-color);
    display: none; /* Hidden by default */
    cursor: pointer;
    position: absolute;
    top: 15px;
    right: 20px;
    z-index: 200; /* Ensure it's above everything */
}

/* Make it visible only on small screens */
@media (max-width: 768px) {
    #menu-icon {
        display: block;
    }
}


section {
    min-height: 100vh;
    padding: 0 9% 2rem; /* Remove top padding completely */
}

input::placeholder,
textarea::placeholder {
  color: rgba(0, 0, 0, 0.1   ); /* light black */
  opacity: 0.4;
}

.home {
    position: relative;
    width: 100%;
    min-height: calc(100vh - 6rem);
    background: #111827;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 5%;
    overflow: hidden;
}

/* Content Wrapper */
.home-content {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    max-width: 1200px;
    width: 100%;
    padding: 0 2rem; /* Added horizontal inner padding */
}


/* Fixed-width text column */
.text-content {
    width: 500px;
    margin-left: 6rem;
    margin-top: 8rem; /* <-- This adds vertical spacing from the top */
    margin-bottom: 5rem;
}


/* Headings */
.text-content h2 {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.text-content h1 {
    font-size: 3.5rem;
    font-weight: bold;
    margin-bottom: 0.5rem;
}

.text-content h3 {
    font-size: 1.8rem;
    font-weight: 500;
    margin-bottom: 1.5rem;
}

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

/* Button */
.btn-box {
    margin-top: 1rem;
}

.btn-box .btn {
    display: inline-block;         /* Ensures button respects width of content */
    white-space: nowrap;           /* Prevents text from wrapping to next line */
    background: #0ef;
    color: #000;
    padding: 0.75rem 2rem;         /* Adjust as needed for height/width */
    font-weight: bold;
    border: none;
    border-radius: 6px;
    text-decoration: none;
    font-size: 1rem;
    transition: 0.3s;
}


.btn-box .btn:hover {
    background: #000;
    color: #0ef;
    cursor: pointer;
}


/* Image Section */
.image {
    flex-grow: 1;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    padding-right: 2rem; /* Pulls image away from right edge */
}


.image img {
    width: 250px;
    height: 250px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid #0ef; /* Optional: nice border around image */
}

/* Add right margin only on large screens */
@media (min-width: 1024px) {
    .image {
        margin-right: 7rem; /* Adjust as needed */
    }
}

/* Social Icons */
.home-sci {
    margin-top: 2rem; /* space from button */
    display: flex;
    gap: 1rem;
}



.home-sci a {
    width: 40px;
    height: 40px;
    border: 2px solid #0ef;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    color: #0ef;
    text-decoration: none;
    transition: 0.3s;
}

.home-sci a:hover {
    background: #0ef;
    color: #000;
}

@media (max-width: 768px) {
    .header {
        flex-direction: column;
        justify-content: center;
        align-items: center;
    }

    .logo {
        font-size: 1.8rem;
        margin-bottom: 1rem;
        text-align: center;
        margin-right: 4rem;
    }

    #menu-icon {
        position: absolute;
        top: 1.2rem;
        right: 1.5rem;
        font-size: 1.5rem;
        cursor: pointer;
    }

    .navbar {
        display: none; /* Or keep it styled for mobile toggle */
        flex-direction: column;
        align-items: flex-start;
        width: 100%;
        background: #111827;
    }

     .navbar.active {
        display: flex;
        /* align-items: flex-start; already set */
        text-align: left; /* Left align text */
    }
    
    .home-content {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .text-content {
        width: 100%;
        margin-left: 0;
        margin-top: 8rem;
        align-items: center;
        text-align: center;
    }

    .btn-box {
        justify-content: center;
    }

    .home-sci {
        justify-content: center;
        margin-top: 1rem; /* Reduce space between button and icons */
        margin-bottom: 0.1rem; /* Space before image */
    }

    .image {
        justify-content: center;
        margin-top: 0.1rem;
        padding-right: 0;
        margin-bottom: 2rem; /* Adds space below image */
    }

    .image img {
        max-width: 250px;
    }

    .text-content h1 {
        font-size: 2.5rem;
    }

    .text-content h2,
    .text-content h3 {
        font-size: 1.3rem;
    }
}

.about {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    align-items: center;
    gap: 1rem;
    background: var(--second-bg-color);
}


.about-img img{
    padding-bottom: 0; /* Remove unnecessary bottom padding */
    max-width: 400px; /* Reduce width */
    max-height: 400px; /* Reduce height */
    width: 100%; /* Ensures responsiveness */
    height: auto; /* Maintain aspect ratio */
    border-radius: 20px;
}

.about-text h2{
    font-size: 50px;
    margin-bottom: 10px; 
}

.about-text h2 span{
    color: #0ef;
}

.about-text h4 {
    font-size: 29px;
    font-weight: 600;
    color: #fff;
    line-height: 1.7;
    margin-top: 0.2px;
}

.about-text p{
    color: aliceblue;
    font-size: 14px;
    line-height: 1.4;
    margin-bottom: 1.4rem;
}

.btn {
    display: inline-block;
    white-space: nowrap;
    background: #0ef;
    color: #000;
    padding: 0.75rem 2rem;
    font-weight: bold;
    border: none;
    border-radius: 25px;
    text-decoration: none;
    font-size: 1rem;
    transition: 0.3s;
    cursor: pointer;
    margin-top: 1rem;
}

.btn:hover {
    background: #000;
    color: #0ef;
}



/* Responsive Layout: Image Below Text on Small Screens */
@media (max-width: 1024px) {
    .about {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .about-text {
        order: 1;
        margin: 0 auto; /* Center the text block */
    }

    .about-img {
        order: 2;
        max-width: 35rem;
        margin: 1rem auto;
    }

    .btn-box {
        order: 3;
        margin: 0 auto; /* Center the button */
    }
}

@media (max-width: 768px) {
    .about {
        padding: 4rem 5%;
        text-align: center;
    }

    .about-img {
        max-width: 30rem;
        margin: 1rem auto;
    }

    .about-text {
        margin: 0 auto;
    }

    .about-text h2,
    .about-text h4,
    .about-text p {
        text-align: center;
    }

    .btn-box {
        justify-content: center;
        margin: 0 auto;
    }
}

@media (max-width: 480px) {
    .about {
        padding: 3rem 4%;
        text-align: center;
    }

    .about-img {
        max-width: 100%;
        margin: 1rem auto;
    }

    .about-text {
        margin: 0 auto;
    }

    .about-text h2,
    .about-text h4,
    .about-text p {
        text-align: center;
    }

    .btn-box {
        justify-content: center;
        margin: 0 auto;
    }
}


#services {
    color: aliceblue;
    font-size: 20px;
    line-height: 1.4;
    margin-top: 0; /* Remove any top margin */
    padding-top: 0; /* Remove any top padding */
    margin-bottom: 4rem;
}

.sub-title {
    text-align: center;  /* Ensures text is centered */
    display: block;  /* Avoid inline behavior */
    width: 100%;  /* Makes sure it takes full width */
    margin: 0 auto;  /* Centers the element */
    font-size: 50px;
}

.sub-title span {
    color: #0ef;
}

.container {
    padding: 0 90px;
    max-width: 1200px; /* Set a max width for the container */
    margin: 0 auto; /* Center the container */
    
}

.services-list {
    display: grid;
    grid-template-columns: repeat(3, minmax(300px, 1fr)); /* Grid setup */
    grid-gap: 40px;
    margin-top: 50px;
    justify-items: center; /* Center items horizontally */
    justify-content: center; /* Ensure grid itself is centered */
}

.services-list div {
    background: var(--second-bg-color); ;
    padding: 40px;
    font-size: 13px;
    font-weight: 13px;
    border-right: 10px;
    border-radius: 20px;
    transition: background 0.5s, transform 0.5s;
    height: auto; /* Automatically adjust height */
    text-align: center; /* Center all text and elements inside the box */
}

.services-list div:hover {
    transform: scale(1.05); /* Zoom in slightly */
    box-shadow: 1px 1px 30px #0ef, 
                1px 1px 50px #0053b8f7; /* Optionally enhance box shadow on hover */
}

.services-list div i {
    font-size: 50px; /* Icon size */
    margin-bottom: 20px; /* Space between icon and title */
}

.services-list div h2 {
    font-size: 30px; /* Title size */
    font-weight: 500;
    margin-bottom: 15px; /* Space between title and paragraph */
}

.services-list div a {
    text-decoration: none;
    color: #000000;
    font-size: 14px;
    margin-top: 20px;
    display: inline-block;
    padding: 10px 20px;
    background-color: #00eeff;
    color: #081b29;
    border-radius: 40px;
    transition: background-color 0.3s ease;
}

.services-list div a:hover {
    background-color: #0ef; /* Hover effect */
}

@media (max-width: 1024px) {
    .services-list {
        grid-template-columns: repeat(2, 1fr); /* Two services per row */
    }
}

@media (max-width: 768px) {
    .services-list {
        grid-template-columns: 1fr; /* Stack services in one column */
    }
}



.read {
    display: inline-block;
    padding: 12px 28px;
    background: #0ef;
    border-radius: 40px;
    font-size: 16px;
    color: #081b29;
    letter-spacing: 1px;
    text-decoration: none;
    font-weight: 600;
    opacity: 0;
    animation: slideTop 1s ease forwards;  /* Corrected syntax */
    animation-delay: 2s;
    box-shadow: 0 0 5px #0ef, 0 0 25px #0ef;
}

.read:hover {
    background: #0ef;
    color: #081b29;
    box-shadow: 0 0 20px #0ef;
}

/* Define the slideTop keyframes animation */
@keyframes slideTop {
    from {
        opacity: 0;
        transform: translateY(10px); /* Start from below */
    }
    to {
        opacity: 1;
        transform: translateY(0); /* Move to original position */
    }
}

#portofolio{
    background: var(--second-bg-color);
}

.main-text {
    padding-top: 20px; /* Reduce the top padding */
    margin-top: 0; /* Ensure no extra margin */
}

.main-text h2{
    font-size: 50px; /* Reduce from 60px to 40px */
    
    text-align: center;
    margin-bottom: 20px; /* Slightly reduce bottom margin */
    width: 100%;
}

.main-text h2 span{
    margin-left: 10px; 
    color: #0ef;
}

.portofolio-content{
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(359px, auto));
    gap: 20px;
}

.row{
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    cursor: pointer;
}

.row img{
    width: 100%;
    border-radius: 8px;
    display: block;
    transition: transform 0.5s;
}

.layer {
    width: 100%;
    height: 0;
    background: linear-gradient(rgba(0,0,0,0.1),#0ef);
    position: absolute;
    border-radius: 8px;
    left: 0;
    bottom: 0;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 0 40px;
    transition: height 0.5s;
    opacity: 0; /* Initially hidden */
}

.layer h5{
    color: #000;
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 15px;
}

.layer p{
    color: #000;
    font-size: 16px; /* Adjusted to be more readable */
    line-height: 1.8;
    opacity: 0; /* Hide text initially */
    transform: translateY(10px); /* Slight move down */
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.layer i{
    color: #ff004f;
    margin-top: 20px;
    font-size: 20px;
    background: #fff;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.row:hover img{
    transform: scale(1.1);
}

.row:hover .layer{
    height: 100%;
    opacity: 1; /* Show the layer */
}

.row:hover .layer p {
    opacity: 1; /* Show text */
    transform: translateY(0); /* Moves text into view */
}

.contact {
    text-align: center;
    min-height: auto;
    margin-bottom: 1rem;
}

.form{
    background: var(--second-bg-color);
    padding-bottom: 2rem;
}
.contact h2 {
    font-size: 50px;
    text-align: center;
    width: 100%; /* Ensures full width */
    display: block; /* Centers properly */
    margin: 0 auto; /* Ensures it's centered */
    margin-bottom: 20px;
}

.contact form {
    max-width: 40rem;
    margin: 0 auto;
    text-align: center;
    
}

.contact form .input-box {
    position: relative;
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    
}

.contact form .input-box .input-field {
    position: relative;
    width: 49%;
    margin: .8rem 0;
    background: var(--second-bg-color); 
    border-radius: 10px;
}

.contact form .input-box .input-field input,
.contact form .textarea-field textarea {
    width: 100%;
    height: 3.5rem; 
    padding: 0.5rem; 
    font-size: 1.2rem; 
    color: var(--text-color);
    background: var(--second-bg-color);
    border-radius: 10px;
}

.contact form .textarea-field textarea {
    height: 20rem; 
}

.contact form .input-box .input-field input::placeholder,
.contact form .textarea-field textarea::placeholder {
    color: var(--text-color);
}

@media (max-width: 768px) {
    .contact form .input-box {
        flex-direction: column; 
    }

    .contact form .input-box .input-field {
        width: 100%; 
    }
}


.contact form .focus {
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 100%;
    background: var(--second-bg-color);
    border-radius: .6rem;
    z-index: -1;
    transition: .5s;
}

.contact form .input-box .input-field input:focus~.focus,
.contact form .input-box .input-field input:valid~.focus,
.contact form .textarea-field textarea:focus~.focus,
.contact form .textarea-field textarea:valid~.focus {
    width: 100%;
}

.contact form .textarea-field {
    position: relative;
    margin: .8rem 0 2.7rem;
    display: flex;
}

.contact form .textarea-field textarea {
    resize: none;
}

.contact form .btn {
    display: inline-block;
    white-space: nowrap;
    background: #0ef;
    color: #000;
    padding: 0.75rem 2rem;
    font-weight: bold;
    border: none;
    border-radius: 15px;
    text-decoration: none;
    font-size: 1rem;
    transition: 0.3s;
    cursor: pointer;
    margin-top: 1rem; 
}

.contact form .btn:hover {
    background: #474646;
    color: #0ef;
}


/* Footer Styles */
.footer {
    background: #111;
    color: #fff;
    padding: 15px 0;
    display: flex;
    flex-direction: column; /* Stack text and icon */
    justify-content: center; /* Center vertically */
    align-items: center; /* Center horizontally */
    text-align: center;
}

/* Footer text */
.footer-text {
    font-size: 14px;
    margin-bottom: 8px;
}

/* Icon styling */
.footer-icon {
    font-size: 24px;
    color: #0ef;
    text-decoration: none;
    transition: transform 0.3s ease;
}

.footer-icon:hover {
    transform: translateY(-5px);
}



::-moz-selection { /* Code for Firefox */
    color: var(--second-bg-color);
    background: var(--main-color);
  }
  
::selection {
    color: var(--second-bg-color);
    background: var(--main-color);
  }

  :root {
    --bg-color: #081b29;
    --second-bg-color: #112e42;
    --text-color: #ededed;
    --main-color: #00abf0;
}


* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
}

html {
    scroll-behavior: smooth;
    font-size: 100%;
}

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

section {
    padding: 5% 10%;
}

h1, h2, h3, h4, h5, h6 {
    line-height: 1.2;
}

.container {
    max-width: 1200px;
    margin: auto;
    padding: 0 2rem;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

.btn {
    display: inline-block;
    background: var(--main-color);
    color: var(--third-color);
    padding: 0.8rem 1.5rem;
    font-size: 1rem;
    border-radius: 5px;
    transition: 0.3s;
}

.btn:hover {
    background: #000000;
}

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

.navbar {
    display: flex;
    gap: 1.5rem;
}

.navbar a {
    color: var(--text-color);
    font-size: 1.1rem;
    transition: 0.3s;
}

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

#menu-icon {
    font-size: 2rem;
    cursor: pointer;
    display: none;
}

@media (max-width: 1024px) {
    :root {
        --big-font: 2.5rem;
        --h2-font: 2rem;
        --p-font: 1rem;
    }
    
    .container {
        padding: 0 1rem;
    }
}

@media (max-width: 768px) {
    .header {
        padding: 1rem 3%;
    }
    
    .navbar {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        height: auto;
        background: #081b29;
        padding: 10px 20px; /* Add some padding */
        border-radius: 0 0 10px 10px; /* Optional rounded bottom */
    }
    
    .navbar.active {
        display: flex;
    }

    .navbar a {
        padding: 10px 20px;
        color: var(--text-color);
        font-size: 1.2rem;
        text-decoration: none;
        transition: background 0.3s ease;
    }
    
    .navbar a:hover {
        background: var(--main-color);
        color: var(--bg-color);
    }
    
    #menu-icon {
        display: block;
    }
    
    section {
        padding: 5% 3%;
    }
    
    .btn {
        font-size: 0.9rem;
        padding: 0.6rem 1.2rem;
    }
}

@media (max-width: 480px) {
    :root {
        --big-font: 2rem;
        --h2-font: 1.8rem;
        --p-font: 0.95rem;
    }
    
    .header {
        padding: 1rem;
    }
    
    .btn {
        font-size: 0.8rem;
        padding: 0.5rem 1rem;
    }
}

  