/* ==========================================================================
   PORTFOLIO DESIGN SYSTEM (INSPIRADO EM ANA CLARA PEREIRA)
   ========================================================================== */
:root {
    /* Color Palette */
    --bg-dark: #030303;                  /* Jet Black */
    --bg-card: rgba(10, 10, 15, 0.4);    /* Transparent Dark Card */
    --bg-card-hover: rgba(16, 16, 24, 0.65);
    
    --border-color: rgba(255, 255, 255, 0.06);
    --border-color-hover: rgba(168, 85, 247, 0.35); /* Glowing Purple Border */
    
    --primary: #a855f7;                  /* Violet Accent */
    --primary-light: #c084fc;            /* Bright Violet */
    --primary-glow: rgba(168, 85, 247, 0.25);
    --secondary: #3b82f6;                /* Bright Blue */
    --secondary-glow: rgba(59, 130, 246, 0.2);
    
    --text-primary: #ffffff;             /* Pure White */
    --text-secondary: #9ca3af;           /* Slate Gray 400 */
    --text-muted: #6b7280;               /* Slate Gray 500 */
    
    /* Typography */
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;
    --font-code: 'JetBrains Mono', monospace;
    
    /* Transitions & Curves */
    --ease-normal: cubic-bezier(0.16, 1, 0.3, 1);
    --transition-fast: 0.2s var(--ease-normal);
    --transition-normal: 0.4s var(--ease-normal);
    --transition-slow: 0.8s var(--ease-normal);
}

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

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-secondary);
    font-family: var(--font-body);
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
}

/* Scrollbar styling */
::-webkit-scrollbar {
    width: 6px;
}
::-webkit-scrollbar-track {
    background: var(--bg-dark);
}
::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
}
::-webkit-scrollbar-thumb:hover {
    background: var(--primary);
}

/* General Link */
a {
    color: inherit;
    text-decoration: none;
    transition: var(--transition-fast);
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
    outline: 2px solid var(--primary-light);
    outline-offset: 4px;
}

/* ==========================================================================
   AURORA GLOW EFFECTS (BACKGROUNDS)
   ========================================================================== */
.aurora {
    position: fixed;
    border-radius: 50%;
    filter: blur(140px);
    z-index: -1;
    pointer-events: none;
    opacity: 0.35;
}

.aurora-1 {
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(124, 58, 237, 0.15) 0%, transparent 65%);
    top: -10%;
    right: -10%;
    animation: floatAurora 20s infinite alternate;
}

.aurora-2 {
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.12) 0%, transparent 65%);
    bottom: -10%;
    left: -10%;
    animation: floatAurora 25s infinite alternate-reverse;
}

.aurora-3 {
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(168, 85, 247, 0.1) 0%, transparent 65%);
    top: 40%;
    left: 20%;
}

@keyframes floatAurora {
    0% { transform: translate(0, 0) scale(1); }
    100% { transform: translate(60px, -60px) scale(1.1); }
}

/* ==========================================================================
   TYPOGRAPHY
   ========================================================================== */
h1, h2, h3, h4, h5, h6 {
    color: var(--text-primary);
    font-family: var(--font-heading);
    font-weight: 700;
}

/* ==========================================================================
   CONTAINERS & SECTIONS
   ========================================================================== */
.container {
    max-width: 1120px;
    margin: 0 auto;
    padding: 0 24px;
    position: relative;
    width: 100%;
}

section {
    padding: 90px 0;
    position: relative;
}

.section-header {
    margin-bottom: 50px;
}

.section-header.center {
    text-align: center;
}

.section-tag {
    font-family: var(--font-code);
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--primary-light);
    letter-spacing: 2px;
    display: inline-block;
    margin-bottom: 12px;
}

.section-title {
    font-size: clamp(2rem, 3.5vw, 2.5rem);
    font-weight: 800;
    letter-spacing: -0.5px;
}

.section-subtitle {
    color: var(--text-secondary);
    max-width: 580px;
    margin: 12px 0 0;
    font-size: 1.05rem;
}

.section-header.center .section-subtitle {
    margin-left: auto;
    margin-right: auto;
}

/* ==========================================================================
   GLASSMORPHISM REFERENCE CARD (V2)
   ========================================================================== */
.ref-card {
    background: var(--bg-card);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 30px;
    position: relative;
    overflow: hidden;
    transition: var(--transition-normal);
}

.ref-card:hover {
    border-color: var(--border-color-hover);
    background: var(--bg-card-hover);
    transform: translateY(-4px);
    box-shadow: 0 12px 30px 0 rgba(0, 0, 0, 0.4), 0 0 15px var(--primary-glow);
}

/* Subtle background accent card glow */
.card-glow {
    position: absolute;
    width: 120px;
    height: 120px;
    background: radial-gradient(circle, var(--primary-glow) 0%, transparent 70%);
    top: -60px;
    right: -60px;
    pointer-events: none;
    opacity: 0.5;
    transition: var(--transition-normal);
}

.ref-card:hover .card-glow {
    opacity: 1;
    transform: scale(1.2);
}

/* ==========================================================================
   BUTTONS (FULLY ROUNDED PILLS)
   ========================================================================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    border-radius: 9999px; /* Pill layout */
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    border: none;
    transition: var(--transition-normal);
}

.btn-sm {
    padding: 8px 16px;
    font-size: 0.82rem;
}

.btn-gradient {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    color: var(--text-primary);
    box-shadow: 0 4px 15px rgba(168, 85, 247, 0.3);
}

.btn-gradient:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(168, 85, 247, 0.5);
    filter: brightness(1.1);
}

.btn-ghost {
    background: rgba(255, 255, 255, 0.03);
    color: var(--text-primary);
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.btn-ghost:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: var(--text-primary);
    transform: translateY(-2px);
}

.btn-full {
    width: 100%;
}

.btn:disabled {
    cursor: not-allowed;
    opacity: 0.65;
    transform: none;
    filter: grayscale(0.2);
}

.btn-icon-svg {
    stroke-width: 2.5;
}

.btn-icon-svg-right {
    margin-left: 2px;
}

/* ==========================================================================
   NAVIGATION BAR
   ========================================================================== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    transition: var(--transition-normal);
    padding: 24px 0;
}

.navbar.scrolled {
    background: rgba(3, 3, 3, 0.75);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-color);
    padding: 14px 0;
}

.nav-container {
    max-width: 1120px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    display: flex;
    align-items: center;
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 1.3rem;
    letter-spacing: -0.5px;
}

.logo-text {
    color: var(--text-primary);
}

.logo-bracket {
    color: var(--primary-light);
    font-family: var(--font-code);
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 28px;
}

.nav-link {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-secondary);
    position: relative;
    padding: 6px 0;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--primary);
    transition: var(--transition-normal);
    transform: translateX(-50%);
}

.nav-link:hover, .nav-link.active {
    color: var(--text-primary);
}

.nav-link:hover::after, .nav-link.active::after {
    width: 100%;
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 16px;
}

.mobile-toggle {
    display: none;
    background: transparent;
    border: none;
    color: var(--text-primary);
    cursor: pointer;
    padding: 6px;
}

/* ==========================================================================
   1. HERO SECTION
   ========================================================================== */
.hero-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 140px;
    padding-bottom: 80px;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 40px;
    align-items: center;
}

.hero-content {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.badge-tag {
    background: rgba(168, 85, 247, 0.08);
    border: 1px solid rgba(168, 85, 247, 0.25);
    padding: 6px 14px;
    border-radius: 100px;
    font-family: var(--font-code);
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--primary-light);
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 24px;
}

.pulse-dot {
    width: 7px;
    height: 7px;
    background-color: #22c55e; /* Green */
    border-radius: 50%;
    display: inline-block;
    box-shadow: 0 0 10px rgba(34, 197, 94, 0.7);
    animation: pulseGreen 2s infinite;
}

@keyframes pulseGreen {
    0% { transform: scale(1); opacity: 1; box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.5); }
    70% { transform: scale(1.1); opacity: 0.8; box-shadow: 0 0 0 6px rgba(34, 197, 94, 0); }
    100% { transform: scale(1); opacity: 1; box-shadow: 0 0 0 0 rgba(34, 197, 94, 0); }
}

.hero-title {
    font-size: clamp(2.8rem, 5.5vw, 4.2rem);
    font-weight: 900;
    line-height: 1.05;
    margin-bottom: 14px;
    letter-spacing: -1.5px;
}

.hero-subtitle {
    font-size: clamp(1.2rem, 2vw, 1.6rem);
    font-weight: 500;
    color: var(--text-primary);
    margin-bottom: 24px;
}

.hero-description {
    font-size: 1.05rem;
    color: var(--text-secondary);
    margin-bottom: 32px;
    max-width: 560px;
    line-height: 1.7;
}

.hero-buttons {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}

.hero-social-links {
    display: flex;
    gap: 12px;
    margin-left: 8px;
}

.social-icon-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-secondary);
}

.social-icon-link:hover {
    color: var(--primary-light);
    border-color: var(--primary-light);
    background: rgba(168, 85, 247, 0.05);
    transform: translateY(-2px);
}

/* Asymmetrical Hero Avatar */
.hero-image-wrapper {
    display: flex;
    justify-content: center;
}

.avatar-container {
    position: relative;
    width: 270px;
    height: 270px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.avatar-border-glow {
    position: absolute;
    width: 102%;
    height: 102%;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    filter: blur(8px);
    z-index: -1;
    opacity: 0.7;
}

.avatar-image {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid var(--bg-dark);
}

.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    color: var(--text-muted);
}

.scroll-indicator:hover {
    color: var(--primary-light);
}

.bounce-arrow {
    width: 24px;
    height: 24px;
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
    40% { transform: translateY(-8px); }
    60% { transform: translateY(-4px); }
}

/* ==========================================================================
   2. SOBRE MIM SECTION
   ========================================================================== */
.about-grid {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 60px;
    align-items: flex-start;
}

.about-text .lead-text {
    font-size: 1.2rem;
    font-weight: 500;
    color: var(--text-primary);
    margin-bottom: 20px;
    line-height: 1.6;
}

.about-text p {
    margin-bottom: 18px;
    line-height: 1.7;
}

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

.stat-item {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    padding: 24px;
    border-radius: 12px;
    transition: var(--transition-normal);
}

.stat-item:hover {
    border-color: var(--border-color-hover);
    transform: translateX(4px);
}

.stat-number {
    display: block;
    font-size: 1.8rem;
    font-weight: 800;
    font-family: var(--font-code);
}

.gradient-accent-text {
    background: linear-gradient(135deg, var(--primary-light) 0%, var(--secondary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.stat-label {
    font-size: 0.8rem;
    text-transform: uppercase;
    color: var(--text-muted);
    letter-spacing: 1px;
    margin-top: 4px;
    display: block;
}

/* ==========================================================================
   3. SERVIÇOS (O QUE EU FAÇO)
   ========================================================================== */
.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.card-icon-box {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: 10px;
    background: rgba(168, 85, 247, 0.08);
    border: 1px solid rgba(168, 85, 247, 0.25);
    margin-bottom: 20px;
}

.ref-card h3 {
    font-size: 1.25rem;
    margin-bottom: 12px;
}

.ref-card p {
    font-size: 0.92rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* ==========================================================================
   4. STACK TECNOLÓGICA
   ========================================================================== */
.stack-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.stack-category {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 30px;
    transition: var(--transition-normal);
}

.stack-category:hover {
    border-color: var(--border-color-hover);
}

.stack-category h3 {
    font-size: 1.15rem;
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border-color);
}

.pills-container {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.stack-pill {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-color);
    padding: 6px 12px;
    border-radius: 100px;
    font-family: var(--font-code);
    font-size: 0.78rem;
    color: var(--text-secondary);
    transition: var(--transition-fast);
}

.stack-pill:hover {
    background: rgba(168, 85, 247, 0.08);
    border-color: var(--primary-light);
    color: var(--text-primary);
    transform: translateY(-1px);
}

/* ==========================================================================
   5. TIMELINES (CARREIRA & EDUCAÇÃO)
   ========================================================================== */
.timeline-grid-layout {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 50px;
}

.ref-timeline {
    position: relative;
    padding-left: 20px;
    margin-top: 30px;
}

.ref-timeline::before {
    content: '';
    position: absolute;
    top: 8px;
    left: 4px;
    width: 1px;
    height: 100%;
    background: rgba(255, 255, 255, 0.08);
}

.ref-timeline-item {
    position: relative;
    margin-bottom: 40px;
}

.ref-timeline-item:last-child {
    margin-bottom: 0;
}

.timeline-dot {
    position: absolute;
    left: -20px;
    top: 7px;
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: var(--bg-dark);
    border: 2px solid rgba(255, 255, 255, 0.2);
    transform: translateX(-50%);
    z-index: 2;
    transition: var(--transition-fast);
}

.timeline-dot-active {
    position: absolute;
    left: -20px;
    top: 7px;
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: var(--primary);
    transform: translateX(-50%);
    z-index: 2;
    box-shadow: 0 0 10px var(--primary);
    animation: pulseActiveDot 2s infinite;
}

@keyframes pulseActiveDot {
    0% { box-shadow: 0 0 0 0 rgba(168, 85, 247, 0.7); }
    70% { box-shadow: 0 0 0 6px rgba(168, 85, 247, 0); }
    100% { box-shadow: 0 0 0 0 rgba(168, 85, 247, 0); }
}

.ref-timeline-item:hover .timeline-dot {
    border-color: var(--primary);
}

.timeline-tag-date {
    font-family: var(--font-code);
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--primary-light);
    display: inline-block;
    margin-bottom: 8px;
}

.ref-timeline-item h3 {
    font-size: 1.2rem;
    margin-bottom: 2px;
}

.timeline-sub-company {
    font-size: 0.85rem;
    color: var(--text-muted);
    font-weight: 500;
    display: block;
    margin-bottom: 12px;
}

.timeline-desc {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.timeline-desc p {
    margin-bottom: 10px;
}

.timeline-desc ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.timeline-desc ul li {
    padding-left: 2px;
}

.timeline-status-badge {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-top: 12px;
    font-size: 0.82rem;
    font-weight: 500;
    color: var(--text-primary);
}

/* ==========================================================================
   6. PROJETOS
   ========================================================================== */
.flex-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 20px;
}

.projects-filter-bar {
    display: flex;
    gap: 8px;
}

.filter-btn {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-secondary);
    padding: 8px 16px;
    border-radius: 9999px;
    cursor: pointer;
    font-family: var(--font-body);
    font-size: 0.82rem;
    font-weight: 500;
    transition: var(--transition-normal);
}

.filter-btn:hover {
    border-color: var(--primary-light);
    color: var(--text-primary);
}

.filter-btn.active {
    background: var(--primary);
    color: var(--text-primary);
    border-color: var(--primary);
    box-shadow: 0 4px 12px rgba(168, 85, 247, 0.3);
}

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

.ref-project-card {
    background: var(--bg-card);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 30px;
    display: flex;
    flex-direction: column;
    height: 100%;
    transition: var(--transition-normal);
}

.ref-project-card:hover {
    border-color: var(--border-color-hover);
    background: var(--bg-card-hover);
    transform: translateY(-4px);
    box-shadow: 0 12px 30px 0 rgba(0, 0, 0, 0.4), 0 0 15px var(--primary-glow);
}

.project-header-box {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.project-num {
    font-family: var(--font-code);
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--text-muted);
}

.project-tag-cat {
    font-family: var(--font-code);
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--primary-light);
    padding: 4px 10px;
    background: rgba(168, 85, 247, 0.08);
    border: 1px solid rgba(168, 85, 247, 0.2);
    border-radius: 4px;
}

.ref-project-card h3 {
    font-size: 1.3rem;
    margin-bottom: 8px;
}

.project-short-desc {
    font-size: 0.95rem;
    color: var(--text-primary);
    margin-bottom: 16px;
    line-height: 1.5;
}

.project-bullet-details {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-bottom: 24px;
    font-size: 0.88rem;
    color: var(--text-secondary);
}

.project-bullet-details li {
    padding-left: 2px;
}

.project-footer-box {
    margin-top: auto; /* Push footer to bottom */
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 16px;
    padding-top: 16px;
    border-top: 1px solid var(--border-color);
}

.project-tech-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.project-tech-tags span {
    font-family: var(--font-code);
    font-size: 0.72rem;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-color);
    color: var(--text-muted);
    padding: 2px 8px;
    border-radius: 4px;
}

.project-action-links {
    display: flex;
    gap: 16px;
    flex-shrink: 0;
}

.project-link {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-primary);
}

.project-link:hover {
    color: var(--primary-light);
}

.project-link-internal svg {
    transform: rotate(135deg);
}

.project-link svg {
    margin-top: -1px;
}

/* Custom class hide for filters */
.ref-project-card.hide {
    display: none;
}

/* ==========================================================================
   7. CONTATO
   ========================================================================== */
.contact-grid {
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    gap: 40px;
}

.contact-info-panel {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.contact-card-item {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding: 24px;
}

.contact-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: 8px;
    background: rgba(168, 85, 247, 0.08);
    border: 1px solid rgba(168, 85, 247, 0.2);
    flex-shrink: 0;
}

.contact-card-content {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.contact-card-content .label {
    font-size: 0.78rem;
    text-transform: uppercase;
    color: var(--text-muted);
    letter-spacing: 1px;
    margin-bottom: 2px;
}

.contact-card-content .value {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
}

.contact-card-content .value:hover {
    color: var(--primary-light);
}

.copy-btn {
    background: transparent;
    border: none;
    color: var(--primary-light);
    cursor: pointer;
    font-size: 0.78rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    margin-top: 6px;
    width: fit-content;
}

.copy-btn:hover {
    color: var(--text-primary);
}

/* Contact form box */
.form-card-box {
    padding: 30px;
}

.contact-form-ref {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-row {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

.form-group-ref {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.botcheck-field {
    display: none;
}

.form-group-ref label {
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-primary);
}

.contact-form-ref input, .contact-form-ref textarea {
    width: 100%;
    padding: 12px 14px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-family: var(--font-body);
    font-size: 0.9rem;
    color: var(--text-primary);
    transition: var(--transition-fast);
}

.contact-form-ref textarea {
    resize: none;
}

.contact-form-ref input:focus, .contact-form-ref textarea:focus {
    outline: none;
    border-color: var(--primary-light);
    background: rgba(255, 255, 255, 0.04);
}

.form-feedback {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 10px;
    background: rgba(168, 85, 247, 0.08);
    border: 1px solid rgba(168, 85, 247, 0.2);
    border-radius: 8px;
    font-size: 0.85rem;
    color: var(--text-primary);
}

.form-feedback.success {
    background: rgba(34, 197, 94, 0.1);
    border-color: rgba(34, 197, 94, 0.28);
}

.form-feedback.error {
    background: rgba(248, 113, 113, 0.1);
    border-color: rgba(248, 113, 113, 0.28);
}

.form-feedback.hidden {
    display: none;
}

.form-feedback svg {
    margin-top: -1px;
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
.footer {
    border-top: 1px solid var(--border-color);
    padding: 40px 0;
    background: #020202;
}

.footer-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-copy {
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* ==========================================================================
   RESPONSIVE LAYOUT (MEDIA QUERIES)
   ========================================================================== */
@media (max-width: 992px) {
    section {
        padding: 70px 0;
    }
    
    .hero-grid {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 40px;
    }
    
    .hero-content {
        align-items: center;
    }
    
    .hero-image-wrapper {
        order: -1;
    }
    
    .about-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .stack-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .timeline-grid-layout {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .projects-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
}

@media (max-width: 768px) {
    .mobile-toggle {
        display: block;
        z-index: 2000;
    }
    
    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 280px;
        height: 100vh;
        background: rgba(3, 3, 3, 0.96);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        border-left: 1px solid var(--border-color);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 36px;
        z-index: 1500;
        transition: var(--transition-slow);
    }
    
    .nav-menu.open {
        right: 0;
    }
    
    .nav-link {
        font-size: 1.15rem;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .hero-buttons {
        flex-direction: column;
        width: 100%;
    }
    
    .hero-buttons .btn {
        width: 100%;
    }
    
    .hero-social-links {
        margin-left: 0;
        margin-top: 10px;
        justify-content: center;
        width: 100%;
    }
    
    .avatar-container {
        width: 220px;
        height: 220px;
    }
    
    .flex-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
    }
    
    .projects-filter-bar {
        width: 100%;
        overflow-x: auto;
        padding-bottom: 6px;
    }
}

/* ==========================================================================
   SCROLL REVEAL & TRANSITIONS (ANIMATIONS)
   ========================================================================== */
.scroll-reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.8s var(--ease-normal), 
                transform 0.8s var(--ease-normal);
}

.scroll-reveal.active {
    opacity: 1;
    transform: translateY(0);
}

.fade-in-up {
    opacity: 0;
    transform: translateY(24px);
    animation: fadeInUp 0.8s var(--ease-normal) forwards;
}

.delay-100 { animation-delay: 100ms; }
.delay-200 { animation-delay: 200ms; }
.delay-300 { animation-delay: 300ms; }

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

/* ==========================================================================
   CERTIFICATIONS SECTION
   ========================================================================== */
.certifications-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-top: 30px;
}

.cert-card {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 280px;
}

.cert-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 15px;
    width: 100%;
}

.cert-header .card-icon-box {
    margin-bottom: 0;
}

.cert-meta {
    text-align: right;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.cert-issuer {
    font-weight: 700;
    color: var(--text-primary);
    font-size: 0.95rem;
}

.cert-date {
    font-family: var(--font-code);
    font-size: 0.72rem;
    color: var(--primary-light);
}

.cert-title {
    font-size: 1.15rem !important;
    line-height: 1.4;
    margin-bottom: 12px;
    font-weight: 700;
}

.cert-details {
    margin-bottom: 15px;
    font-size: 0.85rem;
}

.cert-hours {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    color: var(--text-primary);
    font-weight: 600;
    margin-bottom: 8px;
    font-family: var(--font-code);
    font-size: 0.72rem;
    background: rgba(255, 255, 255, 0.03);
    padding: 2px 8px;
    border-radius: 4px;
    border: 1px solid var(--border-color);
}

.cert-hours svg {
    color: var(--primary-light);
}

.cert-topics {
    color: var(--text-secondary);
    font-size: 0.82rem;
    line-height: 1.5;
}

.cert-footer {
    border-top: 1px solid var(--border-color);
    padding-top: 10px;
    margin-top: auto;
}

.cert-id {
    font-family: var(--font-code);
    font-size: 0.68rem;
    color: var(--text-muted);
    word-break: break-all;
    display: block;
}

@media (max-width: 992px) {
    .certifications-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
}

@media (max-width: 768px) {
    .certifications-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
}

/* ==========================================================================
   PDF / PRINT EXPORT
   ========================================================================== */
@media print {
    @page {
        size: A4;
        margin: 14mm;
    }

    :root {
        --bg-dark: #ffffff;
        --bg-card: #ffffff;
        --bg-card-hover: #ffffff;
        --border-color: #d9dde7;
        --border-color-hover: #a855f7;
        --text-primary: #111827;
        --text-secondary: #374151;
        --text-muted: #6b7280;
    }

    * {
        animation: none !important;
        box-shadow: none !important;
        text-shadow: none !important;
        transition: none !important;
    }

    html,
    body {
        background: #ffffff !important;
        color: var(--text-secondary) !important;
        overflow: visible !important;
    }

    body {
        font-size: 10.5pt;
        line-height: 1.45;
    }

    .aurora,
    .navbar,
    .scroll-indicator,
    .hero-social-links,
    .projects-filter-bar,
    .contact-form-ref,
    .footer,
    .btn {
        display: none !important;
    }

    main,
    section,
    .container {
        width: 100% !important;
        max-width: none !important;
        padding: 0 !important;
        margin: 0 !important;
    }

    section {
        min-height: auto !important;
        page-break-inside: auto;
        padding-bottom: 9mm !important;
    }

    .hero-section {
        padding-top: 0 !important;
    }

    .hero-grid,
    .about-grid,
    .timeline-grid-layout,
    .contact-grid {
        display: grid !important;
        grid-template-columns: 1fr !important;
        gap: 6mm !important;
    }

    .hero-content,
    .scroll-reveal,
    .fade-in-up {
        opacity: 1 !important;
        transform: none !important;
    }

    .hero-title,
    .section-title {
        color: var(--text-primary) !important;
        line-height: 1.1;
    }

    .hero-title {
        font-size: 30pt;
    }

    .hero-subtitle {
        font-size: 16pt;
        color: var(--primary) !important;
    }

    .hero-description,
    .lead-text,
    p {
        color: var(--text-secondary) !important;
    }

    .avatar-container {
        width: 34mm !important;
        height: 34mm !important;
        margin: 0 !important;
    }

    .avatar-border-glow {
        display: none !important;
    }

    .avatar-image {
        border: 1px solid var(--border-color);
    }

    .ref-card,
    .ref-project-card,
    .cert-card,
    .stat-item,
    .contact-card-item,
    .timeline-card {
        background: #ffffff !important;
        border: 1px solid var(--border-color) !important;
        break-inside: avoid;
        page-break-inside: avoid;
    }

    .services-grid,
    .certifications-grid,
    .projects-grid,
    .stats-panel,
    .pills-container {
        break-inside: avoid;
        page-break-inside: avoid;
    }

    .badge-tag,
    .section-tag,
    .pill,
    .cert-hours {
        border: 1px solid var(--border-color) !important;
        background: #f7f8fb !important;
        color: var(--text-secondary) !important;
    }

    a {
        color: var(--text-primary) !important;
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        scroll-behavior: auto !important;
        transition-duration: 0.01ms !important;
    }

    .aurora,
    .bounce-arrow,
    .pulse-dot,
    .timeline-dot-active {
        animation: none !important;
    }

    .scroll-reveal,
    .fade-in-up {
        opacity: 1;
        transform: none;
    }
}
