/* Consolidated Swiss Design Styles */

/* Base font */
body {
  font-family: 'IBM Plex Sans', sans-serif;
  transition: background-color 0.3s ease, color 0.3s ease;
}

/* Dark theme styles */
body.dark {
  background-color: #111827;
  color: #ffffff;
}

body.dark section {
  background-color: #111827 !important;
  color: #ffffff;
}

body.dark section:nth-child(even) {
  background-color: #1f2937 !important;
}

body.dark .text-black {
  color: #ffffff !important;
}

body.dark .bg-white {
  background-color: #111827 !important;
}

body.dark .bg-neutral-50 {
  background-color: #1f2937 !important;
}

body.dark .border-black {
  border-color: #ffffff !important;
}

body.dark .black-line {
  background-color: #ffffff !important;
}

body.dark footer {
  background-color: #000000 !important;
  border-color: #ffffff !important;
}

/* Light theme - default styles */
body:not(.dark) {
  background-color: #ffffff;
  color: #000000;
}

/* Swiss Design Grid System */
.swiss-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 2rem;
  max-width: 1400px;
  margin: 0 auto;
}

.grid-item {
  border: 1px solid rgba(0, 0, 0, 0.1);
}

/* Typography Scale */
.text-swiss-xl { 
  font-size: 4.5rem; 
  line-height: 1; 
  letter-spacing: -0.02em; 
}

.text-swiss-lg { 
  font-size: 3rem; 
  line-height: 1.1; 
  letter-spacing: -0.01em; 
}

.text-swiss-md { 
  font-size: 1.5rem; 
  line-height: 1.3; 
}

.text-swiss-sm { 
  font-size: 1rem; 
  line-height: 1.5; 
}

/* Minimal animations */
.hover-underline {
  position: relative;
  display: inline-block;
}

.hover-underline::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: #FF0000;
  transition: width 0.3s ease;
}

.hover-underline:hover::after {
  width: 100%;
}

/* Geometric shapes */
.red-square {
  width: 100%;
  aspect-ratio: 1;
  background: #FF0000;
}

.black-line {
  height: 2px;
  background: #000000;
}

/* Card styles */
.card-hover {
  transition: all 0.3s ease;
}

.card-hover:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

.scroll-smooth {
  scroll-behavior: smooth;
}

/* Project-specific visual style */
.project-mockup {
  background: linear-gradient(145deg, #2d3748 0%, #1a202c 100%);
  border: 2px solid rgba(255,255,255,0.1);
}

/* Modal styles (used on index) */
.modal {
  display: none;
  position: fixed;
  z-index: 100;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0, 0, 0, 0.8);
  animation: fadeIn 0.3s ease;
}

.modal.show {
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal-content {
  background-color: #1f2937;
  margin: auto;
  padding: 0;
  border: 1px solid #4d5d00;
  width: 90%;
  max-width: 1200px;
  height: 85vh;
  border-radius: 16px;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
  animation: slideIn 0.3s ease;
  display: flex;
  flex-direction: column;
}

.modal-header {
  background: linear-gradient(135deg, #4d5d00 0%, #3d4700 100%);
  color: white;
  padding: 20px;
  border-radius: 16px 16px 0 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.modal-iframe {
  width: 100%;
  height: 100%;
  border: none;
  border-radius: 0 0 16px 16px;
}

.close-modal {
  color: white;
  font-size: 28px;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.3s ease;
  background: rgba(255, 255, 255, 0.1);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
}

.close-modal:hover,
.close-modal:focus {
  background: rgba(255, 255, 255, 0.2);
  transform: rotate(90deg);
}

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

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