@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700;800&display=swap");
@import url("https://fonts.googleapis.com/css2?family=JetBrains+Mono:wght@400;500&display=swap");

::-webkit-scrollbar {
  width: 0;
}

:hover::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: transparent;
}

::-webkit-scrollbar-thumb {
  background: rgba(139, 49, 255, 0.2);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: rgba(139, 49, 255, 0.4);
}

* {
  scrollbar-width: none;
}

:root {
  --primary-color: #8b31ff;
  --secondary-color: #ff6b6b;
  --accent-color: #42e2b8;
  --bg-color: #ffffff;
  --text-color: #333333;
  --text-secondary: #666666;
  --light-bg: #f0f0f0;
  --dark-bg: #121212;
  --card-bg: #ffffff;
  --card-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  --transition: all 0.3s ease;
  --border-radius: 30px;
  --font-main: "Poppins", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
  --max-width: 1200px;
}

.dark-theme {
  --primary-color: #9747ff;
  --secondary-color: #ff8585;
  --bg-color: #000000;
  --text-color: #f2f2f2;
  --text-secondary: #bbbbbb;
  --light-bg: #121212;
  --card-bg: #121212;
  --card-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-main);
  color: var(--text-color);
  background-color: var(--bg-color);
  line-height: 1.6;
  overflow-x: hidden;
  transition: background-color 0.3s ease, color 0.3s ease;
}

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

ul {
  list-style: none;
}

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}

section {
  padding: 5rem 0;
}

.btn {
  display: inline-block;
  padding: 0.8rem 1.5rem;
  border-radius: 30px;
  font-weight: 600;
  transition: var(--transition);
  cursor: pointer;
  border: none;
  font-size: 1rem;
  font-family: var(--font-main);
}

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

.btn-primary:hover {
  background-color: var(--primary-color);
  transform: translateY(-3px);
  box-shadow: 0 10px 20px rgba(108, 99, 255, 0.2);
}

.btn-secondary {
  background-color: transparent;
  color: var(--primary-color);
  border: 2px solid var(--primary-color);
}

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

.section-title {
  font-size: 2.5rem;
  text-align: center;
  margin-bottom: 3rem;
  position: relative;
  padding-bottom: 1rem;
}

.section-title::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background: var(--primary-color);
  border-radius: 30px;
}

header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem 2rem;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  backdrop-filter: blur(10px);
  background-color: rgba(255, 255, 255, 0.8);
  transition: var(--transition);
  height: 80px;
}

.dark-theme header {
  background-color: rgba(0, 0, 0, 0.8);
}

.logo {
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--primary-color);
}

nav ul {
  display: flex;
  gap: 2rem;
}

nav a {
  font-weight: 600;
  position: relative;
}

nav a::after {
  content: "";
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--primary-color);
  transition: var(--transition);
}

nav a:hover::after {
  width: 100%;
}

.theme-toggle {
  cursor: pointer;
  font-size: 1.2rem;
}

.mobile-menu-btn {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
}

.bar {
  width: 25px;
  height: 3px;
  background-color: var(--text-color);
  transition: var(--transition);
}

#hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: 120px;
  padding-bottom: 40px;
}

.hero-content {
  flex: 1;
}

.hero-content h1 {
  font-size: 3.5rem;
  margin-bottom: 1rem;
  line-height: 1.2;
}

.hero-content h2 {
  font-size: 2rem;
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
}

.hero-content p {
  font-size: 1.2rem;
  margin-bottom: 2rem;
  max-width: 600px;
}

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

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

.hero-graphic {
  flex: 1;
  position: relative;
  height: 400px;
}

.blob-bg {
  width: 100%;
  height: 100%;
  position: absolute;
  top: 0;
  right: 0;
}

.code-graphic {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background-color: var(--light-bg);
  padding: 1.5rem;
  border-radius: var(--border-radius);
  box-shadow: var(--card-shadow);
  font-family: "JetBrains Mono", monospace;
  width: 80%;
}

.code-line {
  margin: 0.5rem 0;
}

.tag {
  color: #d35400;
}

.attr {
  color: #2850a7;
}

.value {
  color: #2a7a3c;
}

.dark-theme .tag {
  color: #e96228;
}

.dark-theme .attr {
  color: #4169e1;
}

.dark-theme .value {
  color: #3fb950;
}

.hero-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.about-content {
  position: relative;
  display: flex;
  align-items: center;
  gap: 3rem;
}

.about-text {
  flex: 1;
}

.about-text p {
  margin-bottom: 1.5rem;
  font-size: 1.1rem;
}

.about-stats {
  display: flex;
  justify-content: space-between;
  margin-top: 2.5rem;
}

.stat {
  text-align: center;
}

.stat-number {
  display: block;
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--primary-color);
  transition: color 0.3s ease;
}

.stat-label {
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.about-image {
  flex: 1;
  position: relative;
  height: 400px;
  display: block;
  margin: 0;
  transform: translateY(-20px);
}

.about-blob {
  width: 100%;
  height: 100%;
  position: absolute;
  top: 0;
  right: 0;
  z-index: 1;
}

.profile-image-placeholder {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 250px;
  height: 250px;
  background-color: var(--light-bg);
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  box-shadow: var(--card-shadow);
  z-index: 2;
}

.profile-image-placeholder i {
  font-size: 5rem;
  color: var(--primary-color);
}

.project-filters {
  display: flex;
  justify-content: center;
  margin-bottom: 2rem;
  flex-wrap: wrap;
  gap: 0.5rem;
  font-family: "Dank Mono", monospace;
}

.filter-btn {
  padding: 0.5rem 1rem;
  background-color: var(--light-bg);
  border: none;
  border-radius: 30px;
  cursor: pointer;
  transition: var(--transition);
  font-weight: 500;
}

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

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

.project-card {
  background-color: var(--card-bg);
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: var(--card-shadow);
  transition: var(--transition);
}

.project-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.project-img {
  height: 200px;
  overflow: hidden;
}

.project-placeholder {
  width: 100%;
  height: 100%;
  background-color: var(--light-bg);
  display: flex;
  justify-content: center;
  align-items: center;
}

.project-placeholder i {
  font-size: 3rem;
  color: var(--primary-color);
}

.project-info {
  padding: 1.5rem;
}

.project-info h3 {
  margin-bottom: 0.5rem;
  font-size: 1.3rem;
}

.project-info p {
  color: var(--text-secondary);
  margin-bottom: 1rem;
  font-size: 0.9rem;
}

.project-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.project-tags span {
  background-color: var(--light-bg);
  color: var(--text-color);
  padding: 0.3rem 0.8rem;
  border-radius: 30px;
  font-size: 0.75rem;
}

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

.project-link {
  color: var(--primary-color);
  font-size: 0.9rem;
  font-weight: 600;
  transition: var(--transition);
}

.project-link:hover {
  text-decoration: underline;
}

.see-more {
  text-align: center;
}

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

.skills-category h3 {
  margin-bottom: 1.5rem;
  font-size: 1.5rem;
  text-align: center;
}

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

.skill-item {
  background-color: var(--card-bg);
  border-radius: var(--border-radius);
  padding: 1.5rem;
  box-shadow: var(--card-shadow);
  transition: var(--transition);
}

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

.skill-icon {
  font-size: 2rem;
  color: var(--primary-color);
  margin-bottom: 0.5rem;
  text-align: center;
}

.skill-name {
  text-align: center;
  margin-bottom: 0.5rem;
  font-weight: 600;
}

.skill-bar {
  height: 8px;
  background-color: var(--light-bg);
  border-radius: 30px;
  overflow: hidden;
}

.skill-level {
  height: 100%;
  background-color: var(--primary-color);
  border-radius: 30px;
}

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

.contact-info h3 {
  font-size: 1.8rem;
  margin-bottom: 1rem;
}

.contact-info p {
  margin-bottom: 2rem;
}

.contact-details {
  margin-bottom: 2rem;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
}

.contact-item i {
  color: var(--primary-color);
  font-size: 1.2rem;
}

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

.social-icon {
  width: 40px;
  height: 40px;
  border-radius: 30px;
  background-color: var(--light-bg);
  display: flex;
  justify-content: center;
  align-items: center;
  transition: var(--transition);
}

.social-icon:hover {
  background-color: var(--primary-color);
  color: white;
  transform: translateY(-3px);
}

.contact-form {
  background-color: var(--card-bg);
  padding: 2rem;
  border-radius: var(--border-radius);
  box-shadow: var(--card-shadow);
}

.contact-form input,
.contact-form textarea {
  border-color: #dddddd;
  font-style: normal;
}

.contact-form input:-webkit-autofill,
.contact-form input:-webkit-autofill:hover,
.contact-form input:-webkit-autofill:focus,
.contact-form textarea:-webkit-autofill,
.contact-form textarea:-webkit-autofill:hover,
.contact-form textarea:-webkit-autofill:focus {
  -webkit-box-shadow: 0 0 0px 1000px var(--bg-color) inset !important;
  -webkit-text-fill-color: var(--text-color) !important;
  transition: background-color 5000s ease-in-out 0s;
}

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

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 600;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 0.8rem;
  border: 1px solid var(--light-bg);
  border-radius: var(--border-radius);
  background-color: var(--bg-color);
  color: var(--text-color);
  font-family: inherit;
  line-height: 1.5;
  height: 42px;
  font-style: normal;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: var(--text-secondary);
  opacity: 0.7;
}

.form-group textarea {
  min-height: 42px;
  resize: none;
  overflow-y: hidden;
  transition: height 0.2s ease;
}

.form-message {
  margin-top: 1rem;
  padding: 0.5rem;
  border-radius: var(--border-radius);
  text-align: center;
}

.form-message.success {
  background-color: #d4edda;
  color: #155724;
}

.form-message.error {
  background-color: #f8d7da;
  color: #721c24;
}

footer {
  background-color: var(--light-bg);
  padding: 2rem 0;
  margin-top: 3rem;
}

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

.footer-logo {
  font-size: 2rem;
  font-weight: 800;
  color: var(--primary-color);
}

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

@media (max-width: 1200px) {
  .container {
    max-width: 95%;
  }
}

@media (max-width: 992px) {
  html {
    font-size: 14px;
  }

  .hero-container {
    flex-direction: column;
    text-align: center;
    gap: 3rem;
  }

  .hero-content h1 {
    font-size: 3rem;
  }

  .hero-content p {
    margin: 0 auto 2rem;
  }

  .about-content {
    flex-direction: column;
    gap: 3rem;
  }

  .about-text {
    text-align: center;
  }

  .about-image {
    transform: none;
    height: 350px;
    margin: 0 auto;
  }

  .profile-image-placeholder {
    width: 200px;
    height: 200px;
  }

  .about-stats {
    justify-content: center;
  }

  .projects-grid {
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  }

  .skills-container {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .project-card:hover,
  .skill-item:hover,
  .btn:hover,
  .social-icon:hover {
    transform: translateY(-5px);
  }

  .stat-number {
    transition: color 0.3s ease;
  }

  .form-group input:focus,
  .form-group textarea:focus {
    border-color: var(--primary-color);
  }
}

@media (max-width: 768px) {
  header {
    padding: 1rem;
  }

  nav {
    display: none;
  }

  .mobile-menu-btn {
    display: flex;
  }

  .nav-mobile {
    display: block;
    position: fixed;
    top: 80px;
    left: 0;
    right: 0;
    background-color: var(--bg-color);
    padding: 1rem;
    box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
    animation: slideDown 0.3s ease-out;
  }

  .nav-mobile ul {
    flex-direction: column;
    gap: 1rem;
  }

  .nav-mobile li {
    opacity: 0;
    transform: translateX(-20px);
  }

  .hero-content h1 {
    font-size: 2.5rem;
  }

  .hero-content h2 {
    font-size: 1.8rem;
  }

  .section-title {
    font-size: 2rem;
  }

  .about-image {
    display: none;
  }

  .about-content {
    gap: 1rem;
  }

  .about-text {
    margin-bottom: 0;
  }

  .about-stats {
    margin: 2rem 0;
    flex-wrap: wrap;
    justify-content: center;
    gap: 2rem;
  }

  .project-filters {
    gap: 0.5rem;
  }

  .filter-btn {
    padding: 0.4rem 0.8rem;
    font-size: 0.9rem;
  }

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

  .contact-form {
    padding: 1.5rem;
  }

  .btn,
  .filter-btn,
  .project-link,
  .social-icon {
    min-height: 44px;
    min-width: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .form-group input,
  .form-group textarea {
    font-size: 16px;
  }

  .form-group {
    margin-bottom: 20px;
  }

  .form-group input,
  .form-group textarea {
    padding: 12px;
  }

  .nav-mobile a {
    padding: 12px 16px;
    display: block;
    width: 100%;
  }

  .project-card {
    transform: none !important;
    transition: opacity 0.3s ease;
  }

  .project-card:active {
    opacity: 0.7;
  }

  .btn:hover,
  .filter-btn:hover,
  .project-link:hover,
  .social-icon:hover {
    transform: none;
  }

  .btn:active,
  .filter-btn:active,
  .project-link:active,
  .social-icon:active {
    transform: scale(0.95);
  }

  .about-image {
    display: none;
  }

  .about-content {
    gap: 1rem;
  }

  .about-text {
    text-align: center;
    margin-bottom: 0;
  }

  .about-stats {
    margin: 2rem 0;
    flex-wrap: wrap;
    justify-content: center;
    gap: 2rem;
  }

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

  #projects {
    padding-top: 2rem;
  }

  .project-card:hover,
  .skill-item:hover {
    transform: none;
  }

  .project-card:active,
  .skill-item:active {
    transform: scale(0.98);
    opacity: 0.8;
  }

  .btn:active,
  .social-icon:active,
  .filter-btn:active {
    transform: scale(0.95);
    opacity: 0.8;
  }

  .form-group input,
  .form-group textarea {
    -webkit-tap-highlight-color: transparent;
    font-size: 16px;
  }

  .skill-level,
  .stat-number {
    transition: all 0.3s ease;
  }

  .contact-form {
    margin-top: 2rem;
  }

  .contact-social {
    padding: 1rem 0;
  }

  .nav-mobile a,
  .btn,
  .filter-btn,
  .social-icon {
    min-height: 44px;
    padding: 0.8rem 1.2rem;
  }
}

@media (max-width: 576px) {
  .about-stats {
    margin: 2rem 0;
  }

  #projects {
    padding-top: 1rem;
  }

  .container {
    padding: 0 1rem;
  }

  .hero-content h1 {
    font-size: 2rem;
  }

  .hero-content h2 {
    font-size: 1.4rem;
  }

  .hero-cta {
    flex-direction: column;
    gap: 1rem;
  }

  .btn {
    width: 100%;
    text-align: center;
  }

  .about-stats {
    flex-direction: column;
    gap: 1.5rem;
    align-items: center;
  }

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

  .project-filters {
    flex-wrap: wrap;
    justify-content: center;
  }

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

  .contact-social {
    justify-content: center;
  }

  .form-group input,
  .form-group textarea {
    padding: 0.6rem;
  }

  .project-links a {
    padding: 0.8rem;
    margin: 0.2rem;
  }

  .project-info p {
    font-size: 1rem;
  }

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

  .form-group label {
    margin-bottom: 0.4rem;
  }

  .stat-number {
    font-size: 2rem;
  }
}

@media (max-width: 360px) {
  .hero-content h1 {
    font-size: 1.8rem;
  }

  .hero-content p {
    font-size: 1rem;
  }

  .section-title {
    font-size: 1.8rem;
  }

  .project-info h3 {
    font-size: 1.2rem;
  }

  .skill-icon {
    font-size: 1.5rem;
  }
}

@keyframes slideDown {
  from {
    transform: translateY(-20px);
    opacity: 0;
  }

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