* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html{
    scroll-behavior: smooth;
}

body{
    background: #0f172a;
    color: #f8fafc;
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    overflow-x: hidden;
}

/*Bara de navigare*/
nav{
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 80px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 5%;
    background: rgba(15, 23, 42, 0.85);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    z-index: 1000;
}

.nav-logo{
    height: 67px;
    transition: all 0.3s ease;
}

.nav-logo:hover {
    filter: drop-shadow(0 0 10px #38bdf8); /* Glow albastru la hover */
}

nav ul {
    display: flex;
    list-style: none;
    gap: 2rem;
}

nav ul li a {
    color: #f8fafc;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
}

nav ul li a:hover {
    color: #38bdf8; /* Accentul albastru */
}

/*-----Hero Section*/
.hero{
    height: 100vh;
    display: flex;
    align-items: center;
    padding: 0 10%;

    background-image: linear-gradient(rgba(15, 23, 42, 0.85), rgba(15, 23, 42, 0.85)),
                    url("gifs/vibecoding.gif");
    background-size: cover;
    background-position: center;
    background-attachment: fixed;

    position: relative;
    overflow: hidden;
}

.hero-content{
    display: flex;
    flex-direction: row; /* aliniera orizontala */
    align-items: center;
    justify-content: space-between;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    gap: 100px;/*Spatiu intre poza si scris*/
}

.hero-text-content{
    flex: 1;
    text-align: left;
}

h1{
    font-size: 3.5rem;
    line-height: 1.2;
    color: #f8fafc;
}

h1 span{
    color: #38bdf8;
    display: block;
    white-space: nowrap;
}

.profile-wrapper{
    flex: 1;
    display: flex;
    justify-content: flex-end;
}

.profile-image{
    width: 450px;
    height: 450px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid #38bdf8;
    box-shadow: 0 0 50px rgba(56, 189, 248, 0.2);
}

/* =========================
   HERO BUTTONS & LAYOUT
   ========================= */

/* 1. Containerul pentru Text și Butoane */
.hero-text {
    flex: 1; /* Ocupă tot spațiul din stânga */
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start; /* Aliniem la stânga pe desktop */
    gap: 30px; /* Spațiu între Titlu și Butoane */
}

/* 2. Containerul Butoanelor */
.hero-buttons {
    display: flex;
    gap: 20px; /* Distanța dintre butoane */
    flex-wrap: wrap;
}

/* 3. Stilul General al Butonului */
.btn {
    padding: 14px 32px;
    border-radius: 50px; /* Formă de capsulă */
    font-size: 1rem;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 10px; /* Spațiu între iconiță și text */
    cursor: pointer;
    border: 2px solid transparent;
}

/* --- Butonul Principal (Download CV) --- */
.primary-btn {
    background-color: #38bdf8; /* Cyan */
    color: #0f172a; /* Text închis */
    box-shadow: 0 0 15px rgba(56, 189, 248, 0.4); /* Glow effect */
}

.primary-btn:hover {
    background-color: #0ea5e9;
    transform: translateY(-3px);
    box-shadow: 0 0 30px rgba(56, 189, 248, 0.6);
}

/* --- Butonul Secundar (Contact Me) --- */
.secondary-btn {
    background-color: transparent;
    color: #f8fafc;
    border-color: rgba(248, 250, 252, 0.3); /* Bordură fină albă */
}

.secondary-btn:hover {
    border-color: #38bdf8;
    color: #38bdf8;
    transform: translateY(-3px);
    background-color: rgba(56, 189, 248, 0.05);
}

/* --- ADAPTARE PENTRU MOBIL --- */
/* Trebuie să ne asigurăm că pe mobil butoanele sunt centrate */
@media (max-width: 900px) {
    .hero-text {
        align-items: center; /* Centrăm totul */
        text-align: center;
        width: 100%;
    }

    .hero-buttons {
        justify-content: center;
    }
}

/*ajustare pentru ecranele mici*/
@media(max-width: 1100px){
    .profile-wrapper{
        width: 350px;
        height: 350px;
    }

    h1{
        font-size: 2.8rem;
    }
}

/*3. About me*/
.about{
    padding: 100px 10%;
    background-color: #0f172a;
}

.section-about{
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: #38bdf8;
    font-weight: 800;
}

.about-grid{
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 50px;
    align-items: center;
}

.about-text p{
    font-size: 1.1rem;
    color: #94a3b8;
    margin-bottom: 1.5rem;
    line-height: 1.8;
}

.upt-link {
    color: #38bdf8;          /* Albastrul din logo-ul tau */
    text-decoration: none;   /* Scoatem sublinierea implicita */
    font-weight: 600;
    transition: all 0.3s ease;
    border-bottom: 1px solid transparent; /* Pregatim o sublinere custom */
}

.upt-link:hover {
    color: #f8fafc;          /* Se face alb la hover */
    border-bottom: 1px solid #38bdf8; /* Apare o linie fina cyan sub text */
    text-shadow: 0 0 8px rgba(56, 189, 248, 0.5); /* Efect de glow discret */
}

/*Evidentiem cuvintele cheie*/
.about-text span{
    color: #f8fafc;
    font-weight: 600;
    border-bottom: 1px solid #38bdf8;
}

.about-text strong{
    color: #fbbf24;
}

.about-stats{
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.stat-box{
    background: #1e293b;
    padding: 20px;
    border-radius: 12px;
    border-left: 4px solid #38bdf8;
    transition: transform 0.3s ease;
}

.stat-box:hover{
    transform: translateX(10px);
    background: #243397;
}

.stat-box h4 {
    color: #38bdf8;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 5px;
}

.stat-box p {
    color: #f8fafc;
    font-weight: 600;
}

@media (max-width: 900px) {
    .about-grid {
        grid-template-columns: 1fr;
    }

    .about-stats {
        flex-direction: row;
        flex-wrap: wrap;
    }
}

/*Logo -uri*/
.about-logos{
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 40px; /*distanta intre cele 2*/
    margin-top: 60px;
    padding-top: 40px;
    border-top: 1px solid rgba(56,189,248, 0.1);
}

.logo-item{
    background: white;
    padding: 10px 20px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 120px;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(0,0,0, 0.3);
    text-decoration: none;
}

.logo-item img{
    height: 100%;
    width: auto;
    max-width: 400px;
    object-fit: contain;
}

.logo-item:hover{
    cursor: pointer;
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 10px 25px rgba(56,189,248, 0.2);
}

@media (max-width: 600px) {
    .about-logos{
        flex-direction: column;
        gap: 20px;
    }
}

/*=================
    SKILLS SECTION
  =================*/
.skills{
    padding: 100px 0;
    background-image: linear-gradient(rgba(15, 23, 42, 0.85), rgba(15, 23, 42, 0.85)),
                url("gifs/skills.gif");
    background-size: cover;
    background-position: center;
    background-attachment: fixed;

    overflow: hidden;
    position: relative;
}

.skills .container{
    padding: 0 5%;/* Aliniem titlul, dar lăsăm benzile libere */
}

.skills-category{
    margin-bottom: 80px;
}

.category-title{
    font-size: 1.5rem;
    color: #f8fafc;
    margin-bottom: 30px;
    display: inline-block;
}

.blue-accent{
    color: #38bdf8;
}

.yellow-accent{
    color: #fbbf24;
}

/*Wrapper banda*/
.horizontal-scroll-wrapper{
    width: 100%;
    overflow: hidden;
    position: relative;
    mask-image: linear-gradient(to right, transparent, black 5%, black 95%, transparent);
    -webkit-mask-image: linear-gradient(to right, transparent, black 5%, black 95%, transparent);
}

.horizontal-scroll-track{
    display: flex;
    gap: 30px;
    width: max-content;
    flex-wrap: nowrap;
    padding-bottom: 20px;
}

.horizontal-scroll-track[data-animated="true"] {
    /* Pornim animația numită 'scroll' */
    animation: scroll var(--animation-duration, 40s) var(--animation-direction, normal) linear infinite;
}

.hard-track[data-animated="true"] {
    --animation-direction: normal;
    --animation-duration: 35s;
}

.soft-track[data-animated="true"] {
    --animation-direction: reverse;
    --animation-duration: 45s;
}

.horizontal-scroll-track:hover{
    animation-play-state: paused;
}

@keyframes scroll{
    to {
        transform: translate(calc(-50% - 15px));
    }
}

.skill-card{
    display: flex;
    align-items: center;
    gap: 15px;
    background: rgba(30, 41, 59, 0.6);
    padding: 15px 30px;
    border-radius: 50px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    white-space: nowrap;
    transition: all 0.3s ease;
    cursor: default;
    user-select: none;
}

.skill-card i{
    font-size: 1.5rem;
}

.skill-card span{
    font-size: 1.1rem;
    font-weight: 600;
    color: #f8fafc;
}

/* Culori specifice Hard (Albastru) */
.skill-card.hard{
    border-left: 3px solid #38bdf8;
}

.skill-card.hard:hover {
    background: rgba(56, 189, 248, 0.15);
    border-color: #38bdf8;
    box-shadow: 0 0 20px rgba(56, 189, 248, 0.3);
    transform: scale(1.05);
}

.skill-card.hard i {
    color: #38bdf8;
}

/* Culori specifice Soft (Galben) */
.skill-card.soft {
    border-left: 3px solid #fbbf24;
}

.skill-card.soft:hover {
    background: rgba(251, 191, 36, 0.15);
    border-color: #fbbf24;
    box-shadow: 0 0 20px rgba(251, 191, 36, 0.3);
    transform: scale(1.05);
}

.skill-card.soft i {
    color: #fbbf24;
}

/* =========================================
   PROJECTS SECTION (Complete)
   ========================================= */

/* 1. Setări Generale Secțiune */
.projects {
    padding: 100px 0;
    background-color: #0b1120; /* Fundal puțin mai închis pentru contrast */
    position: relative;
}

/* 2. Titlul Mare și Spațierea Containerului */
.projects .container {
    width: 85%;           /* Nu lăsăm conținutul să se lipească de margini */
    max-width: 1300px;    /* Limită maximă pe ecrane ultrawide */
    margin: 0 auto;       /* Centrare */
}

.projects .section-title {
    font-size: 3.5rem;    /* Titlu impunător */
    font-weight: 800;
    text-align: center;
    margin-bottom: 60px;
    color: #f8fafc;
    /* Opțional: Gradient discret pe text */
    background: linear-gradient(to right, #f8fafc, #38bdf8);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* 3. Grila de Proiecte (Grid System) */
.projects-grid {
    display: grid;
    gap: 30px;

    /* DEFAULT (Mobil): 1 coloană */
    grid-template-columns: 1fr;
}

/* TABLETĂ: 2 coloane */
@media (min-width: 700px) {
    .projects-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* DESKTOP: Fix 3 coloane */
@media (min-width: 1100px) {
    .projects-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* 4. Stilul Cardului (Simplu) */
.project-item {
    background: #1e293b;
    border-radius: 16px;
    overflow: hidden;
    cursor: pointer;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: all 0.3s ease;
    position: relative;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
}

.project-item:hover {
    transform: translateY(-10px); /* Se ridică la hover */
    box-shadow: 0 20px 40px rgba(56, 189, 248, 0.15); /* Glow albastru */
    border-color: #38bdf8;
}

/* Zona de imagine din card */
.project-thumb {
    height: 220px; /* Înălțime fixă pentru uniformitate */
    width: 100%;
    overflow: hidden;
}

.project-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Umple spațiul perfect */
    transition: transform 0.5s ease;
}

/* Zoom pe imagine la hover */
.project-item:hover .project-thumb img {
    transform: scale(1.1);
}

/* Titlul din card */
.project-info {
    padding: 20px;
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    background: #1e293b;
}

.project-info h3 {
    font-size: 1.25rem;
    color: #f8fafc;
    font-weight: 600;
    margin: 0;
}

/* 5. Fereastra Modală (Popup Detalii) */
.modal {
    display: none; /* Ascuns implicit */
    position: fixed;
    z-index: 9999; /* Peste tot site-ul */
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.85); /* Fundal întunecat transparent */
    backdrop-filter: blur(8px); /* Efect de ceață în spate */
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

/* Clasa 'show' adăugată de JS face fereastra vizibilă */
.modal.show {
    display: flex;
    opacity: 1;
}

.modal-content {
    background: #0f172a;
    width: 90%;
    max-width: 700px;
    border-radius: 20px;
    border: 1px solid #38bdf8;
    box-shadow: 0 0 50px rgba(56, 189, 248, 0.2);
    position: relative;
    overflow: hidden;
    transform: scale(0.8); /* Pornește mic */
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275); /* Efect de "bounciness" la deschidere */
    display: flex;
    flex-direction: column;
}

.modal.show .modal-content {
    transform: scale(1); /* Ajunge la mărimea normală */
}

/* Butonul X de închidere */
.close-modal {
    position: absolute;
    top: 15px;
    right: 20px;
    color: #fff;
    font-size: 2.5rem;
    font-weight: bold;
    cursor: pointer;
    z-index: 10;
    line-height: 1;
    transition: color 0.3s;
    background: rgba(0,0,0,0.5); /* Mic fundal ca să se vadă peste poză */
    width: 40px;
    height: 40px;
    border-radius: 50%;
    text-align: center;
}

.close-modal:hover {
    color: #38bdf8;
    background: rgba(255,255,255,0.1);
}

/* Imaginea Mare din Modal */
.modal-header {
    width: 100%;
    height: 300px;
}

.modal-header img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Conținutul text din Modal */
.modal-body {
    padding: 30px;
}

.modal-body h3 {
    font-size: 2rem;
    color: #f8fafc;
    margin-bottom: 15px;
    border-bottom: 1px solid rgba(56, 189, 248, 0.3);
    padding-bottom: 10px;
    display: inline-block;
}

.modal-body p {
    color: #cbd5e1;
    line-height: 1.7;
    margin-bottom: 25px;
    font-size: 1.05rem;
}

/* Tag-urile din Modal */
.project-tags {
    margin-bottom: 20px;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.tag-modal {
    background: rgba(56, 189, 248, 0.1);
    color: #38bdf8;
    padding: 6px 14px;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    border: 1px solid rgba(56, 189, 248, 0.2);
}

/* Butonul de GitHub din Modal */
.btn-code {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: #38bdf8;
    color: #0f172a;
    padding: 12px 25px;
    border-radius: 8px;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.3s ease;
}

.btn-code:hover {
    background: #0ea5e9;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(56, 189, 248, 0.4);
}

/* Media Query pentru Modal pe Mobil */
@media (max-width: 600px) {
    .modal-content {
        width: 95%;
        max-height: 90vh; /* Să nu iasă din ecran */
        overflow-y: auto; /* Scroll dacă e prea înalt */
    }
    .modal-header {
        height: 200px;
    }
    .projects .section-title {
        font-size: 2.5rem;
    }
}

/* =========================================
   GLOBAL SECTION TITLES (About, Skills, Projects)
   ========================================= */
.section-title {
    font-size: 3.5rem;       /* Foarte mare */
    font-weight: 800;        /* Gros */
    text-align: center;      /* Centrat pe mijloc */
    margin-bottom: 60px;     /* Spațiu dedesubt */
    color: #f8fafc;

    /* Efectul de gradient pe text (Opțional, dar arată super) */
    background: linear-gradient(to right, #f8fafc, #38bdf8);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: block;          /* Ne asigurăm că ocupă tot rândul */
    width: 100%;
}

/* Adaptare pentru mobil (să nu fie uriaș pe telefon) */
@media (max-width: 768px) {
    .section-title {
        font-size: 2.5rem;
        margin-bottom: 40px;
    }
}

/* =========================
   FIELD OF INTEREST (Infinite Scroll)
   ========================= */
.interests {
    padding: 100px 0;
    background-image: linear-gradient(rgba(15, 23, 42, 0.90), rgba(15, 23, 42, 0.90)),
                        url("images/laptop.png"); /* Sau numele altei imagini */

    background-size: cover;
    background-position: center;
    background-attachment: fixed; /* Efectul de parallax (imaginea stă fixă) */

    position: relative;
    overflow: hidden;
}

.interests-intro {
    text-align: center;
    color: #94a3b8;
    max-width: 700px;
    margin: -40px auto 60px auto;
    font-size: 1.1rem;
    line-height: 1.6;
    padding: 0 20px;
}

/* Configurarea animației specifice pentru Interese */
/* Viteza mai lentă (50s) pentru că utilizatorul trebuie să citească textul */
.interest-track[data-animated="true"] {
    --animation-direction: normal; /* Spre stânga */
    --animation-duration: 50s;     /* Mai lent ca să fie citibil */
}

/* Stilul Cardului */
.interest-card {
    background: rgba(30, 41, 59, 0.5);
    padding: 30px;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: all 0.3s ease;
    text-align: left;
    position: relative;
    overflow: hidden;

    /* IMPORTANT: Dimensiuni fixe ca să nu se strivească în carusel */
    width: 350px;       /* Lățime fixă */
    flex-shrink: 0;     /* Nu lăsăm flexbox să-l micșoreze */
    user-select: none;  /* Previne selectarea textului în timpul mișcării */
}

.interest-card:hover {
    transform: translateY(-10px);
    background: rgba(30, 41, 59, 0.8);
    border-color: #38bdf8;
    box-shadow: 0 10px 30px rgba(56, 189, 248, 0.1);
}

/* Iconița */
.icon-box {
    width: 60px;
    height: 60px;
    background: rgba(56, 189, 248, 0.1);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    transition: all 0.3s ease;
}

.icon-box i {
    font-size: 1.8rem;
    color: #38bdf8;
}

.interest-card:hover .icon-box {
    background: #38bdf8;
    transform: scale(1.1) rotate(5deg);
}

.interest-card:hover .icon-box i {
    color: #0f172a;
}

/* Textul */
.interest-card h3 {
    font-size: 1.4rem;
    color: #f8fafc;
    margin-bottom: 10px;
    font-weight: 700;
}

.interest-card p {
    color: #94a3b8;
    font-size: 0.95rem;
    line-height: 1.6;
    white-space: normal; /* Permitem textului să treacă pe rândul următor în interiorul cardului */
}

/* =========================
   CONTACT SECTION
   ========================= */
.contact {
    padding: 100px 0;
    background-color: #0b1120; /* Puțin mai închis pentru finalul paginii */
    position: relative;
    text-align: center;
}

.contact-intro {
    color: #94a3b8;
    max-width: 600px;
    margin: -40px auto 50px auto;
    font-size: 1.1rem;
    line-height: 1.6;
}

.contact-wrapper {
    max-width: 900px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 60px;
}

/* --- GRILA DE EMAIL-URI --- */
.email-grid {
    display: grid;
    /* Pe desktop sunt una lângă alta, pe mobil una sub alta */
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

/* Stilul Cardului de Contact */
.contact-card {
    background: #1e293b;
    padding: 30px;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    align-items: center;
    gap: 20px;
    text-decoration: none;
    transition: all 0.3s ease;
    text-align: left; /* Important: textul în card e aliniat la stânga */
}

.contact-card:hover {
    transform: translateY(-5px);
    border-color: #38bdf8;
    box-shadow: 0 10px 30px rgba(56, 189, 248, 0.15);
    background: rgba(30, 41, 59, 0.8);
}

/* Iconita din card */
.contact-card .icon-box {
    width: 50px;
    height: 50px;
    background: rgba(56, 189, 248, 0.1);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0; /* Nu lăsăm iconița să se micșoreze */
    margin: 0; /* Resetăm marginea de la secțiunile anterioare */
}

.contact-card .icon-box i {
    font-size: 1.5rem;
    color: #38bdf8;
    transition: color 0.3s ease;
}

.contact-card:hover .icon-box {
    background: #38bdf8;
}

.contact-card:hover .icon-box i {
    color: #0f172a;
}

/* Textul din card */
.card-info h4 {
    color: #f8fafc;
    font-size: 1.1rem;
    margin-bottom: 5px;
}

.card-info p {
    color: #94a3b8;
    font-size: 0.95rem;
    word-break: break-all; /* Dacă emailul e lung, îl rupe să nu iasă din ecran */
}


/* --- ZONA SOCIAL MEDIA --- */
.social-connect h3 {
    color: #f8fafc;
    font-size: 1.5rem;
    margin-bottom: 30px;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.social-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 30px;
    border-radius: 50px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 1.1rem;
    border: 1px solid transparent;
}

/* Buton LinkedIn */
.linkedin {
    background: rgba(10, 102, 194, 0.1);
    color: #0a66c2;
    border-color: rgba(10, 102, 194, 0.2);
}

.linkedin:hover {
    background: #0a66c2;
    color: white;
    box-shadow: 0 0 20px rgba(10, 102, 194, 0.4);
    transform: translateY(-3px);
}

/* Buton GitHub */
.github {
    background: rgba(255, 255, 255, 0.05);
    color: #f8fafc;
    border-color: rgba(255, 255, 255, 0.1);
}

.github:hover {
    background: #f8fafc;
    color: #0f172a;
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.2);
    transform: translateY(-3px);
}

footer {
    font-size: 16px;
    text-align: center;
    padding: 16px 0;
    margin-top: auto;
}

/* =========================================
   RESPONSIVE DESIGN (Mobile & Tablet)
   ========================================= */

/* --- 1. NAVIGARE (Hamburger Menu) --- */
/* Ascundem butonul hamburger pe desktop */
.hamburger {
    display: none;
    cursor: pointer;
}

.bar {
    display: block;
    width: 25px;
    height: 3px;
    margin: 5px auto;
    transition: all 0.3s ease-in-out;
    background-color: #f8fafc;
}

/* Reguli doar pentru Mobil (ecrane sub 768px) */
@media (max-width: 768px) {
    /* Afișăm hamburgerul */
    .hamburger {
        display: block;
    }

    /* Ascundem butonul X când meniul e închis */
    .hamburger.active .bar:nth-child(2) {
        opacity: 0;
    }
    .hamburger.active .bar:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }
    .hamburger.active .bar:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }

    /* Transformăm meniul într-un sertar lateral */
    .nav-links {
        position: fixed;
        left: -100%; /* Ascuns în stânga ecranului */
        top: 70px; /* Sub bara de logo */
        gap: 0;
        flex-direction: column;
        background-color: rgba(15, 23, 42, 0.95); /* Fundal aproape opac */
        backdrop-filter: blur(10px);
        width: 100%;
        text-align: center;
        transition: 0.3s;
        padding: 20px 0;
        border-bottom: 1px solid rgba(255,255,255,0.1);
        box-shadow: 0 10px 10px rgba(0,0,0,0.5);
    }

    .nav-links.active {
        left: 0; /* Apare pe ecran */
    }

    .nav-links li {
        margin: 16px 0;
    }
}

/* --- 2. HERO SECTION --- */
@media (max-width: 900px) {
    .hero {
        height: auto; /* Nu mai forțăm înălțimea fixă */
        padding: 150px 5% 100px 5%; /* Mai mult spațiu sus */
        text-align: center;
    }

    .hero-content {
        flex-direction: column-reverse; /* Poza sus, Textul jos (sau invers dacă vrei column) */
        gap: 50px;
    }

    .hero-text-content {
        text-align: center; /* Centrăm textul */
    }

    h1 {
        font-size: 2.5rem; /* Micșorăm titlul */
    }

    .profile-wrapper {
        justify-content: center;
        width: 100%;
        height: auto;
    }

    .profile-image {
        width: 280px; /* Poza mai mică pe telefon */
        height: 280px;
    }
}

/* --- 3. ABOUT SECTION --- */
@media (max-width: 768px) {
    .about {
        padding: 60px 5%;
    }

    .section-about {
        text-align: center;
    }

    .about-stats {
        width: 100%;
    }

    .logo-item img {
        max-width: 100%; /* Să nu iasă logourile din ecran */
    }
}

/* --- 4. INTERESTS SECTION --- */
@media (max-width: 600px) {
    /* Ajustăm cardurile din scroll să nu fie prea late pentru ecran */
    .interest-card {
        width: 85vw; /* 85% din lățimea ecranului telefonului */
        padding: 20px;
    }

    .interests-intro {
        font-size: 1rem;
    }
}

/* --- 5. CONTACT & FOOTER --- */
@media (max-width: 600px) {
    .contact-card {
        flex-direction: column; /* Iconita sus, text jos */
        text-align: center;
        padding: 20px;
    }

    .contact-card .icon-box {
        margin-bottom: 10px;
    }

    .email-grid {
        grid-template-columns: 1fr; /* O singură coloană */
    }

    .social-links {
        flex-direction: column; /* Butoanele unul sub altul */
    }

    .social-btn {
        width: 100%;
        justify-content: center;
    }
}