/* Reset and Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Inter", sans-serif;
  line-height: 1.7;
  color: #2c3e50;
  background-color: #ffffff;
  font-weight: 400;
}

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

/* Navigation */
.navbar {
  position: fixed;
  top: 0;
  width: 100%;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  z-index: 1000;
  transition: all 0.3s ease;
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 1rem 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.nav-logo a {
  font-size: 1.6rem;
  font-weight: 600;
  text-decoration: none;
  color: #2c3e50;
  letter-spacing: -0.5px;
}

.nav-menu {
  display: flex;
  gap: 2.5rem;
}

.nav-link {
  text-decoration: none;
  color: #2c3e50;
  font-weight: 400;
  font-size: 0.95rem;
  transition: all 0.3s ease;
  position: relative;
  letter-spacing: 0.5px;
}

.nav-link:hover {
  color: #3498db;
}

.nav-link::after {
  content: "";
  position: absolute;
  width: 0;
  height: 1px;
  bottom: -5px;
  left: 0;
  background: #3498db;
  transition: width 0.3s ease;
}

.nav-link:hover::after {
  width: 100%;
}

.nav-toggle-checkbox {
  display: none;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  cursor: pointer;
}

.bar {
  width: 25px;
  height: 3px;
  background: #333;
  margin: 3px 0;
  transition: 0.3s;
}

/* Hero Section */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  background: #ffffff;
  padding-top: 80px;
}

.hero-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6rem;
  align-items: center;
}

.hero-title {
  font-size: 4rem;
  font-weight: 300;
  margin-bottom: 1.5rem;
  line-height: 1.1;
  color: #2c3e50;
  letter-spacing: -1px;
}

.gradient-text {
  color: #3498db;
  font-weight: 400;
}

.hero-subtitle {
  font-size: 1.3rem;
  color: #7f8c8d;
  margin-bottom: 2rem;
  font-weight: 300;
  letter-spacing: 0.5px;
}

.hero-description {
  font-size: 1rem;
  color: #34495e;
  margin-bottom: 3rem;
  line-height: 1.8;
  font-weight: 400;
}

.hero-buttons {
  display: flex;
  gap: 1rem;
}

.btn {
  padding: 15px 35px;
  border: none;
  border-radius: 3px;
  font-size: 0.9rem;
  font-weight: 500;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.btn-primary {
  background: #3498db;
  color: white;
}

.btn-primary:hover {
  background: #2980b9;
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(52, 152, 219, 0.3);
}

.btn-secondary {
  background: transparent;
  color: #2c3e50;
  border: 1px solid #bdc3c7;
}

.btn-secondary:hover {
  background: #2c3e50;
  color: white;
  transform: translateY(-2px);
}

.hero-image {
  display: flex;
  justify-content: center;
  align-items: center;
}

.profile-img {
  width: 280px;
  height: 280px;
  border-radius: 50%;
  object-fit: cover;
  object-position: center 20%;
  border: 8px solid white;
  box-shadow: 0 0 0 4px #3498db, 0 20px 40px rgba(52, 152, 219, 0.3);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  filter: brightness(1.2) contrast(1.15) saturate(1.1);
  background: linear-gradient(135deg, #f8f9ff 0%, #e6f2ff 100%);
  position: relative;
  z-index: 2;
}

.profile-img:hover {
  transform: scale(1.08);
  box-shadow: 0 0 0 4px #3498db, 0 25px 50px rgba(52, 152, 219, 0.4);
  filter: brightness(1.25) contrast(1.2) saturate(1.15);
}

.hero-image {
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
}

.hero-image::before {
  content: "";
  position: absolute;
  width: 320px;
  height: 320px;
  background: radial-gradient(
    circle,
    transparent 45%,
    rgba(248, 249, 255, 0.8) 60%
  );
  border-radius: 50%;
  z-index: 1;
  pointer-events: none;
}

.profile-placeholder {
  width: 280px;
  height: 280px;
  border-radius: 50%;
  background-image: url("img/profile.jpg");
  background-size: 120%;
  background-position: center 20%;
  background-repeat: no-repeat;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 8px solid white;
  box-shadow: 0 0 0 4px #3498db, 0 20px 40px rgba(52, 152, 219, 0.3);
  filter: brightness(1.2) contrast(1.15) saturate(1.1);
  background-color: #f8f9ff;
}

.profile-placeholder i {
  display: none;
}

/* Section Headers */
.section-header {
  text-align: center;
  margin-bottom: 5rem;
}

.section-header h2 {
  font-size: 3rem;
  font-weight: 300;
  margin-bottom: 1rem;
  color: #2c3e50;
  letter-spacing: -1px;
}

.section-header p {
  font-size: 1.1rem;
  color: #7f8c8d;
  font-weight: 300;
}

/* About Section */
.about {
  padding: 120px 0;
  background: #f8f9fa;
}

.about-content {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 5rem;
  align-items: center;
}

.about-text p {
  font-size: 1.1rem;
  margin-bottom: 1.8rem;
  color: #34495e;
  line-height: 1.8;
  font-weight: 400;
}

.about-stats {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.stat-item {
  text-align: center;
  padding: 2.5rem;
  background: white;
  border-radius: 5px;
  transition: transform 0.3s ease;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
}

.stat-item:hover {
  transform: translateY(-5px);
}

.stat-item h3 {
  font-size: 2.5rem;
  font-weight: 300;
  color: #3498db;
  margin-bottom: 0.5rem;
}

.stat-item p {
  color: #7f8c8d;
  font-weight: 400;
  font-size: 0.95rem;
}

/* Education Section */
.education {
  padding: 120px 0;
  background: #ffffff;
}

.education-content {
  max-width: 900px;
  margin: 0 auto;
}

.education-item {
  display: flex;
  gap: 2.5rem;
  margin-bottom: 3rem;
  background: white;
  padding: 3rem;
  border-radius: 5px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease;
}

.education-item:hover {
  transform: translateY(-5px);
}

.education-icon {
  width: 70px;
  height: 70px;
  background: #3498db;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.8rem;
  flex-shrink: 0;
}

.education-details h3 {
  font-size: 1.4rem;
  font-weight: 500;
  margin-bottom: 0.5rem;
  color: #2c3e50;
}

.education-details h4 {
  font-size: 1.1rem;
  color: #3498db;
  margin-bottom: 1.5rem;
  font-weight: 400;
}

.education-details p {
  color: #34495e;
  line-height: 1.8;
  font-weight: 400;
}

.cv-download {
  text-align: center;
  margin-top: 3rem;
}

/* Programming Languages Section */
.languages {
  padding: 120px 0;
  background: #f8f9fa;
}

.languages-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
}

.language-item {
  text-align: center;
  padding: 2rem;
  background: white;
  border-radius: 10px;
  transition: transform 0.3s ease;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.language-item:hover {
  transform: translateY(-5px);
}

.language-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
  color: #3498db;
}

.language-item h3 {
  font-size: 1.3rem;
  font-weight: 600;
  margin-bottom: 1rem;
  color: #2c3e50;
}

.language-item p {
  color: #7f8c8d;
  line-height: 1.6;
}

/* Interests Section */
.interests {
  padding: 120px 0;
  background: #ffffff;
}

.interests-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  max-width: 1000px;
  margin: 0 auto;
}

.interest-item {
  text-align: center;
  padding: 2rem;
  background: #f8f9fa;
  border-radius: 10px;
  transition: transform 0.3s ease;
}

.interest-item:hover {
  transform: translateY(-5px);
}

.interest-icon {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  color: #3498db;
}

.interest-item h3 {
  font-size: 1.3rem;
  font-weight: 600;
  margin-bottom: 1rem;
  color: #2c3e50;
}

.interest-item p {
  color: #34495e;
  line-height: 1.6;
}

/* Projects Section */
.projects {
  padding: 120px 0;
  background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.project-card {
  background: white;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
}

.project-card:hover {
  transform: translateY(-10px);
}

.project-image {
  height: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  overflow: hidden;
}

.project-screenshot {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.project-placeholder {
  color: rgba(255, 255, 255, 0.9);
  font-size: 3rem;
}

.project-content {
  padding: 2rem;
}

.project-content h3 {
  font-size: 1.4rem;
  font-weight: 600;
  margin-bottom: 1rem;
  color: #2c3e50;
}

.project-content p {
  color: #34495e;
  margin-bottom: 1.5rem;
  line-height: 1.6;
}

.project-tech {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
}

.project-tech span {
  background: #3498db;
  color: white;
  padding: 0.3rem 0.8rem;
  border-radius: 15px;
  font-size: 0.8rem;
  font-weight: 500;
}

.project-links {
  text-align: center;
}

.project-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: #3498db;
  text-decoration: none;
  padding: 0.8rem 1.5rem;
  border: 2px solid #3498db;
  border-radius: 5px;
  transition: all 0.3s ease;
  font-weight: 500;
}

.project-link:hover {
  background: #3498db;
  color: white;
}

/* Contact Section */
.contact {
  padding: 120px 0;
  background: #f8f9fa;
}

.contact-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
}

.contact-item {
  display: flex;
  gap: 1.5rem;
  margin-bottom: 2.5rem;
}

.contact-icon {
  width: 50px;
  height: 50px;
  background: #3498db;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  flex-shrink: 0;
}

.contact-details h3 {
  font-size: 1.1rem;
  font-weight: 500;
  margin-bottom: 0.5rem;
  color: #2c3e50;
}

.contact-details p,
.contact-details a {
  color: #34495e;
  text-decoration: none;
  font-weight: 400;
}

.contact-details a:hover {
  color: #3498db;
}

.contact-form {
  background: white;
  padding: 3rem;
  border-radius: 5px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 1.2rem;
  border: 1px solid #bdc3c7;
  border-radius: 3px;
  font-size: 1rem;
  background: white;
  transition: border-color 0.3s ease;
  font-family: inherit;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: #3498db;
}

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

/* Footer */
.footer {
  background: #2c3e50;
  color: white;
  padding: 3rem 0;
}

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

.social-links {
  display: flex;
  gap: 1rem;
}

.social-links a {
  width: 45px;
  height: 45px;
  background: #34495e;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  text-decoration: none;
  transition: all 0.3s ease;
}

.social-links a:hover {
  background: #3498db;
}

/* Responsive Design */
@media (max-width: 968px) {
  .nav-menu {
    position: fixed;
    left: -100%;
    top: 70px;
    flex-direction: column;
    background-color: rgba(255, 255, 255, 0.98);
    width: 100%;
    text-align: center;
    transition: left 0.3s ease, opacity 0.3s ease;
    backdrop-filter: blur(15px);
    padding: 2rem 0;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    opacity: 0;
    visibility: hidden;
    z-index: 999;
    max-height: calc(100vh - 70px);
    overflow-y: auto;
  }

  .nav-toggle-checkbox:checked ~ .nav-menu {
    left: 0;
    opacity: 1;
    visibility: visible;
  }

  .nav-menu .nav-link {
    display: block;
    padding: 1rem 2rem;
    margin: 0.5rem 0;
    font-size: 1.1rem;
    font-weight: 500;
    border-radius: 8px;
    margin: 0.5rem 1rem;
    transition: all 0.3s ease;
  }

  .nav-menu .nav-link:hover {
    background-color: rgba(52, 152, 219, 0.1);
    color: #3498db;
    transform: translateX(5px);
  }

  .nav-toggle {
    display: flex;
    z-index: 1001;
  }

  .nav-toggle-checkbox:checked ~ .nav-toggle .bar:nth-child(2) {
    opacity: 0;
  }

  .nav-toggle-checkbox:checked ~ .nav-toggle .bar:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
  }

  .nav-toggle-checkbox:checked ~ .nav-toggle .bar:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
  }

  /* Overlay to close menu when clicking outside */
  .nav-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.3);
    z-index: 998;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    cursor: pointer;
  }

  .nav-toggle-checkbox:checked ~ .nav-overlay {
    opacity: 1;
    visibility: visible;
  }

  /* Better mobile navigation experience */
  .nav-container {
    position: relative;
  }

  /* Ensure menu appears above overlay */
  .nav-toggle-checkbox:checked ~ .nav-menu {
    z-index: 1000;
  }

  @keyframes fadeIn {
    from {
      opacity: 0;
    }
    to {
      opacity: 1;
    }
  }

  .hero-container {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 2rem;
  }

  .hero-title {
    font-size: 2.5rem;
  }

  .about-content {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .about-stats {
    flex-direction: row;
    justify-content: space-around;
  }

  .contact-content {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .footer-content {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
  }
}

@media (max-width: 768px) {
  .hero-title {
    font-size: 2.8rem;
  }

  .hero-subtitle {
    font-size: 1.1rem;
  }

  .section-header h2 {
    font-size: 2.3rem;
  }

  .profile-placeholder {
    width: 220px;
    height: 220px;
  }

  .education-item {
    flex-direction: column;
    text-align: center;
  }

  .hero-buttons {
    flex-direction: column;
    align-items: center;
  }

  .btn {
    width: 200px;
    justify-content: center;
  }

  .about-stats {
    flex-direction: column;
    gap: 1rem;
  }

  .projects-grid {
    grid-template-columns: 1fr;
  }

  .languages-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 15px;
  }

  .nav-container {
    padding: 1rem 15px;
  }

  .hero-title {
    font-size: 2.2rem;
    line-height: 1.2;
  }

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

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

  .profile-placeholder {
    width: 180px;
    height: 180px;
  }

  .section-header h2 {
    font-size: 2rem;
  }

  .section-header p {
    font-size: 1rem;
  }

  .education-item,
  .contact-form {
    padding: 1.5rem;
  }

  .language-item {
    padding: 1.5rem;
  }

  .project-content {
    padding: 1.5rem;
  }

  /* Better mobile grid layouts */
  .projects-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .languages-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .interests-content {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  /* Improved spacing for mobile */
  .about-stats {
    gap: 1.5rem;
  }

  .stat-item {
    padding: 2rem;
  }

  .stat-item h3 {
    font-size: 2rem;
  }

  /* Better button styling for mobile */
  .btn {
    padding: 12px 25px;
    font-size: 0.85rem;
  }

  /* Improved navigation for mobile */
  .nav-menu {
    padding: 1.5rem 0;
  }

  .nav-link {
    padding: 0.8rem 0;
    font-size: 1rem;
  }

  /* Better project image sizing */
  .project-image {
    height: 180px;
  }

  /* Improved contact form for mobile */
  .form-group input,
  .form-group textarea {
    padding: 1rem;
    font-size: 0.9rem;
  }

  /* Better icon sizing */
  .language-icon,
  .interest-icon {
    font-size: 2.5rem;
  }

  .education-icon {
    width: 60px;
    height: 60px;
    font-size: 1.5rem;
  }

  .contact-icon {
    width: 45px;
    height: 45px;
  }
}

/* Extra small mobile devices */
@media (max-width: 360px) {
  .hero-title {
    font-size: 1.8rem;
    line-height: 1.1;
  }

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

  .section-header h2 {
    font-size: 1.8rem;
  }

  .profile-placeholder {
    width: 150px;
    height: 150px;
  }

  .stat-item {
    padding: 1.5rem;
  }

  .stat-item h3 {
    font-size: 1.8rem;
  }

  .education-item,
  .contact-form,
  .language-item,
  .project-content {
    padding: 1rem;
  }

  .btn {
    padding: 10px 20px;
    font-size: 0.8rem;
  }

  .project-image {
    height: 160px;
  }

  .language-icon,
  .interest-icon {
    font-size: 2rem;
  }

  .education-icon {
    width: 50px;
    height: 50px;
    font-size: 1.3rem;
  }

  .interest-item,
  .language-item {
    padding: 1.2rem;
  }
}

/* Simple animations for beginner-level implementation */
@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

/* Apply simple fade-in to main sections */
.skill-item,
.project-card,
.education-item,
.stat-item {
  animation: fadeIn 1s ease-in;
}
