*/
:root {
  --primary-color: #1e3a8a; /* Deep Blue */
  --secondary-color: #64748b; /* Slate Gray */
  --background-color: #ffffff; /* White */
  --text-color: #374151; /* Dark Gray */
  --accent-color: #3b82f6; /* Light Blue for accents */
}

h1, h2, h3 {
  color: var(--primary-color);
}
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Inter', sans-serif;
  line-height: 1.6;
  color: var(--text-color);
  background-color: var(--background-color);
}

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

/* Navigation */
nav {
  background-color: var(--secondary-color);
  padding: 1rem 0;
}

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

.nav-links {
  list-style: none;
  display: flex;
}

.nav-links li {
  margin-left: 2rem;
}

.nav-links a {
  color: var(--background-color);
  text-decoration: none;
  font-weight: bold;
  transition: color 0.3s;
}

.nav-links a.active {
  color: var(--accent-color);
  font-weight: 600;
}

/* Main Content */
main {
  min-height: calc(100vh - 200px); /* Adjust for nav and footer */
  padding: 2rem 0;
}

/* Footer */
footer {
  background-color: var(--primary-color);
  color: var(--background-color);
  padding: 1rem 0;
  text-align: center;
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 2rem;
  margin-top: 1rem;
}

.footer-links a {
  color: var(--background-color);
  text-decoration: none;
  font-size: 1.5rem;
  transition: color 0.3s;
}

.footer-links a:hover {
  color: var(--accent-color);
}

/* Hero Section */
.hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 4rem 0;
  background-color: var(--background-color);
}

.hero-content {
  flex: 1;
  padding-right: 2rem;
}

.hero-image {
  flex: 1;
  text-align: center;
}

.hero-image img {
  max-width: 100%;
  height: auto;
  border-radius: 50%;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.hero h1 {
  font-size: 2.5rem;
  margin-bottom: 0.5rem;
  color: var(--primary-color);
}

.hero-quote {
  font-style: italic;
  color: var(--secondary-color);
  margin-bottom: 1rem;
  font-size: 1.1rem;
}

.hero p {
  font-size: 1.2rem;
  line-height: 1.8;
}

/* About Sections */
.about-section {
  margin-bottom: 3rem;
}

.about-section h2 {
  font-size: 2rem;
  margin-bottom: 1rem;
  color: var(--primary-color);
  border-bottom: 2px solid var(--accent-color);
  padding-bottom: 0.5rem;
}

.about-section p {
  margin-bottom: 1rem;
  line-height: 1.7;
}

.about-section ul {
  list-style: none;
  padding-left: 0;
}

.about-section li {
  margin-bottom: 0.5rem;
  padding-left: 1rem;
  position: relative;
}

/* Projects Grid */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
  align-items: stretch;
}

.project-card {
  background-color: var(--background-color);
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  height: 100%;
}

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

.project-image {
  width: 100%;
  height: 220px !important;
  object-fit: cover !important;
}

.project-content {
  padding: 1.5rem;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.project-title {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
  color: var(--primary-color);
}

.project-description {
  color: var(--text-color);
  line-height: 1.6;
}

/* Responsive Design */
@media (max-width: 768px) {
  /* Navigation adjustments */
  .nav-links li {
    margin-left: 1rem;
  }

  .nav-links a {
    font-size: 0.9rem;
  }

  /* Main content padding */
  main {
    padding: 1rem 0;
  }

  .container {
    padding: 0 15px;
  }

  /* Hero section */
  .hero {
    flex-direction: column;
    padding: 2rem 0;
  }

  .hero-content {
    padding-right: 0;
    margin-bottom: 1.5rem;
  }

  .hero h1 {
    font-size: 1.8rem;
  }

  .hero p {
    font-size: 1rem;
  }

  .hero-quote {
    font-size: 0.95rem;
  }

  /* About sections */
  .about-section h2 {
    font-size: 1.5rem;
  }

  .about-section p {
    font-size: 0.95rem;
  }

  /* Projects grid */
  .projects-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
    margin-top: 1.5rem;
  }

  .project-card {
    width: 100%;
  }

  .project-image {
    height: 220px !important;
  }

  .project-content {
    padding: 1rem;
  }

  .project-title {
    font-size: 1.2rem;
  }

  .project-description {
    font-size: 0.9rem;
  }

  /* Footer */
  .footer-links {
    gap: 1rem;
  }

  .footer-links a {
    font-size: 1.2rem;
  }
}

/* Extra small screens */
@media (max-width: 480px) {
  .container {
    padding: 0 10px;
  }

  .hero h1 {
    font-size: 1.5rem;
  }

  .hero p {
    font-size: 0.9rem;
  }

  .about-section h2 {
    font-size: 1.3rem;
  }

  .project-title {
    font-size: 1rem;
  }

  .project-content {
    padding: 0.75rem;
  }

  .nav-links li {
    margin-left: 0.75rem;
  }
}

/* style.css - Modular and Responsive Styles */

/* Color Palette */
:root {
  --primary-color: #1e3a8a; /* Deep Blue */
  --secondary-color: #64748b; /* Slate Gray */
  --background-color: #e0f2fe; /* Soft Sky Blue */
  --text-color: #1f2937; /* Dark Gray */
  --accent-color: #3b82f6; /* Light Blue for accents */
}

h1, h2, h3 {
  color: var(--primary-color);
}
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Inter', sans-serif;
  line-height: 1.6;
  color: var(--text-color);
  background-color: var(--background-color);
  background-image: linear-gradient(180deg, rgba(236, 249, 255, 0.8), rgba(255, 255, 255, 0.95));
  background-repeat: no-repeat;
}

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

/* Navigation */
nav {
  background-color: var(--secondary-color);
  padding: 1rem 0;
}

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

.nav-links {
  list-style: none;
  display: flex;
}

.nav-links li {
  margin-left: 2rem;
}

.nav-links a {
  color: var(--background-color);
  text-decoration: none;
  font-weight: bold;
  transition: color 0.3s;
}

.nav-links a.active {
  color: var(--accent-color);
  font-weight: 600;
}

/* Main Content */
main {
  min-height: calc(100vh - 200px); /* Adjust for nav and footer */
  padding: 2rem 0;
}

/* Footer */
footer {
  background-color: var(--primary-color);
  color: var(--background-color);
  padding: 1rem 0;
  text-align: center;
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 2rem;
  margin-top: 1rem;
}

.footer-links a {
  color: var(--background-color);
  text-decoration: none;
  font-size: 1.5rem;
  transition: color 0.3s;
}

.footer-links a:hover {
  color: var(--accent-color);
}

/* Hero Section */
.hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 4rem 0;
  background-color: var(--background-color);
}

.hero-content {
  flex: 1;
  padding-right: 2rem;
}

.hero-image {
  flex: 1;
  text-align: center;
}

.hero-image img {
  max-width: 100%;
  height: auto;
  border-radius: 50%;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.hero h1 {
  font-size: 2.5rem;
  margin-bottom: 0.5rem;
  color: var(--primary-color);
}

.hero-quote {
  font-style: italic;
  color: var(--secondary-color);
  margin-bottom: 1rem;
  font-size: 1.1rem;
}

.hero p {
  font-size: 1.2rem;
  line-height: 1.8;
}

/* Projects Grid */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
  align-items: stretch;
}

.project-card {
  background-color: var(--background-color);
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  height: 100%;
}

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

.project-image {
  width: 100%;
  height: 220px !important;
  object-fit: cover !important;
}

.project-content {
  padding: 1.5rem;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.project-title {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
  color: var(--primary-color);
}

.project-description {
  color: var(--text-color);
  line-height: 1.6;
}

/* Responsive Design */
@media (max-width: 768px) {
  /* Navigation adjustments */
  .nav-links li {
    margin-left: 1rem;
  }

  .nav-links a {
    font-size: 0.9rem;
  }

  /* Main content padding */
  main {
    padding: 1rem 0;
  }

  .container {
    padding: 0 15px;
  }

  /* Hero section */
  .hero {
    flex-direction: column;
    padding: 2rem 0;
  }

  .hero-content {
    padding-right: 0;
    margin-bottom: 1.5rem;
  }

  .hero h1 {
    font-size: 1.8rem;
  }

  .hero p {
    font-size: 1rem;
  }

  .hero-quote {
    font-size: 0.95rem;
  }

  /* About sections */
  .about-section h2 {
    font-size: 1.5rem;
  }

  .about-section p {
    font-size: 0.95rem;
  }

  /* Projects grid */
  .projects-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
    margin-top: 1.5rem;
  }

  .project-card {
    width: 100%;
  }

  .project-image {
    height: 200px;
  }

  .project-content {
    padding: 1rem;
  }

  .project-title {
    font-size: 1.2rem;
  }

  .project-description {
    font-size: 0.9rem;
  }

  /* Footer */
  .footer-links {
    gap: 1rem;
  }

  .footer-links a {
    font-size: 1.2rem;
  }
}

/* Extra small screens */
@media (max-width: 480px) {
  .container {
    padding: 0 10px;
  }

  .hero h1 {
    font-size: 1.5rem;
  }

  .hero p {
    font-size: 0.9rem;
  }

  .about-section h2 {
    font-size: 1.3rem;
  }

  .project-title {
    font-size: 1rem;
  }

  .project-content {
    padding: 0.75rem;
  }

  .nav-links li {
    margin-left: 0.75rem;
  }
}

/* Game Page Styles */
.game-section {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: calc(100vh - 200px);
  padding: 2rem 0;
}

#game-container {
  width: min(100%, 860px);
  margin: 0 auto;
  padding: 2rem;
  background: #111827;
  border: 1px solid rgba(59, 130, 246, 0.25);
  border-radius: 24px;
  box-shadow: 0 20px 60px rgba(15, 23, 42, 0.45);
  text-align: center;
}

#game-container h1 {
  margin-bottom: 1.5rem;
  color: #f8fafc;
  font-size: clamp(1.8rem, 2.5vw, 2.6rem);
}

#gameCanvas {
  width: 100%;
  max-width: 800px;
  height: auto;
  display: block;
  margin: 0 auto;
  border: 3px solid var(--accent-color);
  border-radius: 20px;
  background: #0f172a;
  box-shadow: 0 14px 40px rgba(15, 23, 42, 0.45);
}

.score-display {
  margin-top: 1.25rem;
  color: #e2e8f0;
  font-size: 1.15rem;
  letter-spacing: 0.03em;
  font-weight: 600;
}

#startRestartButton {
  margin-top: 1rem;
  padding: 0.95rem 1.8rem;
  border: none;
  border-radius: 999px;
  background: var(--accent-color);
  color: #ffffff;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
  box-shadow: 0 12px 25px rgba(59, 130, 246, 0.25);
}

#startRestartButton:hover,
#startRestartButton:focus {
  background: #2563eb;
  transform: translateY(-1px);
}

@media (max-width: 900px) {
  #game-container {
    padding: 1.5rem;
  }
}

@media (max-width: 600px) {
  .game-section {
    padding: 1.5rem 0;
    min-height: calc(100vh - 180px);
  }

  #gameCanvas {
    border-width: 2px;
    border-radius: 18px;
  }

  #startRestartButton {
    width: 100%;
  }
}

