/* Font Import */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600&family=Outfit:wght@500;700;800;900&display=swap');

:root {
  /* Color Palette - Dark & Orange Grid */
  --bg-color: #080808;
  /* Slightly lighter deep black */
  --card-bg: rgba(20, 20, 20, 0.6);
  /* Darker glass for better contrast */
  --card-border: rgba(255, 255, 255, 0.08);

  --text-primary: #ffffff;
  --text-secondary: #a0a0a0;

  /* Accents - "Orange Tones" */
  --accent-color: #FF6600;
  /* Vivid Orange */
  --accent-hover: #FF8533;
  --accent-glow: rgba(255, 102, 0, 0.25);

  /* Shapes & Spacing */
  --radius-card: 24px;
  /* Slightly tighter radius for wider look */
  --radius-pill: 999px;
  --spacing-md: 2rem;

  /* Fonts */
  --font-heading: "Outfit", sans-serif;
  --font-body: "Inter", sans-serif;

  /* Animation Timing */
  --anim-ease: cubic-bezier(0.25, 1, 0.5, 1);
}

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

body {
  background-color: var(--bg-color);
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 40px 40px;
  /* Tech Grid Pattern */
  color: var(--text-primary);
  font-family: var(--font-body);
  line-height: 1.6;
  font-size: 18px;
  padding: var(--spacing-md);
  display: flex;
  justify-content: center;
  position: relative;
  overflow-x: hidden;
  min-height: 100vh;
}

/* --- BACKGROUND BLOBS (SUBTLE) --- */
.blob-cont {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
}

.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(100px);
  /* More blur for subtlety */
  opacity: 0.15;
  /* Reduced opacity */
  animation: blobFloat 20s infinite alternate;
}

.blob-1 {
  width: 700px;
  height: 700px;
  background: #FF6600;
  /* Orange */
  top: -200px;
  left: -200px;
}

.blob-2 {
  width: 600px;
  height: 600px;
  background: #FF3333;
  /* Red-Orange */
  bottom: -100px;
  right: -100px;
  animation-delay: -5s;
}

.blob-3 {
  width: 500px;
  height: 500px;
  background: #FFAA00;
  /* Yellow-Orange */
  top: 40%;
  left: 30%;
  opacity: 0.08;
  animation-delay: -10s;
}

@keyframes blobFloat {
  0% {
    transform: translate(0, 0) scale(1);
  }

  100% {
    transform: translate(30px, 30px) scale(1.05);
  }
}

.page-wrapper {
  max-width: 1400px;
  width: 100%;
}

/* Wider Container */
.page-container {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 4rem;
}

/* --- MARQUEE --- */
.marquee-container {
  grid-column: span 12;
  overflow: hidden;
  white-space: nowrap;
  position: relative;
  mask-image: linear-gradient(to right, transparent, black 20%, black 80%, transparent);
  padding: 1rem 0;
  margin-bottom: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.marquee-content {
  display: inline-block;
  animation: marquee 30s linear infinite;
  /* Slower */
}

.marquee-content span {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.25rem;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-right: 3rem;
  opacity: 0.6;
}

.marquee-content span:hover {
  color: var(--accent-color);
  opacity: 1;
  transition: 0.3s;
  cursor: default;
}

@keyframes marquee {
  0% {
    transform: translateX(0);
  }

  100% {
    transform: translateX(-50%);
  }
}

/* --- GRID LAYOUT & GLASS CARDS --- */
.bento-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 2rem;
  /* More breathing room */
  grid-auto-rows: min-content;
}

.bento-item,
.card-section {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-radius: var(--radius-card);
  padding: 3.5rem;
  /* Spacious padding */
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
  transition: all 0.4s var(--anim-ease);
}

/* Subtle Glow Hover */
.bento-item:hover {
  transform: translateY(-5px);
  border-color: rgba(255, 255, 255, 0.2);
  box-shadow: 0 20px 50px -10px rgba(0, 0, 0, 0.3);
}

/* --- HERO SECTION --- */
.hero-card {
  grid-column: span 12;
  background: transparent;
  border: none;
  box-shadow: none;
  padding: 4rem 1rem 6rem;
  align-items: center;
  text-align: center;
  backdrop-filter: none;
}

.hero-image-wrapper {
  width: 220px;
  height: 220px;
  margin-bottom: 2.5rem;
  border-radius: 50%;
  overflow: hidden;
  border: 2px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 0 50px var(--accent-glow);
  /* Subtle orange glow */
}

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

.floating-anim {
  animation: float 6s ease-in-out infinite;
}

@keyframes float {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-15px);
  }
}

.hero h1 {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: clamp(3.5rem, 5vw, 6rem);
  line-height: 1;
  letter-spacing: -0.03em;
  color: var(--text-primary);
  margin-bottom: 1.5rem;
}

.hero-intro {
  font-size: 1.4rem;
  color: var(--text-secondary);
  max-width: 650px;
  font-weight: 400;
}


/* --- TYPOGRAPHY & SECTIONS --- */
h2 {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 2.25rem;
  margin-bottom: 1.5rem;
  letter-spacing: -0.02em;
  color: var(--text-primary);
}

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

/* Specific Card Layouts */
.about-card {
  grid-column: span 7;
}

.personal-card {
  grid-column: span 5;
  background: linear-gradient(135deg, rgba(255, 102, 0, 0.08), transparent);
  /* Very subtle orange tint */
}

.services-card {
  grid-column: span 12;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}

.service-item {
  background: rgba(255, 255, 255, 0.03);
  padding: 2rem;
  border-radius: 20px;
  transition: all 0.3s;
  border: 1px solid transparent;
}

.service-item:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: var(--accent-color);
  transform: translateY(-5px);
}

.service-item h3 {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
}

/* LinkedIn Neon Pill - Orange */
.linkedin-card {
  grid-column: span 12;
  background: var(--accent-color);
  border: none;
  align-items: center;
  text-align: center;
  text-decoration: none;
  padding: 3rem;
}

.linkedin-card h2,
.linkedin-card p {
  color: #000;
}

.linkedin-btn {
  margin-top: 1.5rem;
  background: #000;
  color: var(--accent-color);
  padding: 1rem 2.5rem;
  border-radius: var(--radius-pill);
  font-weight: 700;
  font-size: 1rem;
  transition: transform 0.2s;
}

.linkedin-card:hover .linkedin-btn {
  transform: scale(1.05);
}

/* Resume & Education */
.resume-card {
  grid-column: span 12;
}

.resume-item {
  display: flex;
  gap: 2rem;
  padding-bottom: 2.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  margin-bottom: 2.5rem;
}

.resume-item:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

.resume-logo-wrapper {
  width: 64px;
  height: 64px;
  background: #fff;
  border-radius: 16px;
  padding: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.resume-logo {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.resume-content h3 a {
  color: var(--text-primary);
  text-decoration: none;
  transition: color 0.2s;
}

.resume-content h3 a:hover {
  color: var(--accent-color);
}

.resume-skills {
  background: rgba(255, 255, 255, 0.05);
  color: #ccc !important;
  padding: 1.25rem;
  border-radius: 16px;
  font-size: 0.95rem;
}

.resume-quote {
  border-left: 3px solid var(--accent-color);
  padding-left: 1.5rem;
  color: #bbb !important;
}

/* --- FOOTER & ICONS --- */
.check-icon {
  width: 1.25em;
  height: 1.25em;
  color: var(--accent-color);
  margin-right: 0.5rem;
  vertical-align: text-bottom;
}

.resume-content ul li {
  margin-bottom: 0.5rem;
  font-size: 1rem;
  color: var(--text-secondary);
  display: flex;
  /* Better alignment for icon */
  align-items: flex-start;
}

/* Utils */
/* Footer Contrast */
.footer-card {
  grid-column: span 12;
  text-align: center;
  padding-top: 6rem;
  padding-bottom: 4rem;
  color: #bdbdbd;
  /* Lighter than text-secondary */
}

.footer-nav {
  display: inline-flex;
  background: rgba(255, 255, 255, 0.08);
  /* More visible background */
  padding: 0.5rem;
  border-radius: var(--radius-pill);
  gap: 0.5rem;
  margin-top: 2rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-nav a {
  text-decoration: none;
  color: #e0e0e0;
  /* High contrast text */
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius-pill);
  font-size: 0.95rem;
  font-weight: 600;
  transition: all 0.2s;
}

.footer-nav a:hover {
  background-color: var(--accent-color);
  color: #000;
}

.fade-in-up {
  opacity: 0;
  animation: fadeInUp 0.8s var(--anim-ease) forwards;
  animation-delay: calc(var(--delay) * 100ms);
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(40px);
  }

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

/* Mobile */
@media (max-width: 600px) {
  body {
    padding: 1rem;
    background-size: 30px 30px;
  }

  .page-container {
    width: 100%;
    gap: 1.5rem;
    /* Tighter gap for mobile */
  }

  /* Cards */
  .hero-card,
  .bento-item,
  .card-section {
    padding: 2rem 1.5rem !important;
    /* Force readable padding */
    width: 100%;
    /* Prevent overflow */
    word-wrap: break-word;
    /* Safety for long words */
  }

  /* Typography Checks */
  .hero h1 {
    font-size: 2.25rem;
    line-height: 1.1;
  }

  .hero-intro {
    font-size: 1.15rem;
  }

  h2 {
    font-size: 1.75rem;
  }

  p,
  li {
    font-size: 1rem;
    line-height: 1.6;
  }

  /* Resume Logos - Fix Squashing */
  .resume-item {
    flex-direction: column;
    gap: 1rem;
  }

  .resume-logo-wrapper {
    flex-shrink: 0;
    /* CRITICAL: Prevent logo squashing */
    width: 56px;
    height: 56px;
  }

  /* Ensure flex items don't overflow */
  .resume-content {
    width: 100%;
    min-width: 0;
    /* Flexbox overflow fix */
  }

  .resume-content h3 {
    font-size: 1.2rem;
    word-wrap: break-word;
  }

  /* Marquee safety */
  .marquee-content span {
    font-size: 1rem;
    margin-right: 1.5rem;
  }

  /* Footer safety */
  .footer-nav {
    flex-direction: column;
    width: 100%;
    max-width: 100%;
  }

  .footer-nav a {
    width: 100%;
    box-sizing: border-box;
  }
}