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

:root {
  /* Backgrounds */
  --bg-primary: #000000;
  --bg-secondary: #0a0f14;
  --bg-card: #111a22;

  /* Borders */
  --border: #1c2a38;
  --border-hover: #5682B1;

  /* Text */
  --text-primary: #e6edf5;
  --text-secondary: #a8c0d8;
  --text-tertiary: #739EC9;
  --text-dim: #6b7f92;
  --text-heading: #ffffff;

  /* Accents */
  --accent-primary: #5682B1;
  --accent-secondary: #739EC9;
  --accent-soft: #FFE8DB;
}

body.light-theme {
  --bg-primary: #ffffff;
  --bg-secondary: #f6f9fc;
  --bg-card: #ffffff;

  --border: #dbe5ef;
  --border-hover: #5682B1;

  --text-primary: #0f1a24;
  --text-secondary: #3f5f7a;
  --text-tertiary: #739EC9;
  --text-dim: #8aa0b5;
  --text-heading: #000000;

  --accent-primary: #5682B1;
  --accent-secondary: #739EC9;
  --accent-soft: #e6cfc3; /* toned peach */
}

body {
  font-family:
    "Poppins",
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  transition:
    background 0.3s,
    color 0.3s;
}

h1,
h2,
h3,
.logo {
  font-family: "Caprasimo", sans-serif;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Header */
header {
  padding: 40px 0;
  border-bottom: 1px solid var(--border);
}

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

.logo {
  font-size: 28px;
  font-weight: 700;
  color: var(--text-heading);
  letter-spacing: -0.5px;
  display: flex;
  gap: 10px;
  align-items: center;
}

.tagline {
  color: var(--text-tertiary);
  font-size: 14px;
  margin-top: 5px;
}

.header-controls {
  display: flex;
  gap: 15px;
  align-items: center;
}

.theme-toggle,
.lang-toggle {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 8px 16px;
  cursor: pointer;
  font-size: 14px;
  color: var(--text-primary);
  font-family: "Poppins", sans-serif;
  transition: all 0.3s;
}

.theme-toggle:hover,
.lang-toggle:hover {
  border-color: var(--border-hover);
  background: var(--bg-secondary);
}

/* Hero */
.hero {
  padding: 100px 0;
  text-align: center;
}

.hero h1 {
  font-size: 56px;
  font-weight: 700;
  color: var(--text-heading);
  margin-bottom: 20px;
  letter-spacing: -1px;
}

.hero p {
  font-size: 20px;
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto;
}

/* Services */
.services {
  padding: 80px 0;
  background: var(--bg-secondary);
}

.section-title {
  font-size: 36px;
  font-weight: 700;
  color: var(--text-heading);
  margin-bottom: 50px;
  text-align: center;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
}

.service-card {
  background: var(--bg-card);
  padding: 30px;
  border-radius: 8px;
  border: 1px solid var(--border);
  transition: border-color 0.3s;
}

.service-card:hover {
  border-color: var(--border-hover);
}

.service-card h3 {
  font-size: 20px;
  color: var(--text-heading);
  margin-bottom: 10px;
}

.service-card p {
  color: var(--text-tertiary);
  font-size: 15px;
}

/* Portfolio Section */

.portfolio {
  padding: 80px 0;
}

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

.portfolio-item {
  background: #1a1a1a;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid #222;
  transition: transform 0.3s;
}

.portfolio-item:hover {
  transform: translateY(-5px);
}

.portfolio-img {
  width: 100%;
  height: 200px;
  background: #252525;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #666;
}

.portfolio-content {
  padding: 20px;
}

.portfolio-content h3 {
  font-size: 18px;
  color: #fff;
  margin-bottom: 8px;
}

.portfolio-content p {
  color: #888;
  font-size: 14px;
}

/* Contact */
.contact {
  padding: 80px 0;
  background: var(--bg-secondary);
}

.contact-info {
  max-width: 600px;
  margin: 0 auto;
  text-align: center;
}

.contact-info p {
  font-size: 18px;
  color: var(--text-secondary);
  margin-bottom: 40px;
}

.contact-links {
  display: flex;
  flex-direction: column;
  gap: 20px;
  align-items: center;
}

.contact-link {
  display: flex;
  align-items: center;
  gap: 15px;
  color: var(--text-heading);
  text-decoration: none;
  font-size: 18px;
  padding: 15px 30px;
  background: var(--bg-card);
  border-radius: 8px;
  border: 1px solid var(--border);
  transition: all 0.3s;
  min-width: 400px;
}

.contact-link:hover {
  border-color: var(--border-hover);
  background: var(--bg-secondary);
}

.contact-icon {
  font-size: 24px;
}

/* Footer */
footer {
  padding: 40px 0;
  text-align: center;
  border-top: 1px solid var(--border);
  color: var(--text-dim);
  font-size: 14px;
}

/* Hidden class for language switching */
.hidden {
  display: none;
}

/* Responsive */
@media (max-width: 768px) {
  .hero h1 {
    font-size: 36px;
  }

  .hero p {
    font-size: 18px;
  }

  .section-title {
    font-size: 28px;
  }

  .contact-link {
    min-width: 100%;
  }

  .header-content {
    flex-direction: column;
    gap: 20px;
    align-items: flex-start;
  }

  .header-controls {
    width: 100%;
    justify-content: flex-end;
  }
}
