/* Reset and base styles */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --primary: #f8f9fab8; /* Light gray background */
  --secondary: #ffffff; /* White for cards/sections */
  --accent: #bbaef5; /* Bright blue for accents */
  --text: #2b2d42; /* Dark blue-gray for text */
  --text-secondary: #6c757d; /* Gray for secondary text */
  --white: #ffffffe6; /* Pure white */
}

html {
  scroll-behavior: smooth;
}

body {
  background: var(--primary);
  font-family: 'Poppins', sans-serif;
  color: var(--text);
  line-height: 1.6;
}

a {
  text-decoration: none;
  color: var(--accent);
  transition: all 0.3s ease;
}

a:hover {
  color: #3a56d5;
}

img {
  width: 100%;
  display: block;
  border-radius: 8px;
  object-fit: cover;
}

/* Utility classes */
.container {
  padding: 4rem 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

.highlighted {
  color: var(--accent);
}

.btn {
  background-color: var(--accent);
  color: var(--white);
  padding: 0.8rem 2rem;
  border-radius: 4px;
  font-weight: 500;
  transition: all 0.3s ease;
  border: 1px solid var(--accent);
  display: inline-block;
  margin-top: 1rem;
  font-size: 1rem;
}

.btn:hover {
  background-color: #3a56d5;
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(67, 97, 238, 0.3);
}

.btn-secondary {
  background-color: var(--accent);
  color: var(--white);
}

/* Header styles */
.nav {
  background-color: var(--secondary);
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem 2rem;
  position: fixed;
  width: 100%;
  z-index: 1000;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.logo {
  font-weight: 700;
  font-size: 1.8rem;
  color: var(--accent);
}

.nav-links {
  position: absolute;
  display: flex;
  flex-direction: column;
  top: 70px;
  background-color: var(--secondary);
  width: 100%;
  left: -200%;
  padding: 1.5rem;
  transition: left 0.5s ease;
  border-radius: 0 0 8px 8px;
  box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.nav-active {
  left: 0;
}

.nav-item {
  font-size: 1rem;
  color: var(--text);
  text-align: center;
  margin-bottom: 1.2rem;
  text-transform: capitalize;
  position: relative;
}

.nav-item::after {
  content: "";
  display: block;
  height: 2px;
  background-color: var(--accent);
  margin-top: 0.4rem;
  width: 0;
  transition: width 0.3s ease;
  position: absolute;
  bottom: -5px;
  left: 50%;
  transform: translateX(-50%);
}

.nav-item:hover::after {
  width: 30%;
}

.nav-item-active {
  color: var(--accent);
}

.toggler .line {
  width: 25px;
  height: 3px;
  background-color: var(--accent);
  margin: 5px;
  transition: all 0.3s ease;
}

/* Hero section - Updated Circle */
.hero {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding-top: 8rem;
  min-height: 100vh;
}

.hero-img {
  width: 220px;
  height: 220px;
  border-radius: 50%;
  overflow: hidden;
  border: 3px solid var(--accent);
  box-shadow: 0 0 20px rgba(67, 97, 238, 0.2);
  margin: 0 auto 2rem;
  order: -1; /* Move image above text */
}

.hero-info {
  padding-top: 1rem;
}

.title {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  font-weight: 700;
  color: var(--text);
}

.hero-description {
  color: var(--accent);
  font-size: 1.2rem;
  margin-bottom: 1.5rem;
}

.social-icons {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  margin: 2rem 0;
}

.social-icons a {
  color: var(--text);
  font-size: 1.5rem;
}

.social-icons a:hover {
  color: var(--accent);
  transform: translateY(-3px);
}

/* About section */
.about {
  background-color: var(--secondary);
  border-radius: 8px;
  box-shadow: 0 4px 6px rgba(0,0,0,0.05);
  padding: 3rem 2rem;
}

.about-img {
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  margin-bottom: 2rem;
}

.secondary-title {
  font-size: 2rem;
  margin-bottom: 1.5rem;
  font-weight: 600;
  color: var(--text);
}

.description {
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
}
/*
.skills {
  margin: 2rem 0;
}

.skills h3 {
  margin-bottom: 1rem;
  color: var(--text);
}

.skills-container {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
}

.skill-tag {
  background-color: rgba(67, 97, 238, 0.1);
  color: var(--accent);
  padding: 0.4rem 1rem;
  border-radius: 4px;
  font-size: 0.9rem;
}*/

/* Projects section - Tighter spacing */
.projects {
  padding: 3rem 0 !important;
}

.projects-header {
  margin-bottom: 2rem;
  text-align: center;
}

.projects-tab {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 1.5rem;
  gap: 0.8rem;
}

.projects-tab-btn {
  background-color: var(--secondary);
  border: 1px solid var(--accent);
  color: var(--accent);
  padding: 0.5rem 1.5rem;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.projects-tab-btn-active,
.projects-tab-btn:hover {
  background-color: var(--accent);
  color: var(--white);
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.5rem;
  margin-top: 1.5rem;
}

.project-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
  padding: 1.5rem;
  transform: translateY(100%);
  transition: transform 0.3s ease;
  color: var(--white);
}

.projects-item {
  position: relative;
  overflow: hidden;
  border-radius: 8px;
  height: 280px;
  box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.projects-item:hover .project-overlay {
  transform: translateY(0);
}

.project-links {
  display: flex;
  gap: 1rem;
  margin-top: 1rem;
}

.project-link {
  font-size: 0.9rem;
  color: var(--white);
  border: 1px solid var(--white);
  padding: 0.3rem 0.8rem;
  border-radius: 4px;
  transition: all 0.3s ease;
}

.project-link:hover {
  background-color: var(--white);
  color: var(--accent);
}

/* Contact section */
.contact {
  background-color: var(--secondary);
  border-radius: 8px;
  padding: 3rem 2rem;
  box-shadow: 0 4px 6px rgba(0,0,0,0.05);
}

.contact-info h3 {
  color: var(--text);
  margin-bottom: 0.3rem;
}

.contact-info p {
  color: var(--text-secondary);
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  margin-bottom: 1.5rem;
  font-family: 'Poppins', sans-serif;
  background-color: var(--primary);
  border: 1px solid #dee2e6;
  padding: 0.8rem 1rem;
  border-radius: 4px;
  color: var(--text);
}

.contact-form textarea {
  min-height: 150px;
}

.submit-btn {
  width: fit-content;
  cursor: pointer;
}

/* Footer */
.footer {
  text-align: center;
  padding: 2rem;
  color: var(--text-secondary);
  font-size: 0.9rem;
}

/* Form alerts */
.form-alert {
  padding: 1rem;
  margin-bottom: 1.5rem;
  border-radius: 4px;
  animation: fadeIn 0.3s ease;
  transition: opacity 0.3s ease;
}

.form-alert-success {
  background-color: rgba(46, 213, 115, 0.2);
  border: 1px solid #2ed573;
  color: #2ed573;
}

.form-alert-error {
  background-color: rgba(255, 71, 87, 0.2);
  border: 1px solid #ff4757;
  color: #ff4757;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(-10px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Responsive design */
@media screen and (min-width: 768px) {
  .container {
    padding: 6rem 4rem;
  }

  .hero {
    flex-direction: row;
    text-align: left;
    gap: 4rem;
    align-items: center;
  }

  .hero-img {
    width: 260px;
    height: 260px;
    margin: 0;
    order: 1;
    flex: 0 0 auto;
  }

  .hero-info {
    flex: 1;
    padding-top: 0;
    text-align: left;
  }

  .social-icons {
    justify-content: flex-start;
  }

  .about {
    display: flex;
    gap: 4rem;
    align-items: center;
    padding: 4rem;
  }

  .about-img {
    flex: 1;
    margin-bottom: 0;
  }

  .about-info {
    flex: 1;
  }

  .projects {
    padding: 4rem 0 !important;
  }

  .contact {
    display: flex;
    gap: 4rem;
    padding: 4rem;
  }

  .contact-info {
    flex: 1;
  }

  .contact-form {
    flex: 1;
  }

  .nav-links {
    position: static;
    flex-direction: row;
    width: auto;
    background-color: transparent;
    padding: 0;
    box-shadow: none;
  }

  .nav-item {
    margin: 0 1rem;
  }

  .toggler {
    display: none;
  }
}

@media screen and (min-width: 1024px) {
  .container {
    padding: 8rem 6rem;
  }

  .title {
    font-size: 3.5rem;
  }

  .hero-img {
    width: 280px;
    height: 280px;
  }

  .secondary-title {
    font-size: 2.5rem;
  }
}