/* ==========================================================================
        AUTHOR & COPYRIGHT INFO
        ==========================================================================
        Copyright (c) 2026 Ivan Iliev. All rights reserved.
        Author: Ivan Iliev
        Project: Private Portfolio Website
        Design & Development: Custom built by Author.
        Unauthorized copying of this code via any medium is prohibited.
        ==========================================================================
        */
/* CSS ARCHITECTURE:
           - Theme: Dark/Green/Neon aesthetic
           - Key Variables: Neon (#BFFF00) for highlights, Dark (#1A2634) for primary UI
           - Main Components: Hero Carousel, Tabbed Navigation, Interactive 3D Model Cards
        */

/* ---GLOBAL DESIGN SYSTEM & VARIABLES --- */

:root {
  --dark: #1a2634;
  --neon: #bfff00;
  --bg: #ebe9e9;
  --text: #333;
  --sidebar-width: 350px;
  --text-muted: #888;
  --sidebar-bg: #111111;
  --main-bg: #1a1a1a;
  --card-bg: #252525;
  --transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

/* --- HERO COMPONENT: Dynamic Carousel & Parallax --- */
.hero {
  position: relative;
  height: 95vh;
  /* Start full screen */
  transition: height 0.7s cubic-bezier(0.16, 1, 0.3, 1);
  min-height: 500px;
  background: var(--dark);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: white;
  overflow: hidden;
  transition: var(--transition);
}

/* Container for all slides */
.hero-carousel {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

/* 1. Hero Width for Zooming */
.hero,
.hero-carousel,
.slide {
  width: 100% !important;
  max-width: 100vw;
  left: 0;
}

/* Base style for every slide */
.slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  /* Hidden by default */
  transition: opacity 1.5s ease-in-out;
  /* Smooth cross-fade */
}

/* Visible slide */
.slide.active {
  opacity: 1;
}

.slide img,
.slide video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  /* This keeps your "slowPan" effect alive */
  animation: slowPan 20s infinite alternate ease-in-out;
}

/* Dark gradient overlay to keep text readable */
.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(rgba(26, 38, 52, 0.4), rgba(26, 38, 52, 0.7));
  z-index: 2;
  /* Sits on top of the media, below the text */
}

@keyframes slowPan {
  0% {
    transform: scale(1);
  }

  100% {
    transform: scale(1.1);
  }
}

/* The Squeeze Effect */
.hero.shrunk {
  height: 16vh;
  min-height: 100px;
}

.hero-content {
  position: relative;
  z-index: 2;
  padding: 0 20px;
  /*animation: float 4s infinite ease-in-out;*/
}

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

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

.hero h1 {
  font-size: clamp(3rem, 8vw, 5rem);
  margin: 0;
  letter-spacing: -2px;
  line-height: 1;
}

.hero p {
  color: var(--neon);
  text-transform: uppercase;
  letter-spacing: 5px;
  font-weight: bold;
  margin: 20px 0 40px 0;
  font-size: 1.1rem;
  transition: opacity 0.3s;
}

/* Hide the carousel completely when shrunk */
.hero.shrunk .hero-carousel {
  opacity: 0;
  pointer-events: none;
  /* Prevents interaction with hidden elements */
  transition: opacity 0.5s ease;
  /* Smooth fade out */
}

.hero.shrunk p {
  margin: 5px 0 10px 0;
}

.hero.shrunk .scroll-btn {
  display: none;
}

.scroll-btn {
  background: transparent;
  border: 2px solid var(--neon);
  color: var(--neon);
  padding: 15px 35px;
  font-weight: bold;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
  font-size: 0.9rem;
  letter-spacing: 2px;
}

.scroll-btn:hover {
  background: var(--neon);
  color: var(--dark);
}

body {
  background-color: var(--bg);
  color: var(--text);
  font-family: "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  margin: 0;
  padding: 0;
  scroll-behavior: auto;
}

/* --- NAVIGATION: Sticky Tab Logic --- */
.tabs-nav {
  position: sticky;
  top: 0;
  z-index: 1000;
  display: flex;
  justify-content: center;
  background: var(--dark);
  /*opaque when scrolling */
  border-bottom: 2px solid var(--neon);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.tab-btn {
  background: none;
  border: none;
  padding: 15px 25px;
  cursor: pointer;
  font-weight: bold;
  color: #fff;
  font-family: inherit;
  transition: all 0.3s ease;
}

.tab-btn:hover {
  color: var(--neon);
  background: rgba(255, 255, 255, 0.05);
}

.tab-btn.active {
  color: var(--neon);
  border-bottom: 3px solid var(--neon);
}

.container {
  max-width: 1000px;
  margin: 0 auto;
  padding: 40px 20px;
}

/* PDF Window Style */
.window {
  background: white;
  border-radius: 3px;
  overflow: hidden;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.1);
  margin-bottom: 60px;
}

.window-bar {
  background: var(--dark);
  padding: 20px 25px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: white;
  font-size: 0.9rem;
  font-weight: bold;
  cursor: pointer;
}

.window iframe {
  width: 100%;
  height: 700px;
  border: none;
  background: #222;
  display: block;
  transition: all 0.4s ease-in-out;
}

.window.collapsed iframe {
  height: 0;
  opacity: 0;
  pointer-events: none;
}

/*=====================================/CSS code for cards layout/========================================*/

.project-grid {
  display: grid;
  gap: 25px;
  /* Default: 1 column for mobile */
  grid-template-columns: 1fr;
}
/* On Tablet/Desktop (screens wider than 768px) */
@media (min-width: 768px) {
  .project-grid {
    /* Force exactly 2 columns */
    grid-template-columns: repeat(2, 1fr);
  }
}
/* Project grid for 3D viewer */
.project-grid-3d {
  display: grid;
  gap: 25px;
  /* This ensures it stays 1 column regardless of screen size */
  grid-template-columns: 1fr;

  /* Optional: If you want the cards to not be too wide on desktop, 
            add a max-width and center the grid */
  max-width: 800px;
  margin: 0 auto;
}

.card {
  background: white;
  padding: 27px;
  border-radius: 5px;
  text-decoration: none;
  color: inherit;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;
  border-left: 6px solid var(--dark);

  /* --- ALIGNMENT RULES --- */
  display: flex;
  flex-direction: column;
  height: 100%;
  /* Forces card to fill the grid cell height */
  box-sizing: border-box;
  /* Ensures padding doesn't break sizing */
}

.card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
  border-left-color: var(--neon);
}

.card h3 {
  margin: 0;
  color: var(--dark);
  font-size: 1.5rem;
}

.card .role {
  font-family: monospace;
  color: #777;
  margin: 10px 0;
  display: block;
}

/* Base Button Style */
.btn {
  /* Change 'margin-top: 20px' to 'auto' */
  margin-top: auto;

  display: inline-block;
  padding: 10px 25px;
  background: var(--dark);
  color: var(--neon);
  text-transform: uppercase;
  font-weight: bold;
  border-radius: 5px;
  font-size: 0.8rem;

  /* Keep your hover effects */
  border: 0px solid var(--neon);
  /* controls optional outline */
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  cursor: pointer;
  align-self: flex-start;
  /* Keeps button aligned to the left */
}

/* Hover Effect: Invert Colors + Neon Glow */
.btn:hover {
  background: var(--neon);
  color: var(--dark);
  box-shadow: 0 0 15px var(--neon);
  /* This creates the glowing effect */
  transform: scale(1.05);
  /* Slightly enlarges the button */
}

#contact a:hover {
  color: var(--neon);
  text-shadow: 0 0 6px var(--neon);
}

.card-image {
  aspect-ratio: 16 / 12;
  overflow: hidden;
  border-radius: 8px;
  margin-bottom: 15px;
  position: relative;
  padding: 0;
  display: block;
 
  /* This keeps the video inside the frame */
}

/* Make both elements fill the frame perfectly */
.card-image img,
.card-image .hover-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Put the video on top but hide it initially */
.hover-video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  /* Forces the video to fill the box, cropping edges instead of showing black bars */
  object-fit: cover;
  /* Keeps the focus on the center of the video */
  object-position: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}

/* When the card is hovered, fade the video in */
.card:hover .hover-video {
  opacity: 1;
}

/*=====================================/ Viewers for 3D models /========================================*/
.model-card .card-image {
  width: 100%;
  aspect-ratio: 16 / 10;
  /* Wider for 3D assets */
  height: auto;
  background: #111;
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid rgba(0, 255, 255, 0.1);
}

model-viewer {
  width: 100%;
  height: 100%;
  background-color: #1a1a1a;
  outline: none;
  --poster-color: transparent;
}

/* The "VIEW 3D" Badge */
.model-card::after {
  content: "VIEW 3D";
  position: absolute;
  top: 15px;
  right: 15px;
  background: var(--neon);
  color: #000;
  font-size: 0.7rem;
  padding: 4px 10px;
  font-weight: bold;
  pointer-events: none;
  opacity: 1;
  transition: opacity 0.4s ease;
  z-index: 10;
}

/* Hide badge when model starts loading */
.model-card.loading::after {
  opacity: 0;
}

/* Interaction cursor */
model-viewer {
  cursor: grab;
}

model-viewer:active {
  cursor: grabbing;
}

/* Progress Bar Color */
model-viewer::part(progress-bar) {
  background-color: var(--neon);
}

/* ================================/ 3D Model Info Box/============================ */
/* Sidebar Desktop Style */

.model-info-panel {
  position: absolute;
  top: 0;
  left: 0 !important; /* Forces the snap */
  margin: 0 !important; /* Removes any browser default margins */
  width: 230px;
  height: 100%;
  
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(10px);
  border-right: 1px solid #333; 
  padding: 25px 20px;
  
  display: flex;
  flex-direction: column;
  z-index: 10;
  transition: transform 0.3s ease;
  
  /* THIS IS THE KEY FIX: */
  box-sizing: border-box; 
  border-radius: 8px 0 0 8px; /* Matches the card's left-side curve */
  pointer-events: auto;           /* Allows you to scroll the text inside */
}

/* Technical Specs Styling */
.spec-label {
  display: block;
  color: var(--neon);
  font-family: "Orbitron", sans-serif;
  font-size: 0.6rem;
  text-transform: uppercase;
  margin-top: 15px;
  letter-spacing: 1px;
}

.tech-specs p {
  font-family: monospace;
  font-size: 0.75rem;
  color: #888;
  margin: 2px 0 0 0;
}

/* Mobile Button */
.info-toggle {
    display: none; /* Hidden on desktop */
    position: absolute;
    bottom: 15px;
    z-index: 11;
    left: 15px;
    pointer-events: auto !important; /* Ensures the button is clickable */
    z-index: 100; /* Places it above everything else */
    background: var(--neon);
    color: #000;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 0 15px rgba(191, 255, 0, 0.4);
}
.mobile-close { display: none; } /* Hidden on desktop */
/* Responsive Mobile Logic (Bottom Sheet Style) */

@media (max-width: 768px) {
    
    /* Info button */
    .info-toggle { display: flex; 
        align-items: center; 
        justify-content: center; 
    }


    .mobile-close {
        display: block;
        text-align: right;
        color: var(--neon);
        font-size: 0.7rem;
        margin-bottom: 10px;
        cursor: pointer;
    }

    .model-info-panel {
        top: auto !important;
        bottom: 0 !important;
        width: 100% !important;
        height: auto !important;
        max-height: 20%;
        border-right: none;
        border-top: 1px solid #333;
        border-radius: 15px 15px 0 0;

    }

    .model-info-panel.active {
        transform: translateY(0); /* Slide up */
    }
}
/*=====================================/ Tabs css code /========================================*/
/* All tabs hidden by default */
.tab-content {
  display: none;
  animation: fadeIn 0.5s ease;
}

/* Active tab */
.tab-content.active {
  display: block;
}

/* About tab layout */
#about.active {
  display: flex;
  gap: 30px;
  align-items: flex-start;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(15px);
  }

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

footer {
  text-align: center;
  margin-top: 80px;
  padding: 40px;
  border-top: 1px solid #ddd;
}

footer a {
  color: var(--dark);
  text-decoration: none;
  font-weight: bold;
  margin: 0 20px;
  border-bottom: 2px solid var(--neon);
}

/*===============/ Overlay text for 3D models /====================*/

/* Default state: Hide fullscreen elements */
.fullscreen-close,
.model-info-panel {
  display: none;
}

/* Fullscreen Styles */
model-viewer:fullscreen .fullscreen-close {
  display: block;
  position: absolute;
  top: 20px;
  right: 20px;
  background: none;
  border: 2px solid var(--neon);
  color: var(--neon);
  font-size: 2rem;
  padding: 5px 15px;
  cursor: pointer;
  z-index: 100;
  box-shadow: 0 0 10px var(--neon);
  transition: all 0.3s ease;
}

model-viewer:fullscreen .model-info-panel {
  display: block;
  position: absolute;
  bottom: 40px;
  left: 40px;
  background: rgba(26, 38, 52, 0.9);
  /* Dark background */
  border-left: 5px solid var(--neon);
  color: white;
  padding: 20px;
  max-width: 400px;
  z-index: 100;
  animation: slideIn 0.5s ease-out;
}

/* 1. The "X" Close Button */
model-viewer:fullscreen .fullscreen-close {
  display: flex;
  align-items: center;
  justify-content: center;
  position: absolute;
  top: 28.5px;
  /* Distance from top */
  right: 30px;
  /* Distance from right */
  width: 55px;
  height: 90px;
  background: rgba(26, 38, 52, 0.8);
  /* Semi-transparent dark */
  border: 2px solid var(--neon);
  color: var(--neon);
  font-size: 1.5rem;
  cursor: pointer;
  z-index: 999;
  border-radius: 4px;
  box-shadow: 0 0 15px rgba(191, 255, 0, 0.3);
  transition: all 0.2s ease;
}

/* 2. The Description Panel (Bottom Left) */
model-viewer:fullscreen .model-info-panel {
  display: block;
  position: absolute;
  bottom: 50px;
  /* Distance from bottom */
  left: 50px;
  /* Distance from left */
  background: rgba(17, 17, 17, 0.9);
  border-left: 5px solid var(--neon);
  color: white;
  padding: 25px;
  max-width: 350px;
  z-index: 998;
  pointer-events: none;
  /* Allows you to click "through" the box to rotate model */
  animation: slideInLeft 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

/* wireframe button */
model-viewer:fullscreen .wireframe-btn {
  display: block;
  position: absolute;
  top: 30px;
  right: 100px;
  /* Positioned to the left of the X button */
  background: rgba(26, 38, 52, 0.8);
  /* 1. THE BEVEL: Cuts the corners at 45 degrees */

    /* 2. THE RADIUS: Rounds the remaining sharp corners slightly */
    border-radius: 4px;
  
  border: 2px solid var(--neon);
  color: var(--neon);
  padding: 10px 15px;
  cursor: pointer;
  z-index: 999;
  font-weight: bold;
  font-family: monospace;
}

/* wireframe button */
model-viewer:fullscreen .random-color-btn {
  display: block;
  position: absolute;
  top: 80px;
  right: 100px;
  /* Positioned to the left of the X button */
  background: rgba(26, 38, 52, 0.8);
      border-radius: 4px;
  border: 2px solid var(--neon);
  color: var(--neon);
  padding: 10px 15px;
  cursor: pointer;
  z-index: 999;
  font-weight: bold;
  font-family: monospace;
}

model-viewer:fullscreen .wireframe-btn.active {
  background: var(--neon);
  color: var(--dark);
}

/* Hide by default when not in fullscreen */
.wireframe-btn {
  display: none;
}

.model-info-panel h3 {
  margin: 0 0 10px 0;
  color: var(--neon);
}

@keyframes slideIn {
  from {
    transform: translateX(-50px);
    opacity: 0;
  }

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

@keyframes slideInLeft {
  from {
    transform: translateX(-100px);
    opacity: 0;
  }

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

/* Hover effect for X */
model-viewer:fullscreen .fullscreen-close:hover {
  background: var(--neon);
  color: var(--dark);
  box-shadow: 0 0 20px var(--neon);
}

/* 1. Hide the random color button by default */
.random-color-btn {
  display: none;
}

/* 2. Only show it when the parent model-viewer is in fullscreen */
model-viewer:fullscreen .random-color-btn {
  display: block;
  position: absolute;
  top: 80px;
  right: 100px;
  background: rgba(26, 38, 52, 0.8);
  border: 2px solid var(--neon);
  color: var(--neon);
  padding: 10px 15px;
  cursor: pointer;
  z-index: 999;
  font-weight: bold;
  font-family: monospace;
  border-radius: 5px;
  /* Added to match your style */
}

/* 3. Optional: Add a hover effect to match your other buttons */
model-viewer:fullscreen .random-color-btn:hover {
  background: var(--neon);
  color: var(--dark);
}

model-viewer {
  background-color: #0a0a0a;
  /* Or whatever your --dark variable is */
  --poster-color: transparent;
}

/*==============================/Overlay for 3D Viwer/=========================== */

/* Style for the poster container */
#lazy-load-poster {
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  bottom: 0;
  background-size: cover;
  background-position: center;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 10;
}

.load-button {
  /* Shape and Size */
  width: 80px;
  height: 80px;
  border-radius: 50%;

  /* Centering the icon */
  display: flex;
  justify-content: center;
  align-items: center;

  /* Visuals */
  background: var(--neon, #00f3ff);
  color: #000;
  font-size: 2rem;
  cursor: pointer;
  box-shadow: 0 0 20px rgba(0, 243, 255, 0.6);
  transition: all 0.3s ease;

  /* Optical adjustment: play arrows often look off-center in circles, 
            so we nudge it slightly to the right */
  padding-left: 5px;
}
.load-button:hover {
  transform: scale(1.1);
  box-shadow: 0 0 30px var(--neon, #00f3ff);
}

/* Ensure the icon doesn't block the click event */
.load-button i {
  pointer-events: none;
}

/* 1. Hide it by default */
.progress-bar {
  display: none;
  width: 60%;
  height: 10px;
  position: absolute;
  top: 80%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid var(--neon, #00f3ff);
  border-radius: 5px;
  box-shadow: 0 0 10px rgba(0, 243, 255, 0.2);
  z-index: 100;
}

/* 3. The inner bar width starts at 0 */
.update-bar {
  background-color: var(--neon, #00f3ff);
  width: 0%;
  height: 100%;
  border-radius: 5px;
  /* Increase this time to make the movement "weighty" and smooth */
  transition: width 0.4s ease-out;
  box-shadow: 0 0 15px var(--neon, #00f3ff);
}

/* Force the poster to disappear when the loading process starts */
model-viewer:not([poster-dismissed]) #lazy-load-poster {
  display: flex; /* Show while not dismissed */
}

model-viewer.poster-dismissed #lazy-load-poster,
model-viewer[poster-dismissed] #lazy-load-poster {
  display: none !important; /* Hide instantly when clicked */
}

/* 2. Show it ONLY when the "loading-active" class is added to model-viewer */
model-viewer.loading-active .progress-bar {
  display: block;
}

/* ========================== About Photo ======================*/

/* Desktop Layout */
#about.active {
  display: flex;
  gap: 30px;
  align-items: flex-start;
}

.about-photo {
  width: 180px;
  height: 180px;
  margin-top: 64px;
  /* Aligns with the H2 text on desktop */
  border-radius: 3px;
  flex-shrink: 0;
  object-fit: cover;
}

/* Mobile Layout (Vertical Screens) */
@media (max-width: 768px) {
  #about.active {
    flex-direction: column;
    /* Stacks photo on top of text */
    align-items: center;
    /* Centers the photo and text */
    text-align: center;
    /* Centers paragraphs and headers */
    gap: 20px;
  }

  .about-photo {
    margin-top: 0;
    /* Removes the desktop gap */
    width: 150px;
    /* Slightly smaller for small screens */
    height: 150px;
  }

  /* Fix the grid for mobile so skills aren't squashed */
  #about ul {
    grid-template-columns: 1fr !important;
    text-align: left;
    /* Keeps list items readable */
    display: inline-block !important;
  }
}

/* --- VEX/VFX COMPONENT: Video Player Optimization --- */

/* Video Container Styles */
.video-container {
  width: 100%;
  position: relative;
  padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
  height: 0;
  overflow: hidden;
  background: #000;
  border-radius: 5px;
}

.video-container video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

/* Tech Tags Style */
.tech-tag {
  background: rgba(191, 255, 0, 0.1); /* Low opacity neon */
  color: var(--dark);
  border: 1px solid var(--neon);
  padding: 2px 8px;
  font-size: 0.75rem;
  border-radius: 4px;
  font-weight: bold;
  font-family: monospace;
}

/* Ensure the card expands properly for the video */
#vfx .card {
  height: auto; /* Allow height to grow based on content */
  display: block; /* Switch from flex to block for this specific layout */
}

/* ========================== Mobile specific Navigation Logic ======================*/

/* 2. Hamburger Button (Hidden on Desktop version) */
.menu-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--neon);
  font-size: 1.5rem;
  padding: 15px;
  cursor: pointer;
}

/* 3. Mobile Specific Navigation */
@media (max-width: 768px) {
  .card-image .hover-video {
    opacity: 0;
    transition: opacity 0.3s ease;
  }

  /* When the JS detects the video is on screen */
  .card-image.is-playing .hover-video {
    opacity: 1;
  }

  .menu-toggle {
    display: block;
    /* Show hamburger */
  }

  .tabs-nav {
    flex-direction: column;
    align-items: center;
  }

  .nav-links {
    display: none;
    /* Hide buttons by default on mobile */
    width: 100%;
    flex-direction: column;
    background: var(--dark);
  }

  /* When menu is open */
  .tabs-nav.open .nav-links {
    display: flex;
  }

  .tab-btn {
    width: 100%;
    padding: 15px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
  }

  .tab-btn.active {
    border-bottom: 3px solid var(--neon);
  }

  #about.active {
    flex-direction: column;
    align-items: center;
    gap: 20px;
  }

  #about.active > div {
    text-align: justify;
    /* Keeps the "box" look for paragraphs */
    text-justify: inter-word;
    width: 100%;
    max-width: 500px;
  }

  /* Change this from center to left */
  #about.active h2 {
    text-align: left;
    /* Now aligned to the left */
    margin-bottom: 15px;
    width: 100%;
    /* Ensures the alignment is relative to the box */
  }

  /* Keep your other mobile styles here... */
  .about-photo {
    margin-top: 0;
    width: 250px;
    height: 250px;
  }

  /* ========================== Footer Logic ======================*/

  .footer-links a {
    word-break: break-word;
    overflow-wrap: anywhere;
  }

  .footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
  }

  .footer-links {
    flex-direction: column;
    align-items: center;
  }
}

/* ========================== End of Mobile specific Navigation ======================*/
