/* =========================
style.css
========================= */

*{
    margin:0;
    padding:0;
    box-sizing:border-box;
    scroll-behavior:smooth;
    font-family:'Poppins', sans-serif;
}

:root{

    --pink:#ff8fb1;
    --softPink:#ffdbe8;
    --cream:#fff8f5;
    --white:#ffffff;

    --text:#4e3d3d;
    --softText:#8c7777;

    --shadow:
    0 10px 30px rgba(255,143,177,0.15);

    --radius:32px;
}

body{
    background:var(--cream);
    color:var(--text);
    overflow-x:hidden;
}

/* =========================
BUBBLE BACKGROUND
========================= */

.bubbles{

    position:fixed;

    width:100%;
    height:100vh;

    top:0;
    left:0;

    overflow:hidden;

    z-index:-1;
}

.bubbles span{

    position:absolute;

    bottom:-100px;

    width:40px;
    height:40px;

    background:
    rgba(255,255,255,0.25);

    border-radius:50%;

    animation:bubble 20s linear infinite;
}

.bubbles span:nth-child(1){
    left:10%;
    width:30px;
    height:30px;
    animation-duration:12s;
}

.bubbles span:nth-child(2){
    left:20%;
    animation-duration:18s;
}

.bubbles span:nth-child(3){
    left:35%;
    width:20px;
    height:20px;
    animation-duration:10s;
}

.bubbles span:nth-child(4){
    left:55%;
    animation-duration:16s;
}

.bubbles span:nth-child(5){
    left:75%;
    width:25px;
    height:25px;
    animation-duration:14s;
}

.bubbles span:nth-child(6){
    left:90%;
    animation-duration:20s;
}

@keyframes bubble{

    0%{
        transform:translateY(0) scale(1);
        opacity:0;
    }

    50%{
        opacity:0.5;
    }

    100%{
        transform:translateY(-120vh) scale(1.4);
        opacity:0;
    }

}

/* =========================
NAVBAR
========================= */

nav{

    width:100%;

    padding:22px 8%;

    position:fixed;
    top:0;
    left:0;

    display:flex;
    justify-content:space-between;
    align-items:center;

    background:
    rgba(255,255,255,0.75);

    backdrop-filter:blur(12px);

    z-index:1000;

    border-bottom:
    1px solid #ffe4ec;
}

.logo{

    font-size:28px;
    font-weight:700;

    color:var(--pink);
}

.nav-links{

    display:flex;
    align-items:center;
    gap:25px;
}

.nav-links a{

    text-decoration:none;

    color:var(--text);

    font-weight:500;

    transition:0.3s;
}

.nav-links a:hover{
    color:var(--pink);
}

/* =========================
MQTT STATUS
========================= */

.mqtt-status{

    padding:10px 18px;

    border-radius:999px;

    font-size:14px;

    font-weight:600;

    background:#ffeaa7;

    color:#2d3436;

}

.mqtt-status.connected{

    background:#55efc4;

    color:#006644;

}

.mqtt-status.offline{

    background:#ff7675;

    color:white;

}

.mqtt-status.reconnect{

    background:#fdcb6e;

    color:#2d3436;

}

/* =========================
USER PROFILE
========================= */

.user-profile{

    display:flex;
    align-items:center;
    gap:10px;

    padding:10px 16px;

    border-radius:18px;

    background:
    rgba(255,255,255,0.18);

    backdrop-filter:blur(12px);

    border:
    1px solid rgba(255,255,255,0.25);

    color:var(--text);

    font-size:14px;
    font-weight:600;

    transition:0.3s;
}

.user-profile:hover{

    transform:translateY(-2px);

}

/* ICON */

.user-icon{

    width:35px;
    height:35px;

    border-radius:50%;

    display:flex;
    justify-content:center;
    align-items:center;

    background:
    linear-gradient(
        135deg,
        #ff4fa1,
        #b26bff,
        #69d7ff
    );

    color:white;

    font-size:16px;

    box-shadow:
    0 5px 15px rgba(255,105,180,0.3);

}

/* LOGOUT BUTTON */

.logout-btn{

    border:none;

    padding:10px 18px;

    border-radius:16px;

    cursor:pointer;

    font-weight:600;

    color:white;

    background:
    linear-gradient(
        135deg,
        #ff4fa1,
        #b26bff
    );

    transition:0.3s;

    box-shadow:
    0 8px 20px rgba(178,107,255,0.25);

}

.logout-btn:hover{

    transform:
    translateY(-2px)
    scale(1.03);

}

/* =========================
HERO
========================= */

.hero{

    min-height:100vh;

    padding:
    180px 8% 120px;

    display:flex;
    align-items:center;
    justify-content:center;

    text-align:center;
}

.hero-text{
    max-width:900px;
}

.badge{

    display:inline-flex;
    align-items:center;
    gap:10px;

    background:var(--softPink);

    color:#d75984;

    padding:12px 22px;

    border-radius:999px;

    font-size:14px;
    font-weight:600;

    margin-bottom:28px;
}

.hero h1{

    font-size:72px;

    line-height:1.15;

    margin-bottom:28px;

    color:#493737;
}

.hero p{

    line-height:2;

    color:var(--softText);

    font-size:18px;

    margin-bottom:45px;
}

.hero-buttons{

    display:flex;
    justify-content:center;

    gap:20px;

    flex-wrap:wrap;
}

.btn-primary,
.btn-secondary{

    padding:18px 35px;

    border-radius:999px;

    text-decoration:none;

    font-weight:600;

    transition:0.3s;
}

.btn-primary{

    background:var(--pink);

    color:white;

    box-shadow:var(--shadow);
}

.btn-primary:hover{

    transform:translateY(-5px);

    background:#ff7aa3;
}

.btn-secondary{

    border:2px solid #ffc6d7;

    background:white;

    color:var(--pink);
}

.btn-secondary:hover{
    background:#fff0f5;
}

/* =========================
SECTION
========================= */

.section{
    padding:120px 8%;
}

.section-title{

    text-align:center;

    margin-bottom:70px;
}

.section-title h2{

    font-size:50px;

    margin-top:20px;
}

.section-title p{

    max-width:750px;

    margin:auto;

    margin-top:20px;

    line-height:2;

    color:var(--softText);
}

/* =========================
CARD
========================= */

.card-grid{

    display:grid;

    grid-template-columns:
    repeat(auto-fit,minmax(280px,1fr));

    gap:30px;
}

.card{

    background:white;

    padding:38px;

    border-radius:var(--radius);

    box-shadow:var(--shadow);

    border:1px solid #ffe5ed;

    transition:0.3s;
}

.card:hover{
    transform:translateY(-8px);
}

.icon{
    font-size:60px;
}

.card h3{

    margin-top:25px;

    font-size:28px;
}

.card p{

    margin-top:18px;

    line-height:1.9;

    color:var(--softText);
}

/* =========================
TOOLS IMAGE
========================= */

.tool-image{

    width:100%;
    height:220px;

    object-fit:contain;

    margin-bottom:20px;
}

/* =========================
SOFT BACKGROUND
========================= */

.soft-bg{
    background:#fff1f5;
}

/* =========================
WORKFLOW
========================= */

.workflow{

    display:flex;
    flex-direction:column;

    gap:25px;
}

.workflow-item{

    background:white;

    padding:32px;

    border-radius:30px;

    display:flex;
    align-items:center;

    gap:25px;

    box-shadow:var(--shadow);

    border:1px solid #ffe5ed;
}

.number{

    width:65px;
    height:65px;

    border-radius:50%;

    background:var(--pink);

    color:white;

    display:flex;
    align-items:center;
    justify-content:center;

    font-weight:700;

    font-size:24px;

    flex-shrink:0;
}

.workflow-item p{

    line-height:1.9;

    color:var(--softText);
}

/* =========================
MONITORING
========================= */

.monitoring-section{
    background:#fff5f8;
}

.monitor-grid{

    display:grid;

    grid-template-columns:
    repeat(auto-fit,minmax(280px,1fr));

    gap:30px;
}

.monitor-card{

    background:white;

    padding:38px;

    border-radius:35px;

    box-shadow:var(--shadow);

    border:1px solid #ffe5ed;

    transition:0.3s;
}

.monitor-card:hover{
    transform:translateY(-8px);
}

.monitor-card h3{

    margin-top:22px;

    font-size:28px;
}

.monitor-value{

    font-size:52px;

    font-weight:700;

    margin-top:20px;

    color:var(--pink);
}

.status{

    display:inline-block;

    margin-top:18px;

    padding:10px 16px;

    border-radius:999px;

    font-size:14px;
    font-weight:600;
}

.good{

    background:#e7fff0;

    color:#2d9b5d;
}

.bad{

    background:#ffe5e5;

    color:#d94f4f;
}

.system-title{

    margin-top:120px;
    margin-bottom:70px;

    text-align:center;
}

/* =========================
BUTTON GROUP
========================= */

.button-group{

    display:flex;

    gap:15px;

    margin-top:25px;
}

.button-group button{

    flex:1;

    padding:15px;

    border:none;

    border-radius:15px;

    background:var(--pink);

    color:white;

    font-weight:600;

    cursor:pointer;

    transition:0.3s;
}

.button-group button:hover{

    transform:translateY(-3px);

    background:#ff79a4;
}

/* =========================
RESPONSIVE
========================= */

@media(max-width:1000px){

    nav{

        flex-direction:column;

        gap:20px;

    }

    .nav-links{

        flex-wrap:wrap;

        justify-content:center;

        gap:15px;

    }

    .hero h1{
        font-size:56px;
    }

}

@media(max-width:700px){

    .hero h1{
        font-size:44px;
    }

    .section-title h2{
        font-size:38px;
    }

    .monitor-value{
        font-size:40px;
    }

    .workflow-item{
        flex-direction:column;
        text-align:center;
    }

    .button-group{
        flex-direction:column;
    }

    .tool-image{
        height:170px;
    }

    .user-profile{

        padding:8px 12px;

        font-size:13px;

    }

    .user-icon{

        width:30px;
        height:30px;

        font-size:14px;

    }

    .logout-btn{

        padding:8px 14px;

        font-size:13px;

    }

}

/* =========================
HISTORY DATABASE
========================= */

.history-section{

    background:#fff8fb;
}

.history-wrapper{

    width:100%;

    overflow-x:auto;

    background:white;

    border-radius:35px;

    padding:30px;

    box-shadow:var(--shadow);

    border:1px solid #ffe4ec;
}

.history-table{

    width:100%;

    border-collapse:collapse;

    min-width:700px;
}

.history-table thead{

    background:var(--softPink);
}

.history-table th{

    padding:22px;

    text-align:left;

    color:#c75580;

    font-size:15px;

    font-weight:600;
}

.history-table td{

    padding:20px;

    border-bottom:
    1px solid #ffe5ed;

    color:var(--softText);
}

.history-table tr:hover{

    background:#fff5f8;
}

.table-status{

    padding:8px 14px;

    border-radius:999px;

    font-size:13px;

    font-weight:600;
}

.table-status.good{

    background:#e8fff1;

    color:#2c9d5f;
}

.table-status.bad{

    background:#ffe6e6;

    color:#d54c4c;
}

/* =========================
VIDEO SECTION
========================= */

.video-wrapper{

    width:100%;

    display:flex;

    justify-content:center;

    align-items:center;

    padding:
    0 8% 120px;
}

.video-card{

    width:100%;

    max-width:1000px;

    background:white;

    padding:35px;

    border-radius:40px;

    box-shadow:var(--shadow);

    border:1px solid #ffe4ec;

    text-align:center;
}

.video-top h3{

    font-size:36px;

    margin-top:18px;

    color:var(--text);
}

.video-top p{

    margin-top:15px;

    color:var(--softText);

    line-height:1.9;

    margin-bottom:35px;
}

.project-video{

    width:100%;

    border-radius:30px;

    overflow:hidden;

    box-shadow:
    0 10px 25px rgba(0,0,0,0.08);
}

/* =========================
SCROLL REVEAL
========================= */

.reveal{

    opacity:0;

    transform:translateY(40px);

    transition:1s;
}

.reveal.active{

    opacity:1;

    transform:translateY(0);
}

/* =========================
TEAM CTA
========================= */

.team-cta{

    padding:120px 8%;
    text-align:center;
}

.team-box{

    background:white;

    padding:60px 30px;

    border-radius:40px;

    box-shadow:var(--shadow);

    border:1px solid #ffe4ec;

    max-width:900px;

    margin:auto;
}

.team-box h2{

    font-size:42px;

    margin-bottom:15px;
}

.team-box p{

    color:var(--softText);

    margin-bottom:30px;

    line-height:1.8;
}

.team-btn{

    display:inline-block;

    padding:16px 30px;

    border-radius:999px;

    background:var(--pink);

    color:white;

    text-decoration:none;

    font-weight:600;

    transition:0.3s;

    box-shadow:var(--shadow);
}

.team-btn:hover{

    transform:translateY(-5px);
    background:#ff7aa3;
}

/* =========================
FOOTER
========================= */

.footer{

    background:#fff1f5;

    padding:70px 8% 20px;

    margin-top:80px;
}

.footer-content{

    display:flex;

    justify-content:space-between;

    flex-wrap:wrap;

    gap:40px;

    margin-bottom:40px;
}

.footer-left h3{

    font-size:26px;

    color:var(--pink);

    margin-bottom:10px;
}

.footer-left p{

    max-width:400px;

    color:var(--softText);

    line-height:1.8;
}

.footer-links{

    display:flex;

    flex-direction:column;

    gap:12px;
}

.footer-links a{

    text-decoration:none;

    color:var(--text);

    font-weight:500;

    transition:0.3s;
}

.footer-links a:hover{

    color:var(--pink);
}

.footer-bottom{

    text-align:center;

    padding-top:20px;

    border-top:1px solid #ffd6e7;

    color:var(--softText);

    font-size:14px;
}