/* Import fonts from Code B */
/* Zen Kaku Gothic New */
@font-face {
  font-family: 'Zen Kaku Gothic New';
  font-style: normal;
  font-weight: 300;
  font-display: swap;
  src: url('https://fonts.elijahu.me/zen-kaku-gothic-new/zen-kaku-gothic-new-v17-japanese_latin_latin-ext-300.woff2') format('woff2'),
       url('https://fonts.elijahu.me/zen-kaku-gothic-new/zen-kaku-gothic-new-v17-japanese_latin_latin-ext-300.woff') format('woff');
}
/*
@font-face {
  font-family: 'Zen Kaku Gothic New';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('https://fonts.elijahu.me/zen-kaku-gothic-new/zen-kaku-gothic-new-v17-japanese_latin_latin-ext-regular.woff2') format('woff2'),
       url('https://fonts.elijahu.me/zen-kaku-gothic-new/zen-kaku-gothic-new-v17-japanese_latin_latin-ext-regular.woff') format('woff');
}
*/
@font-face {
  font-family: 'Zen Kaku Gothic New';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('https://fonts.elijahu.me/zen-kaku-gothic-new/zen-kaku-gothic-new-v17-japanese_latin_latin-ext-500.woff2') format('woff2'),
       url('https://fonts.elijahu.me/zen-kaku-gothic-new/zen-kaku-gothic-new-v17-japanese_latin_latin-ext-500.woff') format('woff');
}
@font-face {
  font-family: 'Zen Kaku Gothic New';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('https://fonts.elijahu.me/zen-kaku-gothic-new/zen-kaku-gothic-new-v17-japanese_latin_latin-ext-700.woff2') format('woff2'),
       url('https://fonts.elijahu.me/zen-kaku-gothic-new/zen-kaku-gothic-new-v17-japanese_latin_latin-ext-700.woff') format('woff');
}
@font-face {
  font-family: 'Zen Kaku Gothic New';
  font-style: normal;
  font-weight: 900;
  font-display: swap;
  src: url('https://fonts.elijahu.me/zen-kaku-gothic-new/zen-kaku-gothic-new-v17-japanese_latin_latin-ext-900.woff2') format('woff2'),
       url('https://fonts.elijahu.me/zen-kaku-gothic-new/zen-kaku-gothic-new-v17-japanese_latin_latin-ext-900.woff') format('woff');
}

/* Noto Sans Mono */
@font-face {
  font-family: 'Noto Sans Mono';
  font-style: normal;
  font-weight: 300;
  font-display: swap;
  src: url('https://fonts.elijahu.me/noto-sans-mono/noto-sans-mono-v32-latin_latin-ext-300.woff2') format('woff2'),
       url('https://fonts.elijahu.me/noto-sans-mono/noto-sans-mono-v32-latin_latin-ext-300.woff') format('woff');
}
/*
@font-face {
  font-family: 'Noto Sans Mono';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('https://fonts.elijahu.me/noto-sans-mono/noto-sans-mono-v32-latin_latin-ext-regular.woff2') format('woff2'),
       url('https://fonts.elijahu.me/noto-sans-mono/noto-sans-mono-v32-latin_latin-ext-regular.woff') format('woff');
}
*/

@font-face {
  font-family: 'Noto Sans Mono';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('https://fonts.elijahu.me/noto-sans-mono/noto-sans-mono-v32-latin_latin-ext-600.woff2') format('woff2'),
}

:root { /* Base Settings */
  --fg-color: #f9f9f7;
  --fg2-color: #dbdbdb;
  --link-color: #dc3232;
  --link-hover: #dc3232;
  --bg-color: #000;
  --button-color: #111;
  --button-hover: #cc241d;
  --accent-gradient: linear-gradient(135deg, #dc3232, #ff4757);
  --video-cta-bg: linear-gradient(135deg, #1a1a1a, #2d2d2d);
} /* Defining color scheme */

* { /* Base Settings */
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  background: var(--bg-color);
} /* Base Settings */

h1,h2,h3,h4,h5,h6 {
  color: var(--fg-color);
  font-family: 'Zen Kaku Gothic New', sans-serif;
  font-weight: 400;
  padding-bottom: .5rem;
}

body { 
  text-align: center; 
  padding: 1rem 5rem;
  font-family: 'Zen Kaku Gothic New', sans-serif;
}

.body-left { text-align: left; }
.body-left h4 { 
  margin-top:2rem;
  margin-bottom: 1rem;
}
.body-left p {
  margin-bottom: 1rem;
}
.body-left h1 {text-align:center}
.body-left h5 {text-align:center}

h1 {font-size: 3.5rem;}
h2 {font-size: 3rem;}
h3 {font-size: 2.5rem;}
h4 {font-size: 2rem;}
h5 {font-size: 1.5rem;}
h6 {font-size: 1rem;}

.headText { 
  margin-left: 25%;
  margin-right: 25%;
  margin-bottom: 4rem;
}

p a {
  color: var(--link-color);
  text-decoration: none;
  transition: all .3s;
  font-family: 'Zen Kaku Gothic New', sans-serif;
  font-weight: 500;
} 
p a:hover {
  color: var(--link-hover);
}

p {
  color: var(--fg2-color);
  font-family: 'Zen Kaku Gothic New', sans-serif;
  font-weight: 600;
  line-height: 1.5;
}

/* Buttons */
button {
  color: var(--fg2-color);
  font-family: 'Zen Kaku Gothic New', sans-serif;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  background-color: var(--button-color);
  border: none;
  padding: 1rem 2rem;
  border-radius: 3px; 
  transition: all .3s;
  margin: 1rem 1rem;
} 
button:hover {
  background-color: var(--button-hover);
}
button i, button i:hover { 
  background-color: inherit; 
  transition: all .3s;
}

header { 
  padding: 1.5rem; 
  margin-bottom: 4rem;
}
.header-flex {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

li {
  display: inline-block;
  padding: .3rem;
  font-family: 'Zen Kaku Gothic New', sans-serif;
  text-transform: uppercase;
  font-size: .9rem;
  font-weight: 600;
} 
li a {
  text-decoration: none;
  color: var(--fg-color);
  transition: all .3s;
} 
li a:hover {
  color: var(--link-hover);
}

.logo {
  background: url(/images/mWhite.svg);
  width: 3rem;
  height: 3rem;
  transition: all .3s;
  margin-left: 3rem;
  margin-right: 3rem;
} 
.logo:hover {
  opacity: .8;
}

/* Mobile Navigation */
.bars {
  display: none;
  position: absolute;
  top: 1.5rem;
  right: 1rem;
  z-index: 25;
} 
.fa-bars {
  font-size: 2rem;
  color: var(--fg-color);
  opacity: .8;
}
#mobile-links {
  display: none;
  position: fixed;
  text-align: right;
  background-color: var(--bg-color);
  width: 100vw; 
  height: 100vh; 
  z-index: 15;
}
.mobile-links-container {
  margin-top: 7rem; 
  margin-right: 2rem;
}
.mobile {
  font-size: 2rem;
  line-height: 2;
}

footer {
  margin-top: 8rem;
  margin-bottom: 3rem;
} 

.social a {
  font-size: 1.7rem;
  color: var(--fg-color);
  padding: .1rem;
  transition: all .3s;
  font-weight: 600;
  font-family: 'Zen Kaku Gothic New', sans-serif;
} 
footer a:hover {
  opacity: 70%;
}

.social {
  margin-bottom: 2rem; 
}

footer nav a {
  font-family: 'Zen Kaku Gothic New', sans-serif;
  font-weight: 600;
  color: var(--fg-color);
  font-size: 1rem;
  text-decoration: none;
  text-transform: uppercase;
  padding: .5rem;
  transition: all .3s;
} 
footer nav a:hover {
  color: var(--link-hover);
}

footer nav {
  margin-bottom: 1rem;
}

.social a:hover {
  opacity: 70%;
}

/* About Page Specific Styles */
.about-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem;
}

.hero-section {
  text-align: center;
  margin-bottom: 3rem;
}

.profile-intro {
  margin-top: 2rem;
}

.tagline {
  font-size: 1.2rem;
  color: var(--fg2-color);
  margin-top: 1rem;
}

/* Small Video CTA Styles */
.video-cta-small {
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
  margin-top: 1.5rem;
  padding: 0.8rem 1.2rem;
  background: rgba(220, 50, 50, 0.1);
  border: 1.5px solid var(--link-color);
  border-radius: 50px;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
  backdrop-filter: blur(10px);
}

.video-cta-small:hover {
  background: rgba(220, 50, 50, 0.2);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(220, 50, 50, 0.3);
  border-color: var(--link-hover);
}

.video-icon {
  width: 32px;
  height: 32px;
  background: var(--link-color);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  position: relative;
}

.video-icon::before {
  content: '';
  position: absolute;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: var(--link-color);
  opacity: 0.3;
  animation: ripple 2s infinite;
}

@keyframes ripple {
  0% {
    transform: scale(1);
    opacity: 0.3;
  }
  70% {
    transform: scale(1.4);
    opacity: 0;
  }
  100% {
    transform: scale(1.4);
    opacity: 0;
  }
}

.video-cta-small:hover .video-icon {
  background: var(--link-hover);
  transform: scale(1.1);
}

.video-icon i {
  font-size: 0.9rem;
  color: white;
  margin-left: 2px; /* Optical alignment for play button */
  background: transparent;
}

.video-text {
  font-size: 0.95rem;
  color: var(--link-color);
  font-weight: 600;
  font-family: 'Zen Kaku Gothic New', sans-serif;
  background: transparent;
  transition: color 0.3s ease;
}

.video-cta-small:hover .video-text {
  color: var(--link-hover);
}

.main-content {
  display: flex;
  flex-direction: column;
  gap: 4rem;
}

.intro-section, .current-focus, .beyond-tech {
  margin-bottom: 3rem;
}

/* FIXED: Expertise Section Layout */
.expertise-section {
  margin-bottom: 3rem;
}

/* FIXED: Container for the entire "What I Bring to the Table" section */
.expertise-container {
  display: flex;
  flex-direction: column;
  gap: 3rem;
}

/* FIXED: Tools section - now properly contained */
.tools-section {
  width: 100%;
  text-align: center;
}

.tools-section h4 {
  font-family: 'Zen Kaku Gothic New', sans-serif;
  color: var(--fg-color);
  font-weight: 500;
  font-size: 1.5rem;
  margin-bottom: 2rem;
  letter-spacing: 0.02em;
  position: relative;
}

.tools-section h4::after {
  content: '';
  position: absolute;
  bottom: -8px;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 3px;
  background: var(--accent-gradient);
  border-radius: 2px;
}

/* FIXED: Tool icons layout - properly structured grid */
.tool-icons {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 1.5rem;
  max-width: 1000px;
  margin: 0 auto;
  padding: 1rem;
}

/* FIXED: Skills grid - now separate from tools */
.skills-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
  width: 100%;
}

/* Tool card styling */
.tool-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.8rem;
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  padding: 1.5rem 1rem;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
  user-select: none;
  min-height: 100px;
}

/* Subtle gradient overlay */
.tool-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(220, 50, 50, 0.05), rgba(255, 71, 87, 0.05));
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

/* Icon styling */
.tool-card i {
  font-size: 2.5rem;
  color: var(--fg-color);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  background: transparent;
  position: relative;
  z-index: 2;
}

/* Specific colors for different tools */
.tool-card:nth-child(1) i { color: #FF9900; } /* AWS Orange */
.tool-card:nth-child(2) i { color: #2496ED; } /* Docker Blue */
.tool-card:nth-child(3) i { color: #326CE5; } /* Kubernetes Blue */
.tool-card:nth-child(4) i { color: #7B42BC; } /* Terraform Purple */
.tool-card:nth-child(5) i { color: #EE0000; } /* Jenkins Red */
.tool-card:nth-child(6) i { color: #EE0000; } /* Ansible Red */
.tool-card:nth-child(7) i { color: #FCC624; } /* Linux/Tux Yellow */
.tool-card:nth-child(8) i { color: #F05032; } /* Git Orange-Red */
.tool-card:nth-child(9) i { color: var(--link-color); } /* CI/CD - Theme color */

/* Enhanced label styling */
.tool-card figcaption {
  font-size: 0.95rem;
  color: var(--fg2-color);
  font-family: 'Zen Kaku Gothic New', sans-serif;
  font-weight: 500;
  text-align: center;
  transition: all 0.3s ease;
  position: relative;
  z-index: 2;
  background: transparent;
}

/* Hover effects */
.tool-card:hover,
.tool-card:focus-within {
  transform: translateY(-8px) scale(1.05);
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(220, 50, 50, 0.3);
  box-shadow: 
    0 15px 35px rgba(0, 0, 0, 0.2),
    0 0 0 1px rgba(220, 50, 50, 0.1);
}

.tool-card:hover::before,
.tool-card:focus-within::before {
  opacity: 1;
}

.tool-card:hover i,
.tool-card:focus-within i {
  transform: scale(1.1);
  filter: drop-shadow(0 4px 15px rgba(220, 50, 50, 0.3));
}

.tool-card:hover figcaption,
.tool-card:focus-within figcaption {
  color: var(--fg-color);
  transform: translateY(-2px);
}

/* Enhanced Skill Card Styling */
.skill-card {
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(15px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  padding: 2rem;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
  cursor: pointer;
  min-height: 200px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}

/* Gradient overlay for each card */
.skill-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
  border-radius: 20px;
}

/* Unique gradient for each skill card */
.skill-card:nth-child(1)::before { 
  background: linear-gradient(135deg, rgba(255, 153, 0, 0.1), rgba(255, 193, 7, 0.05)); 
}
.skill-card:nth-child(2)::before { 
  background: linear-gradient(135deg, rgba(36, 150, 237, 0.1), rgba(79, 172, 254, 0.05)); 
}
.skill-card:nth-child(3)::before { 
  background: linear-gradient(135deg, rgba(252, 198, 36, 0.1), rgba(255, 235, 59, 0.05)); 
}
.skill-card:nth-child(4)::before { 
  background: linear-gradient(135deg, rgba(123, 66, 188, 0.1), rgba(156, 39, 176, 0.05)); 
}

/* Enhanced skill card header */
.skill-card h4 {
  font-family: 'Zen Kaku Gothic New', sans-serif;
  color: var(--fg-color);
  font-weight: 600;
  font-size: 1.3rem;
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  position: relative;
  background: transparent;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

/* Underline effect for skill titles */
.skill-card h4::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--accent-gradient);
  transition: width 0.4s ease;
  border-radius: 1px;
}

/* Enhanced skill card description */
.skill-card p {
  color: var(--fg2-color);
  font-family: 'Zen Kaku Gothic New', sans-serif;
  font-weight: 400;
  line-height: 1.6;
  font-size: 1rem;
  background: transparent;
  flex-grow: 1;
  margin-bottom: 0;
}

/* Hover effects for skill cards */
.skill-card:hover,
.skill-card:focus-within {
  transform: translateY(-10px) scale(1.02);
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(220, 50, 50, 0.3);
  box-shadow: 
    0 20px 40px rgba(0, 0, 0, 0.2),
    0 0 0 1px rgba(220, 50, 50, 0.1);
}

.skill-card:hover::before,
.skill-card:focus-within::before {
  opacity: 1;
}

.skill-card:hover h4::after,
.skill-card:focus-within h4::after {
  width: 100%;
}

.skill-card:hover h4,
.skill-card:focus-within h4 {
  color: var(--fg-color);
  transform: translateY(-2px);
}

.skill-card:hover p,
.skill-card:focus-within p {
  color: var(--fg-color);
  transform: translateY(-1px);
}

.focus-list, .hobby-list {
  list-style: none;
  padding: 0;
  margin: 1.5rem 0;
}

.focus-list li, .hobby-list li {
  margin: 1rem 0;
  font-size: 1.1rem;
  display: block;
  color: var(--fg2-color);
}

.connect-section {
  text-align: center;
  margin-top: 4rem;
  padding: 3rem 0;
}

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

.social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 1rem;
  background-color: var(--button-color);
  border-radius: 8px;
  transition: all 0.3s ease;
  text-decoration: none;
  color: var(--fg-color);
}

.social-link:hover {
  background-color: var(--link-hover);
  color: var(--bg-color);
  transform: translateY(-3px);
}

.social-link i {
  font-size: 1.5rem;
}

.social {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 2rem;
}

.social .social-link {
  font-size: 1.7rem;
  color: var(--fg-color);
  transition: all .3s;
  background: transparent;
  padding: 0.5rem;
  border-radius: 8px;
}

.social .social-link:hover {
  opacity: 70%;
  background: rgba(255, 255, 255, 0.1);
  transform: translateY(-2px);
}

.profile-picture {
  width: 150px;
  height: 150px;
  border-radius: 50%;
  margin: 0 auto 20px auto;
  display: block;
  object-fit: cover;
  border: 3px solid #ffffff;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

/* Light Mode Settings */
@media (prefers-color-scheme: light) {
  :root {
    --fg-color: #444;
    --fg2-color: #666;
    --link-color: #8c695f;
    --link-hover: #ba3d28;
    --bg-color: #fff;
    --button-color: #eee;
    --button-hover: #ccc;
    --accent-gradient: linear-gradient(135deg, #8c695f, #ba3d28);
    --video-cta-bg: linear-gradient(135deg, #f8f9fa, #e9ecef);
  } 
  .logo { background: url(/images/mBlack.svg); }
  
  .video-cta-small {
    background: rgba(140, 105, 95, 0.1);
    border-color: var(--link-color);
  }
  
  .video-cta-small:hover {
    background: rgba(140, 105, 95, 0.2);
    box-shadow: 0 8px 25px rgba(140, 105, 95, 0.3);
  }

  .tool-card {
    background: rgba(0, 0, 0, 0.03);
    border-color: rgba(0, 0, 0, 0.1);
  }
  
  .tool-card::before {
    background: linear-gradient(135deg, rgba(140, 105, 95, 0.05), rgba(186, 61, 40, 0.05));
  }
  
  .tool-card:hover,
  .tool-card:focus-within {
    background: rgba(0, 0, 0, 0.08);
    border-color: rgba(140, 105, 95, 0.3);
    box-shadow: 
      0 15px 35px rgba(0, 0, 0, 0.1),
      0 0 0 1px rgba(140, 105, 95, 0.2);
  }
  
  .tool-card:hover i,
  .tool-card:focus-within i {
    filter: drop-shadow(0 4px 15px rgba(140, 105, 95, 0.3));
  }

  .skill-card {
    background: rgba(0, 0, 0, 0.03);
    border-color: rgba(0, 0, 0, 0.1);
  }
  
  .skill-card:hover,
  .skill-card:focus-within {
    background: rgba(0, 0, 0, 0.08);
    border-color: rgba(140, 105, 95, 0.3);
    box-shadow: 
      0 20px 40px rgba(0, 0, 0, 0.1),
      0 0 0 1px rgba(140, 105, 95, 0.2);
  }
}

/* Desktop-only responsive adjustments */
@media only screen and (min-width: 1025px) {
  /* FIXED: Ensure proper spacing for desktop layout */
  .expertise-section {
    margin-bottom: 4rem;
  }
  
  .expertise-container {
    gap: 4rem;
  }
  
  .skills-grid {
    gap: 2.5rem;
  }
  
  .tool-icons {
    gap: 2rem;
    padding: 1.5rem;
  }
}

/* Tablet Breakpoint */
@media only screen and (max-width: 1024px) {
  body {
    padding: 1rem 3rem;
  }
  
  .about-container {
    padding: 1.5rem;
  }
  
  .skills-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  
  .tool-icons {
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 1.2rem;
  }
}

/* Mobile Settings - Large Phones (768px and below) */
@media only screen and (max-width: 768px) {
  .headText { 
    margin-left: 0; 
    margin-right: 0; 
  }
  
  .bars { 
    display: block; 
  }
  
  .linksA, .linksB { 
    display: none; 
  }
  
  header {
    padding: 1rem;
    margin-bottom: 2rem;
  }
  
  .logo {
    margin: 0;
  }

  /* About page specific mobile styles */
  .about-container {
    padding: 1rem;
  }

  .skills-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
    margin-top: 2rem;
    padding: 0 0.5rem;
  }
  
  .skill-card {
    padding: 1.5rem;
    min-height: 160px;
    border-radius: 16px;
  }
  
  .skill-card h4 {
    font-size: 1.2rem;
    margin-bottom: 0.8rem;
  }
  
  .skill-card p {
    font-size: 0.95rem;
    line-height: 1.5;
  }
  
  .skill-card:hover,
  .skill-card:focus-within {
    transform: translateY(-6px) scale(1.01);
  }

  .tool-icons {
    grid-template-columns: repeat(auto-fit, minmax(110px, 1fr));
    gap: 1rem;
    padding: 0.5rem;
  }
  
  .tool-card {
    padding: 1rem 0.8rem;
    min-height: 90px;
    border-radius: 12px;
  }
  
  .tool-card i {
    font-size: 2rem;
  }
  
  .tool-card figcaption {
    font-size: 0.85rem;
  }

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

  .focus-list li, .hobby-list li {
    font-size: 1rem;
  }
  
  .profile-picture {
    width: 120px;
    height: 120px;
  }
  
  .video-cta-small {
    padding: 0.7rem 1rem;
    gap: 0.6rem;
  }
  
  .video-icon {
    width: 28px;
    height: 28px;
  }
  
  .video-icon i {
    font-size: 0.8rem;
  }
  
  .video-text {
    font-size: 0.85rem;
  }
}

/* Mobile Settings - Small Phones (640px and below) */
@media only screen and (max-width: 640px) {
  footer nav {
    display: none;
  }
  
  body {
    padding: 1rem;
  }
  
  h1 {
    font-size: 2.5rem;
  }
  
  h2 {
    font-size: 2rem;
  }
  
  h3 {
    font-size: 1.8rem;
  }
  
  h4 {
    font-size: 1.4rem;
  }
  
  .tools-section h4 {
    font-size: 1.3rem;
    margin-bottom: 1.5rem;
  }
  
  .tools-section h4::after {
    width: 50px;
    height: 2px;
    bottom: -6px;
  }
  
  .tool-icons {
    grid-template-columns: repeat(4, 1fr);
    gap: 0.8rem;
    padding: 0.5rem 0;
  }
  
  .tool-card {
    padding: 0.8rem 0.4rem;
    min-height: 80px;
    border-radius: 10px;
  }
  
  .tool-card i {
    font-size: 1.6rem;
  }
  
  .tool-card figcaption {
    font-size: 0.75rem;
    line-height: 1.2;
  }
  
  .tool-card:hover,
  .tool-card:focus-within {
    transform: translateY(-4px) scale(1.02);
  }

  .skills-grid {
    gap: 1rem;
    margin-top: 1.5rem;
    padding: 0;
  }
  
  .skill-card {
    padding: 1.2rem;
    min-height: 140px;
    border-radius: 12px;
  }
  
  .skill-card h4 {
    font-size: 1.1rem;
    margin-bottom: 0.7rem;
  }
  
  .skill-card p {
    font-size: 0.9rem;
  }
  
  /* Reduce animations on small screens for better performance */
  .skill-card:hover,
  .skill-card:focus-within {
    transform: translateY(-4px);
  }
  
  .profile-picture {
    width: 100px;
    height: 100px;
  }
  
  .social {
    flex-wrap: wrap;
    gap: 0.8rem;
  }
  
  .social .social-link {
    font-size: 1.4rem;
    padding: 0.8rem;
  }
  
  .connect-section {
    padding: 2rem 0;
  }
  
  .main-content {
    gap: 2.5rem;
  }
  
  .intro-section, .expertise-section, .current-focus, .beyond-tech {
    margin-bottom: 2rem;
  }
}

/* Extra Small Phones (480px and below) */
@media only screen and (max-width: 480px) {
  body {
    padding: 0.5rem;
  }
  
  .about-container {
    padding: 0.5rem;
  }
  
  h1 {
    font-size: 2rem;
  }
  
  h2 {
    font-size: 1.6rem;
  }
  
  h3 {
    font-size: 1.4rem;
  }
  
  .tool-icons {
    grid-template-columns: repeat(3, 1fr);
    gap: 0.6rem;
  }
  
  .tool-card {
    padding: 0.6rem 0.3rem;
    min-height: 70px;
  }
  
  .tool-card i {
    font-size: 1.4rem;
  }
  
  .tool-card figcaption {
    font-size: 0.7rem;
  }
  
  .skill-card {
    padding: 1rem;
    min-height: 120px;
  }
  
  .skill-card h4 {
    font-size: 1rem;
  }
  
  .skill-card p {
    font-size: 0.85rem;
  }
  
  .profile-picture {
    width: 80px;
    height: 80px;
  }
  
  .video-cta-small {
    padding: 0.6rem 0.8rem;
    gap: 0.5rem;
  }
  
  .video-icon {
    width: 24px;
    height: 24px;
  }
  
  .video-text {
    font-size: 0.8rem;
  }
}

/* Focus states for accessibility */
.skill-card:focus {
  outline: 2px solid var(--link-color);
  outline-offset: 4px;
}

.tool-card:focus {
  outline: 2px solid var(--link-color);
  outline-offset: 2px;
}

/* Reduced motion for users who prefer it */
@media (prefers-reduced-motion: reduce) {
  .tool-card,
  .tool-card i,
  .tool-card figcaption,
  .tool-card::before,
  .skill-card,
  .skill-card h4,
  .skill-card p,
  .skill-card::before,
  .skill-card h4::after,
  .video-icon::before {
    transition: none;
    animation: none;
  }
  
  .tool-card:hover,
  .tool-card:focus-within,
  .skill-card:hover,
  .skill-card:focus-within {
    transform: none;
  }
  
  .tool-card:hover i,
  .tool-card:focus-within i {
    transform: none;
  }
}

/* Prevent hover effects on touch devices */
@media (hover: none) {
  .tool-card:hover, 
  .skill-card:hover,
  .video-cta-small:hover,
  .social-link:hover {
    transform: none;
    box-shadow: none;
    background: initial;
  }
  
  .tool-card:hover::before,
  .skill-card:hover::before {
    opacity: 0;
  }
}

/* Katakana Signature - Contact Page Specific */
.katakana-signature {
  position: fixed;
  bottom: 20px;
  right: 20px;
  font-family: 'Zen Kaku Gothic New', sans-serif;
  font-size: 1.2rem;
  font-weight: 300;
  color: var(--fg2-color);
  opacity: 0.6;
  z-index: 1000;
  pointer-events: none;
  transition: opacity 0.3s ease;
  writing-mode: vertical-rl;
  text-orientation: upright;
  background: transparent;
  margin: 0;
  padding: 0;
  transform: none;
  left: auto;
  top: auto;
}

.katakana-signature:hover {
  opacity: 0.9;
}

/* Mobile adjustments for katakana */
@media only screen and (max-width: 768px) {
  .katakana-signature {
    bottom: 15px;
    right: 15px;
    font-size: 1rem;
    writing-mode: vertical-rl;
    text-orientation: upright;
  }
}

@media only screen and (max-width: 480px) {
  .katakana-signature {
    bottom: 10px;
    right: 10px;
    font-size: 0.9rem;
    writing-mode: vertical-rl;
    text-orientation: upright;
  }
}

/* Light mode adjustment */
@media (prefers-color-scheme: light) {
  .katakana-signature {
    color: var(--fg2-color);
    opacity: 0.5;
  }
  
  .katakana-signature:hover {
    opacity: 0.8;
  }
}

/* Optimized Video Modal Styles - Add to existing style.css */

/* Modal Base Styles */
.modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(5px);
  animation: fadeIn 0.2s ease-out;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.video-modal-content {
  background-color: var(--bg-color);
  margin: 3% auto;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 12px;
  width: 90%;
  max-width: 800px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
  animation: slideIn 0.3s ease-out;
  overflow: hidden;
}

@keyframes slideIn {
  from {
    transform: translateY(-30px) scale(0.98);
    opacity: 0;
  }
  to {
    transform: translateY(0) scale(1);
    opacity: 1;
  }
}

.modal-header {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.05) 0%, rgba(255, 255, 255, 0.02) 100%);
  padding: 1.5rem 2rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.modal-header h2 {
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--fg-color);
  display: flex;
  align-items: center;
  gap: 0.75rem;
  background: transparent;
  margin: 0;
  padding: 0;
  font-family: 'Zen Kaku Gothic New', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.modal-header h2 i {
  color: var(--link-color);
  background: transparent;
}

.close {
  color: var(--fg2-color);
  font-size: 2rem;
  font-weight: 300;
  cursor: pointer;
  transition: color 0.3s ease;
  line-height: 1;
  padding: 0.5rem;
  margin: -0.5rem;
  background: transparent;
  border: none;
}

.close:hover,
.close:focus {
  color: var(--link-color);
  text-decoration: none;
}

.video-modal-body {
  padding: 1.5rem;
}

/* Video Container with Lazy Loading */
.video-container {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%; /* 16:9 aspect ratio */
  height: 0;
  overflow: hidden;
  border-radius: 8px;
  background-color: #000;
  margin-bottom: 1.5rem;
}

.video-container iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
  border-radius: 8px;
}

.video-placeholder {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: #000;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.video-loading {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  color: var(--fg2-color);
  font-family: 'Zen Kaku Gothic New', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.video-loading i {
  font-size: 3rem;
  color: var(--link-color);
  background: transparent;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

.video-loading span {
  font-size: 1rem;
  background: transparent;
}

.video-description {
  color: var(--fg2-color);
  font-size: 0.95rem;
  text-align: center;
  line-height: 1.5;
  font-family: 'Zen Kaku Gothic New', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: transparent;
}

.video-description strong {
  color: var(--fg-color);
  font-weight: 600;
  background: transparent;
}

/* Light Mode Adjustments for Modal */
@media (prefers-color-scheme: light) {
  .video-modal-content {
    background-color: var(--bg-color);
    border-color: rgba(0, 0, 0, 0.2);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
  }
  
  .modal-header {
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.05) 0%, rgba(0, 0, 0, 0.02) 100%);
    border-bottom-color: rgba(0, 0, 0, 0.1);
  }
}

/* Mobile Responsive Styles for Modal */
@media only screen and (max-width: 768px) {
  .video-modal-content {
    margin: 5% auto;
    width: 98%;
    max-width: 95vw;
  }

  .modal-header {
    padding: 1.25rem 1.5rem;
  }

  .modal-header h2 {
    font-size: 1.2rem;
  }

  .video-modal-body {
    padding: 1rem;
  }

  .video-container {
    padding-bottom: 56.25%;
    margin-bottom: 1rem;
  }

  .video-description {
    font-size: 0.85rem;
  }

  .video-loading i {
    font-size: 2.5rem;
  }

  .video-loading span {
    font-size: 0.9rem;
  }
}

@media only screen and (max-width: 480px) {
  .video-modal-content {
    margin: 10% auto;
    width: 98%;
  }

  .modal-header {
    padding: 1rem;
  }

  .modal-header h2 {
    font-size: 1.1rem;
  }

  .video-modal-body {
    padding: 0.8rem;
  }

  .video-description {
    font-size: 0.8rem;
  }

  .video-loading i {
    font-size: 2rem;
  }

  .video-loading span {
    font-size: 0.85rem;
  }
}

/* Reduce animations on slower devices */
@media (prefers-reduced-motion: reduce) {
  .modal, .video-modal-content, .video-loading i {
    animation: none;
  }
}



/* Simple Contact Form Styles */
.contact-form {
    max-width: 400px;
    margin: 2rem auto 0 auto;
}

.simple-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.simple-form input,
.simple-form textarea {
    padding: 0.8rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.05);
    color: var(--fg-color);
    font-family: 'Zen Kaku Gothic New', sans-serif;
    font-size: 1rem;
    transition: all 0.3s ease;
    width: 100%;
    box-sizing: border-box;
}

.simple-form input::placeholder,
.simple-form textarea::placeholder {
    color: var(--fg2-color);
    opacity: 0.8;
}

.simple-form input:focus,
.simple-form textarea:focus {
    outline: none;
    border-color: var(--link-color);
    background: rgba(255, 255, 255, 0.08);
}

.simple-form textarea {
    resize: vertical;
    min-height: 100px;
    max-height: 200px;
    font-family: 'Zen Kaku Gothic New', sans-serif;
}

.simple-form button {
    margin: 0.5rem 0 0 0;
    align-self: flex-start;
    width: auto;
}

/* Light mode adjustments */
@media (prefers-color-scheme: light) {
    .simple-form input,
    .simple-form textarea {
        background: rgba(0, 0, 0, 0.05);
        border-color: rgba(0, 0, 0, 0.2);
    }
    
    .simple-form input:focus,
    .simple-form textarea:focus {
        background: rgba(0, 0, 0, 0.08);
    }
}

/* Mobile responsive */
@media only screen and (max-width: 640px) {
    .contact-form {
        margin: 1rem;
        max-width: none;
    }
    
    .simple-form input,
    .simple-form textarea {
        font-size: 16px; /* Prevents zoom on iOS */
        padding: 0.7rem;
    }
    
    .simple-form textarea {
        min-height: 80px;
    }
}
