/* General Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    text-decoration: none;
    border: none;
    outline: none;
    scroll-behavior: smooth;
    font-family: "Poppins", sans-serif;
}

/* Root Variables */
:root {
    --bg-color: #080808;
    --second-bg-color: #131313;
    --text-color: white;
    --main-color: #740707;
    --random-color: #021526;
}

/* Base Styles */
html {
    font-size: 60%;
    overflow-x: hidden;
}

body {
    background: var(--bg-color);
    color: var(--text-color);
}

/* Header */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 4rem 12%;
    background: rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(10px);
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 5;
}

/* Logo */
.logo {
    font-size: 3rem;
    color: var(--text-color);
    font-weight: 800;
    cursor: pointer;
    transition: 0.3s ease;
}

.logo:hover {
    transform: scale(1.1);
}

.logo span {
    text-shadow: 0 0 25px var(--main-color);
}

/* Navigation */
.navbar a {
    font-size: 1.8rem;
    color: var(--text-color);
    margin-left: 4rem;
    font-weight: 500;
    transition: 0.3s ease;
    border-bottom: 3px solid transparent;
}

.navbar a:hover,
.navbar a.active {
    color: var(--main-color);
    border-bottom: 3px solid var(--main-color);
}

/* Sections */
section {
    min-height: 100vh;
    padding: 10rem 12%;
}

/* Home Section */
.home {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15rem;
}

.home-content {
    display: flex;
    flex-direction: column;
    text-align: left;
    justify-content: center;
}

.home-content h1 {
    font-size: 7rem;
    font-weight: 700;
    line-height: 1;
    margin-bottom: 1.5rem;
}

.home-content h3 {
    font-size: 3.5rem;
    margin: 1rem 0 2rem 0;
}

.home-content p {
    font-size: 1.5rem;
    font-weight: 500;
    line-height: 1.8;
    max-width: 800px;
}

.home-content span {
    color: var(--main-color);
}

.home img {
    width: 32vw;
    border-radius: 100%;
    box-shadow: 0 0 25px var(--main-color), 0 0 50px var(--main-color), 0 0 100px var(--main-color);
    transition: 0.4s ease-in-out;
    filter: brightness(1.2);
}

.home img:hover {
    box-shadow: 0 0 25px var(--main-color), 
                0 0 50px var(--main-color), 
                0 0 100px var(--main-color);
    transform: scale(1.05);
    filter: brightness(1.4);
}

/* Social Icons */
.social-icons a {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 4.5rem;
    height: 4.5rem;
    background: transparent;
    border: 2px solid var(--main-color);
    margin: 3rem 1.5rem 3rem 0;
    border-radius: 50%;
    font-size: 2rem;
    color: var(--text-color);
    transition: 0.3s ease-in-out;
}

.social-icons a:hover {
    transform: scale(1.2);
    box-shadow: 0 0 25px var(--main-color);
    background: var(--main-color);
    color: var(--bg-color);
}

/* Button Group */
.btn-group {
    display: flex;
    gap: 1.5rem;
    margin-top: 2rem;
}

.btn {
    padding: 1rem 2rem;
    font-size: 1.6rem;
    font-weight: 600;
    color: var(--text-color);
    background: var(--main-color);
    border-radius: 5rem;
    text-align: center;
    cursor: pointer;
    transition: 0.3s ease-in-out;
}

.btn:hover {
    transform: scale(1.05);
    box-shadow: 0 0 50px var(--main-color);
}

.btn-group a:nth-of-type(2) {
    background-color: var(--second-bg-color);
    color: var(--main-color);
    border: 2px solid var(--main-color);
}

.btn-group a:nth-of-type(2):hover {
    background-color: var(--main-color);
    color: var(--bg-color);
}

/* Contact Section */
#contact {
    background: var(--second-bg-color);
    padding: 4rem 12%;
    text-align: center;
}

#contact h2 {
    font-size: 3rem;
    margin-bottom: 2rem;
    color: var(--main-color);
}

#contact form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

#contact input,
#contact textarea {
    width: 100%;
    padding: 1.2rem;
    font-size: 1.6rem;
    border-radius: 0.5rem;
    background: var(--bg-color);
    color: var(--text-color);
    border: 1px solid var(--main-color);
}

#contact input:focus,
#contact textarea:focus {
    outline: 2px solid var(--main-color);
}

#contact button {
    padding: 1rem 2rem;
    background: var(--main-color);
    color: var(--bg-color);
    border-radius: 2rem;
    cursor: pointer;
    transition: 0.3s ease-in-out;
}

#contact button:hover {
    transform: scale(1.1);
    background: var(--bg-color);
    color: var(--main-color);
    border: 2px solid var(--main-color);
}

/* Text Animation */
.text-animation {
    font-size: 34px;
    font-weight: 600;
    min-width: 280px;
}

.text-animation span {
    position: relative;
}

.text-animation span::before {
    content: "Web Developer";
    color: var(--main-color);
    animation: words 20s infinite;
}

.text-animation span::after {
    content: "";
    background-color: var(--main-color);
    position: absolute;
    width: calc(100% + 8px);
    height: 100%;
    right: -8px;
    animation: cursor 0.6s infinite, typing 20s steps(14) infinite;
}

@keyframes cursor {
    50% {
        border-left: 2px solid var(--main-color);
    }
}

@keyframes typing {
    0%, 20%, 40%, 60%, 80% {
        width: 0;
    }
    5%, 25%, 45%, 65%, 85% {
        width: calc(100% + 8px);
    }
}

@keyframes words {
    0%, 20% {
        content: "Frontend Designer";
    }
    21%, 40% {
        content: "Web Designer";
    }
    41%, 60% {
        content: "UI/UX Designer";
    }
    61%, 80% {
        content: "Web Developer";
    }
    81%, 100% {
        content: "Software Tester";
    }
}

/* AMONIC Section Styles */
.amonic-section {
    background: var(--second-bg-color);
    padding: 6rem 10%;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    color: var(--text-color);
}

.amonic-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1200px;
    gap: 4rem;
}

.amonic-text {
    flex: 1;
    text-align: left;
}

.amonic-heading {
    font-size: 4rem;
    color: var(--main-color);
    margin-bottom: 2rem;
    text-transform: uppercase;
    letter-spacing: 0.1rem;
}

.amonic-heading span {
    color: var(--text-color);
    text-shadow: 0 0 10px var(--main-color);
}

.amonic-description {
    font-size: 1.8rem;
    line-height: 1.8;
    margin-bottom: 2.5rem;
    color: rgba(255, 255, 255, 0.9);
}

.amonic-description strong {
    color: var(--main-color);
    font-weight: bold;
}

.amonic-button {
    display: inline-block;
    padding: 1.2rem 2.5rem;
    font-size: 1.6rem;
    color: var(--bg-color);
    background: var(--main-color);
    border-radius: 50px;
    font-weight: bold;
    text-transform: uppercase;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.amonic-button:hover {
    background: rgba(255, 255, 255, 0.9);
    color: var(--main-color);
    transform: scale(1.05);
}

.amonic-image {
    flex: 1;
    text-align: center;
}

.amonic-image img {
    width: 100%;
    max-width: 400px;
    border-radius: 10px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.5);
    transition: transform 0.3s ease;
}

.amonic-image img:hover {
    transform: scale(1.05);
}

/* Responsive Design */
@media (max-width: 768px) {
    .amonic-content {
        flex-direction: column;
        text-align: center;
    }

    .amonic-text {
        text-align: center;
    }

    .amonic-heading {
        font-size: 3.2rem;
    }

    .amonic-description {
        font-size: 1.6rem;
    }

    .amonic-button {
        padding: 1rem 2rem;
        font-size: 1.4rem;
    }

    .amonic-image img {
        max-width: 300px;
    }
}


/* CONTROL PANEL */
.controlpanel {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2.5rem;
    align-items: center;
    padding: 100px 15px;
    background: var(--bg-color);
}

.heading {
    grid-column: 1 / -1;
    font-size: 6rem;
    text-align: center;
    margin-bottom: 2rem;
    color: white;
}

.control-box {
    height: 200px;
    border-radius: 3rem;
    border: 5px solid var(--main-color);
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    transition: 0.4s ease-in-out;
    position: relative;
    overflow: hidden;
    padding: 1rem;
    background-color: var(--main-color);
    color: white;
}

.control-box.suhu {
    background-color: #ff704d; /* Warna oranye untuk suhu */
}

.control-box.kelembapan {
    background-color: #5cb85c; /* Warna hijau untuk kelembapan */
}

.control-box.amonia {
    background-color: #5bc0de; /* Warna biru muda untuk kadar amonia */
}

.control-box.on-off {
    background-color: black; /* Warna hitam untuk tombol on/off */
    color: white;
}

.control-box.kipas {
    background-color: #d9534f; /* Warna merah untuk kipas */
}

.control-box:hover {
    background-color: white;
    color: black;
    transform: scale(1.03);
}

.sensor-data {
    font-size: 5rem;
    font-weight: bold;
    line-height: 1.2;
    text-align: center;
}

.on-off-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.control-label {
    margin-bottom: 1rem;
    font-size: 3rem;
    color: white;
}

.on-off-button {
    padding: 1rem 2rem;
    border: none;
    border-radius: 5px;
    background-color: black; /* Warna latar belakang hitam */
    color: white;
    font-size: 2rem;
    cursor: pointer;
    transition: background-color 0.3s ease;
    margin: 0.5rem;
}

.on-off-button:hover {
    background-color: white;
    color: black;
}

/* RESPONSIVE DESIGN */
@media (max-width: 768px) {
    .controlpanel {
        grid-template-columns: 1fr;
        padding: 50px 15px;
    }

    .heading {
        font-size: 4rem;
    }

    .control-box {
        height: 150px;
        background-color: #ff704d; /* Warna oranye untuk suhu */
        color: black; /* Mengubah teks ke hitam agar lebih jelas */
    }

    .sensor-data {
        font-size: 3.5rem;
    }

    .control-label {
        font-size: 2rem;
    }

    .on-off-button {
        font-size: 1.8rem;
        padding: 0.8rem 1.5rem;
    }
}


/* BAGIAN TEAMMMM*/
.team {
    background: var(--second-bg-color);
    padding: 4rem 2rem;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
}

.team .heading {
    text-align: center;
    font-size: 6rem;
    color: white;
    margin-bottom: 3rem;
}

.wrapper {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
    padding: 0 1rem;
}

.team-item {
    min-height: 500px;
    max-width: 100%;
    background: rgba(0, 0, 0, 0.7);
    border: 3px solid rgba(255, 255, 255, 0.2);
    border-radius: 1.5rem;
    padding: 20px 40px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    gap: 1.2rem;
    color: white;
    transition: 0.4s ease-in-out;
    cursor: pointer;
}

.team-item:hover {
    border: 3px solid var(--main-color);
    transform: translateY(-10px) scale(1.05);
    box-shadow: 0 0 50px var(--main-color);
}

/* Foto diperbesar dan berbentuk kotak dengan sudut melengkung */
.team-item img {
    width: 30rem;
    height: 30rem;
    object-fit: cover;
    border-radius: 1.2rem; /* Sudut melengkung */
    border: 3px solid var(--main-color);
    box-shadow: 0 0 20px var(--main-color);
    margin-bottom: 1rem;
}

.team-item h2 {
    font-size: 2rem;
    color: var(--main-color);
}

.team-item p {
    font-size: 1.2rem;
    color: #ddd;
    line-height: 1.6;
}

.social a {
    font-size: 2rem;
    color: var(--main-color);
    margin: 0.5rem;
    transition: 0.3s ease-in-out;
}

.social a:hover {
    color: #fff;
    transform: scale(1.2);
}

/* Responsif */
@media (max-width: 768px) {
    .team-item {
        min-height: 450px;
        padding: 20px;
    }

    .team-item h2 {
        font-size: 1.8rem;
    }

    .team-item p {
        font-size: 1rem;
    }

    .team-item img {
        width: 12rem;
        height: 12rem;
    }
}

@media (max-width: 480px) {
    .wrapper {
        gap: 1.5rem;
    }

    .team-item {
        padding: 15px;
    }

    .team-item img {
        width: 10rem;
        height: 10rem;
    }
}



/* BAGIAN CONTACT */
/* Contact Form Styling */
.contact {
    background-color: var(--bg-color) !important; /* Mengubah ke var(--bg-color) */
    padding: 60px 20px;
    text-align: center;
}

.contact h2 {
    margin-bottom: 3rem;
    color: var(--main-color);
    font-size: 2.5rem;
}

.contact form {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    max-width: 800px;
    margin: 0 auto;
}

.contact .input-group {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 2rem;
}

.contact .input-box {
    flex: 1;
    min-width: calc(50% - 1rem);
}

.contact input[type="text"],
.contact input[type="email"],
.contact input[type="number"],
.contact textarea {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid var(--main-color);
    border-radius: 8px;
    background-color: rgba(255, 255, 255, 0.1);
    color: white;
    font-size: 1rem;
    outline: none;
    transition: 0.3s ease-in-out;
}

.contact input[type="text"]:focus,
.contact input[type="email"]:focus,
.contact input[type="number"]:focus,
.contact textarea:focus {
    border-color: var(--highlight-color);
    box-shadow: 0 0 10px var(--highlight-color);
}

.contact textarea {
    resize: none;
    min-height: 120px;
}

.contact .btn {
    display: inline-block;
    padding: 12px 25px;
    background-color: var(--main-color);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1.1rem;
    cursor: pointer;
    transition: 0.3s ease-in-out;
}

.contact .btn:hover {
    background-color: var(--highlight-color);
    box-shadow: 0 0 20px var(--highlight-color);
}



/* Footer Styling */
.footer {
    background-color: var(--main-color);
    padding: 40px 20px;
    color: white;
    text-align: center;
}

.footer .social {
    margin-bottom: 20px;
}

.footer .social a {
    display: inline-block;
    margin: 0 10px;
    width: 42px;
    height: 42px;
    line-height: 42px;
    font-size: 1.5rem;
    color: white;
    border: 2px solid white; /* Border hanya putih tanpa latar belakang */
    border-radius: 50%;
    text-align: center;
    transition: 0.3s ease-in-out;
}

.footer .social a:hover {
    background-color: var(--main-color);
    color: black; /* Warna saat hover */
    transform: translateY(-5px);
    box-shadow: 0 0 15px var(--main-color);
}

.footer ul {
    list-style: none;
    padding: 0;
    margin: 20px 0;
    text-align: center;
}

.footer ul li {
    display: inline-block;
    margin: 0 15px;
}

.footer ul li a {
    color: white;
    font-size: 1.2rem; /* Diperbesar ukurannya */
    text-decoration: none;
    border-bottom: 2px solid transparent;
    transition: 0.3s ease-in-out;
}

.footer ul li a:hover {
    border-bottom: 2px solid var(--main-color);
}

.footer .copyright {
    margin-top: 20px;
    font-size: 1rem; /* Diperbesar ukurannya */
    color: rgba(255, 255, 255, 0.8);
}
