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

:root {
  /* Color Palette */
  --bg-main: #0d0f14;
  --card-bg: #1e2028;
  --card-bg-hover: #262933;
  --text-primary: #e2e8f0;
  --text-muted: #8e95a5;
  --accent-purple: #c3bbfd;
  --accent-light-gray: #e2e8f0;
  --badge-bg: #2d313e;
  --badge-text: #8e95a5;

  /* Typography */
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;

  /* Spacing & Borders */
  --radius-card: 20px;
  --radius-avatar: 50%;
  --gap-grid: 16px;
}

body {
  background-color: var(--bg-main);
  color: var(--text-primary);
  font-family: var(--font-sans);
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  padding: 24px 16px;
  -webkit-font-smoothing: antialiased;
}

/* ==========================================================================
   LAYOUT STRUCTURE
   ========================================================================== */
.bento-container {
  width: 100%;
  max-width: 1200px;
  display: flex;
  flex-direction: column;
  gap: 32px;
}

/* Column wrappers */
.col-left, .col-right {
  display: flex;
  flex-direction: column;
  gap: 28px;
  width: 100%;
}

/* ==========================================================================
   CARDS & COMMON COMPONENTS
   ========================================================================== */
.card {
  background-color: var(--card-bg);
  border-radius: var(--radius-card);
  overflow: hidden;
  position: relative;
  transition: transform 0.2s ease, background-color 0.2s ease;
}

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

.card-img.contain-img {
  object-fit: contain;
  padding: 16px;
}

.section-label {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  font-weight: 500;
}

.section-group {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.section-header {
  display: flex;
  align-items: center;
  gap: 8px;
}

.badge {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  background-color: var(--badge-bg);
  color: var(--badge-text);
  padding: 2px 6px;
  border-radius: 4px;
  text-transform: uppercase;
}

/* ==========================================================================
   LEFT COLUMN SPECIFIC STYLES
   ========================================================================== */

/* Profile / Bio Card */
.profile-card {
  padding: 36px 28px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: left;
}

.avatar-wrapper {
  width: 140px;
  height: 140px;
  border-radius: var(--radius-avatar);
  overflow: hidden;
  margin-bottom: 28px;
  background-color: #2a2e3d;
}

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

.bio-text {
  display: flex;
  flex-direction: column;
  gap: 16px;
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.6;
}

/* Social Buttons Grid */
.kuxkuseatu-section {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.social-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}
.social-card {
  display: flex;
  flex-direction: column;    /* Stack icon above text */
  align-items: center;        /* Center horizontally */
  justify-content: center;    /* Center vertically */
  text-align: center;
  padding: 24px 12px;
  gap: 10px;                  /* Space between icon and text */
  text-decoration: none;
  font-family: var(--font-sans);
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--text-muted);
  width: 100%;
  box-sizing: border-box;
}

/* Fix icon dimensions & vertical alignment baseline */
.social-card svg {
  width: 24px;
  height: 24px;
  display: block;             /* Remove inline baseline spacing quirks */
  margin: 0 auto;             /* Force absolute horizontal centering */
  fill: var(--text-muted);
  flex-shrink: 0;
  transition: fill 0.2s ease;
}

/* Fix text label optical baseline */
.social-card span {
  display: block;
  line-height: 1.2;
  text-align: center;
  white-space: nowrap;
}

.social-card:hover {
  background-color: var(--card-bg-hover);
  color: var(--text-primary);
}

.social-card:hover svg {
  fill: var(--text-primary);
}

/* Footer Contact Info */
.contact-footer {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-muted);
  padding: 12px 0;
  flex-wrap: wrap;
}

.contact-footer a {
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.2s ease;
}

.contact-footer a:hover {
  color: var(--text-primary);
}

.contact-footer .divider {
  opacity: 0.4;
}

/* ==========================================================================
   RIGHT COLUMN SPECIFIC STYLES
   ========================================================================== */

/* Featured Project */
.featured-card {
  height: 320px;
}

/* Secondary Projects */
.secondary-projects-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.project-card {
  height: 180px;
  display: flex;
  align-items: center;
  justify-content: center;
}

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

.bg-light-gray {
  background-color: var(--accent-light-gray);
}

/* Visual Thinking Section */
.visual-thinking-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.visual-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
}

.visual-card {
  width: 100%;
  aspect-ratio: 4 / 5;
}

.item-caption {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--text-muted);
}


/* ==========================================================================
   RESPONSIVE BREAKPOINTS (Desktop Layout)
   ========================================================================== */
@media (min-width: 1024px) {
  body {
    padding: 40px;
  }

  .bento-container {
    display: grid;
    grid-template-columns: 420px 1fr;
    gap: 24px;
    align-items: start;
  }

  .featured-card {
    height: 420px;
  }

  .project-card {
    height: 220px;
  }

  .profile-card {
    padding: 48px 36px;
  }
/* ==========================================================================
   INTERACTIVE HOVER STATES
   ========================================================================== */
a.card {
  text-decoration: none;
  display: block;
  cursor: pointer;
  border: 1px solid rgba(255, 255, 255, 0.03);
  transition: transform 0.3s cubic-bezier(0.2, 0.8, 0.2, 1),
              box-shadow 0.3s cubic-bezier(0.2, 0.8, 0.2, 1),
              border-color 0.3s ease,
              background-color 0.3s ease;
}

a.card .card-img {
  transition: transform 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
}

/* Hover effect on project cards */
a.card:hover {
  transform: translateY(-6px);
  border-color: rgba(255, 255, 255, 0.15);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.45);
}

/* Subtle image scale effect inside cards */
a.card:hover .card-img:not(.contain-img) {
  transform: scale(1.03);
}

/* Specific subtle movement for images that are contained */
a.card:hover .card-img.contain-img {
  transform: scale(1.05);
}


/* ==========================================================================
   DYNAMIC ENTRANCE ANIMATIONS (FADE & SLIDE UP)
   ========================================================================== */
.animate-on-load {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform;
}

.animate-on-load.is-visible {
  opacity: 1;
  transform: translateY(0);
}
}
