/* ============================================
   STYLE.CSS — Global Tokens & Reset
============================================ */

@import url('https://fonts.googleapis.com/css2?family=Syne:wght@400;600;700;800&family=DM+Sans:ital,opsz,wght@0,9..40,300;0,9..40,400;0,9..40,500;0,9..40,600;1,9..40,300&display=swap');

/* ============================================
   DESIGN TOKENS
============================================ */
:root {
    --primary-color:      #64ffda;
    --secondary-color:    rgba(100, 255, 218, 0.1);
    --accent-purple:      #8b45ff;
    --accent-pink:        #ff6b6b;
    --accent-teal:        #4ecdc4;

    --text-color:         #e8e8f0;
    --text-muted:         #7070a0;
    --text-soft:          #a0a0b8;

    --background-color:   #050508;
    --surface:            #0d0d14;
    --card:               #111118;
    --border:             rgba(255, 255, 255, 0.07);

    --default-font-size:  16px;
    --font-display:       'Syne', sans-serif;
    --font-body:          'DM Sans', sans-serif;

    --radius:             12px;
    --radius-sm:          8px;
    --nav-h:              72px;

    --shadow-card:        0 8px 32px rgba(0, 0, 0, 0.35);
    --shadow-hover:       0 24px 50px rgba(0, 0, 0, 0.5);
    --shadow-glow:        0 12px 30px rgba(100, 255, 218, 0.2);
}

/* ============================================
   RESET
============================================ */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    background-color: var(--background-color);
    color: var(--text-color);
    font-family: var(--font-body);
    font-size: var(--default-font-size);
    line-height: 1.7;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.2s;
}

ul {
    list-style: none;
}

img {
    display: block;
    max-width: 100%;
    height: auto;
}

button {
    font-family: var(--font-body);
    cursor: pointer;
    border: none;
}

input, textarea {
    font-family: var(--font-body);
}

::selection {
    background: var(--primary-color);
    color: #000;
}

/* ============================================
   SCROLLBAR
============================================ */
::-webkit-scrollbar            { width: 4px; }
::-webkit-scrollbar-track      { background: var(--background-color); }
::-webkit-scrollbar-thumb      { background: var(--accent-purple); border-radius: 2px; }
::-webkit-scrollbar-thumb:hover{ background: var(--primary-color); }

/* ============================================
   SHARED PAGE WRAPPER
============================================ */
.pg {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding-top: calc(var(--nav-h) + 60px);
    padding-bottom: 60px;
    padding-left: 5vw;
    padding-right: 5vw;
}

.pg h1 {
    font-family: var(--font-display);
    font-size: 2.8rem;
    font-weight: 800;
    color: var(--text-color);
    text-align: center;
    margin-bottom: 12px;
    letter-spacing: -0.5px;
    line-height: 1.15;
}

.pg p {
    font-size: 1rem;
    color: var(--text-muted);
    text-align: center;
    line-height: 1.75;
    margin-bottom: 10px;
    max-width: 560px;
}

/* ============================================
   SECTION HEADER COMPONENTS
   (reusable across about, projects, contact)
============================================ */
.section-tag {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--primary-color);
    margin-bottom: 10px;
}
.section-tag::before {
    content: '';
    display: inline-block;
    width: 20px;
    height: 2px;
    background: var(--primary-color);
    border-radius: 1px;
}

.section-title {
    font-family: var(--font-display);
    font-size: clamp(1.8rem, 3vw, 2.6rem);
    font-weight: 800;
    letter-spacing: -0.5px;
    line-height: 1.15;
    color: var(--text-color);
    margin-bottom: 10px;
}

.section-desc {
    font-size: 1rem;
    color: var(--text-muted);
    max-width: 520px;
    line-height: 1.75;
    margin-bottom: 3rem;
}

/* ============================================
   SHARED CARD BASE
============================================ */
.card-base {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    transition: border-color 0.3s, transform 0.3s, box-shadow 0.3s;
}
.card-base:hover {
    border-color: rgba(100, 255, 218, 0.2);
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

/* ============================================
   SHARED CHIP / TAG
============================================ */
.chip {
    padding: 6px 14px;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 6px;
    font-size: 0.82rem;
    font-weight: 500;
    color: var(--text-color);
    transition: all 0.2s;
    cursor: default;
}
.chip:hover {
    border-color: rgba(100, 255, 218, 0.3);
    background: rgba(100, 255, 218, 0.05);
    color: var(--primary-color);
    transform: translateY(-2px);
}

/* ============================================
   REVEAL ANIMATION
   Add .reveal to any element,
   JS adds .visible when it enters viewport
============================================ */
.reveal {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }

/* ============================================
   UTILITY CLASSES
============================================ */
.text-accent   { color: var(--primary-color); }
.text-muted    { color: var(--text-muted); }
.text-soft     { color: var(--text-soft); }
.fw-700        { font-weight: 700; }
.fw-600        { font-weight: 600; }
.text-center   { text-align: center; }

.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }

.flex         { display: flex; }
.flex-center  { display: flex; align-items: center; justify-content: center; }
.flex-between { display: flex; align-items: center; justify-content: space-between; }
.flex-wrap    { flex-wrap: wrap; }
.gap-1        { gap: 0.5rem; }
.gap-2        { gap: 1rem; }
.gap-3        { gap: 1.5rem; }

/* ============================================
   DIVIDER
============================================ */
.divider {
    height: 1px;
    background: var(--border);
    margin: 0 5vw;
}