/* Base styles */
:root {
  --background: rgba(255, 255, 255, 0.91);
  --foreground: #0f0f0f;
  --primary: #0f0f0f;
  --primary-foreground: #fafafa;
  --secondary: #f4f4f5;
  --secondary-foreground: #0f0f0f;
  --muted: #f4f4f5;
  --muted-foreground: #737373;
  --accent: #f4f4f5;
  --accent-foreground: #0f0f0f;
  --border: #e4e4e7;
  --input: #e4e4e7;
  --radius: 0.5rem;
  --font-sans: "Inter", sans-serif;
  --font-serif: "Playfair Display", serif;
}

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

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

body {
  font-family: var(--font-sans);
  color: var(--foreground);
  background-color: var(--background);
  line-height: 1.6;
  overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-serif);
  font-weight: 500;
  line-height: 1.2;
}

a {
  text-decoration: none;
  color: inherit;
}

img {
  max-width: 100%;
  height: auto;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;


}

.section {
  padding: 0;
}

.section-header {
  text-align: center;
  max-width: 800px;
  margin: 0 auto 4rem;
}

.section-badge {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  background-color: var(--secondary);
  border-radius: 999px;
  font-size: 0.875rem;
  font-weight: 500;
  margin-bottom: 1rem;
}

.section-title {
  font-size: 2.5rem;
  margin-bottom: 1.5rem;
}

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

.btn {
  width: 10rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 2.75rem;
  padding: 0 1.5rem;
  font-size: 0.875rem;
  font-weight: 500;
  border-radius: var(--radius);
  transition: all 0.3s ease;
  box-shadow: 0 3px 6px rgba(0, 0, 0, 0.5);
}

.box {
  height: 5rem;
  align-self: baseline;
}

.btn svg {
  margin-left: 0.5rem;
}

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

.btn-primary:hover {
  background-color: #292929;
}

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



.btn-secondary:hover {
  background-color: var(--secondary);
}

.hidden {
  display: none !important;
}

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

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes float {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-10px);
  }
}

@keyframes scaleIn {
  from {
    opacity: 0;
    transform: scale(0.95);
  }

  to {
    opacity: 1;
    transform: scale(1);
  }
}

.fade-in {
  animation: fadeIn 0.6s ease-out forwards;
}

.scale-in {
  animation: scaleIn 0.4s ease-out forwards;
}

/* Navigation */
#navbar {

  backdrop-filter: saturate(180%) blur(15px);
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 1rem 0;
  transition: all 0.3s ease;
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

#navbar.scrolled {
  background-color: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  padding: 0.75rem 0;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1),
    0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

#navbar .container {
  display: flex;
  justify-content: center;
  align-items: center;
}

.logo {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  font-weight: 500;
  transition: opacity 0.3s ease;
}

.logo:hover {
  opacity: 0.8;
}

.desktop-nav {
  display: flex;
  justify-content: space-around;
}

.nav-link {
  position: relative;
  display: inline-block;
  padding: 0.5rem 0.25rem;
  margin: 0 0.75rem;
  overflow: hidden;
}

.nav-link::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background-color: var(--foreground);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.3s ease;
}

.nav-link:hover::after,
.nav-link.active::after {
  transform: scaleX(1);
  transform-origin: left;
}

/* 
#mobile-menu-button {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 2.5rem;
  height: 2.5rem;
  background: none;
  border: none;
  cursor: pointer;
}

#mobile-menu-button span {
  display: block;
  width: 1.5rem;
  height: 2px;
  background-color: var(--foreground);
  margin-bottom: 4px;
  transition: all 0.3s ease;
}

#mobile-menu-button span:last-child {
  margin-bottom: 0;
}

#mobile-menu-button.active span:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}

#mobile-menu-button.active span:nth-child(2) {
  opacity: 0;
}

#mobile-menu-button.active span:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

#mobile-menu {
  position: absolute;
  top: 100%;
  right: 1rem;
  width: auto;
  min-width: 200px;
  background-color: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px);
  border-radius: var(--radius);
  padding: 1rem;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1),
    0 4px 6px -2px rgba(0, 0, 0, 0.05);
  z-index: 100;
  animation: scaleIn 0.2s ease-out forwards;
}

#mobile-menu .nav-link {
  display: block;
  margin: 0.75rem 0;
} */

/* Hero Section */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;

  position: relative;
  overflow: hidden;
  padding: 6rem 0 3rem;
}

.bg-shapes {
  position: absolute;
  inset: 0;
  z-index: -1;
  overflow: hidden;
}

.shape {
  position: absolute;
  border-radius: 50%;
  opacity: .29;
  background-color: var(--muted-foreground);
}

.shape-1 {
  top: 25%;
  left: -5%;
  width: 16rem;
  height: 16rem;
  animation: float 6s infinite ease-in-out;
}

.shape-2 {
  bottom: 25%;
  right: 2.5%;
  width: 10rem;
  height: 10rem;
  animation: float 6s infinite ease-in-out 1s;
}

.shape-3 {
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 20rem;
  height: 20rem;
  animation: float 6s infinite ease-in-out 2s;
}

.hero-content {
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
}

.role {
  position: fixed;
  font-size: 1.125rem;
  color: var(--muted-foreground);
  margin-bottom: 1rem;
  animation-delay: 0.1s;
}

.hello-badge {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  background-color: var(--secondary);
  border-radius: 999px;
  font-size: 0.875rem;
  font-weight: 500;
  margin-bottom: 1.5rem;
  animation-delay: 0.3s;
}

.hero-content h1 {
  font-size: clamp(2.5rem, 5vw, 4.5rem);
  line-height: 1.1;
  margin-bottom: 1.5rem;
  animation-delay: 0.5s;
  align-items: top;
}

.hero-content h2 {
  font-size: 2.125rem;
  margin-top: -25px;
  position: relative sticky;
  margin-bottom: 1rem;
}

.hero-content p {
  font-size: 1.125rem;
  color: var(--muted-foreground);
  margin-bottom: 2rem;
  max-width: 36rem;
  margin-left: auto;
  margin-right: auto;
  animation-delay: 0.7s;
}

.cta-buttons {
  padding-top: 50px !important;
  display: flex;
  gap: 1rem;
  justify-content: center;
  margin-top: 2rem;
  animation-delay: 0.9s;
}

.scroll-indicator {
  position: absolute;
  bottom: 2.5rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  color: var(--muted-foreground);
  transition: color 0.3s ease;
}

.scroll-indicator span {
  font-size: 0.875rem;
  margin-bottom: 0.5rem;
}

.scroll-indicator svg {
  animation: float 2s infinite ease-in-out;
}

.scroll-indicator:hover {
  color: var(--foreground);
}

/* About Section */
.about {

  min-height: 100vh;
  background-color: rgba(244, 244, 245, 0.3);
}

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

.about-content .section-text {
  color: var(--muted-foreground);
  margin-bottom: 1.5rem;
}

.stats-grid {
  display: flex;
  /* grid-template-columns: 1fr;
    gap: 1rem; */
  margin-bottom: 1.5rem;
}

.stat h3 {
  font-size: 1.125rem;
  margin-bottom: 0.25rem;
}

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

.skills h3 {
  font-size: 1.125rem;
  margin-bottom: 1rem;
}

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

}

.skill-tag {
  display: flex;
  align-items: center;
  flex-direction: row;
  padding: 0.5rem 1rem;
  background-color: var(--background);
  border-radius: 999px;
  font-size: 0.900rem;
  box-shadow: 0 3px 6px rgba(0, 0, 0, 0.5);
}

.skill-tag img {
  width: 1.25rem;
  height: 1.25rem;
  margin-right: 0.5rem;
}

.about-image {
  position: relative;
  width: 100%;
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}

.profile-card {
  position: relative;
  z-index: 2;
  background-color: rgba(244, 244, 245, 0.2);
  padding: 2rem;
  border-radius: var(--radius);
  text-align: center;
}

.profile-avatar {
  width: 10rem;
  height: 10rem;
  border-radius: 50%;
  background-color: var(--background);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem;
}

.profile-avatar svg {
  width: 5rem;
  height: 5rem;
  stroke: var(--muted-foreground);
  fill: none;
  stroke-width: 1;
}

.profile-card h3 {
  font-size: 1.25rem;
  margin-bottom: 0.25rem;
}

.profile-card p {
  color: var(--muted-foreground);
}

.decorative-circle {
  position: absolute;
  border-radius: 50%;
  z-index: 1;
}

.circle1 {
  bottom: -1.5rem;
  left: -1.5rem;
  width: 6rem;
  height: 6rem;
  background-color: var(--background);
}

.circle2 {
  top: -2.5rem;
  right: -2.5rem;
  width: 8rem;
  height: 8rem;
  border: 1px solid rgba(15, 15, 15, 0.1);
}

/* Resume Section */
.resume-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
}

.timeline-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 2rem;
}

.timeline-header h3 {
  font-size: 1.5rem;
}

.timeline {
  position: relative;
  border-left: 2px solid var(--border);
  padding-left: 1.5rem;
  margin-left: 0.5rem;
  margin-bottom: 3rem;
}

.timeline-item {
  position: relative;
  margin-bottom: 2.5rem;
}

.timeline-item:last-child {
  margin-bottom: 0;
}

.timeline-marker {
  position: absolute;
  top: 0.25rem;
  left: -2rem;
  width: 1.25rem;
  height: 1.25rem;
  border-radius: 50%;
  border: 2px solid var(--primary);
  background-color: var(--background);
}

.timeline-content h4 {
  font-weight: 600;
  font-size: 1.125rem;
  margin-bottom: 0.25rem;
}

.timeline-meta {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  color: var(--muted-foreground);
  margin-bottom: 0.5rem;
}

.separator {
  display: none;
}

.timeline-content p {
  color: var(--muted-foreground);
}

.skills-section {
  margin-top: 2rem;
}

.skills-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  margin-bottom: 2rem;
}

.skill-column h4 {
  margin-bottom: 1rem;
}

.skill-bars {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.skill-info {
  display: flex;
  justify-content: space-between;
  margin-bottom: 0.5rem;
  font-size: 0.875rem;
}

.skill-progress {
  height: 0.5rem;
  background-color: var(--secondary);
  border-radius: 999px;
  overflow: hidden;
}

.skill-progress-bar {
  height: 100%;
  background-color: var(--primary);
  border-radius: 999px;
}

.certifications h4 {
  margin-bottom: 1rem;
}

.certifications ul {
  list-style-position: inside;
  color: var(--muted-foreground);
}

/* Portfolio Section */
.portfolio {
  background-color: rgba(244, 244, 245, 0.3);
}

.filter-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: center;
  margin-bottom: 2rem;
}

.filter-btn {
  padding: 0.5rem 1rem;
  border-radius: 999px;
  font-size: 0.875rem;
  background-color: var(--background);
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
}

.filter-btn:hover,
.filter-btn.active {
  background-color: var(--primary);
  color: var(--primary-foreground);
}

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

.portfolio-item {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  cursor: pointer;
}

.portfolio-item-img {
  aspect-ratio: 4/3;
  width: 100%;
  background-size: cover;
  background-position: center;
  transition: transform 0.5s ease;
}

.portfolio-item:hover .portfolio-item-img {
  transform: scale(1.1);
}

.portfolio-item-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top,
      rgba(15, 15, 15, 0.8) 0%,
      rgba(15, 15, 15, 0.4) 50%,
      transparent 100%);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.portfolio-item:hover .portfolio-item-overlay {
  opacity: 1;
}

.portfolio-item-content {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  padding: 1rem;
  transform: translateY(20px);
  opacity: 0;
  transition: all 0.3s ease;
}

.portfolio-item:hover .portfolio-item-content {
  transform: translateY(0);
  opacity: 1;
}

.portfolio-category {
  display: inline-block;
  padding: 0.25rem 0.5rem;
  background-color: rgba(255, 255, 255, 0.2);
  border-radius: 999px;
  font-size: 0.75rem;
  margin-bottom: 0.5rem;
  color: white;
}

.portfolio-item-content h3 {
  font-size: 1.25rem;
  color: white;
  margin-bottom: 0.25rem;
}

.portfolio-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.5rem;
}

.portfolio-tag {
  padding: 0.25rem 0.5rem;
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 999px;
  font-size: 0.75rem;
  color: white;
}

/* Contact Section */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
}

@media (min-width: 768px) {
  .contact-grid {
    display: grid;
    /* flex-direction: column; */
    grid-template-columns: 1fr 1fr;
  }
}

.contact-info h3,
.contact-form-container h3 {
  font-size: 1.5rem;
  margin-bottom: 2rem;
}

.contact-info {
  padding: 1.5rem;
}

.info-items {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  margin-bottom: 3rem;
}

.info-item {
  display: flex;
  gap: 1rem;
}

.info-icon {
  flex-shrink: 0;
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  background-color: var(--secondary);
  display: flex;
  align-items: center;
  justify-content: center;
}

.info-content h4 {
  margin-bottom: 0.25rem;
}

.info-content p {
  color: var(--muted-foreground);
}

.social-links h3 {
  font-size: 1.25rem;
  margin-bottom: 1rem;
}

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

.social-icon {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  background-color: var(--secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

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

.contact-form-container {
  background-color: rgba(244, 244, 245, 0.3);
  border-radius: var(--radius);
  padding: 1.5rem;

}

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

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

.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 1rem;
  border-radius: var(--radius);
  border: 1px solid var(--input);
  background-color: var(--background);
  font-family: inherit;
  resize: none;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 2px rgba(15, 15, 15, 0.1);
}

.submit-btn {
  width: 100%;
}

.form-status {
  padding: 0.75rem;
  border-radius: var(--radius);
  text-align: center;
}

.form-status.success {
  background-color: rgba(34, 197, 94, 0.1);
  color: rgb(22, 163, 74);
}

.form-status.error {
  background-color: rgba(239, 68, 68, 0.1);
  color: rgb(220, 38, 38);
}

/* Footer */
.footer {
  background-color: var(--secondary);
  padding: 1rem 0;
}

.footer-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
}

.footer-logo {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
}

.copyright {
  font-size: 0.875rem;
  color: var(--muted-foreground);
}

.back-to-top a {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  background-color: var(--secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.back-to-top a:hover {
  background-color: var(--primary);
  color: var(--primary-foreground);
}

.footer-contact {
  text-align: center;
}

.footer-contact p {
  margin-bottom: 0.25rem;
  font-size: 0.875rem;
  align-items: center;
  align-content: center;
}

.footer-contact a {
  font-size: 0.875rem;
  color: var(--foreground);
  transition: color 0.3s ease;
}

.footer-contact a:hover {
  text-decoration: underline;
}

.footer-contact img {
  margin-left: 0.25rem;
  align-items: end;
  border-radius: 15%;

}

/* Modal */
.modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.75);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  padding: 1rem;
}

.modal.active {
  opacity: 1;
  visibility: visible;
}

.modal-content {
  position: relative;
  width: 100%;
  max-width: 1000px;
  max-height: 90vh;
  overflow-y: auto;
  background-color: var(--background);
  border-radius: var(--radius);
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  animation: scaleIn 0.3s ease-out forwards;
}

.modal-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(4px);
  border: none;
  cursor: pointer;
  z-index: 10;
  transition: all 0.3s ease;
}

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

.modal-img {
  width: 100%;
  aspect-ratio: 16/9;
  background-size: cover;
  background-position: center;
  border-radius: var(--radius) var(--radius) 0 0;
}

.modal-body {
  padding: 1.5rem;
}

.modal-body h2 {
  font-size: 1.75rem;
  margin-bottom: 0.5rem;
}

.modal-category {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  background-color: var(--secondary);
  border-radius: 999px;
  font-size: 0.875rem;
  margin-bottom: 1rem;
}

.modal-description {
  color: var(--muted-foreground);
  margin-bottom: 1.5rem;
}

.modal-tags-title {
  font-weight: 500;
  margin-bottom: 0.5rem;
}

.modal-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}

.modal-tag {
  padding: 0.5rem 1rem;
  background-color: var(--secondary);
  border-radius: 999px;
  font-size: 0.875rem;
}

.modal-link {
  display: inline-flex;
  align-items: center;
  padding: 0.5rem 1rem;
  background-color: var(--primary);
  color: var(--primary-foreground);
  border-radius: var(--radius);
  font-size: 0.875rem;
  font-weight: 500;
  transition: all 0.3s ease;
}

.modal-link svg {
  margin-left: 0.5rem;
}

.modal-link:hover {
  background-color: #292929;
}

/* Media Queries */
@media (min-width:700px) {
  .cta-buttons {

    flex-direction: row;
  }

  .timeline-meta {
    flex-direction: row;
    align-items: center;
  }

  .separator {
    display: inline-block;
    margin: 0 0.5rem;
  }

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

@media (min-width: 768px) {
  .section-title {
    font-size: 3rem;
  }

  .desktop-nav {
    display: flex;
    justify-content: space-evenly;
  }

  #mobile-menu-button {
    display: none;
    padding: 0 150px 0 0;
  }

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

  .about-grid {
    grid-template-columns: 1fr 1fr;
    align-items: center;
  }

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

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

  .portfolio-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .contact-grid {
    grid-template-columns: 1fr 2fr;

  }

  .footer-content {
    flex-direction: row;
    justify-content: space-between;
  }

  .modal-body {
    padding: 2rem;
  }
}

@media (min-width: 1024px) {
  .portfolio-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}