:root {
    --bg: #0f172a;
    --text: #ffffff;
    --accent: #00e5ff;
    --card: #1e293b;
}

/* ================= GLOBAL ================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    height: 100%;
}

body {
    font-family: 'Segoe UI', sans-serif;
    background: var(--bg);
    color: var(--text);
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    background: url("pictures/background.jpg") center/cover no-repeat;
    opacity: 0.3;
    z-index: -1;
    pointer-events: none;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

/* ================= HEADER ================= */
.header {
    padding: 20px 0;
    background: rgba(0,0,0,0.4);
    backdrop-filter: blur(10px);
    position: sticky;
    top: 0;
    z-index: 10;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
}

.logo {
    opacity: 0;
    transform: translateX(-40px);
    animation: headerLeft 0.8s ease-out forwards;
}

.nav {
    opacity: 0;
    transform: translateX(40px);
    animation: headerRight 0.8s ease-out forwards;
}

.header-phone {
    opacity: 0;
    transform: translateY(-20px);
    animation: phoneFade 0.8s ease-out forwards;
    animation-delay: 0.4s;
    font-size: 28px;
    font-weight: bold;
}

.header-phone a {
    color: var(--accent);
    text-decoration: none;
    transition: color 0.3s ease;
}

.header-phone a:hover {
    color: #ffffff;
}

@keyframes phoneFade {
    to { opacity: 1; transform: translateY(0); }
}

@keyframes headerLeft {
    to { transform: translateX(0); opacity: 1; }
}

@keyframes headerRight {
    to { transform: translateX(0); opacity: 1; }
}

.logo img {
    height: 100px;
    object-fit: contain;
}

/* NAV */
.nav ul {
    list-style: none;
    display: flex;
    gap: 30px;
}

.nav a {
    text-decoration: none;
    color: var(--text);
    font-weight: 500;
    font-size: 25px;
    position: relative;
}

.nav a::after {
    content: "";
    position: absolute;
    width: 0%;
    height: 2px;
    bottom: -5px;
    left: 0;
    background: var(--accent);
    transition: width 0.3s ease;
}

.nav a:hover::after {
    width: 100%;
}

/* BURGER */
#menu-toggle {
    display: none;
}

.burger {
    display: none;
    font-size: 28px;
    cursor: pointer;
}

/* ================= HERO ================= */
.hero {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px 0;
}

.hero-overlay {
    position: relative;
    background: rgba(0,0,0,0.3);
    padding: 40px;
    border-radius: 12px;
    margin: 40px auto;
    max-width: 900px;
    overflow: hidden;
    opacity: 1;
    transform: translateY(40px) scale(0.95);
    transition: all 1s cubic-bezier(.22,.61,.36,1);
}

.hero-overlay.show {
    opacity: 1;
    transform: translateY(0) scale(1);
}

.hero-text {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 20px;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.5s ease;
}

.hero-text.default {
    position: relative;
    opacity: 1;
    justify-content: flex-start;
    padding-top: 20px;
    transform: translateY(0);
}

.hero-text h1 {
    white-space: nowrap;
    margin-bottom: 15px;
}

.mobile-page .hero-text h2 {
    font-size: clamp(18px, 5vw, 34px);
    margin-bottom: 15px;
}

.mobile-page .hero-text p {
    max-width: 700px;
    font-size: clamp(13px, 3.5vw, 22px);
    line-height: 1.45;
}

.mobile-page .text1 p,
.mobile-page .text2 p,
.mobile-page .text3 p {
    font-size: clamp(13px, 3.5vw, 22px);
    overflow-wrap: break-word;
}

/* HOVER DESKTOP */
body:has(.card1:hover) .text1,
body:has(.card2:hover) .text2,
body:has(.card3:hover) .text3 {
    opacity: 1;
    transform: translateY(0);
}

body:has(.card:hover) .default {
    opacity: 0;
    transform: translateY(20px);
}

/* ================= CARDS ================= */
.cards-section {
    display: flex;
    justify-content: center;
    padding: 20px 0;
    flex-grow: 1;
}

.cards {
    display: flex;
    gap: 30px;
    flex-wrap: wrap;
    justify-content: center;
    opacity: 0;
    transform: translateY(40px);
    animation: cardsIn 0.8s ease forwards;
    animation-delay: 0.5s;
}

@keyframes cardsIn {
    to { opacity: 1; transform: translateY(0); }
}

.card {
    background: var(--card);
    border-radius: 12px;
    overflow: hidden;
    width: 350px;
    height: 350px;
    position: relative;
    box-shadow: 0 10px 25px rgba(0,0,0,0.6);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
    transform: translateY(-10px) scale(1.03);
    box-shadow: 0 20px 45px rgba(0,0,0,0.85);
}

.card-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.card-overlay {
    position: absolute;
    bottom: 0;
    width: 100%;
    height: 25%;
    background: rgba(0, 229, 255, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
}

.card-overlay h3 {
    font-size: 1.2rem;
}

/* ================= FOOTER ================= */
.footer {
    text-align: center;
    padding: 30px 0;
    background: rgba(0,0,0,0.4);
    flex-shrink: 0;
}

.footer .designer {
    display: block;
    margin-top: 8px;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.5);
}

/* ================= MOBILE PAGE ================= */
.mobile-page .hero-overlay {
    max-width: 100%;
    margin: 15px;
    min-height: 220px;
    height: auto;
    padding: 25px 15px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.mobile-page .hero-text {
    position: relative;
    inset: auto;
    display: none;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    text-align: center;
    opacity: 1;
    padding: 10px;
    overflow: visible;
}

.mobile-page .hero-text.active {
    display: flex;
}

.mobile-buttons {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin: 15px 0 25px;
}

.mobile-btn {
    border: none;
    padding: 10px 14px;
    border-radius: 8px;
    background: var(--accent);
    font-weight: 700;
    cursor: pointer;
}

.mobile-btn.active {
    background: #ffffff;
}

.mobile-page .cards-section {
    display: none;
}


/* ================= MOBILE HEADER ================= */
/* ================= MOBILE HEADER ================= */

.mobile-page .header-container {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-start;
    gap: 5px;
    width: 100%;
}


/* LOGO */
.mobile-page .logo {
    display: flex;
    flex-direction: column;
    align-items: flex-start;

    opacity: 1;
    transform: none;
    animation: none;
}

.mobile-page .logo img {
    height: clamp(45px, 12vw, 70px);
}


/* PHONE */
.mobile-page .header-phone {
    order: 2;

    display: block;

    text-align: left;

    opacity: 1;
    transform: none;
    animation: none;
}

.mobile-page .header-phone a {
    font-size: 28px;
    font-weight: bold;
}


/* MENU AREA */
.mobile-page .mobile-menu {
    order: 3;
    position: relative;
}


/* BURGER BUTTON */
.mobile-page .menu-toggle {

    display: block;

    background: transparent;
    border: none;

    color: white;

    cursor: pointer;

    font-size: clamp(22px, 6vw, 30px);

    padding: 8px 12px;
}


/* DROPDOWN MENU */

.mobile-page .nav {

    display: none;

    position: absolute;

    top: 55px;
    left: 0;

    width: 180px;

    background: rgba(15,23,42,0.98);

    border-radius: 12px;

    padding: 5px 0;

    z-index: 9999;

    opacity: 1;
    transform: none;
    animation: none;
}


.mobile-page .nav.show {
    display: block;
}



/* MENU LIST */

.mobile-page .nav ul {

    display: flex;

    flex-direction: column;

    gap: 0;

    margin: 0;
    padding: 0;

    list-style: none;
}


.mobile-page .nav li {
    width: 100%;
}



.mobile-page .nav a {

    display: block;

    padding: 12px 15px;

    font-size: 18px;

    color: white;

    text-decoration: none;
}



.mobile-page .nav a:hover {

    background: rgba(0,229,255,0.2);

}



@media (max-width: 480px) {

    .mobile-page .logo img {
        height: 55px;
    }


    .mobile-page .nav {
        width: 180px;
    }

}
