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

:root {
  --bg-dark: #1a1a1a;
  --bg-card: #252525;
  --coffee-light: #d4b896;
  --coffee-dark: #8b7355;
  --accent-green: #7ba591;
  --text-primary: #e5e5e5;
  --text-secondary: #a0a0a0;
  --terminal-green: #4ade80;
  --code-purple: #c084fc;
  --code-blue: #60a5fa;
}

body {
  font-family: "Courier New", monospace;
  background: var(--bg-dark);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
  overflow-y: hidden; /* Remove overflow-y to let scroll-container handle it */
  position: relative;
  height: 100vh;
}

/* Added background image with dark overlay for coder aesthetic */
body::before {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url("images/coder-bg.png");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  opacity: 0.15;
  pointer-events: none;
  z-index: 0;
}

/* Moved scan line texture to after pseudo element */
body::after {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 2px,
    rgba(255, 255, 255, 0.01) 2px,
    rgba(255, 255, 255, 0.01) 4px
  );
  pointer-events: none;
  z-index: 1;
}

/* Added scroll snap container styling */
.scroll-container {
  height: 100vh;
  overflow-y: scroll;
  overflow-x: hidden;
  scroll-snap-type: y mandatory;
  scroll-behavior: smooth;
  scrollbar-width: thin;
  scrollbar-color: var(--coffee-dark) var(--bg-dark);
}

.scroll-container::-webkit-scrollbar {
  width: 8px;
}

.scroll-container::-webkit-scrollbar-track {
  background: var(--bg-dark);
}

.scroll-container::-webkit-scrollbar-thumb {
  background: var(--coffee-dark);
  border-radius: 4px;
}

.scroll-container::-webkit-scrollbar-thumb:hover {
  background: var(--accent-green);
}

.snap-section {
  min-height: 100vh;
  height: 100vh;
  scroll-snap-align: start;
  scroll-snap-stop: always;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  position: relative;
  z-index: 2;
}

.section-content {
  max-width: 900px;
  width: 100%;
}

#matrix-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  opacity: 0.05;
  z-index: 0;
}

.floating-icons {
  position: fixed;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  pointer-events: none;
  z-index: 0;
}

.tech-icon {
  position: absolute;
  font-size: 3rem;
  color: var(--coffee-dark);
  opacity: 0.1;
  animation: float 20s infinite ease-in-out;
  font-family: "Courier New", monospace;
  font-weight: bold;
}

@keyframes float {
  0%,
  100% {
    transform: translateY(0) rotate(0deg);
  }
  25% {
    transform: translateY(-30px) rotate(5deg);
  }
  50% {
    transform: translateY(0) rotate(0deg);
  }
  75% {
    transform: translateY(-15px) rotate(-5deg);
  }
}

/* Hero Section */
.hero {
  text-align: center;
  animation: fadeInUp 1s ease-out;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.terminal-header {
  display: inline-flex;
  gap: 1rem;
  padding: 0.4rem 0.8rem;
  background: rgba(37, 37, 37, 0.6);
  border: 1px solid var(--coffee-dark);
  border-radius: 8px;
  margin-bottom: 1.5rem;
  font-size: 0.85rem;
  backdrop-filter: blur(10px);
}

.terminal-prompt {
  color: var(--terminal-green);
  font-weight: bold;
}

.terminal-command {
  color: var(--code-blue);
}

/* Reduced heading sizes for more compact design */
.typing-text {
  font-size: 3rem;
  font-weight: bold;
  color: var(--coffee-light);
  margin-bottom: 0.5rem;
  display: inline-flex;
  align-items: center;
  text-shadow: 0 0 30px rgba(212, 184, 150, 0.5);
}

#typed-name {
  display: inline-block;
}

.cursor {
  display: inline-block;
  width: 3px;
  background: var(--terminal-green);
  margin-left: 5px;
  animation: blink 1s infinite;
  box-shadow: 0 0 10px var(--terminal-green);
}

@keyframes blink {
  0%,
  50% {
    opacity: 1;
  }
  51%,
  100% {
    opacity: 0;
  }
}

.subtitle {
  font-size: 1.2rem;
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
}

/* Added tagline styling for hero section */
.tagline {
  font-size: 1rem;
  color: var(--text-secondary);
  margin-bottom: 1rem;
  font-style: italic;
}

/* Contact Icons */
.contact-icons {
  display: flex;
  gap: 1.2rem;
  justify-content: center;
  margin-top: 1.5rem;
}

.contact-card {
  width: 60px;
  height: 60px;
  background: var(--bg-card);
  border: 2px solid var(--coffee-dark);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  text-decoration: none;
  color: var(--coffee-light);
  position: relative;
  overflow: hidden;
}

.contact-card::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  background: radial-gradient(circle, var(--accent-green) 0%, transparent 70%);
  transform: translate(-50%, -50%);
  transition: all 0.4s ease;
  opacity: 0;
}

.contact-card:hover {
  transform: scale(1.1) rotate(5deg);
  border-color: var(--accent-green);
  box-shadow: 0 0 30px rgba(123, 165, 145, 0.5);
}

.contact-card:hover::before {
  width: 200px;
  height: 200px;
  opacity: 0.2;
}

.contact-card .icon {
  width: 28px;
  height: 28px;
  transition: all 0.3s ease;
  position: relative;
  z-index: 1;
}

.contact-card:hover .icon {
  transform: scale(1.1);
  filter: drop-shadow(0 0 8px var(--accent-green));
}

/* Card Styles */
.card {
  background: rgba(37, 37, 37, 0.6);
  border: 2px solid var(--coffee-dark);
  border-radius: 16px;
  padding: 2rem;
  backdrop-filter: blur(10px);
  transition: all 0.3s ease;
}

.card:hover {
  border-color: var(--accent-green);
  box-shadow: 0 10px 40px rgba(123, 165, 145, 0.2);
  transform: translateY(-5px);
}

/* Reduced section title size */
.section-title {
  font-size: 1.8rem;
  color: var(--coffee-light);
  margin-bottom: 1.5rem;
  text-shadow: 0 0 20px rgba(212, 184, 150, 0.3);
  position: relative;
  display: inline-block;
}

.section-title::after {
  content: "_";
  animation: blink 1s infinite;
  color: var(--terminal-green);
}

/* Reduced text size for compact reading */
.text-content {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* Tech Stack Grid */
.tech-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 1rem;
}

.tech-item {
  background: rgba(26, 26, 26, 0.6);
  border: 1px solid var(--coffee-dark);
  border-radius: 12px;
  padding: 1rem;
  transition: all 0.3s ease;
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

.tech-item:hover {
  border-color: var(--accent-green);
  transform: translateY(-5px) scale(1.05);
  box-shadow: 0 10px 30px rgba(123, 165, 145, 0.3);
}

.code-snippet {
  font-family: "Courier New", monospace;
  color: var(--code-purple);
  font-size: 0.85rem;
  padding: 0.4rem;
  background: rgba(0, 0, 0, 0.3);
  border-left: 3px solid var(--terminal-green);
  border-radius: 4px;
  text-align: center;
  /* Removed flex display since no icons */
}

/* Removed tech icon image styles since no longer needed */

/* Experience */
.experience-item {
  padding: 1.2rem;
  background: rgba(26, 26, 26, 0.6);
  border-left: 4px solid var(--accent-green);
  border-radius: 8px;
  transition: all 0.3s ease;
}

.experience-item:hover {
  transform: translateX(10px);
  box-shadow: -5px 0 20px rgba(123, 165, 145, 0.3);
}

.experience-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.5rem;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.experience-header h3 {
  font-size: 1.2rem;
  color: var(--coffee-light);
}

.experience-date {
  color: var(--terminal-green);
  font-size: 0.85rem;
}

.experience-company {
  color: var(--code-blue);
  font-size: 0.95rem;
  margin-bottom: 0.5rem;
}

/* Projects */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1.2rem;
}

.project-card {
  background: rgba(26, 26, 26, 0.6);
  border: 2px solid var(--coffee-dark);
  border-radius: 12px;
  padding: 1.2rem;
  transition: all 0.4s ease;
  position: relative;
  text-align: center;
}

.project-card:hover {
  border-color: var(--accent-green);
  transform: translateY(-5px);
  box-shadow: 0 10px 40px rgba(123, 165, 145, 0.4);
}

.project-card h3 {
  font-size: 1rem;
  color: var(--coffee-light);
  margin-bottom: 0.5rem;
}

.project-status {
  color: var(--terminal-green);
  font-size: 0.85rem;
}

/* Contact Info */
.contact-info {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

/* Added wrapper link styling for clickable contact items */
.contact-item-link {
  text-decoration: none;
  color: inherit;
  display: block;
}

.contact-item {
  display: flex;
  gap: 1rem;
  padding: 0.8rem;
  background: rgba(26, 26, 26, 0.6);
  border-left: 3px solid var(--terminal-green);
  border-radius: 8px;
  transition: all 0.3s ease;
  cursor: pointer;
}

.contact-item:hover {
  transform: translateX(10px);
  border-left-color: var(--accent-green);
  box-shadow: -5px 0 20px rgba(123, 165, 145, 0.3);
  background: rgba(26, 26, 26, 0.9);
}

.contact-label {
  color: var(--coffee-light);
  font-weight: bold;
  min-width: 80px;
  font-size: 0.9rem;
}

.contact-value {
  color: var(--text-secondary);
  font-size: 0.9rem;
}

/* Added expertise grid styling for "What I Do" section */
/* Expertise Grid */
.expertise-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
}

.expertise-item {
  background: rgba(26, 26, 26, 0.6);
  border: 2px solid var(--coffee-dark);
  border-radius: 12px;
  padding: 1.5rem;
  transition: all 0.3s ease;
}

.expertise-item:hover {
  border-color: var(--accent-green);
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(123, 165, 145, 0.3);
}

.expertise-item h3 {
  font-size: 1.1rem;
  color: var(--coffee-light);
  margin-bottom: 0.8rem;
}

/* Added impact list styling for "Featured Impact" section */
/* Impact List */
.impact-list {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}

.impact-item {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  padding: 1rem;
  background: rgba(26, 26, 26, 0.6);
  border-left: 4px solid var(--terminal-green);
  border-radius: 8px;
  transition: all 0.3s ease;
}

.impact-item:hover {
  transform: translateX(10px);
  border-left-color: var(--accent-green);
  box-shadow: -5px 0 20px rgba(123, 165, 145, 0.3);
}

.impact-metric {
  font-size: 1.8rem;
  font-weight: bold;
  color: var(--terminal-green);
  min-width: 100px;
  text-align: center;
  text-shadow: 0 0 15px rgba(74, 222, 128, 0.5);
}

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

/* Completely redesigned awards and certifications with consistent card styling */

/* Awards Section */
.awards-section {
  margin-bottom: 2.5rem;
}

.subsection-title {
  font-size: 1.2rem;
  color: var(--accent-green);
  margin-bottom: 1rem;
  font-weight: bold;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.award-card {
  padding: 1.2rem;
  background: rgba(26, 26, 26, 0.6);
  border: 2px solid var(--coffee-dark);
  border-radius: 12px;
  transition: all 0.3s ease;
  text-align: center;
}

.award-card:hover {
  border-color: var(--accent-green);
  transform: translateY(-3px);
  box-shadow: 0 5px 20px rgba(123, 165, 145, 0.3);
}

.award-content h4 {
  font-size: 1.1rem;
  color: var(--coffee-light);
  margin-bottom: 0.5rem;
}

.award-year {
  font-size: 0.95rem;
  color: var(--terminal-green);
  font-weight: bold;
}

/* Certifications Section */
.certifications-section {
  margin-top: 2.5rem;
}

.cert-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.2rem;
}

.cert-card {
  display: block;
  padding: 1.2rem;
  background: rgba(26, 26, 26, 0.6);
  border: 2px solid var(--coffee-dark);
  border-radius: 12px;
  transition: all 0.3s ease;
  text-decoration: none;
  text-align: center;
}

.cert-card:hover {
  border-color: var(--accent-green);
  transform: translateY(-3px);
  box-shadow: 0 5px 20px rgba(123, 165, 145, 0.3);
}

.cert-content h4 {
  font-size: 0.95rem;
  color: var(--code-blue);
  line-height: 1.4;
}

.cert-card:hover .cert-content h4 {
  color: var(--terminal-green);
}

/* Remove old badge image styles as we're now using text cards */

/* Remove old certification styles */
.cert-section {
  margin-bottom: 0;
}

.cert-badges-grid {
  display: none;
}

.cert-badge {
  display: none;
}

/* Responsive */
@media (max-width: 768px) {
  /* Added comprehensive mobile responsive styles */

  .snap-section {
    padding: 1rem;
  }

  .section-content {
    max-width: 100%;
  }

  .terminal-header {
    font-size: 0.75rem;
    padding: 0.3rem 0.6rem;
    gap: 0.5rem;
  }

  .typing-text {
    font-size: 2rem;
  }

  .subtitle {
    font-size: 1rem;
  }

  .tagline {
    font-size: 0.9rem;
  }

  .section-title {
    font-size: 1.5rem;
  }

  .text-content {
    font-size: 0.9rem;
  }

  .card {
    padding: 1.5rem;
  }

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

  .tech-item {
    padding: 0.8rem;
  }

  .code-snippet {
    font-size: 0.8rem;
  }

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

  .project-card {
    padding: 1rem;
  }

  .contact-icons {
    gap: 0.8rem;
  }

  .contact-card {
    width: 50px;
    height: 50px;
  }

  .contact-card .icon {
    width: 24px;
    height: 24px;
  }

  .expertise-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .expertise-item {
    padding: 1rem;
  }

  .expertise-item h3 {
    font-size: 1rem;
  }

  .impact-list {
    gap: 1rem;
  }

  .impact-item {
    flex-direction: column;
    gap: 0.5rem;
    padding: 0.8rem;
    text-align: center;
  }

  .impact-metric {
    font-size: 1.5rem;
    min-width: auto;
  }

  .impact-desc {
    font-size: 0.85rem;
  }

  .experience-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .experience-header h3 {
    font-size: 1rem;
  }

  .experience-date {
    font-size: 0.8rem;
  }

  .experience-company {
    font-size: 0.85rem;
  }

  .cert-cards {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .cert-card {
    padding: 1rem;
  }

  .cert-content h4 {
    font-size: 0.9rem;
  }

  .subsection-title {
    font-size: 1rem;
  }

  .contact-info {
    gap: 0.8rem;
  }

  .contact-item {
    padding: 0.6rem;
    gap: 0.8rem;
  }

  .contact-label {
    font-size: 0.85rem;
    min-width: 70px;
  }

  .contact-value {
    font-size: 0.85rem;
  }
}

/* Added extra small screens (below 480px) */
@media (max-width: 480px) {
  .typing-text {
    font-size: 1.5rem;
  }

  .subtitle {
    font-size: 0.9rem;
  }

  .tagline {
    font-size: 0.85rem;
  }

  .section-title {
    font-size: 1.3rem;
  }

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

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

  .contact-icons {
    gap: 0.6rem;
  }

  .contact-card {
    width: 45px;
    height: 45px;
  }

  .contact-card .icon {
    width: 20px;
    height: 20px;
  }

  .impact-metric {
    font-size: 1.3rem;
  }

  .card {
    padding: 1rem;
  }
}

/* Scan line effect */
/* Renamed to scanline animation since body::after is now used for texture */
@keyframes scan {
  0% {
    top: 0;
  }
  100% {
    top: 100%;
  }
}

.scan-line {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(to right, transparent, var(--terminal-green), transparent);
  opacity: 0.3;
  animation: scan 8s linear infinite;
  pointer-events: none;
  z-index: 9999;
}
