/* Professional Portfolio Stylesheet */
/* ================================ */

/* CSS Custom Properties */
:root {
  /* Primary Colors */
  --primary-navy: #0a192f;
  --secondary-navy: #112240;
  --accent-teal: #64ffda;
  --accent-green: #00d4aa;
  
  /* Neutral Colors */
  --lightest-slate: #ccd6f6;
  --light-slate: #a8b2d1;
  --slate: #8892b0;
  --dark-slate: #495670;
  --darkest-slate: #2e3440;
  
  /* Background Colors */
  --bg-primary: #0a192f;
  --bg-secondary: #112240;
  --bg-card: #1a2332;
  --bg-overlay: rgba(10, 25, 47, 0.9);
  
  /* Shadows */
  --shadow-light: 0 10px 30px -15px rgba(2, 12, 27, 0.7);
  --shadow-heavy: 0 20px 30px -15px rgba(2, 12, 27, 0.8);
  
  /* Typography */
  --font-sans: 'Inter', 'San Francisco', 'SF Pro Text', -apple-system, system-ui, sans-serif;
  --font-mono: 'SF Mono', 'Monaco', 'Inconsolata', 'Roboto Mono', monospace;
  
  /* Transitions */
  --transition: all 0.25s cubic-bezier(0.645, 0.045, 0.355, 1);
  
  /* Border Radius */
  --border-radius: 4px;
  
  /* Z-index values */
  --z-tooltip: 10;
  --z-fixed: 100;
  --z-modal: 1000;
  --z-content: 5;
  --z-overlay: 2;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', Arial, Helvetica, sans-serif;
  line-height: 1.3;
  color: var(--slate);
  background-color: var(--bg-primary);
  counter-reset: section;
  overflow-x: hidden;
}

::selection {
  background-color: var(--accent-teal);
  color: var(--primary-navy);
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  color: var(--lightest-slate);
  font-weight: 600;
  line-height: 1.1;
}

.section-heading {
  display: flex;
  align-items: center;
  position: relative;
  margin: 10px 0 40px;
  width: 100%;
  font-size: clamp(26px, 5vw, 32px);
  font-weight: 600;
  color: var(--lightest-slate);
  white-space: nowrap;
}

.section-heading::before {
  position: relative;
  bottom: 2px;
  counter-increment: section;
  content: "0" counter(section) ".";
  margin-right: 10px;
  color: var(--accent-teal);
  font-family: var(--font-mono);
  font-size: clamp(16px, 3vw, 20px);
  font-weight: 400;
}

.section-heading::after {
  content: "";
  display: block;
  position: relative;
  top: -5px;
  width: 300px;
  height: 1px;
  margin-left: 20px;
  background-color: var(--darkest-slate);
}

/* Utilities */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 50px;
  width: 100%;
}

@media (max-width: 768px) {
  .container {
    padding: 0 25px;
  }
}

.btn {
  display: inline-block;
  padding: 1.25rem 1.75rem;
  font-family: var(--font-mono);
  font-size: 14px;
  font-weight: 400;
  line-height: 1;
  text-decoration: none;
  cursor: pointer;
  transition: var(--transition);
  border: 1px solid var(--accent-teal);
  border-radius: var(--border-radius);
  background: transparent;
  color: var(--accent-teal);
  position: relative;
}

.btn:hover,
.btn:focus {
  background-color: rgba(100, 255, 218, 0.1);
  transform: translate(-4px, -4px);
  box-shadow: 4px 4px 0 var(--accent-teal);
}

.btn-large {
  padding: 1.25rem 1.75rem;
  font-size: 16px;
}

/* Navigation */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: var(--z-fixed);
  background-color: var(--bg-overlay);
  backdrop-filter: blur(10px);
  transition: var(--transition);
  padding: 0 50px;
  height: 100px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.header.scrolled {
  background-color: var(--bg-overlay);
  box-shadow: var(--shadow-light);
  height: 70px;
}

.logo {
  font-family: var(--font-mono);
  font-size: 24px;
  font-weight: 600;
  color: var(--accent-teal);
  text-decoration: none;
  z-index: 1;
}

.nav {
  display: flex;
  align-items: center;
  list-style: none;
}

.nav-item {
  margin: 0 5px;
  position: relative;
  counter-increment: item 1;
  font-size: 13px;
}

.nav-link {
  padding: 10px;
  text-decoration: none;
  color: var(--lightest-slate);
  font-family: var(--font-mono);
  font-size: 14px;
  font-weight: 400;
  transition: var(--transition);
}

.nav-link::before {
  content: "0" counter(item) ".";
  margin-right: 5px;
  color: var(--accent-teal);
  font-size: 12px;
  text-align: right;
}

.nav-link:hover {
  color: var(--accent-teal);
}

.resume-button {
  margin-left: 15px;
  font-size: 14px;
}

/* Hero Section */
.hero {
  min-height: 100vh;
  padding: 120px 0 0 0;
  display: flex;
  align-items: center;
  justify-content: flex-start;
}

.hero-content {
  max-width: 1000px;
  width: 100%;
}

.hero-intro {
  margin: 0 0 30px 4px;
  color: var(--accent-teal);
  font-family: var(--font-mono);
  font-size: clamp(14px, 5vw, 16px);
  font-weight: 400;
}

.hero-title {
  margin: 0;
  font-size: clamp(40px, 8vw, 80px);
  color: var(--lightest-slate);
  line-height: 1.1;
}

.hero-subtitle {
  margin-top: 5px;
  font-size: clamp(40px, 8vw, 80px);
  color: var(--slate);
  line-height: 1.1;
}

.hero-description {
  margin: 20px 0 0;
  max-width: 540px;
  color: var(--slate);
  font-size: 20px;
  line-height: 1.3;
}

.hero-cta {
  margin-top: 50px;
}

/* About Section */
.about {
  padding: 100px 0;
}

.about-content {
  display: grid;
  grid-template-columns: 3fr 2fr;
  gap: 50px;
  align-items: center;
}

.about-text {
  font-size: 20px;
  color: var(--slate);
}

.about-text p {
  margin: 0 0 15px;
}

.about-text a {
  color: var(--accent-teal);
  text-decoration: none;
}

.about-text a:hover {
  text-decoration: underline;
}

.skills-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(140px, 200px));
  gap: 0 10px;
  padding: 0;
  margin: 20px 0 0;
  overflow: hidden;
  list-style: none;
}

.skills-list li {
  position: relative;
  margin-bottom: 10px;
  padding-left: 20px;
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--slate);
}

.skills-list li::before {
  content: "▹";
  position: absolute;
  left: 0;
  color: var(--accent-teal);
  font-size: 14px;
  line-height: 12px;
}

.about-pic {
  position: relative;
  max-width: 300px;
  margin-left: auto;
}

.about-pic .wrapper {
  box-shadow: var(--shadow-light);
  border-radius: var(--border-radius);
  background-color: var(--bg-card);
  display: block;
  position: relative;
  width: 100%;
  border: 2px solid var(--accent-teal);
  overflow: hidden;
}

.about-pic .wrapper:hover::after,
.about-pic .wrapper:focus::after {
  top: 15px;
  left: 15px;
}

.about-pic .wrapper::after {
  content: "";
  display: block;
  position: absolute;
  width: 100%;
  height: 100%;
  border-radius: var(--border-radius);
  transition: var(--transition);
  top: 20px;
  left: 20px;
  background-color: transparent;
  border: 2px solid var(--accent-teal);
  z-index: -1;
}

.code-visualization {
  padding: 30px;
  font-family: var(--font-mono);
  font-size: 14px;
  line-height: 1.6;
  height: 400px;
  position: relative;
  background: linear-gradient(135deg, var(--bg-card) 0%, var(--bg-secondary) 100%);
}

.code-line {
  margin-bottom: 8px;
  opacity: 0;
  transform: translateX(-20px);
  animation: codeAppear 0.6s ease-out forwards;
}

.code-line:nth-child(1) { animation-delay: 0.1s; }
.code-line:nth-child(2) { animation-delay: 0.2s; }
.code-line:nth-child(3) { animation-delay: 0.3s; }
.code-line:nth-child(4) { animation-delay: 0.4s; }
.code-line:nth-child(5) { animation-delay: 0.5s; }
.code-line:nth-child(6) { animation-delay: 0.6s; }
.code-line:nth-child(7) { animation-delay: 0.7s; }

@keyframes codeAppear {
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.code-line.blank {
  height: 8px;
}

.code-line.indent {
  padding-left: 20px;
}

.keyword {
  color: #ff7eb6;
}

.module {
  color: #42a5f5;
}

.variable {
  color: #66bb6a;
}

.function {
  color: #ffa726;
}

.string {
  color: #a5d6ff;
}

.comment {
  color: var(--slate);
  font-style: italic;
}

.data-points {
  position: absolute;
  bottom: 30px;
  right: 30px;
  display: flex;
  gap: 8px;
}

.point {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background-color: var(--accent-teal);
  animation: pulse 2s ease-in-out infinite;
  animation-delay: var(--delay);
}

@keyframes pulse {
  0%, 100% {
    opacity: 0.3;
    transform: scale(1);
  }
  50% {
    opacity: 1;
    transform: scale(1.2);
  }
}

/* Experience Section */
.experience {
  padding: 100px 0;
}

.experience-tabs {
  display: flex;
  align-items: flex-start;
  position: relative;
}

.tab-list {
  position: relative;
  z-index: 3;
  width: max-content;
  padding: 0;
  margin: 0;
  list-style: none;
}

.tab-list::before {
  content: "";
  display: block;
  position: absolute;
  top: 0;
  left: 0;
  width: 2px;
  height: 100%;
  background-color: var(--darkest-slate);
  border-radius: var(--border-radius);
}

.tab-button {
  display: flex;
  align-items: center;
  width: 100%;
  height: 42px;
  padding: 0 20px 2px;
  border: none;
  border-left: 2px solid var(--darkest-slate);
  background-color: transparent;
  color: var(--slate);
  font-family: var(--font-mono);
  font-size: 13px;
  text-align: left;
  white-space: nowrap;
  cursor: pointer;
  transition: var(--transition);
}

.tab-button:hover,
.tab-button:focus {
  background-color: var(--lightest-navy);
  color: var(--accent-teal);
}

.tab-button.active {
  color: var(--accent-teal);
  border-left-color: var(--accent-teal);
}

.tab-panels {
  position: relative;
  width: 100%;
  margin-left: 20px;
}

.tab-panel {
  width: 100%;
  height: auto;
  padding: 10px 5px;
}

.tab-panel h3 {
  margin-bottom: 2px;
  font-size: 22px;
  font-weight: 500;
  line-height: 1.3;
  color: var(--lightest-slate);
}

.tab-panel h3 .company {
  color: var(--accent-teal);
}

.tab-panel .range {
  margin-bottom: 25px;
  color: var(--light-slate);
  font-family: var(--font-mono);
  font-size: 13px;
}

.tab-panel ul {
  padding: 0;
  margin: 0;
  list-style: none;
  font-size: 18px;
}

.tab-panel li {
  position: relative;
  padding-left: 30px;
  margin-bottom: 10px;
  color: var(--slate);
}

.tab-panel li::before {
  content: "▹";
  position: absolute;
  left: 0;
  color: var(--accent-teal);
}

/* Projects Section */
.projects {
  padding: 100px 0;
}

.projects-grid {
  list-style: none;
  padding: 0;
  margin: 0;
}

.project-item {
  position: relative;
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(12, 1fr);
  align-items: center;
  margin-bottom: 100px;
}

.project-item:nth-of-type(odd) .project-content {
  grid-column: 1 / 7;
  text-align: left;
}

.project-item:nth-of-type(even) .project-content {
  grid-column: 7 / 13;
  text-align: right;
}

.project-item:nth-of-type(odd) .project-image {
  grid-column: 6 / 13;
}

.project-item:nth-of-type(even) .project-image {
  grid-column: 1 / 8;
}

.project-content {
  position: relative;
  grid-column: 1 / 7;
  grid-row: 1 / -1;
  z-index: var(--z-content);
}

.project-overline {
  margin: 10px 0;
  color: var(--accent-teal);
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 400;
}

.project-title {
  color: var(--lightest-slate);
  font-size: clamp(24px, 5vw, 28px);
  margin: 0 0 20px;
}

.project-title a {
  color: inherit;
  text-decoration: none;
}

.project-description {
  box-shadow: var(--shadow-light);
  position: relative;
  z-index: var(--z-content);
  padding: 25px;
  border-radius: var(--border-radius);
  background-color: var(--bg-secondary);
  color: var(--light-slate);
  font-size: 18px;
}

.project-tech-list {
  display: flex;
  flex-wrap: wrap;
  position: relative;
  z-index: var(--z-content);
  margin: 25px 0 10px;
  padding: 0;
  list-style: none;
}

.project-item:nth-of-type(odd) .project-tech-list {
  justify-content: flex-start;
}

.project-item:nth-of-type(even) .project-tech-list {
  justify-content: flex-end;
}

.project-tech-list li {
  margin: 0 20px 5px 0;
  color: var(--light-slate);
  font-family: var(--font-mono);
  font-size: 13px;
  white-space: nowrap;
}

.project-item:nth-of-type(even) .project-tech-list li {
  margin: 0 0 5px 20px;
}

.project-links {
  display: flex;
  align-items: center;
  position: relative;
  z-index: var(--z-content);
  margin-top: 10px;
  margin-left: -10px;
}

.project-item:nth-of-type(even) .project-links {
  justify-content: flex-end;
  margin-left: 0;
  margin-right: -10px;
}

.project-links a {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 10px;
  color: var(--lightest-slate);
  transition: var(--transition);
  position: relative;
  z-index: var(--z-content);
}

.project-links a:hover {
  color: var(--accent-teal);
}

.project-links svg {
  width: 20px;
  height: 20px;
}

.project-image {
  box-shadow: var(--shadow-light);
  grid-column: 6 / 13;
  grid-row: 1 / -1;
  position: relative;
  z-index: 1;
}

.project-image a {
  width: 100%;
  height: 100%;
  background-color: var(--accent-teal);
  border-radius: var(--border-radius);
  vertical-align: middle;
}

.project-image a::before {
  content: "";
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: var(--secondary-navy);
  mix-blend-mode: screen;
  transition: var(--transition);
}

.project-image a:hover::before,
.project-image a:focus::before {
  background: transparent;
}

.project-image img {
  border-radius: var(--border-radius);
  mix-blend-mode: multiply;
  filter: grayscale(100%) contrast(1) brightness(90%);
  transition: var(--transition);
  width: 100%;
  height: auto;
  object-fit: cover;
  background-color: var(--bg-secondary);
}

.project-image a:hover img,
.project-image a:focus img {
  filter: none;
  mix-blend-mode: normal;
}

/* Image Carousel Styles */
.image-carousel {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: var(--border-radius);
  overflow: hidden;
}

.carousel-container {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
  border-radius: var(--border-radius);
}

.carousel-track {
  display: flex;
  width: 100%;
  height: 100%;
  transition: transform 0.5s cubic-bezier(0.4, 0.0, 0.2, 1);
}

.carousel-slide {
  flex: 0 0 100%;
  width: 100%;
  height: 100%;
  position: relative;
}

.carousel-slide a {
  display: block;
  width: 100%;
  height: 100%;
  position: relative;
}

.carousel-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: var(--border-radius);
  mix-blend-mode: multiply;
  filter: grayscale(100%) contrast(1) brightness(90%);
  transition: var(--transition);
}

.carousel-slide a:hover img,
.carousel-slide a:focus img {
  filter: none;
  mix-blend-mode: normal;
}

.carousel-slide a::before {
  content: "";
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: var(--secondary-navy);
  mix-blend-mode: screen;
  transition: var(--transition);
  border-radius: var(--border-radius);
}

.carousel-slide a:hover::before,
.carousel-slide a:focus::before {
  background: transparent;
}

.carousel-controls {
  position: absolute;
  bottom: 15px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 15px;
  background: rgba(10, 25, 47, 0.8);
  backdrop-filter: blur(10px);
  padding: 8px 15px;
  border-radius: 25px;
  opacity: 0;
  transition: var(--transition);
}

.image-carousel:hover .carousel-controls {
  opacity: 1;
}

.carousel-btn {
  background: none;
  border: none;
  color: var(--accent-teal);
  font-size: 20px;
  cursor: pointer;
  padding: 2px 8px;
  border-radius: 50%;
  transition: var(--transition);
  line-height: 1;
  user-select: none;
}

.carousel-btn:hover {
  background: var(--accent-teal);
  color: var(--primary-navy);
}

.carousel-indicators {
  display: flex;
  gap: 8px;
  align-items: center;
}

.indicator {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  border: none;
  background: var(--slate);
  cursor: pointer;
  transition: var(--transition);
  opacity: 0.6;
}

.indicator.active {
  background: var(--accent-teal);
  opacity: 1;
  transform: scale(1.2);
}

.indicator:hover {
  opacity: 1;
  transform: scale(1.1);
}

/* Auto-play animation */
@keyframes carouselAutoPlay {
  0%, 30% { transform: translateX(0); }
  33%, 63% { transform: translateX(-100%); }
  66%, 96% { transform: translateX(-200%); }
  100% { transform: translateX(0); }
}

.carousel-track.auto-play {
  animation: carouselAutoPlay 9s infinite;
  animation-play-state: running;
}

.image-carousel:hover .carousel-track.auto-play {
  animation-play-state: paused;
}

/* Other Projects Section */
.other-projects {
  padding: 100px 0;
}

.other-projects-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 15px;
  position: relative;
  margin-top: 50px;
}

.other-project {
  position: relative;
  cursor: default;
  transition: var(--transition);
}

.other-project:hover,
.other-project:focus-within {
  transform: translateY(-7px);
}

.other-project-inner {
  box-shadow: var(--shadow-light);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-direction: column;
  align-items: flex-start;
  position: relative;
  height: 100%;
  padding: 2rem 1.75rem;
  border-radius: var(--border-radius);
  background-color: var(--bg-secondary);
  transition: var(--transition);
}

.other-project:hover .other-project-inner,
.other-project:focus-within .other-project-inner {
  box-shadow: var(--shadow-heavy);
}

.project-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 35px;
}

.folder {
  color: var(--accent-teal);
}

.folder svg {
  width: 40px;
  height: 40px;
}

.project-links {
  display: flex;
  align-items: center;
  margin-right: -10px;
}

.other-project-title {
  margin: 0 0 10px;
  color: var(--lightest-slate);
  font-size: 22px;
}

.other-project-title a {
  position: static;
  color: inherit;
  text-decoration: none;
}

.other-project-title a::before {
  content: "";
  display: block;
  position: absolute;
  z-index: 0;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
}

.other-project-description {
  color: var(--light-slate);
  font-size: 17px;
}

.other-project-tech-list {
  display: flex;
  align-items: flex-end;
  flex-grow: 1;
  flex-wrap: wrap;
  padding: 0;
  margin: 20px 0 0;
  list-style: none;
}

.other-project-tech-list li {
  font-family: var(--font-mono);
  font-size: 12px;
  line-height: 1.75;
  color: var(--light-slate);
}

.other-project-tech-list li:not(:last-of-type) {
  margin-right: 15px;
}

/* Contact Section */
.contact {
  max-width: 600px;
  margin: 0 auto 100px;
  text-align: center;
  padding: 100px 0;
}

.contact .overline {
  display: block;
  margin-bottom: 20px;
  color: var(--accent-teal);
  font-family: var(--font-mono);
  font-size: 16px;
  font-weight: 400;
}

.contact .title {
  font-size: clamp(40px, 5vw, 60px);
  color: var(--lightest-slate);
}

.contact .email-link {
  margin-top: 50px;
}

/* Project Modal */
.project-modal {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: var(--z-modal);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s cubic-bezier(0.645, 0.045, 0.355, 1);
}

.project-modal.active {
  opacity: 1;
  visibility: visible;
}

.modal-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(10, 25, 47, 0.9);
  backdrop-filter: blur(5px);
}

.modal-content {
  position: relative;
  background-color: var(--bg-card);
  border-radius: 8px;
  max-width: 800px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: var(--shadow-heavy);
  transform: translateY(50px);
  transition: transform 0.3s cubic-bezier(0.645, 0.045, 0.355, 1);
  animation: modalSlideIn 0.3s ease-out;
}

.project-modal.active .modal-content {
  transform: translateY(0);
}

@keyframes modalSlideIn {
  from {
    transform: translateY(50px) scale(0.95);
    opacity: 0;
  }
  to {
    transform: translateY(0) scale(1);
    opacity: 1;
  }
}

.modal-close {
  position: absolute;
  top: 20px;
  right: 20px;
  background: none;
  border: none;
  color: var(--light-slate);
  font-size: 24px;
  cursor: pointer;
  z-index: 1;
  transition: var(--transition);
  padding: 5px;
  line-height: 1;
}

.modal-close:hover {
  color: var(--accent-teal);
}

.modal-header {
  padding: 40px 40px 20px;
  border-bottom: 1px solid var(--dark-slate);
}

.modal-title {
  color: var(--lightest-slate);
  font-size: 28px;
  margin-bottom: 15px;
}

.modal-links {
  display: flex;
  gap: 15px;
}

.modal-links a {
  color: var(--light-slate);
  transition: var(--transition);
}

.modal-links a:hover {
  color: var(--accent-teal);
}

.modal-links svg {
  width: 22px;
  height: 22px;
}

.modal-body {
  padding: 20px 40px 40px;
}

.modal-description {
  color: var(--slate);
  font-size: 18px;
  line-height: 1.6;
  margin-bottom: 30px;
}

.modal-tech-stack h4 {
  color: var(--lightest-slate);
  font-size: 16px;
  margin-bottom: 15px;
}

.modal-tech-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 30px;
}

.modal-tech-list li {
  background-color: var(--bg-secondary);
  color: var(--accent-teal);
  padding: 8px 12px;
  border-radius: 4px;
  font-size: 14px;
  font-family: var(--font-mono);
}

.modal-image {
  text-align: center;
}

.modal-image img {
  max-width: 100%;
  border-radius: 8px;
  box-shadow: var(--shadow-light);
}

.other-project-inner {
  cursor: pointer;
  transition: var(--transition);
}

.other-project-inner:hover {
  transform: translateY(-5px);
}

@media (max-width: 768px) {
  .modal-content {
    margin: 20px;
    max-height: calc(100vh - 40px);
  }
  
  .modal-header,
  .modal-body {
    padding: 20px;
  }
  
  .modal-title {
    font-size: 24px;
  }
  
  .modal-description {
    font-size: 16px;
  }
}

/* Footer */
.footer {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  height: auto;
  min-height: 70px;
  padding: 15px;
  text-align: center;
}

.footer .social-links {
  display: none;
}

.footer .credit {
  color: var(--light-slate);
  font-family: var(--font-mono);
  font-size: 12px;
  line-height: 1;
}

.footer .credit a {
  color: var(--lightest-slate);
  text-decoration: none;
}

.footer .credit a:hover {
  color: var(--accent-teal);
}

/* Side Elements */
.email {
  position: fixed;
  bottom: 0;
  right: 40px;
  width: 40px;
  color: var(--light-slate);
  z-index: var(--z-tooltip);
}

.email::after {
  content: "";
  display: block;
  width: 1px;
  height: 90px;
  margin: 0 auto;
  background-color: var(--light-slate);
}

.email a {
  margin: 20px auto;
  padding: 10px;
  font-family: var(--font-mono);
  font-size: 12px;
  line-height: 18px;
  letter-spacing: 0.1em;
  writing-mode: vertical-rl;
  color: var(--light-slate);
  text-decoration: none;
  transition: var(--transition);
}

.email a:hover {
  color: var(--accent-teal);
  transform: translateY(-3px);
}

.social {
  position: fixed;
  bottom: 0;
  left: 40px;
  right: auto;
  width: 40px;
  color: var(--light-slate);
  z-index: var(--z-tooltip);
}

.social::after {
  content: "";
  display: block;
  width: 1px;
  height: 90px;
  margin: 0 auto;
  background-color: var(--light-slate);
}

.social ul {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin: 0;
  padding: 0;
  list-style: none;
}

.social li {
  margin: 20px 0;
}

.social a {
  padding: 10px;
  color: var(--light-slate);
  transition: var(--transition);
}

.social a:hover {
  color: var(--accent-teal);
  transform: translateY(-3px);
}

.social svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* Media Queries */
@media (max-width: 1080px) {
  .about-content {
    grid-template-columns: 1fr;
  }
  
  .about-pic {
    max-width: 300px;
    margin: 50px auto 0;
  }
  
  .project-item {
    grid-template-columns: 1fr;
  }
  
  .project-content {
    grid-column: 1 / -1;
    padding: 40px 40px 30px;
    text-align: left;
    z-index: 5;
  }
  
  .project-item:nth-of-type(odd) .project-content,
  .project-item:nth-of-type(even) .project-content {
    grid-column: 1 / -1;
    text-align: left;
  }
  
  .project-description {
    padding: 20px 0;
    background: transparent;
    box-shadow: none;
  }
  
  .project-tech-list {
    justify-content: flex-start;
  }
  
  .project-item:nth-of-type(even) .project-tech-list {
    justify-content: flex-start;
  }
  
  .project-tech-list li {
    margin: 0 10px 5px 0;
  }
  
  .project-item:nth-of-type(even) .project-tech-list li {
    margin: 0 10px 5px 0;
  }
  
  .project-links {
    justify-content: flex-start;
    margin-left: -10px;
    margin-right: 0;
  }
  
  .project-item:nth-of-type(even) .project-links {
    justify-content: flex-start;
    margin-left: -10px;
    margin-right: 0;
  }
  
  .project-image {
    grid-column: 1 / -1;
    opacity: 0.25;
    z-index: 1;
  }
  
  .project-item:nth-of-type(odd) .project-image,
  .project-item:nth-of-type(even) .project-image {
    grid-column: 1 / -1;
  }
  
  /* Carousel responsive styles */
  .carousel-controls {
    bottom: 10px;
    padding: 6px 12px;
  }
  
  .carousel-btn {
    font-size: 18px;
    padding: 1px 6px;
  }
  
  .indicator {
    width: 6px;
    height: 6px;
  }
  
  .image-carousel .carousel-controls {
    opacity: 1; /* Always show controls on mobile */
  }
}

@media (max-width: 768px) {
  .header {
    padding: 0 25px;
  }
  
  .hero,
  .about,
  .experience,
  .projects,
  .other-projects,
  .contact {
    padding-left: 25px;
    padding-right: 25px;
  }
  
  .hero-title,
  .hero-subtitle {
    font-size: clamp(40px, 8vw, 60px);
  }
  
  .section-heading::after {
    width: 100%;
  }
  
  .experience-tabs {
    flex-direction: column;
  }
  
  .tab-list {
    display: flex;
    overflow-x: auto;
    width: calc(100% + 100px);
    padding-left: 50px;
    margin-left: -50px;
    margin-bottom: 30px;
  }
  
  .tab-list::before {
    top: auto;
    bottom: 0;
    width: 100%;
    height: 2px;
    margin-left: 50px;
  }
  
  .tab-button {
    display: flex;
    justify-content: center;
    align-items: center;
    min-width: 120px;
    padding: 0 15px 2px;
    border-left: 0;
    border-bottom: 2px solid var(--darkest-slate);
    text-align: center;
  }
  
  .tab-button.active {
    border-bottom-color: var(--accent-teal);
  }
  
  .tab-panels {
    margin-left: 0;
  }
  
  .social,
  .email {
    display: none;
  }
  
  .footer .social-links {
    display: block;
    width: 100%;
    max-width: 270px;
    margin: 0 auto 10px;
    color: var(--light-slate);
  }
  
  .footer .social-links ul {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0;
    margin: 0;
    list-style: none;
  }
  
  .footer .social-links a {
    padding: 10px;
    color: var(--light-slate);
    transition: var(--transition);
  }
  
  .footer .social-links a:hover {
    color: var(--accent-teal);
  }
  
  .footer .social-links svg {
    width: 20px;
    height: 20px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
  }
}

@media (max-width: 480px) {
  .hero-description {
    font-size: 18px;
  }
  
  .other-projects-list {
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  }
}

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

.fade-in {
  animation: fadeInUp 0.6s ease-out;
}

.fade-in-delay-1 { animation-delay: 0.1s; }
.fade-in-delay-2 { animation-delay: 0.2s; }
.fade-in-delay-3 { animation-delay: 0.3s; }
.fade-in-delay-4 { animation-delay: 0.4s; }
.fade-in-delay-5 { animation-delay: 0.5s; }

/* Loading Animation */
.loader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: var(--primary-navy);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 1;
  visibility: visible;
  transition: opacity 0.5s, visibility 0.5s;
}

.loader.hidden {
  opacity: 0;
  visibility: hidden;
}

.loader-logo {
  width: 84px;
  height: 84px;
  color: var(--accent-teal);
  font-family: var(--font-mono);
  font-size: 28px;
  font-weight: 400;
  border: 2px solid var(--accent-teal);
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: pulse 1.5s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% {
    transform: scale(1);
    opacity: 1;
  }
  50% {
    transform: scale(1.05);
    opacity: 0.8;
  }
}

a, .nav-link, .btn, .resume-button {
  color: var(--accent-teal);
  text-decoration: underline;
  font-weight: 500;
  outline: none;
}

a:focus, .nav-link:focus, .btn:focus, .resume-button:focus {
  outline: 2px solid var(--accent-teal);
  outline-offset: 2px;
}

.carousel-btn, .indicator {
  min-width: 48px;
  min-height: 48px;
  font-size: 20px;
}

img {
  background: #e0e0e0;
}