/* =========================================
   1. VARIABILE (PALETA DUSTY ULTRA-LIGHT)
   ========================================= */
:root {
    --dusty-pale: #f4f7fa;
    /* Albastru prafuit FOARTE deschis */
    --dusty-border: #e2e8f0;

    --clear-blue: #3b82f6;
    --clear-purple: #7b2cbf;
    --clear-pink: #d9048e;

    --text-dark: #0f172a;
    /* Poate fi un pic mai închis pentru contrast premium */
    --text-muted: #64748b;
    --white: #ffffff;

    /* Gradient actualizat conform logo */
    --gradient-brand: linear-gradient(135deg, var(--clear-purple) 0%, var(--clear-pink) 100%);
    --gradient-blue: linear-gradient(135deg, #3b82f6 0%, #7b2cbf 100%);

    /* Glassmorphism 2.0 */
    --glass-bg: rgba(255, 255, 255, 0.7);
    --glass-border: rgba(255, 255, 255, 0.4);
    --glass-blur: blur(12px);

    /* Shadows & Glows */
    --transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    --shadow-premium: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    --shadow-float: 0 20px 40px rgba(123, 44, 191, 0.1);
    --glow-brand: 0 0 20px rgba(217, 4, 142, 0.2);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', sans-serif;
}

body {
    background: var(--white);
    color: var(--text-dark);
    overflow-x: hidden;
    line-height: 1.6;
}

.full-container {
    max-width: 1440px;
    margin: 0 auto;
    padding: 0 40px;
}

.section-container {
    padding: 120px 0;
    position: relative;
}

.bg-soft {
    background: var(--dusty-pale);
}

.text-center {
    text-align: center;
}

/* =========================================
   2. ELEMENTE GEOMETRICE DIVERSIFICATE
   ========================================= */
.bg-layer {
    position: fixed;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    overflow: hidden;
}

.lightning-bolt {
    position: absolute;
    inset: 0;
    background: linear-gradient(110deg, transparent 40%, rgba(59, 130, 246, 0.05) 48%, rgba(123, 44, 191, 0.05) 52%, transparent 60%);
    animation: flash 6s infinite;
}

@keyframes flash {

    0%,
    90%,
    100% {
        opacity: 0;
    }

    92% {
        opacity: 1;
        transform: skewX(-15deg);
    }
}

.shape {
    position: absolute;
    opacity: 0.2;
    /* Redus considerabil pentru a nu deranja textul */
    animation: float 15s infinite ease-in-out;
    z-index: -1;
}

/* Tipuri de forme clare */
.triangle {
    width: 0;
    height: 0;
    border-left: 40px solid transparent;
    border-right: 40px solid transparent;
    border-bottom: 70px solid;
}

.circle {
    width: 60px;
    height: 60px;
    border-radius: 50%;
}

.diamond {
    width: 50px;
    height: 50px;
    transform: rotate(45deg);
}

.star {
    width: 50px;
    height: 50px;
    clip-path: polygon(50% 0%, 61% 35%, 98% 35%, 68% 57%, 79% 91%, 50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35%);
}

/* Culori forme */
.purple {
    border-bottom-color: var(--clear-purple);
    background-color: var(--clear-purple);
}

.blue {
    border-bottom-color: var(--clear-blue);
    background-color: var(--clear-blue);
}

.pink {
    border-bottom-color: var(--clear-pink);
    background-color: var(--clear-pink);
}

/* Pozitii forme */
.shape:nth-child(2) {
    top: 10%;
    left: 5%;
}

.shape:nth-child(3) {
    top: 30%;
    right: 8%;
    animation-delay: -2s;
}

.shape:nth-child(4) {
    bottom: 20%;
    left: 10%;
    animation-delay: -4s;
}

.shape:nth-child(5) {
    top: 50%;
    left: 40%;
    animation-delay: -6s;
}

.shape:nth-child(6) {
    bottom: 10%;
    right: 15%;
    animation-delay: -8s;
}

.shape:nth-child(7) {
    top: 15%;
    right: 30%;
    animation-delay: -10s;
}

@keyframes float {

    0%,
    100% {
        transform: translate(0, 0) rotate(0deg);
    }

    50% {
        transform: translate(20px, -40px) rotate(15deg);
    }
}

.glow-point {
    position: absolute;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(217, 4, 142, 0.08) 0%, transparent 70%);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.wave-container {
    position: absolute;
    bottom: 0;
    width: 100%;
    height: 100px;
    line-height: 0;
}

/* =========================================
   3. NAVIGAȚIE & FOOTER (DUSTY PALE)
   ========================================= */
nav {
    height: 90px;
    display: flex;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.3);
    transition: var(--transition);
}

nav.scrolled {
    height: 80px;
    background: rgba(255, 255, 255, 0.9);
    box-shadow: var(--shadow-premium);
}

.nav-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.logo-link {
    display: flex;
    align-items: center;
    text-decoration: none;
    gap: 15px;
}

.main-logo-img {
    height: 70px;
}

.logo-link strong {
    font-size: 1.5rem;
    color: var(--text-dark);
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 35px;
    align-items: center;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 700;
    font-size: 0.95rem;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--clear-pink);
    position: relative;
}

/* Linie subliniere pentru pagina activă */
.nav-links a.active::after {
    content: '';
    display: block;
    width: 100%;
    height: 2px;
    background: var(--clear-pink);
    position: absolute;
    bottom: -5px;
    left: 0;
    border-radius: 2px;
}

.btn-nav {
    background: var(--clear-blue);
    color: white !important;
    padding: 12px 28px;
    border-radius: 50px;
}

.main-footer {
    background: var(--dusty-pale);
    padding: 80px 0 0;
    margin-top: 50px;
    border-top: 1px solid var(--dusty-border);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1.5fr;
    gap: 60px;
    padding-bottom: 60px;
}

.footer-logo {
    height: 70px;
    margin-bottom: 25px;
}

.footer-grid h4 {
    margin-bottom: 25px;
    color: var(--clear-purple);
    font-weight: 800;
}

.social-icons {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.social-icons a {
    width: 40px;
    height: 40px;
    background: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--clear-pink);
    font-size: 1.2rem;
}

.footer-bottom {
    border-top: 1px solid var(--dusty-border);
    padding: 30px 0;
    display: flex;
    justify-content: space-between;
    font-size: 0.9rem;
    font-weight: 600;
}

/* =========================================
   4. CONTENT LAYOUT (HERO & GRIDS)
   ========================================= */
.hero {
    padding: 80px 0;
    min-height: 70vh;
    display: flex;
    align-items: center;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 60px;
    align-items: center;
}

h1 {
    font-size: clamp(3rem, 6vw, 4.5rem);
    font-weight: 900;
    letter-spacing: -3px;
    line-height: 1.05;
}

.accent-text {
    background: var(--gradient-brand);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 0 15px rgba(217, 4, 142, 0.25));
}

.hero-content p {
    font-size: 1.3rem;
    color: var(--text-muted);
    margin-bottom: 40px;
}

.hero-btns {
    display: flex;
    gap: 20px;
    align-items: center;
    margin-bottom: 20px;
}

.btn-p {
    background: var(--gradient-brand);
    color: white;
    padding: 18px 45px;
    border-radius: 50px;
    /* More modern pill shape */
    text-decoration: none;
    font-weight: 800;
    display: inline-flex;
    align-items: center;
    gap: 12px;
    transition: var(--transition);
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 15px 35px rgba(123, 44, 191, 0.2);
}

.btn-p:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(123, 44, 191, 0.4), 0 0 20px rgba(217, 4, 142, 0.3);
}

.btn-s {
    border: 2px solid var(--text-dark);
    color: var(--text-dark);
    padding: 18px 45px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 800;
    transition: var(--transition);
}

.btn-s:hover {
    background: var(--text-dark);
    color: var(--white);
    transform: translateY(-5px);
}

.grid-4 {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    margin-top: 60px;
}

.grid-2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
    margin-top: 60px;
}

.grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 60px;
}

/* CARDURI PREMIUM GLASSMORPHISM */
.glass-card,
.blog-card,
.portfolio-card {
    background: var(--glass-bg);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    padding: 50px 30px;
    border-radius: 30px;
    box-shadow: var(--shadow-premium);
    border: 1px solid var(--glass-border);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.glass-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(225deg, transparent 60%, rgba(217, 4, 142, 0.05) 100%);
    pointer-events: none;
}

.glass-card:hover {
    transform: translateY(-10px) scale(1.02);
    background: rgba(255, 255, 255, 0.85);
    box-shadow: var(--shadow-float);
    border-color: rgba(217, 4, 142, 0.3);
}

.card-icon {
    width: 80px;
    height: 80px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    margin-bottom: 25px;
    transition: var(--transition);
}

.port-preview-premium:hover div:first-child {
    transform: scale(1.05);
}

.port-preview-premium:hover .port-overlay {
    opacity: 1;
}

.portfolio-card:hover h3 {
    color: var(--clear-pink);
}

/* SELECȚIE PERSONALIZATĂ */
::selection {
    background: var(--clear-purple);
    color: white;
}

/* SCROLLBAR PREMIUM */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: var(--dusty-pale);
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(var(--clear-purple), var(--clear-pink));
    border-radius: 10px;
    border: 2px solid var(--dusty-pale);
}

::-webkit-scrollbar-thumb:hover {
    background: var(--clear-pink);
}

.blue-c {
    color: var(--clear-blue);
}

.purple-c {
    color: var(--clear-purple);
}

.pink-c {
    color: var(--clear-pink);
}

/* HERO IMAGE FLOAT */
.hero-main-image {
    width: 100%;
    display: flex;
    justify-content: flex-end;
}

.floating-graphic {
    width: 100%;
    max-width: 550px;
    animation: imageFloat 6s infinite ease-in-out;
}

@keyframes imageFloat {

    0%,
    100% {
        transform: translateY(0) rotate(0deg);
    }

    50% {
        transform: translateY(-20px) rotate(2deg);
    }
}

@keyframes rotate {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

.hero-badge {
    display: inline-block;
    padding: 10px 20px;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 30px;
}

/* =========================================
   5. DE CE DYAARTG (FOTO)
   ========================================= */
.why-us-grid {
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    gap: 80px;
    align-items: center;
}

.personal-photo-wrapper {
    position: relative;
    width: 100%;
    max-width: 400px;
    margin: 0 auto;
}

.photo-frame {
    width: 100%;
    /* Inlăturăm aspect-ratio fix pentru a preveni tăierea pozei */
    background: var(--dusty-pale);
    border-radius: 40px;
    overflow: hidden;
    position: relative;
    z-index: 2;
    border: 10px solid white;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.1);
}

.dya-img {
    width: 100%;
    height: auto;
    display: block;
    /* Schimbăm de la cover la contain sau auto pentru a vedea toată poza */
    object-fit: contain;
}

.photo-deco {
    position: absolute;
    width: 120px;
    height: 120px;
    border: 3px solid var(--clear-pink);
    border-radius: 50%;
    bottom: -30px;
    left: -30px;
    z-index: 1;
    opacity: 0.4;
}

.feature-list {
    list-style: none;
    margin-top: 30px;
}

.feature-list li {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
    font-weight: 600;
    align-items: center;
}

.icon-box {
    min-width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
}

.icon-purple {
    background: var(--clear-purple);
}

.icon-blue {
    background: var(--clear-blue);
}

.icon-pink {
    background: var(--clear-pink);
}

/* =========================================
   6. EDUCAȚIE BANNER (DESIGN PROFESIONIST NOU)
   ========================================= */
.edu-banner-modern {
    background: var(--dusty-pale);
    padding: 80px;
    border-radius: 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border: 1px solid var(--dusty-border);
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-soft);
}

.edu-banner-modern::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -10%;
    width: 40%;
    height: 200%;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.05) 0%, transparent 100%);
    transform: rotate(25deg);
}

.edu-content {
    max-width: 600px;
    position: relative;
    z-index: 2;
}

.edu-label {
    color: var(--clear-blue);
    font-weight: 800;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 2px;
    margin-bottom: 15px;
}

.edu-content h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
    font-weight: 800;
}

.edu-content p {
    color: var(--text-muted);
    font-size: 1.1rem;
    margin-bottom: 35px;
}

.edu-visual-icon {
    font-size: 10rem;
    color: var(--clear-blue);
    opacity: 0.1;
    position: absolute;
    right: 50px;
    z-index: 1;
}

/* =========================================
   7. RESPONSIVE / MEDIA QUERIES
   ========================================= */

/* --- TABLETĂ & LAPTOP MIC (max 1024px) --- */
@media (max-width: 1024px) {
    .full-container {
        padding: 0 30px;
    }

    h1 {
        font-size: 3.5rem;
    }

    .grid-4,
    .grid-3 {
        grid-template-columns: repeat(2, 1fr);
    }

    .why-us-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-main-image {
        justify-content: center;
        margin-top: 40px;
    }

    .personal-photo-wrapper {
        margin: 0 auto 50px auto;
    }

    /* Centrare foto */

    .feature-list li {
        justify-content: center;
        text-align: left;
    }

    .edu-banner-modern {
        flex-direction: column;
        text-align: center;
        padding: 50px 30px;
    }

    .edu-visual-icon {
        position: relative;
        right: 0;
        font-size: 5rem;
        margin-top: 30px;
    }

    /* Footer pe 2 coloane */
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
}


/* =========================================
   8. UTILITY CLASSES & REFACTORED STYLES
   ========================================= */

.footer-brand {
    max-width: 450px;
    margin: 0;
}

.footer-logo-small {
    max-height: 50px;
    width: auto;
    margin-bottom: 10px;
}

.footer-col-right {
    text-align: right;
    min-width: 250px;
    margin: 0;
}

.footer-bottom-flex {
    border-top: 1px solid rgba(0, 0, 0, 0.05);
    margin-top: 30px;
    padding-top: 20px;
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
}

.social-links-footer {
    display: flex;
    gap: 15px;
}

.social-icon-circle {
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--white);
    color: var(--clear-pink);
    border-radius: 50%;
    text-decoration: none;
    transition: var(--transition);
    box-shadow: var(--shadow-soft);
}

.social-icon-circle:hover {
    transform: translateY(-5px);
    background: var(--gradient-brand);
    color: var(--white);
}

/* Stat & Recenzii Refactor */
.recenzii-badge-card {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-around;
    padding: 40px;
    gap: 30px;
    border-radius: 40px;
    background: var(--dusty-pale);
}

.stat-item-centered {
    text-align: center;
}

.progress-bar-container {
    width: 100%;
    background: rgba(0, 0, 0, 0.05);
    height: 8px;
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.progress-bar-fill {
    width: 100%;
    background: linear-gradient(90deg, #3b82f6, #7b2cbf);
    height: 100%;
    border-radius: 20px;
}

/* Thank You Card */
.thank-you-card {
    max-width: 600px;
    margin: 0 auto;
    padding: 50px 30px;
}

.download-btn {
    padding: 18px 40px;
    font-size: 1.1rem;
    background: var(--gradient-blue);
}

/* --- MOBIL (max 768px) --- */
@media (max-width: 768px) {

    /* NAVIGATIE MOBIL */
    nav {
        height: 80px;
    }

    /* Ascundem link-urile pe desktop, le arătăm când e meniul deschis */
    .nav-links {
        position: fixed;
        right: 0;
        top: 80px;
        /* sub navbar */
        height: calc(100vh - 80px);
        background: var(--white);
        flex-direction: column;
        align-items: center;
        justify-content: flex-start;
        padding-top: 60px;
        width: 100%;
        /* Full width */
        gap: 30px;
        transform: translateX(100%);
        transition: transform 0.4s ease-in-out;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
        z-index: 999;
    }

    /* Clasa care activează meniul (JS) */
    .nav-links.active {
        transform: translateX(0%);
    }

    .nav-links li {
        opacity: 0;
        width: 100%;
        text-align: center;
    }

    /* Animație simplă pentru linkuri când apare meniul */
    .nav-links.active li {
        animation: navLinkFade 0.5s ease forwards 0.3s;
        opacity: 1;
    }

    @keyframes navLinkFade {
        from {
            opacity: 0;
            transform: translateY(20px);
        }

        to {
            opacity: 1;
            transform: translateY(0);
        }
    }

    /* Stil buton burger */
    .burger {
        display: block;
        cursor: pointer;
    }

    .burger span {
        display: block;
        width: 25px;
        height: 3px;
        background-color: var(--text-dark);
        margin: 5px;
        transition: all 0.3s ease;
    }

    /* Animație X pentru burger */
    .burger.toggle span:nth-child(1) {
        transform: rotate(-45deg) translate(-5px, 6px);
    }

    .burger.toggle span:nth-child(2) {
        opacity: 0;
    }

    .burger.toggle span:nth-child(3) {
        transform: rotate(45deg) translate(-5px, -6px);
    }

    /* LAYOUT & SPACING */
    .section-container {
        padding: 60px 0;
    }

    h1 {
        font-size: 2.8rem;
    }

    .hero-content p {
        font-size: 1.1rem;
    }

    .grid-4,
    .grid-3,
    .grid-2 {
        grid-template-columns: 1fr;
    }

    /* Carduri recenzii - stack vertical */
    #recenzii .glass-card {
        flex-direction: column;
        text-align: center;
        width: 100%;
    }

    .stat-item {
        width: 100%;
        margin: 20px 0;
    }

    .recenzii-intro {
        text-align: center;
        margin-bottom: 20px;
    }

    .hero-btns {
        flex-direction: column;
        width: 100%;
    }

    .hero-btns .btn-p,
    .hero-btns .btn-s {
        width: 100%;
        text-align: center;
        justify-content: center;
    }

    .stat-cta {
        width: 100%;
        text-align: center;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 40px;
    }

    .footer-col {
        text-align: center !important;
    }

    .social-icons {
        justify-content: center !important;
    }

    .footer-bottom {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }

    .hero-main-image {
        width: 300px !important;
        height: 300px !important;
    }
}

/* Ascundem burgerul pe desktop (> 768px) */
@media (min-width: 769px) {
    .burger {
        display: none;
    }
}