/* --- VARIABLES & RESET --- */
:root {
  --font-head: 'Space Grotesk', sans-serif;
  --font-body: 'Inter', sans-serif;
  --black: #111;
  --gray: #f4f4f5;
  --yellow: #ffd400;
  --blue-light: #e0f2fe;
  --blue-dark: #0369a1;
  --green-light: #dcfce7;
  --green-dark: #166534;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
  font-family: var(--font-body);
  background-color: #fff;
  color: var(--black);
  line-height: 1.5;
  overflow-x: hidden;
}

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 5%;
}

/* --- FLOATING ICONS BACKGROUND --- */
#floating-icons {
  position: fixed;
  inset: 0;
  z-index: -2; /* Behind everything */
  pointer-events: none;
  overflow: hidden;
}

.float-icon {
  position: absolute;
  font-size: 2.5rem; /* A good size for background elements */
  opacity: 0.08; /* Very subtle */
  color: var(--black);
  will-change: transform; /* Performance optimization */
}

.bg-pattern {
  position: fixed; top: 0; left: 0; width: 100%; height: 100%;
  background-image: radial-gradient(#e5e7eb 1px, transparent 1px);
  background-size: 24px 24px;
  opacity: 0.6;
  z-index: -1;
}

/* --- NAVBAR --- */
.navbar { padding: 2rem 0; position: relative; z-index: 10; }
.nav-flex { display: flex; justify-content: space-between; align-items: center; }

.brand { display: flex; align-items: center; gap: 12px; }
.nav-logo { width: 90px; height: 90px; object-fit: contain; border-radius: 8px; } 
.brand-name { font-family: var(--font-head); font-weight: 700; font-size: 1.25rem; letter-spacing: -0.02em; }

.contact-btn {
  text-decoration: none; color: var(--black); font-weight: 500; font-size: 0.9rem;
  border: 1px solid #ddd; padding: 8px 20px; border-radius: 50px;
  transition: 0.2s; background: rgba(255,255,255,0.8);
}
.contact-btn:hover { background: var(--black); color: #fff; border-color: var(--black); }

/* --- HERO SECTION --- */
.hero { 
  padding: 120px 0 100px; 
  text-align: center; 
  position: relative; 
  /* overflow: hidden; - Removed to let icons float out */
}

.hero-content { 
  max-width: 800px; 
  margin: 0 auto; 
  position: relative; 
  z-index: 2; 
}

.badge-pill {
  display: inline-block; font-size: 0.75rem; font-weight: 700; letter-spacing: 0.1em;
  background: var(--black); color: #fff; padding: 6px 14px; border-radius: 50px;
  margin-bottom: 24px;
}

.hero h1 {
  font-family: var(--font-head); 
  font-size: 4.5rem; 
  line-height: 1; 
  font-weight: 800;
  margin-bottom: 24px; 
  letter-spacing: -0.04em;
  color: var(--black);
}

/* --- KINETIC TEXT --- */
.kinetic-text {
  background-image: linear-gradient(
    -45deg, 
    #ff00cc, #333399, #00d4ff, #ffd400, #ff00cc
  );
  background-size: 300% 300%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  animation: gradient-shift 8s ease infinite;
  display: inline-block;
  padding-bottom: 5px;
}

@keyframes gradient-shift {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

.hero p { font-size: 1.125rem; color: #666; max-width: 500px; margin: 0 auto; }


/* --- BENTO GRID & SPOTLIGHT --- */
.projects { padding-bottom: 120px; }
.section-label { font-family: var(--font-head); font-weight: 700; margin-bottom: 24px; font-size: 1.2rem; opacity: 0.4; }

.bento-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: repeat(2, 320px);
  gap: 20px;
}

.bento-box {
  border-radius: 24px;
  position: relative;
  overflow: hidden; 
  padding: 32px;
  display: flex;
  flex-direction: column;
  border: 1px solid rgba(0,0,0,0.06);
  background-clip: padding-box;
  transition: transform 0.2s ease-out;
}

/* SPOTLIGHT OVERLAY */
.spotlight-card { position: relative; }
.spotlight-overlay {
  position: absolute; inset: 0; pointer-events: none; z-index: 5;
  background: radial-gradient(
    600px circle at var(--mouse-x, 0) var(--mouse-y, 0), 
    rgba(255,255,255,0.4),
    transparent 40%
  );
  opacity: 0;
  transition: opacity 0.5s ease;
  mix-blend-mode: overlay; 
}

.bento-box:hover .spotlight-overlay { opacity: 1; }
.bento-box:hover { transform: scale(1.01); } 

/* Grid Spans */
.large-box { grid-column: span 2; }
.tall-box { grid-row: span 2; background: #111; color: #fff; }
.medium-box { grid-column: span 1; }

/* Box Content */
.status-badge {
  position: absolute; top: 20px; right: 20px;
  font-size: 0.7rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em;
  padding: 6px 12px; border-radius: 20px;
  background: rgba(255,255,255,0.5); backdrop-filter: blur(4px); z-index: 10;
}

.theme-dark .status-badge { background: rgba(255,255,255,0.1); color: #fff; }

.icon-wrap { font-size: 1.5rem; margin-bottom: 16px; opacity: 0.8; }
.box-content { position: relative; z-index: 10; }
.box-content h3 { font-family: var(--font-head); font-size: 1.5rem; font-weight: 700; margin-bottom: 8px; }
.box-content p { font-size: 0.95rem; opacity: 0.7; line-height: 1.4; max-width: 90%; }

.tags-row { margin-top: 15px; display: flex; gap: 8px; }
.mini-tag { 
  font-size: 0.7rem; font-weight: 700; background: #333; padding: 4px 10px; 
  border-radius: 4px; text-transform: uppercase; color: #ccc;
}

/* Themes */
.theme-yellow { background: #fffae5; }
.theme-yellow h3 { color: #715a00; }
.theme-yellow .icon-wrap { color: #dcb000; }

.theme-green { background: var(--green-light); }
.theme-green h3 { color: var(--green-dark); }
.theme-green .icon-wrap { color: var(--green-dark); }

.theme-blue { background: var(--blue-light); }
.theme-blue h3 { color: var(--blue-dark); }
.theme-blue .icon-wrap { color: var(--blue-dark); }

/* Visuals */
.box-visual { position: absolute; bottom: -40px; right: -40px; width: 200px; height: 200px; z-index: 1; }
.abstract-card {
  position: absolute; width: 140px; height: 100px; background: #fff;
  border-radius: 12px; box-shadow: 0 10px 20px rgba(0,0,0,0.05);
  border: 1px solid rgba(0,0,0,0.05);
}
.card-1 { bottom: 60px; right: 40px; transform: rotate(-10deg); z-index: 1; }
.card-2 { bottom: 30px; right: 10px; transform: rotate(-5deg); z-index: 2; }

.box-visual-center {
  flex: 1; display: flex; align-items: center; justify-content: center; margin-top: 20px;
}
.d-pad { position: relative; width: 100px; height: 100px; transform: rotate(-10deg); }
.d-pad div { background: #333; position: absolute; border-radius: 4px; }
.d-center { top: 35px; left: 35px; width: 30px; height: 30px; }
.d-up { top: 5px; left: 35px; width: 30px; height: 30px; }
.d-down { bottom: 5px; left: 35px; width: 30px; height: 30px; }
.d-left { top: 35px; left: 5px; width: 30px; height: 30px; }
.d-right { top: 35px; right: 5px; width: 30px; height: 30px; }

/* D-Pad Animation */
.bento-box:hover .d-pad { transform: rotate(0deg) scale(1.1); transition: 0.3s; }
.bento-box:hover .d-up { background: var(--yellow); }

/* Footer */
.footer { padding: 40px 0; border-top: 1px solid #eee; font-size: 0.9rem; color: #888; }
.footer .container { display: flex; justify-content: space-between; }
.socials a { color: var(--black); margin-left: 16px; font-size: 1.2rem; text-decoration: none; opacity: 0.6; transition: 0.2s; }
.socials a:hover { opacity: 1; }

@media (max-width: 900px) {
  .hero h1 { font-size: 3rem; }
  .bento-grid { grid-template-columns: 1fr; grid-template-rows: auto; display: flex; flex-direction: column; gap: 20px; }
  .large-box, .tall-box, .medium-box { grid-column: auto; grid-row: auto; min-height: 250px; }
}