/* Frostbit Solutions - Static Website Styles */

/* CSS Reset & Base */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  background-color: var(--bg-primary);
}

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

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

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

/* CSS Custom Properties */
:root {
  --bg-primary: #091b26;
  --bg-card: #0d2832;
  --text-primary: #f3e8cd;
  --text-secondary: #9ebebb;
  --accent: #468289;
  --accent-hover: #77aca2;
  --border-color: rgba(70, 130, 137, 0.2);
}

/* Layout */
.page {
  background-color: var(--bg-primary);
  min-height: 100vh;
  width: 100%;
}

.container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 1rem;
}

@media (min-width: 768px) {
  .container {
    padding: 0 2rem;
  }
}

/* Header */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  background-color: rgba(9, 27, 38, 0.95);
  backdrop-filter: blur(4px);
  border-bottom: 1px solid var(--border-color);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem;
}

@media (min-width: 768px) {
  .header-inner {
    padding: 1.5rem 2rem;
  }
}

/* Logo */
.logo {
  display: flex;
  align-items: center;
  gap: 16px;
}

.logo-icon {
  height: 50px;
  width: 30.388px;
  flex-shrink: 0;
}

.logo-text {
  height: 16px;
  width: 72px;
  flex-shrink: 0;
}

@media (max-width: 767px) {
  .logo {
    transform: scale(0.75);
    transform-origin: left;
  }
}

/* Navigation */
.nav {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

@media (min-width: 768px) {
  .nav {
    gap: 2rem;
  }
}

.nav-link {
  color: var(--text-primary);
  font-size: 0.875rem;
  transition: color 0.2s;
}

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

@media (min-width: 768px) {
  .nav-link {
    font-size: 1rem;
  }
}

/* Main Content */
.main {
  padding-top: 80px;
}

@media (min-width: 768px) {
  .main {
    padding-top: 100px;
  }
}

/* Sections */
.section {
  padding: 3rem 0;
}

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

@media (min-width: 1024px) {
  .section {
    padding: 6rem 0;
  }
}

/* Section Titles */
.section-title {
  color: var(--text-primary);
  text-align: center;
  margin-bottom: 3rem;
  font-size: 1.5rem;
  font-weight: 400;
}

@media (min-width: 768px) {
  .section-title {
    font-size: 1.875rem;
    margin-bottom: 4rem;
  }
}

@media (min-width: 1024px) {
  .section-title {
    font-size: 2.25rem;
  }
}

.section-title-large {
  font-size: 1.875rem;
}

@media (min-width: 768px) {
  .section-title-large {
    font-size: 2.25rem;
  }
}

@media (min-width: 1024px) {
  .section-title-large {
    font-size: 3rem;
  }
}

/* Cards Grid */
.cards-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

@media (min-width: 768px) {
  .cards-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
  }
}

@media (min-width: 1024px) {
  .cards-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* Card */
.card {
  background-color: var(--bg-card);
  border-radius: 1rem;
  overflow: hidden;
  border: 1px solid var(--border-color);
}

.card-image {
  aspect-ratio: 2 / 1;
  overflow: hidden;
}

@media (min-width: 768px) {
  .card-image {
    aspect-ratio: 16 / 9;
  }
}

.card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.card-image--contain {
  background-color: #06131b;
}

.card-image--contain img {
  object-fit: contain;
}

.card-content {
  padding: 1rem;
}

@media (min-width: 768px) {
  .card-content {
    padding: 1.5rem;
  }
}

.card-title {
  color: var(--text-primary);
  margin-bottom: 0.75rem;
  font-size: 1.125rem;
  font-weight: 400;
}

@media (min-width: 768px) {
  .card-title {
    font-size: 1.25rem;
  }
}

.card-text {
  color: var(--text-secondary);
  font-size: 0.875rem;
}

@media (min-width: 768px) {
  .card-text {
    font-size: 1rem;
  }
}

/* About Section */
.about-card {
  background-color: var(--bg-card);
  border-radius: 1rem;
  border: 1px solid var(--border-color);
  overflow: hidden;
}

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

@media (min-width: 1024px) {
  .about-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.about-content {
  padding: 1rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  order: 2;
}

.about-content .btn {
  align-self: flex-start;
  text-align: left;
}

@media (min-width: 768px) {
  .about-content {
    padding: 3rem;
  }
}

@media (min-width: 1024px) {
  .about-content {
    order: 1;
  }
}

.about-title {
  color: var(--text-primary);
  margin-bottom: 1.5rem;
  font-size: 1.875rem;
  font-weight: 400;
}

@media (min-width: 768px) {
  .about-title {
    font-size: 2.25rem;
    margin-bottom: 2rem;
  }
}

@media (min-width: 1024px) {
  .about-title {
    font-size: 3rem;
  }
}

.about-text {
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
  font-size: 1rem;
  line-height: 1.75;
}

@media (min-width: 768px) {
  .about-text {
    font-size: 1.125rem;
    margin-bottom: 2rem;
  }
}

.about-image {
  height: 16rem;
  order: 1;
}

@media (min-width: 1024px) {
  .about-image {
    height: auto;
    order: 2;
  }
}

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

/* Buttons */
.btn {
  display: inline-block;
  padding: 0.75rem 2rem;
  border-radius: 0.5rem;
  font-size: 0.875rem;
  transition: background-color 0.2s, border-color 0.2s;
}

@media (min-width: 768px) {
  .btn {
    font-size: 1rem;
  }
}

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

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

.btn-secondary {
  background-color: var(--bg-primary);
  color: var(--text-primary);
  border: 1px solid rgba(243, 232, 205, 0.2);
}

.btn-secondary:hover {
  background-color: var(--accent);
  border-color: rgba(243, 232, 205, 0.4);
}

/* Contact Section */
.contact-section {
  background: linear-gradient(to bottom, var(--bg-primary), var(--bg-card));
}

.contact-container {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 1rem;
}

@media (min-width: 768px) {
  .contact-container {
    padding: 0 2rem;
  }
}

/* Form */
.form {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

@media (min-width: 768px) {
  .form-row {
    grid-template-columns: repeat(2, 1fr);
  }
}

.form-input,
.form-textarea {
  width: 100%;
  padding: 1rem 1.5rem;
  background-color: var(--text-primary);
  color: var(--bg-primary);
  border: none;
  border-radius: 0.5rem;
  font-size: 1rem;
  font-family: inherit;
  transition: box-shadow 0.2s;
}

.form-input::placeholder,
.form-textarea::placeholder {
  color: rgba(9, 27, 38, 0.6);
}

.form-input:focus,
.form-textarea:focus {
  outline: none;
  box-shadow: 0 0 0 2px var(--accent);
}

.form-textarea {
  resize: none;
  min-height: 150px;
}

.form-footer {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
}

.form-submit {
  padding: 1rem 2.5rem;
}

.form-status {
  margin-top: 1rem;
  font-size: 0.875rem;
  text-align: center;
  color: var(--text-secondary);
}

.form-status--success {
  color: #7fe4c6;
}

.form-status--error {
  color: #f3a6a6;
}

/* Checkbox */
.checkbox-label {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  color: var(--text-secondary);
  font-size: 0.875rem;
  max-width: 28rem;
  cursor: pointer;
}

.checkbox-input {
  margin-top: 0.25rem;
  width: 1rem;
  height: 1rem;
  flex-shrink: 0;
  accent-color: var(--accent);
}

.checkbox-link {
  color: var(--accent-hover);
}

.checkbox-link:hover {
  text-decoration: underline;
}

/* Footer */
.footer {
  background-color: var(--bg-primary);
  border-top: 1px solid var(--border-color);
  padding: 2rem 0;
}

@media (min-width: 768px) {
  .footer {
    padding: 2.5rem 0;
  }
}

.footer-text {
  color: var(--text-secondary);
  font-size: 0.875rem;
  text-align: center;
}

@media (min-width: 768px) {
  .footer-text {
    font-size: 1rem;
    text-align: left;
  }
}

.footer-text p {
  margin-bottom: 0.25rem;
}

/* Experiences Page */
.experiences-intro {
  color: var(--text-secondary);
  max-width: 64rem;
  font-size: 1rem;
  line-height: 1.75;
  margin-bottom: 3rem;
}

@media (min-width: 768px) {
  .experiences-intro {
    margin-left: auto;
    margin-right: auto;
    text-align: center;
    font-size: 1.125rem;
    margin-bottom: 4rem;
  }
}

.experiences-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  margin-bottom: 3rem;
  align-items: center;
}

@media (min-width: 1024px) {
  .experiences-row {
    grid-template-columns: repeat(2, 1fr);
    gap: 3rem;
    margin-bottom: 4rem;
  }
}

.experiences-image {
  border-radius: 1rem;
  overflow: hidden;
  border: 1px solid var(--border-color);
}

.experiences-image img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

@media (min-width: 1024px) {
  .experiences-image img {
    aspect-ratio: 4 / 3;
  }
}

.experiences-list {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.experience-item-title {
  color: var(--text-primary);
  font-size: 1.125rem;
  margin-bottom: 0.75rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 400;
}

@media (min-width: 768px) {
  .experience-item-title {
    font-size: 1.25rem;
  }
}

.experience-item-title::before {
  content: "\2022";
  color: var(--text-primary);
  font-size: 0.875rem;
}

.experience-item-text {
  color: var(--text-secondary);
  font-size: 0.875rem;
  line-height: 1.75;
}

@media (min-width: 768px) {
  .experience-item-text {
    font-size: 1rem;
  }
}

/* For Nerds Section */
.nerds-section {
  background-color: var(--bg-card);
  border-radius: 1rem;
  border: 1px solid var(--border-color);
  padding: 1rem;
  margin-bottom: 1.5rem;
}

@media (min-width: 768px) {
  .nerds-section {
    padding: 3rem;
    margin-bottom: 4rem;
  }
}

.nerds-title {
  text-align: center;
  color: var(--text-primary);
  font-size: 1.5rem;
  margin-bottom: 2rem;
  font-weight: 400;
}

@media (min-width: 768px) {
  .nerds-title {
    font-size: 1.875rem;
  }
}

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

@media (min-width: 1024px) {
  .nerds-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 3rem;
  }
}

.nerds-item-title {
  color: var(--text-primary);
  font-size: 1.125rem;
  margin-bottom: 0.75rem;
  font-weight: 400;
}

@media (min-width: 768px) {
  .nerds-item-title {
    font-size: 1.25rem;
  }
}

.nerds-item-text {
  color: var(--text-secondary);
  font-size: 0.875rem;
  line-height: 1.75;
}

@media (min-width: 768px) {
  .nerds-item-text {
    font-size: 1rem;
  }
}

.nerds-tags {
  text-align: center;
  color: var(--accent-hover);
  font-size: 0.75rem;
  line-height: 1.75;
}

@media (min-width: 768px) {
  .nerds-tags {
    font-size: 0.875rem;
  }
}

/* Back Link */
.back-link {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--text-primary);
  font-size: 0.875rem;
  transition: color 0.2s;
}

.back-link:hover {
  color: var(--accent-hover);
}

@media (min-width: 768px) {
  .back-link {
    font-size: 1rem;
  }
}

/* Gradient Background */
.gradient-section {
  background: linear-gradient(to bottom, var(--bg-primary), var(--bg-card), var(--bg-primary));
}

/* Order utilities for mobile */
@media (max-width: 1023px) {
  .order-1-mobile {
    order: 1;
  }
  .order-2-mobile {
    order: 2;
  }
}
