/* SoftAlp Inc. - Main Stylesheet */

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

:root {
  /* Brand Colors */
  --color-black: #000000;
  --color-white: #FFFFFF;
  --color-dark-grey: #1A1A1A;
  --color-mid-grey: #2D2D2D;
  --color-light-grey: #4A4A4A;
  --color-text-secondary: #D1D5DB;
  --color-text-tertiary: #9CA3AF;
  --color-accent-yellow: #FFD700;
  --color-accent-yellow-light: #FFE55C;
  --color-accent-yellow-dark: #FFC700;
  
  /* Semantic Colors */
  --color-success: #10B981;
  --color-warning: #F59E0B;
  --color-error: #EF4444;
  --color-info: #3B82F6;
  
  /* Spacing (8px base) */
  --space-xs: 4px;
  --space-sm: 8px;
  --space-md: 16px;
  --space-lg: 24px;
  --space-xl: 32px;
  --space-2xl: 48px;
  --space-3xl: 64px;
  --space-4xl: 80px;
  
  /* Typography */
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-mono: 'Fira Code', monospace;
  
  /* Transitions */
  --transition-fast: 150ms ease;
  --transition-base: 200ms ease;
  --transition-slow: 300ms ease;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-sans);
  background-color: var(--color-dark-grey);
  color: var(--color-white);
  line-height: 1.6;
  overflow-x: hidden;
}

/* Typography */
h1 {
  font-size: 3.5rem;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: var(--space-lg);
}

h2 {
  font-size: 2.5rem;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: var(--space-xl);
}

h3 {
  font-size: 1.875rem;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: var(--space-lg);
}

h4 {
  font-size: 1.5rem;
  font-weight: 600;
  line-height: 1.2;
  margin-bottom: var(--space-md);
}

p {
  margin-bottom: var(--space-md);
  color: var(--color-text-secondary);
}

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

a:hover {
  color: var(--color-accent-yellow);
}

/* Container */
.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 var(--space-lg);
}

/* Section */
.section {
  padding: var(--space-4xl) 0;
}

.section--dark {
  background-color: var(--color-dark-grey);
}

.section--mid {
  background-color: var(--color-mid-grey);
}

.section--gradient {
  background: linear-gradient(to bottom, var(--color-dark-grey), var(--color-black));
}

.section-header {
  text-align: center;
  margin-bottom: var(--space-4xl);
}

.section-header__accent {
  display: inline-block;
  width: 60px;
  height: 3px;
  background-color: var(--color-accent-yellow);
  margin-bottom: var(--space-lg);
}

.section-header h2 {
  color: var(--color-white);
}

.section-header p {
  font-size: 1.125rem;
  color: var(--color-text-secondary);
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 44px;
  padding: 12px 24px;
  font-size: 14px;
  font-weight: 600;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  transition: all var(--transition-base);
  text-decoration: none;
  white-space: nowrap;
}

.btn:focus {
  outline: 2px solid var(--color-accent-yellow);
  outline-offset: 4px;
}

.btn--primary {
  background-color: var(--color-accent-yellow);
  color: var(--color-black);
  font-weight: 600;
}

.btn--primary:hover {
  background-color: var(--color-accent-yellow-light);
  transform: translateY(-1px);
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
}

.btn--primary:active {
  background-color: var(--color-accent-yellow-dark);
}

.btn--secondary {
  background-color: transparent;
  border: 2px solid var(--color-accent-yellow);
  color: var(--color-accent-yellow);
  padding: 10px 22px;
}

.btn--secondary:hover {
  background-color: rgba(255, 215, 0, 0.1);
}

.btn--tertiary {
  background-color: transparent;
  color: var(--color-white);
  padding: 12px 16px;
}

.btn--tertiary:hover {
  color: var(--color-accent-yellow);
  text-decoration: underline;
}

.btn--disabled {
  opacity: 0.5;
  cursor: not-allowed;
  pointer-events: none;
}

.btn-icon {
  width: 20px;
  height: 20px;
  margin-right: var(--space-sm);
}

/* Cards */
.card {
  background-color: var(--color-mid-grey);
  border: 1px solid var(--color-light-grey);
  border-left: 3px solid var(--color-accent-yellow);
  border-radius: 8px;
  padding: var(--space-lg);
  transition: all var(--transition-base);
}

.card:hover {
  border-left: 4px solid var(--color-accent-yellow);
  box-shadow: 0 10px 15px rgba(0, 0, 0, 0.3);
  transform: translateY(-4px);
}

.card h3 {
  color: var(--color-white);
  margin-bottom: var(--space-md);
}

.card p {
  margin-bottom: var(--space-md);
}

/* Project Card */
.project-card {
  background-color: var(--color-mid-grey);
  border: 1px solid var(--color-light-grey);
  border-radius: 8px;
  overflow: hidden;
  transition: all var(--transition-base);
  display: flex;
  flex-direction: column;
}

.project-card:hover {
  box-shadow: 0 20px 25px rgba(0, 0, 0, 0.4);
  transform: translateY(-6px);
}

.project-card__image {
  width: 100%;
  height: 180px;
  background: linear-gradient(135deg, var(--color-light-grey), var(--color-mid-grey));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  color: var(--color-text-tertiary);
  position: relative;
}

.project-card__image::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background-color: var(--color-accent-yellow);
}

.project-card__content {
  padding: var(--space-lg);
  flex: 1;
  display: flex;
  flex-direction: column;
}

.project-card__category {
  font-size: 12px;
  color: var(--color-text-tertiary);
  margin-bottom: var(--space-sm);
  font-weight: 500;
}

.project-card__title {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--color-white);
  margin-bottom: var(--space-md);
}

.project-card__description {
  flex: 1;
  margin-bottom: var(--space-lg);
  color: var(--color-text-secondary);
}

.project-card__link {
  color: var(--color-accent-yellow);
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  transition: color var(--transition-fast);
}

.project-card__link:hover {
  color: var(--color-accent-yellow-light);
}

.project-card__link::after {
  content: ' →';
  margin-left: var(--space-sm);
}

/* Forms */
.form-group {
  margin-bottom: var(--space-lg);
}

label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: var(--color-white);
  margin-bottom: var(--space-sm);
}

input,
textarea,
select {
  width: 100%;
  padding: 12px 16px;
  background-color: var(--color-black);
  border: 1px solid var(--color-light-grey);
  border-radius: 6px;
  color: var(--color-white);
  font-family: var(--font-sans);
  font-size: 16px;
  transition: all var(--transition-fast);
}

input::placeholder,
textarea::placeholder {
  color: var(--color-text-tertiary);
}

input:focus,
textarea:focus,
select:focus {
  outline: none;
  border-color: var(--color-accent-yellow);
  box-shadow: 0 0 0 3px rgba(255, 215, 0, 0.1);
}

input:disabled,
textarea:disabled {
  background-color: var(--color-dark-grey);
  color: var(--color-text-tertiary);
  cursor: not-allowed;
}

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

/* Grid */
.grid {
  display: grid;
  gap: var(--space-lg);
}

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

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

/* Badges */
.badge {
  display: inline-block;
  padding: 6px 12px;
  background-color: var(--color-mid-grey);
  border: 1px solid var(--color-accent-yellow);
  color: var(--color-accent-yellow);
  font-size: 12px;
  font-weight: 600;
  border-radius: 20px;
}

/* Utility Classes */
.text-center {
  text-align: center;
}

.text-muted {
  color: var(--color-text-tertiary);
}

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

.mb-sm {
  margin-bottom: var(--space-sm);
}

.mb-md {
  margin-bottom: var(--space-md);
}

.mb-lg {
  margin-bottom: var(--space-lg);
}

.mb-xl {
  margin-bottom: var(--space-xl);
}

.flex {
  display: flex;
  align-items: center;
  gap: var(--space-md);
}

.flex--gap-sm {
  gap: var(--space-sm);
}

.flex--gap-lg {
  gap: var(--space-lg);
}

.flex--between {
  justify-content: space-between;
}

.flex--center {
  justify-content: center;
}

/* Responsive */
@media (max-width: 768px) {
  h1 {
    font-size: 2rem;
  }

  h2 {
    font-size: 1.5rem;
  }

  h3 {
    font-size: 1.25rem;
  }

  h4 {
    font-size: 1.125rem;
  }

  .section {
    padding: var(--space-2xl) 0;
  }

  .container {
    padding: 0 var(--space-md);
  }

  .grid--2,
  .grid--3 {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  h1 {
    font-size: 1.75rem;
  }

  h2 {
    font-size: 1.25rem;
  }

  .section {
    padding: var(--space-2xl) 0;
  }

  .btn {
    width: 100%;
  }
}
