:root {
  --primary: #0a192f;
  --secondary: #172a45;
  --accent: #64ffda;
  --light: #ccd6f6;
  --text: #8892b0;
  --card-bg: rgba(23, 42, 69, 0.7);
  --transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  --background-gradient: radial-gradient(circle at 10% 20%, rgba(100, 255, 218, 0.03) 0%, transparent 20%),
    radial-gradient(circle at 90% 80%, rgba(100, 255, 218, 0.03) 0%, transparent 20%),
    linear-gradient(45deg, transparent 49%, rgba(100, 255, 218, 0.02) 50%, transparent 51%),
    linear-gradient(-45deg, transparent 49%, rgba(100, 255, 218, 0.02) 50%, transparent 51%);
  --background-color: linear-gradient(135deg, #0a192f, #0d1e38);
  --nav-background: rgba(10, 25, 47, 0.9);

  --switch-background-color: rgba(10, 25, 47, 0.9);
  --shadow-switch-hover: 0 0 20px rgba(100, 255, 218, 0.3);
  
  --border-switch: 0 solid rgba(28, 28, 28, 0);
    /* SWITCH */
  --switch-background-color: rgba(10, 25, 47, 0.9);
  --switch-bg-color-hover: #bcf5e7;

  --switch-icon-color: #bcf5e7;
  --switch-icon-color-hover: rgba(10, 25, 47, 0.9);
  --shadow-switch-bg-color-hover: #bcf5e7;

  --portfolio-background: linear-gradient(to bottom, rgba(10, 25, 47, 0.9), rgba(10, 25, 47, 1));
  --social-background: rgba(100, 255, 218, 0.1);
  --shadow-photo: 0 0 40px rgba(100, 255, 218, 0.3);
  --border-bottom-nav: 1px solid rgba(100, 255, 218, 0.1);
  --color-avatar-placeholder: rgba(100, 255, 218, 0.2);
  --bg-btn-before: rgba(100, 255, 218, 0.1);
  --shadow-btn-hover: 0 0 15px rgba(100, 255, 218, 0.3);
  --border-pj-card: 1px solid rgba(100, 255, 218, 0.1);
  --shadow-pj-card: 0 10px 30px rgba(0, 0, 0, 0.2);
  --shadow-pj-card-hover: 0 20px 40px rgba(100, 255, 218, 0.2);
  --shadow-timeline-item-icon-hover: 0 0 20px rgba(100, 255, 218, 0.3);
  --border-timeline-content: 1px solid rgba(100, 255, 218, 0.1);
  --shadow-timeline-item-content-hover: 0 10px 25px rgba(100, 255, 218, 0.1);
  --border-hex: 1px solid rgba(100, 255, 218, 0.1);
  --shadow-hex: 0 5px 15px rgba(0, 0, 0, 0.2);
  --shadow-hex-hover: 0 15px 30px rgba(100, 255, 218, 0.2);
  --border-social-links: 1px solid rgba(100, 255, 218, 0.1);
  --shadow-social-links: 0 5px 15px rgba(0, 0, 0, 0.2);
  --shadow-social-links-hover: 0 15px 30px rgba(100, 255, 218, 0.3);
  --border-top-footer: 1px solid rgba(100, 255, 218, 0.1);
  --shadow-menu-active: -5px 0 15px rgba(0, 0, 0, 0.2);

}

[data-theme="light"] {

  --primary: #f5f7fa;
  --secondary: #e6e9ef;
  --accent: #9fb8c9;
  --light: #24313d;
  --text: #6b7b8c;
  --card-bg: rgba(230, 233, 239, 0.6);
  --transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  --background-gradient:
    radial-gradient(circle at 10% 20%, rgba(159, 184, 201, 0.05) 0%, transparent 20%),
    radial-gradient(circle at 90% 80%, rgba(159, 184, 201, 0.05) 0%, transparent 20%),
    linear-gradient(45deg, transparent 49%, rgba(159, 184, 201, 0.03) 50%, transparent 51%),
    linear-gradient(-45deg, transparent 49%, rgba(159, 184, 201, 0.03) 50%, transparent 51%);
  --background-color: linear-gradient(135deg, #f5f7fa, #eef1f5);
  --nav-background: rgba(245, 247, 250, 0.9);

     /* SWITCH */
  --shadow-switch-hover: 0 0 15px rgba(159, 184, 201, 0.2);
  --shadow-switch-bg-color: #e6e9ef;
  --border-switch: 0 solid rgba(28, 28, 28, 1);
  --switch-background-color: rgba(10, 25, 47, 0.9);
  --switch-bg-color-hover: rgba(245, 247, 250, 0.9);;

  --switch-icon-color: #6b7b8c;
  --switch-icon-color-hover: rgba(10, 25, 47, 0.9);
  --shadow-switch-bg-color-hover: rgba(10, 25, 47, 0.9);;

 



  --portfolio-background: linear-gradient(to bottom, rgba(245, 247, 250, 0.9), rgba(245, 247, 250, 1));
  --social-background: rgba(159, 184, 201, 0.15);
  --shadow-photo: 0 0 25px rgba(159, 184, 201, 0.2);
  --border-bottom-nav: 1px solid rgba(159, 184, 201, 0.15);
  
  --color-avatar-placeholder: rgba(159, 184, 201, 0.2);
  --bg-btn-before: rgba(159, 184, 201, 0.15);
  --shadow-btn-hover: 0 0 10px rgba(159, 184, 201, 0.2);
  --border-pj-card: 1px solid rgba(159, 184, 201, 0.15);
  --shadow-pj-card: 0 5px 20px rgba(0, 0, 0, 0.08);
  --shadow-pj-card-hover: 0 8px 25px rgba(159, 184, 201, 0.15);
  --shadow-timeline-item-icon-hover: 0 0 15px rgba(159, 184, 201, 0.2);
  --border-timeline-content: 1px solid rgba(159, 184, 201, 0.15);
  --shadow-timeline-item-content-hover: 0 5px 15px rgba(159, 184, 201, 0.1);
  --border-hex: 1px solid rgba(159, 184, 201, 0.15);
  --shadow-hex: 0 3px 12px rgba(0, 0, 0, 0.07);
  --shadow-hex-hover: 0 8px 20px rgba(159, 184, 201, 0.15);
  --border-social-links: 1px solid rgba(159, 184, 201, 0.15);
  --shadow-social-links: 0 3px 10px rgba(0, 0, 0, 0.07);
  --shadow-social-links-hover: 0 5px 15px rgba(159, 184, 201, 0.2);
  --border-top-footer: 1px solid rgba(159, 184, 201, 0.15);
  --shadow-menu-active: -3px 0 10px rgba(0, 0, 0, 0.08);
}




* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Inter', sans-serif;
}

body {
  background: var(--background-color);
  color: var(--light);
  overflow-x: hidden;
  min-height: 100vh;
  position: relative;
}




/* Geometric background patterns */
body::before {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--background-gradient);
  /* radial-gradient(circle at 10% 20%, rgba(100, 255, 218, 0.03) 0%, transparent 20%),
    radial-gradient(circle at 90% 80%, rgba(100, 255, 218, 0.03) 0%, transparent 20%),
    linear-gradient(45deg, transparent 49%, rgba(100, 255, 218, 0.02) 50%, transparent 51%),
    linear-gradient(-45deg, transparent 49%, rgba(100, 255, 218, 0.02) 50%, transparent 51%); */
  background-size: 80px 80px;
  z-index: -2;
}

h1,
h2,
h3 {
  font-weight: 600;
  color: var(--text);
  /*--light*/
}

h1 {
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.1;
  margin-bottom: 1rem;
}

h2 {
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  position: relative;
  display: inline-block;
  margin-bottom: 3rem;
  padding-bottom: 10px;
}

h2::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 3px;
  background: var(--accent);
  transition: var(--transition);
}

p {
  color: var(--text);
  margin-bottom: 1.5rem;
  font-size: clamp(1rem, 1.2vw, 1.1rem);
  line-height: 1.7;
}

a {
  text-decoration: none;
}

section {
  padding: 6rem 5%;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
}

/* Floating photo */

.floating-photo {
  position: fixed;
  top: 50%;
  right: 5%;
  width: 200px;
  height: 200px;
  border-radius: 50%;
  overflow: hidden;
  transform: translateY(-50%) scale(0.2);
  opacity: 0;
  transition: var(--transition);
  z-index: 10;
  box-shadow: var(--shadow-photo);
  border: 3px solid var(--accent);
  pointer-events: none;
}

.floating-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* NAVBAR */

#navbar {
  position: fixed;
  top: 0;
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem 5%;
  background: var(--nav-background);
  backdrop-filter: blur(10px);
  z-index: 1000;
  border-bottom: var(--border-bottom-nav);
}

#logo {
  cursor: pointer;
  position: relative;
  overflow: hidden;
  /* width: 60px;
  height: 60px; */
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--secondary);
  transition: var(--transition);
}

/* LOGOOOOOOOOOOOOO CHANGE HERE ALSOOOOOO */

#switch-btn {
  background-color: var(--switch-background-color);
  border: var(--border-switch);
  width: 60px;
  height: 60px;
}

#logo i {
  font-size: 18px;
  color: var(--switch-icon-color);
}

#logo:hover {
  transform: scale(1.1);
  box-shadow: var(--shadow-switch-hover);
  
}

#logo:hover button {
  background-color: var(--switch-bg-color-hover);
}

#logo:hover i {
  color: var(--switch-icon-color-hover);
}




/* MENU */

#menu-list {
  display: flex;
}

#menu-list ul {
  display: flex;
  gap: 2.5rem;
  transition: var(--transition);
}

#menu-list a {
  color: var(--text);
  text-decoration: none;
  font-size: 1.1rem;
  position: relative;
  padding: 0.5rem 0;
  transition: var(--transition);
}

#menu-list a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--accent);
  transition: var(--transition);
}

#menu-list a:hover {
  color: var(--accent);
}

#menu-list a:hover::after {
  width: 100%;
}

/* Hamburger menu for mobile */

.hamburger {
  display: none;
  cursor: pointer;
  background: transparent;
  border: none;
  outline: none;
  z-index: 1001;
}

.hamburger span {
  display: block;
  width: 30px;
  height: 3px;
  background: var(--accent);
  margin: 6px 0;
  transition: var(--transition);
}

/* IMG + ABOUT */

#about {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  align-items: center;
  text-align: center;
}

.avatar-placeholder {
  width: 150px;
  height: 150px;
  border-radius: 50%;
  background: var(--secondary);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 4rem;
  color: var(--color-avatar-placeholder);
  border: 2px dashed var(--accent);
  transition: var(--transition);
  cursor: pointer;
}

.avatar-placeholder:hover {
  color: var(--accent);
  transform: scale(1.05);
}

#text-intro p:first-child {
  color: var(--accent);
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
  letter-spacing: 3px;
  text-transform: uppercase;
}

.btn-container {
  margin-top: 2rem;
  display: flex;
  gap: 1rem;
  justify-content: center;
}

.btn {
  display: inline-block;
  padding: 0.8rem 2rem;
  background: transparent;
  color: var(--accent);
  border: 1px solid var(--accent);
  border-radius: 4px;
  font-size: 1rem;
  text-decoration: none;
  cursor: pointer;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 0;
  height: 100%;
  background: var(--bg-btn-before);
  transition: var(--transition);
  z-index: -1;
}

.btn:hover::before {
  width: 100%;
}

.btn:hover {
  box-shadow: var(--shadow-btn-hover);
  transform: translateY(-3px);
}

/* PROJECTTTTS */

#portfolio {
  background: var(--portfolio-background);
}

.section-header {
  text-align: center;
  margin-bottom: 3rem;
}

.asymmetric-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  perspective: 1000px;
}

.project-card {
  position: relative;
  height: 350px;
  background: var(--card-bg);
  border-radius: 12px;
  overflow: hidden;
  transition: var(--transition);
  border: var(--border-pj-card);
  backdrop-filter: blur(10px);
  transform-style: preserve-3d;
  box-shadow: var(--shadow-pj-card);
  display: flex;
  flex-direction: column;
}

.project-card:nth-child(odd) {
  transform: rotate(2deg);
}

.project-card:nth-child(even) {
  transform: rotate(-1deg);
}

.project-card:hover {
  transform: rotate(0) translateY(-10px) scale(1.02);
  box-shadow: var(--shadow-pj-card-hover);
  z-index: 5;
}

.project-img {
  height: 45%;
  overflow: hidden;
  position: relative;
}

.project-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

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

.project-content {
  padding: 1.5rem;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.project-content h3 {
  font-size: 1.4rem;
  margin-bottom: 0.5rem;
  color: var(--accent);
}

.project-content .date {
  color: var(--accent);
  font-size: 0.9rem;
  margin-bottom: 1rem;
}

.project-content p {
  margin-bottom: auto;
  font-size: 0.95rem;
}

.project-buttons {
  display: flex;
  gap: 1rem;
  margin-top: 1.5rem;
}

/* EDUCATION */

#experience {
  background: var(--portfolio-background);
}

.geometric-timeline {
  position: relative;
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 3rem;
}

.timeline-item {
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 2rem;
  padding-left: 40px;
}

.timeline-icon {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: var(--secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: var(--accent);
  flex-shrink: 0;
  transition: var(--transition);
  border: 2px solid var(--accent);
}

.timeline-item:hover .timeline-icon {
  transform: scale(1.1) rotate(10deg);
  box-shadow: var(--shadow-timeline-item-icon-hover);
}

.timeline-content {
  background: var(--card-bg);
  border-radius: 10px;
  padding: 1.5rem;
  border: var(--border-timeline-content);
  transition: var(--transition);
  backdrop-filter: blur(10px);
  flex-grow: 1;
}

.timeline-item:hover .timeline-content {
  transform: translateX(10px);
  box-shadow: var(--shadow-timeline-item-content-hover);
}

.timeline-date {
  color: var(--accent);
  font-weight: 500;
  margin-bottom: 0.5rem;
  display: block;
  font-size: 0.9rem;
}

.timeline-content h3 {
  font-size: 1.3rem;
  margin-bottom: 0.5rem;
}

/* SKILLS */

#skills {
  background: var(--portfolio-background);
}

.hex-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 1.5rem;
  max-width: 800px;
  margin: 0 auto;
}

.hex-item {
  position: relative;
  height: 160px;
  background: var(--card-bg);
  border-radius: 10px;
  transition: var(--transition);
  border: var(--border-hex);
  backdrop-filter: blur(10px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 1rem;
  box-shadow: var(--shadow-hex);
  clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
}

.hex-item:hover {
  transform: translateY(-10px) scale(1.05);
  box-shadow: var(--shadow-hex-hover);
  z-index: 2;
}

.hex-icon {
  font-size: 2.5rem;
  color: var(--accent);
  margin-bottom: 1rem;
  transition: var(--transition);
}

.hex-item:hover .hex-icon {
  transform: rotate(15deg) scale(1.2);
}

.hex-name {
  font-size: 1rem;
  color: var(--light);
}

/* Contact */

#contact {
  min-height: auto;
  padding: 4rem 5%;
  position: relative;
  overflow: hidden;
}

.contact-container {
  max-width: 600px;
  margin: 0 auto;
  text-align: center;
}

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

.social-links {
  display: flex;
  justify-content: center;
  gap: 2rem;
  list-style: none;
  margin-top: 2rem;
  flex-wrap: wrap;
}

.social-links a {
  display: inline-flex;
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: var(--card-bg);
  color: var(--accent);
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  transition: var(--transition);
  border: var(--border-social-links);
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-social-links);
}

.social-links a::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--social-background);
  transform: scale(0);
  border-radius: 50%;
  transition: transform 0.5s ease;
  z-index: -1;
}

.social-links a:hover::before {
  transform: scale(1.2);
}

.social-links a:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-social-links-hover);
}

/* Footer */

footer {
  text-align: center;
  padding: 2rem;
  border-top: var(--border-top-footer);
  background: var(--nav-background);
  position: relative;
  z-index: 2;
}

footer p {
  margin-bottom: 0;
  font-size: 0.9rem;
  color: var(--text);
}

/* Floating particles */

.particle {
  position: absolute;
  border-radius: 50%;
  background: var(--social-background);
  z-index: -1;
  animation: float 15s infinite ease-in-out;
}

@keyframes float {

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

  25% {
    transform: translate(-20px, -15px);
  }

  50% {
    transform: translate(10px, 20px);
  }

  75% {
    transform: translate(15px, -10px);
  }
}

/* Animations */

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(30px);
  }

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

/* Responsive Design */

@media (max-width: 992px) {
  #menu-list ul {
    gap: 1.5rem;
  }

  .btn-container {
    flex-direction: column;
    align-items: center;
  }

  .project-card:nth-child(odd),
  .project-card:nth-child(even) {
    transform: rotate(0);
  }
}

@media (max-width: 768px) {
  section {
    padding: 4rem 5%;
  }

  /* Hamburger menu for mobile */

  .hamburger {
    display: block;
  }

  #menu-list ul {
    position: fixed;
    top: 0;
    right: -100%;
    height: 100vh;
    width: 70%;
    max-width: 300px;
    background: var(--nav-background);
    backdrop-filter: blur(10px);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2.5rem;
    transition: right 0.5s ease;
    z-index: 999;
    box-shadow: var(--shadow-menu-active);
  }

  #menu-list ul.active {
    right: 0;
  }

  .timeline-item {
    flex-direction: column;
    align-items: center;
    padding-left: 0;
  }

  .social-links a {
    width: 60px;
    height: 60px;
    font-size: 1.5rem;
  }

  /* small screens */
  .hex-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
  }

  .hex-item {
    height: 140px;
  }

  .hex-icon {
    font-size: 2rem;
  }
}

@media (max-width: 480px) {
  .hex-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.8rem;
  }

  .hex-item {
    height: 120px;
  }

  .hex-icon {
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
  }

  .hex-name {
    font-size: 0.9rem;
  }

  .project-buttons {
    flex-direction: column;
  }

  .project-card {
    height: auto;
  }

  /* Adjust hamburger position */

  .hamburger {
    margin-left: auto;
  }
}