/* ========================================
   RESET
======================================== */

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

/* ========================================
   ROOT VARIABLES
======================================== */

:root {
  --bg-main: #140c2b;
  --bg-secondary: #1f1447;
  --bg-card: #2a1b5e;

  --accent: #5fd1ff;
  --accent-hover: #38bdf8;

  --text-main: #ffffff;
  --text-muted: #cbd5e1;
}

/* ========================================
   BASE STYLES
======================================== */

body {
  font-family: system-ui, Arial, sans-serif;
  background: var(--bg-main);
  color: var(--text-main);
  line-height: 1.6;
}

img {
  max-width: 80px;
}

/* ========================================
   LAYOUT
======================================== */

.container {
  max-width: 1100px;
  margin: auto;
  padding: 20px;
}

/* ========================================
   LOGO
======================================== */

.logo {
  margin-bottom: 10px;
}

/* ========================================
   ABOUT SECTION
======================================== */

.about-hero {
  text-align: center;
  margin-bottom: 40px;
}

.subheading {
  margin-top: 10px;

  color: var(--text-muted);
  font-size: 1.2em;
}

.about-content {
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
}

.about-text {
  flex: 1;
  min-width: 300px;
}

.about-text h2 {
  margin-bottom: 20px;
}

.about-text p {
  margin-bottom: 15px;
}

/* ========================================
   NAVIGATION
======================================== */

.nav-links {
  display: flex;
  gap: 20px;

  list-style: none;
}

.nav-links a {
  color: var(--text-main);
  text-decoration: none;

  transition: 0.3s;
}

.nav-links a:hover {
  color: var(--accent);
}

/* ========================================
   HERO SECTION
======================================== */

.hero {
  max-width: 700px;
  margin: 60px auto;

  text-align: center;
}

.hero h1 {
  font-size: 32px;
  margin-bottom: 15px;
}

.hero p {
  color: var(--text-muted);
}

/* ========================================
   PROJECTS SECTION
======================================== */

.projects {
  margin-top: 40px;
}

.projects h2 {
  text-align: center;
  margin-bottom: 40px;
}

.project-card {
  display: flex;
  flex-wrap: wrap;
  gap: 30px;

  padding: 20px;
  border-radius: 12px;

  background: var(--bg-card);
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.project-card img {
  width: 100%;
  max-width: 400px;

  border-radius: 10px;
}

.project-content {
  flex: 1;
}

.project-content h3 {
  margin-bottom: 10px;
}

.project-content p {
  margin-bottom: 15px;

  color: var(--text-muted);
}

.project-content ul {
  list-style: none;
  margin-bottom: 20px;
}

.project-content li {
  margin-bottom: 8px;
  color: var(--text-muted);
}

.project-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

/* ========================================
   BUTTONS
======================================== */

.cta-button {
  padding: 10px 18px;
  border-radius: 8px;

  background: var(--accent);
  color: #000;

  text-decoration: none;
  font-weight: 600;

  transition: 0.3s;
}

.cta-button:hover {
  background: var(--accent-hover);
}

.secondary-button {
  margin-right: 10px;
  padding: 10px 18px;
  border-radius: 8px;

  border: 1px solid var(--accent);

  color: var(--accent);
  text-decoration: none;
}

.secondary-button:hover {
  background: rgba(95, 209, 255, 0.1);
}

/* ========================================
   CTA SECTION
======================================== */

.cta-section {
  text-align: center;
  margin: 80px 20px;
}

.cta-section p {
  margin: 10px 0 20px;
  color: var(--text-muted);
}

/* ========================================
   BACK BUTTON
======================================== */

.back-btn {
  position: fixed;
  top: 25px;
  right: 25px;

  z-index: 1000;

  padding: 12px 18px;
  border-radius: 999px;

  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--border);

  color: var(--text-main);
  text-decoration: none;

  backdrop-filter: blur(12px);

  transition:
    transform 0.25s ease,
    background 0.25s ease,
    border-color 0.25s ease;
}

.back-btn:hover {
  transform: translateY(-2px);

  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(125, 211, 252, 0.5);
}

/* ========================================
   FOOTER
======================================== */

footer {
  text-align: center;

  margin-top: 40px;
  padding: 20px;

  background: var(--bg-secondary);
  color: var(--text-muted);
}

/* ========================================
   RESPONSIVE STYLES
======================================== */

@media (max-width: 768px) {

  header {
    flex-direction: column;
    gap: 10px;
  }

  .project-card {
    flex-direction: column;
  }

  .hero h1 {
    font-size: 26px;
  }
}