/* ========================= 
   GLOBAL
========================= */
html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: 'Segoe UI';
    color: #cde0ff;

    background: url("images/bg.jpg") no-repeat center center;
    background-size: cover;
    background-attachment: fixed;
}

@media (max-width: 900px) {
    body {
        background: url("images/bg-tablet.webp") no-repeat center center;
        background-size: cover;
        background-attachment: scroll;
    }
}
@media (max-width: 600px) {
    body {
        background: url("images/bg-mobile.webp") no-repeat center top;
        background-size: cover;
        background-attachment: scroll;
    }
}

/* OVERLAY */
body::before {
    content: "";
    position: fixed;
    width: 100%;
    height: 100%;
    background: rgba(5, 11, 26, 0.75);
    top: 0;
    left: 0;
    z-index: -1;
}

/* PARTICLES */
#particles-js {
    position: fixed;
    width: 100%;
    height: 100%;
    z-index: -2;
}

/* =========================
   NAVBAR
========================= */
.navbar {
    display: flex;
    justify-content: space-between;
    padding: 20px 10%;
    align-items: center;

    position: sticky;
    top: 0;
    backdrop-filter: blur(10px);
    background: rgba(5,11,26,0.6);
}

.logo {
    font-weight: bold;
    color: #4da6ff;
}

.menu {
    display: flex;
}

.menu a {
    margin: 0 15px;
    color: #cde0ff;
    text-decoration: none;
    transition: 0.3s;
}

.menu a:hover {
    color: #4da6ff;
}

/* =========================
   HERO
========================= */
.hero {
    display: flex;
    padding: 100px 10%;
    align-items: center;
    gap: 60px;
}

.hero-left {
    max-width: 600px;
}

.hero h1 {
    font-size: 70px;
    color: white;
    text-shadow: 0 0 25px rgba(77,166,255,0.4);
}

.hero span {
    color: #4da6ff;
}

/* =========================
   FEATURES
========================= */
.features {
    display: flex;
    gap: 15px;
    margin-top: 20px;
    flex-wrap: wrap;
}

.feature {
    background: rgba(77,166,255,0.1);
    padding: 10px;
    border-radius: 10px;
    border: 1px solid rgba(77,166,255,0.2);
}

/* =========================
   FLOATING IMAGES
========================= */
.floating-images {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.floating-images img {
    width: 180px;
    border-radius: 15px;
    box-shadow: 0 0 20px rgba(77,166,255,0.5);
    animation: float 5s ease-in-out infinite;
}

.floating-images img:hover {
    transform: scale(1.05);
    box-shadow: 0 0 40px #4da6ff;
}

@keyframes float {
    0% { transform: translateY(0); }
    50% { transform: translateY(-12px); }
    100% { transform: translateY(0); }
}

/* =========================
   BUTTONS
========================= */
.btn-primary,
.btn-outline {
    display: inline-block;
    text-decoration: none;
    padding: 10px 20px;
    border-radius: 10px;
    transition: 0.3s;
}

.btn-primary {
    background: #4da6ff;
    color: white;
}

.btn-primary:hover {
    transform: scale(1.05);
    box-shadow: 0 0 20px rgba(77,166,255,0.5);
}

.btn-outline {
    background: transparent;
    border: 1px solid #4da6ff;
    color: #4da6ff;
}

.btn-outline:hover {
    box-shadow: 0 0 20px rgba(77,166,255,0.5);
}

/* =========================
   APP SHOWCASE
========================= */
.apps-showcase {
    padding: 80px 10%;
    text-align: center;
}

.apps-showcase h2 {
    font-size: 32px;
    color: white;
}

.apps-showcase p {
    color: #9ecbff;
    margin-bottom: 40px;
}

.apps-container {
    display: flex;
    gap: 20px;
    overflow-x: auto;
    padding-bottom: 10px;
}

.apps-container img,
.apps-container video {
    width: 220px;
    height: 400px;
    object-fit: cover;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    transition: 0.3s;
}

.apps-container img:hover,
.apps-container video:hover {
    transform: scale(1.05);
}

/* =========================
   SERVICES
========================= */
.services {
    padding: 80px 10%;
    text-align: center;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 25px;
}

.service-card {
    background: rgba(255,255,255,0.04);
    padding: 25px;
    border-radius: 15px;
    border: 1px solid rgba(255,255,255,0.08);
    backdrop-filter: blur(10px);
    transition: 0.3s;
}

.service-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 15px 50px rgba(77,166,255,0.2);
}

/* =========================
   GRID
========================= */
.grid {
    display: grid;
    grid-template-columns: repeat(4,1fr);
    gap: 20px;
    padding: 50px 10%;
}

.box {
    padding: 20px;
}

/* ========================= 
   CONTACT
========================= */
.contact {
    margin: 50px 10%;
    padding: 30px;
    display: flex;
    flex-direction: column;
    gap: 15px;

    background: rgba(255,255,255,0.03);
    border-radius: 15px;
    backdrop-filter: blur(10px);
}

.contact a {
    color: #4da6ff;
    text-decoration: none;
    font-weight: bold;
}

.contact a:hover {
    text-decoration: underline;
}

.contact input,
.contact textarea {
    padding: 12px;
    border-radius: 8px;
    border: none;
    background: rgba(11,31,74,0.8);
    color: #ffffff;
    outline: none;
    transition: 0.3s;
}

.contact input:focus,
.contact textarea:focus {
    box-shadow: 0 0 10px rgba(77,166,255,0.5);
}

.contact button {
    margin-top: 10px;
}

/* =========================
   WHATSAPP
========================= */
.whatsapp-container {
    position: fixed;
    bottom: 25px;
    right: 25px;
    z-index: 9999;
    animation: floatMove 8s ease-in-out infinite;
}

.whatsapp-btn {
    width: 70px;
    height: 70px;
    border-radius: 20px;
    overflow: hidden;
    cursor: pointer;

    display: flex;
    align-items: center;
    justify-content: center;

    box-shadow:
        0 15px 40px rgba(0,0,0,0.5),
        0 0 20px rgba(37,211,102,0.3);
}

.whatsapp-btn img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.whatsapp-box {
    position: absolute;
    bottom: 90px;
    right: 0;
    background: #0b1f4a;
    padding: 15px;
    border-radius: 12px;
    width: 220px;

    opacity: 0;
    pointer-events: none;
    transition: 0.4s ease;
}

.whatsapp-box a {
    display: block;
    background: #25D366;
    padding: 8px;
    border-radius: 8px;
    text-align: center;
    color: white;
    text-decoration: none;
}

@keyframes floatMove {
    0% { transform: translate(0, 0); }
    50% { transform: translate(-10px, -15px); }
    100% { transform: translate(0, 0); }
}

/* =========================
   ANIMATIONS
========================= */
section {
    opacity: 0;
    transform: translateY(40px);
}

section.visible {
    opacity: 1;
    transform: translateY(0);
}

/* =========================
   MOBILE
========================= */
@media (max-width: 900px) {

    body {
        font-size: 15px;
    }

    .navbar {
        flex-direction: column;
        gap: 10px;
    }

    .menu {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
    }

    .hero {
        flex-direction: column;
        text-align: center;
        padding: 60px 20px;
    }

    .hero h1 {
        font-size: 40px;
    }

    .floating-images {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
        margin-top: 20px;
    }

    .floating-images img {
        width: 100%;
    }

    .features {
        justify-content: center;
    }

    .apps-container {
        display: flex;
        overflow-x: auto;
        padding: 10px;
    }

    .apps-container img,
    .apps-container video {
        width: 160px;
        height: 300px;
    }

    .services-grid {
        grid-template-columns: 1fr;
    }

    .grid {
        grid-template-columns: 1fr;
    }

    .contact {
        margin: 30px 15px;
    }

    .whatsapp-container {
        bottom: 15px;
        right: 15px;
    }
}
/* =========================
   GUARDIAN MINI PAGE
========================= */
.guardian-page {
    margin: 70px 10%;
    padding: 40px;
    max-width: 950px;

    opacity: 1 !important;
    transform: none !important;
}

.guardian-page h1 {
    color: white;
    font-size: 42px;
}

.guardian-page h2 {
    color: #4da6ff;
    margin-top: 30px;
}

.guardian-page p {
    line-height: 1.7;
}

.guardian-page ul {
    line-height: 1.8;
    padding-left: 25px;
}

.guardian-page + .apps-showcase {
    opacity: 1 !important;
    transform: none !important;
}

/* GUARDIAN HOVER PET */
#guardianPet {
    position: fixed;
    width: 80px;
    left: 100px;
    top: 200px;
    z-index: 9999;
    transition: left 3s ease, top 3s ease;
}

#guardianPet img {
    width: 100%;
    height: auto;
    filter: drop-shadow(0 0 15px rgba(77,166,255,0.6));
}

/* MOBILE */
@media (max-width: 600px) {
    .guardian-page {
        margin: 30px 15px;
        padding: 22px;
    }

    .guardian-page h1 {
        font-size: 30px;
        text-align: center;
    }

    .guardian-page ul {
        font-size: 14px;
        padding-left: 18px;
    }

    .guardian-page .btn-primary {
        width: 100%;
        box-sizing: border-box;
        text-align: center;
    }

    #guardianPet {
        width: 55px;
        left: 20px;
        top: 150px;
    }
/* =========================
   WEB DESIGN SECTION
========================= */
.webdesign-page {
    margin: 70px 10%;
    padding: 40px;
    max-width: 950px;

    background: rgba(255,255,255,0.03);
    border-radius: 15px;
    backdrop-filter: blur(10px);

    opacity: 1 !important;
    transform: none !important;
}

.webdesign-page h1,
.webdesign-page h2 {
    color: white;
}

.webdesign-page h2 {
    color: #4da6ff;
    margin-top: 30px;
}

.webdesign-page p {
    line-height: 1.7;
}

.webdesign-page ul {
    line-height: 1.8;
    padding-left: 25px;
}
