@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;900&display=swap');

@media (max-width: 768px) {
    /* 1. Meniul și Navigația */
    nav {
        flex-direction: row !important;
        justify-content: space-between !important;
        align-items: center !important;
        padding: 5% 5% !important;
        top: 0 !important;
        left: 0 !important;
    }

    .nav-links {
        gap: 4vw !important; 
    }

    .nav-links a {
        font-size: 1rem !important; 
    }

    .GitHub-box img {
        width: 30px !important;
    }

    /* 2. Zona Hero de pe Home-Page (text + structură) */
    .home-page .hero {
        padding-top: 25vh !important; 
        display: flex !important;
        flex-direction: column !important;
        align-items: flex-start !important;
        height: 100vh !important;
        
    }

    .home-page .content {
        max-width: 90% !important;
        padding: 0 20px !important;
        box-sizing: border-box !important;
    }

    .content h1 {
        font-size: 2.5rem !important; /* Mărește textul WELCOME pe mobil */
        letter-spacing: -1px !important;
    }

    p {
        font-size: 1.2rem !important; /* Face descrierea lizibilă pe mobil */
        max-width: 100% !important;
        text-align: left !important;
    }

    /* 3. CONTROLUL VALURILOR (Aici se rezolvă problema din poză) */
    .home-page .Waves,
    .apps-page .Waves {
        height: auto !important; /* Forțează auto și pe mobil */
    }
    
    .bg-svg, .bg-svg2 {
        position: absolute;
        width: 250% !important;  /* O facem mai lată decât ecranul ca să o mărim */
        height: auto !important;
        
        /* CONTROLUL VIZUAL MANUAL: */
        bottom: 10px !important; /* O poți împinge în jos (valori negative) sau în sus ca să o tai cum vrei */
        left: 70% !important;     /* O poziționăm pe centru */
        transform: translateX(-50%) scale(1.2) !important; /* scale(1.2) o mărește cu 20% în plus */
        
        object-fit: contain !important;
    }
    .projects-grid,
    .websites-page .projects-grid,
    .apps-page .projects-grid {
        position: relative !important;
        z-index: 5 !important; /* Forțează tot grid-ul să stea PESTE valuri (5 > 1) */
        background-color: transparent !important; /* Face containerul transparent ca să vezi valurile în spate */
        margin-top: 15% !important; /* Ajustează spațiul de sus pe mobil ca să nu se suprapună cu titlul */
        padding: 20px 5% !important;
    }

    .project-card {
        width: 100% !important;
        background-color: #170030 !important; /* Cardul rămâne solid opac pentru ca textul să fie perfect lizibil */
        padding: 25px !important;
        box-sizing: border-box !important;
    }
    
}


body.home-page{

    margin: 0;
    padding: 0;
    font-family: 'Montserrat', sans-serif;
    background-color: #2D0B5A; 
    color: white;
    height: 100vh;
    overflow:hidden;
}

body.websites-page {
    margin: 0;
    padding: 0;
    font-family: 'Montserrat', sans-serif;
    background-color: #2D0B5A; 
    color: white;
    width: 100%;
    min-height: 100vh;
    overflow-x: hidden; 
}

body.apps-page{
    margin: 0;
    padding: 0;
    font-family: 'Montserrat', sans-serif;
    background-color: #2D0B5A; 
    color: white;
    width: 100%;
    min-height: 100vh;
    overflow-x: hidden;
}

.container{
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    width: 100%;
    position: relative;
}

nav {
    position: absolute;
    top: 3%;
    left: 3%;
    width: 100%;
    z-index: 10;
    display: flex;
    justify-content: space-between;
    padding: 2% 7%;
    box-sizing: border-box;
}

.nav-links {
    display: flex;
    gap: 7vw;
}

.nav-links a {
    color: white;
    text-decoration: none;
    font-size: 110%;
    font-weight: 400;
    opacity: 0.8;
    position: relative; 
   
    transition: opacity 0.3s;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: white;
    transition: width 0.3s ease;
}

.nav-links a:hover::after {
    width: 100%; 
}

.nav-links a:hover {
    opacity: 1;
}
.GitHub-box {
    display: flex;
    align-items: center;
}

.GitHub-box img {
    width: 4vw;
    min-width: 30px;
    height: auto;
    display: block; 
}

.home-page .hero{
    position: relative;
    margin: 0;
    width: 100%;
    height: 100vh;
    display: flex;
    align-items: flex-start; 
    padding-top: 22vh; 
    padding-left: 10%;
    box-sizing: border-box;
    overflow: hidden;
}

.home-page .Waves {
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 100%;
    z-index: 1; 
}


.apps-page .Waves {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100%; 
    z-index: 1;
    pointer-events: none;
}

.bg-svg {
    width: 100%;
    height: 100%;
    bottom:0;
    object-fit: cover;
    object-position: bottom; 
    opacity: 100%;
}

 .bg-svg2 {
    width: 100%;
    height: 100%;
    bottom:0;
    object-fit: cover;
    object-position: bottom; 
    opacity: 50%;
}

.lines-svg {
    position: absolute; 
    bottom: -1px;
    left: 0;
    width: 100%;
    min-width: 100vw;
    object-fit: cover;
    display: block;
}

.warn-svg {
    position: absolute; 
    bottom: -200px;
    left: 0;
    width: 100%;
    min-width: 100vw;
    z-index: 99;
    display: block;
    object-fit: cover;
}


.home-page .content {
    position: relative;
    z-index: 2;
    animation: growIn 1s ease-out forwards;
}

@keyframes growIn {
    from {
        transform: scale(0.8); 
        opacity: 0;          
    }
    to {
        transform: scale(1);   
        opacity: 1;     
    }
}

.content h1 {
    font-size: 5vw;
    font-weight: 510;
    margin: 0;
    letter-spacing: -2px;
}

p {
    font-size: 1.5vw;
    max-width: 400px;
    line-height: 1.5;
    opacity: 0.7;
    text-align: center;
}

.content-2{

    display: flex;
    justify-content: center; 
    align-items: center;    
    width: 100%;
    height: 50vh;         
    text-align: center;
    position: relative;
    z-index: 2;
}

.content-2 h1 {
    font-size: 5vw;
    font-family: 'Montserrat', sans-serif !important;
    font-weight: 510;
    letter-spacing: -2px;
    margin: 0;   
}

#lottie-animation {
    position: absolute;
    top: 95%;
    left: 80%;
    transform: translateX(-50%);
    width: 200px;
    height: auto;
    z-index: 1; 
    pointer-events: none; 
}

.admin-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 200px;
    padding: 50px;
    top: 5%;
    width: 100%;
    position: relative;
    z-index: 10;
}

.admin-card{
    width: 400px;            
    min-height: 500px;       
    background-color: #170030; 
    border-radius: 30px;     
    padding: 30px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}
.admin-card h2{
    color: white;
    text-align: center;
    font-family: 'Montserrat', sans-serif;
}

.admin-card h2 {
    font-size: 2vw;
    margin-bottom: 20px;
    font-weight: 900;
}

.form-group {
    margin-bottom: 20px;
    text-align: left; 
}

.form-group label {
    display: block;
    font-size: 0.9rem;
    margin-bottom: 8px;
    opacity: 0.8;
}


input[type="text"], textarea {
    width: 100%;
    background-color: #1F023F; 
    border: none;
    border-radius: 15px;
    padding: 12px 15px;
    color: white;
    font-family: 'Montserrat', sans-serif;
    box-sizing: border-box; 
    outline: none; 
    height: 50px;
}

textarea {
    height: 100px;
    resize: none; 
}

/* Butonul de Update */
.update-btn {
    display: block;
    width: 50%;
    background-color: #E086FF; 
    color: #170030;
    font-size: 100%;
    border: none;
    border-radius: 20px;
    padding: 12px;
    font-weight: 900;
    font-family: 'Montserrat';
    cursor: pointer;
    transition: 0.3s ease;
    margin-top: 40px;
    margin-left: auto;
    margin-right: auto;
}

.update-btn:hover {
    background-color: #f0b3ff;
    transform: translateY(-2px);
}

.projects-grid {
    display: flex;
    flex-direction: column;
    align-items: center;   
    gap: 60px;             
    margin-bottom: 100px;
    padding: 50px 10%;
    background-color: #2D0B5A;
    margin-top: 25%;
}

.apps-page .projects-grid {
    margin-top: 12%;
}


.project-card {
    width: 100%;            
    max-width: 1000px; 
    background-color: #170030;
    border-radius: 25px;
    padding: 40px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    flex-direction: column; 
    align-items:normal;
    gap: 25px;
    transition: transform 0.3s ease;
}


.project-card h3 {
    margin: 0 0 15px 0;
    font-size: 1.5rem;
    font-weight: 900;
}

.view-project-btn {
    display: inline-block;
    margin-top: 20px;
    color: #E086FF;
    text-decoration: none;
    font-weight: 900;
    border-bottom: 2px solid transparent;
    transition: 0.3s;
}

html, body {
    overflow-x: hidden; 
}

.figma-embed-container {
    margin-top: 20px;
    width: 100%;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

.figma-embed-container iframe {
    display: block;
    background: #1e1e1e; 
}

.project-info h3 {
    font-size: 2.5rem;
    margin-bottom: 30px; /* Am mărit spațiul între titlu și descriere */
    text-align: left;
}

.project-info p {
    font-size: 1.1rem;
    max-width: 100%;
    text-align: left;
    opacity: 0.8;
    line-height: 1.6;
    margin-bottom: 40px; /* Am mărit spațiul între descriere și buton */
}