/* Define color variables at the root level */
:root {
  --bg-primary: #0a0a0a;
  --text-primary: #ffffff;
  --accent-color: #1e293b;
}

/* Reset all elements */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* Basic page styling */
body {
  font-family: ui-sans-serif, system-ui, sans-serif, "Apple Color Emoji",
    "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
  background-color: var(--bg-primary);
  color: var(--text-primary);
}

body::-webkit-scrollbar {
  display: none; /* Chrome, Safari */
}

/* Nav bar styling */

/* Navigation styling */
.navbar {
  width: 100%;
  padding: 25px 0;
}

/* Center the navigation items */
.navbar ul {
  display: flex;
  flex-direction: row;
  justify-content: center; /* Center the items horizontally */
  align-items: center; /* Center the items vertically */
  gap: 15px; /* Space between nav items */
}

.navbar ul li {
  list-style: none;
}

.navbar ul li a {
  color: var(--text-primary);
  padding: 20px; /* Padding for clickable area */
  border-radius: 5px; /* Rounded corners */
  text-decoration: none;
  font-size: 20px;
}

/* Contact button styling */
.contact-btn {
  background-color: var(--bg-primary);
  border: 1px solid var(--accent-color);
  border-radius: 5px;
  margin-left: 10px; /* Space between nav items and button */
}

.contact-btn a {
  color: var(--text-primary);
  padding: 20px 30px; /* More padding for button appearance */
  text-decoration: none;
  font-size: 20px;
  display: inline-block;
}

/* Optional hover effect  -- add later using js*/
.contact-btn:hover {
  background-color: var(--accent-color);
  transition: background-color 0.3s;
}

/* Hero section  */
.hero-section {
  margin-top: 200px;
  padding-left: 100px;
  padding-right: 100px;
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  gap: 350px;
}

.basic-info h2 {
  font-size: 20px;
  margin-bottom: 20px;
}

.basic-info h1 {
  font-size: 30px;
  margin-bottom: 20px;
}

.projects-btn {
  color: var(--text-primary);
  margin-top: 20px;
  padding: 15px 30px;
  border: 1px solid var(--accent-color);
  border-radius: 5px;
}

.projects-btn a {
  text-decoration: none;
  font-size: 20px;
  color: var(--bg-primary);
}

.profile-image img {
  width: 250px; /* Set your preferred width */
  height: 250px;
  border-radius: 50%;
  object-fit: cover; /* Maintains aspect ratio but fills the container*/
}

/* About section */
.about {
  margin-top: 200px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

/* New scrollable container for about content */
.about-content {
  height: 500px; /* Fixed height for scrolling */
  width: 50%; /* Width relative to container */
  overflow-y: auto; /* Enable vertical scrolling */
  padding: 30px;
  border: none;
}

/* Styling the scrollbar */
.about-content::-webkit-scrollbar {
  display: none; /* Hide scrollbar for Chrome, Safari and Opera */
}

/* For Firefox */
.about-content {
  scrollbar-width: none;
}

/* For IE and Edge */
.about-content {
  -ms-overflow-style: none;
}

.about-me,
.version-control,
.ai-driven {
  display: flex;
  flex-direction: row;
  justify-content: center;
  gap: 100px;
  margin-bottom: 50px;
}

/* Common text styling */
.content-text h1 {
  font-size: 20px;
  margin-bottom: 30px;
}

.content-text p {
  font-size: 17px;
  margin-bottom: 100px;
  max-width: 400px;
  line-height: 1.5;
}

/* Icon styling for all sections */
.about-icon,
.version-icon,
.ai-icon {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-right: 20px;
  margin-left: 20px;
  margin-bottom: 30px;
}

.about-icon i,
.version-icon i,
.ai-icon i {
  font-size: 70px;
  color: var(--accent-color);
}

/* Projects Section */
.projects {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 20px;
  margin-top: 50px;
  margin-bottom: 100px;
}

.projects h1 {
  text-align: center;
  font-size: 50px;
  margin-top: 100px;
  margin-bottom: 50px;
}

.projects-container {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  justify-content: center;
  gap: 30px;
  width: 100%;
  max-width: 1200px;
}

.project-card {
  display: flex;
  flex-direction: column;
  margin-bottom: 50px;
  border: solid 1px var(--accent-color);
  border-radius: 10px;
  width: 100%;
  max-width: 550px;
  background-color: rgba(30, 41, 59, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  overflow: hidden;
}

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

.project-card .container {
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.project-card h2 {
  font-size: 24px;
  margin-bottom: 10px;
}

.project-card p {
  color: #e2e8f0;
  line-height: 1.5;
  margin-bottom: 15px;
}

.project-card .image {
  width: 100%;
  height: 250px;
  overflow: hidden;
  margin-bottom: 15px;
  border-radius: 7px;
}

.project-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 7px;
  transition: transform 0.3s ease;
}

.project-card img:hover {
  transform: scale(1.05);
}
.container {
  overflow: hidden;
  border-radius: same-as-image; /* Match your image's border radius */
}

img {
  transition: transform 0.3s ease;
  /* Keep your existing border-radius here */
}

img:hover {
  transform: scale(1.05);
  /* The border-radius should now be preserved */
}
.card-buttons {
  display: flex;
  justify-content: space-between;
  margin-top: 10px;
}

.card-btn {
  padding: 10px 20px;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  transition: background-color 0.3s;
}

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

.github-btn {
  background-color: transparent;
  width: 20px;
}

.card-btn a {
  text-decoration: none;
  color: var(--text-primary);
  font-weight: 500;
  font-size: 14px;
}

/* Teck Stack section */
.stack h1 {
  text-align: center;
  font-size: 50px;
  margin-bottom: 50px;
}
.stack-container {
  display: flex;
  justify-content: center;
  gap: 20px;
}

.stack-card {
  width: 450px;
  height: 300px;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.stack-icon i {
  font-size: 50px; /* Increase this value to make icons bigger */
  width: auto;
  margin: 10px; /* Adds space between icons */
}

/* Contact Section */
.contact {
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 750px;
  margin: 100px auto;
  padding: 40px;
  border: 1px solid var(--accent-color);
  border-radius: 10px;
  box-shadow: 0 0 8px 4px rgba(240, 236, 236, 0.1);
}

.contact h1 {
  text-align: center;
  font-size: 50px;
  margin-bottom: 5px;
}
.contact p {
  text-align: center;
  font-size: 18px;
  margin-bottom: 25px;
}

.contact p a {
  text-decoration: none;
  color: #6dacf5;
  transition: opacity 0.3s ease;
}

.contact p a:hover {
  opacity: 0.8;
}
.contact-container {
  width: 100%;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
  width: 100%;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-group input,
.form-group textarea {
  padding: 12px 15px;
  background-color: #18181b;
  border: 1px solid #2b2a2a;
  border-radius: 5px;
  color: var(--text-primary);
  font-size: 16px;
  transition: border-color 0.3s, box-shadow 0.3s;
  width: 90%;
  margin-left: auto;
  margin-right: auto;
  display: block;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--accent-color);
  box-shadow: 0 0 0 2px rgba(30, 41, 59, 0.3);
}

.form-group textarea {
  resize: vertical;
  min-height: 120px;
}

.submit-btn {
  margin-top: 10px;
  padding: 15px 25px;
  background-color: var(--bg-primary);
  color: var(--text-primary);
  border: 1px solid var(--accent-color);
  border-radius: 5px;
  width: 170px;
  font-size: 16px;
  font-weight: 500;
  cursor: pointer;
  transition: transform 0.2s, background-color 0.3s;
  margin-left: auto;
  margin-right: auto;
}

.submit-btn:hover {
  transform: translateY(-2px);
  background-color: #2d3a4f; /* Slightly lighter than accent color */
}

/* Add Font Awesome icon to submit button if needed */
.submit-btn i {
  margin-left: 8px;
}

/* Footer Section */
.footer-icons {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-bottom: 20px;
}

.footer-icons i {
  font-size: 25px;
  color: #6dacf5;
}

.footer-text p {
  text-align: center;
  font-size: 15px;
}

.footer-copyright p {
  text-align: center;
  color: #6dacf5;
  font-size: 13px;
  margin: 20px;
}

/* Responsiveness */
/* Nav bar*/
@media (max-width: 600px) {
  .navbar ul {
    flex-direction: column; /* Stack items vertically */
    align-items: center; /* Center items */
  }
  .navbar ul li {
    margin-bottom: 5px; /* Space between items */
  }
  .navbar ul li a {
    padding: 10px; /* Adjust padding for smaller screens */
    font-size: 14px; /* Adjust font size for smaller screens */
  }
  .contact-btn a {
    padding: 10px 20px; /* Adjust padding for smaller screens */
    font-size: 14px; /* Adjust font size for smaller screens */
  }
}

/* Hero section */
@media (max-width: 600px) {
  .hero-section {
    flex-direction: column-reverse;
    align-items: center;
    padding: 0px;
    margin-top: 50px;
    gap: 30px;
  }
  .basic-info {
    text-align: center;
    font-size: 16px;
    margin-top: 20px;
  }
  .profile-image {
    margin-bottom: 0px;
  }
  .projects-btn {
    margin-top: 5px;
    margin-bottom: 10px;
    padding: 10px 20px;
  }
  .projects-btn a {
    font-size: 14px;
  }
}

/* About section */
@media (max-width: 600px) {
  .about-me,
  .version-control,
  .ai-driven {
    flex-direction: column-reverse;
    text-align: center;
    padding: 0 20px;
    gap: 30px;
  }

  .content-text {
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .content-text p {
    margin-bottom: 40px;
    width: 100%;
    max-width: 300px;
  }

  .about-icon,
  .version-icon,
  .ai-icon {
    margin-bottom: 15px;
  }
}

/* Responsive styles for project cards */
@media (max-width: 600px) {
  .project-card {
    margin-left: 0;
    width: 90%;
  }

  .project-card .image {
    height: 180px;
  }

  .card-buttons {
    flex-direction: column;
    align-items: stretch;
  }
}

/* Responsive styles for contact form */
@media (max-width: 768px) {
  .contact {
    width: 90%;
    padding: 30px 20px;
    margin: 60px auto;
  }

  .contact h1 {
    font-size: 36px;
    margin-bottom: 20px;
  }

  .submit-btn {
    width: 100%;
    padding: 12px 20px;
  }
}
