/* =========================================
   1. RESET & VARIABLES ("Solid Tech" Theme)
   ========================================= */
:root {
    /* -- PALETTE: CYBER-NOIR -- */
    --bg-void: #050505;
    /* Deepest Black */
    --bg-panel: #0A0A0A;
    /* Panel Background (Opaque) */
    --bg-grid: #111111;
    /* Grid Lines */

    --border-dim: #333333;
    /* Innactive Border */
    --border-bright: #555555;
    /* Hover Border */

    --accent-crimson: #ff2a2a;
    /* Electric Crimson (Primary) */
    --accent-glow: rgba(255, 42, 42, 0.4);

    --text-main: #F0F0F0;
    /* White Smoke */
    --text-muted: #888888;
    /* Muted Text */

    /* -- TYPOGRAPHY -- */
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;

    /* -- SPACING -- */
    --nav-height: 80px;
    --container-width: 1200px;
}

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

html {
    font-size: 16px;
    scroll-behavior: auto;
    /* Lenis handles scrolling */
}

body {
    background-color: var(--bg-void);
    color: var(--text-main);
    font-family: var(--font-body);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

/* Themed Scrollbar */
body::-webkit-scrollbar {
    width: 6px;
}

body::-webkit-scrollbar-track {
    background: var(--bg-void);
}

body::-webkit-scrollbar-thumb {
    background: var(--border-dim);
    border-radius: 3px;
}

body::-webkit-scrollbar-thumb:hover {
    background: var(--accent-crimson);
}

/* =========================================
   2. UTILITIES & BACKGROUNDS
   ========================================= */

/* Technical Grid Background */
.tech-grid-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -1;
    background-image:
        linear-gradient(var(--bg-grid) 1px, transparent 1px),
        linear-gradient(90deg, var(--bg-grid) 1px, transparent 1px);
    background-size: 50px 50px;
    opacity: 0.2;
    pointer-events: none;
}

/* Vignette Overlay for Depth */
.vignette {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -1;
    background: radial-gradient(circle at center, transparent 0%, var(--bg-void) 90%);
    pointer-events: none;
}

/* Typography Utils */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-main);
}

a {
    text-decoration: none;
    color: inherit;
    cursor: pointer;
}

.section-title {
    font-size: clamp(2rem, 5vw, 4rem);
    margin-bottom: 2rem;
    border-left: 4px solid var(--accent-crimson);
    padding-left: 1rem;
    line-height: 1;
}

/* =========================================
   3. COMPONENTS
   ========================================= */

/* Solid Panel (Card Base) */
.tech-panel {
    background: var(--bg-panel);
    border: 1px solid var(--border-dim);
    padding: 2rem;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.tech-panel:hover {
    border-color: var(--accent-crimson);
    box-shadow: 0 0 15px var(--accent-glow);
}

/* Button / Link Styling */
.btn-primary {
    display: inline-block;
    padding: 0.8em 2em;
    background: transparent;
    border: 1px solid var(--accent-crimson);
    color: var(--accent-crimson);
    font-family: var(--font-heading);
    font-weight: 600;
    text-transform: uppercase;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background: var(--accent-crimson);
    color: var(--bg-void);
    box-shadow: 0 0 20px var(--accent-glow);
}

/* =========================================
   4. LAYOUT STRUCTURE
   ========================================= */
main {
    padding-top: 100vh;
    /* Hero takes up first viewport */
    position: relative;
    z-index: 1;
}

section {
    padding: 6rem 1rem;
    max-width: var(--container-width);
    margin: 0 auto;
}


/* =========================================
   5. HERO SPECIFIC STYLES
   ========================================= */
.hero-section {
    width: 100vw;
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    position: absolute;
    /* Take over the flow */
    top: 0;
    left: 0;
    pointer-events: none;
    /* Let clicks pass through to nav if needed */
}

.hero-content {
    z-index: 2;
    padding: 0 1rem;
}

.hero-name {
    font-size: clamp(3rem, 10vw, 8rem);
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 1rem;
    text-shadow: 0 0 30px rgba(0, 0, 0, 0.5);
    /* GSAP will animate this */
}

.hero-quote-container {
    margin-bottom: 2rem;
    color: var(--text-muted);
    font-size: clamp(1rem, 2vw, 1.25rem);
    font-weight: 300;
}

.hero-quote {
    margin-bottom: 0.2rem;
}

.hero-role {
    font-family: var(--font-body);
    text-transform: uppercase;
    letter-spacing: 0.2em;
    font-size: 0.875rem;
    color: var(--accent-crimson);
    font-weight: 600;
}

/* =========================================
   6. SOLID DOCK NAV
   ========================================= */
.solid-dock {
    position: fixed;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    /* Centered */
    background: var(--bg-panel);
    border: 1px solid var(--border-dim);
    border-radius: 50px;
    /* Pill shape */
    padding: 1rem 2rem;
    display: flex;
    gap: 2rem;
    z-index: 100;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    pointer-events: auto;
    transition: width 0.3s ease, padding 0.3s ease;
    /* Will be animated by GSAP */
}

/* Mobile Nav Adjustments */
@media (max-width: 768px) {
    .solid-dock {
        bottom: 1rem;
        padding: 0.8rem 1.5rem;
        width: 90%;
        justify-content: center;
    }
}

/* =========================================
   7. TIMELINE COMPONENT
   ========================================= */
.timeline-container {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem 0;
}

.timeline-line {
    position: absolute;
    left: 20px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: var(--border-dim);
    z-index: 0;
}

.timeline-item {
    position: relative;
    padding-left: 60px;
    margin-bottom: 3rem;
    z-index: 1;
}

.timeline-dot {
    position: absolute;
    left: 11px;
    top: 25px;
    /* Align with title */
    width: 20px;
    height: 20px;
    background: var(--bg-void);
    border: 2px solid var(--accent-crimson);
    border-radius: 50%;
    transition: all 0.3s ease;
}

.timeline-item:hover .timeline-dot {
    background: var(--accent-crimson);
    box-shadow: 0 0 10px var(--accent-crimson);
}

.timeline-content h3 {
    margin-bottom: 0.5rem;
    color: var(--text-main);
}

.sub-text {
    font-size: 0.9rem;
    color: var(--accent-crimson);
    margin-bottom: 1rem;
    font-weight: 600;
}

.d-list {
    list-style: none;
}

.d-list li {
    position: relative;
    padding-left: 1.5rem;
    margin-bottom: 0.5rem;
    color: var(--text-muted);
}

.d-list li::before {
    content: ">";
    position: absolute;
    left: 0;
    color: var(--accent-crimson);
}

/* =========================================
   8. SKILLS GRID
   ========================================= */
.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

.skill-card h4 {
    margin-bottom: 1.5rem;
    border-bottom: 1px solid var(--border-dim);
    padding-bottom: 0.5rem;
    font-size: 1.25rem;
}

.tag-container {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
}

.tech-tag {
    font-family: var(--font-body);
    font-size: 0.85rem;
    padding: 0.4rem 0.8rem;
    border: 1px solid var(--border-dim);
    color: var(--text-muted);
    transition: all 0.2s ease;
}

.tech-tag:hover {
    border-color: var(--accent-crimson);
    color: var(--text-main);
    transform: translateY(-2px);
}

/* =========================================
   9. CONTACT GRID
   ========================================= */
.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
}

.contact-card {
    text-align: center;
    transition: transform 0.3s ease, border-color 0.3s ease;
}

.contact-card:hover {
    transform: translateY(-5px);
}

.contact-card h4 {
    font-size: 1rem;
    color: var(--text-muted);
    margin-bottom: 0.5rem;
}

.contact-card p {
    font-weight: 600;
}

.contact-card.highlight {
    border-color: var(--accent-crimson);
    background: rgba(255, 42, 42, 0.05);
}

/* DOCK ICONS */
.dock-item {
    color: var(--text-muted);
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.dock-icon {
    width: 24px;
    height: 24px;
}

.dock-item:hover,
.dock-item.active {
    color: var(--accent-crimson);
    transform: scale(1.2);
}

.scroll-indicator {
    position: absolute;
    bottom: 4rem;
    color: var(--text-muted);
    font-size: 0.8rem;
    letter-spacing: 0.2em;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    opacity: 0.5;
}


/* =========================================
   10. CERTIFICATES & MODAL
   ========================================= */
.cert-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
}

.cert-card {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.cert-card:hover {
    transform: translateY(-5px);
    border-color: var(--accent-crimson);
}

.cert-icon {
    width: 50px;
    height: 50px;
    background: var(--bg-void);
    border: 1px solid var(--border-dim);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    color: var(--accent-crimson);
    font-size: 1.2rem;
}

.cert-info h3 {
    font-size: 1.1rem;
    margin-bottom: 0.2rem;
}

.cert-info p {
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* Modal Styles */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(5px);
    z-index: 1000;
    display: none;
    justify-content: center;
    align-items: center;
    padding: 2rem;
}

.modal-content {
    width: 90%;
    max-width: 1000px;
    height: 85vh;
    background: var(--bg-panel);
    border: 1px solid var(--accent-crimson);
    position: relative;
    padding: 1rem;
}

.close-modal {
    position: absolute;
    top: -40px;
    right: 0;
    background: none;
    border: none;
    color: var(--text-main);
    font-size: 2rem;
    cursor: pointer;
}

#pdf-frame {
    border: none;
    background: white;
    /* PDF needs white background often */
}

/* Linked Tags */
.link-tag {
    cursor: pointer;
    text-decoration: none;
}

.link-tag:hover {
    background: var(--accent-crimson);
    color: var(--bg-void);
    border-color: var(--accent-crimson);
}

/* Scroll Indicator Animation */
.scroll-indicator {
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.scroll-indicator.hidden {
    opacity: 0;
    transform: translateY(20px);
    pointer-events: none;
}

/* =========================================
   11. ACTIVE PROJECTS
   ========================================= */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.project-card {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
}

.project-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--border-dim);
    padding-bottom: 1rem;
}

.status-badge {
    font-size: 0.75rem;
    padding: 0.3rem 0.6rem;
    border-radius: 4px;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.status-badge.beta {
    background: rgba(255, 165, 0, 0.1);
    color: orange;
    border: 1px solid orange;
}

.project-desc {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.7;
}

.project-stack {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: auto;
    /* Push to bottom if height varies */
}

.project-links {
    margin-top: 1rem;
}

.btn-primary.small {
    padding: 0.5em 1.2em;
    font-size: 0.85rem;
}