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

/* === Body & Background === */
body {
    margin: 0;
    color: #e6faff;
    font-family: 'Poppins', sans-serif;
    overflow-x: hidden;
    background: linear-gradient(120deg, rgb(1, 9, 18), hsl(203, 100%, 10%), hsl(212, 89%, 4%));
    background-size: 400% 400%;
    animation: gradientShift 10s ease infinite;
    transition: opacity 0.7s ease, transform 0.7s ease;
}

body.fade-out {
    opacity: 0;
    transform: scale(1.05);
    filter: blur(3px);
}

@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* === Preloader === */
#preloader {
    position: fixed;
    top:0; left:0;
    width:100%; height:100%;
    background: #010912;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    overflow: hidden;
}
#preloader-logo {
    position: absolute;
    width: 120px;
    animation: pulseLogo 1s infinite alternate;
    filter: drop-shadow(0 0 10px #00ffff) drop-shadow(0 0 20px #00ffff80);
}
@keyframes pulseLogo {
    0% { transform: scale(0.9); filter: drop-shadow(0 0 10px #00ffff) drop-shadow(0 0 20px #00ffff80); }
    100% { transform: scale(1.1); filter: drop-shadow(0 0 20px #00ffff) drop-shadow(0 0 40px #00ffffaa); }
}
#preloader-canvas {
    position:absolute; top:0; left:0;
    width:100%; height:100%;
}

/* === Background Canvas === */
#bgCanvas {
    position: fixed; top:0; left:0;
    width:100%; height:100%;
    z-index:-1;
}

/* === Header === */
header {
    display:flex;
    justify-content:space-between;
    align-items:center;
    padding:20px 60px;
    background: rgba(0,20,40,0.4);
    backdrop-filter: blur(10px);
    border-bottom:1px solid rgba(0,255,255,0.2);
    position: sticky; top:0; z-index:10;
}
#logo { display:flex; align-items:center; gap:4px; }
#logo-img {
    height:70px; width:auto; border-radius:10px;
    filter: drop-shadow(0 0 8px #00ffff80);
    transition: transform 0.3s, filter 0.3s;
}
#logo-img:hover { transform: scale(1.08); filter: drop-shadow(0 0 15px #00ffff); }
.text-logo { display:flex; flex-direction:column; justify-content:center; line-height:1.1; }
#logo h2 {
    font-family: 'Orbitron', sans-serif;
    color: #00ffff; font-size:28px; margin:0;
    animation: glowPulse 2.5s infinite alternate;
    transition: transform 0.3s, filter 0.3s;
}
#logo h2:hover { transform:scale(1.08); filter:drop-shadow(0 0 15px #00ffff); }
#logo .tagline { font-size:12px; color:#91f3ff; margin-top:3px; letter-spacing:0.5px; transition:0.3s; }
#logo .tagline:hover { transform:translateX(20px); filter:drop-shadow(0 0 15px #00ffff); }

@keyframes glowPulse { from { text-shadow:0 0 5px #00ffff60 } to { text-shadow:0 0 20px #00ffffaa } }

/* === Navigation === */
#headerbtns { list-style:none; display:flex; gap:25px; }
.btns {
    text-decoration:none;
    color:#d4f8ff;
    font-weight:500;
    position:relative;
}
.btns::after {
    content:''; display:block; height:2px; width:0%;
    background:#00ffff; margin-top:4px; transition:0.3s;
}
.btns:hover::after { width:100%; }
.accent { color:#00ffff; }

/* === Hero Section === */
#home {
    height:90vh; display:flex; align-items:center; justify-content:center; text-align:center; position:relative;
}
#home .content { max-width:800px; padding:0 20px; }
#home h1 {
    font-family:'Orbitron',sans-serif;
    font-size:60px; color:#00ffff; margin-bottom:20px;
    text-shadow:0 0 10px #00ffff80; min-height:80px;
}
#home p { font-size:20px; color:#d4f8ff; line-height:1.5; }
.cta-btn {
    background: linear-gradient(90deg, #d4f8ff, #008cff);
    border:none; color:#001;
    padding:12px 30px; border-radius:30px;
    cursor:pointer; margin-top:25px; font-weight:bold; letter-spacing:1px; transition:0.3s;
}
.cta-btn:hover { transform:scale(1.05); box-shadow:0 0 20px #00ffff80; }

/* === Sections === */
section {
    padding:80px 40px; text-align:center;
    transform: translateY(0px);
    transition: transform 0.5s ease-out;
}
section h2 {
    font-size:36px; color:#00ffff; margin-bottom:40px; font-family:'Orbitron',sans-serif;
}

/* === Cards === */
.cards {
    display:grid;
    grid-template-columns: repeat(auto-fit,minmax(260px,1fr));
    gap:30px; max-width:1000px; margin:auto;
}
.card {
    background: rgba(0,20,30,0.8);
    border:1px solid rgba(0,255,255,0.2);
    border-radius:20px;
    padding:25px;
    transition:0.4s;
    box-shadow:0 0 10px rgba(0,255,255,0.05);
}

.card:hover { transform:translateY(-10px); box-shadow:0 0 25px rgba(0,255,255,0.3); }



/* === Contact Form === */
form {
    display:flex; flex-direction:column; max-width:500px; margin:auto; gap:15px;
}
input,textarea {
    padding:12px; border-radius:10px; border:1px solid rgba(0,255,255,0.3);
    background: rgba(0,20,30,0.7); color:#e6faff; font-size:15px;
}
input:focus,textarea:focus { outline:none; border-color:#00ffff; box-shadow:0 0 10px #00ffff40; }
textarea { min-height:120px; }

/* === Footer === */
footer {
    text-align:center; padding:25px;
    border-top:1px solid rgba(0,255,255,0.2);
    background: rgba(0,10,15,0.8);
    font-size:14px; color:#a8d4e0;
}

/* Smooth Scroll */
html { scroll-behavior: smooth; }

/* === Catalog === */
.catalog-grid {
    display:grid; grid-template-columns:repeat(auto-fit,minmax(250px,1fr));
    gap:25px; max-width:900px; margin:auto;
}
.catalog-grid .item {
    background: rgba(0,20,30,0.85);
    border:1px solid rgba(0,255,255,0.2);
    border-radius:18px; padding:18px;
    transition:0.4s; box-shadow:0 0 8px rgba(0,255,255,0.05);
}
.catalog-grid .item:hover { transform:translateY(-8px) scale(1.02); box-shadow:0 0 25px rgba(0,255,255,0.3); }
.catalog-grid img { width:100%; border-radius:12px; margin-bottom:12px; box-shadow:0 0 12px #00ffff50; }

/* === Audio Player === */
.audio-player { display:flex; align-items:center; gap:10px; background: rgba(0,20,40,0.5); padding:10px 15px; border-radius:25px; box-shadow:0 0 20px #00ffff30; margin-top:10px; }
.audio-player button.play-btn {
    font-size:20px; background: linear-gradient(90deg, #00ffff, #008cff);
    border:none; border-radius:50%; width:45px; height:45px; cursor:pointer;
    display:flex; align-items:center; justify-content:center; color:#001;
    transition: transform 0.2s, box-shadow 0.3s;
}
.audio-player button.play-btn:hover { transform:scale(1.1); box-shadow:0 0 25px #00ffffa0; }
.progress-container { cursor:pointer;flex:1; height:6px; background: rgba(255,255,255,0.1); border-radius:5px; overflow:hidden; box-shadow: inset 0 0 5px #00ffff50; }
.progress { width:0%; height:100%; background:linear-gradient(90deg,#00ffff,#008cff); border-radius:5px; box-shadow:0 0 10px #00ffff80; transition: width 0.1s linear; }

/* === Gallery & Lightbox === */
.gallery-grid { display:grid; grid-template-columns:repeat(auto-fit,minmax(240px,1fr)); gap:20px; max-width:1000px; margin:auto; }
.gallery-grid img { width:100%; border-radius:15px; cursor:pointer; transition:transform 0.4s, box-shadow 0.4s; box-shadow:0 0 20px rgba(0,255,255,0.1); }
.gallery-grid img:hover { transform:scale(1.05); box-shadow:0 0 30px rgba(0,255,255,0.5); }

#lightbox {
    position:fixed; top:0; left:0; width:100%; height:100%;
    background: rgba(0,0,0,0.85);
    display:flex; justify-content:center; align-items:center;
    visibility:hidden; opacity:0; transition:opacity 0.4s; z-index:1000;
}
#lightbox.active { visibility:visible; opacity:1; }
#lightbox img { max-width:90%; max-height:80%; border-radius:15px; box-shadow:0 0 40px #00ffffaa; }

/* === Clients === */
.client-grid { display:grid; grid-template-columns:repeat(auto-fit,minmax(260px,1fr)); gap:30px; max-width:1000px; margin:auto; }
.client-card {
    background: rgba(0,20,30,0.85); border:1px solid rgba(0,255,255,0.2);
    border-radius:20px; padding:25px; transition:0.4s; box-shadow:0 0 15px rgba(0,255,255,0.15);
}
.client-card:hover { transform:translateY(-10px) scale(1.03); box-shadow:0 0 30px rgba(0,255,255,0.4); }
.client-card img { width:80px; height:80px; border-radius:50%; margin-bottom:10px; border:2px solid #00ffff80; box-shadow:0 0 10px #00ffff40; }
.client-card h3 { margin:5px 0; color:#00ffff; font-family:'Orbitron',sans-serif; }
.client-card p { font-size:14px; color:#c8f6ff; }
.rating { display:block; margin-top:10px; color:#00ffff; font-size:18px; letter-spacing:2px; }

/* === Tabs === */
.showcase-tabs { display:flex; justify-content:center; gap:15px; margin-bottom:40px; }
.tab-btn {
    background: rgba(0,255,255,0.1); border:1px solid rgba(0,255,255,0.4);
    color:#00ffff; font-family:'Orbitron',sans-serif;
    padding:10px 25px; border-radius:25px; cursor:pointer; transition:0.3s;
}
.tab-btn:hover { box-shadow:0 0 15px #00ffff80; transform:scale(1.05); }
.tab-btn.active { background:linear-gradient(90deg,#00ffff,#008cff); color:#001; box-shadow:0 0 25px #00ffffaa; }
.tab-content { display:none; opacity:0; transform:translateY(20px); transition:opacity 0.5s, transform 0.5s; }
.tab-content.active { display:block; opacity:1; transform:translateY(0); }


.review-form {
    max-width: 500px;
    margin: auto;
    text-align: center;
}

.review-form input,
.review-form textarea,
.review-form select {
    width: 100%;
    padding: 12px;
    margin-bottom: 15px;
    border-radius: 10px;
    border: 1px solid rgba(0,255,255,0.3);
    background: rgba(0,20,30,0.7);
    color: #e6faff;
}

.review-form textarea {
    min-height: 120px;
}

.review-success {
    text-align: center;
    font-size: 18px;
    color: #00ffff;
    padding: 20px;
    border: 1px solid #00ffff;
    border-radius: 10px;
    background: rgba(0,20,30,0.7);
    max-width: 500px;
    margin: auto;

}


.star-rating span{
    font-size: 30px;
    margin-bottom: 20px;
    cursor: pointer;
    user-select: none;
}

.star-rating span {
    color: #00ffff;
    transition: 0.2s;
}

.star-rating span:hover,
.star-rating span.active {
    color: gold;
}

/* =========================
   MESAJ SUCCES
========================= */

.review-success {
    background: #111;
    padding: 30px;
    border-radius: 12px;
    color: gold;
    font-size: 18px;
    margin-top: 40px;
}

/* =========================
   RESPONSIVE
========================= */

@media(max-width:768px) {

    #clients {
        padding: 80px 5%;
    }

    #clients h2 {
        font-size: 28px;
    }

    .review-form {
        padding: 30px;
    }

}


/* =========================
   RECENZII CLIENTI
========================= */

#clients {
    padding: 100px 10%;
    background: #0f0f0f;
    color: #fff;
    text-align: center;
}

#clients h2 {
    font-size: 36px;
    margin-bottom: 60px;
    font-weight: 600;
}

/* GRID RECENZII */
.client-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-bottom: 60px;
}

/* CARD RECENZIE */
.client-card {
    background: #1a1a1a;
    padding: 30px;
    border-radius: 15px;
    transition: 0.3s ease;
    box-shadow: 0 0 0 transparent;
}

.client-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(255,255,255,0.05);
}

.client-card h3 {
    margin-bottom: 15px;
    font-size: 20px;
    font-weight: 500;
}

.client-card p {
    font-size: 15px;
    line-height: 1.6;
    opacity: 0.85;
    margin-bottom: 20px;
}

/* STELE AFISATE */
.rating {
    font-size: 20px;
    letter-spacing: 3px;
    color: gold;
}

/* =========================
   FORMULAR RECENZIE
========================= */

.review-form {
    max-width: 600px;
    margin: auto;
    background: #1a1a1a;
    padding: 40px;
    border-radius: 15px;
}

.review-form h3 {
    margin-bottom: 25px;
    font-size: 22px;
}

.review-form input,
.review-form textarea {
    width: 100%;
    padding: 12px 15px;
    margin-bottom: 20px;
    border-radius: 8px;
    border: none;
    background: #111;
    color: #fff;
    font-size: 14px;
}

.review-form input:focus,
.review-form textarea:focus {
    outline: 1px solid gold;
}

.review-form textarea {
    resize: none;
    height: 120px;
}

/* BUTON */
.cta-btn {
    color: #000;
    padding: 12px 25px;
    border-radius: 30px;
    border: none;
    cursor: pointer;
    font-weight: 600;
    transition: 0.3s;
}

.cta-btn:hover {
    background: #fff;
}

/* =========================
   STELE INTERACTIVE
========================= */

.star-rating {
    font-size: 30px;
    margin-bottom: 20px;
    cursor: pointer;
    user-select: none;
}

.star-rating span {
    color: #00ffff;
    transition: 0.2s;
}

.star-rating span:hover,
.star-rating span.active {
    color: gold;
}

/* =========================
   MESAJ SUCCES
========================= */

.review-success {
    background: #111;
    padding: 30px;
    border-radius: 12px;
    color: gold;
    font-size: 18px;
    margin-top: 40px;
}

/* =========================
   RESPONSIVE
========================= */

@media(max-width:768px) {

    #clients {
        padding: 80px 5%;
    }

    #clients h2 {
        font-size: 28px;
    }

    .review-form {
        padding: 30px;
    }

}


/* =========================================
   GLOBAL FIXES (stabilizare layout)
========================================= */

* {
    box-sizing: border-box;
}

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

body {
    overflow-x: hidden;
}

/* Evita latime prea mare pe orice container */
section,
header,
footer {
    width: 100%;
    max-width: 100vw;
}

/* =========================================
   HEADER IMPROVED MOBILE
========================================= */

@media (max-width: 992px) {

    header {
        flex-direction: column;
        padding: 15px 20px;
        gap: 15px;
    }

    #logo {
        justify-content: center;
        text-align: center;
    }

    #headerbtns {
        flex-wrap: wrap;
        justify-content: center;
        gap: 15px;
    }

    #headerbtns li {
        list-style: none;
    }

    .btns {
        font-size: 14px;
    }
}

/* =========================================
   HERO PERFECT SCALING
========================================= */

@media (max-width: 768px) {

    #home {
        padding: 80px 20px;
        height: auto;
    }

    #home h1 {
        font-size: clamp(26px, 6vw, 38px);
        line-height: 1.2;
    }

    #home p {
        font-size: 15px;
    }

    .cta-btn {
        width: 100%;
        max-width: 260px;
    }

}

/* =========================================
   GRID SYSTEM FIX
========================================= */

@media (max-width: 768px) {

    .cards,
    .catalog-grid,
    .gallery-grid,
    .client-grid {
        grid-template-columns: 1fr !important;
    }

}

/* =========================================
   CLIENT SECTION CONFLICT FIX
========================================= */

/* Unificare stil clients */
#clients {
    background: linear-gradient(135deg, #0f0f0f, #111);
    padding: 80px 20px;
}

.client-card {
    background: #1a1a1a;
    border: 1px solid rgba(255,255,255,0.05);
}

/* =========================================
   FORM FIX
========================================= */

@media (max-width: 768px) {

    form,
    .review-form {
        padding: 25px;
        width: 100%;
    }

    input,
    textarea {
        font-size: 14px;
    }

}

/* =========================================
   AUDIO PLAYER FIX
========================================= */

@media (max-width: 600px) {

    .audio-player {
        flex-direction: column;
        align-items: stretch;
    }

    .progress-container {
        width: 100%;
    }

}

/* =========================================
   SMALL DEVICES (sub 480px)
========================================= */

@media (max-width: 480px) {

    header {
        padding: 10px 15px;
    }

    #logo-img {
        height: 55px;
    }

    section {
        padding: 50px 15px;
    }

    section h2 {
        font-size: 22px;
    }

    .card,
    .client-card {
        padding: 18px;
    }

    .tab-btn {
        padding: 8px 14px;
        font-size: 13px;
    }

}

/* =========================================
   GLOBAL FIXES (stabilizare layout)
========================================= */

* {
    box-sizing: border-box;
}

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

body {
    overflow-x: hidden;
}

/* Evita latime prea mare pe orice container */
section,
header,
footer {
    width: 100%;
    max-width: 100vw;
}

/* =========================================
   HEADER IMPROVED MOBILE
========================================= */

@media (max-width: 992px) {

    header {
        flex-direction: column;
        padding: 15px 20px;
        gap: 15px;
    }

    #logo {
        justify-content: center;
        text-align: center;
    }

    #headerbtns {
        flex-wrap: wrap;
        justify-content: center;
        gap: 15px;
    }

    #headerbtns li {
        list-style: none;
    }

    .btns {
        font-size: 14px;
    }
}

/* =========================================
   HERO PERFECT SCALING
========================================= */

@media (max-width: 768px) {

    #home {
        padding: 80px 20px;
        height: auto;
    }

    #home h1 {
        font-size: clamp(26px, 6vw, 38px);
        line-height: 1.2;
    }

    #home p {
        font-size: 15px;
    }

    .cta-btn {
        width: 100%;
        max-width: 260px;
    }

}

/* =========================================
   GRID SYSTEM FIX
========================================= */

@media (max-width: 768px) {

    .cards,
    .catalog-grid,
    .gallery-grid,
    .client-grid {
        grid-template-columns: 1fr !important;
    }

}

/* =========================================
   CLIENT SECTION CONFLICT FIX
========================================= */

/* Unificare stil clients */
#clients {
    background: linear-gradient(135deg, #0f0f0f, #111);
    padding: 80px 20px;
}

.client-card {
    background: #1a1a1a;
    border: 1px solid rgba(255,255,255,0.05);
}

/* =========================================
   FORM FIX
========================================= */

@media (max-width: 768px) {

    form,
    .review-form {
        padding: 25px;
        width: 100%;
    }

    input,
    textarea {
        font-size: 14px;
    }

}

/* =========================================
   AUDIO PLAYER FIX
========================================= */

@media (max-width: 600px) {

    .audio-player {
        flex-direction: column;
        align-items: stretch;
    }

    .progress-container {
        width: 100%;
    }

}

/* =========================================
   SMALL DEVICES (sub 480px)
========================================= */

@media (max-width: 480px) {

    header {
        padding: 10px 15px;
    }

    #logo-img {
        height: 55px;
    }

    section {
        padding: 50px 15px;
    }

    section h2 {
        font-size: 22px;
    }

    .card,
    .client-card {
        padding: 18px;
    }

    .tab-btn {
        padding: 8px 14px;
        font-size: 13px;
    }

}
