/* ══════════════════════════════════════════════════════════
   MIAH MD. RUYEL — PORTFOLIO STYLESHEET
   Geotechnical Engineer | Politecnico di Milano
   Color Palette: Earth tones with professional depth
   ══════════════════════════════════════════════════════════ */

/* ─── CSS VARIABLES ─── */
:root {
  /* Colors - Sleek & Modern Theme */
  --color-dark: #0f172a;
  /* Deep Slate Blue-Black */
  --color-dark-2: #1e293b;
  /* Dark Slate Gray */
  --color-secondary: #334155;
  /* Slate Gray */
  --color-accent: #0ea5e9;
  /* Electric Blue */
  --color-accent-light: #38bdf8;
  /* Lighter Blue */
  --color-accent-glow: rgba(14, 165, 233, 0.3);
  /* Electric Blue Glow */
  --color-green: #10b981;
  /* Emerald Green for success states */
  --color-green-light: #34d399;
  --color-cream: #f1f5f9;
  /* Light Slate Base */
  --color-light: #f8fafc;
  /* Off-White Base */
  --color-white: #ffffff;
  --color-text: #1e293b;
  /* Dark Slate Text */
  --color-text-muted: #64748b;
  /* Muted Slate Text */
  --color-text-light: #94a3b8;
  /* Light Slate Text */
  --color-border: #e2e8f0;
  /* Light Border Color */

  /* Typography */
  --font-heading: 'Didact Gothic', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-body: 'Didact Gothic', -apple-system, BlinkMacSystemFont, sans-serif;

  /* Spacing */
  --section-padding: 7rem 0;
  --container-width: 1200px;
  --container-padding: 0 2rem;

  /* Transitions */
  --transition-fast: 0.2s ease;
  --transition-medium: 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --transition-slow: 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --transition-bounce: 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);

  /* Shadows */
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.06);
  --shadow-md: 0 4px 20px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 8px 40px rgba(0, 0, 0, 0.12);
  --shadow-xl: 0 16px 60px rgba(0, 0, 0, 0.16);
  --shadow-accent: 0 8px 30px rgba(193, 127, 89, 0.2);

  /* Border Radius */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-full: 50%;
}

/* ─── RESET & BASE ─── */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-body);
  color: var(--color-text);
  background-color: var(--color-light);
  line-height: 1.7;
  overflow-x: hidden;
  cursor: default;
  font-weight: 400;
}

body.loading {
  overflow: hidden;
}

::selection {
  background: var(--color-accent);
  color: var(--color-white);
}

::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: var(--color-cream);
}

::-webkit-scrollbar-thumb {
  background: var(--color-accent-light);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--color-accent);
}

img {
  max-width: 100%;
  display: block;
}

a {
  text-decoration: none;
  color: inherit;
  transition: color var(--transition-fast);
}

ul {
  list-style: none;
}

.container {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: var(--container-padding);
}

/* ─── PRELOADER ─── */
#preloader {
  position: fixed;
  inset: 0;
  z-index: 10000;
  background: var(--color-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.6s ease, visibility 0.6s ease;
}

#preloader.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.preloader-inner {
  text-align: center;
}

.preloader-initials {
  font-family: var(--font-heading);
  font-size: 4rem;
  font-weight: 700;
  color: var(--color-accent);
  letter-spacing: 0.3em;
  animation: pulseGlow 1.5s ease-in-out infinite;
}

.preloader-bar {
  width: 200px;
  height: 3px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 3px;
  margin: 2rem auto 1rem;
  overflow: hidden;
}

.preloader-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--color-accent), var(--color-green));
  border-radius: 3px;
  animation: loadBar 1.8s ease-in-out forwards;
}

.preloader-text {
  color: var(--color-text-light);
  font-size: 0.85rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

@keyframes pulseGlow {

  0%,
  100% {
    text-shadow: 0 0 20px var(--color-accent-glow);
    opacity: 0.8;
  }

  50% {
    text-shadow: 0 0 40px var(--color-accent-glow), 0 0 80px rgba(193, 127, 89, 0.15);
    opacity: 1;
  }
}

@keyframes loadBar {
  0% {
    width: 0%;
  }

  50% {
    width: 70%;
  }

  100% {
    width: 100%;
  }
}

/* ─── SCROLL PROGRESS BAR ─── */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--color-accent), var(--color-green));
  z-index: 9999;
  width: 0%;
  transition: width 0.1s linear;
}

/* ─── CUSTOM CURSOR ─── */
.cursor-dot,
.cursor-ring {
  display: none;
}

@media (pointer: fine) {
  .cursor-dot {
    display: block;
    position: fixed;
    width: 6px;
    height: 6px;
    background: var(--color-accent);
    border-radius: var(--radius-full);
    pointer-events: none;
    z-index: 99999;
    transform: translate(-50%, -50%);
    transition: transform 0.1s ease, background 0.2s ease;
  }

  .cursor-ring {
    display: block;
    position: fixed;
    width: 36px;
    height: 36px;
    border: 1.5px solid var(--color-accent);
    border-radius: var(--radius-full);
    pointer-events: none;
    z-index: 99998;
    transform: translate(-50%, -50%);
    transition: width 0.3s ease, height 0.3s ease, border-color 0.3s ease, opacity 0.3s ease;
    opacity: 0.6;
  }

  .cursor-ring.expand {
    width: 56px;
    height: 56px;
    border-color: var(--color-green);
    opacity: 0.4;
  }
}

/* ─── NAVIGATION ─── */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  padding: 1.2rem 0;
  transition: all var(--transition-medium);
}

.navbar.scrolled {
  background: rgba(26, 26, 46, 0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  padding: 0.8rem 0;
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.15);
}

.nav-container {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: var(--container-padding);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  font-family: var(--font-heading);
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--color-white);
  display: flex;
  align-items: baseline;
}

.logo-dot {
  color: var(--color-accent);
  font-size: 2rem;
  line-height: 0;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav-link {
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.92rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  position: relative;
  padding: 0.3rem 0;
  transition: color var(--transition-fast);
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--color-accent);
  transition: width var(--transition-medium);
}

.nav-link:hover {
  color: var(--color-white);
}

.nav-link:hover::after {
  width: 100%;
}

.nav-link-cta {
  background: var(--color-accent);
  color: var(--color-white) !important;
  padding: 0.55rem 1.4rem;
  border-radius: 50px;
  font-weight: 600;
  transition: all var(--transition-medium);
}

.nav-link-cta::after {
  display: none;
}

.nav-link-cta:hover {
  background: var(--color-accent-light);
  transform: translateY(-2px);
  box-shadow: var(--shadow-accent);
}

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 5px;
  z-index: 1001;
}

.hamburger .bar {
  width: 28px;
  height: 2.5px;
  background: var(--color-white);
  border-radius: 3px;
  transition: all 0.3s ease;
  transform-origin: center;
}

.hamburger.active .bar:nth-child(1) {
  transform: translateY(7.5px) rotate(45deg);
}

.hamburger.active .bar:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}

.hamburger.active .bar:nth-child(3) {
  transform: translateY(-7.5px) rotate(-45deg);
}

/* ─── HERO SECTION ─── */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  /* Image Background */
  background: url('hero-bg.jpg') no-repeat center center/cover;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  overflow: hidden;
  /* Dark Overlay for readability */
  background: rgba(15, 23, 42, 0.7);
}

/* Geometric Pattern and Animation Removed for Image Background */
.geo-pattern {
  display: none;
}

.overlay-gradient {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 80% 20%, rgba(193, 127, 89, 0.1), transparent 50%),
    radial-gradient(circle at 20% 80%, rgba(129, 178, 154, 0.1), transparent 50%);
  mix-blend-mode: overlay;
}

@keyframes panPattern {
  from {
    background-position: 0 0;
  }

  to {
    background-position: 40px 40px;
  }
}

/* Hero Content */
.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 0 2rem;
  max-width: 1400px;
  width: 90vw;
}

.hero-greeting {
  color: var(--color-green);
  font-size: 1.1rem;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-bottom: 0.8rem;
}

.hero-name {
  font-family: var(--font-heading);
  color: var(--color-white);
  font-size: clamp(3rem, 8vw, 5.5rem);
  font-weight: 700;
  line-height: 1.1;
  margin-bottom: 1.5rem;
  text-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.name-line {
  display: block;
  overflow: hidden;
}

.accent-text {
  color: var(--color-accent);
}

.hero-title-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.hero-title-line {
  width: 60px;
  height: 1px;
  background: var(--color-accent);
  opacity: 0;
  animation: expandLine 0.8s ease 2.5s forwards;
}

.hero-title {
  color: var(--color-cream);
  font-size: 1.15rem;
  font-weight: 400;
  letter-spacing: 0.05em;
  min-height: 1.5em;
}

@keyframes expandLine {
  from {
    width: 0;
    opacity: 0;
  }

  to {
    width: 60px;
    opacity: 1;
  }
}

.hero-description {
  color: rgba(255, 255, 255, 0.7);
  font-size: 1.05rem;
  max-width: 1400px;
  width: 100%;
  margin: 0 auto 2.5rem;
  line-height: 1.8;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.hero-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
}

/* Reveal Text Animation */
.reveal-text {
  opacity: 0;
  transform: translateY(30px);
  animation: revealUp 0.8s ease forwards;
}

.hero-greeting {
  animation-delay: 0.5s;
}

.hero-name .name-line:nth-child(1) .reveal-text {
  animation-delay: 0.7s;
}

.hero-name .name-line:nth-child(2) .reveal-text {
  animation-delay: 0.9s;
}

.hero-description {
  animation-delay: 1.5s;
}

.hero-buttons {
  animation-delay: 1.8s;
}

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

/* ─── FILE MANAGER MODAL ─── */
.file-modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 2000;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.file-modal.active {
  display: flex;
  opacity: 1;
}

.file-modal-content {
  background: rgba(255, 255, 255, 0.95);
  width: 90%;
  max-width: 900px;
  height: 80vh;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xl);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  position: relative;
  transform: scale(0.9);
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.file-modal.active .file-modal-content {
  transform: scale(1);
}

/* Modal Header */
.file-modal-header {
  padding: 1.5rem 2rem;
  background: var(--color-white);
  border-bottom: 1px solid var(--color-border);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.file-modal-title {
  display: flex;
  align-items: center;
  gap: 1rem;
  color: var(--color-dark);
}

.file-modal-title i {
  font-size: 1.5rem;
  color: var(--color-accent);
}

.file-modal-title h2 {
  font-size: 1.5rem;
  font-weight: 700;
  margin: 0;
}

.file-modal-close {
  background: none;
  border: none;
  font-size: 1.5rem;
  color: var(--color-text-light);
  cursor: pointer;
  transition: color 0.2s ease;
  padding: 0.5rem;
}

.file-modal-close:hover {
  color: var(--color-accent);
}

/* Modal Toolbar */
.file-toolbar {
  padding: 1rem 2rem;
  background: var(--color-light);
  border-bottom: 1px solid var(--color-border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.file-search {
  position: relative;
  flex: 1;
  min-width: 250px;
}

.file-search i {
  position: absolute;
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--color-text-light);
}

.file-search input {
  width: 100%;
  padding: 0.8rem 1rem 0.8rem 2.8rem;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: 0.95rem;
  background: var(--color-white);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.file-search input:focus {
  outline: none;
  border-color: var(--color-accent);
  box-shadow: 0 0 0 3px var(--color-accent-glow);
}

.file-actions {
  display: flex;
  gap: 1rem;
  align-items: center;
}

.file-sort {
  padding: 0.8rem 1rem;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  background: var(--color-white);
  font-family: var(--font-body);
  font-size: 0.9rem;
  cursor: pointer;
}

.view-toggle {
  display: flex;
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  overflow: hidden;
}

.view-btn {
  background: none;
  border: none;
  padding: 0.8rem;
  cursor: pointer;
  color: var(--color-text-light);
  transition: all 0.2s ease;
}

.view-btn.active {
  background: var(--color-dark);
  color: var(--color-white);
}

/* File List Container */
.file-list-container {
  flex: 1;
  overflow-y: auto;
  padding: 2rem;
  background: var(--color-white);
}

/* List View */
.file-list-view {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.file-item {
  display: flex;
  align-items: center;
  padding: 1rem;
  background: var(--color-light);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  transition: all 0.2s ease;
  cursor: pointer;
  text-decoration: none;
  color: var(--color-text);
}

.file-item:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
  border-color: var(--color-accent-light);
  background: var(--color-white);
}

.file-item-icon {
  font-size: 1.5rem;
  margin-right: 1.5rem;
  color: var(--color-secondary);
  width: 40px;
  text-align: center;
}

.file-item-info {
  flex: 1;
}

.file-item-name {
  font-weight: 600;
  font-size: 1rem;
  margin-bottom: 0.2rem;
  display: block;
}

.file-item-meta {
  font-size: 0.85rem;
  color: var(--color-text-muted);
}



.file-item-action {
  margin-left: 1rem;
  color: var(--color-text-light);
  opacity: 0;
  transition: opacity 0.2s ease;
}

.file-item:hover .file-item-action {
  opacity: 1;
}

/* Grid View */
.file-grid-view {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 1.5rem;
}

.file-grid-view .file-item {
  flex-direction: column;
  text-align: center;
  padding: 2rem 1rem;
  height: 100%;
}

.file-grid-view .file-item-icon {
  font-size: 3rem;
  margin: 0 0 1rem 0;
  width: auto;
}

.file-grid-view .file-item-info {
  width: 100%;
}

.file-grid-view .file-item-name {
  font-size: 0.95rem;
  margin-bottom: 0.5rem;
  display: -webkit-box;
  line-clamp: 2;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.file-grid-view .file-item-action {
  display: none;
}



/* Icons Colors */
.fa-file-pdf {
  color: #e74c3c;
}

.fa-file-excel,
.fa-table {
  color: #27ae60;
}

.fa-file-word {
  color: #2980b9;
}

.fa-file-archive {
  color: #f39c12;
}

.fa-project-diagram {
  color: #8e44ad;
}

.fa-folder {
  color: #f1c40f;
}

/* Folder icon color */

/* Modal Footer */
.file-modal-footer {
  padding: 1rem 2rem;
  background: var(--color-light);
  border-top: 1px solid var(--color-border);
  font-size: 0.9rem;
  color: var(--color-text-muted);
  text-align: right;
}

/* Folder Card Styles (Updated) */
.folder-card {
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.folder-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
  border-color: var(--color-accent);
}

.folder-preview {
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(0, 0, 0, 0.05);
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--color-accent);
  font-weight: 600;
  font-size: 0.9rem;
}

.folder-preview i {
  transition: transform 0.3s ease;
}

.folder-card:hover .folder-preview i {
  transform: translateX(5px);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.9rem 2rem;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 600;
  border-radius: 50px;
  border: none;
  cursor: pointer;
  transition: all var(--transition-medium);
  position: relative;
  overflow: hidden;
}

.btn-primary {
  background: var(--color-accent);
  color: var(--color-white);
}

.btn-primary:hover {
  background: var(--color-accent-light);
  transform: translateY(-3px);
  box-shadow: var(--shadow-accent);
}

.btn-outline {
  background: transparent;
  color: var(--color-white);
  border: 2px solid rgba(255, 255, 255, 0.3);
}

.btn-outline:hover {
  border-color: var(--color-green);
  color: var(--color-green);
  transform: translateY(-3px);
}

/* Scroll Indicator */
.scroll-indicator {
  position: relative;
  bottom: auto;
  left: auto;
  transform: translateY(40px);
  text-align: center;
  z-index: 2;
  opacity: 0;
  animation: fadeIn 1s ease 3.5s forwards;
  margin: 0 1rem;
}

.mouse {
  width: 26px;
  height: 40px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-radius: 13px;
  margin: 0 auto 0.5rem;
  position: relative;
}

.wheel {
  width: 4px;
  height: 8px;
  background: var(--color-accent);
  border-radius: 4px;
  position: absolute;
  top: 6px;
  left: 50%;
  transform: translateX(-50%);
  animation: scrollWheel 2s ease-in-out infinite;
}

@keyframes scrollWheel {
  0% {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
  }

  100% {
    transform: translateX(-50%) translateY(14px);
    opacity: 0;
  }
}

.scroll-indicator p {
  color: rgba(255, 255, 255, 0.4);
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

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

/* Soil Layers Divider */
.soil-layers {
  position: absolute;
  bottom: -1px;
  left: 0;
  width: 100%;
  z-index: 3;
}

.soil-layers svg {
  display: block;
  width: 100%;
  height: 120px;
}

/* ─── SECTION STYLES ─── */
.section {
  padding: var(--section-padding);
  position: relative;
}

.section-header {
  text-align: center;
  margin-bottom: 4rem;
}

.section-tag {
  display: inline-block;
  color: var(--color-accent);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-bottom: 0.8rem;
  position: relative;
}

.section-tag::before,
.section-tag::after {
  content: '—';
  margin: 0 0.5rem;
  color: var(--color-border);
}

.section-title {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  color: var(--color-dark);
  margin-bottom: 0.5rem;
}

.section-subtitle {
  color: var(--color-text-muted);
  font-size: 1.05rem;
  max-width: 550px;
  margin: 0 auto;
}

/* ─── ABOUT SECTION ─── */
.about {
  background: var(--color-cream);
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 4rem;
  align-items: center;
}

.about-image-wrapper {
  position: relative;
}

.about-image-container {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 3/4;
  background: var(--color-light);
}

.about-image-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--color-secondary), var(--color-dark));
  color: rgba(255, 255, 255, 0.5);
  gap: 1rem;
}

.about-image-placeholder i {
  font-size: 4rem;
  color: var(--color-accent);
  opacity: 0.6;
}

.about-image-placeholder p {
  font-size: 0.9rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.about-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.about-image-frame {
  position: absolute;
  inset: -15px;
  border: 2px solid var(--color-accent);
  border-radius: var(--radius-lg);
  opacity: 0.3;
  z-index: -1;
  transition: all var(--transition-slow);
}

.about-image-wrapper:hover .about-image-frame {
  inset: -8px;
  opacity: 0.5;
}

.about-image-accent {
  position: absolute;
  bottom: -20px;
  right: -20px;
  width: 120px;
  height: 120px;
  background: var(--color-accent);
  border-radius: var(--radius-lg);
  opacity: 0.1;
  z-index: -1;
}

.about-headline {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--color-dark);
  margin-bottom: 1.5rem;
  line-height: 1.5;
  font-style: italic;
}

.about-author {
  display: block;
  font-size: 1rem;
  font-weight: 500;
  font-style: normal;
  color: var(--color-accent);
  margin-top: 0.5rem;
  text-align: right;
}

.about-text {
  color: var(--color-text-muted);
  margin-bottom: 1rem;
  font-size: 0.98rem;
  text-align: justify;
}

.about-text strong {
  color: var(--color-text);
  font-weight: 600;
}

.about-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  margin-top: 2.5rem;
  padding-top: 2rem;
  border-top: 1px solid var(--color-border);
}

.stat-item {
  text-align: center;
}

.stat-number {
  display: block;
  font-family: var(--font-heading);
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--color-accent);
  line-height: 1;
}

.stat-plus {
  font-family: var(--font-heading);
  font-size: 2rem;
  color: var(--color-accent);
}

.stat-label {
  display: block;
  font-size: 0.8rem;
  color: var(--color-text-muted);
  margin-top: 0.3rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* ─── QUALIFICATIONS SECTION ─── */
.qualifications {
  background: var(--color-light);
}

.qual-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
}

.qual-heading {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--color-dark);
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.qual-heading i {
  color: var(--color-accent);
  font-size: 1.1rem;
}

/* Timeline */
.timeline {
  position: relative;
  padding-left: 2rem;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--color-border);
}

.timeline-item {
  position: relative;
  margin-bottom: 2rem;
  padding-left: 1.5rem;
}

.timeline-dot {
  position: absolute;
  left: -2.35rem;
  top: 0.3rem;
  width: 12px;
  height: 12px;
  border-radius: var(--radius-full);
  background: var(--color-accent);
  border: 3px solid var(--color-light);
  box-shadow: 0 0 0 2px var(--color-accent);
}

.timeline-content {
  background: var(--color-white);
  padding: 1.2rem 1.5rem;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-medium);
}

.timeline-content:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
}

.timeline-date {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--color-accent);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.timeline-content h4 {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--color-dark);
  margin: 0.3rem 0 0.2rem;
}

.timeline-content p {
  font-size: 0.9rem;
  color: var(--color-text-muted);
}

.timeline-badge {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 600;
  padding: 0.2rem 0.7rem;
  border-radius: 50px;
  margin-top: 0.5rem;
  background: var(--color-accent-glow);
  color: var(--color-accent);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.timeline-badge.completed {
  background: rgba(129, 178, 154, 0.2);
  color: var(--color-green);
}

/* Certifications */
.cert-list {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  gap: 1rem;
}

.cert-item {
  display: flex;
  flex: 1 1 300px;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.2rem;
  background: var(--color-white);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-medium);
}

.cert-item:hover {
  transform: translateX(8px);
  box-shadow: var(--shadow-md);
}

.cert-icon {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-full);
  background: var(--color-accent-glow);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-accent);
  flex-shrink: 0;
}

.cert-info h4 {
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--color-dark);
}

.cert-info p {
  font-size: 0.82rem;
  color: var(--color-text-muted);
}

/* Skills */
.skills-grid {
  display: flex;
  flex-direction: column;
  gap: 1.3rem;
}

.skill-bar-item .skill-info {
  display: flex;
  justify-content: space-between;
  margin-bottom: 0.4rem;
}

.skill-bar-item .skill-info span {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--color-text);
}

.skill-percent {
  color: var(--color-accent) !important;
  font-weight: 600 !important;
}

.skill-bar {
  height: 8px;
  background: var(--color-border);
  border-radius: 4px;
  overflow: hidden;
}

.skill-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--color-accent), var(--color-accent-light));
  border-radius: 4px;
  transition: width 1.2s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}



/* Software Grid */
.software-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}

.software-item {
  text-align: center;
  padding: 1.2rem 0.5rem;
  background: var(--color-white);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-medium);
  cursor: default;
}

.software-item:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
  border-bottom: 3px solid var(--color-accent);
}

.software-icon {
  width: 45px;
  height: 45px;
  margin: 0 auto 0.6rem;
  border-radius: var(--radius-full);
  background: linear-gradient(135deg, var(--color-accent-glow), rgba(129, 178, 154, 0.2));
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-accent);
  font-size: 1.1rem;
  transition: all var(--transition-medium);
}

.software-item:hover .software-icon {
  background: var(--color-accent);
  color: var(--color-white);
  transform: scale(1.1);
}

.software-item span {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--color-text);
  letter-spacing: 0.02em;
}

/* ─── EXPERIENCE SECTION ─── */
.experience {
  background: var(--color-cream);
  overflow: hidden;
  /* Prevent horizontal scroll from 3D items */
}

.experience-carousel {
  position: relative;
  max-width: 1000px;
  margin: 0 auto;
  min-height: 480px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.carousel-track {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  perspective: 1200px;
  /* Gives realistic 3D depth */
  transform-style: preserve-3d;
}

.exp-card-container {
  position: absolute;
  width: 100%;
  max-width: 500px;
  transition: all 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  cursor: pointer;
}

/* Card States */
.exp-card-container.active {
  z-index: 3;
  opacity: 1;
  transform: translateX(0) translateZ(0) scale(1);
  pointer-events: auto;
  cursor: default;
  /* Active card shouldn't look clickable */
}

/* For Active State hovering drop shadow */
.exp-card-container.active .exp-card {
  box-shadow: var(--shadow-lg);
}

.exp-card-container.left-card {
  z-index: 2;
  opacity: 0.4;
  transform: translateX(-75%) translateZ(-150px) scale(0.85);
  pointer-events: auto;
}

.exp-card-container.right-card {
  z-index: 2;
  opacity: 0.4;
  transform: translateX(75%) translateZ(-150px) scale(0.85);
  pointer-events: auto;
}

/* Hover effect for background cards */
.exp-card-container.left-card:hover,
.exp-card-container.right-card:hover {
  opacity: 0.7;
  transform: translateX(var(--target-x)) translateZ(-100px) scale(0.88);
}

.exp-card-container.left-card:hover {
  --target-x: -75%;
}

.exp-card-container.right-card:hover {
  --target-x: 75%;
}

/* Mobile Responsiveness for background cards */
@media (max-width: 768px) {

  .exp-card-container.left-card,
  .exp-card-container.right-card {
    opacity: 0;
    pointer-events: none;
    transform: translateX(0) translateZ(-300px) scale(0.7);
  }
}

/* Hidden state for any cards beyond 3 (in case more are added later) */
.exp-card-container.hidden {
  z-index: 1;
  opacity: 0;
  transform: translateX(0) translateZ(-300px) scale(0.7);
  pointer-events: none;
}

/* Hide bullet details on background cards to reduce visual noise */
.exp-card-container:not(.active) .exp-details {
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.exp-card-container.active .exp-details {
  opacity: 1;
  transition: opacity 0.4s ease 0.3s;
  /* Delay fade in slightly */
}

/* Navigation Controls */
.nav-control {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 50px;
  height: 50px;
  border-radius: var(--radius-full);
  background: var(--color-white);
  color: var(--color-accent);
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-sm);
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 1.2rem;
  cursor: pointer;
  z-index: 10;
  transition: all var(--transition-medium);
}

.nav-control:hover {
  background: var(--color-accent);
  color: var(--color-white);
  box-shadow: var(--shadow-md);
  transform: translateY(-50%) scale(1.1);
}

.nav-control.prev {
  left: 0;
}

.nav-control.next {
  right: 0;
}

.exp-card {
  background: var(--color-white);
  padding: 1.8rem;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-medium);
}

.exp-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-5px);
}

.exp-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.8rem;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.exp-type {
  font-size: 0.72rem;
  font-weight: 700;
  padding: 0.25rem 0.8rem;
  border-radius: 50px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.exp-type.govt {
  background: rgba(129, 178, 154, 0.15);
  color: var(--color-green);
}

.exp-type.private {
  background: var(--color-accent-glow);
  color: var(--color-accent);
}

.exp-duration {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--color-text-muted);
}

.exp-card h3 {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--color-dark);
  margin-bottom: 0.2rem;
}

.exp-card h4 {
  font-size: 0.92rem;
  color: var(--color-accent);
  font-weight: 500;
  margin-bottom: 0.8rem;
}

.exp-details {
  text-align: left;
}

.exp-details li {
  position: relative;
  padding-left: 1.2rem;
  margin-bottom: 0.5rem;
  font-size: 0.88rem;
  color: var(--color-text-muted);
  line-height: 1.6;
}

.exp-details li::before {
  content: '▸';
  position: absolute;
  left: 0;
  color: var(--color-accent);
  font-weight: 700;
}

/* ─── PROJECTS SECTION ─── */
.projects {
  background: var(--color-light);
}

.projects-filter {
  display: flex;
  justify-content: center;
  gap: 0.8rem;
  margin-bottom: 3rem;
  flex-wrap: wrap;
}

.filter-btn {
  padding: 0.55rem 1.5rem;
  border: 2px solid var(--color-border);
  background: transparent;
  border-radius: 50px;
  font-family: var(--font-body);
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--color-text-muted);
  cursor: pointer;
  transition: all var(--transition-medium);
}

.filter-btn:hover,
.filter-btn.active {
  border-color: var(--color-accent);
  background: var(--color-accent);
  color: var(--color-white);
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}

.project-card {
  background: var(--color-white);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-medium);
  display: flex;
  flex-direction: column;
}

.project-card:hover {
  box-shadow: var(--shadow-xl);
  transform: translateY(-8px);
}

.project-card.hidden {
  display: none;
}

.project-image {
  position: relative;
  aspect-ratio: 16/10;
  overflow: hidden;
}

.project-image-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--color-secondary), var(--color-dark));
  color: rgba(255, 255, 255, 0.3);
  font-size: 3rem;
  transition: all var(--transition-slow);
}

.project-card:hover .project-image-placeholder {
  transform: scale(1.08);
}

.project-overlay {
  position: absolute;
  inset: 0;
  background: rgba(26, 26, 46, 0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: all var(--transition-medium);
}

.project-card:hover .project-overlay {
  opacity: 1;
}

.project-link {
  width: 50px;
  height: 50px;
  border-radius: var(--radius-full);
  background: var(--color-accent);
  color: var(--color-white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  transform: translateY(20px);
  transition: all var(--transition-medium);
}

.project-card:hover .project-link {
  transform: translateY(0);
}

.project-link:hover {
  background: var(--color-accent-light);
  transform: scale(1.1) !important;
}

.project-info {
  padding: 1.5rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.project-category {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--color-accent);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.project-info h3 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--color-dark);
  margin: 0.4rem 0 0.5rem;
  transition: color var(--transition-fast);
}

.project-card:hover .project-info h3 {
  color: var(--color-accent);
}

.project-info p {
  font-size: 0.88rem;
  color: var(--color-text-muted);
  line-height: 1.6;
  margin-bottom: 1rem;
}

.project-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.project-tags span {
  font-size: 0.72rem;
  font-weight: 600;
  padding: 0.2rem 0.6rem;
  background: var(--color-cream);
  color: var(--color-secondary);
  border-radius: 50px;
  letter-spacing: 0.02em;
}

/* ─── DOCUMENTS SECTION ─── */
.documents {
  background: var(--color-cream);
}

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

.doc-card {
  display: flex;
  align-items: center;
  gap: 1.2rem;
  padding: 1.5rem;
  background: var(--color-white);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-medium);
  border-left: 4px solid transparent;
}

.doc-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
  border-left-color: var(--color-accent);
}

.doc-icon {
  width: 55px;
  height: 55px;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, #ff6b6b20, #ee5a2420);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #e74c3c;
  font-size: 1.5rem;
  flex-shrink: 0;
}

.doc-info {
  flex: 1;
}

.doc-info h3 {
  font-size: 1rem;
  font-weight: 600;
  color: var(--color-dark);
  margin-bottom: 0.2rem;
}

.doc-info p {
  font-size: 0.85rem;
  color: var(--color-text-muted);
  margin-bottom: 0.3rem;
}

.doc-size {
  font-size: 0.75rem;
  color: var(--color-text-light);
  font-weight: 500;
}

.doc-download {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-full);
  background: var(--color-cream);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-accent);
  font-size: 1rem;
  flex-shrink: 0;
  transition: all var(--transition-medium);
}

.doc-download:hover {
  background: var(--color-accent);
  color: var(--color-white);
  transform: scale(1.1);
}

/* ─── ACADEMIC REPOSITORY ─── */
.repo-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-top: 3rem;
}

.repo-card {
  background: var(--color-white);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  padding: 1.5rem;
  transition: all var(--transition-medium);
  border-top: 4px solid var(--color-accent);
}

.repo-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

.repo-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--color-border);
}

.repo-icon {
  width: 45px;
  height: 45px;
  background: var(--color-accent-glow);
  color: var(--color-accent);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
}

.repo-header h3 {
  flex: 1;
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--color-dark);
}

.repo-count {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--color-text-light);
  background: var(--color-light);
  padding: 0.2rem 0.6rem;
  border-radius: 50px;
}

.repo-files {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.repo-files li a {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  font-size: 0.9rem;
  color: var(--color-text-muted);
  padding: 0.6rem;
  border-radius: var(--radius-sm);
  transition: all var(--transition-fast);
}

.repo-files li a:hover {
  background: var(--color-light);
  color: var(--color-accent);
}

.repo-files li a i {
  color: var(--color-text-light);
  font-size: 1rem;
  width: 20px;
  text-align: center;
}

.repo-files li a:hover i {
  color: var(--color-accent);
}

/* ─── CONTACT SECTION ─── */
.contact {
  background: var(--color-light);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 4rem;
  align-items: start;
}

.contact-card {
  padding: 1.5rem;
  background: var(--color-white);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  margin-bottom: 1rem;
  transition: all var(--transition-medium);
}

.contact-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateX(8px);
}

.contact-card-icon {
  width: 45px;
  height: 45px;
  border-radius: var(--radius-full);
  background: var(--color-accent-glow);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-accent);
  font-size: 1.1rem;
  margin-bottom: 0.8rem;
}

.contact-card h4 {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--color-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 0.3rem;
}

.contact-card a,
.contact-card p {
  font-size: 0.95rem;
  color: var(--color-dark);
  font-weight: 500;
}

.contact-card a:hover {
  color: var(--color-accent);
}

.contact-socials {
  margin-top: 1.5rem;
}

.contact-socials h4 {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--color-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 0.8rem;
}

.social-links {
  display: flex;
  gap: 0.8rem;
}

.social-link {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-full);
  background: var(--color-cream);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-secondary);
  font-size: 1.1rem;
  transition: all var(--transition-medium);
}

.social-link:hover {
  background: var(--color-accent);
  color: var(--color-white);
  transform: translateY(-4px);
  box-shadow: var(--shadow-accent);
}

/* Contact Form */
.contact-form {
  background: var(--color-white);
  padding: 2.5rem;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
}

.form-group {
  position: relative;
  margin-bottom: 1.8rem;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 1rem 0 0.8rem;
  border: none;
  border-bottom: 2px solid var(--color-border);
  background: transparent;
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--color-text);
  outline: none;
  transition: border-color var(--transition-medium);
}

.form-group textarea {
  resize: vertical;
  min-height: 120px;
}

.form-group label {
  position: absolute;
  top: 1rem;
  left: 0;
  font-size: 0.95rem;
  color: var(--color-text-muted);
  pointer-events: none;
  transition: all var(--transition-medium);
}

.form-group input:focus~label,
.form-group input:not(:placeholder-shown)~label,
.form-group input:valid~label,
.form-group textarea:focus~label,
.form-group textarea:not(:placeholder-shown)~label,
.form-group textarea:valid~label {
  top: -0.6rem;
  font-size: 0.75rem;
  color: var(--color-accent);
  font-weight: 600;
}

.form-line {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--color-accent);
  transition: width var(--transition-medium);
}

.form-group input:focus~.form-line,
.form-group textarea:focus~.form-line {
  width: 100%;
}

.btn-submit {
  width: 100%;
  justify-content: center;
  padding: 1rem;
  font-size: 1rem;
}

.btn-loading,
.btn-success {
  display: none;
}

.btn-submit.loading .btn-text,
.btn-submit.loading .btn-icon {
  display: none;
}

.btn-submit.loading .btn-loading {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.btn-submit.success .btn-text,
.btn-submit.success .btn-icon,
.btn-submit.success .btn-loading {
  display: none;
}

.btn-submit.success .btn-success {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.btn-submit.success {
  background: var(--color-green);
}

/* ─── FOOTER ─── */
.footer {
  position: relative;
  background: var(--color-dark);
  color: rgba(255, 255, 255, 0.7);
}

.footer-wave {
  position: absolute;
  top: -99px;
  left: 0;
  width: 100%;
}

.footer-wave svg {
  display: block;
  width: 100%;
  height: 100px;
}

.footer-content {
  padding: 5rem 0 2rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 3rem;
}

.footer-logo {
  font-family: var(--font-heading);
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--color-white);
  display: inline-block;
  margin-bottom: 1rem;
}

.footer-brand p {
  font-size: 0.92rem;
  line-height: 1.7;
  max-width: 300px;
}

.footer-nav h4,
.footer-contact h4 {
  font-size: 1rem;
  font-weight: 600;
  color: var(--color-white);
  margin-bottom: 1.2rem;
}

.footer-nav ul li {
  margin-bottom: 0.6rem;
}

.footer-nav a {
  font-size: 0.9rem;
  transition: all var(--transition-fast);
  display: inline-block;
}

.footer-nav a:hover {
  color: var(--color-accent);
  transform: translateX(5px);
}

.footer-contact p {
  font-size: 0.9rem;
  margin-bottom: 0.5rem;
}

.footer-contact p i {
  margin-right: 0.5rem;
  color: var(--color-accent);
}

.footer-socials {
  display: flex;
  gap: 0.8rem;
  margin-top: 1rem;
}

.footer-socials a {
  width: 38px;
  height: 38px;
  border-radius: var(--radius-full);
  border: 1px solid rgba(255, 255, 255, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.95rem;
  transition: all var(--transition-medium);
}

.footer-socials a:hover {
  background: var(--color-accent);
  border-color: var(--color-accent);
  color: var(--color-white);
  transform: translateY(-3px);
}

.footer-bottom {
  text-align: center;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 0.85rem;
}

/* ─── BACK TO TOP ─── */
.back-to-top {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 48px;
  height: 48px;
  border-radius: var(--radius-full);
  background: var(--color-accent);
  color: var(--color-white);
  border: none;
  font-size: 1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  transition: all var(--transition-medium);
  box-shadow: var(--shadow-accent);
  z-index: 100;
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.back-to-top:hover {
  background: var(--color-accent-light);
  transform: translateY(-4px);
}

/* ─── SCROLL ANIMATIONS ─── */
[data-animate] {
  opacity: 0;
  transition: all 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

[data-animate="fade-up"] {
  transform: translateY(40px);
}

[data-animate="fade-down"] {
  transform: translateY(-40px);
}

[data-animate="fade-left"] {
  transform: translateX(40px);
}

[data-animate="fade-right"] {
  transform: translateX(-40px);
}

[data-animate="zoom-in"] {
  transform: scale(0.85);
}

[data-animate].animated {
  opacity: 1;
  transform: translate(0) scale(1);
}

/* ─── RESPONSIVE DESIGN ─── */
@media (max-width: 1024px) {
  .about-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .about-image-wrapper {
    max-width: 400px;
    margin: 0 auto;
  }

  .qual-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

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

  .contact-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .repo-grid {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
  }
}

@media (max-width: 768px) {
  :root {
    --section-padding: 5rem 0;
  }

  /* Navigation */
  .nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    width: 80%;
    max-width: 350px;
    height: 100vh;
    background: var(--color-dark);
    flex-direction: column;
    justify-content: center;
    gap: 1.5rem;
    padding: 2rem;
    transition: right 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    box-shadow: -10px 0 30px rgba(0, 0, 0, 0.3);
  }

  .nav-links.active {
    right: 0;
  }

  .nav-link {
    font-size: 1.1rem;
  }

  .hamburger {
    display: flex;
  }

  /* Hero */
  .hero-name {
    font-size: clamp(2.5rem, 10vw, 4rem);
  }

  .hero-title-line {
    width: 30px;
  }

  .hero-buttons {
    flex-direction: column;
    align-items: center;
  }

  .scroll-indicator {
    transform: none;
    margin: 1.5rem 0;
  }

  /* About */
  .about-stats {
    grid-template-columns: repeat(2, 1fr);
  }

  /* Experience Timeline */
  .exp-line {
    left: 0;
  }

  .exp-item {
    width: 100%;
    padding-left: 2.5rem;
    padding-right: 0;
    text-align: left;
  }

  .exp-left {
    text-align: left;
  }

  .exp-left::before,
  .exp-right::before {
    left: -8px;
    right: auto;
  }

  .exp-right {
    left: 0;
  }

  /* Projects */
  .projects-grid {
    grid-template-columns: 1fr;
    max-width: 500px;
    margin: 0 auto;
  }

  /* Documents */
  .documents-grid {
    grid-template-columns: 1fr;
  }

  /* Software */
  .software-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  /* Footer */
  .footer-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .footer-brand p {
    margin: 0 auto;
  }

  .footer-socials {
    justify-content: center;
  }

  /* Cursor */
  .cursor-dot,
  .cursor-ring {
    display: none !important;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 1.2rem;
  }

  .section-title {
    font-size: 1.8rem;
  }

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

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

  .contact-form {
    padding: 1.5rem;
  }

  .doc-card {
    flex-direction: column;
    text-align: center;
  }

  .doc-download {
    width: 100%;
    border-radius: var(--radius-sm);
    height: 44px;
  }
}

/* ─── UTILITY ANIMATIONS ─── */
@keyframes float {

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

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

@keyframes pulse {

  0%,
  100% {
    opacity: 1;
  }

  50% {
    opacity: 0.5;
  }
}

@keyframes shimmer {
  0% {
    background-position: -200% center;
  }

  100% {
    background-position: 200% center;
  }
}

/* Stagger delay utility */
[data-delay="100"] {
  transition-delay: 0.1s !important;
}

[data-delay="150"] {
  transition-delay: 0.15s !important;
}

[data-delay="200"] {
  transition-delay: 0.2s !important;
}

[data-delay="250"] {
  transition-delay: 0.25s !important;
}

[data-delay="300"] {
  transition-delay: 0.3s !important;
}

[data-delay="350"] {
  transition-delay: 0.35s !important;
}

[data-delay="400"] {
  transition-delay: 0.4s !important;
}

[data-delay="450"] {
  transition-delay: 0.45s !important;
}

[data-delay="500"] {
  transition-delay: 0.5s !important;
}

[data-delay="600"] {
  transition-delay: 0.6s !important;
}

/* ─── PRINT STYLES ─── */
@media print {

  .navbar,
  .preloader,
  .scroll-progress,
  .cursor-dot,
  .cursor-ring,
  .back-to-top,
  .scroll-indicator,
  .hero-bg {
    display: none !important;
  }

  .hero {
    min-height: auto;
    padding: 2rem;
  }

}

/* ─── FOLDER REPOSITORY GRID (1-ROW) ─── */
.repo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

@media (min-width: 1024px) {
  .repo-grid {
    grid-template-columns: repeat(4, 1fr);
    /* Force 1 row if 4 items */
  }
}

.folder-card {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 160px;
}

.folder-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: var(--color-accent);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.folder-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
  border-color: var(--color-accent);
}

.folder-card:hover::before {
  opacity: 1;
}

.repo-header {
  margin-bottom: 1rem;
}

.repo-icon {
  font-size: 2rem;
  color: var(--color-accent);
  /* Folder color */
  margin-bottom: 1rem;
}

.repo-header h3 {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--color-dark);
}

.folder-preview {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.9rem;
  color: var(--color-text-muted);
  border-top: 1px solid var(--color-border);
  padding-top: 0.8rem;
  margin-top: auto;
}

.folder-card:hover .folder-preview {
  color: var(--color-accent);
}

/* ─── FILE EXPLORER NAVIGATION ─── */
.fm-nav-bar {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.8rem 2rem;
  background: var(--color-light);
  /* Distinct from toolbar */
  border-bottom: 1px solid var(--color-border);
}

.fm-back-btn {
  background: none;
  border: none;
  font-size: 1.1rem;
  color: var(--color-text);
  cursor: pointer;
  padding: 0.4rem;
  border-radius: var(--radius-sm);
  transition: background 0.2s ease;
}

.fm-back-btn:hover:not(:disabled) {
  background: rgba(0, 0, 0, 0.05);
  color: var(--color-accent);
}

.fm-back-btn:disabled {
  opacity: 0.5;
  cursor: default;
}

.fm-breadcrumbs {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.95rem;
  overflow-x: auto;
  white-space: nowrap;
  scrollbar-width: none;
  /* Hide scrollbar */
}

.breadcrumb-item {
  color: var(--color-text-light);
  cursor: pointer;
  transition: color 0.2s ease;
}

.breadcrumb-item:hover {
  color: var(--color-accent);
  text-decoration: underline;
}

.breadcrumb-item.active {
  color: var(--color-dark);
  font-weight: 600;
  cursor: default;
  text-decoration: none;
}

.breadcrumb-separator {
  color: var(--color-text-light);
  font-size: 0.8rem;
}

/* ─── FOLDER ITEM IN LIST/GRID ─── */
.file-item.is-folder {
  background-color: #fff9f0;
  /* Slight tint for folders */
  border-color: #eaddcf;
}

.file-item.is-folder:hover {
  border-color: var(--color-accent);
  background-color: #fff5e6;
}

.file-item.is-folder .file-item-name {
  font-weight: 700;
}

/* ══════════════════════════════════════════════════
   RESPONSIVE MEDIA QUERIES
   ══════════════════════════════════════════════════ */

/* ─── TABLET (≤ 1024px) ─── */
@media (max-width: 1024px) {
  .hero-content {
    max-width: 95vw;
    width: 95vw;
  }

  .hero-description {
    max-width: 95vw;
    font-size: 0.95rem;
  }

  .about-grid {
    grid-template-columns: 1fr;
  }

  .about-image-wrapper {
    max-width: 320px;
    margin: 0 auto;
  }

  .exp-card-container.left-card {
    transform: translateX(-220px) scale(0.85);
  }

  .exp-card-container.right-card {
    transform: translateX(220px) scale(0.85);
  }
}

/* ─── MOBILE (≤ 768px) ─── */
@media (max-width: 768px) {

  /* Navigation */
  .nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    width: 80vw;
    max-width: 320px;
    height: 100vh;
    background: var(--color-dark);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    transition: right 0.35s ease;
    z-index: 999;
    padding: 2rem;
  }

  .nav-links.active {
    right: 0;
  }

  .hamburger {
    display: flex;
    z-index: 1000;
  }

  /* Hero */
  .hero-content {
    width: 94vw;
    max-width: 94vw;
    padding: 0 1rem;
  }

  .hero-name {
    font-size: clamp(2.2rem, 10vw, 3.5rem);
  }

  .hero-description {
    font-size: 0.88rem;
    max-width: 94vw;
    width: 100%;
    line-height: 1.7;
  }

  .hero-buttons {
    flex-direction: column;
    align-items: center;
    gap: 1rem;
  }

  .scroll-indicator {
    order: 3;
  }

  .btn {
    width: 100%;
    max-width: 260px;
    justify-content: center;
  }

  /* Section layout */
  .container {
    padding: 0 1rem;
  }

  .section {
    padding: 4rem 0;
  }

  .section-title {
    font-size: 2rem;
  }

  /* About */
  .about-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .about-image-wrapper {
    max-width: 260px;
    margin: 0 auto;
  }

  .about-stats {
    grid-template-columns: repeat(2, 1fr);
  }

  /* Skills */
  .skills-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
  }

  /* Experience Carousel */
  .experience-carousel,
  .consultation-carousel {
    min-height: 420px;
  }

  .exp-card-container {
    width: 90vw;
    max-width: 360px;
  }

  .exp-card-container.left-card {
    transform: translateX(-100%) scale(0.8);
    opacity: 0;
    pointer-events: none;
  }

  .exp-card-container.right-card {
    transform: translateX(100%) scale(0.8);
    opacity: 0;
    pointer-events: none;
  }

  .nav-control {
    width: 36px;
    height: 36px;
    font-size: 0.85rem;
  }

  /* Projects */
  .projects-grid {
    grid-template-columns: 1fr;
  }

  /* Document cards */
  .documents-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  /* Repo / folder grid */
  .repo-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
  }

  /* Consultation section */
  #study-consultation .container {
    padding: 0 1rem;
  }

  /* Contact */
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  /* File modal */
  .file-modal-content {
    width: 98%;
    height: 92vh;
    border-radius: var(--radius-md);
  }

  .fm-toolbar {
    flex-wrap: wrap;
    gap: 0.5rem;
  }

  .fm-sort-bar {
    display: none;
  }

  /* Footer */
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}

/* ─── SMALL MOBILE (≤ 480px) ─── */
@media (max-width: 480px) {
  .hero-name {
    font-size: clamp(1.9rem, 9vw, 2.8rem);
  }

  .hero-description {
    font-size: 0.82rem;
  }

  .section-title {
    font-size: 1.7rem;
  }

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

  .repo-grid {
    grid-template-columns: 1fr;
  }

  .about-stats {
    grid-template-columns: 1fr 1fr;
  }

  .exp-card-container {
    width: 95vw;
  }

  .preloader-text {
    font-size: 0.65rem;
    padding: 0 1rem;
    text-align: center;
  }

  .nav-control.prev {
    left: 0;
  }

  .nav-control.next {
    right: 0;
  }
}