/* Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

/* CSS Variables */
:root {
  --primary-color: #2563eb;
  --primary-dark: #1d4ed8;
  --secondary-color: #64748b;
  --accent-color: #f59e0b;
  --text-color: #1e293b;
  --text-light: #64748b;
  --bg-color: #ffffff;
  --bg-secondary: #f8fafc;
  --border-color: #e2e8f0;
  --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
  --border-radius: 8px;
  --transition: all 0.3s ease;
}

/* Dark Mode Variables */
[data-theme="dark"] {
  --primary-color: #3b82f6;
  --primary-dark: #2563eb;
  --secondary-color: #94a3b8;
  --accent-color: #fbbf24;
  --text-color: #f1f5f9;
  --text-light: #cbd5e1;
  --bg-color: #0f172a;
  --bg-secondary: #1e293b;
  --border-color: #334155;
  --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.3);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.4);
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--text-color);
  background-color: var(--bg-color);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

.section {
  padding: 80px 0;
}

.section__title {
  font-size: 2.5rem;
  font-weight: 700;
  text-align: center;
  margin-bottom: 3rem;
  color: var(--text-color);
}

/* Header */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background-color: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  box-shadow: var(--shadow);
  z-index: 1000;
  transition: var(--transition);
}

[data-theme="dark"] .header {
  background-color: rgba(15, 23, 42, 0.95);
}

.nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 70px;
}

.nav__logo {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary-color);
  text-decoration: none;
}

.nav__list {
  display: flex;
  list-style: none;
  gap: 2rem;
}

.nav__link {
  color: var(--text-color);
  text-decoration: none;
  font-weight: 500;
  transition: var(--transition);
}

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

a[href='#contact'].nav__link {
  color: #ffffff;
  padding: 0.9rem 1.2rem;
  font-weight: 700;
  border-radius: 0.5rem;
  background-color: #2563eb;
  transition: var(--transition);
}

a[href='#contact'].nav__link:hover {
  background-color: var(--primary-dark);
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.nav__actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.theme-toggle {
  background: transparent;
  border: 2px solid var(--border-color);
  border-radius: 50%;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition);
  color: var(--text-color);
  padding: 0;
}

.theme-toggle:hover {
  background-color: var(--bg-secondary);
  border-color: var(--primary-color);
  transform: scale(1.1);
}

.theme-icon {
  width: 20px;
  height: 20px;
  transition: var(--transition);
}

.theme-icon--moon {
  display: none;
}

[data-theme="dark"] .theme-icon--sun {
  display: none;
}

[data-theme="dark"] .theme-icon--moon {
  display: block;
}

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

.nav__toggle span {
  width: 25px;
  height: 3px;
  background-color: var(--text-color);
  margin: 3px 0;
  transition: var(--transition);
}

/* Buttons */
.button {
  display: inline-block;
  padding: 12px 24px;
  background-color: var(--primary-color);
  color: white;
  text-decoration: none;
  border-radius: var(--border-radius);
  font-weight: 500;
  transition: var(--transition);
  border: 2px solid var(--primary-color);
}

a[href='#contact'].button {
  color: #ffffff;
  padding: 0.9rem 1.2rem;
  font-weight: 700;
  border-radius: 0.5rem;
  background-color: #2563eb;
}

.button:hover {
  background-color: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.button--ghost {
  background-color: transparent;
  color: var(--primary-color);
}

.button--ghost:hover {
  background-color: var(--primary-color);
  color: white;
}

.button--outline {
  background-color: transparent;
  color: var(--text-color);
  border: 2px solid var(--text-color);
}

.button--outline:hover {
  background-color: var(--text-color);
  color: white;
  border-color: var(--text-color);
}

/* Home Section */
.home {
  padding-top: 140px;
  min-height: 100vh;
  display: flex;
  align-items: center;
}

.home__container {
  width: 100%;
}

.home__content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.home__title {
  font-size: 3rem;
  font-weight: 800;
  margin-bottom: 1rem;
  line-height: 1.2;
  letter-spacing: -0.01em;
}

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

.home__subtitle {
  font-size: 1.5rem;
  color: var(--text-light);
  margin-bottom: 1.5rem;
}

.home__description {
  font-size: 1.1rem;
  color: var(--text-light);
  margin-bottom: 2rem;
  line-height: 1.7;
}

.home__buttons {
  display: flex;
  gap: 1rem;
}

.home__image {
  text-align: center;
}

.home__img {
  width: 100%;
  max-width: 400px;
  height: auto;
  border-radius: 50%;
  box-shadow: var(--shadow-lg);
}

/* About Section */
.about {
  background-color: var(--bg-secondary);
}

.about__subtitle {
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
  color: var(--primary-color);
}

.about__text {
  font-size: 1.1rem;
  color: var(--text-light);
  margin-bottom: 1.5rem;
  line-height: 1.7;
}

/* Experience Section */
.experience__container {
  display: grid;
  gap: 2rem;
}

.experience__card {
  background-color: white;
  padding: 2rem;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow);
  transition: var(--transition);
}

[data-theme="dark"] .experience__card {
  background-color: var(--bg-secondary);
}

.experience__card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

.experience__header {
  margin-bottom: 1.5rem;
}

.experience__title {
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--text-color);
  margin-bottom: 0.5rem;
}

.experience__company {
  font-size: 1.1rem;
  color: var(--primary-color);
  font-weight: 500;
  display: block;
  margin-bottom: 0.5rem;
}

.experience__date {
  color: var(--text-light);
  font-size: 0.9rem;
}

.experience__tech {
  color: var(--accent-color);
  font-weight: 500;
  margin-bottom: 1rem;
}

.experience__list {
  list-style: none;
}

.experience__list li {
  position: relative;
  padding-left: 1.5rem;
  margin-bottom: 0.5rem;
  color: var(--text-light);
}

.experience__list li::before {
  content: '▸';
  position: absolute;
  left: 0;
  color: var(--primary-color);
}

/* Featured Products Section */
.projects {
  background: linear-gradient(135deg, var(--bg-secondary) 0%, #f1f5f9 100%);
}

.projects__header {
  text-align: center;
  margin-bottom: 4rem;
}

.projects__subtitle {
  display: inline-block;
  color: var(--text-color);
  font-size: 1rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 0.5rem;
}

.projects__description {
  color: var(--text-light);
  font-size: 1.1rem;
  max-width: 600px;
  margin: 0 auto;
}

.projects__container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(380px, 1fr));
  gap: 2.5rem;
}

.product__card {
  background: white;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  border: 1px solid rgba(226, 232, 240, 0.8);
}

[data-theme="dark"] .product__card {
  background: var(--bg-secondary);
  border-color: var(--border-color);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.product__card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.12);
}

.product__card.featured {
  border: 2px solid var(--primary-color);
  background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
}

[data-theme="dark"] .product__card.featured {
  background: linear-gradient(135deg, var(--bg-secondary) 0%, #1e293b 100%);
}

.product__badge {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
  color: white;
  padding: 0.4rem 0.8rem;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  z-index: 2;
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
}

  .product__image {
    height: 240px;
    overflow: hidden;
    position: relative;
  }

.product__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: all 0.4s ease;
}

.product__overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.9), rgba(245, 158, 11, 0.8));
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: all 0.3s ease;
}

.product__card:hover .product__overlay {
  opacity: 1;
}

.product__card:hover .product__img {
  transform: scale(1.1);
}

.product__actions {
  display: flex;
  gap: 1rem;
}

.product__btn {
  padding: 0.8rem 1.5rem;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9rem;
  transition: all 0.3s ease;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.product__btn--primary {
  background: white;
  color: var(--primary-color);
  border: 2px solid white;
}

.product__btn--primary:hover {
  background: var(--primary-color);
  color: white;
  transform: translateY(-2px);
}

.product__btn--secondary {
  background: transparent;
  color: white;
  border: 2px solid white;
}

.product__btn--secondary:hover {
  background: white;
  color: var(--primary-color);
  transform: translateY(-2px);
}

.product__content {
  padding: 2rem;
}

.product__header {
  margin-bottom: 1rem;
}

.product__title {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-color);
  margin-bottom: 0.5rem;
}

.product__category {
  display: inline-block;
  background: var(--bg-secondary);
  color: var(--primary-color);
  padding: 0.3rem 0.8rem;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.product__description {
  color: var(--text-light);
  margin-bottom: 1.5rem;
  line-height: 1.7;
  font-size: 1rem;
}

.product__tech {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-bottom: 1.5rem;
}

.tech__tag {
  background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
  color: white;
  padding: 0.4rem 0.9rem;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 500;
  box-shadow: 0 2px 8px rgba(37, 99, 235, 0.2);
}

.product__stats {
  display: flex;
  gap: 2rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border-color);
}

.stat {
  text-align: center;
}

.stat__number {
  display: block;
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--primary-color);
  margin-bottom: 0.2rem;
}

.stat__label {
  font-size: 0.8rem;
  color: var(--text-light);
  text-transform: uppercase;
  letter-spacing: 1px;
}

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

.skills__category {
  background-color: white;
  padding: 2rem;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow);
}

[data-theme="dark"] .skills__category {
  background-color: var(--bg-secondary);
}

.skills__subtitle {
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
  color: var(--text-color);
}

.skills__list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
}

.skill__tag {
  background-color: var(--primary-color);
  color: white;
  padding: 0.5rem 1rem;
  border-radius: 20px;
  font-size: 0.9rem;
  font-weight: 500;
}

/* Contact Section */
.contact {
  background-color: var(--bg-secondary);
}

.contact__subtitle {
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
  color: var(--primary-color);
}

.contact__description {
  font-size: 1.1rem;
  color: var(--text-light);
  margin-bottom: 2rem;
  line-height: 1.7;
}

.contact__info {
  display: grid;
  gap: 1rem;
}

.contact__item {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.contact__label {
  font-weight: 600;
  color: var(--text-color);
  min-width: 80px;
}

.contact__link {
  color: var(--primary-color);
  text-decoration: none;
  transition: var(--transition);
}

.contact__link:hover {
  color: var(--primary-dark);
}

/* Footer */
.footer {
  background-color: var(--text-color);
  color: white;
  padding: 2rem 0;
  text-align: center;
}

[data-theme="dark"] .footer {
  background-color: #020617;
}

.footer__text {
  color: #cbd5e1;
}

/* Responsive Design */
@media screen and (max-width: 768px) {
  .container {
    padding: 0 16px;
  }

  .section {
    padding: 50px 0;
  }

  .nav__menu {
    position: fixed;
    top: 70px;
    left: -100%;
    width: 100%;
    height: calc(100vh - 70px);
    background-color: var(--bg-color);
    flex-direction: column;
    justify-content: center;
    transition: var(--transition);
  }

  [data-theme="dark"] .nav__menu {
    background-color: var(--bg-color);
  }

  .nav__menu.show-menu {
    left: 0;
  }

  .nav__list {
    flex-direction: column;
    text-align: center;
    gap: 1.5rem;
  }

  .nav__link {
    font-size: 1.1rem;
    padding: 0.5rem 0;
    display: block;
  }

  a[href='#contact'].nav__link {
    padding: 0.75rem 1.5rem;
    margin: 0 auto;
    width: fit-content;
  }

  .theme-toggle {
    width: 36px;
    height: 36px;
  }

  .theme-icon {
    width: 18px;
    height: 18px;
  }

  .nav__actions {
    gap: 0.5rem;
  }

  .nav__toggle {
    display: flex;
  }

  .section__title {
    font-size: 1.75rem;
    margin-bottom: 2rem;
  }

  .home {
    padding-top: 100px;
    min-height: auto;
    padding-bottom: 40px;
  }

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

  .home__title {
    font-size: 1.75rem;
    line-height: 1.3;
    margin-bottom: 0.75rem;
  }

  .home__subtitle {
    font-size: 1.1rem;
    margin-bottom: 1rem;
  }

  .home__description {
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
  }

  .home__buttons {
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.75rem;
  }

  .button {
    padding: 10px 20px;
    font-size: 0.9rem;
  }

  a[href='#contact'].button {
    padding: 0.75rem 1rem;
    font-size: 0.9rem;
  }

  .home__img {
    max-width: 280px;
  }

  .about__subtitle {
    font-size: 1.2rem;
    margin-bottom: 1rem;
  }

  .about__text {
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 1rem;
  }

  .experience__card {
    padding: 1.5rem;
  }

  .experience__title {
    font-size: 1.1rem;
  }

  .experience__company {
    font-size: 1rem;
  }

  .experience__date {
    font-size: 0.85rem;
  }

  .experience__list li {
    font-size: 0.9rem;
    line-height: 1.5;
  }

  .projects__subtitle {
    font-size: 0.85rem;
  }

  .projects__description {
    font-size: 0.95rem;
  }

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

  .product__card {
    border-radius: 12px;
  }

  .product__content {
    padding: 1.5rem;
  }

  .product__title {
    font-size: 1.25rem;
  }

  .product__description {
    font-size: 0.9rem;
    line-height: 1.6;
    margin-bottom: 1rem;
  }

  .product__stats {
    gap: 1rem;
    padding-top: 0.75rem;
  }

  .stat__number {
    font-size: 1rem;
  }

  .stat__label {
    font-size: 0.75rem;
  }

  .product__image {
    height: 200px;
  }

  .product__actions {
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
  }

  .product__btn {
    padding: 0.7rem 1.2rem;
    font-size: 0.85rem;
  }

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

  .skills__category {
    padding: 1.5rem;
  }

  .skills__subtitle {
    font-size: 1.1rem;
    margin-bottom: 1rem;
  }

  .skill__tag {
    padding: 0.4rem 0.8rem;
    font-size: 0.85rem;
  }

  .contact__subtitle {
    font-size: 1.2rem;
    margin-bottom: 1rem;
  }

  .contact__description {
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
  }

  .contact__item {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }

  .contact__label {
    min-width: auto;
    font-size: 0.9rem;
  }

  .contact__link {
    font-size: 0.9rem;
    word-break: break-all;
  }

  .footer {
    padding: 1.5rem 0;
  }

  .footer__text {
    font-size: 0.85rem;
    line-height: 1.5;
  }
}

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

  .section {
    padding: 40px 0;
  }

  .section__title {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
  }

  .home {
    padding-top: 80px;
    padding-bottom: 30px;
  }

  .home__title {
    font-size: 1.5rem;
    line-height: 1.25;
  }

  .home__subtitle {
    font-size: 1rem;
  }

  .home__description {
    font-size: 0.9rem;
  }

  .home__buttons {
    flex-direction: column;
    align-items: stretch;
    gap: 0.6rem;
    width: 100%;
  }

  .button {
    width: 100%;
    text-align: center;
    padding: 12px 20px;
    font-size: 0.9rem;
  }

  a[href='#contact'].button {
    width: 100%;
  }

  .home__img {
    max-width: 240px;
  }

  .experience__card {
    padding: 1.25rem;
  }

  .product__content {
    padding: 1.25rem;
  }

  .product__title {
    font-size: 1.1rem;
  }

  .product__description {
    font-size: 0.85rem;
  }

  .product__image {
    height: 180px;
  }

  .skills__category {
    padding: 1.25rem;
  }

  .nav__logo {
    font-size: 1.25rem;
  }
}