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

body {
  font-family:
    "Inter",
    "Poppins",
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    "Roboto",
    sans-serif;
  background-color: #0a0e27;
  color: #eee;
  overflow-x: hidden;
  font-weight: 400;
  letter-spacing: -0.01em;
}

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

/* Canvas for particles */
#particleCanvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  background: linear-gradient(135deg, #0a0e27 0%, #16213e 50%, #1a1a2e 100%);
}

/* Hero content on home page with 3D effect */
.hero-content {
  position: relative;
  text-align: center;
  padding: 200px 20px 150px;
  z-index: 1;
  animation: fadeInUp 1s ease-out;
  transform-style: preserve-3d;
}

.hero-content h1 {
  font-size: 4em;
  margin-bottom: 20px;
  font-weight: 700;
  font-family: "Poppins", sans-serif;
  letter-spacing: -0.02em;
  background: linear-gradient(45deg, #00d4ff, #7b2ff7);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation:
    glow 2s ease-in-out infinite alternate,
    float3D 6s ease-in-out infinite;
  transform-style: preserve-3d;
  text-shadow: 0 10px 20px rgba(0, 212, 255, 0.3);
}

.hero-content p {
  font-size: 1.4em;
  margin-bottom: 15px;
  opacity: 0.9;
  line-height: 1.6;
  transform: translateZ(20px);
}

/* Navigation */
nav {
  background: rgba(10, 14, 39, 0.95);
  backdrop-filter: blur(10px);
  padding: 18px 30px;
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
}

nav ul {
  list-style: none;
  display: flex;
  justify-content: center;
  gap: 40px;
  flex-wrap: wrap;
}

.social-links {
  position: absolute;
  right: 30px;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  gap: 15px;
  align-items: center;
}

.social-links a {
  color: rgba(255, 255, 255, 0.7);
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  padding: 6px 8px 8px 8px;
}

.social-links a:hover {
  color: #00d4ff;
  transform: translateY(-2px);
}

.social-links svg {
  width: 20px;
  height: 20px;
}

nav a {
  color: #eee;
  text-decoration: none;
  font-size: 1.1em;
  font-weight: 500;
  padding: 8px 16px;
  border-radius: 8px;
  transition: all 0.3s ease;
  position: relative;
}

nav a::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, #00d4ff, #7b2ff7);
  transition: all 0.3s ease;
  transform: translateX(-50%);
}

nav a:hover {
  color: #00d4ff;
  transform: translateY(-2px);
}

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

/* Main content */
main {
  min-height: 80vh;
  padding: 60px 20px;
  max-width: 1200px;
  margin: 0 auto;
}

main h1 {
  font-size: 2.5em;
  margin-bottom: 30px;
  color: #00d4ff;
  font-weight: 600;
  font-family: "Poppins", sans-serif;
  letter-spacing: -0.02em;
}

main h2 {
  font-size: 1.8em;
  margin: 30px 0 15px;
  color: #7b2ff7;
  font-weight: 600;
  font-family: "Poppins", sans-serif;
  letter-spacing: -0.01em;
}

main p {
  line-height: 1.8;
  font-size: 1.1em;
  margin-bottom: 15px;
  font-weight: 400;
  font-family: "Inter", sans-serif;
}

/* Job/Project Cards */
.job,
.project {
  background: transparent;
  backdrop-filter: none;
  border: none;
  border-radius: 0;
  padding: 30px 0;
  margin-bottom: 40px;
  transition: all 0.3s ease;
  max-width: 900px;
  width: 100%;
}

.job:hover,
.project:hover {
  transform: none;
}

.job h2,
.project h2 {
  margin-top: 0;
  margin-bottom: 12px;
  color: #fff;
  font-size: 1.8em;
}

.job h3 {
  color: rgba(255, 255, 255, 0.6);
  font-size: 1.1em;
  margin-bottom: 20px;
  font-weight: 400;
}

.job ul,
.project ul {
  margin-left: 25px;
  margin-top: 15px;
}

.job li,
.project li {
  margin-bottom: 10px;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.75);
}

/* Links */
a {
  color: #00d4ff;
  text-decoration: none;
  transition: color 0.3s;
}

a:hover {
  color: #7b2ff7;
}

/* Forms */
form {
  max-width: 600px;
}

input,
textarea {
  width: 100%;
  padding: 12px;
  margin-bottom: 20px;
  background: rgba(22, 33, 62, 0.6);
  border: 1px solid rgba(0, 212, 255, 0.3);
  border-radius: 8px;
  color: #eee;
  font-size: 1em;
  transition: all 0.3s;
}

input:focus,
textarea:focus {
  outline: none;
  border-color: #00d4ff;
  box-shadow: 0 0 10px rgba(0, 212, 255, 0.3);
}

button {
  background: linear-gradient(45deg, #00d4ff, #7b2ff7);
  color: white;
  padding: 12px 40px;
  border: none;
  border-radius: 8px;
  font-size: 1.1em;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s;
}

button:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 212, 255, 0.4);
}

/* Footer */
footer {
  background: rgba(10, 14, 39, 0.95);
  backdrop-filter: blur(10px);
  text-align: center;
  padding: 30px;
  margin-top: 80px;
  border-top: 1px solid rgba(0, 212, 255, 0.2);
}

/* 3D Animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px) translateZ(-50px);
  }
  to {
    opacity: 1;
    transform: translateY(0) translateZ(0);
  }
}

@keyframes glow {
  from {
    text-shadow: 0 0 20px rgba(0, 212, 255, 0.5);
  }
  to {
    text-shadow: 0 0 30px rgba(123, 47, 247, 0.8);
  }
}

@keyframes float3D {
  0%,
  100% {
    transform: translateY(0) rotateX(0deg) rotateY(0deg);
  }
  25% {
    transform: translateY(-10px) rotateX(2deg) rotateY(-2deg);
  }
  50% {
    transform: translateY(-20px) rotateX(0deg) rotateY(0deg);
  }
  75% {
    transform: translateY(-10px) rotateX(-2deg) rotateY(2deg);
  }
}

/* Chat Widget */
#chatWidget {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 1000;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.chat-tooltip {
  background: rgba(0, 212, 255, 0.15);
  backdrop-filter: blur(10px);
  color: #00d4ff;
  padding: 6px 12px;
  border-radius: 8px;
  font-size: 0.75em;
  white-space: nowrap;
  border: 1px solid rgba(0, 212, 255, 0.3);
  pointer-events: none;
  opacity: 0.9;
  margin-bottom: 8px;
}

#chatButton {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: linear-gradient(45deg, #00d4ff, #7b2ff7);
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 20px rgba(0, 212, 255, 0.4);
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

#chatButton:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 30px rgba(0, 212, 255, 0.6);
}

.chat-icon {
  font-size: 28px;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
}

#chatWindow {
  position: fixed;
  bottom: 90px;
  right: 20px;
  width: 350px;
  height: 500px;
  background: rgba(10, 14, 39, 0.98);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(0, 212, 255, 0.3);
  border-radius: 16px;
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.5);
  display: flex;
  flex-direction: column;
  transition: all 0.3s ease;
}

#chatWindow.chat-hidden {
  opacity: 0;
  pointer-events: none;
  transform: translateY(20px);
}

.chat-header {
  background: linear-gradient(45deg, #00d4ff, #7b2ff7);
  padding: 15px 20px;
  border-radius: 16px 16px 0 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.chat-header h3 {
  margin: 0;
  color: white;
  font-size: 1.1em;
}

#closeChat {
  background: none;
  border: none;
  color: white;
  font-size: 28px;
  cursor: pointer;
  padding: 0;
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s;
}

#closeChat:hover {
  transform: rotate(90deg);
}

.chat-messages {
  flex: 1;
  overflow-y: auto;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.chat-messages::-webkit-scrollbar {
  width: 6px;
}

.chat-messages::-webkit-scrollbar-thumb {
  background: rgba(0, 212, 255, 0.4);
  border-radius: 3px;
}

.bot-message,
.user-message {
  padding: 12px 16px;
  border-radius: 12px;
  max-width: 80%;
  word-wrap: break-word;
  animation: slideIn 0.3s ease;
}

.bot-message {
  background: rgba(0, 212, 255, 0.15);
  border: 1px solid rgba(0, 212, 255, 0.3);
  align-self: flex-start;
}

.user-message {
  background: rgba(123, 47, 247, 0.15);
  border: 1px solid rgba(123, 47, 247, 0.3);
  align-self: flex-end;
}

.bot-message p,
.user-message p {
  margin: 0;
  font-size: 0.95em;
  line-height: 1.5;
}

.chat-input-container {
  padding: 15px;
  border-top: 1px solid rgba(0, 212, 255, 0.2);
  display: flex;
  gap: 8px;
  align-items: center;
}

.voice-btn,
.speaker-btn {
  padding: 10px;
  background: rgba(22, 33, 62, 0.8);
  border: 1px solid rgba(0, 212, 255, 0.3);
  border-radius: 50%;
  color: #00d4ff;
  font-size: 1.2em;
  cursor: pointer;
  transition: all 0.3s;
  width: 42px;
  height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.voice-btn:hover,
.speaker-btn:hover {
  background: rgba(0, 212, 255, 0.2);
  border-color: #00d4ff;
  transform: scale(1.05);
}

.voice-btn.listening {
  background: rgba(255, 0, 0, 0.2);
  border-color: #ff0000;
  animation: pulse 1.5s infinite;
}

.speaker-btn.muted {
  opacity: 0.5;
  color: #666;
}

@keyframes pulse {
  0%,
  100% {
    box-shadow: 0 0 0 0 rgba(255, 0, 0, 0.7);
  }
  50% {
    box-shadow: 0 0 0 10px rgba(255, 0, 0, 0);
  }
}

#chatInput {
  flex: 1;
  padding: 10px 15px;
  background: rgba(22, 33, 62, 0.6);
  border: 1px solid rgba(0, 212, 255, 0.3);
  border-radius: 20px;
  color: #eee;
  font-size: 0.95em;
  margin-bottom: 0;
}

#chatInput:focus {
  outline: none;
  border-color: #00d4ff;
  box-shadow: 0 0 10px rgba(0, 212, 255, 0.3);
}

#sendMessage {
  padding: 10px 20px;
  background: linear-gradient(45deg, #00d4ff, #7b2ff7);
  border: none;
  border-radius: 20px;
  color: white;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s;
}

#sendMessage:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(0, 212, 255, 0.4);
}

@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* 3D Spiral with multiple rings */
.spiral-container {
  width: 350px;
  height: 350px;
  margin: 50px auto;
  perspective: 1200px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.spiral {
  width: 100%;
  height: 100%;
  position: relative;
  transform-style: preserve-3d;
  animation: rotateSpiralContainer 20s linear infinite;
}

.spiral-ring {
  position: absolute;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  border: 2px solid transparent;
  transform-style: preserve-3d;
  animation: rotateSpiral 4s linear infinite;
}

.spiral-ring.cyan {
  border-top-color: #00d4ff;
  border-right-color: #00d4ff;
  box-shadow:
    0 0 20px rgba(0, 212, 255, 0.6),
    inset 0 0 20px rgba(0, 212, 255, 0.3);
}

.spiral-ring.purple {
  border-top-color: #7b2ff7;
  border-right-color: #7b2ff7;
  box-shadow:
    0 0 20px rgba(123, 47, 247, 0.6),
    inset 0 0 20px rgba(123, 47, 247, 0.3);
}

@keyframes rotateSpiralContainer {
  0% {
    transform: rotateY(0deg) rotateX(20deg);
  }
  100% {
    transform: rotateY(360deg) rotateX(20deg);
  }
}

@keyframes rotateSpiral {
  0% {
    transform: rotateZ(0deg);
  }
  100% {
    transform: rotateZ(360deg);
  }
}

/* Contact Page Styling */
.grain-bg {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  background: linear-gradient(135deg, #0a0e27 0%, #16213e 50%, #1a1a2e 100%);
}

.grain-bg::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='2' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
  opacity: 0.15;
  mix-blend-mode: overlay;
}

/* Contact canvas */
#contact-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  pointer-events: none;
}

.contact-hero {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 100vh;
  padding: 100px 80px;
  max-width: 1400px;
  margin: 0 auto;
}

.contact-left {
  flex: 1;
  max-width: 600px;
  z-index: 2;
}

.contact-label {
  font-size: 0.9em;
  color: rgba(255, 255, 255, 0.6);
  letter-spacing: 2px;
  text-transform: uppercase;
  display: block;
  margin-bottom: 20px;
}

.contact-title {
  font-size: 3.5em;
  font-weight: 400;
  line-height: 1.2;
  margin-bottom: 30px;
  color: #fff;
  font-family: "Poppins", sans-serif;
}

.contact-subtitle {
  font-size: 1.1em;
  line-height: 1.8;
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 50px;
  max-width: 500px;
}

.contact-buttons {
  display: flex;
  gap: 20px;
  margin-bottom: 60px;
}

.contact-btn {
  padding: 14px 32px;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95em;
  transition: all 0.3s ease;
  border: 1px solid transparent;
  cursor: pointer;
  display: inline-block;
}

.primary-btn {
  background: #fff;
  color: #0a0e27;
  border-color: #fff;
}

.primary-btn:hover {
  background: rgba(255, 255, 255, 0.9);
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(255, 255, 255, 0.3);
}

.secondary-btn {
  background: transparent;
  color: #fff;
  border-color: rgba(255, 255, 255, 0.3);
}

.secondary-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.6);
  transform: translateY(-2px);
}

.contact-social {
  display: flex;
  gap: 20px;
  align-items: center;
}

.social-icon {
  width: 45px;
  height: 45px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 8px;
  color: #fff;
  text-decoration: none;
  font-size: 1.2em;
  transition: all 0.3s ease;
}

.social-icon:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.4);
  transform: translateY(-3px);
}

.social-icon svg {
  width: 20px;
  height: 20px;
}

.contact-right {
  flex: 1;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.illustration-container {
  width: 100%;
  max-width: 500px;
  aspect-ratio: 1;
}

/* Contact container - show it */
.contact-container {
  position: relative;
  z-index: 2;
  z-index: 1;
  max-width: 700px;
  margin: 0 auto;
  padding: 100px 30px 50px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.contact-container h1 {
  text-align: center;
  font-size: 3.5em;
  margin-bottom: 20px;
  background: linear-gradient(135deg, #00d4ff, #7b2ff7);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.contact-intro {
  text-align: center;
  font-size: 1.2em;
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 50px;
}

.contact-form {
  background: linear-gradient(
    135deg,
    rgba(0, 212, 255, 0.05),
    rgba(123, 47, 247, 0.05)
  );
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  padding: 40px;
  margin-bottom: 40px;
  box-shadow: 0 8px 32px 0 rgba(0, 212, 255, 0.1);
}

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

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 15px 20px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 10px;
  color: #fff;
  font-size: 1em;
  font-family: "Inter", sans-serif;
  transition: all 0.3s ease;
  box-sizing: border-box;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  background: rgba(255, 255, 255, 0.08);
  border-color: #00d4ff;
  box-shadow: 0 0 20px rgba(0, 212, 255, 0.3);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: rgba(255, 255, 255, 0.4);
}

.form-group textarea {
  resize: vertical;
  min-height: 120px;
}

.submit-btn {
  position: relative;
  width: 100%;
  padding: 18px 40px;
  background: linear-gradient(135deg, #00d4ff, #7b2ff7);
  border: none;
  border-radius: 12px;
  color: #fff;
  font-size: 1.1em;
  font-weight: 600;
  cursor: pointer;
  overflow: hidden;
  transition: all 0.4s ease;
  box-shadow: 0 4px 15px rgba(0, 212, 255, 0.4);
}

.submit-btn:hover {
  transform: translateY(-3px);
  box-shadow:
    0 8px 25px rgba(0, 212, 255, 0.6),
    0 0 30px rgba(123, 47, 247, 0.4);
}

.submit-btn span {
  position: relative;
  z-index: 2;
}

.btn-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  background: rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  transition:
    width 0.6s,
    height 0.6s;
}

.submit-btn:hover .btn-glow {
  width: 300px;
  height: 300px;
}

.contact-container .social-links {
  display: flex;
  justify-content: center;
  gap: 30px;
  margin-top: 20px;
  position: static;
}

.social-link {
  padding: 15px 35px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 12px;
  color: #00d4ff;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
  backdrop-filter: blur(5px);
}

.social-link:hover {
  background: rgba(0, 212, 255, 0.1);
  border-color: #00d4ff;
  transform: translateY(-3px);
  box-shadow: 0 5px 20px rgba(0, 212, 255, 0.3);
  color: #fff;
}

.cv-link {
  background: linear-gradient(
    135deg,
    rgba(0, 212, 255, 0.15),
    rgba(123, 47, 247, 0.15)
  );
  border-color: rgba(0, 212, 255, 0.3);
}

.cv-link:hover {
  background: linear-gradient(
    135deg,
    rgba(0, 212, 255, 0.25),
    rgba(123, 47, 247, 0.25)
  );
  box-shadow:
    0 5px 25px rgba(0, 212, 255, 0.4),
    0 0 20px rgba(123, 47, 247, 0.3);
}

/* Success and Error Messages */
.success-message {
  background: linear-gradient(
    135deg,
    rgba(76, 175, 80, 0.1),
    rgba(76, 175, 80, 0.05)
  );
  border: 1px solid rgba(76, 175, 80, 0.5);
  border-radius: 10px;
  padding: 20px;
  margin-bottom: 30px;
  color: #4caf50;
  font-weight: 500;
  animation: slideInUp 0.5s ease-out;
}

.error-message {
  background: linear-gradient(
    135deg,
    rgba(244, 67, 54, 0.1),
    rgba(244, 67, 54, 0.05)
  );
  border: 1px solid rgba(244, 67, 54, 0.5);
  border-radius: 10px;
  padding: 20px;
  margin-bottom: 30px;
  color: #f44336;
  font-weight: 500;
  animation: slideInUp 0.5s ease-out;
}

/* Hamburger Menu */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 30px;
  height: 21px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
  z-index: 101;
  position: absolute;
  left: 20px;
  top: 50%;
  transform: translateY(-50%);
}

.hamburger span {
  display: block;
  width: 100%;
  height: 3px;
  background: #eee;
  border-radius: 3px;
  transition: all 0.3s ease;
}

.hamburger.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.hamburger.active span:nth-child(2) {
  opacity: 0;
}

.hamburger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(7px, -6px);
}

/* Responsive */
@media (max-width: 768px) {
  .hamburger {
    display: flex;
  }

  nav {
    justify-content: center;
    padding: 15px 20px;
  }

  nav .nav-links {
    position: fixed;
    top: 0;
    left: -100%;
    width: 70%;
    max-width: 280px;
    height: 100vh;
    background: rgba(10, 14, 39, 0.98);
    backdrop-filter: blur(10px);
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-start;
    padding: 80px 30px 30px;
    gap: 10px;
    transition: left 0.3s ease;
    z-index: 100;
    box-shadow: 2px 0 20px rgba(0, 0, 0, 0.5);
  }

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

  nav .nav-links li {
    width: 100%;
  }

  nav .nav-links a {
    display: block;
    padding: 15px 0;
    font-size: 1.2em;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  }

  .social-links {
    position: static;
    transform: none;
    gap: 20px;
  }

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

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

  #chatWindow {
    width: calc(100vw - 40px);
    right: 20px;
    left: 20px;
    height: 450px;
  }

  .about-content {
    padding: 80px 15px 40px;
  }

  .about-content p {
    font-size: 1em;
    line-height: 1.7;
  }
}

/* Constellation Canvas (About Page - 6 dots) */
#constellation-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}

#fibonacci-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}

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

/* Parallax Layers (Experience Page - 5 layers) */
.parallax-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  z-index: 0;
  pointer-events: none;
}

.parallax-layer {
  position: absolute;
  width: 100%;
  height: 100%;
  background-size: 200px 200px;
  opacity: 0.15;
}

.layer-1 {
  background: radial-gradient(circle, #00d4ff 2px, transparent 2px);
  background-size: 100px 100px;
}

.layer-2 {
  background: radial-gradient(circle, #7b2ff7 2px, transparent 2px);
  background-size: 150px 150px;
  opacity: 0.1;
}

.layer-3 {
  background: linear-gradient(
    45deg,
    transparent 48%,
    #00d4ff 48%,
    #00d4ff 52%,
    transparent 52%
  );
  background-size: 80px 80px;
  opacity: 0.08;
}

.layer-4 {
  background: linear-gradient(
    -45deg,
    transparent 48%,
    #7b2ff7 48%,
    #7b2ff7 52%,
    transparent 52%
  );
  background-size: 120px 120px;
  opacity: 0.06;
}

.layer-5 {
  background: radial-gradient(
    circle,
    rgba(0, 212, 255, 0.3) 1px,
    transparent 1px
  );
  background-size: 60px 60px;
  opacity: 0.1;
}

.experience-content {
  position: relative;
  z-index: 2;
  padding: 80px 20px 50px;
  max-width: 100%;
  margin: 0 auto;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.experience-content h1 {
  text-align: center;
  margin-bottom: 70px;
  font-size: 3.5em;
  background: linear-gradient(135deg, #00d4ff, #7b2ff7);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  z-index: 2;
  width: 100%;
}

/* Human Particles Canvas */
#human-particles-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
  background: linear-gradient(135deg, #0a0e27 0%, #16213e 50%, #1a1a2e 100%);
}

/* Typewriter Effect (Skills Page - 3 words) */
#fibonacci-rectangles-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}

.skills-content {
  position: fixed;
  left: 50px;
  top: 50%;
  transform: translateY(-50%);
  padding: 40px;
  padding-top: 80px;
  max-width: 500px;
  max-height: 90vh;
  overflow-y: auto;
  z-index: 2;
  text-align: left;
}

.skills-content h1 {
  font-size: 2.5em;
  margin-bottom: 30px;
  color: #fff;
  font-weight: 700;
}

.skills-content h2 {
  font-size: 1.5em;
  color: #7b2ff7;
  margin-top: 30px;
  margin-bottom: 10px;
  font-weight: 600;
}

.skills-content p {
  color: #ccc;
  font-size: 1.1em;
  margin-bottom: 20px;
}

/* Skills Icons Sidebar - positioned in circular arrangement */
.skills-icons-sidebar {
  position: fixed;
  right: 60px;
  top: 50%;
  transform: translateY(-50%);
  width: 280px;
  height: 280px;
  z-index: 10;
}

.skill-icon {
  position: absolute;
  width: 65px;
  height: 65px;
  background: linear-gradient(
    135deg,
    rgba(0, 212, 255, 0.1),
    rgba(123, 47, 247, 0.1)
  );
  backdrop-filter: blur(10px);
  border: 2px solid rgba(0, 212, 255, 0.3);
  border-radius: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(0, 212, 255, 0.2);
  margin-left: -32.5px;
  margin-top: -32.5px;
}

/* Circular positioning for each icon */
.skill-icon:nth-child(1) {
  left: 140px;
  top: 20px;
}

.skill-icon:nth-child(2) {
  left: 225px;
  top: 65px;
}

.skill-icon:nth-child(3) {
  left: 260px;
  top: 140px;
}

.skill-icon:nth-child(4) {
  left: 225px;
  top: 215px;
}

.skill-icon:nth-child(5) {
  left: 140px;
  top: 260px;
}

.skill-icon:nth-child(6) {
  left: 55px;
  top: 215px;
}

.skill-icon:nth-child(7) {
  left: 20px;
  top: 140px;
}

.skill-icon:nth-child(8) {
  left: 55px;
  top: 65px;
}

.skill-icon:nth-child(even) {
  animation-delay: 0s;
}

.skill-icon:nth-child(3n) {
  animation-delay: 0s;
}

.skill-icon:nth-child(4n) {
  animation-delay: 0s;
}

.skill-icon:hover {
  transform: scale(1.2) rotate(5deg);
  background: linear-gradient(
    135deg,
    rgba(0, 212, 255, 0.2),
    rgba(123, 47, 247, 0.2)
  );
  border-color: rgba(0, 212, 255, 0.6);
  box-shadow: 0 8px 25px rgba(0, 212, 255, 0.4);
}

.icon-text {
  font-size: 0.9em;
  font-weight: 700;
  background: linear-gradient(135deg, #00d4ff, #7b2ff7);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-align: center;
  padding: 5px;
}

.icon-emoji {
  font-size: 2em;
}

@keyframes floatSidebar {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
}

/* Responsive: move sidebar to bottom on mobile */
@media (max-width: 768px) {
  .skills-icons-sidebar {
    position: fixed;
    bottom: 20px;
    left: 50%;
    right: auto;
    top: auto;
    transform: translateX(-50%);
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    max-width: 90%;
    gap: 10px;
  }

  .skill-icon {
    width: 55px;
    height: 55px;
  }

  .icon-text {
    font-size: 0.75em;
  }

  .icon-emoji {
    font-size: 1.5em;
  }
}

/* Floating Icons (Projects Page Redesign) */
.floating-icons-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  pointer-events: none;
  z-index: 0;
}

.floating-icon {
  position: absolute;
  font-size: 3em;
  pointer-events: all;
  cursor: pointer;
  transition: transform 0.3s ease;
  filter: drop-shadow(0 0 10px rgba(0, 212, 255, 0.5));
  animation: float 20s infinite ease-in-out;
  z-index: 1;
}

.floating-icon:hover {
  transform: scale(1.5) rotate(360deg);
  filter: drop-shadow(0 0 20px rgba(123, 47, 247, 0.8));
}

@keyframes float {
  0%,
  100% {
    transform: translateY(0) rotate(0deg);
  }
  25% {
    transform: translateY(-30px) rotate(90deg);
  }
  50% {
    transform: translateY(0) rotate(180deg);
  }
  75% {
    transform: translateY(-20px) rotate(270deg);
  }
}

#projects-spiral-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  background: linear-gradient(135deg, #0a0e27 0%, #16213e 50%, #1a1a2e 100%);
}

.projects-content {
  position: relative;
  z-index: 2;
  padding: 80px 20px 50px;
  max-width: 100%;
  margin: 0 auto;
  min-height: 100vh;
}

.projects-content h1 {
  text-align: center;
  margin-bottom: 80px;
  font-size: 3.5em;
  background: linear-gradient(135deg, #00d4ff, #7b2ff7);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  position: fixed;
  top: 101px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  width: 100%;
}

.projects-grid {
  position: relative;
  width: 100%;
  z-index: 2;
}

.projects-grid > div {
  pointer-events: all;
}

.projects-left {
  position: fixed;
  left: 30px;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  gap: 50px;
  z-index: 2;
}

.projects-right {
  position: fixed;
  right: 30px;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  gap: 50px;
  z-index: 2;
}

.project-card-container {
  perspective: 1000px;
  width: 280px;
  min-height: 160px;
}

.project-card {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: 160px;
  transition: transform 0.6s;
  transform-style: preserve-3d;
  cursor: pointer;
}

.project-card-container:hover .project-card {
  transform: rotateY(180deg);
}

.project-card-front,
.project-card-back {
  position: absolute;
  width: 100%;
  height: 100%;
  min-height: 160px;
  backface-visibility: hidden;
  background: linear-gradient(
    135deg,
    rgba(0, 212, 255, 0.08),
    rgba(123, 47, 247, 0.08)
  );
  backdrop-filter: blur(15px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 20px;
  padding: 30px 25px;
  box-shadow: 0 8px 32px 0 rgba(0, 212, 255, 0.15);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.project-card-front {
  z-index: 2;
}

.project-card-back {
  transform: rotateY(180deg);
  align-items: center;
  text-align: center;
}

.project-card-back p {
  color: rgba(255, 255, 255, 0.9);
  line-height: 1.6;
  font-size: 0.95em;
}

.project-card-container:hover .project-card-front,
.project-card-container:hover .project-card-back {
  box-shadow:
    0 15px 45px 0 rgba(0, 212, 255, 0.35),
    0 0 30px 0 rgba(123, 47, 247, 0.2);
  border-color: rgba(0, 212, 255, 0.4);
}

.project-card-front h3 {
  margin: 0 0 18px 0;
  color: #fff;
  font-size: 1.4em;
  text-align: center;
  line-height: 1.3;
}

.project-tags {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: center;
}

.tag {
  background: linear-gradient(
    135deg,
    rgba(0, 212, 255, 0.2),
    rgba(123, 47, 247, 0.2)
  );
  border: 1px solid rgba(0, 212, 255, 0.3);
  padding: 6px 12px;
  border-radius: 15px;
  font-size: 0.75em;
  color: #00d4ff;
  font-weight: 600;
}

.btn-secondary:hover {
  background: rgba(0, 212, 255, 0.1);
  transform: translateY(-3px);
}

/* Keep old flip card styles for backward compatibility but hide */
.flip-cards-container {
  display: none;
}

/* Flip Cards (Projects Page - 4 cards) */
.flip-cards-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  padding: 50px 20px;
  max-width: 1200px;
  margin: 0 auto;
}

.flip-card {
  height: 350px;
  perspective: 1000px;
  cursor: pointer;
}

.flip-card-inner {
  position: relative;
  width: 100%;
  height: 100%;
  transition: transform 0.8s;
  transform-style: preserve-3d;
}

.flip-card-inner.flipped {
  transform: rotateY(180deg);
}

.flip-card-front,
.flip-card-back {
  position: absolute;
  width: 100%;
  height: 100%;
  backface-visibility: hidden;
  border-radius: 20px;
  padding: 30px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  box-shadow: 0 8px 32px 0 rgba(0, 212, 255, 0.2);
}

.flip-card-front {
  background: linear-gradient(
    135deg,
    rgba(0, 212, 255, 0.1),
    rgba(123, 47, 247, 0.1)
  );
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.flip-card-front h2 {
  font-size: 2.5em;
  margin: 0;
  background: linear-gradient(135deg, #00d4ff, #7b2ff7);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.flip-card-front p {
  color: #fff;
  opacity: 0.7;
  margin-top: 20px;
}

.flip-card-back {
  background: linear-gradient(
    135deg,
    rgba(123, 47, 247, 0.15),
    rgba(0, 212, 255, 0.15)
  );
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  transform: rotateY(180deg);
}

.flip-card-back h3 {
  color: #00d4ff;
  margin-bottom: 15px;
  font-size: 1.8em;
}

.flip-card-back p {
  color: #fff;
  margin: 10px 0;
  line-height: 1.6;
}

.flip-card-back a {
  color: #7b2ff7;
  text-decoration: none;
  font-weight: 600;
  transition: color 0.3s;
}

.flip-card-back a:hover {
  color: #00d4ff;
}

/* Additional Mobile Optimizations */
@media (max-width: 480px) {
  .hero-content h1 {
    font-size: 1.6em;
  }

  .hero-content p {
    font-size: 0.9em;
  }

  #chatWindow {
    width: calc(100vw - 20px);
    right: 10px;
    left: 10px;
    height: 400px;
  }

  .flip-cards-container {
    padding: 30px 10px;
  }

  .projects-content h1 {
    font-size: 2em;
  }

  .floating-icon {
    font-size: 2em;
  }
}
