/* ==========================================================================
   ABOUT PAGE BODY STYLING (global.css)
   ========================================================================== */
.about-container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 60px 20px;
  color: #ffffff;
}

/* Gradient Title */
.gradient-title {
  font-size: 2.8rem;
  font-weight: 800;
  text-align: center;
  margin-bottom: 40px;
  background: linear-gradient(135deg, #ffffff 0%, #4fffd2 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Layout Grid */
.about-content {
  display: flex;
  flex-direction: column;
  gap: 30px;
  align-items: center;
}

@media (min-width: 768px) {
  .about-content {
    flex-direction: row;
    align-items: flex-start;
  }
}

/* Profile Image Section (Left) */
.profile-card {
  flex: 1;
  width: 100%;
  max-width: 320px;
  text-align: center;
}

.image-wrapper {
  width: 100%;
  aspect-ratio: 1 / 1;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.5);
  background: rgba(255, 255, 255, 0.03);
}

.profile-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.profile-caption {
  margin-top: 12px;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.6);
}

/* Text & Buttons Section (Right) */
.bio-card {
  flex: 2;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.bio-description {
  font-size: 1.05rem;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.85);
}

/* Action Buttons */
.about-buttons {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: 8px;
  font-weight: 600;
  text-decoration: none;
  font-size: 0.95rem;
  transition: all 0.2s ease;
}

.btn-primary {
  background: #4fffd2;
  color: #0d0d0d;
}

.btn-primary:hover {
  background: #3ce4b9;
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(79, 255, 210, 0.3);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.05);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.3);
  transform: translateY(-2px);
}

/* ==========================================================================
   IMAGE HOVER EFFECTS
   ========================================================================== */

/* 1. Zoom & Accent Glow (Default) */
.image-wrapper {
  position: relative;
  overflow: hidden;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.5);
  transition: border-color 0.3s ease, box-shadow 0.3s ease, transform 0.3s ease;
}

.profile-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s cubic-bezier(0.25, 1, 0.5, 1), filter 0.3s ease;
}

/* Hover States */
.image-wrapper:hover {
  border-color: rgba(79, 255, 210, 0.4);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6), 
              0 0 20px rgba(79, 255, 210, 0.2);
  transform: translateY(-4px);
}

.image-wrapper:hover .profile-img {
  transform: scale(1.08);
}

/* Square Image Frame */
/* Image Frame Container */
.about-me-picture {
  position: relative;
  width: 100%;
  aspect-ratio: 1/1;
  border-radius: var(--radius-card, 16px);
  border: 2px solid var(--accent-color, #4fffd2);
  box-shadow: 0 0 20px var(--accent-glow, rgba(79, 255, 210, 0.35));
  overflow: hidden;
  transition: transform var(--transition-smooth, 0.35s ease), box-shadow var(--transition-smooth, 0.35s ease);
}

.about-me-picture:hover {
  transform: scale(1.02);
  box-shadow: 0 0 30px var(--accent-glow, rgba(79, 255, 210, 0.6));
}

/* Image Styling */
.about-me-picture img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform var(--transition-smooth, 0.35s ease), filter var(--transition-smooth, 0.35s ease);
}

/* Zoom & slight darken on image when hovered */
.about-me-picture:hover img {
  transform: scale(1.08);
  filter: brightness(0.7);
}

/* Hover Caption Overlay */
.about-me-picture .img-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  padding: 1rem 0.8rem;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.95) 0%, rgba(0, 0, 0, 0.6) 70%, transparent 100%);
  color: var(--accent-color, #4fffd2);
  font-size: 0.75rem;
  font-weight: 700;
  text-align: center;
  letter-spacing: 0.8px;
  line-height: 1.4;
  text-transform: uppercase;
  
  /* Initial hidden state */
  opacity: 0;
  transform: translateY(15px);
  transition: opacity var(--transition-smooth, 0.35s ease), transform var(--transition-smooth, 0.35s ease);
  pointer-events: none;
}

/* Reveal caption on hover */
.about-me-picture:hover .img-caption {
  opacity: 1;
  transform: translateY(0);
}

/* ==========================================================================
   SKILLS INFINITE SCROLL (global.css)
   ========================================================================== */
.skills-section {
  margin-top: 60px;
  width: 100%;
}

.skills-title {
  text-align: center;
  font-size: 1.8rem;
  margin-bottom: 24px;
  color: var(--text-main, #ffffff);
}

.skills-ticker {
  overflow: hidden;
  width: 100%;
  position: relative;
  /* Fade mask on the left and right edges */
  mask-image: linear-gradient(to right, transparent, black 15%, black 85%, transparent);
  -webkit-mask-image: linear-gradient(to right, transparent, black 15%, black 85%, transparent);
}

.skills-track {
  display: flex;
  gap: 20px;
  width: max-content;
  animation: scrollTrack 20s linear infinite;
}

.skills-ticker:hover .skills-track {
  animation-play-state: paused;
}

/* Skill Card Container */
.skill-card {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 24px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  font-size: 0.95rem;
  font-weight: 600;
  color: #ffffff;
  white-space: nowrap;
  backdrop-filter: blur(8px);
  transition: border-color 0.3s ease, box-shadow 0.3s ease, transform 0.2s ease;
}

/* Icon Image Sizing */
.skill-card img {
  width: 22px;
  height: 22px;
  object-fit: contain;
  display: block;
}

/* Hover Effect */
.skill-card:hover {
  border-color: var(--accent-color, #4fffd2);
  box-shadow: 0 0 15px rgba(79, 255, 210, 0.25);
  transform: translateY(-2px);
}

.skill-card i {
  font-size: 1.2rem;
  color: var(--accent-color, #4fffd2);
}

/* Loop keyframes */
@keyframes scrollTrack {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

/* ==========================================================================
   MY STORY SECTION WITH SETUP TABLE (global.css)
   ========================================================================== */
.story-section {
  margin-top: 80px;
  width: 100%;
}

.story-title {
  text-align: center;
  font-size: 1.8rem;
  margin-bottom: 28px;
  color: #ffffff;
}

.story-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  padding: 36px;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.story-block h3 {
  font-size: 1.15rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.story-step {
  font-family: monospace;
  font-size: 0.8rem;
  color: var(--accent-color, #4fffd2);
  background: rgba(79, 255, 210, 0.1);
  border: 1px solid rgba(79, 255, 210, 0.3);
  padding: 2px 8px;
  border-radius: 6px;
}

.story-block p {
  font-size: 1rem;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.8);
  margin: 0 0 16px 0;
}

.story-divider {
  height: 1px;
  background: linear-gradient(
    90deg,
    rgba(255, 255, 255, 0.02) 0%,
    rgba(79, 255, 210, 0.25) 50%,
    rgba(255, 255, 255, 0.02) 100%
  );
  width: 100%;
}

/* Setup Layout Grid */
.setup-grid {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-top: 16px;
}

@media (min-width: 768px) {
  .setup-grid {
    flex-direction: row;
    align-items: center;
  }
}

.setup-img-wrapper {
  flex: 1;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
}

.setup-img {
  width: 100%;
  height: 100%;
  max-height: 500px;
  object-fit: cover;
  display: block;
}

/* Specifications Table */
.setup-specs {
  flex: 1;
  width: 100%;
}

.specs-table {
  width: 100%;
  border-collapse: collapse;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  overflow: hidden;
  font-size: 0.88rem;
}

.specs-table th, 
.specs-table td {
  padding: 10px 14px;
  text-align: left;
}

.specs-table th {
  background: rgba(79, 255, 210, 0.08);
  color: var(--accent-color, #4fffd2);
  font-weight: 700;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.specs-table td {
  color: rgba(255, 255, 255, 0.85);
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.specs-table tr:last-child td {
  border-bottom: none;
}

/* ==========================================================================
   SCROLL REVEAL ANIMATIONS
   ========================================================================== */

/* Base Hidden State */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), 
              transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform;
}

/* Horizontal slide variants */
.reveal-left {
  opacity: 0;
  transform: translateX(-40px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), 
              transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal-right {
  opacity: 0;
  transform: translateX(40px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), 
              transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Active State (Triggered by JS when scrolled into view) */
.reveal.active,
.reveal-left.active,
.reveal-right.active {
  opacity: 1;
  transform: translate(0, 0);
}

/* Staggered Delay Helpers */
.delay-1 { transition-delay: 0.15s; }
.delay-2 { transition-delay: 0.3s; }
.delay-3 { transition-delay: 0.45s; }