@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@300;400;500;600;700&display=swap');

:root {
    --bg-canvas: #f8fafc;
    --bg-card: #ffffff;
    --text-primary: #0f172a;
    --text-secondary: #475569;
    --border-color: #e2e8f0;
    
    --primary-purple: #6366f1;
    --secondary-purple: #4f46e5;
    --soft-purple: #e0e7ff;
    
    --radius-main: 24px;
    --shadow-main: 0 25px 50px -12px rgba(15, 23, 42, 0.08);
    --font-sans: 'Plus Jakarta Sans', sans-serif;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-sans);
    color: var(--text-primary);
    background-color: var(--bg-canvas);
    overflow-x: hidden;
    line-height: 1.6;
}

/* --- TRAILING ELEMENTS --- */
.trail-dot {
    position: fixed;
    width: 10px;
    height: 10px;
    background: linear-gradient(135deg, var(--primary-purple), var(--secondary-purple));
    border-radius: 50%;
    z-index: 100;
    box-shadow: 0 0 15px rgba(99, 102, 241, 0.5);
    pointer-events: none; /* Make sure it doesn't block mouse interactions */
}

.cursor-glow {
    position: fixed;
    width: 40px;
    height: 40px;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.3) 0%, rgba(99, 102, 241, 0.1) 70%);
    border-radius: 50%;
    border: 2px solid rgba(99, 102, 241, 0.2);
    z-index: 99;
    pointer-events: none;
}

/* --- Progress Line --- */
.scroll-tracker {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-purple), var(--secondary-purple));
    transform-origin: left;
    transform: scaleX(0);
    z-index: 10000;
}

/* --- Fixed Navigation Header --- */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.2rem 4%;
    background-color: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(16px);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 9000;
    border-bottom: 1px solid var(--border-color);
}

.logo {
    font-size: 1.25rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

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

nav {
    display: flex;
    gap: 2rem;
}

nav a {
    text-decoration: none;
    color: var(--text-secondary);
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: color 0.2s;
}

nav a:hover,
nav a.active {
    color: var(--primary-purple);
}

.btn-cv {
    text-decoration: none;
    background-color: var(--text-primary);
    color: #fff;
    padding: 0.55rem 1.1rem;
    font-size: 0.75rem;
    font-weight: 600;
    border-radius: 30px;
    transition: all 0.2s;
}

.btn-cv:hover {
    background-color: var(--primary-purple);
}

/* --- Grid Background --- */
.finer-architectural-grid {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
    background-image: 
        linear-gradient(rgba(99, 102, 241, 0.05) 2px, transparent 2px),
        linear-gradient(90deg, rgba(99, 102, 241, 0.05) 2px, transparent 2px),
        linear-gradient(rgba(226, 232, 240, 0.45) 1px, transparent 1px),
        linear-gradient(90deg, rgba(226, 232, 240, 0.45) 1px, transparent 1px);
    background-size: 100px 100px, 100px 100px, 20px 20px, 20px 20px;
}

/* --- Main Viewport --- */
.presentation-stage-viewport {
    width: 100%;
    position: relative;
}

/* --- Deck Layers --- */
.deck-layer {
    position: relative;
    width: 100%;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background-color: var(--bg-canvas);
    z-index: 2;
    padding: 80px 0 0 0;
}

.hero-section {
    position: relative;
}

.hero-image-underlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

.hero-image-underlay img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-dim-curtain {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, rgba(15, 23, 42, 0.9), rgba(15, 23, 42, 0.4));
}

.hero-text-shield {
    color: #ffffff;
    max-width: 750px;
    width: 100%;
    padding: 0 5%;
    z-index: 10;
    position: relative;
}

.hello-tag {
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--primary-purple);
    letter-spacing: 2px;
    margin-bottom: 1rem;
}

.hero-text-shield h1 {
    font-size: 4.8rem;
    font-weight: 800;
    line-height: 1.1;
    margin: 0.4rem 0 1rem 0;
}

.hero-text-shield h3 {
    font-size: 1.4rem;
    font-weight: 400;
    opacity: 0.85;
    margin-bottom: 2.5rem;
}

.purple-txt {
    color: var(--primary-purple);
}

.explore-btn {
    text-decoration: none;
    background: var(--primary-purple);
    color: #fff;
    padding: 0.95rem 2rem;
    font-size: 0.85rem;
    font-weight: 600;
    border-radius: 12px;
    display: inline-block;
    transition: all 0.2s;
}

.explore-btn:hover {
    background: var(--secondary-purple);
}

/* --- Section Canvas Grid --- */
.section-canvas-grid {
    display: grid;
    grid-template-columns: 140px 1fr 140px;
    width: 100%;
    max-width: 1600px;
    height: auto;
    margin-top: 60px;
    align-items: center;
    padding: 0 2rem;
    z-index: 10;
    gap: 2rem;
}

/* --- Logo Margins --- */
.embedded-logo-margin {
    display: flex;
    flex-direction: column;
    gap: 2.2rem;
    align-items: center;
    justify-content: center;
    height: 100%;
}

.left-margin {
    border-right: 1px solid var(--border-color);
    padding-right: 2.5rem;
}

.right-margin {
    border-left: 1px solid var(--border-color);
    padding-left: 2.5rem;
}

.logo-item {
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.contact-terminal-stage .embedded-logo-margin {
    border-color: rgba(255, 255, 255, 0.08);
}

/* --- Split Display --- */
.split-display-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    width: 100%;
    height: 100%;
    align-items: stretch;
}

/* Equal height panels for About section */
.about-equal-panels {
    align-items: stretch;
}

.about-equal-panels .panel-card {
    height: 100%;
    display: flex;
    flex-direction: column;
}

.flip-direction {
    grid-template-columns: 1fr 1fr;
}

/* --- Panel Cards --- */
.panel-card {
    min-height: 100%;
    width: 100%;
    border-radius: var(--radius-main);
    background-color: var(--bg-card);
    box-shadow: var(--shadow-main);
    border: 1px solid rgba(226, 232, 240, 0.8);
    overflow: hidden;
}

.image-panel {
    border: none;
}

.image-panel img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.content-panel {
    padding: 3.5rem;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    min-height: 400px;
}

.panel-label {
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 1px;
    margin-bottom: 1.25rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-secondary);
}

.summary-paragraph {
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.65;
    margin-bottom: 1.5rem;
}

/* --- Skills Grid --- */
.skills-matrix-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.85rem;
}

.matrix-pill {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    border: 1px solid var(--border-color);
    padding: 0.65rem 0.85rem;
    border-radius: 12px;
    background: #fff;
    cursor: pointer;
    transition: all 0.2s;
}

.matrix-pill:hover {
    border-color: var(--primary-purple);
    background-color: var(--soft-purple);
}

.matrix-pill h5 {
    font-size: 0.8rem;
    font-weight: 700;
}

/* --- Projects List --- */
.stack-list-panel {
    justify-content: flex-start;
}

.wide-projects-list-strip {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-top: 0.25rem;
}

.project-inline-item {
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 0.85rem;
    cursor: pointer;
    transition: all 0.2s;
}

.project-inline-item:last-child {
    border: none;
    padding: 0;
}

.project-inline-item h4 {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.25rem;
}

.project-inline-item p {
    font-size: 0.8rem;
    color: var(--text-secondary);
    margin: 0.15rem 0 0.4rem 0;
    line-height: 1.4;
}

.item-tags {
    display: flex;
    gap: 0.4rem;
    flex-wrap: wrap;
}

.item-tags span {
    font-size: 0.65rem;
    background: var(--bg-canvas);
    padding: 0.15rem 0.5rem;
    border-radius: 4px;
    font-weight: 600;
    color: #475569;
    border: 1px solid var(--border-color);
}

/* --- Contact Section --- */
.contact-terminal-stage {
    background-color: #0f172a;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    padding-bottom: 0;
    min-height: 100vh;
}

.contact-inner-wrapper {
    width: 100%;
    max-width: 1200px;
    padding: 2rem 2rem 0;
    margin: 80px auto 0;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.contact-cards-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    width: 100%;
    margin-top: 2rem;
    align-items: stretch;
}

.contact-terminal-stage .contact-cards-row .connection-cta-card,
.contact-terminal-stage .contact-cards-row .form-terminal-card {
    background-color: #1e293b;
    border: 1px solid rgba(255, 255, 255, 0.06);
    color: #fff;
    height: 100%;
}

.connection-cta-card,
.form-terminal-card {
    background-color: #1e293b;
    border: 1px solid rgba(255, 255, 255, 0.06);
    color: #fff;
    padding: 2.5rem;
    border-radius: var(--radius-main);
    display: flex;
    flex-direction: column;
    box-shadow: var(--shadow-main);
}

.connection-cta-card h3 {
    font-size: 2rem;
    font-weight: 800;
    margin: 0.5rem 0 1rem 0;
    line-height: 1.2;
}

.connection-cta-card p {
    color: #94a3b8;
    font-size: 0.85rem;
    margin-bottom: 2rem;
}

/* --- Contact Methods --- */
.direct-contact-methods {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    margin-bottom: 1.5rem;
}

.method-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.method-item h6 {
    font-size: 0.7rem;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 0.25rem;
}

.method-item p {
    font-size: 0.9rem;
    color: #cbd5e1;
    margin: 0;
}

.footer-icons-row {
    display: flex;
    gap: 1.5rem;
}

.footer-icons-row a {
    color: #64748b;
    font-size: 1.25rem;
    transition: color 0.2s;
    text-decoration: none;
}

.footer-icons-row a:hover {
    color: #fff;
}

/* --- Contact Form extra overrides --- */
.terminal-embedded-form,
.form-terminal-card .terminal-embedded-form {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    flex: 1;
}

.input-field-group {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.input-field-group label {
    font-size: 0.65rem;
    font-weight: 700;
    color: #64748b;
    letter-spacing: 1px;
}

.input-field-group input,
.input-field-group textarea {
    background: #0f172a;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    padding: 0.8rem 1rem;
    color: #fff;
    font-family: var(--font-sans);
    font-size: 0.85rem;
    outline: none;
    transition: border-color 0.2s;
    resize: vertical;
}

.input-field-group input:focus,
.input-field-group textarea:focus {
    border-color: var(--primary-purple);
    background-color: rgba(99, 102, 241, 0.05);
}

.transmit-form-btn {
    background: var(--primary-purple);
    color: #fff;
    border: none;
    padding: 0.9rem;
    font-size: 0.85rem;
    font-weight: 600;
    border-radius: 10px;
    cursor: pointer;
    transition: background 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 1rem;
}

.transmit-form-btn:hover {
    background: var(--secondary-purple);
}

/* --- Responsive --- */
@media (max-width: 1120px) {
    .deck-layer {
        min-height: auto;
        height: auto;
    }

    .section-canvas-grid {
        grid-template-columns: 1fr;
        padding: 0 1rem;
        height: auto;
        margin-top: 80px;
    }

    .embedded-logo-margin {
        display: none !important;
    }

    .split-display-wrapper {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .panel-card,
    .form-terminal-card {
        height: auto;
        padding: 2.5rem;
    }

    .image-panel {
        display: none;
    }

    .hero-text-shield h1 {
        font-size: 3.2rem;
    }

    nav {
        gap: 1rem;
    }

    nav a {
        font-size: 0.7rem;
    }
}

@media (max-width: 768px) {
    header {
        padding: 1rem 4%;
    }

    .logo {
        font-size: 1rem;
    }

    nav {
        gap: 0.5rem;
    }

    .hero-text-shield h1 {
        font-size: 2.5rem;
    }

    .hero-text-shield h3 {
        font-size: 1rem;
    }

    .content-panel {
        padding: 2rem;
    }
}

/* --- Header scrolled state --- */
.header-scrolled {
  box-shadow: 0 4px 20px rgba(15, 23, 42, 0.08);
}

/* --- Hero enhancements --- */
.hero-cta-row {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 3rem;
}

.explore-btn-outline {
  text-decoration: none;
  background: transparent;
  color: #fff;
  padding: 0.95rem 2rem;
  font-size: 0.85rem;
  font-weight: 600;
  border-radius: 12px;
  display: inline-block;
  transition: all 0.2s;
  border: 2px solid rgba(255,255,255,0.4);
}

.explore-btn-outline:hover {
  border-color: var(--primary-purple);
  color: var(--primary-purple);
}

.hero-stats-row {
  display: flex;
  gap: 2.5rem;
  flex-wrap: wrap;
}

.hero-stat {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.hero-stat-value {
  font-size: 2rem;
  font-weight: 800;
  color: var(--primary-purple);
  line-height: 1;
}

.hero-stat-label {
  font-size: 0.75rem;
  color: rgba(255,255,255,0.6);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.hero-scroll-indicator {
  position: absolute;
  bottom: 2.5rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.3rem;
  color: rgba(255,255,255,0.5);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
}

/* --- Skill bar --- */
.skill-bar-track {
  height: 4px;
  background: var(--border-color);
  border-radius: 2px;
  overflow: hidden;
}

.skill-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--primary-purple), var(--secondary-purple));
  border-radius: 2px;
  width: 0; /* Animated dynamically by ScrollTrigger */
}

/* --- Timeline --- */
.timeline-list {
  display: flex;
  flex-direction: column;
  gap: 0;
  position: relative;
}

.timeline-list::before {
  content: '';
  position: absolute;
  left: 10px;
  top: 8px;
  bottom: 0;
  width: 2px;
  background: var(--border-color);
}

.timeline-item {
  display: flex;
  gap: 1.5rem;
  padding-bottom: 2rem;
  position: relative;
}

.timeline-dot {
  width: 20px;
  height: 20px;
  min-width: 20px;
  background: var(--primary-purple);
  border-radius: 50%;
  border: 3px solid #fff;
  box-shadow: 0 0 0 2px var(--primary-purple);
  margin-top: 4px;
  z-index: 1;
}

.timeline-content {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.timeline-year {
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--primary-purple);
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.timeline-content h4 {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-primary);
  margin: 0.15rem 0;
}

.timeline-company {
  font-size: 0.8rem;
  color: var(--text-secondary);
  font-weight: 600;
}

.timeline-content p {
  font-size: 0.82rem;
  color: var(--text-secondary);
  line-height: 1.5;
  margin-top: 0.3rem;
}

/* --- Section Heading Block (shared) --- */
.section-heading-block {
  text-align: center;
  margin-bottom: 3rem;
}

.section-heading-block h2 {
  font-size: 2.8rem;
  font-weight: 800;
  line-height: 1.15;
  margin: 0.5rem 0 1rem;
}

.section-subtitle {
  font-size: 1rem;
  color: var(--text-secondary);
  max-width: 560px;
  margin: 0 auto;
  line-height: 1.7;
}

/* --- Services Section --- */
.services-section {
  background-color: var(--bg-canvas);
}

.services-inner {
  width: 100%;
  max-width: 1200px;
  padding: 4rem 2rem 5rem;
  margin: 0 auto;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.service-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 20px;
  padding: 2rem;
  cursor: default;
  box-shadow: var(--shadow-main);
}

.service-icon {
  font-size: 2rem;
  margin-bottom: 1rem;
}

.service-card h4 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
  color: var(--text-primary);
}

.service-card > p {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.65;
  margin-bottom: 1.25rem;
}

.service-bullets {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.service-bullets li {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8rem;
  color: var(--text-secondary);
  font-weight: 500;
}

.bullet-dot {
  width: 6px;
  height: 6px;
  min-width: 6px;
  background: var(--primary-purple);
  border-radius: 50%;
}

/* --- Projects Section --- */
.projects-section {
  background-color: #f1f5f9;
}

.projects-inner {
  width: 100%;
  max-width: 1200px;
  padding: 5rem 2rem;
  margin: 0 auto;
}

.filter-tabs {
  display: flex;
  gap: 0.6rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 3rem;
}

.filter-tab {
  padding: 0.5rem 1.2rem;
  border-radius: 30px;
  border: 1px solid var(--border-color);
  background: var(--bg-card);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all 0.2s;
  font-family: var(--font-sans);
}

.filter-tab.active,
.filter-tab:hover {
  background: var(--primary-purple);
  color: #fff;
  border-color: var(--primary-purple);
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.project-card {
  background: var(--bg-card);
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-main);
  cursor: pointer;
}

.featured-card {
  border-color: rgba(99, 102, 241, 0.3);
}

.project-card-image {
  position: relative;
  height: 200px;
  overflow: hidden;
}

.project-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.project-card-overlay {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  opacity: 0;
  transition: opacity 0.3s;
}

.project-card-overlay a {
  /* Make sure overlays are above everything and interactable */
  position: relative;
  z-index: 2;
}

.overlay-btn {
  padding: 0.55rem 1.1rem;
  background: var(--primary-purple);
  color: #fff;
  text-decoration: none;
  font-size: 0.75rem;
  font-weight: 700;
  border-radius: 8px;
  transition: background 0.2s;
}

.overlay-btn.outline {
  background: transparent;
  border: 1.5px solid rgba(255,255,255,0.5);
}

.overlay-btn.outline:hover {
  background: rgba(255,255,255,0.1);
}

.project-card-body {
  padding: 1.5rem;
}

.featured-badge {
  display: inline-block;
  font-size: 0.65rem;
  font-weight: 700;
  color: var(--primary-purple);
  background: var(--soft-purple);
  padding: 0.2rem 0.6rem;
  border-radius: 4px;
  margin-bottom: 0.6rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.project-card-body h4 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 0.4rem;
  color: var(--text-primary);
}

.project-card-body p {
  font-size: 0.82rem;
  color: var(--text-secondary);
  line-height: 1.55;
  margin-bottom: 0.85rem;
}

/* --- TechStack Section --- */
.tech-stack-section {
  background: var(--bg-canvas);
}

.tech-stack-inner {
  width: 100%;
  max-width: 1200px;
  padding: 0 2rem;
  margin: 0 auto;
}

.marquee-wrapper {
  overflow: hidden;
  margin: 0 -2rem 3rem;
  padding: 1rem 0;
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
  background: rgba(99, 102, 241, 0.02);
}

.marquee-track {
  display: flex;
  gap: 1rem;
  width: max-content;
}

.tech-pill {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 30px;
  white-space: nowrap;
  cursor: default;
  flex-shrink: 0;
}

.tech-pill-logo {
  width: 20px;
  height: 20px;
  object-fit: contain;
  flex-shrink: 0;
}

.tech-pill-icon { font-size: 1rem; }
.tech-pill-name { font-size: 0.82rem; font-weight: 700; color: var(--text-primary); }
.tech-pill-cat { font-size: 0.65rem; color: var(--text-secondary); font-weight: 500; }

.tech-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 1rem;
}

.tech-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 1.25rem 1rem;
  text-align: center;
  cursor: default;
}

.tech-card-logo {
  width: 40px;
  height: 40px;
  object-fit: contain;
}

.tech-card-icon {
  width: 48px;
  height: 48px;
  margin: 0 auto 0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.tech-card-name { font-size: 0.78rem; font-weight: 700; color: var(--text-primary); margin-bottom: 0.2rem; }
.tech-card-cat { font-size: 0.65rem; color: var(--text-secondary); font-weight: 500; }

/* --- Availability Badge --- */
.availability-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.75rem;
  font-weight: 600;
  color: #4ade80;
  background: rgba(74, 222, 128, 0.1);
  border: 1px solid rgba(74, 222, 128, 0.2);
  padding: 0.4rem 0.9rem;
  border-radius: 30px;
  margin-top: 1.5rem;
}

.availability-dot {
  width: 7px;
  height: 7px;
  background: #4ade80;
  border-radius: 50%;
  animation: pulse-dot 1.5s ease-in-out infinite;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(0.7); }
}

.footer-links {
  display: flex;
  gap: 1.5rem;
}

.footer-links a {
  color: #475569;
  text-decoration: none;
  transition: color 0.2s;
  font-weight: 500;
}

.footer-links a:hover {
  color: var(--primary-purple);
}

/* --- Responsive for new sections --- */
@media (max-width: 1120px) {
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }

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

  .tech-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

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

  .projects-grid {
    grid-template-columns: 1fr;
  }

  .tech-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .hero-stats-row {
    gap: 1.5rem;
  }

  .hero-stat-value {
    font-size: 1.5rem;
  }

  .section-heading-block h2 {
    font-size: 2rem;
  }

  .portfolio-footer {
    flex-direction: column;
    text-align: center;
  }

  .footer-links {
    gap: 1rem;
    flex-wrap: wrap;
    justify-content: center;
  }
}

@media (max-width: 480px) {
  .tech-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .hero-cta-row {
    flex-direction: column;
  }
}

/* --- Tech logos in About margin columns --- */
.margin-tech-logo {
  width: 40px;
  height: 40px;
  object-fit: contain;
  filter: drop-shadow(0 2px 6px rgba(0,0,0,0.08));
}

/* --- Skill pill logos --- */
.pill-tech-logo {
  width: 28px;
  height: 28px;
  object-fit: contain;
  flex-shrink: 0;
}

/* --- Service card image --- */
.service-icon-img {
  width: 100%;
  height: 140px;
  overflow: hidden;
  border-radius: 12px;
  margin-bottom: 1rem;
  background: var(--soft-purple);
  display: flex;
  align-items: center;
  justify-content: center;
}

.service-card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.service-icon-fallback {
  font-size: 2.5rem;
}

/* --- Contact method icon --- */
.method-icon-wrap {
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.method-icon-img {
  width: 32px;
  height: 32px;
  object-fit: contain;
}

/* --- Contact section heading text color overrides --- */
.contact-terminal-stage .section-heading-block .panel-label {
  color: var(--primary-purple);
}

.contact-terminal-stage .section-heading-block h2 {
  color: #fff;
}

/* --- Footer always at bottom of contact section --- */
.portfolio-footer {
  width: 100%;
  border-top: 1px solid rgba(255,255,255,0.06);
  padding: 1.75rem 2rem;
  margin-top: 3rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  color: #475569;
  font-size: 0.8rem;
  flex-shrink: 0;
}

/* --- Responsive: Contact cards stack on mobile --- */
@media (max-width: 900px) {
  .contact-cards-row {
    grid-template-columns: 1fr;
  }

  .contact-inner-wrapper {
    padding: 1.5rem 1rem 0;
  }
}

@media (max-width: 1120px) {
  .about-equal-panels {
    grid-template-columns: 1fr;
  }
}

/* --- ANIMATION SMOOTHING --- */
.deck-layer,
.panel-card,
.service-card,
.project-card,
.tech-card,
.tech-pill,
.timeline-item,
.matrix-pill {
  will-change: transform, opacity;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}

.section-canvas-grid,
.split-display-wrapper,
.contact-cards-row {
  transform: translateZ(0);
}