/* Modern CSS Reset */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: #1d1d1f;
  background-color: #ffffff;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

ul {
  list-style: none;
}

button {
  font-family: inherit;
  cursor: pointer;
}

h1, h2, h3, h4, h5, h6 {
  font-weight: 600;
  line-height: 1.2;
}

/* Navigation Bar */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 48px;
  background-color: rgba(255, 255, 255, 0.8);
  backdrop-filter: saturate(180%) blur(20px);
  z-index: 1000;
  transition-property: background-color, box-shadow;
  transition-duration: 0.3s;
  transition-timing-function: cubic-bezier(0.28, 0.11, 0.32, 1);
}

.navbar.scrolled {
  background-color: rgba(255, 255, 255, 0.95);
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.1);
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
  height: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.nav-logo a {
  font-size: 21px;
  font-weight: 600;
  color: #1d1d1f;
  transition-property: opacity;
  transition-duration: 0.3s;
  transition-timing-function: cubic-bezier(0.28, 0.11, 0.32, 1);
}

.nav-logo a:hover {
  opacity: 0.7;
}

.nav-menu {
  display: flex;
  gap: 2rem;
}

.nav-link {
  font-size: 14px;
  font-weight: 400;
  color: #19747E;
  padding: 8px 12px;
  border-radius: 8px;
  transition-property: background-color, color;
  transition-duration: 0.3s;
  transition-timing-function: cubic-bezier(0.28, 0.11, 0.32, 1);
}

.nav-link:hover {
  background-color: rgba(25, 116, 126, 0.15);
  color: #1c8a95;
}

.hamburger {
  display: none;
  flex-direction: column;
  cursor: pointer;
  gap: 5px;
}

.hamburger .bar {
  width: 25px;
  height: 2px;
  background-color: #1d1d1f;
  border-radius: 3px;
  transition-property: transform, opacity;
  transition-duration: 0.3s;
  transition-timing-function: cubic-bezier(0.28, 0.11, 0.32, 1);
}

.hamburger.active .bar:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.hamburger.active .bar:nth-child(2) {
  opacity: 0;
}

.hamburger.active .bar:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Hero Section */
.hero {
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  background: linear-gradient(135deg, #f5f5f7 0%, #ffffff 100%);
  position: relative;
  overflow: hidden;
  padding-top: 48px;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(circle at 30% 50%, rgba(25, 116, 126, 0.05) 0%, transparent 50%);
  pointer-events: none;
}

.hero-content {
  text-align: center;
  z-index: 1;
  max-width: 900px;
  padding: 0 2rem;
}

.hero-title {
  font-size: clamp(48px, 8vw, 96px);
  font-weight: 700;
  color: #1d1d1f;
  margin-bottom: 2rem;
  line-height: 1.05;
  letter-spacing: -0.015em;
}

.hero-subtitle {
  font-size: clamp(21px, 3vw, 28px);
  color: #6e6e73;
  margin-bottom: 4rem;
  font-weight: 400;
}

.cta-button {
  display: inline-block;
  padding: 14px 28px;
  border-radius: 980px;
  font-size: 17px;
  font-weight: 400;
  text-decoration: none;
  text-align: center;
  cursor: pointer;
  border: none;
  background-color: #19747E;
  color: #ffffff;
  transition-property: background-color, transform, box-shadow;
  transition-duration: 0.3s;
  transition-timing-function: cubic-bezier(0.28, 0.11, 0.32, 1);
}

.cta-button:hover {
  background-color: #1c8a95;
  transform: scale(1.02);
  box-shadow: 0 4px 20px rgba(25, 116, 126, 0.3);
}

.cta-button:active {
  transform: scale(0.98);
}

/* Scroll Indicator */
.scroll-indicator {
  position: absolute;
  bottom: 4rem;
  left: 50%;
  transform: translateX(-50%);
  animation: bounce 2s infinite;
}

.mouse {
  width: 30px;
  height: 50px;
  border: 2px solid #6e6e73;
  border-radius: 20px;
  position: relative;
}

.wheel {
  width: 4px;
  height: 8px;
  background-color: #6e6e73;
  border-radius: 2px;
  position: absolute;
  top: 8px;
  left: 50%;
  transform: translateX(-50%);
  animation: scroll 2s infinite;
}

@keyframes bounce {
  0%, 100% {
    transform: translateX(-50%) translateY(0);
  }
  50% {
    transform: translateX(-50%) translateY(-10px);
  }
}

@keyframes scroll {
  0% {
    opacity: 1;
    top: 8px;
  }
  100% {
    opacity: 0;
    top: 28px;
  }
}

.fade-in {
  animation: fadeIn 1s ease-out;
}

.fade-in-delay {
  animation: fadeIn 1s ease-out 0.3s both;
}

.fade-in-delay-2 {
  animation: fadeIn 1s ease-out 0.6s both;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Common Section Styles */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

.section-header {
  text-align: center;
  margin-bottom: 6rem;
}

.section-title {
  font-size: clamp(40px, 5vw, 56px);
  font-weight: 600;
  color: #1d1d1f;
  margin-bottom: 1rem;
  letter-spacing: -0.015em;
}

.title-underline {
  width: 60px;
  height: 4px;
  background: linear-gradient(90deg, #19747E, #1c8a95);
  margin: 0 auto;
  border-radius: 2px;
}

/* About Section */
.about-section {
  padding: 8rem 0;
  background-color: #f5f5f7;
}

/* About Grid - Side by Side Layout */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6rem;
  margin-bottom: 6rem;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
}

/* Howdy Section (Left Side) */
.howdy-section {
  animation: fadeInLeft 0.8s ease-out;
}

.section-header-inline {
  margin-bottom: 3rem;
}

.section-title-inline {
  font-size: 48px;
  font-weight: 600;
  color: #1d1d1f;
  margin-bottom: 1rem;
  letter-spacing: -0.015em;
}

.title-underline-inline {
  width: 60px;
  height: 4px;
  background: linear-gradient(90deg, #19747E, #1c8a95);
  border-radius: 2px;
}

.howdy-content h3 {
  font-size: 28px;
  margin-bottom: 2rem;
  color: #1d1d1f;
  font-weight: 600;
}

.howdy-content p {
  font-size: 17px;
  line-height: 1.7;
  color: #6e6e73;
  margin-bottom: 1.5rem;
}

.howdy-content p:last-child {
  margin-bottom: 0;
}

/* Skills Section (Right Side) */
.skills-side-section {
  animation: fadeInRight 0.8s ease-out;
}

.skills-side-grid {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.skill-side-item {
  transition-property: transform;
  transition-duration: 0.3s;
  transition-timing-function: cubic-bezier(0.28, 0.11, 0.32, 1);
}

.skill-side-item:hover {
  transform: translateX(8px);
}

.skill-side-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.75rem;
}

.skill-side-name {
  font-size: 17px;
  font-weight: 500;
  color: #1d1d1f;
}

.skill-side-percentage {
  font-size: 15px;
  font-weight: 600;
  color: #19747E;
}

.skill-side-bar {
  width: 100%;
  height: 8px;
  background: #e5e5ea;
  border-radius: 10px;
  overflow: hidden;
  position: relative;
}

.skill-side-fill {
  height: 100%;
  background: linear-gradient(90deg, #19747E 0%, #1c8a95 100%);
  border-radius: 10px;
  transition-property: width;
  transition-duration: 1.5s;
  transition-timing-function: cubic-bezier(0.28, 0.11, 0.32, 1);
  position: relative;
}

.skill-side-fill::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(90deg, transparent 0%, rgba(255, 255, 255, 0.3) 50%, transparent 100%);
  animation: shimmer 2s infinite;
}

/* Animations */
@keyframes fadeInLeft {
  from {
    opacity: 0;
    transform: translateX(-30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes fadeInRight {
  from {
    opacity: 0;
    transform: translateX(30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.about-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  max-width: 900px;
  margin: 0 auto;
}

.stat-card {
  background: #ffffff;
  padding: 2rem;
  border-radius: 16px;
  text-align: center;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  transition-property: transform, box-shadow;
  transition-duration: 0.3s;
  transition-timing-function: cubic-bezier(0.28, 0.11, 0.32, 1);
}

.stat-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}

.stat-card h3 {
  font-size: 48px;
  color: #19747E;
  margin-bottom: 0.5rem;
  font-weight: 700;
}

.stat-card p {
  font-size: 14px;
  color: #6e6e73;
  font-weight: 500;
}

/* Projects Section */
.projects-section {
  padding: 8rem 0;
  background-image: url('../../images/bg.jpg');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  background-repeat: no-repeat;
  position: relative;
}

.projects-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(255, 255, 255, 0.92);
  z-index: 0;
}

.projects-section .container {
  position: relative;
  z-index: 1;
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 4rem;
}

.project-card {
  background: #ffffff;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  transition-property: transform, box-shadow;
  transition-duration: 0.3s;
  transition-timing-function: cubic-bezier(0.28, 0.11, 0.32, 1);
}

.project-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
}

.project-card:hover .project-overlay {
  opacity: 1;
}

.project-image {
  position: relative;
  height: 250px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  overflow: hidden;
}

.project-thumbnail {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

.project-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.85);
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0;
  transition-property: opacity;
  transition-duration: 0.3s;
  transition-timing-function: cubic-bezier(0.28, 0.11, 0.32, 1);
}

.project-links {
  display: flex;
  gap: 1rem;
}

.project-link {
  padding: 10px 20px;
  background: #ffffff;
  color: #1d1d1f;
  border-radius: 980px;
  font-size: 14px;
  font-weight: 500;
  transition-property: background-color, transform;
  transition-duration: 0.3s;
  transition-timing-function: cubic-bezier(0.28, 0.11, 0.32, 1);
}

.project-link:hover {
  background: #19747E;
  color: #ffffff;
  transform: scale(1.05);
}

.project-info {
  padding: 2rem;
}

.project-info h3 {
  font-size: 24px;
  margin-bottom: 0.5rem;
  color: #1d1d1f;
}

.project-tech {
  font-size: 14px;
  color: #19747E;
  margin-bottom: 1rem;
  font-weight: 500;
}

.project-info p {
  font-size: 16px;
  line-height: 1.5;
  color: #6e6e73;
}

/* Skills Section */
.skills-section {
  padding: 8rem 0;
  background-color: #f5f5f7;
}

.skills-progress-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 3rem 4rem;
  max-width: 900px;
  margin: 0 auto;
}

.skill-progress-item {
  transition-property: transform;
  transition-duration: 0.3s;
  transition-timing-function: cubic-bezier(0.28, 0.11, 0.32, 1);
}

.skill-progress-item:hover {
  transform: translateX(8px);
}

.skill-progress-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.75rem;
}

.skill-name {
  font-size: 17px;
  font-weight: 500;
  color: #1d1d1f;
}

.skill-percentage {
  font-size: 15px;
  font-weight: 600;
  color: #19747E;
}

.skill-progress-bar {
  width: 100%;
  height: 8px;
  background: #e5e5ea;
  border-radius: 10px;
  overflow: hidden;
  position: relative;
}

.skill-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #19747E 0%, #1c8a95 100%);
  border-radius: 10px;
  transition-property: width;
  transition-duration: 1.5s;
  transition-timing-function: cubic-bezier(0.28, 0.11, 0.32, 1);
  position: relative;
}

.skill-progress-fill::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(90deg, transparent 0%, rgba(255, 255, 255, 0.3) 50%, transparent 100%);
  animation: shimmer 2s infinite;
}

@keyframes shimmer {
  0% {
    transform: translateX(-100%);
  }
  100% {
    transform: translateX(100%);
  }
}

/* Contact Section */
.contact-section {
  padding: 8rem 0;
}

.contact-content {
  max-width: 800px;
  margin: 0 auto;
}

.contact-subtitle {
  font-size: 24px;
  color: #6e6e73;
  text-align: center;
  margin-bottom: 4rem;
}

.contact-details {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  margin-bottom: 4rem;
}

.contact-item {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1rem;
  padding: 2rem;
  background: #f5f5f7;
  border-radius: 12px;
  transition-property: transform, box-shadow;
  transition-duration: 0.3s;
  transition-timing-function: cubic-bezier(0.28, 0.11, 0.32, 1);
}

.contact-item:hover {
  transform: translateY(-3px);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.contact-item a {
  font-size: 19px;
  color: #19747E;
  transition-property: color;
  transition-duration: 0.3s;
  transition-timing-function: cubic-bezier(0.28, 0.11, 0.32, 1);
}

.contact-item a:hover {
  color: #1c8a95;
}

.contact-icon {
  width: 24px;
  height: 24px;
  color: #19747E;
}

.social-links {
  display: flex;
  justify-content: center;
  gap: 2rem;
  margin-top: 4rem;
}

.social-link {
  width: 50px;
  height: 50px;
  display: flex;
  justify-content: center;
  align-items: center;
  background: #1d1d1f;
  color: #ffffff;
  border-radius: 50%;
  transition-property: transform, background-color;
  transition-duration: 0.3s;
  transition-timing-function: cubic-bezier(0.28, 0.11, 0.32, 1);
}

.social-link svg {
  width: 24px;
  height: 24px;
}

.social-link:hover {
  transform: scale(1.1);
  background: #19747E;
}

/* Footer */
.footer {
  background-color: #1d1d1f;
  color: #86868b;
  padding: 4rem 0;
  text-align: center;
}

.footer-content p {
  font-size: 14px;
  margin-bottom: 0.5rem;
}

.footer-content p:last-child {
  margin-bottom: 0;
}

.footer-content a {
  color: #19747E;
  transition-property: color;
  transition-duration: 0.3s;
  transition-timing-function: cubic-bezier(0.28, 0.11, 0.32, 1);
}

.footer-content a:hover {
  color: #1c8a95;
}

.footer-publication {
  margin-top: 1rem;
  font-size: 13px;
}

/* Responsive Design */
@media (max-width: 768px) {
  .nav-container {
    padding: 0 1rem;
  }

  .nav-menu {
    position: fixed;
    left: -100%;
    top: 48px;
    flex-direction: column;
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: saturate(180%) blur(20px);
    width: 100%;
    padding: 2rem 0;
    gap: 0;
    transition-property: left;
    transition-duration: 0.3s;
    transition-timing-function: cubic-bezier(0.28, 0.11, 0.32, 1);
  }

  .nav-menu.active {
    left: 0;
  }

  .nav-link {
    display: block;
    padding: 1rem 2rem;
    font-size: 17px;
    border-radius: 0;
  }

  .nav-link:hover {
    background-color: rgba(25, 116, 126, 0.15);
    color: #1c8a95;
  }

  .hamburger {
    display: flex;
  }

  .hero-title {
    font-size: 48px;
  }

  .hero-subtitle {
    font-size: 21px;
  }

  .section-header {
    margin-bottom: 4rem;
  }

  .about-section,
  .projects-section,
  .contact-section {
    padding: 4rem 0;
  }

  .about-grid {
    grid-template-columns: 1fr;
    gap: 4rem;
    margin-bottom: 4rem;
  }

  .section-title-inline {
    font-size: 32px;
  }

  .howdy-content h3 {
    font-size: 24px;
  }

  .howdy-content p {
    font-size: 16px;
  }

  .about-stats {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .projects-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .skills-progress-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .container {
    padding: 0 1rem;
  }
}
