/* ════════════════════════════════════════════
   ANGELINA PORTFOLIO  |  style.css
   ════════════════════════════════════════════ */

/* ── TOKENS ─────────────────────────────────── */
:root {
    --bg:         #080b0f;
    --bg-2:       #0e1318;
    --bg-3:       #141a22;
    --surface:    rgba(255,255,255,0.04);
    --border:     rgba(0,247,255,0.12);
    --border-2:   rgba(255,255,255,0.07);

    --cyan:       #00f7ff;
    --cyan-dim:   rgba(0,247,255,0.15);
    --pink:       #ff2d78;
    --green:      #00ff88;
    --yellow:     #ffd60a;
    --text:       #e8eaf0;
    --text-muted: #8a93a6;

    --font-display: 'Syne', sans-serif;
    --font-mono:    'Space Mono', monospace;

    --radius:   16px;
    --radius-sm: 8px;
    --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --shadow-cyan: 0 0 40px rgba(0,247,255,0.12);
    --shadow-pink: 0 0 40px rgba(255,45,120,0.12);
}

/* ── RESET ───────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
    background: var(--bg);
    color: var(--text);
    font-family: var(--font-mono);
    font-size: 15px;
    line-height: 1.75;
    overflow-x: hidden;
}

a { text-decoration: none; color: inherit; }
img { display: block; }
p { color: var(--text-muted); }
strong { color: var(--text); }

/* ── SCROLLBAR ───────────────────────────────── */
::-webkit-scrollbar { width: 4px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--cyan); border-radius: 2px; }

/* ── BUTTONS ─────────────────────────────────── */
.btn {
    display: inline-block;
    padding: 11px 26px;
    border-radius: var(--radius-sm);
    font-family: var(--font-mono);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.04em;
    cursor: pointer;
    transition: var(--transition);
    white-space: nowrap;
}

.btn--primary {
    background: var(--cyan);
    color: #000;
    border: 2px solid var(--cyan);
}
.btn--primary:hover {
    background: transparent;
    color: var(--cyan);
    box-shadow: 0 0 20px var(--cyan-dim);
}

.btn--outline {
    background: transparent;
    color: var(--cyan);
    border: 1.5px solid var(--border);
}
.btn--outline:hover {
    border-color: var(--cyan);
    background: var(--cyan-dim);
}

/* ── NAVIGATION ──────────────────────────────── */
.nav {
    position: absolute;
    top: 0; left: 0; right: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 28px 60px;
    z-index: 10;
}

.nav__logo {
    font-family: var(--font-display);
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--cyan);
    letter-spacing: -0.02em;
}

.nav__links {
    list-style: none;
    display: flex;
    gap: 36px;
}

.nav__links a {
    font-size: 13px;
    font-weight: 700;
    color: var(--text-muted);
    letter-spacing: 0.08em;
    text-transform: uppercase;
    transition: color var(--transition);
}
.nav__links a:hover { color: var(--cyan); }

/* ── HERO ────────────────────────────────────── */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 120px 24px 60px;
    overflow: hidden;
    background: radial-gradient(ellipse 80% 60% at 50% 0%, rgba(0,247,255,0.06) 0%, transparent 70%),
                radial-gradient(ellipse 60% 50% at 80% 80%, rgba(255,45,120,0.05) 0%, transparent 60%),
                var(--bg);
}

/* Grain overlay */
.hero__noise {
    position: absolute;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.04'/%3E%3C/svg%3E");
    pointer-events: none;
    opacity: 0.5;
}

/* Grid lines subtle */
.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(0,247,255,0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0,247,255,0.03) 1px, transparent 1px);
    background-size: 60px 60px;
    pointer-events: none;
}

.hero__content {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 18px;
    z-index: 1;
}

.hero__img-wrap {
    position: relative;
    width: 180px;
    height: 180px;
    margin-bottom: 8px;
}

.hero__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    border: 3px solid var(--cyan);
    box-shadow: 0 0 40px rgba(0,247,255,0.3), 0 0 80px rgba(0,247,255,0.1);
    transition: transform var(--transition);
}
.hero__img:hover { transform: scale(1.04); }

.hero__img-ring {
    position: absolute;
    inset: -10px;
    border-radius: 50%;
    border: 1.5px dashed rgba(0,247,255,0.3);
    animation: spin 18s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

.hero__tag {
    font-size: 11px;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--cyan);
    font-weight: 700;
}

.hero__title {
    font-family: var(--font-display);
    font-size: clamp(3rem, 8vw, 5.5rem);
    font-weight: 800;
    line-height: 1.05;
    color: #fff;
    letter-spacing: -0.03em;
}

.hero__name {
    color: var(--cyan);
    text-shadow: 0 0 60px rgba(0,247,255,0.5);
}

.hero__sub {
    font-size: 15px;
    color: var(--text-muted);
    max-width: 360px;
}

/* ── TERMINAL ────────────────────────────────── */
.terminal {
    margin-top: 56px;
    width: min(680px, 92vw);
    background: #0d1117;
    border: 1px solid rgba(0,247,255,0.15);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: 0 0 40px rgba(255,45,120,0.08), 0 20px 60px rgba(0,0,0,0.4);
    z-index: 1;
}

.terminal__bar {
    background: #161b22;
    padding: 14px 18px;
    display: flex;
    align-items: center;
    gap: 8px;
    border-bottom: 1px solid rgba(255,255,255,0.06);
}

.terminal__title {
    margin-left: auto;
    margin-right: auto;
    font-size: 12px;
    color: var(--text-muted);
    letter-spacing: 0.04em;
}

.dot {
    width: 12px; height: 12px;
    border-radius: 50%;
    flex-shrink: 0;
}
.dot--red    { background: #ff5f57; }
.dot--yellow { background: #febc2e; }
.dot--green  { background: #28c840; }

.terminal__body {
    padding: 24px 28px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.terminal__body p {
    font-family: var(--font-mono);
    font-size: 13.5px;
    color: var(--green);
    margin: 0;
    opacity: 0;
    animation: fadeIn 0.4s forwards;
}

.prompt { color: var(--cyan); margin-right: 10px; }
.ok     { color: var(--green); }
.warn   { color: var(--yellow); }
.err    { color: var(--pink); }

.blink {
    animation: blink 1s step-end infinite;
    color: var(--green);
}
@keyframes blink { 50% { opacity: 0; } }
@keyframes fadeIn { to { opacity: 1; } }

.line--delay-1 { animation-delay: 0.3s; }
.line--delay-2 { animation-delay: 0.9s; }
.line--delay-3 { animation-delay: 1.5s; }
.line--delay-4 { animation-delay: 2.1s; }
.line--delay-5 { animation-delay: 2.7s; }

/* ── SECTIONS ────────────────────────────────── */
.section {
    padding: 100px 24px;
    opacity: 0;
    transform: translateY(36px);
    transition: opacity 0.65s ease, transform 0.65s ease;
}
.section.show {
    opacity: 1;
    transform: translateY(0);
}

.section__inner {
    max-width: 1000px;
    margin: 0 auto;
}

.section__title {
    font-family: var(--font-display);
    font-size: clamp(1.8rem, 4vw, 2.6rem);
    font-weight: 800;
    letter-spacing: -0.02em;
    color: #fff;
    margin-bottom: 48px;
    position: relative;
    display: inline-block;
}
.section__title::after {
    content: '';
    position: absolute;
    bottom: -10px; left: 0;
    width: 50%;
    height: 2px;
    background: linear-gradient(90deg, var(--cyan), transparent);
}

/* ── ABOUT ───────────────────────────────────── */
.about {
    background: linear-gradient(180deg, var(--bg) 0%, var(--bg-2) 100%);
}

.about__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: start;
}

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

.about__text p {
    font-size: 15px;
    line-height: 1.8;
}

.about__tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-content: flex-start;
}

.tag {
    display: inline-block;
    padding: 8px 16px;
    border-radius: 100px;
    font-family: var(--font-mono);
    font-size: 12px;
    font-weight: 700;
    background: var(--surface);
    border: 1px solid var(--border);
    color: var(--cyan);
    letter-spacing: 0.04em;
    transition: var(--transition);
}
.tag:hover {
    background: var(--cyan-dim);
    border-color: var(--cyan);
}

/* ── SKILLS ──────────────────────────────────── */
.skills {
    background: var(--bg-2);
}

.skills__grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.skill-card {
    background: var(--surface);
    border: 1px solid var(--border-2);
    border-radius: var(--radius);
    padding: 28px 24px;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.skill-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--cyan), var(--pink));
    opacity: 0;
    transition: opacity var(--transition);
}

.skill-card:hover {
    border-color: var(--border);
    box-shadow: var(--shadow-cyan);
    transform: translateY(-4px);
}
.skill-card:hover::before { opacity: 1; }

.skill-card__icon {
    font-size: 1.8rem;
    margin-bottom: 14px;
}

.skill-card h3 {
    font-family: var(--font-display);
    font-size: 0.95rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 10px;
    letter-spacing: 0.02em;
}

.skill-card p {
    font-size: 12.5px;
    line-height: 1.8;
    color: var(--text-muted);
}

/* ── PROJECTS ────────────────────────────────── */
.projects {
    background: var(--bg);
}

.projects__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.project-card {
    background: var(--surface);
    border: 1px solid var(--border-2);
    border-radius: var(--radius);
    padding: 28px;
    display: flex;
    flex-direction: column;
    gap: 14px;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.project-card::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: var(--radius);
    background: radial-gradient(circle at 80% 20%, rgba(0,247,255,0.05), transparent 60%);
    opacity: 0;
    transition: opacity var(--transition);
    pointer-events: none;
}


.project-card:hover {
    border-color: rgba(0,247,255,0.25);
    transform: translateY(-6px);
    box-shadow: var(--shadow-cyan);
}
.project-card:hover::after { opacity: 1; }

.project-card--featured {
    border-color: rgba(0,247,255,0.25);
    background: linear-gradient(135deg, rgba(0,247,255,0.05) 0%, var(--surface) 100%);
}
.project-card--featured::after {
    background: radial-gradient(circle at 80% 20%, rgba(0,247,255,0.09), transparent 60%);
    opacity: 1;
}

.project-card__badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 100px;
    font-size: 10.5px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    background: rgba(0,247,255,0.08);
    border: 1px solid rgba(0,247,255,0.2);
    color: var(--cyan);
    width: fit-content;
}

.project-card h3 {
    font-family: var(--font-display);
    font-size: 1.05rem;
    font-weight: 700;
    color: #fff;
    line-height: 1.3;
}

.project-card p {
    font-size: 13.5px;
    line-height: 1.75;
    flex: 1;
}

/* ── CONTACT ─────────────────────────────────── */
.contact {
    background: var(--bg-2);
}

.contact__sub {
    font-size: 15px;
    max-width: 500px;
    margin-bottom: 48px;
    line-height: 1.8;
}

.contact__links {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.contact-link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 16px 28px;
    border-radius: var(--radius);
    background: var(--surface);
    border: 1px solid var(--border-2);
    font-family: var(--font-mono);
    font-size: 13.5px;
    font-weight: 700;
    color: var(--text);
    transition: var(--transition);
}
.contact-link:hover {
    border-color: var(--cyan);
    color: var(--cyan);
    background: var(--cyan-dim);
    transform: translateY(-4px);
    box-shadow: var(--shadow-cyan);
}

.contact-link__icon { font-size: 1.2rem; }

/* ── FOOTER ──────────────────────────────────── */
.footer {
    padding: 36px 24px;
    text-align: center;
    border-top: 1px solid var(--border-2);
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.footer p {
    font-size: 13px;
    color: var(--text-muted);
}

/* ── RESPONSIVE ──────────────────────────────── */
@media (max-width: 900px) {
    .skills__grid { grid-template-columns: repeat(2, 1fr); }
    .projects__grid { grid-template-columns: repeat(2, 1fr); }
    .about__grid { grid-template-columns: 1fr; gap: 36px; }
}

@media (max-width: 768px) {
    .nav { padding: 24px 24px; }
    .nav__links { display: none; }

    .hero { padding: 100px 20px 50px; }
    .hero__img-wrap { width: 150px; height: 150px; }

    .section { padding: 70px 20px; }

    .projects__grid { grid-template-columns: 1fr; }
    .skills__grid { grid-template-columns: repeat(2, 1fr); }

    .contact__sub { margin-left: 0; text-align: left; }
    .section__title { font-size: 1.9rem; }
}

@media (max-width: 480px) {
    .skills__grid { grid-template-columns: 1fr; }
    .contact__links { flex-direction: column; }
    .contact-link { width: 100%; }
}
