/* ===========================================
   SKILLS CONTAINER (glass card)
   =========================================== */

#skills {
    position: relative;
}

#skills::before {
    content: '';
    position: absolute;
    top: 100px;
    left: -10%;
    width: 460px;
    height: 460px;
    background: radial-gradient(circle, rgba(244, 114, 182, 0.08) 0%, transparent 70%);
    z-index: 0;
    pointer-events: none;
}

#skills::after {
    content: '';
    position: absolute;
    bottom: 80px;
    right: -10%;
    width: 460px;
    height: 460px;
    background: radial-gradient(circle, rgba(56, 189, 248, 0.08) 0%, transparent 70%);
    z-index: 0;
    pointer-events: none;
}

#skills > * { position: relative; z-index: 1; }

.skills-container {
    font-family: 'Outfit', sans-serif;
    background-color: var(--bg-card);
    border: 1px solid var(--border-glass);
    border-radius: 24px;
    padding: 40px 44px;
    max-width: 1300px;
    margin: 0 auto;
    backdrop-filter: blur(10px);
    box-shadow: 0 20px 50px -10px rgba(0, 0, 0, 0.5);
    position: relative;
    overflow: hidden;
    text-align: left;
}

.skills-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--primary-color), var(--secondary-color), var(--accent-color), transparent);
    opacity: 0.45;
}

/* ===========================================
   ABOUT SECTION
   =========================================== */

#about {
    text-align: left;
}

#about h2 {
    display: block;
    margin: 0 auto 50px;
    text-align: center;
}

#about .about-card {
    background-color: var(--bg-card);
    border: 1px solid var(--border-glass);
    border-radius: 24px;
    padding: 50px;
    max-width: 1300px;
    margin: 0 auto;
    backdrop-filter: blur(10px);
    box-shadow: 0 20px 50px -10px rgba(0, 0, 0, 0.5);
    position: relative;
    overflow: hidden;
    text-align: left;
    transform-style: preserve-3d;
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

#about .about-card::before {
    content: '';
    position: absolute;
    top: -40%;
    right: -20%;
    width: 460px;
    height: 460px;
    background: radial-gradient(circle, rgba(129, 140, 248, 0.15) 0%, transparent 70%);
    z-index: 0;
    pointer-events: none;
}

#about .about-card::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -10%;
    width: 360px;
    height: 360px;
    background: radial-gradient(circle, rgba(244, 114, 182, 0.10) 0%, transparent 70%);
    z-index: 0;
    pointer-events: none;
}

.about-grid {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 320px 1fr;
    gap: 50px;
    align-items: start;
}

/* === Quick facts column === */
.about-facts {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.fact {
    display: flex;
    gap: 14px;
    align-items: flex-start;
    padding: 14px 16px;
    background: rgba(0, 0, 0, 0.22);
    border: 1px solid var(--border-glass);
    border-radius: 12px;
    transition: all 0.3s ease;
}

.fact:hover {
    border-color: rgba(56, 189, 248, 0.35);
    background: rgba(56, 189, 248, 0.05);
    transform: translateX(4px);
}

.fact-icon {
    font-size: 20px;
    line-height: 1;
    margin-top: 2px;
    flex-shrink: 0;
}

.fact-body {
    display: flex;
    flex-direction: column;
    gap: 3px;
    flex: 1;
    min-width: 0;
}

.fact-label {
    font-family: 'JetBrains Mono', monospace;
    font-size: 10.5px;
    text-transform: uppercase;
    letter-spacing: 1.6px;
    color: var(--text-secondary);
}

.fact-value {
    color: var(--text-primary);
    font-size: 14px;
    line-height: 1.5;
}

.fact-value sup {
    font-size: 10px;
    color: var(--primary-color);
}

.interest-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 10px;
}

.interest-tag {
    padding: 6px 12px;
    background: linear-gradient(135deg, rgba(56, 189, 248, 0.08), rgba(129, 140, 248, 0.08));
    border: 1px solid rgba(56, 189, 248, 0.22);
    border-radius: 6px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 12px;
    color: var(--primary-color);
    transition: all 0.3s ease;
    cursor: default;
}

.interest-tag:hover {
    border-color: var(--primary-color);
    box-shadow: 0 0 15px rgba(56, 189, 248, 0.3);
    transform: translateY(-2px);
    color: var(--text-light);
}

/* === Narrative column === */
.about-narrative {
    display: flex;
    flex-direction: column;
    gap: 22px;
}

.narrative-heading {
    font-family: 'JetBrains Mono', monospace;
    color: var(--primary-color);
    font-size: 18px;
    margin: 0 0 4px;
    text-align: left;
    border-left: none;
    padding-left: 0;
}

.story-step {
    position: relative;
    padding: 18px 0 18px 28px;
    border-left: 2px solid var(--border-glass);
    transition: opacity 0.7s ease, transform 0.7s ease, border-left-color 0.3s ease, background 0.3s ease;
    opacity: 0;
    transform: translateX(-20px);
}

.story-step.visible {
    opacity: 1;
    transform: translateX(0);
}

.story-step::before {
    content: '';
    position: absolute;
    left: -7px;
    top: 26px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--bg-dark);
    border: 2px solid var(--primary-color);
    transition: all 0.3s ease;
    box-sizing: border-box;
}

.story-step:hover {
    border-left-color: var(--primary-color);
    background: linear-gradient(90deg, rgba(56, 189, 248, 0.04), transparent 60%);
    padding-left: 32px;
}

.story-step:hover::before {
    background: var(--primary-color);
    box-shadow: 0 0 15px var(--primary-color);
}

.story-step[data-step="origin"]::before { border-color: var(--secondary-color); }
.story-step[data-step="origin"]:hover {
    border-left-color: var(--secondary-color);
    background: linear-gradient(90deg, rgba(129, 140, 248, 0.05), transparent 60%);
}
.story-step[data-step="origin"]:hover::before {
    background: var(--secondary-color);
    box-shadow: 0 0 15px var(--secondary-color);
}

.story-step[data-step="future"]::before { border-color: var(--accent-color); }
.story-step[data-step="future"]:hover {
    border-left-color: var(--accent-color);
    background: linear-gradient(90deg, rgba(244, 114, 182, 0.05), transparent 60%);
}
.story-step[data-step="future"]:hover::before {
    background: var(--accent-color);
    box-shadow: 0 0 15px var(--accent-color);
}

.step-tag {
    display: inline-block;
    font-family: 'JetBrains Mono', monospace;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 1.6px;
    color: var(--primary-color);
    padding: 3px 10px;
    border: 1px solid rgba(56, 189, 248, 0.3);
    border-radius: 4px;
    margin-bottom: 12px;
}

.story-step[data-step="origin"] .step-tag {
    color: var(--secondary-color);
    border-color: rgba(129, 140, 248, 0.3);
}

.story-step[data-step="future"] .step-tag {
    color: var(--accent-color);
    border-color: rgba(244, 114, 182, 0.3);
}

.story-step p {
    margin: 0;
    color: var(--text-secondary);
    line-height: 1.75;
    font-size: 1em;
}

.story-step strong {
    color: var(--text-primary);
    font-weight: 600;
}

/* === NOW band === */
.now-band {
    position: relative;
    z-index: 1;
    margin-top: 40px;
    padding: 18px 22px;
    border: 1px solid rgba(244, 114, 182, 0.28);
    border-radius: 12px;
    background: linear-gradient(90deg, rgba(244, 114, 182, 0.10), rgba(56, 189, 248, 0.05));
    display: flex;
    align-items: center;
    gap: 18px;
}

.now-pulse {
    width: 12px;
    height: 12px;
    flex-shrink: 0;
    border-radius: 50%;
    background: var(--accent-color);
    box-shadow: 0 0 14px var(--accent-color);
    animation: nowPulse 2s ease infinite;
}

.now-content p sup {
    font-size: 10px;
    color: var(--primary-color);
    vertical-align: super;
}

@keyframes nowPulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(244, 114, 182, 0.55), 0 0 14px var(--accent-color); }
    50%      { box-shadow: 0 0 0 12px rgba(244, 114, 182, 0),    0 0 14px var(--accent-color); }
}

.now-content {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.now-label {
    font-family: 'JetBrains Mono', monospace;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--accent-color);
    font-weight: 700;
}

.now-content p {
    margin: 0;
    color: var(--text-primary);
    font-size: 0.95em;
    line-height: 1.55;
}

.now-content p strong { color: var(--primary-color); }

/* === Responsive === */
@media (max-width: 900px) {
    .about-grid { grid-template-columns: 1fr; gap: 32px; }
    #about .about-card { padding: 36px 24px; }
}

@media (max-width: 768px) {
    .now-band { flex-direction: column; align-items: flex-start; }
}

/* ===========================================
   SKILLS SECTION (unchanged)
   =========================================== */

/* === Tab Navigation === */
.tab-buttons {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 40px;
    padding: 6px;
    background: rgba(0, 0, 0, 0.25);
    border: 1px solid var(--border-glass);
    border-radius: 12px;
}

.tab-button {
    background: transparent;
    border: 1px solid transparent;
    padding: 9px 16px;
    border-radius: 8px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 13px;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    text-transform: lowercase;
    letter-spacing: 0.3px;
}

.tab-button::after { display: none; }

.tab-button:hover {
    color: var(--text-primary);
    background: rgba(56, 189, 248, 0.06);
}

.tab-button.active {
    color: var(--text-light);
    background: linear-gradient(135deg, rgba(56, 189, 248, 0.18), rgba(129, 140, 248, 0.18));
    border-color: rgba(56, 189, 248, 0.45);
    box-shadow: 0 0 14px rgba(56, 189, 248, 0.18),
                inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.tab-content {
    display: none;
    animation: fadeIn 0.5s ease;
}

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

.tab-content.active { display: block; }

.skills-section {
    padding: 8px 4px;
}

.skills-section h3 {
    color: var(--text-primary);
    font-size: 17px;
    border-left: 3px solid var(--accent-color);
    padding-left: 14px;
    margin: 30px 0 18px;
    font-family: 'JetBrains Mono', monospace;
    text-align: left;
}

/* === Skill items === */
.skills {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    padding-left: 0;
}

.skill-item {
    display: inline-flex;
    align-items: center;
    border: 1px solid var(--border-glass);
    border-radius: 8px;
    padding: 9px 14px;
    font-size: 13.5px;
    background: rgba(255, 255, 255, 0.02);
    color: var(--text-secondary);
    transition: all 0.3s ease;
    line-height: 1.4;
}

.skill-item span {
    margin-right: 10px;
    color: var(--secondary-color);
    font-family: 'JetBrains Mono', monospace;
    font-size: 12px;
    font-weight: 600;
    padding-right: 10px;
    border-right: 1px solid var(--border-glass);
}

.skill-item:hover {
    border-color: var(--secondary-color);
    background: linear-gradient(135deg, rgba(129, 140, 248, 0.10), rgba(56, 189, 248, 0.05));
    color: var(--text-primary);
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(129, 140, 248, 0.18);
}

.skill-item:hover span {
    color: var(--primary-color);
}

/* === Language Rows === */
.languages {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 16px;
}

.language-row {
    display: flex;
    align-items: center;
    background-color: rgba(0, 0, 0, 0.25);
    border: 1px solid var(--border-glass);
    border-radius: 12px;
    padding: 14px 18px;
    transition: transform 0.3s ease, background 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.language-row:hover {
    background: linear-gradient(135deg, rgba(56, 189, 248, 0.06), rgba(129, 140, 248, 0.04));
    border-color: rgba(56, 189, 248, 0.3);
    transform: translateX(5px);
    box-shadow: 0 6px 20px rgba(56, 189, 248, 0.12);
}

.language-flag {
    width: 26px;
    height: 26px;
    margin-right: 14px;
    border-radius: 50%;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.4),
                0 0 0 1px var(--border-glass);
    flex-shrink: 0;
}

.language-name {
    font-weight: 600;
    color: var(--text-primary);
    margin-right: auto;
    font-size: 14px;
}

.level-gauge {
    display: inline-flex;
    gap: 4px;
}

.level-gauge .segment {
    width: 8px;
    height: 22px;
    border-radius: 2px;
    background: rgba(255, 255, 255, 0.08);
    transform: skewX(-20deg);
    transition: background 0.3s ease, box-shadow 0.3s ease;
}

.level-gauge .segment.filled {
    background: linear-gradient(180deg, var(--primary-color), var(--secondary-color));
    box-shadow: 0 0 8px rgba(56, 189, 248, 0.45);
}

.language-row:hover .level-gauge .segment.filled {
    box-shadow: 0 0 12px rgba(56, 189, 248, 0.7);
}

@media (max-width: 768px) {
    .skills-container { padding: 28px 20px; }
    .tab-buttons { gap: 4px; padding: 4px; }
    .tab-button { font-size: 11px; padding: 7px 10px; }
    .skill-item { font-size: 12.5px; padding: 8px 12px; }
    .skill-item span { font-size: 11px; }
}
