/* 
   Modern Cloud Engineer Portfolio Theme 
   Palette: Black/Grey & Soft Pink
*/

:root {
  /* Color Palette - Soft Pink & Dark */
  --bg-primary: #0f0f0f;
  /* Deep Black/Grey */
  --bg-secondary: #18191a;
  /* Lighter Black */
  --bg-card: rgba(30, 30, 32, 0.6);

  --text-primary: #f2f2f2;
  --text-secondary: #a0a0a0;
  --text-muted: #666666;

  --accent-primary: #f9a8d4;
  /* Soft Pink (Tailwind Pink-300) */
  --accent-secondary: #f472b6;
  /* Pink-400 */
  --accent-glow: rgba(249, 168, 212, 0.25);

  --border-color: #2d2d2d;
  --border-hover: #f9a8d4;
  /* Pink border on hover */

  /* Typography */
  --font-main: "Inter", system-ui, -apple-system, sans-serif;
  --font-mono: "JetBrains Mono", "Fira Code", monospace;

  /* Spacing & Layout */
  --container-width: 1200px;
  --header-height: 80px;
  --radius-md: 12px;
  --radius-lg: 20px;
}

/* Reset & Base */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-main);
  background-color: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
}

a {
  text-decoration: none;
  color: inherit;
  transition: all 0.3s ease;
}

ul {
  list-style: none;
}

/* Typography Utilities */
h1,
h2,
h3,
h4,
h5,
h6 {
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 1rem;
  color: var(--text-primary);
}

h1 {
  font-size: 4rem;
  letter-spacing: -0.02em;
  background: linear-gradient(
    to right,
    var(--text-primary),
    var(--accent-primary)
  );
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

h2 {
  font-size: 2.5rem;
  color: var(--text-primary);
  margin-bottom: 2.5rem;
  position: relative;
  display: inline-block;
}

/* Underline style for headings */
h2::after {
  content: "";
  display: block;
  width: 40px;
  height: 3px;
  background: var(--accent-primary);
  margin-top: 0.5rem;
  border-radius: 2px;
}

p {
  margin-bottom: 1.5rem;
  color: var(--text-secondary);
}

.text-accent {
  color: var(--accent-primary);
}

.text-secondary {
  color: var(--text-secondary);
}

.font-mono {
  font-family: var(--font-mono);
}

/* Container */
.container {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 2rem;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  padding: 0.8rem 2.2rem;
  border-radius: 50px;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.3s ease;
  border: 1px solid transparent;
}

.btn-primary {
  background-color: var(--accent-primary);
  color: #1a0510;
  /* Dark pink/brown for contrast text */
  border-color: var(--accent-primary);
  box-shadow: 0 4px 15px var(--accent-glow);
}

.btn-primary:hover {
  background-color: var(--text-primary);
  border-color: var(--text-primary);
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(255, 255, 255, 0.2);
}

.btn-outline {
  border-color: var(--accent-primary);
  color: var(--accent-primary);
  background: transparent;
}

.btn-outline:hover {
  background: rgba(249, 168, 212, 0.1);
  transform: translateY(-3px);
}

/* Floating Header & Nav */
header {
  position: fixed;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  width: 90%;
  max-width: 1000px;
  height: 70px;
  /* Slightly shorter for sleek look */
  z-index: 1000;

  /* Realistic Float Glass Effect */
  background: rgba(20, 20, 22, 0.6);
  /* Slightly more transparent */
  backdrop-filter: blur(16px) saturate(180%);
  -webkit-backdrop-filter: blur(16px) saturate(180%);

  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 50px;
  /* Pill shape */

  box-shadow:
    0 4px 30px rgba(0, 0, 0, 0.1),
    0 1px 3px rgba(0, 0, 0, 0.2),
    inset 0 0 20px rgba(255, 255, 255, 0.02);
  /* Inner lighting */

  transition: all 0.3s ease;
}

/* Float Animation on Load */
@keyframes floatDown {
  from {
    transform: translate(-50%, -20px);
    opacity: 0;
  }

  to {
    transform: translate(-50%, 0);
    opacity: 1;
  }
}

header {
  animation: floatDown 0.8s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
}

header .container {
  height: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 2rem;
  /* Ensure padding inside the pill */
}

.logo {
  font-size: 1.5rem;
  font-weight: 800;
  /* Bolder for impact */
  font-family: var(--font-main);
  /* Switch to main font for cleaner look */
  color: var(--text-primary);
  letter-spacing: -0.03em;
}

.nav-links {
  display: flex;
  gap: 3vw;
  /* Responsive gap */
  align-items: center;
}

.nav-links a {
  color: var(--text-secondary);
  font-weight: 500;
  font-size: clamp(0.9rem, 1.2vw, 1.1rem);
  /* Fluid font size */
  transition: all 0.3s ease;
  position: relative;
  padding-bottom: 4px;
  /* Space for underline */
}

/* Underline Animation */
.nav-links a::after {
  content: "";
  position: absolute;
  width: 0;
  height: 2px;
  bottom: 0;
  left: 0;
  /* Start from left */
  background-color: var(--accent-primary);
  transition: all 0.3s ease-in-out;
  transform: none;
  /* Remove center transform */
  box-shadow: 0 0 8px var(--accent-primary);
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--text-primary);
  text-shadow: 0 0 12px rgba(249, 168, 212, 0.4);
}

.nav-links a:hover::after,
.nav-links a.active::after {
  width: 100%;
}

/* --- Search Toggle Styles --- */
.search-container {
  position: relative;
  display: flex;
  align-items: center;
  height: 40px;
  margin-left: 1rem;
}

.search-btn {
  background: transparent;
  border: none;
  color: var(--text-primary);
  font-size: 1.1rem;
  cursor: pointer;
  transition: all 0.3s ease;
  padding: 0.5rem;
  border-radius: 50%;
}

.search-btn:hover {
  color: var(--accent-primary);
  background: rgba(255, 255, 255, 0.05);
  transform: scale(1.1);
}

/* --- Search Active State (Desktop) --- */
/* --- Search Active State (Desktop) --- */
.nav-links li:not(.search-container) {
  /* Set explicit max-width for transition to work */
  max-width: 100px;
  /* Adjust based on content */
  opacity: 1;
  transform: translateX(0);
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  overflow: hidden;
  white-space: nowrap;
}

.nav-links.search-active li:not(.search-container) {
  opacity: 0;
  visibility: hidden;
  max-width: 0;
  margin: 0;
  padding: 0;
  transform: translateX(20px);
}

.search-input-wrapper {
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 0;
  height: 40px;
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: 20px;
  display: flex;
  align-items: center;
  overflow: hidden;
  transition:
    width 0.4s cubic-bezier(0.4, 0, 0.2, 1),
    opacity 0.3s ease;
  opacity: 0;
  pointer-events: none;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  z-index: 10;
}

.search-input-wrapper.active {
  width: 300px;
  /* Slightly wider for better UX */
  max-width: calc(100vw - 120px);
  /* Prevent overflow on small screens */
  opacity: 1;
  pointer-events: auto;
  padding: 0 0.5rem 0 1rem;
  background: rgba(15, 15, 15, 0.95);
  /* Ensure solid background */
  backdrop-filter: blur(10px);
}

#search-input {
  width: 100%;
  background: transparent;
  border: none;
  outline: none;
  color: var(--text-primary);
  font-family: var(--font-main);
  font-size: 0.9rem;
}

.close-search {
  background: transparent;
  border: none;
  color: var(--text-secondary);
  cursor: pointer;
  padding: 0.5rem;
  font-size: 0.9rem;
  transition: color 0.2s;
}

.close-search:hover {
  color: var(--accent-primary);
}

/* --- Entrance Animations --- */
@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInLeft {
  from {
    opacity: 0;
    transform: translateX(-20px);
  }

  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.logo {
  animation: fadeInLeft 0.8s ease-out 0.2s forwards;
  opacity: 0;
  /* Star hidden */
}

.nav-links li {
  opacity: 0;
  animation: fadeInDown 0.6s ease-out forwards;
}

/* Staggered animation triggers */
.nav-links li:nth-child(1) {
  animation-delay: 0.3s;
}

.nav-links li:nth-child(2) {
  animation-delay: 0.4s;
}

.nav-links li:nth-child(3) {
  animation-delay: 0.5s;
}

.nav-links li:nth-child(4) {
  animation-delay: 0.6s;
}

.nav-links li:nth-child(5) {
  animation-delay: 0.7s;
}

/* Search/Resume */

.mobile-toggle {
  display: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--text-primary);
}

/* Hero Section */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: 150px;
  /* Increased from var(--header-height) for breathing room */
  position: relative;
  overflow: hidden;
}

.hero-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 4rem;
}

.hero-content {
  flex: 1;
  max-width: 650px;
}

/* Soft Pink Glow */
.glow-bg {
  position: absolute;
  width: 800px;
  height: 800px;
  background: radial-gradient(
    circle,
    rgba(249, 168, 212, 0.08) 0%,
    rgba(15, 15, 15, 0) 70%
  );
  border-radius: 50%;
  top: -200px;
  right: -200px;
  z-index: -1;
  pointer-events: none;
}

.hero-subtitle {
  font-family: var(--font-mono);
  color: var(--accent-primary);
  margin-bottom: 1rem;
  display: block;
  font-size: 1.1rem;
}

.hero h1 {
  margin-bottom: 1.5rem;
  font-size: 3.5rem;
  /* Adjusted for split layout */
}

.hero-description {
  font-size: 1.15rem;
  max-width: 600px;
  margin-bottom: 2.5rem;
  color: var(--text-secondary);
}

.hero-actions {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.hero-cta {
  display: flex;
  gap: 1rem;
}

/* Social Buttons */
.social-links {
  display: flex;
  gap: 1rem;
  margin-top: 0.5rem;
}

.social-btn {
  width: 45px;
  height: 45px;
  border-radius: 50%;
  border: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  font-size: 1.2rem;
  transition: all 0.3s ease;
  background: var(--bg-secondary);
}

.social-btn:hover {
  border-color: var(--accent-primary);
  color: var(--accent-primary);
  transform: translateY(-3px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

/* Hero Visual & Profile Circle */
.hero-visual {
  flex: 1;
  display: flex;
  justify-content: center;
  position: relative;
}

.profile-circle {
  position: relative;
  width: 380px;
  height: 380px;
  border-radius: 50%;
  padding: 6px;
  /* Reduced gap for cleaner look */
  background: var(--bg-secondary);
  box-shadow:
    0 10px 40px rgba(0, 0, 0, 0.5),
    /* Softer deep shadow */ 0 0 0 1px rgba(255, 255, 255, 0.05);
  /* Subtle inner rim */
  display: flex;
  align-items: center;
  justify-content: center;
}

.profile-circle::before {
  content: "";
  position: absolute;
  inset: -2px;
  /* Hugs closer */
  border-radius: 50%;
  padding: 2px;
  background: linear-gradient(
    180deg,
    var(--accent-primary),
    rgba(255, 255, 255, 0.1),
    var(--accent-secondary)
  );
  -webkit-mask:
    linear-gradient(#fff 0 0) content-box,
    linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0.8;
  /* Slightly more subtle */
}

.profile-img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  filter: grayscale(20%);
  /* Artistic touch */
  transition: filter 0.5s ease;
}

.profile-circle:hover .profile-img {
  filter: grayscale(0%);
}

.circle-glow {
  position: absolute;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: var(--accent-primary);
  opacity: 0.1;
  filter: blur(40px);
  z-index: -1;
  animation: pulseGlow 4s infinite alternate;
}

@keyframes pulseGlow {
  from {
    transform: scale(0.9);
    opacity: 0.05;
  }

  to {
    transform: scale(1.1);
    opacity: 0.15;
  }
}

@media (max-width: 968px) {
  .hero-container {
    flex-direction: column-reverse;
    text-align: center;
    gap: 3rem;
    padding-top: 120px;
    /* Increased to clear mobile navbar */
  }

  .hero-content {
    align-items: center;
    display: flex;
    flex-direction: column;
  }

  .hero-description {
    margin-left: auto;
    margin-right: auto;
  }

  .hero-actions {
    align-items: center;
  }

  .profile-circle {
    width: 280px;
    height: 280px;
  }
}

/* Sections General */
section {
  padding: 7rem 0;
}

/* Tech Stack / Grid */
.tech-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.tech-item {
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  padding: 2rem;
  border-radius: var(--radius-md);
  text-align: center;
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.tech-item:hover {
  border-color: var(--accent-primary);
  transform: translateY(-5px);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.tech-icon {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  color: var(--text-secondary);
  transition: color 0.3s;
}

.tech-item:hover .tech-icon {
  color: var(--accent-primary);
}

.tech-name {
  font-size: 0.9rem;
  font-weight: 600;
}

/* Projects Card */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 2.5rem;
}

.project-card {
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.project-card:hover {
  border-color: var(--accent-primary);
  transform: translateY(-5px);
}

.project-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 1.5rem;
}

.folder-icon {
  font-size: 2.2rem;
  color: var(--accent-primary);
}

.project-links a {
  color: var(--text-secondary);
  font-size: 1.3rem;
  margin-left: 1rem;
  transition: color 0.2s;
}

.project-links a:hover {
  color: var(--accent-primary);
}

.project-title {
  font-size: 1.4rem;
  margin-bottom: 1rem;
  color: var(--text-primary);
}

.project-desc {
  font-size: 1rem;
  margin-bottom: 2rem;
  flex-grow: 1;
  color: var(--text-secondary);
}

.project-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--accent-primary);
}

/* Contact Section */
.contact {
  text-align: center;
  max-width: 600px;
  background: var(--bg-secondary);
  padding: 3rem;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-color);
}

/* Footer */
footer {
  text-align: center;
  padding: 4rem 0;
  color: var(--text-muted);
  font-size: 0.9rem;
  font-family: var(--font-mono);
}

/* Media Queries */
@media (max-width: 768px) {
  h1 {
    font-size: 3rem;
  }

  header {
    width: 95%;
    top: 15px;
  }

  .nav-links {
    position: fixed;
    top: 85px;
    /* Pushed down below the floating header */
    right: 2.5%;
    /* Align with header edge */
    width: 95%;
    /* Match header width */
    height: auto;
    border-radius: 20px;

    background: rgba(20, 20, 22, 0.95);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);

    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 2rem;
    gap: 1.5rem;

    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  }

  .nav-links.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    /* Override previous right styling if needed */
    right: 2.5%;
  }

  .nav-links a {
    font-size: 1.25rem;
  }

  .mobile-toggle {
    display: block;
  }

  /* Mobile Search Adjustments */
  .nav-links.search-active li:not(.search-container) {
    display: none;
    /* Fully hide on mobile to save space */
  }

  .search-input-wrapper.active {
    position: relative;
    right: auto;
    top: auto;
    transform: none;
    width: 100%;
    /* Full width in mobile menu */
    max-width: 280px;
  }

  .search-container {
    width: 100%;
    justify-content: center;
  }
}

/* --- Bento Grid About Section --- */
.bento-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: auto auto;
  gap: 1.5rem;
  margin-top: 2rem;
}

.bento-item {
  /* Advanced Glassmorphism */
  background: linear-gradient(
    145deg,
    rgba(255, 255, 255, 0.03) 0%,
    rgba(255, 255, 255, 0.01) 100%
  );
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  /* Highlight top */
  border-left: 1px solid rgba(255, 255, 255, 0.15);
  /* Highlight left */

  border-radius: 24px;
  /* More rounded */
  padding: 2.5rem;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4);
}

.bento-item::before {
  /* Interior Glow */
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(
    800px circle at var(--mouse-x, 0) var(--mouse-y, 0),
    rgba(255, 255, 255, 0.06),
    transparent 40%
  );
  z-index: 0;
  opacity: 1;
}

.bento-item:hover {
  transform: translateY(-8px) scale(1.02);
  border-color: rgba(249, 168, 212, 0.3);
  box-shadow:
    0 20px 50px rgba(0, 0, 0, 0.5),
    0 0 20px rgba(249, 168, 212, 0.1);
}

.bento-item > * {
  position: relative;
  /* Bring content above glow */
  z-index: 1;
}

.bento-item h3 {
  font-size: 1.3rem;
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

/* Specific Card Layouts */
.bio-card {
  grid-column: span 2;
  /* Takes up 2 columns */
}

.bio-card p {
  font-size: 1.05rem;
  line-height: 1.7;
  margin-bottom: 1rem;
}

.signature {
  font-family: "Dancing Script", cursive;
  /* Fallback will catch if not loaded */
  font-size: 1.5rem;
  color: var(--accent-primary);
  margin-top: auto;
  align-self: flex-end;
}

.edu-card {
  grid-row: span 2;
  /* Tall card for timeline */
}

/* Timeline specific styles */
.timeline {
  border-left: 2px solid var(--border-color);
  padding-left: 1.5rem;
  position: relative;
}

.timeline-item {
  position: relative;
  margin-bottom: 2rem;
}

.timeline-item:last-child {
  margin-bottom: 0;
}

.timeline-item::before {
  content: "";
  position: absolute;
  left: -1.95rem;
  /* Adjust to sit on line */
  top: 5px;
  width: 12px;
  height: 12px;
  background: var(--accent-primary);
  border-radius: 50%;
  box-shadow: 0 0 10px var(--accent-primary);
}

.year {
  font-size: 0.85rem;
  font-family: var(--font-mono);
  color: var(--accent-primary);
  margin-bottom: 0.3rem;
  display: block;
}

.school {
  color: var(--text-secondary);
  font-size: 0.9rem;
}

.achievement-list {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}

.achievement-list li {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.achievement-list i {
  font-size: 1.5rem;
  color: #ffd700;
  /* Gold */
}

.hobby-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
}

.hobby-tags span {
  background: rgba(255, 255, 255, 0.05);
  padding: 0.5rem 1rem;
  border-radius: 50px;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  transition: all 0.3s;
}

.hobby-tags span:hover {
  background: var(--accent-primary);
  color: #000;
}

/* Responsive Grid */
@media (max-width: 900px) {
  .bento-grid {
    grid-template-columns: 1fr;
    /* Stack everything */
  }

  .bio-card,
  .edu-card,
  .skills-card {
    grid-column: auto;
    grid-row: auto;
  }
}

/* Skills Card Specifics */
.skills-card {
  grid-column: span 3;
  /* Full width at bottom */
}

.skill-list {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.skill-info {
  display: flex;
  justify-content: space-between;
  margin-bottom: 0.5rem;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-primary);
}

.progress-bg {
  width: 100%;
  height: 10px;
  /* Slightly thicker */
  background: rgba(0, 0, 0, 0.3);
  /* Darker trough */
  border-radius: 20px;
  overflow: hidden;
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.5);
  /* Inner shadow for depth */
}

.progress-fill {
  height: 100%;
  background: linear-gradient(
    90deg,
    var(--accent-primary),
    var(--accent-secondary),
    var(--accent-primary)
  );
  background-size: 200% 100%;
  border-radius: 20px;
  position: relative;
  animation: shimmer 3s infinite linear;
  box-shadow: 0 0 15px rgba(249, 168, 212, 0.6);
}

@keyframes shimmer {
  0% {
    background-position: 100% 0;
  }

  100% {
    background-position: -100% 0;
  }
}

/* --- Achievements Gallery Slider --- */
.gallery-slider-container {
    position: relative;
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-top: 2.5rem;
}

.gallery-slider-wrapper {
    overflow: hidden;
    flex: 1;
    border-radius: 20px;
}

.gallery-grid {
    display: flex;
    gap: 1.5rem;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.gallery-item {
    flex: 0 0 calc((100% - 3rem) / 3);
    min-width: calc((100% - 3rem) / 3);
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.03) 0%, rgba(255, 255, 255, 0.01) 100%);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 20px;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    display: flex;
    flex-direction: column;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    cursor: pointer;
}

.gallery-item:hover {
  transform: translateY(-10px) scale(1.02);
  border-color: var(--accent-primary);
  box-shadow:
    0 25px 50px rgba(0, 0, 0, 0.4),
    0 0 30px rgba(249, 168, 212, 0.15);
}

.gallery-img {
  position: relative;
  width: 100%;
  height: 220px;
  overflow: hidden;
}

.gallery-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition:
    transform 0.6s ease,
    filter 0.3s ease;
}

.gallery-item:hover .gallery-img img {
  transform: scale(1.15);
  filter: brightness(1.1);
}

.gallery-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    135deg,
    rgba(249, 168, 212, 0.2) 0%,
    rgba(0, 0, 0, 0.6) 100%
  );
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.4s ease;
  backdrop-filter: blur(3px);
}

.gallery-item:hover .gallery-overlay {
  opacity: 1;
}

.gallery-overlay i {
  color: white;
  font-size: 2.5rem;
  transform: scale(0.5) rotate(-15deg);
  transition:
    transform 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275),
    opacity 0.3s;
  background: var(--accent-primary);
  padding: 1.2rem;
  border-radius: 50%;
  box-shadow: 0 10px 30px rgba(249, 168, 212, 0.4);
  opacity: 0;
}

.gallery-item:hover .gallery-overlay i {
  transform: scale(1) rotate(0deg);
  opacity: 1;
}

.gallery-info {
  padding: 1.5rem;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: linear-gradient(to bottom, transparent, rgba(0, 0, 0, 0.3));
}

.gallery-info h3 {
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
  color: var(--text-primary);
  font-weight: 700;
  transition: color 0.3s;
}

.gallery-item:hover .gallery-info h3 {
  color: var(--accent-primary);
}

.gallery-info p {
  font-size: 0.95rem;
  color: var(--text-secondary);
  margin-bottom: 0;
  line-height: 1.5;
}

/* === Lightbox Modal === */
.lightbox-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10000;
  opacity: 0;
  visibility: hidden;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  padding: 2rem;
}

.lightbox-modal.active {
  opacity: 1;
  visibility: visible;
}

.lightbox-content {
  max-width: 90vw;
  max-height: 85vh;
  position: relative;
  transform: scale(0.8) translateY(50px);
  transition: transform 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.lightbox-modal.active .lightbox-content {
  transform: scale(1) translateY(0);
}

.lightbox-content img {
  max-width: 100%;
  max-height: 75vh;
  object-fit: contain;
  border-radius: 16px;
  box-shadow:
    0 25px 80px rgba(0, 0, 0, 0.5),
    0 0 40px rgba(249, 168, 212, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.lightbox-info {
  text-align: center;
  margin-top: 1.5rem;
  color: var(--text-primary);
}

.lightbox-info h3 {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
  color: white;
}

.lightbox-info p {
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.7);
}

.lightbox-close {
  position: absolute;
  top: -50px;
  right: 0;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: white;
  width: 45px;
  height: 45px;
  border-radius: 50%;
  font-size: 1.5rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.lightbox-close:hover {
  background: var(--accent-primary);
  color: #000;
  transform: rotate(90deg);
  box-shadow: 0 0 20px var(--accent-glow);
}

/* Lightbox Navigation */
.lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: white;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  font-size: 1.2rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.lightbox-nav:hover {
  background: var(--accent-primary);
  color: #000;
  box-shadow: 0 0 20px var(--accent-glow);
}

.lightbox-prev {
  left: -80px;
}

.lightbox-next {
  right: -80px;
}

/* Responsive Gallery */
@media (max-width: 768px) {
  .gallery-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .gallery-img {
    height: 200px;
  }

  .lightbox-content {
    max-width: 95vw;
  }

  .lightbox-content img {
    max-height: 60vh;
    border-radius: 12px;
  }

  .lightbox-nav {
    width: 40px;
    height: 40px;
    font-size: 1rem;
  }

  .lightbox-prev {
    left: -50px;
  }

  .lightbox-next {
    right: -50px;
  }

  .lightbox-close {
    top: -45px;
    width: 40px;
    height: 40px;
    font-size: 1.3rem;
  }
}

@media (max-width: 480px) {
  .gallery-img {
    height: 180px;
  }

  .gallery-info {
    padding: 1.2rem;
  }

  .gallery-info h3 {
    font-size: 1.1rem;
  }

  .gallery-info p {
    font-size: 0.9rem;
  }

  .lightbox-modal {
    padding: 1rem;
  }

  .lightbox-prev,
  .lightbox-next {
    position: fixed;
    top: auto;
    bottom: 2rem;
    transform: none;
  }

  .lightbox-prev {
    left: 2rem;
  }

  .lightbox-next {
    right: 2rem;
  }

  .lightbox-info h3 {
    font-size: 1.2rem;
  }

  .lightbox-info p {
    font-size: 0.9rem;
  }
}

/* Responsive adjustment */
/* --- Expertise Section (Skills & Stack) --- */
.expertise-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  margin-top: 3rem;
  align-items: start;
}

/* Skills Column */
.skills-column h3,
.stack-column h3 {
  font-size: 1.5rem;
  margin-bottom: 1.5rem;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

/* Re-implementing Polish Skill Bars */
.skill-item {
  margin-bottom: 1.5rem;
}

.skill-info {
  display: flex;
  justify-content: space-between;
  margin-bottom: 0.5rem;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-primary);
}

.progress-bg {
  width: 100%;
  height: 12px;
  background: rgba(0, 0, 0, 0.4);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.progress-fill {
  height: 100%;
  background: linear-gradient(
    90deg,
    var(--accent-primary),
    var(--accent-secondary)
  );
  border-radius: 20px;
  position: relative;
  box-shadow: 0 0 15px rgba(249, 168, 212, 0.4);
  transition: width 1s ease-out;
}

/* Tech Stack Column */
.tech-grid-mini {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(90px, 1fr));
  gap: 1rem;
}

.tech-tile {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  /* Minimal border */
  border-radius: 12px;
  height: 90px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.tech-tile i {
  font-size: 1.8rem;
  color: var(--text-secondary);
  transition: all 0.3s ease;
  z-index: 2;
}

.tech-tile span {
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--text-muted);
  transition: all 0.3s ease;
  z-index: 2;
}

/* Hover Effects */
.tech-tile:hover {
  background: rgba(255, 255, 255, 0.08);
  transform: translateY(-5px);
  border-color: rgba(255, 255, 255, 0.2);
}

.tech-tile:hover i {
  color: var(--brand-color, var(--text-primary));
  transform: scale(1.1);
  filter: drop-shadow(0 0 10px var(--brand-color));
}

.tech-tile:hover span {
  color: var(--text-primary);
}

.tech-tile::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 80%;
  height: 80%;
  background: var(--brand-color, var(--accent-primary));
  filter: blur(25px);
  opacity: 0;
  transform: translate(-50%, -50%);
  transition: opacity 0.4s ease;
  z-index: 1;
}

.tech-tile:hover::before {
  opacity: 0.2;
}

/* Responsive Expertise */
@media (max-width: 900px) {
  .expertise-grid {
    grid-template-columns: 1fr;
  }
}

/* --- Modern Footer --- */
footer {
  background: linear-gradient(to bottom, #0f0f0f, #050505);
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding: 4rem 0 0 0;
  margin-top: 5rem;
  position: relative;
  overflow: hidden;
}

.footer-content {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1.5fr;
  gap: 3rem;
  margin-bottom: 3rem;
  align-items: start;
}

/* Brand Column */
.footer-brand h2 {
  font-size: 1.8rem;
  color: var(--text-primary);
  margin-bottom: 1rem;
  letter-spacing: -0.5px;
}

.footer-brand p {
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 2rem;
  max-width: 350px;
}

.social-links {
  display: flex;
  gap: 1rem;
}

.social-btn {
  width: 45px;
  height: 45px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  transition: all 0.3s;
  font-size: 1.1rem;
}

.social-btn:hover {
  background: var(--accent-primary);
  color: #000;
  transform: translateY(-3px);
  box-shadow: 0 5px 15px var(--accent-glow);
}

/* Links Column */
.footer-links h3,
.footer-map h3 {
  font-size: 1.1rem;
  color: var(--text-primary);
  margin-bottom: 1.5rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.footer-links ul {
  list-style: none;
  padding: 0;
}

.footer-links li {
  margin-bottom: 0.8rem;
}

.footer-links a {
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.3s;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.footer-links a:hover {
  color: var(--accent-primary);
  transform: translateX(5px);
}

.footer-links i {
  font-size: 0.8rem;
  opacity: 0.5;
}

/* Map Column */
.map-container {
  width: 100%;
  height: 180px;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: #1a1a1a;
  position: relative;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.map-container iframe {
  width: 100%;
  height: 100%;
  border: 0;
  /* Invert map colors for dark mode vibe */
  filter: invert(90%) hue-rotate(180deg) contrast(90%);
  opacity: 0.8;
  transition: all 0.3s;
}

.map-container:hover iframe {
  opacity: 1;
  filter: invert(90%) hue-rotate(180deg) contrast(100%);
}

.location-text {
  margin-top: 1rem;
  color: var(--text-muted);
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

/* Copyright */
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding: 1.5rem 0;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.9rem;
  background: rgba(0, 0, 0, 0.2);
}

@media (max-width: 900px) {
  .footer-content {
    grid-template-columns: 1fr;
    gap: 2.5rem;
    text-align: center;
  }

  .footer-brand p,
  .social-links,
  .location-text {
    margin-left: auto;
    margin-right: auto;
    justify-content: center;
  }

  .footer-links a:hover {
    transform: translateX(0);
    /* Disable shift on mobile */
  }
}

/* --- Futuristic Floating Icons --- */
.floating-icons {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  /* Let clicks pass through */
  z-index: 2;
}

.icon-wrapper {
  position: absolute;
  width: 70px;
  height: 70px;
  background: rgba(20, 20, 22, 0.6);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(249, 168, 212, 0.3);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px;
  box-shadow: 0 0 20px rgba(249, 168, 212, 0.15);
  transition: all 0.3s ease;
  animation: floatIcon 6s ease-in-out infinite;
}

.icon-wrapper:hover {
  border-color: var(--accent-primary);
  box-shadow: 0 0 30px rgba(249, 168, 212, 0.4);
  transform: scale(1.1);
}

.futuristic-icon {
  width: 100%;
  height: 100%;
  filter: drop-shadow(0 0 5px var(--accent-primary));
}

/* Positioning */
.cloud-wrapper {
  top: 15%;
  right: 10%;
  animation-delay: 0s;
}

.devops-wrapper {
  bottom: 20%;
  left: 10%;
  animation-delay: 3s;
  /* Offset animation */
}

/* Responsive Positioning */
@media (max-width: 968px) {
  .floating-icons {
    width: 100%;
    max-width: 400px;
    /* Constrain to profile area */
    left: 50%;
    transform: translateX(-50%);
  }

  .cloud-wrapper {
    top: 0;
    right: 0;
  }

  .devops-wrapper {
    bottom: 0;
    left: 0;
  }
}

@keyframes floatIcon {
  0%,
  100% {
    transform: translateY(0) rotate(0deg);
  }

  50% {
    transform: translateY(-15px) rotate(3deg);
  }
}

/* --- Mobile Specific Optimization (<480px) --- */
@media (max-width: 480px) {
  /* Safe Area & Layout */
  .container {
    padding: 0 1.5rem;
  }

  section {
    padding: 5rem 0;
  }

  /* Typography Scaling */
  h1 {
    font-size: 2.5rem;
    /* Smaller hero text */
  }

  h2 {
    font-size: 2rem;
  }

  .hero-subtitle {
    font-size: 1rem;
  }

  .hero-description {
    font-size: 1rem;
  }

  /* Hero Elements */
  .profile-circle {
    width: 250px;
    height: 250px;
  }

  .hero-cta {
    flex-direction: column;
    width: 100%;
  }

  .btn {
    width: 100%;
    justify-content: center;
  }

  /* Floating Icons - Tighter positioning for small screens */
  .icon-wrapper {
    width: 50px;
    height: 50px;
    padding: 10px;
  }

  .cloud-wrapper {
    top: -10px;
    right: 0;
  }

  .devops-wrapper {
    bottom: 0;
    left: 0;
  }

  /* Bento Grid Spacing */
  .bento-item {
    padding: 1.5rem;
  }
}

/* --- Gallery Slider Navigation --- */
.gallery-nav {
    flex-shrink: 0;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: var(--text-primary);
    font-size: 1.2rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.gallery-nav:hover {
    background: var(--accent-primary);
    color: #000;
    border-color: var(--accent-primary);
    box-shadow: 0 0 20px var(--accent-glow);
    transform: scale(1.1);
}

.gallery-nav:disabled {
    opacity: 0.3;
    cursor: not-allowed;
    transform: none;
}

.gallery-nav:disabled:hover {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-primary);
    box-shadow: none;
}

/* Gallery Dots */
.gallery-dots {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 1.5rem;
}

.gallery-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.gallery-dot:hover {
    background: rgba(255, 255, 255, 0.4);
}

.gallery-dot.active {
    background: var(--accent-primary);
    box-shadow: 0 0 10px var(--accent-glow);
    transform: scale(1.2);
}

/* Gallery Slider Responsive */
@media (max-width: 1024px) {
    .gallery-item {
        flex: 0 0 calc((100% - 1.5rem) / 2);
        min-width: calc((100% - 1.5rem) / 2);
    }

    .gallery-img {
        height: 180px;
    }
}

@media (max-width: 768px) {
    .gallery-slider-container {
        gap: 0.5rem;
    }

    .gallery-nav {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }

    .gallery-item {
        flex: 0 0 calc(100% - 1rem);
        min-width: calc(100% - 1rem);
    }

    .gallery-img {
        height: 200px;
    }

    .gallery-info {
        padding: 1rem;
    }

    .gallery-info h3 {
        font-size: 1rem;
    }

    .gallery-info p {
        font-size: 0.85rem;
    }

    .btn-docs {
        padding: 0.5rem 1rem;
        font-size: 0.8rem;
    }

    .gallery-dots {
        margin-top: 1rem;
    }
}

@media (max-width: 480px) {
    .gallery-slider-container {
        flex-direction: row;
        gap: 0;
        margin-top: 1.5rem;
    }
    
    .gallery-nav {
        display: none;
    }
    
    .gallery-slider-wrapper {
        width: 100%;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        -ms-overflow-style: none;
    }

    .gallery-slider-wrapper::-webkit-scrollbar {
        display: none;
    }

    .gallery-grid {
        display: flex;
        gap: 1rem;
        padding: 0 0.5rem;
    }
    
    .gallery-item {
        flex: 0 0 85%;
        min-width: 85%;
        scroll-snap-align: center;
    }

    .gallery-img {
        height: 180px;
    }

    .gallery-info {
        padding: 1rem;
    }

    .gallery-info h3 {
        font-size: 0.95rem;
        line-height: 1.3;
    }

    .gallery-info p {
        font-size: 0.8rem;
        line-height: 1.4;
    }

    .btn-docs {
        padding: 0.5rem 0.8rem;
        font-size: 0.75rem;
        gap: 0.4rem;
    }

    .btn-docs i {
        font-size: 0.85rem;
    }

    .gallery-dots {
        margin-top: 1rem;
        gap: 0.4rem;
    }

    .gallery-dot {
        width: 8px;
        height: 8px;
    }

    #achievements h2 {
        font-size: 1.8rem;
    }

    #achievements > .container > p {
        font-size: 0.9rem;
    }
}

/* --- Floating WhatsApp Button --- */
.whatsapp-float {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.8rem;
    box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
    z-index: 9999;
    transition: all 0.3s ease;
    text-decoration: none;
    animation: whatsappPulse 2s infinite;
}

.whatsapp-float:hover {
    transform: scale(1.1) translateY(-5px);
    box-shadow: 0 8px 30px rgba(37, 211, 102, 0.6);
    color: white;
}

.whatsapp-float::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: rgba(37, 211, 102, 0.3);
    animation: whatsappRing 1.5s infinite;
    z-index: -1;
}

@keyframes whatsappPulse {
    0%, 100% {
        box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
    }
    50% {
        box-shadow: 0 4px 30px rgba(37, 211, 102, 0.6);
    }
}

@keyframes whatsappRing {
    0% {
        transform: scale(1);
        opacity: 0.5;
    }
    100% {
        transform: scale(1.5);
        opacity: 0;
    }
}

@media (max-width: 480px) {
    .whatsapp-float {
        bottom: 1.5rem;
        right: 1.5rem;
        width: 55px;
        height: 55px;
        font-size: 1.5rem;
    }
}

/* --- Documentation Button --- */
.btn-docs {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.7rem 1.2rem;
    margin-top: 1rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(249, 168, 212, 0.3);
    border-radius: 12px;
    color: var(--text-primary);
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-docs:hover {
    background: rgba(249, 168, 212, 0.1);
    border-color: var(--accent-primary);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(249, 168, 212, 0.2);
    color: white;
}

.btn-docs:active {
    transform: translateY(0);
}

.btn-docs i {
    font-size: 1rem;
    transition: all 0.3s ease;
    color: var(--accent-primary);
}

.btn-docs:hover i {
    transform: scale(1.1);
    color: white;
}

/* --- Documentation Modal --- */
.docs-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.92);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10001;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    padding: 2rem;
}

.docs-modal.active {
    opacity: 1;
    visibility: visible;
}

.docs-modal-content {
    background: linear-gradient(145deg, rgba(30, 30, 35, 0.95) 0%, rgba(20, 20, 25, 0.98) 100%);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 24px;
    width: 100%;
    max-width: 900px;
    max-height: 90vh;
    overflow: hidden;
    transform: scale(0.9) translateY(30px);
    transition: transform 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 25px 80px rgba(0, 0, 0, 0.5), 0 0 40px rgba(249, 168, 212, 0.05);
}

.docs-modal.active .docs-modal-content {
    transform: scale(1) translateY(0);
}

.docs-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 1.5rem 2rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    background: linear-gradient(90deg, rgba(249, 168, 212, 0.05) 0%, transparent 100%);
    gap: 1rem;
}

.docs-modal-header-text {
    flex: 1;
}

.docs-modal-header h3 {
    font-size: 1.3rem;
    color: var(--text-primary);
    margin: 0 0 0.5rem 0;
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.docs-modal-header h3::before {
    content: '';
    width: 4px;
    height: 24px;
    background: var(--accent-primary);
    border-radius: 2px;
}

.docs-modal-desc {
    margin: 0;
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.5;
    padding-left: 12px;
}

.docs-modal-close {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-secondary);
    font-size: 1.1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.docs-modal-close:hover {
    background: #ef4444;
    border-color: #ef4444;
    color: white;
    transform: rotate(90deg);
}

.docs-modal-body {
    padding: 2rem;
    overflow-y: auto;
    max-height: calc(90vh - 80px);
}

.docs-main-image {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    min-height: 300px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 16px;
    overflow: hidden;
}

.docs-main-image img {
    max-width: 100%;
    max-height: 50vh;
    object-fit: contain;
    border-radius: 12px;
    transition: opacity 0.3s ease;
}

.docs-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    font-size: 1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 10;
}

.docs-nav:hover {
    background: var(--accent-primary);
    color: #000;
    box-shadow: 0 0 20px var(--accent-glow);
}

.docs-nav-prev {
    left: 1rem;
}

.docs-nav-next {
    right: 1rem;
}

.docs-thumbnails {
    display: flex;
    gap: 0.75rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 1rem;
}

.docs-thumb {
    width: 70px;
    height: 50px;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    border: 2px solid transparent;
    opacity: 0.6;
    transition: all 0.3s ease;
}

.docs-thumb:hover {
    opacity: 0.9;
    border-color: rgba(255, 255, 255, 0.3);
}

.docs-thumb.active {
    opacity: 1;
    border-color: var(--accent-primary);
    box-shadow: 0 0 15px var(--accent-glow);
}

.docs-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.docs-counter {
    text-align: center;
    color: var(--text-muted);
    font-size: 0.9rem;
    font-family: var(--font-mono);
}

.docs-counter span:first-child {
    color: var(--accent-primary);
    font-weight: 600;
}

/* Documentation Modal Responsive */
@media (max-width: 768px) {
    .docs-modal {
        padding: 1rem;
    }

    .docs-modal-content {
        border-radius: 16px;
    }

    .docs-modal-header {
        padding: 1rem 1.5rem;
    }

    .docs-modal-header h3 {
        font-size: 1.1rem;
    }

    .docs-modal-body {
        padding: 1.5rem;
    }

    .docs-main-image {
        min-height: 200px;
    }

    .docs-main-image img {
        max-height: 40vh;
    }

    .docs-nav {
        width: 38px;
        height: 38px;
    }

    .docs-thumb {
        width: 55px;
        height: 40px;
    }
}

@media (max-width: 480px) {
    .docs-modal-header h3 {
        font-size: 1rem;
    }

    .docs-nav-prev {
        left: 0.5rem;
    }

    .docs-nav-next {
        right: 0.5rem;
    }

    .docs-thumb {
        width: 50px;
        height: 35px;
    }

    .btn-docs {
        font-size: 0.8rem;
        padding: 0.5rem 0.8rem;
    }
}
