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

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

/* Page load animations */
@keyframes pageLoad {
  0% {
    opacity: 0;
    transform: translateY(20px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInUp {
  0% {
    opacity: 0;
    transform: translateY(30px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInLeft {
  0% {
    opacity: 0;
    transform: translateX(-30px);
  }
  100% {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes fadeInRight {
  0% {
    opacity: 0;
    transform: translateX(30px);
  }
  100% {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes scaleIn {
  0% {
    opacity: 0;
    transform: scale(0.9);
  }
  100% {
    opacity: 1;
    transform: scale(1);
  }
}

/* Page load classes */
.page-load {
  animation: pageLoad 0.8s ease-out forwards;
}

/* Splash Cursor (fluid) overlay */
#splash-cursor-root {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1200;
}

#fluid {
  width: 100vw;
  height: 100vh;
  display: block;
}

.fade-in-up {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.6s ease-out;
}

.fade-in-up.visible {
  opacity: 1;
  transform: translateY(0);
}

.fade-in-left {
  opacity: 0;
  transform: translateX(-30px);
  transition: all 0.6s ease-out;
}

.fade-in-left.visible {
  opacity: 1;
  transform: translateX(0);
}

.fade-in-right {
  opacity: 0;
  transform: translateX(30px);
  transition: all 0.6s ease-out;
}

.fade-in-right.visible {
  opacity: 1;
  transform: translateX(0);
}

.scale-in {
  opacity: 0;
  transform: scale(0.9);
  transition: all 0.6s ease-out;
}

.scale-in.visible {
  opacity: 1;
  transform: scale(1);
}

/* Responsive Typography */
@media (max-width: 1200px) {
  html {
    font-size: 15px;
  }
}

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

@media (max-width: 480px) {
  html {
    font-size: 13px;
  }
}

@media (max-width: 320px) {
  html {
    font-size: 12px;
  }
}
section {
  scroll-margin-top: 80px; /* adjust based on navbar height */
}

:root {
  --bg-main: #0f0c29;
  --bg-section: rgba(15, 12, 41, 0.7);
  --bg-section-light: rgba(255, 255, 255, 0.7);
  --text-main: #f5e9e9;
  --text-secondary: #cfd9f4;
  --accent: #9c27b0;
  --accent2: #e1bee7;
  --shadow: rgba(156, 39, 176, 0.18);
  --navbar-bg: rgba(74, 73, 75, 0.95);
  --overlay: rgba(15, 12, 41, 0.25);
}

body {
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  line-height: 1.6;
  color: var(--text-main);
  background: var(--bg-main) !important;
  position: relative;
  overflow-x: hidden;
  opacity: 0;
  animation: pageLoad 1s ease-out 0.2s forwards;
}

#bg-video {
  position: fixed;
  top: 0;
  left: 0;
  min-width: 100vw;
  min-height: 100vh;
  width: auto;
  height: auto;
  z-index: -2;
  object-fit: cover;
  opacity: 1;
  pointer-events: none;
  background: var(--bg-main);
}

#sparkle-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: -2;
  pointer-events: none;
}

body::before {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: var(--overlay);
  z-index: -1;
  pointer-events: none;
}

.navbar {
  position: fixed;
  top: 0;
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 5%;
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
  z-index: 1000;
  backdrop-filter: blur(10px);
  opacity: 0;
  transform: translateY(-20px);
  animation: fadeInUp 0.8s ease-out 0.5s forwards;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  position: relative;
  z-index: 10;
}

.logo-image {
  width: 100px;
  height: 100px;
  object-fit: contain;
  transition: transform 0.3s ease;
  position: relative;
  top: 5px;
}

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

.nav-links {
  display: flex;
  align-items: center;
  list-style: none;
  gap: 0.5rem;
}

.nav-links li {
  margin: 0 0.5rem;
  display: flex;
  align-items: center;
}

.nav-links a {
  text-decoration: none;
  color: #666;
  font-weight: 500;
  transition: all 0.3s ease;
  padding: 0.5rem 1.1rem;
  border-radius: 6px;
  display: flex;
  align-items: center;
  height: 40px;
  box-sizing: border-box;
  position: relative;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--accent);
  background: rgba(124, 58, 237, 0.1);
}

.nav-links a.active::after {
  content: '';
  position: absolute;
  bottom: -8px;
  left: 50%;
  transform: translateX(-50%);
  width: 4px;
  height: 4px;
  background: var(--accent);
  border-radius: 50%;
}

.nav-links .cv-btn {
  background: linear-gradient(45deg, #9c27b0, #e1bee7);
  color: #fff;
  font-weight: 600;
  border: none;
  box-shadow: 0 2px 10px rgba(156, 39, 176, 0.15);
  margin: 0.5rem;
  transition: background 0.3s, color 0.3s, box-shadow 0.3s;
  padding: 0.5rem 1.3rem;
}
.nav-links .cv-btn:hover {
  background: linear-gradient(45deg, #e1bee7, #9c27b0);
  color: #fff;
  box-shadow: 0 4px 20px rgba(156, 39, 176, 0.25);
}

.burger {
  display: none;
  cursor: pointer;
}

.burger div {
  width: 25px;
  height: 3px;
  background-color: #2c3e50;
  margin: 5px;
  transition: all 0.3s ease;
}

.hero {
  min-height: 90vh;
  background: #ffffff;
  padding: 120px 5% 40px;
  position: relative;
  overflow: hidden;
  opacity: 0;
  animation: fadeInUp 1s ease-out 0.8s forwards;
}

.hero::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 60%;
  height: 80%;
  background: linear-gradient(132deg, rgb(255, 206, 236) 44.25%, rgb(151, 150, 240) 86.35%);
  z-index: 0;
  border-radius: 0 0 0 100px;
}

.hero-container {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  max-width: 1400px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
  gap: 4rem;
  padding-top: 2rem;
}

.hero-left {
  flex: 1;
  max-width: 500px;
  padding-top: 2rem;
}

.hero-text {
  margin-bottom: 2.5rem;
}

.hero-greeting {
  font-size: 1.1rem;
  color: #666;
  margin-bottom: 0.3rem;
  font-weight: 400;
}

.hero-name {
  font-size: 4.5rem;
  font-weight: 700;
  color: #1a1a1a;
  margin: 0;
  line-height: 0.9;
  margin-bottom: -0.1em;
}

.hero-surname {
  font-size: 3.5rem;
  font-weight: 600;
  color: #555;
  margin: 0;
  line-height: 0.9;
  margin-bottom: 0.2em;
}

.hero-title-animated {
  position: relative;
  overflow: hidden;
  height: 3.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0.5rem 0 0 0;
  font-size: 2.2rem;
  font-weight: 700;
  text-align: center;
  width: 100%;
}

.role-text {
  position: absolute;
  color: #9c27b0;
  font-size: 2.2rem;
  font-weight: 700;
  white-space: nowrap;
  opacity: 0;
  transform: translateY(100%);
  transition: all 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  text-shadow: 0 2px 4px rgba(156, 39, 176, 0.1);
  left: 50%;
  transform: translateX(-50%) translateY(100%);
  text-align: center;
}

.role-text.active {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.role-text.slide-out {
  opacity: 0;
  transform: translateX(-50%) translateY(-100%);
}

/* Modern gradient effect */
.role-text.active {
  background: linear-gradient(135deg, #9c27b0, #e91e63, #ff5722);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-size: 200% 200%;
  animation: gradientShift 3s ease-in-out infinite;
}

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

/* Responsive adjustments */
@media (max-width: 768px) {
  .hero-title-animated {
    font-size: 2rem;
    height: 3.5rem;
    min-height: 3.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
  }
  
  .role-text {
    font-size: 2rem;
    font-weight: 700;
    white-space: nowrap;
    text-align: center;
    width: 100%;
  }
}

@media (max-width: 480px) {
  .hero-title-animated {
    font-size: 1.8rem;
    height: 3.5rem;
    min-height: 3.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 0 1rem;
    box-sizing: border-box;
  }
  
  .role-text {
    font-size: 1.8rem;
    font-weight: 700;
    white-space: nowrap;
    text-align: center;
    width: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(100%);
  }
  
  .role-text.active {
    transform: translateX(-50%) translateY(0);
  }
  
  .role-text.slide-out {
    transform: translateX(-50%) translateY(-100%);
  }
}

@media (max-width: 360px) {
  .hero-title-animated {
    font-size: 1.6rem;
    height: 3rem;
    min-height: 3rem;
    padding: 0 0.5rem;
  }
  
  .role-text {
    font-size: 1.6rem;
  }
  
  .about-text p {
    font-size: 1rem;
    line-height: 1.6;
    text-indent: 0;
  }
  
  .contact-item {
    font-size: 1.3rem;
    padding: 1rem 1.2rem;
  }
}

.hero-actions {
  display: flex;
  gap: 2rem;
  margin-bottom: 2rem;
  justify-content: flex-start;
  align-items: flex-start;
}

.action-group {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

.btn-primary, .btn-secondary {
  padding: 12px 24px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
  display: inline-block;
}

.btn-primary {
  background: linear-gradient(45deg, #9c27b0, #e1bee7);
  color: white;
  border: 2px solid transparent;
}

.btn-primary:hover {
  background: linear-gradient(45deg, #e1bee7, #9c27b0);
  color: white;
  transform: translateY(-2px);
}

.btn-secondary {
  background: transparent;
  color: #9c27b0;
  border: 2px solid #9c27b0;
}

.btn-secondary:hover {
  background: linear-gradient(45deg, #9c27b0, #e1bee7);
  color: white;
  transform: translateY(-2px);
}

.social-link {
  width: 45px;
  height: 45px;
  border-radius: 50%;
  background: #f5f5f5;
  color: #666;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  transition: all 0.3s ease;
  text-decoration: none;
}

.social-link:hover {
  background: #9c27b0;
  color: white;
  transform: translateY(-3px);
}

.hero-right {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  padding-top: 1rem;
}

.profile-container {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

.profile-pic-wrapper {
  position: relative;
  width: 400px;
  height: 400px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.profile-pic {
  width: 320px;
  height: 320px;
  border-radius: 50%;
  object-fit: cover;
  border: 6px solid white;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
  position: relative;
  z-index: 2;
  transition: transform 0.3s ease;
}

.profile-pic:hover {
  transform: scale(1.05);
}

.profile-decoration {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.decoration-circle {
  position: absolute;
  border-radius: 50%;
  border: 3px solid;
  animation: float 6s ease-in-out infinite;
}

.circle-1 {
  width: 80px;
  height: 80px;
  border-color: #9c27b0;
  top: 10%;
  left: 10%;
  animation-delay: 0s;
}

.circle-2 {
  width: 60px;
  height: 60px;
  border-color: #e1bee7;
  top: 60%;
  right: 10%;
  animation-delay: 2s;
}

.circle-3 {
  width: 100px;
  height: 100px;
  border-color: #9c27b0;
  bottom: 10%;
  left: 20%;
  animation-delay: 4s;
}

@keyframes float {
  0%, 100% {
    transform: translateY(0px) rotate(0deg);
    opacity: 0.7;
  }
  50% {
    transform: translateY(-20px) rotate(180deg);
    opacity: 1;
  }
}

.hero-stats {
  display: flex;
  justify-content: center;
  gap: 4rem;
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid #e0e0e0;
  background: #ffffff;
  position: relative;
  z-index: 1;
}

.stat-item {
  text-align: center;
}

.stat-number {
  display: block;
  font-size: 2.5rem;
  font-weight: 700;
  color: #9c27b0;
  line-height: 1;
}

.stat-label {
  font-size: 1rem;
  color: #666;
  margin-top: 0.5rem;
}

@media (max-width: 1024px) {
  .hero-container {
    flex-direction: column;
    text-align: center;
    gap: 3rem;
    align-items: center;
    padding-top: 1rem;
  }
  
  .hero-left {
    max-width: 100%;
    padding-top: 1rem;
  }
  
  .hero-right {
    padding-top: 0;
    align-items: center;
  }
  
  .profile-pic-wrapper {
    width: 350px;
    height: 350px;
  }
  
  .profile-pic {
    width: 280px;
    height: 280px;
  }
  
  .hero-stats {
    gap: 2rem;
  }
}

@media (max-width: 768px) {
  .hero {
    padding: 100px 5% 30px;
  }
  
  .hero::before {
    height: 75%;
  }
  
  .hero-name {
    font-size: 3rem;
  }
  
  .hero-surname {
    font-size: 2.5rem;
  }
  
  .hero-actions {
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
  }
  
  .action-group {
    gap: 0.8rem;
  }
  
  .profile-pic-wrapper {
    width: 300px;
    height: 300px;
  }
  
  .profile-pic {
    width: 240px;
    height: 240px;
  }
  
  .decoration-circle {
    display: none;
  }
  
  .hero-stats {
    flex-direction: column;
    gap: 1.5rem;
    margin-top: 2rem;
  }
}

.about {
  padding: 5rem 10%;
  background: #ffffff;
  backdrop-filter: blur(10px);
  position: relative;
  overflow: hidden;
}

.about::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(125% 125% at 50% 90%, #fff 40%, #a2a4a5 100%);
  z-index: 0;
}

.about h2 {
  text-align: center;
  margin-bottom: 3rem;
  color: var(--text-main);
  position: relative;
  z-index: 1;
  font-size: 2.5rem;
  font-weight: bold;
}

.about h2::before {
  content: attr(data-text);
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  color: rgba(156, 39, 176, 0.3);
  font-size: 1.4em;
  transform: translate(8px, 8px);
  z-index: -1;
  font-weight: bold;
}

.skills-section {
  padding: 5rem 10%;
  background: #ffffff;
  backdrop-filter: blur(10px);
  position: relative;
  overflow: hidden;
}

.skills-section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(125% 125% at 50% 90%, #fff 40%, #b495eb 100%);
  z-index: 0;
}

.skills-section h2 {
  text-align: center;
  margin-bottom: 3rem;
  color: var(--text-main);
  position: relative;
  z-index: 1;
  font-size: 2.5rem;
  font-weight: bold;
}

.skills-section h2::before {
  content: attr(data-text);
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  color: rgba(156, 39, 176, 0.3);
  font-size: 1.4em;
  transform: translate(8px, 8px);
  z-index: -1;
  font-weight: bold;
}
.skills-subtitle {
  text-align: center;
  color: var(--text-secondary);
  margin-bottom: 2.2rem;
  position: relative;
  z-index: 1;
}
.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
  position: relative;
  z-index: 1;
}
.skill-card {
  background: rgba(255, 255, 255, 0.07);
  border-radius: 16px;
  padding: 1.4rem;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.18);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.skill-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(124, 58, 237, 0.25);
}
.skill-header {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  margin-bottom: 0.8rem;
}
.skill-icon {
  width: 42px;
  height: 42px;
  background: #232428;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  font-size: 1.3rem;
}
.skill-name {
  font-weight: 600;
}
.skill-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--text-secondary);
  margin-bottom: 0.4rem;
}
.progress {
  width: 100%;
  height: 9px;
  background: #232428;
  border-radius: 999px;
  overflow: hidden;
}
.progress-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--accent) 0%, var(--accent2) 100%);
  border-radius: 999px;
  transition: width 1s ease;
}

.about-content {
  max-width: 800px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.about-text p {
  font-size: 1.2rem;
  line-height: 1.8;
  margin-bottom: 1.5rem;
  color: #333;
  text-align: justify;
  text-indent: 0;
  font-weight: 500;
}

.about-text p:last-child {
  margin-bottom: 0;
}

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

.contact-info {
  margin: 2rem 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.contact-item {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.2rem;
  font-size: 1.5rem;
  color: #333;
  font-weight: 500;
  margin-bottom: 1.5rem;
  width: 100%;
  text-align: center;
  padding: 1.5rem 2rem;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.contact-item i {
  color: #9c27b0;
  font-size: 1.6rem;
}

.contact-item a {
  color: #333;
  text-decoration: none;
  text-align: center;
}

.contact-item a:hover {
  color: #9c27b0;
}

.contact-item span {
  text-align: center;
}

.skills {
  margin-top: 2rem;
  text-align: center;
}

.skill-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 1rem;
  justify-content: center;
}

.skill-tags span {
  background-color: #a855f7;
  color: white;
  padding: 0.5rem 1rem;
  border-radius: 20px;
  font-size: 0.9rem;
}

.projects {
  padding: 5rem 10%;
  background: linear-gradient(to left, #94a3b8, #f8fafc);
  backdrop-filter: blur(10px);
}

.projects h2 {
  text-align: center;
  margin-bottom: 3rem;
  color: var(--text-main);
  font-size: 2.5rem;
  font-weight: bold;
  position: relative;
}

.projects h2::before {
  content: attr(data-text);
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  color: rgb(245, 237, 237);
  font-size: 1.4em;
  transform: translate(8px, 8px);
  z-index: -1;
  font-weight: bold;
}

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

.project-card {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  backdrop-filter: blur(5px);
}

.project-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 5px 20px rgba(124, 58, 237, 0.3);
}

.project-card .project-image img {
  width: 100%;
  height: 201px;
  object-fit: cover;
  object-position: top;
  display: block;
  border-bottom: 1px solid #e0e0e0;
}

.project-image {
  height: 200px;
  background-color: #e0e0e0;
}

.project-card h3 {
  padding: 1rem;
  color: #7c3aed;
}

.project-card p {
  padding: 0 1rem;
  color: #180d22;
}

.project-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  padding: 0.8rem 1rem 0.2rem 1rem;
}
.project-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.35rem 0.7rem;
  border-radius: 999px;
  font-size: 0.85rem;
  color: #e9f1f7;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.18);
}
.project-tag i {
  font-size: 0.95rem;
}

.project-links {
  padding: 1rem;
  display: flex;
  gap: 1rem;
  align-items: center;
  justify-content: space-between;
}

.project-links a {
  text-decoration: none;
  color: #ebeced;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.project-links .btn {
  padding: 0.55rem 0.9rem;
  border-radius: 999px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.2s ease;
}
.project-links .btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.25);
}
.project-links .btn-demo {
  background: #2b99ff;
  color: #fff;
}
.project-links .btn-github {
  background: #232428;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.14);
}

body.light-mode .project-tag {
  background: rgba(0, 0, 0, 0.06);
  color: #1c2b3a;
  border: 1px solid rgba(0, 0, 0, 0.08);
}
body.light-mode .project-links .btn-github {
  background: #eef2f7;
  color: #1c2b3a;
  border: 1px solid rgba(0, 0, 0, 0.08);
}

.contact {
  padding: 5rem 10%;
  background: linear-gradient(135deg, #96e1ff, #b3a1f9, #fc9bd5);
  background-size: 200% 200%;
  animation: gradientShift 10s ease infinite;
  position: relative;
  overflow: hidden;
}

.contact::before {
  content: "";
  position: absolute;
  width: 60%;
  height: 80%;
  top: 20%;
  left: 15%;
  background: rgba(255, 255, 255, 0.2);
  filter: blur(90px);
  border-radius: 50% 40% 60% 50%;
  z-index: 0;
}

.contact::after {
  content: "";
  position: absolute;
  width: 70%;
  height: 60%;
  bottom: 10%;
  right: 10%;
  background: rgba(255, 255, 255, 0.15);
  filter: blur(100px);
  border-radius: 45% 55% 50% 65%;
  z-index: 0;
}

.contact-title {
  text-align: center;
  font-size: 2.8rem;
  color: #7c3aed;
  margin-bottom: 0.75rem;
  font-weight: 700;
  position: relative;
  z-index: 1;
}

.contact-title::before {
  content: attr(data-text);
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  color: rgba(168, 104, 179, 0.627);
  font-size: 1.4em;
  transform: translate(8px, 8px);
  z-index: -1;
  font-weight: bold;
}

.contact-subtitle {
  text-align: center;
  color: var(--text-secondary);
  font-size: 1.2rem;
  margin-bottom: 2.5rem;
  position: relative;
  z-index: 1;
}

.contact-row {
  display: flex;
  gap: 2.5rem;
  justify-content: center;
  align-items: stretch;
  flex-wrap: wrap;
  position: relative;
  z-index: 1;
}

.contact-card {
  background: #18191c;
  border-radius: 22px;
  box-shadow: 0 4px 32px rgba(0, 0, 0, 0.18);
  padding: 2.5rem 2rem;
  flex: 1 1 340px;
  min-width: 320px;
  max-width: 420px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
/* hi */
.contact-info h3 {
  color: #fff;
  font-size: 1.3rem;
  margin-bottom: 1.5rem;
  font-weight: 600;
}

.info-block {
  display: flex;
  align-items:flex-start;
  gap: 1rem;
  background: #232428;
  border-radius: 12px;
  padding: 1.1rem 1.2rem;
  margin-bottom: 1.2rem;
}

.info-block i {
  color: #7c3aed;
  font-size: 1.5rem;
  margin-top: 2px;
}

.info-label {
  color: #fff;
  font-weight: 600;
  font-size: 1.05rem;
  display: block;
}

.info-value {
  color: #bfc9d1;
  justify-content: left;
  font-size: 0.9rem;
  display: block;
  margin-top: 0.3rem;
}

.info-socials {
  display: flex;
  gap: 1.1rem;
  margin-top: 1.5rem;
}

.info-socials a {
  background: #232428;
  color: #fff;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  transition: background 0.2s, color 0.2s, box-shadow 0.2s;
}

.info-socials a:hover {
  background: #7c3aed;
  color: #18191c;
  box-shadow: 0 2px 10px #7c3aedaa;
}

.contact-form-card form {
  display: flex;
  flex-direction: column;
  gap: 1.3rem;
}

.contact-form-card .form-group {
  margin-bottom: 0;
}

.contact-form-card input,
.contact-form-card textarea {
  width: 100%;
  max-width: 100%;
  font-size: 1.18rem;
  padding: 1.3rem 1.4rem;
  background: #232428;
  border: none;
  color: #fff;
  border-radius: 10px;
  box-shadow: none;
  outline: none;
  transition: all 0.3s ease;
  margin-bottom: 0;
}

.contact-form-card input:focus,
.contact-form-card textarea:focus {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(156, 39, 176, 0.2);
  background: #2a2d32;
  border: 1.5px solid #7c3aed;
}

.contact-form-card textarea {
  min-height: 160px;
  resize: vertical;
}

.submit-btn {
  width: 100%;
  font-size: 1.22rem;
  padding: 1.2rem 0;
  margin-top: 0.7rem;
  background: linear-gradient(90deg, #ae3aed 0%, #a855f7 100%);
  color: #fff;
  border: none;
  border-radius: 12px;
  cursor: pointer;
  box-shadow: 0 2px 10px #7c3aed55;
  transition: background 0.2s, box-shadow 0.2s, transform 0.1s;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.7rem;
}

.submit-btn:hover {
  background: linear-gradient(90deg, #a855f7 0%, #7c3aed 100%);
  box-shadow: 0 4px 20px #7c3aed88;
  transform: translateY(-2px) scale(1.03);
}

@media (max-width: 900px) {
  .contact-row {
    flex-direction: column;
    gap: 2rem;
    align-items: stretch;
  }
  .contact-card {
    max-width: 100%;
  }
}

/* Footer Styles */
.footer {
  background: linear-gradient(135deg, #0f0c29 0%, #24243e 25%, #302b63 50%, #0f3460 75%, #1a1a2e 100%);
  color: #ffffff;
  position: relative;
  overflow: hidden;
  padding: 3rem 0 2rem;
  border-top: 1px solid rgba(156, 39, 176, 0.2);
}

.footer::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: 
    radial-gradient(circle at 20% 20%, rgba(156, 39, 176, 0.15) 0%, transparent 40%),
    radial-gradient(circle at 80% 80%, rgba(124, 58, 237, 0.15) 0%, transparent 40%),
    radial-gradient(circle at 50% 50%, rgba(225, 190, 231, 0.08) 0%, transparent 60%);
  z-index: 0;
  animation: footerGlow 8s ease-in-out infinite alternate;
}

@keyframes footerGlow {
  0% {
    opacity: 0.6;
    transform: scale(1);
  }
  100% {
    opacity: 1;
    transform: scale(1.05);
  }
}

.footer::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, transparent 0%, #9c27b0 25%, #e1bee7 50%, #9c27b0 75%, transparent 100%);
  z-index: 1;
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 5%;
  position: relative;
  z-index: 1;
}

.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
  flex-wrap: wrap;
  gap: 2rem;
  position: relative;
  z-index: 2;
}

.footer-main {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
  position: relative;
}

.footer-main::before {
  content: "";
  position: absolute;
  left: -20px;
  top: 50%;
  transform: translateY(-50%);
  width: 4px;
  height: 60px;
  background: linear-gradient(180deg, #9c27b0, #e1bee7);
  border-radius: 2px;
  opacity: 0.8;
}

.footer-title {
  font-size: 1.8rem;
  font-weight: 700;
  color: #ffffff;
  margin: 0;
  background: linear-gradient(45deg, #9c27b0, #e1bee7, #9c27b0);
  background-size: 200% 200%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: gradientShift 3s ease-in-out infinite;
  position: relative;
}

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

.footer-description {
  color: #b0b3b8;
  font-size: 0.95rem;
  margin: 0;
  font-weight: 300;
  letter-spacing: 0.5px;
}

.footer-social {
  display: flex;
  gap: 1rem;
  position: relative;
}

.footer-social::before {
  content: "";
  position: absolute;
  top: -10px;
  left: -10px;
  right: -10px;
  bottom: -10px;
  background: linear-gradient(45deg, rgba(156, 39, 176, 0.1), rgba(124, 58, 237, 0.1));
  border-radius: 20px;
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: -1;
}

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

.social-icon {
  width: 42px;
  height: 42px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  font-size: 1.1rem;
  text-decoration: none;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  backdrop-filter: blur(15px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  position: relative;
  overflow: hidden;
}

.social-icon::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: left 0.5s ease;
}

.social-icon:hover::before {
  left: 100%;
}

.social-icon:hover {
  background: linear-gradient(45deg, #9c27b0, #e1bee7);
  color: #ffffff;
  transform: translateY(-4px) scale(1.15) rotate(5deg);
  box-shadow: 0 8px 25px rgba(156, 39, 176, 0.5);
  border-color: rgba(255, 255, 255, 0.3);
}

.footer-links {
  display: flex;
  gap: 2.5rem;
  flex-wrap: wrap;
  position: relative;
}

.footer-links::before {
  content: "";
  position: absolute;
  top: -8px;
  left: -15px;
  right: -15px;
  bottom: -8px;
  background: linear-gradient(45deg, rgba(156, 39, 176, 0.05), rgba(124, 58, 237, 0.05));
  border-radius: 15px;
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: -1;
}

.footer-links:hover::before {
  opacity: 1;
}

.footer-links a {
  color: #b0b3b8;
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
  transition: all 0.3s ease;
  padding: 0.5rem 1rem;
  border-radius: 8px;
  position: relative;
  overflow: hidden;
}

.footer-links a::before {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, #9c27b0, #e1bee7);
  transition: all 0.3s ease;
  transform: translateX(-50%);
}

.footer-links a:hover {
  color: #e1bee7;
  transform: translateY(-2px);
  background: rgba(156, 39, 176, 0.1);
}

.footer-links a:hover::before {
  width: 80%;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 1.5rem 0 0;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  gap: 1.5rem;
  position: relative;
  z-index: 2;
}

.footer-bottom::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 1px;
  background: linear-gradient(90deg, transparent, #9c27b0, #e1bee7, #9c27b0, transparent);
}

.copyright {
  color: #b0b3b8;
  font-size: 0.9rem;
  margin: 0;
  text-align: center;
  font-weight: 300;
  letter-spacing: 0.5px;
  position: relative;
  padding: 0.5rem 1rem;
  border-radius: 25px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(10px);
  transition: all 0.3s ease;
}

.copyright:hover {
  background: rgba(156, 39, 176, 0.1);
  border-color: rgba(156, 39, 176, 0.3);
  color: #e1bee7;
  transform: translateY(-2px);
}
/* hi */
.back-to-top {
  color: #e1bee7;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.9rem;
  font-weight: 500;
  padding: 0.6rem 1.2rem;
  border-radius: 25px;
  background: linear-gradient(45deg, rgba(156, 39, 176, 0.2), rgba(124, 58, 237, 0.2));
  border: 1px solid rgba(156, 39, 176, 0.3);
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  position: relative;
  overflow: hidden;
}

.back-to-top::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: left 0.5s ease;
}

.back-to-top:hover::before {
  left: 100%;
}

.back-to-top:hover {
  background: linear-gradient(45deg, #9c27b0, #e1bee7);
  color: #ffffff;
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 6px 20px rgba(156, 39, 176, 0.4);
  border-color: rgba(255, 255, 255, 0.3);
}

/* ===== CLEAN RESPONSIVE DESIGN ===== */

/* Tablet and below */
@media (max-width: 1024px) {
  .hero-container {
    flex-direction: column;
    text-align: center;
    gap: 2rem;
  }
  
  .hero-left {
    max-width: 100%;
  }
  
  .profile-pic-wrapper {
    width: 300px;
    height: 300px;
  }
  
  .profile-pic {
    width: 250px;
    height: 250px;
  }
  
  .hero-stats {
    gap: 2rem;
  }
  
  .skills-grid {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  }
  
  .project-grid {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  }
  
  .contact-row {
    flex-direction: column;
    gap: 2rem;
  }
}

/* Mobile */
@media (max-width: 768px) {
  .navbar {
    padding: 0.8rem 4%;
  }
  
  .logo-image {
    width: 70px;
    height: 70px;
  }
  
  .nav-links {
    display: none;
  }
  
  .burger {
    display: block;
  }
  
  .hero {
    padding: 100px 4% 40px;
  }
  
  .hero-name {
    font-size: 3rem;
  }
  
  .hero-surname {
    font-size: 2.5rem;
  }
  
  .hero-actions {
    flex-direction: column;
    align-items: center;
    gap: 1rem;
  }
  
  .profile-pic-wrapper {
    width: 250px;
    height: 250px;
  }
  
  .profile-pic {
    width: 200px;
    height: 200px;
  }
  
  .hero-stats {
    flex-direction: column;
    gap: 1rem;
  }
  
  .about, .skills-section, .projects, .contact, .interests, .education, .certificates {
    padding: 3rem 4%;
  }
  
  .skills-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  
  .project-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  
  .interests-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  
  .contact-form-card input,
  .contact-form-card textarea {
    font-size: 1rem;
    padding: 1rem;
  }
}

/* Small Mobile */
@media (max-width: 480px) {
  .navbar {
    padding: 0.6rem 2%;
  }
  
  .logo-image {
    width: 60px;
    height: 60px;
  }
  
  .hero {
    padding: 80px 2% 30px;
  }
  
  .hero-name {
    font-size: 2.5rem;
  }
  
  .hero-surname {
    font-size: 2rem;
  }
  
  .profile-pic-wrapper {
    width: 200px;
    height: 200px;
  }
  
  .profile-pic {
    width: 160px;
    height: 160px;
  }
  
  .about, .skills-section, .projects, .contact, .interests, .education, .certificates {
    padding: 2rem 2%;
  }
  
  .about h2, .skills-section h2, .projects h2, .contact h2, .interests h2, .education h2, .certificates h2 {
    font-size: 2rem;
  }
  
  .about-text p {
    font-size: 1.1rem;
    line-height: 1.7;
    text-indent: 0;
  }
  
  .contact-item {
    font-size: 1.4rem;
    padding: 1.2rem 1.5rem;
  }
}

/* Responsive Design for Footer */
@media (max-width: 768px) {
  .footer {
    padding: 2rem 0 1.5rem;
  }
  
  .footer-content {
    flex-direction: column;
    text-align: center;
    gap: 2rem;
  }
  
  .footer-main::before {
    display: none;
  }
  
  .footer-social {
    justify-content: center;
  }
  
  .footer-links {
    justify-content: center;
    gap: 2rem;
  }
  
  .social-icon {
    width: 38px;
    height: 38px;
    font-size: 1rem;
  }
  
  .footer-title {
    font-size: 1.5rem;
  }
  
  .footer-bottom {
    gap: 1.2rem;
  }
}

@media (max-width: 480px) {
  .footer {
    padding: 1.5rem 0 1rem;
  }
  
  .footer-container {
    padding: 0 3%;
  }
  
  .footer-links {
    gap: 1.5rem;
    flex-wrap: wrap;
    justify-content: center;
  }
  
  .footer-links a {
    font-size: 0.9rem;
    padding: 0.4rem 0.8rem;
  }
  
  .social-icon {
    width: 36px;
    height: 36px;
    font-size: 0.95rem;
  }
  
  .footer-title {
    font-size: 1.3rem;
  }
  
  .copyright {
    font-size: 0.85rem;
    padding: 0.4rem 0.8rem;
  }
  
  .back-to-top {
    font-size: 0.85rem;
    padding: 0.5rem 1rem;
  }
}

.interests {
  padding: 5rem 10%;
  background: rgba(15, 12, 41, 0.5);
  backdrop-filter: blur(10px);
  align-items: center;
  
}
.interests h2 {
  text-align: center;
  align-items: center;
  margin-bottom: 3rem;
  color: var(--text-main);
  font-size: 2.5rem;
  font-weight: bold;
  position: relative;
  /* display: flex; */
  gap: 0.8rem;
}

.interests h2::before {
  content: attr(data-text);
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  color: rgba(228, 212, 227, 0.945);
  font-size: 1.4em;
  transform: translate(8px, 8px);
  z-index: -1;
  font-weight: bold;
}
.interests-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  margin-bottom: 2.5rem;
}
.interest-card {
  background: #18191c;
  border-radius: 16px;
  padding: 1.6rem 1.4rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.18);
}
.interest-card h3 {
  color: #7c3aed;
  margin-bottom: 0.6rem;
}
.interest-card p {
  color: #ffff;
}

.cta-section {
  background: #1c1d21;
  border-radius: 22px;
  padding: 2.5rem 1.4rem 3rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  text-align: center;
}
.cta-title {
  font-size: 2rem;
  margin-bottom: 0.6rem;
  color:#983eec;
}
.cta-subtitle {
  color: #e4e0f1;
  margin-bottom: 1.2rem;
}
.cta-btn {
  display: inline-block;
  padding: 0.9rem 1.4rem;
  border-radius: 999px;
  background: linear-gradient(90deg, #7c3aed 0%, #a855f7 100%);
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  box-shadow: 0 6px 22px #7c3aed55;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.cta-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 32px #7c3aed88;
}

body.light-mode {
  --bg-main: #f5f7fa;
  --bg-section: rgba(255, 255, 255, 0.7);
  --navbar-bg: rgba(255, 255, 255, 0.95);
  --text-main: #222;
  --text-secondary: #333;
  --accent: #7c3aed;
  --accent2: #a855f7;
  --shadow: rgba(124, 58, 237, 0.1);
  --overlay: rgba(255, 255, 255, 0.5);
}

body.light-mode .nav-links a,
body.light-mode .nav-links .cv-btn,
body.light-mode .hero-content h1,
body.light-mode .highlight,
body.light-mode .about h2,
body.light-mode .education h2,
body.light-mode .certificates h2,
body.light-mode .projects h2,
body.light-mode .contact h2,
body.light-mode footer {
  color: var(--text-main);
}

body.light-mode .nav-links a:hover,
body.light-mode .nav-links a.active {
  color: var(--accent);
  background: rgba(124, 58, 237, 0.08);
}

body.light-mode .nav-links .cv-btn {
  background: linear-gradient(45deg, var(--accent), var(--accent2));
  color: #fff;
}

body.light-mode .nav-links .cv-btn:hover {
  background: linear-gradient(45deg, var(--accent2), var(--accent));
}

body.light-mode .about,
body.light-mode .education {
  background: var(--bg-section-light);
}

body.light-mode .certificates {
  background: rgba(255, 255, 255, 0.5);
}

body.light-mode .skills-section {
  background: var(--bg-section-light);
}
body.light-mode .skill-card {
  background: rgba(255, 255, 255, 0.7);
}
body.light-mode .education-content::before {
  background: #d8dee9;
}
body.light-mode .edu-item {
  border: 1px solid #d8dee9;
}
body.light-mode .edu-item::before {
  box-shadow: 0 0 0 4px #eef2f7;
}

.nav-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  z-index: 999;
  pointer-events: none; /* Don't block clicks when inactive */
}

body.light-mode .cert-item a {
  background: var(--accent);
  color: #fff;
}

body.light-mode .cert-item a:hover {
  background: var(--accent2);
}

body.light-mode .profile-pic {
  background: #fff;
  border: 4px solid var(--accent);
}

body.light-mode .submit-btn {
  color: #222 !important;
  background: linear-gradient(45deg, #c379e3, #d5e6f0);
}
body.light-mode .submit-btn:hover {
  background: linear-gradient(45deg, #c067e7, #d3e2ea);
  color: #222 !important;
}

@keyframes navLinkFade {
  from {
    opacity: 0;
    transform: translateX(50px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

body:not(.light-mode) .nav-links a {
  color: #ffffff;
}

body:not(.light-mode) .nav-links a:hover,
body:not(.light-mode) .nav-links a.active {
  color: var(--accent);
  background: rgba(124, 58, 237, 0.15);
}

body:not(.light-mode) .burger div {
  background-color: #ffffff;
}

body:not(.light-mode) .burger.toggle .line1,
body:not(.light-mode) .burger.toggle .line3 {
  background-color: var(--accent);
}

/* Mobile Navigation */
@media (max-width: 768px) {
  .nav-links {
    position: fixed;
    right: -100%;
    top: 0;
    height: 100vh;
    width: 80%;
    background: rgba(255, 255, 255, 0.98);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    padding-top: 80px;
    transition: right 0.3s ease;
    z-index: 1001;
    box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
  }

  .nav-links.active {
    right: 0;
  }

  .nav-links li {
    margin: 1rem 0;
    width: 100%;
    text-align: center;
  }

  .nav-links a,
  .nav-links .cv-btn {
    width: 90%;
    margin: 0 auto;
    padding: 1rem 1.5rem;
    border-radius: 25px;
    font-size: 1rem;
    color: #666;
    text-decoration: none;
    display: block;
    transition: all 0.3s ease;
  }

  .nav-links a:hover,
  .nav-links a.active {
    background: rgba(124, 58, 237, 0.1);
    color: var(--accent);
  }

  .nav-links .cv-btn {
    background: linear-gradient(45deg, var(--accent), var(--accent2));
    color: #fff;
    margin-top: 1rem;
  }

  .nav-links .cv-btn:hover {
    background: linear-gradient(45deg, var(--accent2), var(--accent));
  }

  .burger {
    display: block;
    z-index: 1002;
  }

  .burger.toggle .line1 {
    transform: rotate(-45deg) translate(-5px, 6px);
    background-color: var(--accent);
  }

  .burger.toggle .line2 {
    opacity: 0;
  }

  .burger.toggle .line3 {
    transform: rotate(45deg) translate(-5px, -6px);
    background-color: var(--accent);
  }
}

@media screen and (max-width: 480px) {
  .nav-links {
    width: 85%;
    padding-top: 70px;
  }

  .nav-links a,
  .nav-links .cv-btn {
    width: 95%;
    padding: 1rem 1.2rem;
    font-size: 1rem;
  }

  .nav-links li {
    margin: 1.2rem 0;
  }

  .burger {
    margin-right: 0.5rem;
  }

  .burger div {
    width: 22px;
    height: 2.5px;
    margin: 4px;
  }
}

/* ===== RESPONSIVE UTILITIES ===== */

/* Responsive images */
img {
  max-width: 100%;
  height: auto;
}

/* Touch-friendly buttons on mobile */
@media (max-width: 768px) {
  button, .btn, a[role="button"] {
    min-height: 44px;
    min-width: 44px;
  }
}

.cv-btn {
  display: inline-block;
  margin: 2rem auto 0;
  padding: 0.7rem 2rem;
  background: linear-gradient(45deg, #dd8ce8, #a855f7);
  color: #fff;
  border: none;
  border-radius: 30px;
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  box-shadow: 0 2px 10px rgba(124, 58, 237, 0.2);
  transition: background 0.3s, box-shadow 0.3s, transform 0.2s;
  text-align: center;
}
.cv-btn:hover {
  background: linear-gradient(45deg, #dd8ce8, #7c3aed);
  box-shadow: 0 4px 20px rgba(124, 58, 237, 0.4);
  transform: translateY(-2px) scale(1.04);
}

.education {
  padding: 5rem 10%;
  background: var(--bg-section);
  backdrop-filter: blur(10px);
}
.education h2 {
  text-align: center;
  margin-bottom: 3rem;
  color: var(--text-main);
  font-size: 2.5rem;
  font-weight: bold;
  position: relative;
}

.education h2::before {
  content: attr(data-text);
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  color: rgba(156, 39, 176, 0.3);
  font-size: 1.4em;
  transform: translate(8px, 8px);
  z-index: -1;
  font-weight: bold;
}
.education-content {
  max-width: 800px;
  margin: 0 auto;
  position: relative;
  padding-left: 2.2rem; /* space for the timeline */
}
.education-content::before {
  content: "";
  position: absolute;
  left: 1.1rem;
  top: 0;
  bottom: 0;
  width: 3px;
  background: rgba(255, 255, 255, 0.12);
  border-radius: 2px;
}
.edu-item {
  background: rgba(255, 255, 255, 0.07);
  border-radius: 10px;
  margin-bottom: 2rem;
  padding: 1.5rem 2rem;
  box-shadow: 0 2px 10px rgba(124, 58, 237, 0.08);
  position: relative;
  border: 1px solid rgba(255, 255, 255, 0.08);
}
.edu-item::before {
  content: "";
  position: absolute;
  left: -1.35rem;
  top: 1.25rem;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 4px #18191c;
}
.edu-item h3 {
  color: var(--accent);
  margin-bottom: 0.5rem;
}
.edu-item p {
  color: var(--text-secondary);
}

body.light-mode .edu-item {
  background: #eef2f7;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.06);
}

.certificates {
  padding: 5rem 10%;
  background: #ffffff;
  backdrop-filter: blur(10px);
  position: relative;
  overflow: hidden;
}

.certificates::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: radial-gradient(circle at center, #d8cefa, transparent);
  z-index: 0;
  pointer-events: none;
}

.certificates h2 {
  text-align: center;
  margin-bottom: 3rem;
  color: var(--text-main);
  position: relative;
  z-index: 1;
  font-size: 2.5rem;
  font-weight: bold;
}

.certificates h2::before {
  content: attr(data-text);
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  color: rgba(156, 39, 176, 0.3);
  font-size: 1.4em;
  transform: translate(8px, 8px);
  z-index: -1;
  font-weight: bold;
}
.certificates-content {
  max-width: 800px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}
.cert-item {
  background: rgba(255, 255, 255, 0.07);
  border-radius: 10px;
  margin-bottom: 2rem;
  padding: 1.5rem 2rem;
  box-shadow: 0 2px 10px rgba(124, 58, 237, 0.08);
}
.cert-item h3 {
  color: var(--accent);
  margin-bottom: 0.5rem;
}
.cert-item p {
  color: var(--text-secondary);
}
.cert-item a {
  display: inline-block;
  margin-top: 0.7rem;
  color: #fff;
  background: var(--accent);
  padding: 0.4rem 1.2rem;
  border-radius: 20px;
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
  transition: background 0.3s, color 0.3s;
}
.cert-item a:hover {
  background: var(--accent2);
  color: #fff;
}

body.light-mode .cert-item {
  background: #eef2f7;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.06);
}

.nav-links a i {
  margin-right: 0.5em;
  font-size: 1.1em;
  vertical-align: middle;
}

.profile-pic {
  width: 250px;
  height: 250px;
  border-radius: 50%;
  gap: 1.25rem;
  object-fit: cover;
  position: relative;
  border: 4px solid var(--accent);
  animation: borderAnimation 3s ease-in-out infinite;
  box-shadow: 0 0 20px rgba(124, 58, 237, 0.3);
}

@keyframes borderAnimation {
  0% {
    border-radius: 50%;
  }
  25% {
    border-radius: 40% 60% 60% 40%;
  }
  50% {
    border-radius: 60% 40% 40% 60%;
  }
  75% {
    border-radius: 40% 60% 60% 40%;
  }
  100% {
    border-radius: 50%;
  }
}

#theme-toggle {
  background: none;
  border: none;
  color: var(--accent);
  font-size: 1.5rem;
  margin-right: 1.5rem;
  cursor: pointer;
  transition: color 0.3s;
  outline: none;
  z-index: 1002;
}
#theme-toggle:hover {
  color: var(--accent2);
}
