
/* Variables */
:root {
  --primary: hsl(25, 35%, 35%);
  --primary-foreground: hsl(45, 25%, 97%);
  --secondary: hsl(30, 20%, 85%);
  --secondary-foreground: hsl(25, 30%, 25%);
  --accent: hsl(20, 40%, 65%);
  --accent-foreground: hsl(45, 25%, 97%);
  --background: hsl(45, 25%, 97%);
  --foreground: hsl(25, 30%, 15%);
  --card: hsl(45, 20%, 95%);
  --card-foreground: hsl(25, 30%, 15%);
  --muted: hsl(35, 15%, 88%);
  --muted-foreground: hsl(25, 20%, 45%);
  --border: hsl(30, 15%, 80%);
  --input: hsl(30, 15%, 80%);
  --ring: hsl(25, 35%, 35%);
  --radius: 0.5rem;
}

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

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  font-family: 'Inter', sans-serif;
  line-height: 1.6;
  color: var(--foreground);
  overflow-x: hidden;
  width: 100%;
}

/* Utility Classes */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}

.text-primary {
  color: var(--primary);
}

/* Button Styles */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  font-size: 0.875rem;
  font-weight: 500;
  border-radius: var(--radius);
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.2s ease;
}

.btn-primary {
  background-color: var(--primary);
  color: var(--primary-foreground);
}

.btn-primary:hover {
  background-color: hsl(25, 35%, 30%);
}

.btn-outline {
  background-color: transparent;
  color: var(--foreground);
  border: 1px solid var(--border);
}

.btn-outline:hover {
  background-color: var(--accent);
  color: var(--accent-foreground);
}

.btn-sm {
  padding: 0.5rem 1rem;
  font-size: 0.75rem;
}

.btn-full {
  width: 100%;
}

.btn-icon {
  width: 1rem;
  height: 1rem;
}

/* Navigation */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background-color: transparent;
  transition: all 0.3s ease;
  padding: 1rem 0;
}

.nav.scrolled {
  background-color: hsla(45, 25%, 97%, 0.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 2px 10px hsla(0, 0%, 0%, 0.1);
}

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

.nav-brand {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--primary);
  text-decoration: none;
}

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

.nav-link {
  color: var(--foreground);
  text-decoration: none;
  font-weight: 500;
  position: relative;
  transition: color 0.2s ease;
}

.nav-link:hover {
  color: var(--primary);
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--primary);
  transition: width 0.3s ease;
}

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

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 4px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
}

.nav-toggle span {
  width: 25px;
  height: 3px;
  background-color: var(--foreground);
  transition: all 0.3s ease;
}

/* Hero Section */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 5rem 0;
}

.hero-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

.hero-text {
  animation: fadeIn 0.8s ease-out;
}

.hero-title {
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 700;
  line-height: 1.1;
  margin-bottom: 1rem;
}

.hero-subtitle {
  font-size: clamp(1.5rem, 3vw, 2rem);
  color: var(--muted-foreground);
  margin-bottom: 1.5rem;
}

.hero-description {
  font-size: 1.125rem;
  color: var(--muted-foreground);
  margin-bottom: 2rem;
  line-height: 1.7;
}

.hero-buttons {
  display: flex;
  gap: 1rem;
  margin-bottom: 2rem;
  flex-wrap: wrap;
}

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

.social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  background-color: transparent;
  color: var(--foreground);
  text-decoration: none;
  transition: all 0.2s ease;
}

.social-link:hover {
  background-color: var(--primary);
  color: var(--primary-foreground);
}

.social-link svg {
  width: 1.25rem;
  height: 1.25rem;
}

.hero-image {
  display: flex;
  justify-content: center;
  animation: slideUp 0.8s ease-out 0.2s both;
}



.profile-img {
  width: 20rem;
  height: 20rem;
  border-radius: 50%;
  object-fit: cover;
  object-position: center 20%;
  transform: scale(1.2);
}


.section-header {
  text-align: center;
  margin-bottom: 4rem;
  animation: fadeIn 0.6s ease-out;
}

.section-title {
  font-size: clamp(2rem, 4vw, 2.5rem);
  font-weight: 700;
  margin-bottom: 1rem;
}

.section-subtitle {
  font-size: 1.125rem;
  color: var(--muted-foreground);
  max-width: 600px;
  margin: 0 auto;
}

.about {
  padding: 5rem 0;
  background-color: hsla(35, 15%, 88%, 0.3);
}

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

.about-text {
  animation: slideUp 0.6s ease-out;
}
.about-heading {
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
}
.about-paragraphs p {
  color: var(--muted-foreground);
  margin-bottom: 1rem;
  line-height: 1.7;
  word-wrap: break-word;      
  overflow-wrap: break-word;   
  max-width: 100%; 
}

.about-passions {
  margin-top: 2rem;
}

.about-passions h4 {
  font-size: 1.125rem;
  font-weight: 600;
  margin-bottom: 1rem;
}

.passion-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.tag {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.25rem 0.75rem;
  background-color: var(--secondary);
  color: var(--secondary-foreground);
  border-radius: calc(var(--radius) - 2px);
  font-size: 0.75rem;
  font-weight: 500;
  transition: all 0.2s ease;
}

.tag:hover {
  background-color: var(--primary);
  color: var(--primary-foreground);
}

.about-cards {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  animation: slideUp 0.6s ease-out 0.2s both;
}

.info-card {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.5rem;
  background-color: var(--card);
  border-radius: var(--radius);
  box-shadow: 0 4px 12px hsla(0, 0%, 0%, 0.05);
  transition: all 0.3s ease;
}

.info-card:hover {
  box-shadow: 0 8px 24px hsla(0, 0%, 0%, 0.1);
  transform: translateY(-2px);
}

.card-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 3rem;
  height: 3rem;
  border-radius: var(--radius);
  transition: all 0.3s ease;
}

.card-icon.education {
  background-color: hsla(25, 35%, 35%, 0.1);
  color: var(--primary);
}

.card-icon.location {
  background-color: hsla(20, 40%, 65%, 0.1);
  color: var(--accent);
}

.card-icon.experience {
  background-color: hsla(30, 20%, 85%, 0.1);
  color: var(--secondary-foreground);
}

.info-card:hover .card-icon.education {
  background-color: var(--primary);
  color: var(--primary-foreground);
}

.info-card:hover .card-icon.location {
  background-color: var(--accent);
  color: var(--accent-foreground);
}

.info-card:hover .card-icon.experience {
  background-color: var(--secondary);
  color: var(--secondary-foreground);
}

.card-icon svg {
  width: 1.5rem;
  height: 1.5rem;
}

.info-card h4 {
  font-weight: 600;
  margin-bottom: 0.25rem;
}

.info-card p {
  color: var(--muted-foreground);
  margin-bottom: 0.25rem;
}

.info-card small {
  font-size: 0.75rem;
  color: var(--muted-foreground);
}

/* Skills Section */
.skills {
  padding: 5rem 0;
}

.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem;
}

.skill-card {
  text-align: center;
  padding: 2rem 1.5rem;
  background-color: var(--card);
  border-radius: var(--radius);
  box-shadow: 0 4px 12px hsla(0, 0%, 0%, 0.05);
  transition: all 0.3s ease;
  animation: slideUp 0.5s ease-out;
}

.skill-card:hover {
  box-shadow: 0 12px 32px hsla(0, 0%, 0%, 0.15);
  transform: translateY(-8px);
}

.skill-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 4rem;
  height: 4rem;
  border-radius: 50%;
  margin-bottom: 1rem;
  transition: all 0.3s ease;
}

.skill-icon.frontend {
  background-color: hsla(20, 40%, 65%, 0.2);
  color: var(--accent);
}

.skill-icon.backend {
  background-color: hsla(25, 35%, 35%, 0.2);
  color: var(--primary);
}

.skill-icon.programming {
  background-color: hsla(30, 20%, 85%, 0.2);
  color: var(--secondary-foreground);
}

.skill-icon.design {
  background-color: hsla(35, 15%, 88%, 0.2);
  color: var(--muted-foreground);
}

.skill-card:hover .skill-icon {
  transform: scale(1.1);
}

.skill-card:hover .skill-icon.frontend {
  background-color: var(--accent);
  color: var(--accent-foreground);
}

.skill-card:hover .skill-icon.backend {
  background-color: var(--primary);
  color: var(--primary-foreground);
}

.skill-card:hover .skill-icon.programming {
  background-color: var(--secondary);
  color: var(--secondary-foreground);
}

.skill-card:hover .skill-icon.design {
  background-color: var(--muted);
  color: var(--muted-foreground);
}

.skill-icon svg {
  width: 1.5rem;
  height: 1.5rem;
}

.skill-card h3 {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 1rem;
}

.skill-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: center;
}

.skill-tag {
  padding: 0.25rem 0.75rem;
  background-color: var(--secondary);
  color: var(--secondary-foreground);
  border-radius: calc(var(--radius) - 2px);
  font-size: 0.75rem;
  font-weight: 500;
  transition: all 0.2s ease;
}

.skill-tag:hover {
  background-color: var(--primary);
  color: var(--primary-foreground);
}

/* Projects Section */
.projects {
  padding: 5rem 0;
}

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

.project-card {
  background-color: var(--card);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 4px 12px hsla(0, 0%, 0%, 0.05);
  transition: all 0.3s ease;
  animation: slideUp 0.5s ease-out;
}

.project-card:hover {
  box-shadow: 0 16px 40px hsla(0, 0%, 0%, 0.15);
  transform: translateY(-12px);
}

.project-card::before {
  content: '';
  display: block;
  height: 0.5rem;
  background: linear-gradient(90deg, var(--accent), var(--primary));
}

.project-header {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1.5rem;
  padding-bottom: 1rem;
}

.project-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 3rem;
  height: 3rem;
  border-radius: var(--radius);
  background-color: var(--muted);
  transition: all 0.3s ease;
}

.project-card:hover .project-icon {
  background-color: var(--primary);
  color: var(--primary-foreground);
}

.project-icon svg {
  width: 2rem;
  height: 2rem;
}

.project-info h3 {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  transition: color 0.3s ease;
}

.project-card:hover .project-info h3 {
  color: var(--primary);
}

.project-info p {
  color: var(--muted-foreground);
  line-height: 1.6;
}

.project-technologies,
.project-features {
  padding: 0 1.5rem 1rem;
}

.project-technologies h4,
.project-features h4 {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.75rem;
}

.tech-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.tech-tag {
  padding: 0.25rem 0.75rem;
  border: 1px solid var(--border);
  border-radius: calc(var(--radius) - 2px);
  font-size: 0.75rem;
  font-weight: 500;
  transition: all 0.2s ease;
}

.tech-tag:hover {
  background-color: var(--primary);
  color: var(--primary-foreground);
  border-color: var(--primary);
}

.feature-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem;
  list-style: none;
}

.feature-list li {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  color: var(--muted-foreground);
}

.feature-list li::before {
  content: '';
  width: 0.375rem;
  height: 0.375rem;
  background-color: var(--primary);
  border-radius: 50%;
  flex-shrink: 0;
}

.project-actions {
  display: flex;
  gap: 0.75rem;
  padding: 1rem 1.5rem 1.5rem;
}

.projects-footer {
  text-align: center;
  animation: fadeIn 0.6s ease-out;
}

.projects-footer p {
  color: var(--muted-foreground);
  margin-bottom: 1.5rem;
}


.contact {
  padding: 5rem 0;
}

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

.contact-info {
  animation: slideUp 0.6s ease-out;
}

.contact-intro h3 {
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
}

.contact-intro p {
  color: var(--muted-foreground);
  line-height: 1.7;
  margin-bottom: 2rem;
}

.contact-details {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.5rem;
  background-color: var(--card);
  border-radius: var(--radius);
  box-shadow: 0 4px 12px hsla(0, 0%, 0%, 0.05);
  transition: all 0.3s ease;
}

.contact-item:hover {
  box-shadow: 0 8px 24px hsla(0, 0%, 0%, 0.1);
}

.contact-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 3rem;
  height: 3rem;
  border-radius: var(--radius);
  transition: all 0.3s ease;
}

.contact-icon.email {
  background-color: hsla(25, 35%, 35%, 0.1);
  color: var(--primary);
}

.contact-icon.phone {
  background-color: hsla(20, 40%, 65%, 0.1);
  color: var(--accent);
}

.contact-icon.location {
  background-color: hsla(30, 20%, 85%, 0.1);
  color: var(--secondary-foreground);
}

.contact-item:hover .contact-icon.email {
  background-color: var(--primary);
  color: var(--primary-foreground);
}

.contact-item:hover .contact-icon.phone {
  background-color: var(--accent);
  color: var(--accent-foreground);
}

.contact-item:hover .contact-icon.location {
  background-color: var(--secondary);
  color: var(--secondary-foreground);
}

.contact-icon svg {
  width: 1.25rem;
  height: 1.25rem;
}

.contact-item h4 {
  font-weight: 600;
  margin-bottom: 0.25rem;
}

.contact-item p {
  color: var(--muted-foreground);
}

.contact-social {
  display: flex;
  gap: 1rem;
  padding-top: 1rem;
}

.contact-form-card {
  background-color: var(--card);
  padding: 2rem;
  border-radius: var(--radius);
  box-shadow: 0 4px 12px hsla(0, 0%, 0%, 0.05);
  animation: slideUp 0.6s ease-out 0.2s both;
}

.contact-form-card h3 {
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.form-group label {
  font-size: 0.875rem;
  font-weight: 500;
}

.form-group input,
.form-group textarea {
  padding: 0.75rem;
  border: 1px solid var(--input);
  border-radius: var(--radius);
  background-color: var(--background);
  font-size: 0.875rem;
  transition: all 0.2s ease;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--ring);
  box-shadow: 0 0 0 2px hsla(25, 35%, 35%, 0.2);
}

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

/* Animations */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes float {
  0%, 100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-10px);
  }
}

/* Responsive Design */
@media (max-width: 768px) {
  .nav-menu {
    position: fixed;
    top: 64px;
    left: 0;
    right: 0;
    background-color: hsla(45, 25%, 97%, 0.95);
    backdrop-filter: blur(12px);
    border-top: 1px solid var(--border);
    box-shadow: 0 8px 24px hsla(0, 0%, 0%, 0.1);
    padding: 2rem 1rem;
    flex-direction: column;
    gap: 1rem;
    transform: translateY(-100%);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
  }

  .nav-menu.active {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
  }

  .nav-toggle {
    display: flex;
  }

  .nav-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
  }

  .nav-toggle.active span:nth-child(2) {
    opacity: 0;
  }

  .nav-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
  }

  .hero-content {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero-content > div:last-child {
    order: -1;
  }

  .profile-img {
    width: 15rem;
    height: 15rem;
  }

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

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

  .form-row {
    grid-template-columns: 1fr;
  }

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

  .skills-grid {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  }

  .hero-buttons {
    justify-content: center;
  }

  .section-header {
    margin-bottom: 2rem;
  }
}

@media (max-width: 480px) {
  .about-content {
    display: block;
    padding: 0 1rem;
  }

  .about-text,
  .about-cards {
    margin-bottom: 2rem;
  }

  .about-paragraphs p {
    font-size: 0.95rem;
    line-height: 1.6;
    text-align: left;
  }

  .about-heading {
    font-size: 1.2rem;
    text-align: center;
  }
  .container {
    padding: 0 0.75rem;
  }

  .hero {
    padding: 3rem 0;
  }

  .profile-img {
    width: 12rem;
    height: 12rem;
  }

  .profile-card {
    padding: 1.5rem;
  }

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

  .project-card {
    min-width: unset;
  }

  .btn {
    padding: 0.6rem 1.2rem;
    font-size: 0.8rem;
  }

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

  .hero-buttons .btn {
    width: 100%;
    max-width: 200px;
  }
  .contact-content {
    display: block;
    padding: 0 1rem;
  }

  .contact-info,
  .contact-form-card {
    margin-bottom: 2rem;
  }

  .contact-intro p {
    font-size: 0.95rem;
    line-height: 1.6;
    text-align: left;
    word-wrap: break-word;
    overflow-wrap: break-word;
  }

  .contact-intro h3 {
    font-size: 1.2rem;
    text-align: center;
  }

  .contact-details,
  .contact-social {
    display: flex;
    flex-direction: column;
    gap: 1rem;
  }

  .contact-item {
    flex-direction: row;
    align-items: center;
  }

  .contact-item p {
    font-size: 0.9rem;
  }
}
