/*******************************************************
   Secțiunea About Me - CSS (V16: Spațiere Verticală H3 Mărită)
   ============================================================ */

/* --- Import Fonturi Google & Font Awesome --- */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:ital,wght@0,400;0,500;1,400&family=Outfit:wght@700;800&display=swap');
/* Optimizare font-display pentru CLS */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:ital,wght@0,400;0,500;1,400&family=Outfit:wght@700;800&display=swap');

/* --- Definire Variabile --- */
:root {
    --primary-bg: #0B0D17;
    --secondary-bg: #1A1C23;
    --accent-color: #7D4CDB;
    --accent-color-light: #9b78e3;
    --accent-color-rgb: 125, 76, 219;
    --text-color: #FFFFFF;
    --text-color-rgb: 255, 255, 255; /* Adăugat variabila */
    --font-family-heading: 'Outfit', sans-serif;
    --font-family-body: 'Montserrat', sans-serif;
    --container-max-width: 1200px;
    --border-radius-medium: 10px;
    --navbar-height: 60px;
    --transition-speed: 0.3s;
    --transition-speed-fast: 0.2s;
    --text-shadow-dark: rgba(0, 0, 0, 0.4);
    --quote-border-color: rgba(var(--accent-color-rgb), 0.4);
    --quote-border-color-hover: rgba(var(--accent-color-rgb), 0.7);
    --h3-icon-gap: 15px;
    --glow-color: rgba(125, 76, 219, 0.25);
}

.about-background-decor {
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    overflow: hidden;
}

.floating-lines {
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    overflow: hidden;
}

.line {
    position: absolute;
    width: 1px;
    height: 100vh;
    background: var(--accent-color);
    opacity: 0.05;
    animation: lineMove 20s linear infinite;
}

.line:nth-child(1) {
    left: 10%;
    animation-delay: 0s;
}

.line:nth-child(2) {
    left: 30%;
    animation-delay: 5s;
}

.line:nth-child(3) {
    left: 60%;
    animation-delay: 10s;
}

.line:nth-child(4) {
    left: 85%;
    animation-delay: 15s;
}

@keyframes lineMove {
    0% { transform: translateY(0); }
    100% { transform: translateY(-100%); }
}

.music-wave {
    position: absolute;
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: radial-gradient(circle at center, var(--accent-color-light) 0%, transparent 70%);
    animation: pulse 4s ease-in-out infinite;
    opacity: 0.07;
    pointer-events: none;
    z-index: 1;
}

.music-wave.wave-1 {
    top: 20%;
    left: 50%;
    animation-delay: 0s;
}

.music-wave.wave-2 {
    bottom: 25%;
    right: 25%;
    animation-delay: 2s;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); opacity: 0.05; }
    50% { transform: scale(1.6); opacity: 0.1; }
}

.about-grid-container,
.section-title {
    position: relative;
    z-index: 2;
}

.circle {
    position: absolute;
    border-radius: 50%;
    opacity: 0.08;
    animation: floatAnim 18s ease-in-out infinite;
}

.circle-1 {
    width: 250px;
    height: 250px;
    background: radial-gradient(circle, var(--accent-color), transparent);
    top: 20%;
    left: -100px;
    animation-delay: 0s;
}

.circle-2 {
    width: 180px;
    height: 180px;
    background: radial-gradient(circle, var(--accent-color-light), transparent);
    bottom: 15%;
    right: -80px;
    animation-delay: 4s;
}

.circle-3 {
    width: 140px;
    height: 140px;
    background: radial-gradient(circle, var(--accent-color), transparent);
    top: 55%;
    right: 30%;
    animation-delay: 7s;
}

@keyframes floatAnim {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-20px); }
    100% { transform: translateY(0px); }
}

#about {
    padding: 75px 20px;
    background-color: var(--primary-bg);
    color: var(--text-color);
    font-family: var(--font-family-body);
    overflow: hidden;
}

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(25px); }
    to { opacity: 1; transform: translateY(0); }
}

.section-title {
    text-align: center;
    margin-bottom: 55px;
    font-size: 2.7rem;
    letter-spacing: 0.5px;
    color: var(--text-color);
    font-family: var(--font-family-heading);
    font-weight: 800;
    opacity: 0;
    animation: fadeInUp 0.6s ease-out 0.2s forwards;
    cursor: default;
    text-shadow: 1px 1px 3px var(--text-shadow-dark);
    transition: color var(--transition-speed-fast) ease,
                text-shadow var(--transition-speed-fast) ease;
    position: relative;
    /* display: inline-block; */
    padding-bottom: 10px;
}

.section-title::after {
    content: '';
    position: absolute;
    width: 70%;
    height: 3px;
    background: linear-gradient(90deg, var(--accent-color-light) 0%, var(--accent-color) 100%);
    bottom: 0;
    left: 50%;
    border-radius: 3px;
    transform: translateX(-50%) scaleX(0);
    transform-origin: center;
    transition: transform var(--transition-speed) ease;
}

.section-title:hover {
    color: var(--text-color);
    text-shadow: 0 0 10px var(--accent-color);
}

.section-title:hover::after {
    transform: translateX(-50%) scaleX(1);
}


/* --- Coloana Stângă --- */
.about-grid-container {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 45px;
    max-width: var(--container-max-width, 1200px);
    margin: 0 auto;
    align-items: start;
}

.about-column-left {
    display: flex; flex-direction: column; align-items: center; gap: 25px;
    position: sticky; top: calc(var(--navbar-height, 60px) + 35px);
    opacity: 0; animation: fadeInUp 0.6s ease-out 0.4s forwards;
    min-height: 1px;
}
.about-me-image-wrapper img {
    display: block; width: 190px; height: 190px; aspect-ratio: 1 / 1; border-radius: 50%;
    object-fit: cover; border: none; box-shadow: 0 0 28px -8px var(--accent-color);
    transition: transform var(--transition-speed) ease, box-shadow var(--transition-speed) ease;
}
.about-me-image-wrapper img:hover { transform: scale(1.05); box-shadow: 0 0 38px 0px var(--accent-color); }

.intro-quote-wrapper {
    background-color: transparent;
    box-shadow: none;
    border-radius: var(--border-radius-medium, 10px);
    padding: 15px 20px;
    width: 100%;
    max-width: 310px;
    box-sizing: border-box;
    border: 1.5px solid var(--quote-border-color);
    transition: border-color var(--transition-speed-fast) ease;
}
.intro-quote-wrapper:hover { border-color: var(--quote-border-color-hover); }

.intro-quote-wrapper .intro-quote {
    font-style: italic; font-size: 0.92rem;
    color: rgba(var(--text-color-rgb, 255, 255, 255), 0.85);
    line-height: 1.62; text-align: center;
    margin: 0; padding: 0; border: none;
    font-family: var(--font-family-body), sans-serif; /* Modificat */
    font-weight: 400; /* Modificat */
}


/* --- Coloana Dreaptă --- */
.about-column-right.card-style {
    background-color: var(--secondary-bg);
    box-shadow: 0 7px 22px rgba(0, 0, 0, 0.25);
    border-radius: var(--border-radius-medium, 10px);
    padding: 35px; opacity: 0; animation: fadeInUp 0.6s ease-out 0.6s forwards;
}

.details-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    /* --- MODIFICAT: Mărit row-gap --- */
    gap: 40px 35px; /* 40px spațiu vertical, 35px orizontal */
}

.about-detail-item {
    margin-bottom: 0; /* Marginile sunt date de gap */
    border-left: 3px solid transparent;
    padding-left: 15px;
    transition: border-color var(--transition-speed-fast) ease,
                background-color var(--transition-speed) ease;
    border-radius: 0 5px 5px 0;
    background-color: transparent;
}
.about-detail-item:hover { border-left-color: var(--accent-color); background-color: rgba(var(--accent-color-rgb), 0.1); }

.about-column-right h3 {
    font-size: 1.5rem; letter-spacing: 0.3px; color: var(--accent-color);
    /* --- MODIFICAT: Mărit margin-bottom --- */
    margin-bottom: 0.8em; /* Spațiu mai mare sub H3 */
    font-family: var(--font-family-heading);
    font-weight: 700; position: relative; padding-bottom: 7px;
    display: grid; grid-template-columns: auto 1fr;
    align-items: center;
    gap: var(--h3-icon-gap, 15px);
    cursor: default; transition: color var(--transition-speed-fast) ease;
}

.about-column-right h3 i {
    color: var(--accent-color);
    font-size: 1em;
    text-align: center;
}

.about-column-right h3:hover { color: var(--accent-color-light); }

/* Am simplificat poziționarea liniei la left: 0 pentru robustețe */
.about-column-right h3::after {
    content: ''; position: absolute; bottom: 0;
    left: 0; /* Aliniat cu începutul H3 (inclusiv iconița) */
    width: 45px; height: 2.5px; background-color: var(--accent-color);
    border-radius: 2px;
    transition: width var(--transition-speed-fast) ease, background-color var(--transition-speed-fast) ease;
}
.about-column-right h3:hover::after { width: 65px; background-color: var(--accent-color-light); }

.about-column-right p {
    line-height: 1.68; font-size: 0.88rem;
    color: rgba(var(--text-color-rgb, 255, 255, 255), 0.85);
    font-family: var(--font-family-body); font-weight: 400;
}

/* --- Responsive Design --- */
@media (max-width: 1024px) {
    :root { --h3-icon-gap: 12px; }
    .about-grid-container { grid-template-columns: 1fr 1.8fr; gap: 35px; }
    .about-me-image-wrapper img { width: 170px; height: 170px; }
    .intro-quote-wrapper { max-width: 270px; padding: 15px 20px; }
    .intro-quote-wrapper .intro-quote { font-size: 0.88rem; }
    .details-grid {
        grid-template-columns: 1fr;
        gap: 35px; /* Mărit gap și aici */
    }
    .about-column-right h3 { font-size: 1.4rem; gap: var(--h3-icon-gap); margin-bottom: 0.7em; } /* Ajustat margin */
    .about-column-right p { font-size: 0.85rem; }
    .about-detail-item:hover { border-left-color: transparent; background-color: transparent; }
}
@media (max-width: 768px) {
     :root { --h3-icon-gap: 10px; }
    #about { padding: 60px 15px; }
    .section-title { font-size: 2.1rem; margin-bottom: 35px; text-shadow: 1px 1px 3px var(--text-shadow-dark); padding-bottom: 8px;}
    .section-title::after{ width: 50%; height: 2px;}
    .section-title:hover { color: var(--text-color); text-shadow: 0 0 8px var(--accent-color);}
    .section-title:hover::after { transform: translateX(-50%) scaleX(1); }

    .about-grid-container { grid-template-columns: 1fr; gap: 35px; }
    .about-column-left { position: static; order: 1; width: 100%; align-items: center; opacity: 1; animation: none; gap: 20px; min-height: 1px; }
    .about-me-image-wrapper img { width: 150px; height: 150px; aspect-ratio: 1 / 1; }
    .intro-quote-wrapper { max-width: 90%; padding: 15px; border-width: 1px; }
    .intro-quote-wrapper .intro-quote { font-size: 0.88rem; }
    .intro-quote-wrapper:hover { border-color: var(--quote-border-color); }

    .about-column-right.card-style { order: 2; padding: 30px 20px; opacity: 1; animation: none; }
    .details-grid { gap: 30px; } /* Mărit gap și aici */
    .about-column-right h3 { font-size: 1.4rem; display: grid; justify-content: flex-start; gap: var(--h3-icon-gap); margin-bottom: 0.7em; } /* Ajustat margin */
    .about-column-right h3:hover { color: var(--accent-color); }
    .about-column-right h3::after { left: 0; transform: translateX(0) scaleX(1); width: 45px; transform-origin: left; }
    .about-column-right h3:hover::after { width: 45px; background-color: var(--accent-color); }
    .about-column-right p { text-align: left; font-size: 0.88rem; }
}
.about-detail-item {
    margin-bottom: 1.5rem;
  }

  .intro-quote-wrapper {
    background-color: #1A1C23;
    color: white;
    padding: 1rem;
    border-radius: 8px;
    font-size: 1rem;
  }

  .about-me-image-wrapper img {
    aspect-ratio: 1 / 1;
    display: block;
  }

  .about-grid-container {
    min-height: 300px;
  }
  
/* === Extra Dynamic Elements for Visual Richness === */

.audio-lines {
  position: absolute;
  bottom: 12%;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 6px;
  z-index: 1;
}

.audio-lines .line {
  width: 4px;
  height: 30px;
  background: var(--accent-color-light);
  border-radius: 2px;
  animation: dance 1.2s infinite ease-in-out;
  opacity: 0.25;
}

.audio-lines .line:nth-child(2) { animation-delay: 0.1s; }
.audio-lines .line:nth-child(3) { animation-delay: 0.2s; }
.audio-lines .line:nth-child(4) { animation-delay: 0.3s; }
.audio-lines .line:nth-child(5) { animation-delay: 0.4s; }

@keyframes dance {
  0%, 100% { height: 20px; }
  50% { height: 60px; }
}
.vinyl-decor {
    position: absolute;
    width: 180px;
    height: 180px;
    border-radius: 50%;
    top: 30%;
    right: 3%;
    z-index: 1;
    animation: spin 18s linear infinite;
    transform: translateY(-50%) rotate(0deg);
    /* background-image: url('/assets/vinyl-texture-final.png'); */
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
    box-shadow:
      0 0 24px 6px rgba(230, 199, 105, 0.15),
      inset 0 0 80px rgba(0, 0, 0, 0.85),
      inset 0 0 8px #000;
    filter: brightness(1.25) contrast(1.35);
    opacity: 1;
}

/* Centrul auriu (etichetă vinyl recognoscibilă) */
.vinyl-decor .vinyl-center-label {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 40px;
    height: 40px;
    background: #e6c769;
    border-radius: 50%;
    transform: translate(-50%, -50%);
    z-index: 2;
    box-shadow:
        inset 0 0 4px rgba(0, 0, 0, 0.25),
        0 0 4px rgba(230, 199, 105, 0.15);
}

/* Gaura centrală */
.vinyl-decor .hole {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 6px;
    height: 6px;
    background: #000;
    border-radius: 50%;
    transform: translate(-50%, -50%);
    z-index: 3;
    box-shadow: 0 0 2px rgba(255,255,255,0.15);
}

/* Reflexie curbată */
.vinyl-decor::after {
    content: '';
    position: absolute;
    width: 50px;
    height: 50px;
    top: 20%;
    left: 55%;
    background: radial-gradient(circle at 30% 30%, rgba(255,255,255,0.08), transparent 70%);
    border-radius: 50%;
    transform: rotate(-15deg);
    z-index: 2;
    filter: blur(0.5px);
}

/* Braț pick-up stilizat */
.vinyl-decor .tonearm {
    position: absolute;
    width: 50px;
    height: 6px;
    background: #888;
    border-radius: 3px;
    top: 55%;
    left: 70%;
    transform: rotate(40deg);
    transform-origin: left center;
    box-shadow: 0 0 2px rgba(255, 255, 255, 0.15);
    z-index: 3;
}

@keyframes spin {
    from { transform: translateY(-50%) rotate(0deg); }
    to { transform: translateY(-50%) rotate(360deg); }
}

@media (max-width: 768px) {
    .vinyl-decor {
        top: 32%;
        right: -6%;
        width: 150px;
        height: 150px;
        opacity: 0.95;
    }

    .vinyl-decor .vinyl-center-label {
        width: 32px;
        height: 32px;
    }
}