/* General Styles & Variables */
:root {
  --bg-dark-primary: #111827; /* gray-900 */
  --bg-dark-secondary: #1f2937; /* gray-800 */
  --text-light: #e5e7eb; /* gray-200 */
  --text-medium: #9ca3af; /* gray-400 */
  --accent-color: #06b6d4; /* cyan-500 */
  --accent-hover: #0891b2; /* cyan-600 */
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Inter", sans-serif;
  background-color: var(--bg-dark-primary);
  color: var(--text-light);
  line-height: 1.6;
}

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

h1,
h2,
h3 {
  margin: 0;
  font-weight: 700;
}

a {
  color: var(--accent-color);
  text-decoration: none;
  transition: color 0.3s ease;
}

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

section {
  padding: 5rem 0;
}

/* Header & Navigation */
.main-header {
  background-color: rgba(17, 24, 39, 0.8);
  backdrop-filter: blur(4px);
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  border-bottom: 1px solid var(--bg-dark-secondary);
}

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

.logo {
  font-size: 1.5rem;
  font-weight: bold;
  color: white;
}

.desktop-nav {
  display: none; /* Hidden on mobile */
}

.desktop-nav a {
  margin-left: 2rem;
  color: var(--text-light);
}

/* Mobile Menu */
.mobile-menu {
  position: relative;
}
.mobile-menu-button {
  background: none;
  border: none;
  color: white;
  cursor: pointer;
}
.mobile-menu-dropdown {
  display: none;
  position: absolute;
  top: 100%;
  right: 0;
  background-color: var(--bg-dark-secondary);
  border-radius: 0.5rem;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  width: 200px;
  padding: 0.5rem 0;
}
.mobile-menu:focus-within .mobile-menu-dropdown {
  display: block;
}
.mobile-menu-dropdown a {
  display: block;
  padding: 0.75rem 1.5rem;
  color: var(--text-light);
}
.mobile-menu-dropdown a:hover {
  background-color: #374151; /* gray-700 */
}

/* Hero Section */
#home {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.hero-content .profile-pic {
  width: 150px;
  height: 150px;
  border-radius: 50%;
  border: 4px solid var(--accent-color);
  margin: 0 auto 1.5rem;
  object-fit: cover;
}

.hero-content h1 {
  font-size: 2.5rem;
  color: white;
  margin-bottom: 0.75rem;
}

.hero-content .subtitle {
  font-size: 1.25rem;
  color: var(--accent-color);
  margin-bottom: 2rem;
}

.hero-content .cta-button {
  background-color: var(--accent-color);
  color: white;
  padding: 0.75rem 2rem;
  border-radius: 9999px;
  font-weight: bold;
  transition: background-color 0.3s ease, transform 0.3s ease;
}
.hero-content .cta-button:hover {
  background-color: var(--accent-hover);
  transform: scale(1.05);
}

/* Shared Section Styles */
.section-title {
  text-align: center;
  font-size: 2rem;
  margin-bottom: 3rem;
  color: white;
}
#about,
#projects,
#contact {
  background-color: var(--bg-dark-secondary);
}

/* About Section */
.about-content {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
  color: var(--text-light);
  font-size: 1.1rem;
}

/* Skills Section */
.skills-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2rem;
}
.skill-item {
  background-color: var(--bg-dark-secondary);
  border-radius: 0.5rem;
  padding: 1.5rem;
  text-align: center;
  width: 150px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}
.skill-item img {
  width: 64px;
  height: 64px;
  margin: 0 auto 1rem;
}

/* Projects Section */
.projects-grid {
  display: grid;
  gap: 2rem;
}
.project-card {
  background-color: var(--bg-dark-primary);
  border-radius: 0.5rem;
  overflow: hidden;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
}
.project-card:hover {
  transform: translateY(-5px);
}
.project-card img {
  width: 100%;
  height: 220px;
  object-fit: cover;
}
.project-card-content {
  padding: 1.5rem;
}
.project-card-content h3 {
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
}
.project-card-content p {
  color: var(--text-medium);
  margin-bottom: 1rem;
}

/* Education & Interests */
.education-interests-grid {
  display: grid;
  gap: 4rem;
  align-items: start;
}
.education-box,
.interests-box {
  background-color: var(--bg-dark-secondary);
  padding: 1.5rem;
  border-radius: 0.5rem;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}
.education-box h3,
.interests-box h3 {
  font-size: 1.5rem;
  margin-bottom: 2rem;
  color: white;
}
.education-box .university {
  font-size: 1.25rem;
  font-weight: bold;
  color: var(--accent-color);
}
.education-box .degree {
  color: var(--text-light);
  margin-bottom: 0.5rem;
}
.education-box .cv-button {
  display: inline-block;
  margin-top: 1.5rem;
  background-color: var(--accent-color);
  color: white;
  padding: 0.5rem 1.5rem;
  border-radius: 9999px;
  font-weight: bold;
}
.interests-list {
  list-style: none;
  padding: 0;
}
.interests-list li {
  display: flex;
  align-items: start;
  margin-bottom: 1rem;
}
.interests-list .arrow {
  color: var(--accent-color);
  font-weight: bold;
  margin-right: 0.75rem;
}

/* Contact Form */
.contact-form {
  max-width: 600px;
  margin: 0 auto;
}
.form-group {
  margin-bottom: 1.5rem;
}
.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  color: var(--text-light);
}
.form-group input,
.form-group textarea {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid #4b5563; /* gray-600 */
  background-color: #374151; /* gray-700 */
  color: white;
  border-radius: 0.375rem;
  box-sizing: border-box;
}
.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--accent-color);
  box-shadow: 0 0 0 2px var(--accent-color);
}
.submit-button {
  width: 100%;
  padding: 0.75rem;
  border: none;
  background-color: var(--accent-color);
  color: white;
  font-size: 1.1rem;
  font-weight: bold;
  border-radius: 0.375rem;
  cursor: pointer;
  transition: background-color 0.3s ease;
}
.submit-button:hover {
  background-color: var(--accent-hover);
}

/* Footer */
.main-footer {
  text-align: center;
  padding: 2rem 0;
  color: var(--text-medium);
}
.footer-links {
  margin-bottom: 1rem;
}
.footer-links a {
  margin: 0 1rem;
  color: var(--text-medium);
}
.footer-links a:hover {
  color: white;
}

/* Responsive Design */
@media (min-width: 768px) {
  .desktop-nav {
    display: flex;
  }
  .mobile-menu {
    display: none;
  }
  .hero-content h1 {
    font-size: 3.5rem;
  }
  .hero-content .subtitle {
    font-size: 1.5rem;
  }
  .projects-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .education-interests-grid {
    grid-template-columns: 1fr 1fr;
  }
}
@media (min-width: 1024px) {
  .projects-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}
