/* ============================================
   CSS VARIABLES - DESIGN SYSTEM
   ============================================ */
:root {
  /* Color Palette */
  --color-primary: #064b2a;
  --color-primary-hover: #075a33;
  --color-secondary: #8f180b;
  --color-secondary-dark: #6b0f08;
  --color-secondary-light: #c94c38;
  --color-accent: #fafaf1;
  --color-accent-dark: #f5f5f0;

  /* Semantic Colors */
  --color-bg-light: #fafaf1;
  --color-bg-medium: #f5f5f0;
  --color-bg-dark: #e8e8dc;
  --color-text-dark: #342213;
  --color-text-medium: #684a30;
  --color-text-light: #666666;

  /* Typography */
  --font-primary: 'Darumadrop One', 'Helvetica Neue', Arial, sans-serif;
  --font-secondary: Arial, Helvetica, sans-serif;
  --font-serif: Georgia, serif;
  --font-mono: Menlo, Monaco, monospace;

  /* Spacing System (8px base) */
  --space-1: 0.5rem; /* 8px */
  --space-2: 1rem; /* 16px */
  --space-3: 1.5rem; /* 24px */
  --space-4: 2rem; /* 32px */
  --space-6: 3rem; /* 48px */
  --space-8: 4rem; /* 64px */
  --space-12: 6rem; /* 96px */

  /* Border Radius System */
  --radius-sm: 8px;
  --radius-md: 18px;
  --radius-lg: 22px;
  --radius-xl: 32px;
  --radius-2xl: 48px;
  --radius-full: 9999px;

  /* Shadows */
  --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.1);
  --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 10px 25px rgba(0, 0, 0, 0.15);

  /* Transitions */
  --transition-fast: 0.2s ease;
  --transition-base: 0.3s ease;
  --transition-slow: 0.5s ease;
  --transition-navbar: 0.8s cubic-bezier(0.89, -0.38, 0.22, 1.35);

  /* Z-index Scale */
  --z-navbar: 999;
  --z-dropdown: 1000;
  --z-modal: 1050;
  --z-tooltip: 1100;
}

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

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

body {
  font-family: var(--font-primary);
  background-color: var(--color-bg-light);
  color: var(--color-text-dark);
  overflow-x: hidden;
  max-width: 100vw;
  line-height: 1.6;
}

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

a {
  color: inherit;
  text-decoration: none;
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  text-shadow: 2px 4px 4px rgba(0, 0, 0, 0.6);
}

/* ============================================
     DEBUG SCREENS (Remove in Production)
     ============================================ */
.debug-screens::before {
  position: fixed;
  z-index: 9999;
  top: 0;
  left: 0;
  padding: 0.25rem 0.5rem;
  font-size: 12px;
  background: rgba(0, 0, 0, 0.6);
  color: white;
  pointer-events: none;
  content: 'xs';
}

@media (min-width: 640px) {
  .debug-screens::before {
    content: 'sm';
    background: red;
  }
}

@media (min-width: 768px) {
  .debug-screens::before {
    content: 'md';
    background: blue;
  }
}

@media (min-width: 1024px) {
  .debug-screens::before {
    content: 'lg';
    background: green;
  }
}

@media (min-width: 1280px) {
  .debug-screens::before {
    content: 'xl';
    background: rgb(133, 133, 1);
  }
}

@media (min-width: 1536px) {
  .debug-screens::before {
    content: '2xl';
    background: purple;
  }
}

/* ============================================
     LAYOUT UTILITIES
     ============================================ */
.my-container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 var(--space-2);
}

.my-section {
  padding: var(--space-6) 0;
}

/* Responsive Container Widths */
@media (min-width: 640px) {
  .my-container {
    max-width: 640px;
  }
  .my-section {
    padding: 148px 0;
  }
}

@media (min-width: 768px) {
  .my-container {
    max-width: 768px;
  }
}

@media (min-width: 1024px) {
  .my-container {
    max-width: 984px;
  }
}

@media (min-width: 1280px) {
  .my-container {
    max-width: 980px;
  }
}

/* ============================================
     HEADER & NAVIGATION
     ============================================ */
.header-navbar {
  position: fixed;
  top: 16px;
  width: 100%;
  z-index: var(--z-navbar);
  padding: 0 0.5rem;
  margin: 0 auto;
  transition: top var(--transition-navbar);
}

.header-navbar.hide-navbar {
  top: -100px;
}

#nav-bar {
  box-shadow: 2px 4px 4px 2px rgba(0, 0, 0, 0.6);
}

@media (min-width: 768px) {
  .header-navbar {
    top: 32px;
    padding: 0 2.5rem;
  }
}

.typed::after {
  content: '';
  display: inline-block;
  width: 2px;
  height: 0.8em;
  margin-top: -10px;
  margin-left: 2px;
  margin-right: -8px;
  vertical-align: middle;
  background: var(--color-accent);
  opacity: 1;
  animation: blink 1s steps(2, start) infinite;
}

@keyframes blink {
  0%,
  50% {
    opacity: 1;
  }
  51%,
  100% {
    opacity: 0;
  }
}

@media (min-width: 640px) {
  .typed::after {
    margin-left: 2px;
    margin-right: -10px;
    box-shadow: 2px 2px 4px 2px rgba(0, 0, 0, 0.4);
  }
}
/* ============================================
     ACCORDION COMPONENT
     ============================================ */
.accordion-container {
  background: transparent;
}

.accordion-item {
  margin-bottom: 12px;
  border-radius: var(--radius-md);
  overflow: hidden;
}

.accordion-item:last-child {
  margin-bottom: 0;
}

.accordion-header {
  background: var(--color-primary);
  color: var(--color-accent);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 20px;
  font-size: 1.25rem;
  line-height: 2rem;
  font-weight: 900;
  transition: background var(--transition-fast);
  position: relative;
}

.accordion-header:hover {
  background: var(--color-primary-hover);
}

.accordion-header::after {
  content: '▼';
  font-size: 1.5rem;
  transition: transform var(--transition-base);
}

.accordion-header.active::after {
  transform: rotate(180deg);
}

.accordion-content {
  height: 0;
  overflow: hidden;
  background: var(--color-bg-medium);
}

.accordion-body {
  padding: 16px 20px;
  color: var(--color-text-dark);
}

@media (min-width: 640px) {
  .accordion-body {
    padding: 20px 20px;
  }
}

@media (min-width: 768px) {
  .accordion-body {
    padding: 16px 25px;
  }
}

/* Accordion Content Sections */
.accordion-skill-section,
.accordion-education-section,
.accordion-experience-section {
  margin-bottom: 25px;
}

.accordion-skill-section:last-child,
.accordion-education-section:last-child,
.accordion-experience-section:last-child {
  margin-bottom: 0;
}

.accordion-skill-title {
  font-weight: bold;
  margin-bottom: 10px;
}

.accordion-skill-list {
  list-style: none;
  padding-left: 20px;
}

.accordion-skill-list li {
  position: relative;
  padding-left: 15px;
}

.accordion-skill-list li::before {
  content: '›';
  position: absolute;
  left: 0;
  top: -2px;
  font-size: 1.3rem;
  font-weight: bold;
}

@media (min-width: 768px) {
  .accordion-header {
    padding: 20px 25px;
    font-size: 2rem;
  }
}

/* ============================================
     WORKS GALLERY
     ============================================ */
.works-flex-group {
  width: 100%;
}

.the-works-item a {
  box-shadow: 2px 4px 4px 2px rgba(0, 0, 0, 0.6);
}

.works-item {
  flex: 1;
  transition:
    flex 0.35s ease,
    opacity 0.35s ease;
  cursor: pointer;
  overflow: hidden;
  border-radius: var(--radius-2xl);
  box-shadow: 2px 4px 4px 2px rgba(0, 0, 0, 0.6);
}

.works-item img {
  width: 100%;
  height: 480px;
  object-fit: cover;
  transition: transform 0.35s ease;
}

.works-item:hover img {
  transform: scale(1.03);
}

.video-wrapper {
  position: relative;
  width: 100%;
  height: 480px;
}

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

/* ============================================
     FOOTER & CONTACT
     ============================================ */
.contact-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  margin: 0 auto;
  padding: 5px 10px;
  color: var(--color-text-dark);
  transition: width var(--transition-fast);
}

.contact-item:hover {
  width: 98%;
}

.divider {
  border-bottom: 4px solid var(--color-primary);
}

@media (min-width: 768px) {
  .contact-item {
    padding: 10px 20px;
  }
}

/* ============================================
     UTILITY CLASSES
     ============================================ */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}

.transition-base {
  transition: all var(--transition-base);
}

/* ============================================
     ANIMATIONS
     ============================================ */
@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

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

.animate-fade-in {
  animation: fadeIn var(--transition-base);
}

.animate-slide-up {
  animation: slideUp var(--transition-slow);
}

/* ============================================
    SWIPERJS STYLES
  ============================================ */
/* Custom Swiper Styles */ /* Custom Swiper Styles */
.carousel-container {
  position: relative;
}

.swiper {
  width: 100%;
  height: 100%;
}

.swiper-slide {
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f5f5f0;
}

.swiper-slide img,
.swiper-slide video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Navigation Buttons */
.swiper-button-prev,
.swiper-button-next {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  color: #fafaf1;
  transition: all 0.3s ease;
}

.swiper-button-prev {
  left: 40px !important;
}

.swiper-button-next {
  right: 40px !important;
}

.swiper-button-prev:hover,
.swiper-button-next:hover {
  transform: scale(1.1);
}

/* Swiper Arrow Styles */
.swiper-arrow-left,
.swiper-arrow-right {
  filter: drop-shadow(2px 4px 4px rgba(0, 0, 0, 0.6));
  transform: scale(1.4);
}

/* Hide default Swiper SVG icons */
.swiper-navigation-icon {
  display: none;
}

/* Hide default Swiper SVG icons */
.swiper-button-prev::after,
.swiper-button-next::after {
  display: none;
}

/* Custom Font Awesome Icons */
.swiper-button-prev i,
.swiper-button-next i {
  font-size: 20px;
  color: #fafaf1;
}

/* Pagination */
.swiper-pagination-bullet {
  width: 12px;
  height: 12px;
  background: #064b2a;
  opacity: 0.5;
}

.swiper-pagination-bullet-active {
  opacity: 1;
  background: #064b2a;
}

/* Project Container */
.project-container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 48px 20px;
}

.project-header h2 {
  font-size: 4.4rem;
  color: var(--color-text-dark);
  margin-bottom: 24px;
  text-align: center;
}

.project-description p {
  font-size: 1.4rem;
  line-height: 1.8;
  color: var(--color-text-medium);
  text-align: center;
  max-width: 900px;
  margin: 0 auto;
}

@media (max-width: 768px) {
  .swiper-button-prev,
  .swiper-button-next {
    width: 40px;
    height: 40px;
  }

  .project-header h2 {
    font-size: 3.2rem;
  }

  .project-description p {
    font-size: 1rem;
  }

  .project-container {
    padding: 40px 16px;
  }

  .swiper-arrow-left,
  .swiper-arrow-right {
    transform: scale(1);
  }

  .swiper-button-prev {
    left: 40px !important;
  }

  .swiper-button-next {
    right: 40px !important;
  }
}

@media (max-width: 640px) {
  .swiper-button-prev {
    left: 20px !important;
  }

  .swiper-button-next {
    right: 20px !important;
  }
}
