@import url('https://fonts.googleapis.com/css2?family=DM+Mono:wght@400;500&family=Space+Grotesk:wght@400;500;600;700&display=swap');

/* ==========================================================================
   CSS Custom Properties & Reset
   ========================================================================== */
:root {
    --bg-primary: #0b0f19;
    --bg-secondary: #131a2b;
    --bg-tertiary: #1c253d;
    --accent: #10b981;
    --accent-glow: rgba(16, 185, 129, 0.15);
    --accent-hover: #34d399;
    --text-primary: #f8fafc;
    --text-secondary: #94a3b8;
    --text-muted: #64748b;
    --border: #1e293b;
    --focus-outline: #3b82f6;
    
    --font-sans: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    --font-mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
    
    --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-normal: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    
    --container-max-width: 1200px;
    --header-height: 70px;
}

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

html {
    scroll-behavior: smooth;
    font-family: var(--font-sans);
    background-color: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    font-size: 16px;
}

/* ==========================================================================
   Accessibility Utilities
   ========================================================================== */
.skip-link {
    position: absolute;
    top: -100px;
    left: 20px;
    background: var(--accent);
    color: var(--bg-primary);
    padding: 10px 20px;
    z-index: 9999;
    font-weight: 700;
    border-radius: 4px;
    transition: top var(--transition-fast);
    text-decoration: none;
}

.skip-link:focus {
    top: 20px;
    outline: 2px solid var(--focus-outline);
}

*:focus-visible {
    outline: 2px solid var(--focus-outline);
    outline-offset: 4px;
}

/* ==========================================================================
   Generic Components
   ========================================================================== */
.section-container {
    max-width: var(--container-max-width);
    margin: 0 auto;
    padding: 100px 24px;
}

.section-title {
    font-size: 2.2rem;
    font-weight: 800;
    margin-bottom: 8px;
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -6px;
    left: 0;
    width: 45px;
    height: 3px;
    background-color: var(--accent);
}

.section-subtitle {
    color: var(--text-secondary);
    font-size: 1.1rem;
    margin-bottom: 48px;
    max-width: 600px;
}

p {
    color: var(--text-secondary);
    margin-bottom: 16px;
}

p.paragraph-large {
    font-size: 1.2rem;
    color: var(--text-primary);
    line-height: 1.7;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 24px;
    font-size: 0.95rem;
    font-weight: 600;
    border-radius: 4px;
    text-decoration: none;
    cursor: pointer;
    transition: all var(--transition-fast);
    border: 2px solid transparent;
    text-align: center;
}

.btn-primary {
    background-color: var(--accent);
    color: var(--bg-primary);
}

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

.btn-secondary {
    background-color: var(--bg-tertiary);
    color: var(--text-primary);
    border-color: var(--border);
}

.btn-secondary:hover {
    background-color: var(--border);
    border-color: var(--text-muted);
}

.btn-outline {
    background-color: transparent;
    color: var(--accent);
    border-color: var(--accent);
}

.btn-outline:hover {
    background-color: var(--accent-glow);
    color: var(--accent-hover);
}

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

/* ==========================================================================
   Header & Navigation
   ========================================================================== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--header-height);
    background-color: rgba(11, 15, 25, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
    z-index: 1000;
    transition: background-color var(--transition-normal);
}

.nav-container {
    max-width: var(--container-max-width);
    margin: 0 auto;
    padding: 0 24px;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    font-family: var(--font-mono);
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-primary);
    text-decoration: none;
    letter-spacing: -0.5px;
}

.logo-accent {
    color: var(--accent);
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    width: 44px;
    height: 44px;
    padding: 10px;
    position: relative;
}

.hamburger {
    display: block;
    width: 24px;
    height: 2px;
    background-color: var(--text-primary);
    position: relative;
    transition: background-color var(--transition-fast);
}

.hamburger::before,
.hamburger::after {
    content: '';
    position: absolute;
    width: 24px;
    height: 2px;
    background-color: var(--text-primary);
    left: 0;
    transition: transform var(--transition-fast), top var(--transition-fast);
}

.hamburger::before {
    top: -6px;
}

.hamburger::after {
    top: 6px;
}

/* Hamburger animation on Active */
.menu-toggle[aria-expanded="true"] .hamburger {
    background-color: transparent;
}

.menu-toggle[aria-expanded="true"] .hamburger::before {
    transform: rotate(45deg);
    top: 0;
}

.menu-toggle[aria-expanded="true"] .hamburger::after {
    transform: rotate(-45deg);
    top: 0;
}

.nav-menu ul {
    list-style: none;
    display: flex;
    gap: 24px;
}

.nav-link {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    transition: color var(--transition-fast);
    padding: 8px 0;
    position: relative;
}

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

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--accent);
    transition: width var(--transition-fast);
}

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

/* ==========================================================================
   Hero Section
   ========================================================================== */
.hero-section {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding-top: var(--header-height);
    position: relative;
    overflow: hidden;
}

/* Simple engineering grid background pattern on hero */
.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-size: 40px 40px;
    background-image: linear-gradient(to right, rgba(30, 41, 59, 0.15) 1px, transparent 1px),
                      linear-gradient(to bottom, rgba(30, 41, 59, 0.15) 1px, transparent 1px);
    z-index: -1;
}

.hero-container {
    max-width: var(--container-max-width);
    margin: 0 auto;
    padding: 40px 24px;
    width: 100%;
}

.hero-sub {
    font-family: var(--font-mono);
    color: var(--accent);
    font-size: 1.1rem;
    margin-bottom: 12px;
    display: block;
}

.hero-title {
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 16px;
    letter-spacing: -1px;
}

.hero-tagline {
    font-size: clamp(1.25rem, 3vw, 2rem);
    color: var(--text-primary);
    font-weight: 600;
    margin-bottom: 24px;
}

.hero-desc {
    max-width: 650px;
    font-size: 1.15rem;
    color: var(--text-secondary);
    margin-bottom: 40px;
}

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

.scroll-down-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    animation: bounce 2s infinite;
    z-index: 5;
}

.scroll-down-indicator a {
    color: var(--text-muted);
    transition: color var(--transition-fast);
}

.scroll-down-indicator a:hover {
    color: var(--accent);
}

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

/* ==========================================================================
   About Section
   ========================================================================== */
.about-section {
    background-color: var(--bg-secondary);
}

.about-grid {
    display: grid;
    gap: 40px;
}

.about-info p {
    margin-bottom: 24px;
    text-align: justify;
}

.about-metadata {
    margin-top: 32px;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 16px;
    border-top: 1px solid var(--border);
    padding-top: 24px;
}

.meta-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.meta-label {
    font-family: var(--font-mono);
    color: var(--text-muted);
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.meta-value {
    color: var(--text-primary);
    font-weight: 500;
}

/* ==========================================================================
   Skills Section
   ========================================================================== */
.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 24px;
}

.skill-card {
    background-color: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: 6px;
    padding: 24px;
    transition: transform var(--transition-fast), border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.skill-card:hover {
    transform: translateY(-4px);
    border-color: var(--accent);
    box-shadow: 0 4px 20px rgba(16, 185, 129, 0.05);
}

.skill-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
    border-bottom: 1px solid var(--border);
    padding-bottom: 12px;
}

.skill-icon {
    color: var(--accent);
    width: 28px;
    height: 28px;
    flex-shrink: 0;
}

.skill-title {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--text-primary);
}

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

.skill-list li {
    font-family: var(--font-mono);
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: 10px;
    padding-left: 16px;
    position: relative;
}

.skill-list li::before {
    content: '▪';
    color: var(--accent);
    position: absolute;
    left: 0;
    top: -2px;
}

/* ==========================================================================
   Projects Section
   ========================================================================== */
.projects-section {
    background-color: var(--bg-secondary);
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 30px;
}

.project-card {
    background-color: var(--bg-primary);
    border: 1px solid var(--border);
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    overflow: hidden;
    transition: transform var(--transition-fast), border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.project-card:hover {
    transform: translateY(-6px);
    border-color: var(--accent);
    box-shadow: 0 8px 30px rgba(16, 185, 129, 0.08);
}

.project-content {
    padding: 28px;
}

.project-meta {
    font-family: var(--font-mono);
    font-size: 0.8rem;
    color: var(--accent);
    margin-bottom: 12px;
    display: block;
    font-weight: 600;
}

.project-title {
    font-size: 1.35rem;
    font-weight: 700;
    margin-bottom: 12px;
    line-height: 1.3;
}

.project-summary {
    font-size: 0.95rem;
    color: var(--text-secondary);
    margin-bottom: 20px;
}

.project-tech-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 20px;
}

.tech-tag {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    background-color: var(--bg-secondary);
    color: var(--text-secondary);
    padding: 4px 10px;
    border-radius: 4px;
    border: 1px solid var(--border);
}

.project-concepts {
    font-size: 0.85rem;
    border-top: 1px solid var(--border);
    padding-top: 16px;
    color: var(--text-secondary);
}

.project-concepts strong {
    color: var(--text-primary);
    display: block;
    margin-bottom: 6px;
}

.project-concepts ul {
    list-style: none;
}

.project-concepts li {
    position: relative;
    padding-left: 14px;
    margin-bottom: 4px;
}

.project-concepts li::before {
    content: '→';
    color: var(--accent);
    position: absolute;
    left: 0;
}

.project-footer {
    padding: 0 28px 28px 28px;
}

.project-footer .btn {
    width: 100%;
}

/* ==========================================================================
   Education & Timeline
   ========================================================================== */
.timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
    padding-left: 30px;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 0;
    top: 5px;
    width: 2px;
    height: 98%;
    background-color: var(--border);
}

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

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

.timeline-dot {
    position: absolute;
    left: -35px;
    top: 6px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: var(--bg-primary);
    border: 3px solid var(--accent);
    z-index: 1;
}

.timeline-content {
    background-color: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: 6px;
    padding: 24px;
}

.timeline-date {
    font-family: var(--font-mono);
    font-size: 0.9rem;
    color: var(--accent);
    font-weight: 600;
    margin-bottom: 8px;
    display: block;
}

.timeline-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 6px;
}

.timeline-institution {
    font-size: 0.95rem;
    color: var(--text-primary);
    font-weight: 500;
    margin-bottom: 12px;
}

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

.timeline-grade strong {
    color: var(--text-primary);
}

.timeline-details {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: 0;
}

/* ==========================================================================
   Achievements Section
   ========================================================================== */
.achievements-section {
    background-color: var(--bg-secondary);
}

.achievements-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 24px;
}

.achievement-card {
    background-color: var(--bg-primary);
    border: 1px solid var(--border);
    border-radius: 6px;
    padding: 24px;
    display: flex;
    gap: 16px;
    transition: border-color var(--transition-fast);
}

.achievement-card:hover {
    border-color: var(--accent);
}

.achievement-badge {
    color: var(--accent);
    width: 32px;
    height: 32px;
    flex-shrink: 0;
}

.achievement-title {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 8px;
}

.achievement-content p {
    font-size: 0.9rem;
    margin-bottom: 0;
}

/* ==========================================================================
   Club Activities & Languages
   ========================================================================== */
.activities-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 24px;
}

.activity-card,
.languages-card {
    background-color: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: 6px;
    padding: 28px;
}

.activity-title {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 4px;
    color: var(--text-primary);
}

.activity-subtitle {
    font-family: var(--font-mono);
    color: var(--accent);
    font-size: 0.85rem;
    margin-bottom: 16px;
}

.activity-card p {
    font-size: 0.95rem;
    margin-bottom: 0;
}

.lang-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 16px;
}

.lang-tag {
    font-family: var(--font-mono);
    background-color: var(--bg-primary);
    color: var(--text-primary);
    padding: 6px 14px;
    border-radius: 4px;
    border: 1px solid var(--border);
    font-size: 0.9rem;
    font-weight: 500;
}

/* ==========================================================================
   "How I Built This" Architecture Documentation
   ========================================================================== */
.arch-card {
    background-color: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 40px;
}

.arch-card h3 {
    font-size: 1.4rem;
    margin-bottom: 12px;
}

.flow-diagram-container {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px 14px;
    background-color: var(--bg-primary);
    border: 1px solid var(--border);
    border-radius: 6px;
    padding: 20px;
    margin: 24px 0;
    font-family: var(--font-mono);
    font-size: 0.85rem;
}

.flow-step {
    display: flex;
    align-items: center;
    gap: 12px;
}

.step-lbl {
    background-color: var(--bg-tertiary);
    border: 1px solid var(--border);
    color: var(--accent);
    padding: 6px 12px;
    border-radius: 4px;
    white-space: nowrap;
}

.step-arr {
    color: var(--text-muted);
}

.arch-qna {
    margin-top: 32px;
}

.arch-qna h4 {
    font-size: 1.1rem;
    margin-bottom: 8px;
    color: var(--text-primary);
}

.arch-qna p {
    font-size: 0.95rem;
    margin-bottom: 24px;
}

.arch-qna p:last-child {
    margin-bottom: 0;
}

/* ==========================================================================
   Contact Section
   ========================================================================== */
.contact-section {
    background-color: var(--bg-secondary);
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.contact-method {
    display: flex;
    gap: 16px;
}

.method-icon {
    color: var(--accent);
    width: 36px;
    height: 36px;
    flex-shrink: 0;
}

.contact-method h3 {
    font-size: 1.1rem;
    margin-bottom: 4px;
    color: var(--text-primary);
}

.contact-link {
    color: var(--accent);
    text-decoration: none;
    font-size: 1.15rem;
    font-weight: 600;
    transition: color var(--transition-fast);
}

.contact-link:hover {
    color: var(--accent-hover);
    text-decoration: underline;
}

.contact-profiles h3 {
    font-size: 1.3rem;
    margin-bottom: 12px;
}

.placeholder-note {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 20px;
}

.profile-links {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.profile-card {
    background-color: var(--bg-primary);
    border: 1px solid var(--border);
    border-radius: 6px;
    padding: 16px 20px;
    display: flex;
    align-items: center;
    gap: 16px;
    color: inherit;
    text-decoration: none;
    transition: border-color 0.2s ease, transform 0.2s ease;
}

.profile-card:hover,
.profile-card:focus-visible {
    border-color: var(--accent);
    transform: translateY(-2px);
}

.profile-card.placeholder {
    border-style: dashed;
    border-color: var(--text-muted);
    opacity: 0.85;
}

.profile-icon {
    color: var(--text-muted);
    width: 28px;
    height: 28px;
    flex-shrink: 0;
}

.profile-card.placeholder .profile-icon {
    color: var(--text-muted);
}

.profile-lbl {
    display: block;
    font-size: 0.75rem;
    font-family: var(--font-mono);
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.profile-val {
    font-family: var(--font-mono);
    color: var(--text-secondary);
    font-size: 0.9rem;
}

/* ==========================================================================
   Footer
   ========================================================================== */
.footer {
    border-top: 1px solid var(--border);
    background-color: var(--bg-primary);
    padding: 40px 24px;
    text-align: center;
}

.footer-container {
    max-width: var(--container-max-width);
    margin: 0 auto;
}

.footer p {
    font-size: 0.9rem;
    margin-bottom: 4px;
}

.footer-meta {
    font-family: var(--font-mono);
    color: var(--text-muted) !important;
    font-size: 0.8rem !important;
}

/* ==========================================================================
   Interactive Details Modal Window
   ========================================================================== */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(7, 10, 17, 0.85);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 2000;
    opacity: 0;
    pointer-events: none;
    transition: opacity var(--transition-normal);
    padding: 16px;
}

.modal-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.modal-window {
    background-color: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: 8px;
    width: 100%;
    max-width: 650px;
    max-height: 85vh;
    overflow-y: auto;
    position: relative;
    padding: 40px;
    transform: translateY(20px);
    transition: transform var(--transition-normal);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
}

.modal-overlay.active .modal-window {
    transform: translateY(0);
}

.modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: none;
    border: none;
    color: var(--text-secondary);
    font-size: 2rem;
    line-height: 1;
    cursor: pointer;
    transition: color var(--transition-fast);
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.modal-close:hover {
    color: var(--accent);
    background-color: var(--bg-primary);
}

.modal-project-meta {
    font-family: var(--font-mono);
    color: var(--accent);
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 8px;
    display: block;
}

.modal-title {
    font-size: 1.8rem;
    font-weight: 800;
    margin-bottom: 24px;
    line-height: 1.2;
}

/* Modal Internal Formatting */
.modal-details-content {
    color: var(--text-secondary);
}

.modal-details-content h3 {
    color: var(--text-primary);
    font-size: 1.15rem;
    margin: 24px 0 10px 0;
    font-weight: 700;
}

.modal-details-content h3:first-of-type {
    margin-top: 0;
}

.modal-details-content p {
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 16px;
    text-align: justify;
}

.modal-details-content ul {
    list-style: none;
    margin-bottom: 16px;
}

.modal-details-content li {
    position: relative;
    padding-left: 18px;
    margin-bottom: 8px;
    font-size: 0.95rem;
}

.modal-details-content li::before {
    content: '▪';
    color: var(--accent);
    position: absolute;
    left: 0;
    top: 0px;
}

/* ==========================================================================
   Responsive Design & Media Queries
   ========================================================================== */

/* Tablet & Smaller Layouts */
@media (max-width: 900px) {
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
}

/* Mobile Menus & Small Devices */
@media (max-width: 768px) {
    html {
        font-size: 15px;
    }
    
    .section-container {
        padding: 60px 20px;
    }
    
    .menu-toggle {
        display: block;
    }
    
    .nav-menu {
        position: fixed;
        top: var(--header-height);
        left: 0;
        width: 100%;
        height: calc(100vh - var(--header-height));
        background-color: var(--bg-primary);
        border-top: 1px solid var(--border);
        transform: translateX(-100%);
        transition: transform var(--transition-normal);
    }
    
    .nav-menu.active {
        transform: translateX(0);
    }
    
    .nav-menu ul {
        flex-direction: column;
        align-items: center;
        justify-content: center;
        padding-top: 50px;
        gap: 32px;
    }
    
    .nav-link {
        font-size: 1.2rem;
    }
    
    .hero-cta {
        flex-direction: column;
    }
    
    .hero-cta .btn {
        width: 100%;
    }
    
    .timeline {
        padding-left: 20px;
    }
    
    .timeline::before {
        left: 0;
    }
    
    .timeline-dot {
        left: -26px;
    }
    
    .modal-window {
        padding: 30px 20px;
    }
}

/* Print Styles */
@media print {
    body {
        background: white;
        color: black;
    }
    
    .navbar,
    .hero-cta,
    .scroll-down-indicator,
    .modal-overlay,
    .footer-meta,
    #architecture,
    .skip-link {
        display: none !important;
    }
    
    .section-container {
        padding: 20px;
    }
    
    .timeline-content,
    .skill-card,
    .project-card,
    .activity-card,
    .languages-card,
    .achievement-card {
        background: white !important;
        border: 1px solid #ccc !important;
        color: black !important;
        page-break-inside: avoid;
    }
    
    p, span, li, h1, h2, h3, h4 {
        color: black !important;
    }
}

/* ==========================================================================
   Headless WordPress CMS Loading & Status States
   ========================================================================== */
.loading-indicator {
    grid-column: 1 / -1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 50px 20px;
    color: var(--text-secondary);
    gap: 14px;
    width: 100%;
}

.spinner {
    width: 36px;
    height: 36px;
    border: 3px solid rgba(16, 185, 129, 0.2);
    border-radius: 50%;
    border-top-color: var(--accent);
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.cms-status-msg {
    grid-column: 1 / -1;
    text-align: center;
    padding: 30px 20px;
    color: var(--text-muted);
    font-size: 0.95rem;
    background: rgba(255, 255, 255, 0.02);
    border-radius: 8px;
    border: 1px dashed var(--border);
    margin: 20px auto;
    max-width: 600px;
}

.timeline-role {
    font-size: 0.95rem;
    color: var(--accent);
    font-weight: 600;
    margin-bottom: 4px;
}

.timeline-location {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 8px;
}

.timeline-tech-tags {
    margin-top: 12px;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

/* Reference-inspired editorial skin */
:root {
    --bg-primary: #101312;
    --bg-secondary: #171b19;
    --bg-tertiary: #202722;
    --accent: #d8ff3e;
    --accent-glow: rgba(216, 255, 62, 0.14);
    --accent-hover: #edff91;
    --text-primary: #f2f4e9;
    --text-secondary: #a6aea0;
    --text-muted: #697269;
    --border: #303931;
    --font-sans: 'Space Grotesk', sans-serif;
    --font-mono: 'DM Mono', monospace;
    --container-max-width: 1240px;
    --header-height: 76px;
}

html {
    background: var(--bg-primary);
    font-size: 16px;
}

body {
    background: linear-gradient(120deg, #101312 0%, #121713 50%, #0d100f 100%);
    background-attachment: fixed;
}

.navbar {
    background: rgba(16, 19, 18, 0.92);
    border-bottom-color: var(--border);
}

.nav-container,
.hero-container,
.section-container,
.footer-container {
    max-width: var(--container-max-width);
}

.logo {
    letter-spacing: 0;
    text-transform: uppercase;
    font-size: 1rem;
}

.nav-menu ul {
    gap: 19px;
}

.nav-link {
    font-family: var(--font-mono);
    font-size: 0.68rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.hero-section {
    min-height: 760px;
    border-bottom: 1px solid var(--border);
}

.hero-section::before {
    background-size: 64px 64px;
    background-image: linear-gradient(to right, rgba(216, 255, 62, 0.045) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(216, 255, 62, 0.045) 1px, transparent 1px);
}

.hero-container {
    padding-top: 120px;
    padding-bottom: 100px;
}

.hero-sub,
.project-meta,
.timeline-date,
.timeline-role,
.activity-subtitle,
.section-subtitle,
.meta-label,
.profile-lbl {
    font-family: var(--font-mono);
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.hero-sub {
    font-size: 0.75rem;
    margin-bottom: 20px;
}

.hero-title {
    max-width: 850px;
    font-size: clamp(4rem, 10vw, 8.8rem);
    line-height: 0.92;
    letter-spacing: -0.07em;
    text-transform: uppercase;
    margin-bottom: 28px;
}

.hero-tagline {
    max-width: 650px;
    font-family: var(--font-mono);
    color: var(--accent);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.hero-desc {
    max-width: 600px;
    font-size: 1.08rem;
    line-height: 1.75;
}

.hero-cta {
    margin-top: 36px;
}

.btn {
    border-radius: 0;
    padding: 13px 19px;
    font-family: var(--font-mono);
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.section-container {
    padding-top: 118px;
    padding-bottom: 118px;
}

.section-title {
    font-size: clamp(2.1rem, 5vw, 4.4rem);
    line-height: 0.98;
    letter-spacing: -0.06em;
    text-transform: uppercase;
    margin-bottom: 38px;
}

.section-title::before {
    content: '// ';
    color: var(--accent);
    font-family: var(--font-mono);
    font-size: 0.35em;
    letter-spacing: 0;
    vertical-align: middle;
}

.section-title::after {
    display: none;
}

.section-subtitle {
    font-size: 0.68rem;
    color: var(--accent);
    margin-bottom: 34px;
}

.about-section,
.projects-section,
.achievements-section,
.contact-section {
    background: transparent;
}

.about-section,
.skills-section,
.projects-section,
.experience-section,
.education-section,
.achievements-section,
.activities-section,
.architecture-section,
.contact-section {
    border-bottom: 1px solid var(--border);
}

.about-info {
    max-width: 780px;
}

.about-info p {
    text-align: left;
}

.paragraph-large {
    font-size: 1.45rem !important;
    line-height: 1.4 !important;
}

.skill-card,
.project-card,
.timeline-content,
.achievement-card,
.activity-card,
.languages-card,
.arch-card,
.profile-card {
    border-radius: 0;
    box-shadow: none;
}

.skill-card {
    background: rgba(23, 27, 25, 0.74);
    padding: 26px;
}

.skill-card:hover,
.project-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 0 rgba(216, 255, 62, 0.08);
}

.skill-header {
    border-bottom-color: var(--border);
}

.skill-title,
.project-title,
.timeline-title,
.achievement-title,
.activity-title {
    letter-spacing: -0.03em;
}

.skill-list li,
.tech-tag,
.lang-tag,
.flow-diagram-container,
.step-lbl,
.project-meta,
.timeline-date,
.timeline-role,
.timeline-location,
.profile-val,
.footer-meta {
    font-family: var(--font-mono);
}

.project-card {
    background: #171b19;
    border-color: var(--border);
}

.project-content {
    padding: 28px;
}

.project-title {
    font-size: 1.65rem;
}

.tech-tag,
.lang-tag,
.step-lbl {
    border-radius: 0;
    background: transparent;
    border-color: #3d493c;
}

.timeline {
    max-width: none;
}

.timeline-content {
    background: rgba(23, 27, 25, 0.74);
    border-left: 3px solid var(--accent);
}

.contact-link {
    font-family: var(--font-mono);
    font-size: 1rem;
}

.footer {
    background: #0d100f;
    text-align: left;
}

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

@media (max-width: 768px) {
    .hero-section {
        min-height: 700px;
    }

    .hero-container {
        padding-top: 100px;
    }

    .hero-title {
        font-size: clamp(3.5rem, 18vw, 6rem);
    }

    .section-container {
        padding-top: 78px;
        padding-bottom: 78px;
    }

    .paragraph-large {
        font-size: 1.2rem !important;
    }

    .footer-container {
        display: block;
    }
}

/* Full profile direction */
:root {
    --bg-primary: #110809;
    --bg-secondary: #1b0d0e;
    --bg-tertiary: #251517;
    --accent: #e2bd58;
    --accent-hover: #f0d47b;
    --accent-glow: rgba(226, 189, 88, 0.16);
    --text-primary: #f8f5ed;
    --text-secondary: #c3bfc0;
    --text-muted: #807477;
    --border: #3b292b;
    --focus-outline: #58bfff;
}

body {
    background: #110809;
    background-image: radial-gradient(circle at 78% 18%, rgba(83, 36, 26, 0.25), transparent 30%),
        radial-gradient(circle at 12% 62%, rgba(36, 13, 17, 0.65), transparent 32%);
}

.navbar {
    background: rgba(17, 8, 9, 0.78);
    border-bottom: 0;
}

.logo {
    color: var(--accent);
    font-family: Georgia, serif;
    font-size: 1.05rem;
}

.logo-accent {
    color: var(--accent);
}

.nav-menu ul {
    gap: 38px;
}

.nav-link {
    color: #c8bec0;
    font-size: 0.76rem;
    letter-spacing: 0.16em;
}

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

.nav-link::after {
    display: none;
}

.hero-section {
    min-height: 850px;
    border-bottom: 0;
}

.hero-section::before {
    background-size: auto;
    background-image: radial-gradient(rgba(226, 189, 88, 0.22) 1px, transparent 1px);
    background-size: 170px 170px;
    opacity: 0.22;
}

.hero-container {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(360px, 0.9fr);
    gap: 40px;
    align-items: center;
    padding-top: 150px;
    padding-bottom: 0;
}

.hero-copy {
    position: relative;
    z-index: 1;
}

.hero-sub {
    color: #5fc1ff;
    font-size: 0.76rem;
    letter-spacing: 0.38em;
    text-transform: uppercase;
}

.hero-title {
    color: #fffdf7;
    font-family: var(--font-sans);
    font-size: clamp(4.4rem, 8vw, 7.6rem);
    font-weight: 700;
    line-height: 0.92;
    letter-spacing: -0.075em;
    text-transform: none;
    margin-bottom: 35px;
}

.hero-tagline {
    color: #5fc1ff;
    font-size: 1.15rem;
    letter-spacing: 0.02em;
    text-transform: none;
}

.hero-desc {
    max-width: 585px;
    color: #d2ccca;
    font-size: 1.13rem;
    line-height: 1.65;
}

.hero-location {
    color: #a9a0a1;
    font-family: var(--font-mono);
    font-size: 0.83rem;
    letter-spacing: 0.03em;
    margin: 28px 0 0;
}

.hero-cta {
    margin-top: 30px;
    gap: 15px;
}

.btn {
    border: 1px solid var(--accent);
    font-size: 0.76rem;
    letter-spacing: 0.14em;
    min-width: 154px;
    padding: 16px 21px;
}

.btn-primary {
    background: transparent;
    color: var(--accent);
}

.btn-primary:hover {
    background: var(--accent);
    color: #1a0d0d;
}

.btn-outline {
    color: #5fc1ff;
    border-color: #31536b;
}

.btn-outline:hover {
    background: rgba(95, 193, 255, 0.1);
    color: #8dd6ff;
}

.hero-socials {
    display: flex;
    gap: 14px;
    margin-top: 40px;
}

.hero-socials a {
    display: grid;
    place-items: center;
    width: 48px;
    height: 48px;
    border: 1px solid var(--border);
    border-radius: 50%;
    color: #c7bfc0;
    font-family: var(--font-mono);
    font-size: 0.78rem;
    text-decoration: none;
    transition: color var(--transition-fast), border-color var(--transition-fast), transform var(--transition-fast);
}

.hero-socials a:hover {
    color: var(--accent);
    border-color: var(--accent);
    transform: translateY(-3px);
}

.hero-visual {
    position: relative;
    min-height: 430px;
    display: grid;
    place-items: center;
}

.hero-monogram {
    width: 270px;
    height: 270px;
    display: grid;
    place-items: center;
    border: 1px solid var(--accent);
    border-radius: 50%;
    color: #fffdf7;
    font-size: 4.2rem;
    font-weight: 700;
    letter-spacing: -0.12em;
    background: radial-gradient(circle, rgba(104, 38, 33, 0.75), rgba(22, 10, 11, 0.9) 68%);
    box-shadow: 0 0 0 12px rgba(226, 189, 88, 0.04), 0 0 0 22px rgba(226, 189, 88, 0.09);
}

.hero-monogram span {
    color: var(--accent);
    font-size: 0.42em;
    letter-spacing: 0;
    margin-left: 8px;
}

.hero-orbit {
    position: absolute;
    width: 350px;
    height: 350px;
    border: 1px solid rgba(226, 189, 88, 0.24);
    border-radius: 50%;
}

.hero-orbit-two {
    width: 420px;
    height: 420px;
    border-style: dashed;
    border-color: rgba(95, 193, 255, 0.2);
    transform: rotate(34deg) scaleY(0.46);
}

.hero-chip {
    position: absolute;
    right: 3%;
    bottom: 8%;
    padding: 14px 17px;
    border: 1px solid #31536b;
    background: rgba(17, 8, 9, 0.78);
    color: #5fc1ff;
    font-family: var(--font-mono);
    font-size: 0.82rem;
    line-height: 1.4;
}

.hero-chip small {
    color: var(--accent);
    font-size: 0.55rem;
    letter-spacing: 0.12em;
}

.hero-stats {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    margin-top: 55px;
    border: 1px solid #252b38;
    background: rgba(19, 25, 39, 0.72);
}

.hero-stats div {
    display: flex;
    align-items: center;
    gap: 18px;
    min-height: 90px;
    padding: 16px 24px;
    border-right: 1px solid #252b38;
}

.hero-stats div:last-child {
    border-right: 0;
}

.hero-stats strong {
    color: #fffdf7;
    font-size: 1.7rem;
}

.hero-stats span {
    color: #a8aebc;
    font-family: var(--font-mono);
    font-size: 0.62rem;
    line-height: 1.45;
    text-transform: uppercase;
}

.section-container {
    padding-top: 125px;
    padding-bottom: 125px;
}

.section-title {
    color: #fffdf7;
    font-size: clamp(2.35rem, 5vw, 4.2rem);
    letter-spacing: -0.065em;
}

.section-title::before {
    color: #b9ff3f;
}

.section-subtitle {
    color: #b9ff3f;
}

.skills-grid,
.projects-grid,
.achievements-grid,
.activities-grid {
    gap: 1px;
    background: var(--border);
    border: 1px solid var(--border);
}

.skill-card,
.project-card,
.achievement-card,
.activity-card,
.languages-card {
    background: #160b0c;
    border: 0;
}

.project-card {
    min-height: 100%;
}

.skill-icon,
.achievement-badge,
.method-icon,
.profile-icon {
    color: #b9ff3f;
}

.timeline-content {
    background: #160b0c;
    border-left-color: #b9ff3f;
}

.contact-link {
    color: #5fc1ff;
}

.footer {
    border-top: 0;
    background: #0c0809;
}

@media (max-width: 900px) {
    .nav-menu ul {
        gap: 18px;
    }

    .hero-container {
        grid-template-columns: 1fr;
    }

    .hero-visual {
        min-height: 360px;
    }
}

@media (max-width: 768px) {
    .nav-menu ul {
        gap: 28px;
    }

    .hero-section {
        min-height: 940px;
    }

    .hero-container {
        padding-top: 120px;
    }

    .hero-stats {
        grid-template-columns: repeat(2, 1fr);
        margin-top: 25px;
    }

    .hero-stats div:nth-child(2) {
        border-right: 0;
    }

    .hero-stats div:nth-child(-n + 2) {
        border-bottom: 1px solid #252b38;
    }

    .hero-visual {
        min-height: 300px;
    }

    .hero-monogram {
        width: 205px;
        height: 205px;
        font-size: 3.1rem;
    }

    .hero-orbit {
        width: 270px;
        height: 270px;
    }

    .hero-orbit-two {
        width: 320px;
        height: 320px;
    }

    .hero-chip {
        right: 0;
        bottom: 0;
    }
}

/* Match reference proportions on wide screens */
@media (min-width: 769px) {
    .hero-section {
        min-height: 840px;
        height: 100vh;
    }

    .hero-container {
        min-height: 840px;
        padding-top: 105px;
    }

    .hero-title {
        font-size: clamp(4.2rem, 6.1vw, 5.8rem);
        margin-bottom: 26px;
    }

    .hero-visual {
        min-height: 380px;
    }

    .hero-monogram {
        width: 245px;
        height: 245px;
        font-size: 3.7rem;
    }

    .hero-orbit {
        width: 320px;
        height: 320px;
    }

    .hero-orbit-two {
        width: 390px;
        height: 390px;
    }

    .hero-stats {
        margin-top: 25px;
    }

    .section-container {
        padding-top: 92px;
        padding-bottom: 92px;
    }
}
