*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

/*General styles*/
body {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  background: linear-gradient(to bottom right, #0f2027, #203a43, #2c5364);
  color: #fff;
}

html, body {
  margin: 0;
  padding: 0;
  overflow-x: hidden;
  width: 100%;
}

.container {
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 1200px;
  width: 100%;
  margin: 0 auto;
  padding-left: 1rem;
  padding-right: 1rem;
  box-sizing: border-box;
}

section {
  padding: 4rem 0;
  width: 100%;
}

/* Section Headings */
h2 {
  text-align: center;
  color: #fff;
  margin-bottom: 2rem;
}

/*About section*/

.about-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 2rem;
  border-radius: 8px;
  gap: 2rem;
  color: #fff;
  background: transparent;
}


@media (min-width: 768px) {
  .about-container {
    flex-direction: row; /* Two columns on tablets and up */
    align-items: flex-start;
  }

  .about-text,
  .about-image {
    flex: 1;
  }

  .about-text {
    margin-top: 0; /* remove top margin when side by side */
  }

  .about-image {
    max-width: 300px;
    height: auto;
  }
}

.about-image {
  width: 300px;
  height: 300px;
  border-radius: 8px;
  flex: 1;
}

.about-text {
  max-width: 800px;
  margin: 0 auto;
  background: transparent;
  padding: 1.5rem;
  border-radius: 10px;
  color: #f0f0f0;
}

/*Tech stack section*/
.tech-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 2rem;
  list-style: none;
  padding: 0;
  margin: 2rem 0;
  width: 100%;
  text-align: center;
}

.tech-grid li {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.tech-grid img {
  width: 60px;
  height: auto;
  object-fit: contain;
  margin-bottom: 0.5rem;
}

.tech-grid span {
  margin-top: 0.5rem;
  font-size: 1rem;
  color: #f0f0f0;
}

.tech-grid span:hover {
  color: #007bff; /* Change color on hover */
  cursor: pointer;
}

/*Project section*/
.project-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  list-style: none;
  padding: 0;
  margin: 2rem 0;
  width: 100%;
  text-align: center;
}

.project-grid li {
  list-style: none;
  background-color: rgba(255, 255, 255, 0.15);
  padding: 1.5rem;
  border-radius: 10px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
  transition: transform 0.2s;
}

.project-grid li:hover {
  transform: translateY(-4px);
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.2);
}

.project-grid h3 {
  color: #fff;
}

.project-grid p {
  color: #ddd;
}

.project-grid a {
  display: inline-block;
  margin-top: 1rem;
  color: #fff;
  text-decoration: underline;
}

.tags {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem;
  margin: 0.5rem 0 1rem;
}

.tag {
  background-color: #f0f0f0;
  color: #333;
  padding: 0.3rem 0.75rem;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 500;
  white-space: nowrap;
}

.project-grid img {
  width: 100%;
  height: auto;
  max-height: 200px;
  object-fit: cover;
  border-radius: 8px;
}

.project-grid span {
  margin-top: 10px;
  font-size: 1rem;
  color: #333;
}
.project-grid span:hover {
  color: #007bff; /* Change color on hover */
  cursor: pointer;
}

/*Education section*/
.download-button {
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #6c7884;
  color: white;
  padding: 0.5rem 1rem;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  text-decoration: none;
  margin-left: 20px;
}

.edu-list ul {
  list-style: none;
  padding: 0;
}

.edu-list li {
  list-style: none;
  margin-bottom: 1.5rem;
  background-color: rgba(255, 255, 255, 0.12);
  padding: 1.5rem;
  border-radius: 10px;
  color: #eee;
}

/* Hide radio buttons */
input[type="radio"] {
  display: none;
}

/* Tab labels */
.tab-labels label {
  padding: 0.5rem 1rem;
  background-color: rgba(255, 255, 255, 0.1); /* semi-transparent white */
  color: #fff;
  cursor: pointer;
  margin: 0 5px;
  border-radius: 5px 5px 0 0;
  font-weight: bold;
  transition: background-color 0.3s;
}

.tab-labels label:hover {
  background-color: rgba(255, 255, 255, 0.2);
}

input#about-tab:checked ~ .tab-labels label[for="about-tab"],
input#education-tab:checked ~ .tab-labels label[for="education-tab"] {
  background-color: rgba(255, 255, 255, 0.3);
  border-bottom: 2px solid transparent;
}

/* Tab content */
.tab-content {
  background-color: rgba(255, 255, 255, 0.05); /* Subtle semi-transparent */
  border-radius: 0 0 8px 8px;
  padding: 2rem;
  color: #fff;
}

.tab-panel {
  display: none;
}

input#about-tab:checked ~ .tab-content .about-panel,
input#education-tab:checked ~ .tab-content .education-panel {
  display: flex;
  flex-direction: row;
  gap: 2rem;
  flex-wrap: wrap;
}

/*Contact Section*/
.contact-section {
  margin-top: 2rem;
  padding: 2rem 1rem;
}

.contact-cards {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  margin-top: 1rem;
}

.contact-card {
  background-color: rgba(255, 255, 255, 0.12);
  padding: 2rem;
  border-radius: 10px;
  max-width: 600px;
  margin: 0 auto;
  text-align: center;
}

.contact-card a {
  color: #fff;
  margin: 0 1rem;
  display: inline-block;
}

.contact-card a:hover {
  text-decoration: underline;
}

form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

input,
textarea {
  padding: 0.8rem;
  border-radius: 5px;
  border: none;
  width: 100%;
  max-width: 100%;
}

button {
  padding: 0.8rem;
  background-color: #2c5364;
  color: #fff;
  border: none;
  cursor: pointer;
  border-radius: 5px;
}

button:hover {
  background-color: #203a43;
}

.note {
  font-size: 0.85rem;
  color: #888;
  margin-top: 0.5rem;
}

.social-icons {
  width: 30px;
  height: 30px;
  display: flex;
  gap: 10px;
}

/* Responsive layout for wider screens */
@media (min-width: 768px) {
  .contact-cards {
    flex-direction: row;
  }
}

footer {
  background-color: rgba(0, 0, 0, 0.6);
  text-align: center;
  padding: 1.5rem 1rem;
  margin-top: 3rem;
  color: #ccc;       
}

/* Navbar styles */
nav {
  background-color: rgba(0, 0, 0, 0.6);
  width: 100%;
  padding: 1rem 0;
  position: sticky;
  top: 0;
  z-index: 1000;
}

nav ul {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  list-style-type: none;
  padding: 0;
  margin: 0;
}

nav li {
  margin: 0 1rem;
}

nav a {
  text-decoration: none;
  color: white;
  font-weight: bold;
}

nav a:hover {
  color: #00bcd4;
}

/* Header */
header {
  text-align: center;
  padding: 4rem 0 2rem;
  background-color: rgba(255, 255, 255, 0.1); /* subtle contrast */
  margin-bottom: 0;
}

header h1 {
  font-size: 3rem;
  margin-bottom: 0.5rem;
  color: #fff;
}

header p {
  font-size: 1.2rem;
  color: #ddd;
}

/* Responsive hamburger menu simulation - optional (no JS) */
@media (max-width: 600px) {
  .nav-links {
    flex-direction: column;
    align-items: center;
    gap: 1rem;
  }
}

/* Hero Header */
.hero-header {
  text-align: center;
  margin: 1rem 0; /* Adjust as needed */
  padding: 1rem 0;
  color: #fff;
}

header + .hero-header {
  margin-top: 0; /* Remove extra space after navbar */
}




