:root {
  --primary-color: #6c63ff;
  --secondary-color: #ff6584;
  --accent-color: #00c9a7;
  --text-color: #ffffff;
  --bg-color: #111111;
}

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

body {
  font-family: 'Poppins', sans-serif;
  background-color: var(--bg-color);
  color: var(--text-color);
  line-height: 1.6;
  overflow-x: hidden;
  padding: env(safe-area-inset-top) env(safe-area-inset-right) env(safe-area-inset-bottom) env(safe-area-inset-left);
}

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

.sa-btn-outline::before {
  background: linear-gradient(45deg, var(--accent-color), #00e6c3);
  opacity: 0;
}

.sa-btn-outline:hover::before {
  opacity: 1;
}

/* Boot Screen */
.boot-screen {
  height: 100vh;
  width: 100%;
  background-color: black;
  color: white;
  font-family: 'Consolas', monospace;
  padding: 20px;
  position: fixed;
  top: 0;
  left: 0;
  z-index: 1000;
  overflow: hidden;
}

.boot-messages {
  max-width: 800px;
  margin: 0;
  padding-top: 50px;
  padding-left: 40px;
}

.boot-message {
  margin-bottom: 10px;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.boot-message.show {
  opacity: 1;
}

.boot-message.success {
  color: white;
}

.boot-message.error {
  color: #ff4d4d;
}

.boot-message.highlight {
  color: #2a9d8f;
}

/* Loading Screen */
.loading-screen {
  height: 100vh;
  width: 100%;
  background-color: black;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  position: fixed;
  top: 0;
  left: 0;
  z-index: 999;
  opacity: 0;
  transition: opacity 0.5s ease;
}

.loading-screen.show {
  opacity: 1;
}

.loading-bar-container {
  width: 250px;
  height: 8px;
  background-color: #333;
  border-radius: 4px;
  overflow: hidden;
  margin-bottom: 10px;
  box-shadow: 0 0 10px rgba(108, 99, 255, 0.5);
}

@media (max-width: 768px) {
  .loading-bar-container {
    width: 70%;
    max-width: 220px;
  }
}

@media (max-width: 480px) {
  .loading-bar-container {
    width: 60%;
    max-width: 180px;
    height: 6px;
  }
  
  .loading-text {
    font-size: 14px;
  }
}

.loading-bar {
  height: 100%;
  width: 0%;
  background: linear-gradient(to right, var(--primary-color), var(--secondary-color));
  border-radius: 6px;
  transition: width 0.5s ease;
}

.loading-text {
  font-family: 'Consolas', monospace;
  font-size: 16px;
  color: rgba(255, 255, 255, 0.9);
  font-weight: 500;
}

/* Home Page */
.home-page {
  min-height: 100vh;
  opacity: 0;
  transition: opacity 1s ease;
  display: none;
  overflow-x: hidden;
  perspective: 1000px;
  padding-top: calc(80px + env(safe-area-inset-top)); /* Spazio per la navbar fixed con supporto per notch */
}

.home-page.show {
  opacity: 1;
  display: block;
}

.background {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(ellipse at center, #222 0%, #111 70%, #000 100%);
  z-index: -1;
  overflow: hidden;
}

.background::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: url('https://images.unsplash.com/photo-1550745165-9bc0b252726f?ixlib=rb-4.0.3&auto=format&fit=crop&w=2070&q=80') center/cover no-repeat;
  opacity: 0.1;
  z-index: -1;
  animation: slowZoom 30s infinite alternate;
}

@keyframes slowZoom {
  0% { transform: scale(1); }
  100% { transform: scale(1.1); }
}

.particles {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  z-index: -1;
}

.particle {
  position: absolute;
  display: block;
  pointer-events: none;
  filter: blur(1px);
  background: linear-gradient(to right, var(--primary-color), var(--secondary-color));
  border-radius: 50%;
  animation: float 15s infinite ease-in-out;
}

@keyframes float {
  0% { transform: translateY(0) translateX(0) rotate(0deg); opacity: 0; }
  10% { opacity: 1; }
  90% { opacity: 1; }
  100% { transform: translateY(-100vh) translateX(100px) rotate(360deg); opacity: 0; }
}

.navbar {
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  width: 100% !important;
  padding: 25px 40px;
  padding-top: calc(25px + env(safe-area-inset-top));
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 1000;
  background-color: rgba(0, 0, 0, 0.95) !important;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.5);
  transition: all 0.3s ease;
}

.navbar.scrolled {
  padding: 20px 40px;
  background-color: #000000 !important;
}

@media (max-width: 768px) {
  .navbar, .navbar.scrolled {
    background-color: rgba(0, 0, 0, 0.95);
    padding: 15px 20px;
    padding-top: calc(15px + env(safe-area-inset-top));
  }
  
  .navbar-img {
    height: 30px; /* Smaller size for mobile */
  }
}

.logo {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-color);
  text-decoration: none;
  transition: all 0.3s ease;
  position: relative;
  z-index: 100;
  display: flex;
  align-items: center;
}

.logo-img {
  height: 40px;
  width: auto;
  margin-right: 10px;
  transition: transform 0.3s ease;
}

.navbar-img {
  height: 40px;
  width: auto;
  transition: transform 0.3s ease;
  mix-blend-mode: lighten;
}

.logo:hover .logo-img {
  transform: scale(1.1) rotate(5deg);
}

.logo:hover .navbar-img {
  transform: scale(1.05);
}

.logo-text {
  background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
  -webkit-background-clip: text;
  -moz-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
  transition: all 0.3s ease;
  /* Fallback for browsers that don't support background-clip: text */
  position: relative;
  z-index: 1;
}

.logo::after {
  content: '';
  position: absolute;
  bottom: -3px;
  left: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(to right, var(--primary-color), var(--secondary-color));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
}

.logo:hover::after {
  transform: scaleX(1);
}

.nav-links {
  display: flex;
  gap: 40px;
  margin-left: 0;
}

@media (max-width: 768px) {
  .navbar {
    padding: 15px 20px;
  }
  
  /* Hamburger Menu */
  .hamburger-menu {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 21px;
    cursor: pointer;
    z-index: 1001;
  }

  .bar {
    width: 100%;
    height: 3px;
    background-color: var(--text-color);
    transition: all 0.3s ease;
    border-radius: 2px;
  }
  
  .nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    width: 70%;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.95);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 25px;
    transition: right 0.3s ease;
    z-index: 1000;
    padding: 50px 0;
    padding-top: calc(50px + env(safe-area-inset-top));
    overflow: hidden;
  }
  
  .nav-links::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
  }
  
  .nav-links .mobile-particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
  }
  
  .nav-links.active {
    right: 0;
  }
  
  .nav-link {
    font-size: 18px;
    padding: 10px 0;
  }
  
  .logo {
    font-size: 18px;
  }
  
  /* Animazione hamburger quando attivo */
  .hamburger-menu.active .bar:nth-child(1) {
    transform: translateY(9px) rotate(45deg);
  }
  
  .hamburger-menu.active .bar:nth-child(2) {
    opacity: 0;
  }
  
  .hamburger-menu.active .bar:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
  }
}

@media (max-width: 576px) {
  .navbar {
    padding: 12px 15px;
  }
  
  .logo {
    font-size: 16px;
  }
  
  .nav-links {
    width: 80%;
  }
  
  .nav-link {
    font-size: 16px;
  }
}

@media (max-width: 480px) {
  body {
    font-size: 14px;
  }
  
  .navbar {
    padding: 10px 15px;
  }
  
  .logo {
    font-size: 14px;
  }
  
  .nav-links {
    width: 85%;
  }
  
  .nav-link {
    font-size: 15px;
  }
  
  .btn {
    padding: 8px 16px;
    font-size: 0.85rem;
  }
}

@media (max-width: 360px) {
  .navbar {
    padding: 8px 12px;
  }
  
  .logo {
    font-size: 13px;
  }
  
  .nav-link {
    font-size: 14px;
  }
  
  .hamburger-menu {
    width: 25px;
    height: 18px;
  }
  
  .bar {
    height: 2px;
  }
}

.nav-link {
  color: var(--text-color);
  text-decoration: none;
  font-weight: 700;
  font-size: 18px;
  position: relative;
  padding: 5px 0;
  margin: 0 5px;
  transition: all 0.3s;
}

.nav-link::before {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(to right, var(--primary-color), var(--secondary-color));
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.3s ease;
}

.nav-link:hover {
  color: var(--primary-color);
  text-shadow: 0 0 8px rgba(108, 99, 255, 0.3);
}

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

.hero {
  height: 100vh;
  display: flex;
  align-items: center;
  padding: 100px 5% 0;
  position: relative;
  overflow: hidden;
}

.hero-content {
  max-width: 700px;
  position: relative;
  z-index: 2;
  animation: fadeInUp 1s ease-out forwards;
  opacity: 0;
  transform: translateY(30px);
  margin: 0 auto;
  text-align: center;
  padding: 20px;
}

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

.hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: calc(100vh - 80px);
  padding: 40px 20px;
}

.hero-title {
  font-size: 4.2rem;
  font-weight: 700;
  margin-bottom: 25px;
  line-height: 1.2;
  position: relative;
  overflow: visible;
  text-align: center;
}

@media (max-width: 768px) {
  .hero-title {
    font-size: 2.7rem;
  }
  
  .hero-subtitle {
    font-size: 1.1rem;
    padding: 0 15px;
  }
  
  .hero {
    padding-top: 70px;
    height: auto;
    min-height: 80vh;
  }
  
  .section {
    padding: 50px 20px;
  }
  
  .section-title {
    font-size: 1.8rem;
  }
  
  .section-subtitle {
    font-size: 1rem;
  }
  
  .projects-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  
  .skills-content {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }
  
  .contact-form {
    padding: 15px;
  }
}

@media (max-width: 576px) {
  .hero-title {
    font-size: 2.2rem;
    margin-left: auto;
    margin-right: auto;
    width: 100%;
    padding: 0;
    overflow: visible;
    text-align: center;
    margin-top: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
  }
  
  .hero-title .first-line,
  .hero-title .second-line {
    margin: 0;
    padding: 0;
    width: auto;
    display: block;
    text-align: center;
  }
  
  .hero-title .second-line {
    margin-top: 5px;
  }
  
  .hero-subtitle {
    font-size: 0.9rem;
    margin-left: auto;
    margin-right: auto;
    width: 100%;
    margin-top: 20px;
    margin-bottom: 30px;
  }
  
  .hero-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    overflow: visible;
    padding: 0 15px;
  }
  
  .hero {
    padding-top: 40px;
    padding-bottom: 30px;
    min-height: 80vh;
    text-align: center;
    overflow: visible;
  }
  
  .section {
    padding: 40px 15px;
  }
  
  .section-title {
    font-size: 1.5rem;
    margin-bottom: 10px;
  }
  
  .section-subtitle {
    font-size: 0.9rem;
    margin-bottom: 20px;
  }
  
  .about-content p {
    font-size: 0.9rem;
    margin-bottom: 10px;
  }
}

.hero-title .highlight {
  color: transparent;
  background: linear-gradient(to right, var(--primary-color), var(--secondary-color), var(--accent-color));
  -webkit-background-clip: text;
  background-clip: text;
  position: relative;
  display: inline-block;
  animation: gradientText 8s infinite;
}

.hero-title .first-line,
.hero-title .second-line {
  display: block;
  white-space: nowrap;
  text-align: center;
  width: 100%;
  line-height: 1.1;
  overflow: visible;
}

@keyframes gradientText {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

.hero-subtitle {
  font-size: 1.5rem;
  margin-bottom: 40px;
  color: rgba(255, 255, 255, 0.8);
  animation: fadeIn 1.5s ease-out forwards;
  animation-delay: 0.3s;
  opacity: 0;
  text-align: center;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

@keyframes fadeIn {
  to { opacity: 1; }
}

.hero-buttons {
  display: flex;
  gap: 20px;
  animation: fadeIn 1.5s ease-out forwards;
  animation-delay: 0.6s;
  opacity: 0;
  justify-content: center;
  margin-left: 0;
  flex-direction: row;
  flex-wrap: nowrap;
}

@media (max-width: 768px) {
  .hero-buttons {
    gap: 10px;
  }
  
  .btn {
    padding: 8px 16px;
    font-size: 0.85rem;
  }
}

.btn {
  display: inline-block;
  padding: 12px 30px;
  border-radius: 50px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  z-index: 1;
  border: none;
  cursor: pointer;
}

.btn.scrolled {
  padding: 10px 25px;
  background-color: rgba(108, 99, 255, 0.9);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

/* Mantieni il pulsante Contattami trasparente anche durante lo scroll */
.btn-outline.scrolled {
  background-color: transparent;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
  border-radius: 50px;
  z-index: -1;
  transition: all 0.3s ease;
}

/* Stile specifico per il pulsante Contattami */
.btn-outline {
  background: transparent;
  border: 2px solid var(--primary-color);
  color: var(--text-color);
}

.btn-outline::before {
  background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
  opacity: 0;
}

.btn-outline:hover::before {
  opacity: 1;
}

/* Stile per il pulsante Progetti */
.btn-primary {
  background: transparent;
  color: var(--text-color);
}

.btn::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(to right, var(--primary-color), var(--secondary-color));
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.3s ease;
}

.btn:hover::after {
  transform: scaleX(1);
  transform-origin: left;
}

.btn:active {
  transform: scale(0.95);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

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

.btn-primary:hover {
  box-shadow: 0 7px 20px rgba(108, 99, 255, 0.6);
  transform: translateY(-3px);
}

.btn-primary:hover::before {
  opacity: 1;
}

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

.btn-outline:hover {
  border-color: transparent;
  box-shadow: 0 7px 20px rgba(255, 101, 132, 0.6);
  transform: translateY(-3px);
}

.btn-outline:hover::before {
  opacity: 1;
}

.social-links {
  margin-top: 40px;
  display: flex;
  gap: 15px;
  animation: fadeIn 1.5s ease-out forwards;
  animation-delay: 0.9s;
  justify-content: center;
  opacity: 0;
}

.social-link {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.1);
  display: flex;
  justify-content: center;
  align-items: center;
  transition: all 0.3s;
  position: relative;
  overflow: hidden;
}

.social-link::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: 0;
}

.social-link svg {
  position: relative;
  z-index: 1;
}

.social-link:hover {
  transform: translateY(-5px) rotate(360deg);
  box-shadow: 0 5px 15px rgba(108, 99, 255, 0.4);
}

.social-link:hover::before {
  opacity: 1;
}

/* Sezioni */
.section {
  padding: 100px 10%;
  position: relative;
  overflow: hidden;
}

.section-title {
  font-size: 2.5rem;
  margin-bottom: 20px;
  position: relative;
  display: inline-block;
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s ease;
}

.section-title.in-view {
  opacity: 1;
  transform: translateY(0);
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 0;
  width: 60px;
  height: 4px;
  background: linear-gradient(to right, var(--primary-color), var(--secondary-color));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.5s ease 0.3s;
}

.section-title.in-view::after {
  transform: scaleX(1);
}

.section-subtitle {
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 50px;
  max-width: 600px;
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.8s ease 0.2s;
}

.section-subtitle.in-view {
  opacity: 1;
  transform: translateY(0);
}

/* Stili per il form di contatto */
.contact-form {
  max-width: 600px;
  margin: 0 0 0 20px;
  background-color: rgba(0, 0, 0, 0.3);
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(5px);
}

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

.form-group label {
  display: block;
  margin-bottom: 8px;
  font-weight: 500;
  color: var(--text-color);
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 12px 15px;
  background-color: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 5px;
  color: var(--text-color);
  font-family: 'Poppins', sans-serif;
  font-size: 16px;
  transition: all 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 10px rgba(108, 99, 255, 0.3);
}

.form-status {
  margin-top: 20px;
  padding: 10px;
  border-radius: 5px;
  text-align: center;
  display: none;
}

.form-status.success {
  background-color: rgba(39, 174, 96, 0.2);
  color: #2ecc71;
  display: block;
}

.form-status.error {
  background-color: rgba(231, 76, 60, 0.2);
  color: #e74c3c;
  display: block;
}

/* Stili aggiuntivi per le sezioni */
.about-content, .projects-grid, .skills-content, .contact-content {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s ease 0.4s;
}

.about-content {
  position: relative;
  padding: 25px;
  border-radius: 10px;
  background: rgba(30, 30, 40, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  overflow: hidden;
  letter-spacing: 0.3px;
  z-index: 1;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.light-effect {
  position: absolute;
  width: 50px;
  height: 50px;
  background: radial-gradient(circle, rgba(108, 99, 255, 0.8) 0%, rgba(108, 99, 255, 0.4) 30%, transparent 70%);
  border-radius: 50%;
  filter: blur(5px);
  z-index: 0;
  pointer-events: none;
  opacity: 0.7;
  animation: moveLight 8s linear infinite;
}

@keyframes moveLight {
  0% { transform: rotate(0deg) translateX(150px) rotate(0deg); }
  100% { transform: rotate(360deg) translateX(150px) rotate(-360deg); }
}

.lang-logo {
  position: absolute;
  width: 40px;
  height: 40px;
  opacity: 0.3;
  z-index: 0;
  pointer-events: none;
}

.html-logo {
  top: 15%;
  left: 20%;
  animation: move1 12s linear infinite;
}

.js-logo {
  top: 70%;
  left: 25%;
  animation: move2 15s linear infinite;
}

.java-logo {
  top: 35%;
  right: 15%;
  animation: move3 18s linear infinite;
}

.sql-logo {
  bottom: 20%;
  right: 30%;
  animation: move4 14s linear infinite;
}

.python-logo {
  top: 25%;
  left: 60%;
  animation: move5 16s linear infinite;
}

.cpp-logo {
  bottom: 30%;
  left: 10%;
  animation: move6 13s linear infinite;
}

.c-logo {
  top: 60%;
  right: 20%;
  animation: move7 17s linear infinite;
}

@keyframes move1 {
  0% { transform: translate(0, 0); }
  25% { transform: translate(150px, 50px); }
  50% { transform: translate(50px, 120px); }
  75% { transform: translate(-100px, 80px); }
  100% { transform: translate(0, 0); }
}

@keyframes move2 {
  0% { transform: translate(0, 0); }
  25% { transform: translate(-80px, -100px); }
  50% { transform: translate(120px, -60px); }
  75% { transform: translate(70px, 90px); }
  100% { transform: translate(0, 0); }
}

@keyframes move3 {
  0% { transform: translate(0, 0); }
  25% { transform: translate(-100px, 70px); }
  50% { transform: translate(-60px, -90px); }
  75% { transform: translate(80px, -40px); }
  100% { transform: translate(0, 0); }
}

@keyframes move4 {
  0% { transform: translate(0, 0); }
  25% { transform: translate(90px, -80px); }
  50% { transform: translate(-70px, -50px); }
  75% { transform: translate(-120px, 60px); }
  100% { transform: translate(0, 0); }
}

@keyframes move5 {
  0% { transform: translate(0, 0); }
  25% { transform: translate(60px, 100px); }
  50% { transform: translate(-90px, 40px); }
  75% { transform: translate(-40px, -120px); }
  100% { transform: translate(0, 0); }
}

@keyframes move6 {
  0% { transform: translate(0, 0); }
  25% { transform: translate(100px, -40px); }
  50% { transform: translate(40px, -100px); }
  75% { transform: translate(-80px, -70px); }
  100% { transform: translate(0, 0); }
}

@keyframes move7 {
  0% { transform: translate(0, 0); }
  25% { transform: translate(-60px, -80px); }
  50% { transform: translate(-120px, 40px); }
  75% { transform: translate(50px, -90px); }
  100% { transform: translate(0, 0); }
}



.about-content.in-view, .projects-grid.in-view, .skills-content.in-view, .contact-content.in-view {
  opacity: 1;
  transform: translateY(0);
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin-top: 50px;
}

.projects-status {
  margin-top: 20px;
  color: rgba(255, 255, 255, 0.82);
  text-align: center;
  font-weight: 500;
}

.project-card {
  background: rgba(30, 30, 40, 0.5);
  border-radius: 10px;
  padding: 25px;
  transition: all 0.3s ease;
  border: 1px solid rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  position: relative;
  overflow: hidden;
}

.project-link {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  gap: 20px;
  text-align: left;
}

.project-icon {
  width: 50px;
  height: 50px;
  border-radius: 12px;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-shrink: 0;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.project-icon::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0.1;
  transition: opacity 0.3s ease;
  border-radius: 12px;
}

.project-icon svg {
  position: relative;
  z-index: 1;
  transition: transform 0.3s ease;
}

.project-content {
  flex: 1;
}

.project-content h3 {
  margin-bottom: 8px;
}

.project-content p {
  margin: 0;
  line-height: 1.5;
}

/* Specific icon styles */
.trading-icon {
  background: rgba(108, 99, 255, 0.1);
  border: 1px solid rgba(108, 99, 255, 0.2);
  color: rgba(108, 99, 255, 0.7);
}

.trading-icon::before {
  background: linear-gradient(45deg, rgba(108, 99, 255, 0.3), rgba(255, 101, 132, 0.3));
}

.social-icon {
  background: rgba(108, 99, 255, 0.1);
  border: 1px solid rgba(108, 99, 255, 0.2);
  color: rgba(108, 99, 255, 0.7);
}

.social-icon::before {
  background: linear-gradient(45deg, rgba(108, 99, 255, 0.3), rgba(255, 101, 132, 0.3));
}

.cards-icon {
  background: rgba(108, 99, 255, 0.1);
  border: 1px solid rgba(108, 99, 255, 0.2);
  color: rgba(108, 99, 255, 0.7);
}

.cards-icon::before {
  background: linear-gradient(45deg, rgba(108, 99, 255, 0.3), rgba(255, 101, 132, 0.3));
}

.course-icon {
  background: rgba(108, 99, 255, 0.1);
  border: 1px solid rgba(108, 99, 255, 0.2);
  color: rgba(108, 99, 255, 0.7);
}

.course-icon::before {
  background: linear-gradient(45deg, rgba(108, 99, 255, 0.3), rgba(255, 101, 132, 0.3));
}

.github-icon {
  background: rgba(108, 99, 255, 0.1);
  border: 1px solid rgba(108, 99, 255, 0.2);
  color: rgba(108, 99, 255, 0.7);
}

.github-icon::before {
  background: linear-gradient(45deg, rgba(108, 99, 255, 0.3), rgba(0, 201, 167, 0.3));
}

.project-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.project-badge {
  display: inline-flex;
  align-items: center;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 999px;
  padding: 4px 10px;
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.85);
  background: rgba(255, 255, 255, 0.06);
}

.project-card:hover .project-icon {
  transform: scale(1.1) rotate(5deg);
}

.project-card:hover .project-icon::before {
  opacity: 0.3;
}

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

@media (max-width: 768px) {
  .project-link {
    flex-direction: row;
    align-items: flex-start;
    text-align: left;
    gap: 15px;
  }
  
  .project-icon {
    width: 45px;
    height: 45px;
  }
  
  .project-icon svg {
    width: 28px;
    height: 28px;
  }
}

.project-link {
  text-decoration: none !important;
  color: #ffffff !important;
  display: flex !important;
  flex-direction: row !important;
  align-items: flex-start !important;
  gap: 20px !important;
}

.project-link h3 {
  color: #ffffff !important;
  text-decoration: none !important;
}

.project-link p {
  color: #ffffff !important;
  text-decoration: none !important;
}

.project-link:hover {
  text-decoration: none !important;
}

.project-link:hover h3,
.project-link:hover p {
  color: #ffffff !important;
  text-decoration: none !important;
}

.project-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 5px;
  background: linear-gradient(to right, var(--primary-color), var(--secondary-color));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
}

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

.project-card:hover::before {
  transform: scaleX(1);
}

.skills-content {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  margin-top: 30px;
}

.skill {
  padding: 10px 20px;
  background: rgba(30, 30, 40, 0.5);
  border-radius: 30px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(5px);
  transition: all 0.3s ease;
}

.skill:hover {
  background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
  transform: translateY(-5px) scale(1.05);
  box-shadow: 0 5px 15px rgba(108, 99, 255, 0.4);
}

/* Privacy checkbox styles */
.privacy-check {
  margin-bottom: 20px;
}

.checkbox-container {
  display: flex;
  align-items: flex-start;
  background-color: rgba(255, 255, 255, 0.05);
  padding: 12px 15px;
  border-radius: 5px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: all 0.3s ease;
}

.checkbox-container:hover {
  background-color: rgba(255, 255, 255, 0.08);
  border-color: rgba(108, 99, 255, 0.3);
}

.privacy-check input[type="checkbox"] {
  margin-right: 10px;
  margin-top: 4px;
  cursor: pointer;
  width: 16px;
  height: 16px;
  accent-color: #6c63ff;
}

.privacy-check label {
  font-size: 0.9em;
  line-height: 1.4;
  color: rgba(255, 255, 255, 0.9);
}

.privacy-check a {
  color: #6c63ff;
  text-decoration: underline;
  cursor: pointer;
  font-weight: 500;
  transition: color 0.2s ease;
}

.privacy-check a:hover {
  color: #8a7fff;
  text-decoration: underline;
}

/* Modal styles */
.modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0, 0, 0, 0.8);
}

.modal-content {
  background-color: #121212;
  margin: 5% auto;
  padding: 20px;
  border: 1px solid #6c63ff;
  border-radius: 8px;
  width: 80%;
  max-width: 800px;
  max-height: 80vh;
  overflow-y: auto;
  color: #ffffff;
  box-shadow: 0 0 20px rgba(108, 99, 255, 0.5);
}

.close-modal {
  color: #aaa;
  float: right;
  font-size: 28px;
  font-weight: bold;
  cursor: pointer;
}

.close-modal:hover,
.close-modal:focus {
  color: #6c63ff;
  text-decoration: none;
}

.modal-title {
  color: #6c63ff;
  font-size: 1.8rem;
  margin-bottom: 20px;
  padding-bottom: 15px;
  border-bottom: 1px solid rgba(108, 99, 255, 0.3);
  text-align: center;
}

.terms-content {
  margin-top: 20px;
}

.terms-content h3 {
  color: #6c63ff;
  margin-top: 20px;
  margin-bottom: 10px;
}

.terms-content p, .terms-content ul {
  margin-bottom: 15px;
  line-height: 1.6;
}

/* Social Buttons Styles */
.social-buttons-container {
  display: flex;
  justify-content: center;
  gap: 15px;
  margin: 20px 0;
  animation: fadeIn 1.5s ease-out forwards;
  animation-delay: 0.45s;
  opacity: 0;
}

.social-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.1);
  border: 2px solid rgba(255, 255, 255, 0.2);
  display: flex;
  justify-content: center;
  align-items: center;
  text-decoration: none;
  color: var(--text-color);
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  position: relative;
  overflow: hidden;
}

.social-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: 0;
  border-radius: 50%;
}

.social-btn svg {
  position: relative;
  z-index: 1;
  transition: transform 0.3s ease;
}

.social-btn:hover {
  transform: translateY(-3px) scale(1.1);
  box-shadow: 0 8px 25px rgba(108, 99, 255, 0.4);
}

.social-btn:hover::before {
  opacity: 0.2;
}

.social-btn:hover svg {
  transform: rotate(360deg);
}

.social-btn:focus {
  outline: none;
}

/* GitHub specific styling */
.github-btn::before {
  background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
}

.github-btn:hover {
  border-color: var(--primary-color);
}

/* LinkedIn specific styling */
.linkedin-btn::before {
  background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
}

.linkedin-btn:hover {
  border-color: var(--primary-color);
}

@media (max-width: 768px) {
  .social-btn {
    width: 35px;
    height: 35px;
  }
  
  .social-btn svg {
    width: 20px;
    height: 20px;
  }
  
  .social-buttons-container {
    gap: 12px;
  }
}

/* Footer Styles */
.site-footer {
  background-color: rgba(10, 10, 15, 0.95);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-top: 1px solid rgba(108, 99, 255, 0.3);
  padding: 25px 0;
  text-align: center;
  margin-top: 50px;
  box-shadow: 0 -5px 20px rgba(0, 0, 0, 0.2);
}

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

.footer-content p {
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.9rem;
  letter-spacing: 0.5px;
}

.footer-content p:hover {
  color: var(--primary-color);
  transition: color 0.3s ease;
}

@media (max-width: 768px) {
  .site-footer {
    padding: 20px 0;
    margin-top: 30px;
  }
  
  .footer-content p {
    font-size: 0.8rem;
  }
}
