:root {
  --bg: #050510;
  --bg-soft: #0b0b19;
  
  /* Brand Colors - Updated --accent to match your exact brand hex! */
  --accent: #4E7BFE;        /* Blue */
  --accent-purple: #8F55E2; /* Purple */
  --accent-green: #4EFE79;  /* Green */
  
  --text-main: #f5f5ff;
  --text-muted: #a6a7c4;
  --border-subtle: rgba(255, 255, 255, 0.08);
  --radius-xl: 24px;
  --shadow-soft: 0 26px 60px rgba(0, 0, 0, 0.65);
  --transition-fast: 180ms ease-out;
}

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

/* FIX: Framing - Prevents side-to-side wiggle and rubber-banding */
html, body { 
  max-width: 100vw; 
  height: 100%; 
  overflow-x: hidden; 
  position: relative;
  width: 100%;
}

body {
  font-family: "Outfit", sans-serif;
  background-color: var(--bg);
  background-image: 
    radial-gradient(circle at 15% 10%, rgba(76, 125, 255, 0.12) 0%, transparent 40%),
    radial-gradient(circle at 85% 25%, rgba(143, 85, 226, 0.12) 0%, transparent 45%),
    radial-gradient(circle at 50% 90%, rgba(78, 254, 121, 0.08) 0%, transparent 50%);
  background-attachment: fixed;
  color: var(--text-main);
  line-height: 1.6;
}

.page-wrapper {
  height: 100vh;
  display: flex;
  flex-direction: column;
  gap: 4rem; 
  overflow-y: auto;
  overflow-x: hidden; /* Strict horizontal lock */
  overscroll-behavior: none; /* Stops the "malleable" pull past content */
  scroll-behavior: smooth;
}

.section { max-width: 1120px; margin: 0 auto; width: 100%; padding: 0 1.25rem; }

/* 1. INTRO HERO & EXTENDED HEADER */
.intro-hero {
  position: relative;
}

.intro-header-bg {
  background: url("https://raw.githubusercontent.com/GabrielaFiona/gabrielafiona-portfolio-draft/c2a5e0257ac05a2a30d257e1db76544a3e6b79a8/assets/img/backgrndblutri.png");
  background-size: cover;
  background-position: center bottom; 
  padding: 3rem 2rem 14rem; 
  text-align: center;
}

.intro-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.5fr);
  gap: 3rem;
  align-items: center;
  margin-top: -12rem; 
  /* UPDATED: Standard background for mobile compatibility */
  background: rgba(11, 11, 25, 0.85); 
  backdrop-filter: blur(10px);
  padding: 3rem;
  border-radius: var(--radius-xl);
  box-shadow: 0 10px 40px rgba(0,0,0,0.5);
  position: relative; /* Anchor for the gradient border */
  border: 3px solid transparent; /* Reserve space for the border */
}

/* NEW: Bulletproof gradient border for mobile browsers */
.intro-inner::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: var(--radius-xl);
  padding: 3px; /* Thickness of the border */
  background: linear-gradient(135deg, var(--accent), var(--accent-purple), var(--accent-green));
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}

.intro-photo {
  width: 100%;
  max-width: 300px;
  justify-self: center;
  position: relative;
}

.intro-photo::before {
  content: '';
  position: absolute;
  inset: -10px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--accent-purple));
  z-index: -1;
  opacity: 0.6;
  filter: blur(15px);
}

.intro-photo img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 50%;
  border: 3px solid rgba(255,255,255,0.1);
}

/* Global Eyebrow style, overridden in specific colored sections below */
.eyebrow { 
  font-size: 0.85rem; 
  text-transform: uppercase; 
  letter-spacing: 0.2em; 
  background: linear-gradient(to right, var(--accent), var(--accent-purple));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  margin-bottom: 0.5rem; 
  font-weight: 700;
  display: inline-block;
}

h1 { font-size: clamp(2.5rem, 5vw, 4rem); font-weight: 700; color: #fff; margin-bottom: 0.5rem; }
h2 { font-size: 2.2rem; margin-bottom: 1rem; }

/* Title Glow Effect for colored sections 
   Layer 1: Dark, sharp shadow for edge definition and readability
   Layer 2: Soft white ambient glow behind the dark edge
*/
.resume-section .section-header h2 { 
  color: var(--accent);
  text-shadow: 0 2px 4px rgba(0,0,0,0.9), 0 0 15px rgba(255, 255, 255, 0.2); 
}
.learning-section .section-header h2 { 
  color: var(--accent-green);
  text-shadow: 0 2px 4px rgba(0,0,0,0.9), 0 0 15px rgba(255, 255, 255, 0.2); 
}
.logo-section .section-header h2 { 
  color: var(--accent);
  text-shadow: 0 2px 4px rgba(0,0,0,0.9), 0 0 15px rgba(255, 255, 255, 0.2); 
}
.work-section .section-header h2 { 
  color: var(--accent-purple);
  text-shadow: 0 2px 4px rgba(0,0,0,0.9), 0 0 15px rgba(255, 255, 255, 0.2); 
}

/* 2. TIMELINE SECTION */
.timeline-wrapper {
  position: relative;
  max-width: 900px;
  margin: 2rem auto 0;
  display: flex;
  flex-direction: column;
  gap: 2rem;
  align-items: center; 
}

.timeline-main-row {
  display: flex;
  width: 100%;
  justify-content: center;
}

.timeline-display {
  flex: 1;
  background: rgba(255,255,255,0.02);
  border: 1px solid var(--border-subtle);
  border-radius: 18px;
  padding: 2.5rem;
  text-align: center;
  min-height: 240px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
  transition: all 0.3s ease;
  overflow: hidden;
  max-width: 600px;
}

.timeline-display:hover {
  background: rgba(78, 123, 254, 0.04);
  border-color: var(--accent);
}

.timeline-slide {
  display: none;
  animation: fadeIn 0.4s ease forwards;
}
.timeline-slide.active { display: block; }

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

.timeline-year-label {
  display: inline-block;
  background: #ffffff;
  padding: 0.2rem 0.8rem;
  border-radius: 20px;
  font-size: 0.8rem;
  margin-bottom: 0.5rem;
  color: var(--accent);
  font-weight: 700;
}

/* Timeline Bullet Point Tags (Removed pill styling, stacked like bullet points) */
.timeline-bullets {
  list-style-type: none;
  margin: 1.2rem auto 0 auto;
  padding-left: 0;
  display: inline-block; /* Keeps the block centered in your layout */
  text-align: left; /* Ensures the text aligns beautifully like a list */
  color: var(--text-muted);
  font-size: 0.95rem;
}

.timeline-bullets li {
  position: relative;
  padding-left: 1.2rem;
  margin-bottom: 0.4rem;
}

.timeline-bullets li::before {
  content: '•';
  color: var(--accent);
  position: absolute;
  left: 0;
  font-size: 1.2rem;
  line-height: 1;
}

.timeline-nav-row {
  display: flex;
  flex-direction: row;
  justify-content: center;
  gap: 1rem;
  width: 100%;
}

.timeline-nav-btn {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #ffffff;
  padding: 0.8rem 1.2rem;
  border-radius: 50px;
  cursor: pointer;
  font-family: "Outfit", sans-serif;
  font-size: 0.85rem;
  font-weight: 600;
  transition: 0.3s;
  white-space: nowrap;
  user-select: none;
  min-width: 130px;
  box-shadow: 0 0 15px rgba(78, 123, 254, 0.5); /* Blue background glow */
}

.timeline-nav-btn:hover {
  border-color: var(--accent);
  color: #ffffff;
  background: rgba(78, 123, 254, 0.15);
  box-shadow: 0 0 20px rgba(78, 123, 254, 0.9);
}

.timeline-track-container {
  width: 100%;
  max-width: 500px;
  margin: 0 auto;
  position: relative;
  padding-top: 15px;
  height: 60px; 
}

.timeline-line {
  position: absolute;
  top: 22px;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--border-subtle);
  z-index: 1;
}

.timeline-dots {
  position: relative;
  z-index: 2;
  display: flex;
  justify-content: space-between; 
}

.t-dot-wrapper {
  text-align: center;
  cursor: default;
  width: 40px; 
  transition: 0.3s;
}

.t-dot {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--bg);
  border: 2px solid var(--text-muted);
  margin: 0 auto 5px;
  transition: 0.3s;
}

.t-dot-wrapper.active .t-dot {
  background: var(--accent);
  border-color: var(--accent);
  transform: scale(1.3);
}

/* ---------------------------------------------------- */
/* DESKTOP SPATIAL LAYOUT & SECTION SEPARATION          */
/* ---------------------------------------------------- */
.desktop-row {
  display: flex;
  flex-direction: column;
  gap: 4rem;
  width: 100%;
}

/* Emphasis for the Timeline (Experience) Section - BLUE THEME */
.resume-section {
  background: linear-gradient(180deg, var(--bg-soft) 0%, rgba(11, 11, 25, 0.6) 100%);
  border-radius: var(--radius-xl);
  padding: 3rem;
  border: 1px solid rgba(78, 123, 254, 0.2);
  box-shadow: 0 20px 50px rgba(0,0,0,0.4), inset 0 0 0 1px rgba(78, 123, 254, 0.15); 
}
.resume-section .eyebrow { background: var(--accent); -webkit-background-clip: text; color: transparent; }

/* De-emphasized, subtle style for the Learning Section - GREEN THEME */
.learning-section {
  background: linear-gradient(180deg, rgba(78, 254, 121, 0.02) 0%, rgba(78, 254, 121, 0.06) 100%);
  border-radius: var(--radius-xl);
  padding: 3rem;
  border: 1px solid rgba(78, 254, 121, 0.15); 
}
.learning-section .eyebrow { background: var(--accent-green); -webkit-background-clip: text; color: transparent; }

/* Screen Fit for Desktop */
@media (min-width: 851px) {
  .desktop-row {
    flex-direction: row;
    align-items: flex-start;
    gap: 2rem; 
  }
  .resume-section {
    flex: 1.6; 
    min-width: 0; 
    padding: 2rem; 
  }
  .learning-section {
    flex: 1; 
    min-width: 0;
    padding: 2rem; 
  }
  .timeline-wrapper {
    gap: 1.25rem; 
    margin-top: 1rem;
  }
  .timeline-display {
    padding: 1.5rem; 
    min-height: 180px; 
  }
  .learning-grid {
    grid-template-columns: 1fr; 
    margin-top: 1rem;
    gap: 1rem; 
  }
  .learning-card {
    padding: 1.25rem; 
  }
  h2 {
    font-size: 1.8rem; 
  }
}

/* 3. CURRENTLY LEARNING */
.learning-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}

.learning-card {
  background: rgba(5, 5, 16, 0.4); 
  border: 1px solid rgba(78, 254, 121, 0.2);
  border-radius: 16px;
  padding: 1.5rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  transition: transform 0.2s ease;
}

.learning-card:hover {
  transform: translateY(-3px);
  background: rgba(5, 5, 16, 0.7);
  border-color: var(--accent-green);
}

.learning-icon {
  font-size: 1.5rem;
  color: var(--accent-green);
  background: rgba(78, 254, 121, 0.1);
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
}

.learning-info h3 { font-size: 1.1rem; margin-bottom: 0.2rem; color: #fff; }
.learning-info p { font-size: 0.9rem; color: #cfcfdf; line-height: 1.4; }

/* 4. LOGO SCROLLER SECTION - LIGHTER BLUE THEME */
.logo-section {
  background: linear-gradient(135deg, rgba(78, 123, 254, 0.08), rgba(78, 123, 254, 0.15));
  border-radius: var(--radius-xl);
  padding: 3rem;
  border: 1px solid rgba(78, 123, 254, 0.3);
  box-shadow: inset 0 0 0 1px rgba(78, 123, 254, 0.1);
}
.logo-section .eyebrow { background: var(--accent); -webkit-background-clip: text; color: transparent; }

.logo-scroller {
  position: relative;
  overflow: hidden; 
  border-radius: 18px;
  border: none;
  background: transparent;
  padding: 1.5rem 0;
  cursor: grab; 
}
.logo-scroller:active { cursor: grabbing; }

.logo-track {
  display: flex;
  align-items: center;
  gap: 3.5rem; 
  white-space: nowrap;
  padding-left: 2rem;
  width: max-content; 
  user-select: none; 
}

.logo-item {
  flex: 0 0 auto;
  width: 200px; 
  height: 110px; 
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: auto; 
}

/* Logo Lighting Effect */
.logo-item img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  opacity: 0.9;
  transition: opacity 0.3s, filter 0.3s;
  pointer-events: none; 
  filter: drop-shadow(0 3px 5px rgba(0, 0, 0, 0.9)) drop-shadow(0 0 10px rgba(78, 123, 254, 0.35)); 
}

/* 5. PROJECT LIBRARY CAROUSEL - PURPLE THEME */
.work-section {
  background: linear-gradient(180deg, rgba(143, 85, 226, 0.03), rgba(143, 85, 226, 0.08));
  border-radius: var(--radius-xl);
  padding: 3rem;
  border: 1px solid rgba(143, 85, 226, 0.2);
}
.work-section .eyebrow { background: var(--accent-purple); -webkit-background-clip: text; color: transparent; }

.carousel-shell { 
  background: rgba(5, 5, 16, 0.6); 
  border-radius: var(--radius-xl); 
  padding: 2.5rem; 
  border: 1px solid rgba(143, 85, 226, 0.3); 
  position: relative; 
  box-shadow: 0 20px 50px rgba(0,0,0,0.4), inset 0 0 0 1px rgba(143, 85, 226, 0.1);
}

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

.carousel-header-text { font-size: 1.25rem; font-weight: 600; color: #fff; }

.carousel-window { overflow: hidden; }

.carousel-track {
  display: flex;
  gap: 0; 
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.carousel-track::-webkit-scrollbar { display: none; }

.carousel-item {
  min-width: 100%;
  scroll-snap-align: center;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: center;
  padding: 0.5rem;
}

.carousel-visual img { 
  width: 100%; 
  height: 320px; 
  object-fit: cover; 
  border-radius: 16px;
  border: 1px solid rgba(255,255,255,0.1); 
}

.carousel-title { font-size: 1.5rem; color: #fff; margin-bottom: 0.5rem; font-family: "IBM Plex Serif", serif; }
.carousel-mock-caption { 
  margin-top: 0.5rem; 
  font-size: 0.85rem; 
  color: var(--accent-purple); 
  font-weight: 500; 
  letter-spacing: 0.05em;
}

.carousel-nav { display: flex; gap: 0.5rem; }

.carousel-btn {
  background: transparent;
  border: 1px solid var(--border-subtle);
  color: var(--text-main);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  font-size: 1.2rem;
}

.carousel-btn:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
  transform: scale(1.05);
}

.carousel-dots { display: flex; justify-content: center; gap: 8px; margin-top: 1.5rem; }
.carousel-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255,255,255,0.2);
  border: none;
  cursor: pointer;
  padding: 0;
  transition: 0.3s;
}
.carousel-dot.is-active { background: var(--accent-purple); transform: scale(1.2); }

/* FOOTER */
.mini-footer { 
  padding: 4rem 0 6rem 0; 
  text-align: center; 
  border-top: 1px solid var(--border-subtle);
  margin-top: auto; 
  background: linear-gradient(to top, rgba(5,5,16,1), transparent);
}
.footer-logo img {
  max-height: 40px; 
  width: auto;
  margin-bottom: 1rem;
  opacity: 0.9;
}
.fb-icon { width: 20px; height: 20px; filter: invert(100%); opacity: 0.7; transition: 0.2s;}
.fb-icon:hover { opacity: 1; filter: drop-shadow(0 0 5px var(--accent)); }

/* RESPONSIVE */
/* Shrinking the Carousel and outer padding for Desktop Fit */
@media (min-width: 851px) {
  .work-section {
    padding: 2rem; 
  }
  .carousel-shell {
    padding: 1.5rem 2rem; 
  }
  .carousel-visual img {
    height: 250px; 
  }
  .carousel-item {
    gap: 1.5rem; 
  }
}

@media (max-width: 850px) {
  .intro-inner, .resume-grid, .carousel-item { grid-template-columns: 1fr; text-align: center; }
  .intro-photo { max-width: 220px; margin-bottom: 1.5rem; }
  .carousel-nav { display: none; }
  .carousel-visual img { height: 250px; }
  
  .resume-section, .learning-section, .logo-section, .work-section {
    padding: 1.5rem;
  }
  
  .mini-footer {
    padding-bottom: 9rem; 
  }
  
  .logo-scroller {
    border-radius: 0;
    border-left: none;
    border-right: none;
    padding: 1rem 0;
    margin: 0; 
    width: 100%;
  }

  .logo-item {
    width: 160px; 
    height: 90px; 
  }

  .timeline-nav-row {
    display: flex;
    flex-direction: row; 
    justify-content: center;
    gap: 10px;
    width: 100%;
    margin-top: 10px;
  }
}
