:root {
  --bg-dark: #0a0a0f;
  --bg-darker: #05050a;
  --bg-gradient: linear-gradient(135deg, #0a0a0f 0%, #0d1117 100%);
  --text-primary: #ffffff;
  --text-secondary: #b0b0d0;
  --accent-cyan: #00d4ff;
  --accent-green: #00ff9d;
  --accent-purple: #7b2cbf;
  --accent-pink: #ff4d8d;
  --accent-blue: #4d79ff;
  --gradient-cyber: linear-gradient(
    90deg,
    var(--accent-cyan),
    var(--accent-purple)
  );
  --gradient-tech: linear-gradient(
    90deg,
    var(--accent-green),
    var(--accent-blue)
  );
  --gradient-neon: linear-gradient(
    90deg,
    var(--accent-pink),
    var(--accent-cyan)
  );
  --card-bg: rgba(20, 25, 40, 0.7);
  --card-border: rgba(0, 212, 255, 0.2);
  --glass-bg: rgba(255, 255, 255, 0.05);
  --glass-border: rgba(255, 255, 255, 0.1);
  --section-padding: clamp(60px, 8vw, 120px);
  --container-width: min(1400px, 92vw);
  --modal-overlay: rgba(0, 0, 0, 0.8);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
  overflow-x: hidden;
}

body {
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    Oxygen, Ubuntu, sans-serif;
  background: var(--bg-dark);
  color: var(--text-primary);
  overflow-x: hidden;
  line-height: 1.6;
  font-weight: 400;
}

::selection {
  background: var(--accent-cyan);
  color: var(--bg-dark);
}

/* ===== LOADER ===== */
.loader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--bg-darker);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  z-index: 10000;
  transition: opacity 0.8s ease, visibility 0.8s ease;
}

.loader.hidden {
  opacity: 0;
  visibility: hidden;
}

.loader-text {
  font-size: clamp(32px, 6vw, 64px);
  font-weight: 900;
  margin-bottom: 40px;
  background: var(--gradient-cyber);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  position: relative;
  overflow: hidden;
  animation: textShimmer 2s ease-in-out infinite alternate;
}

@keyframes textShimmer {
  0% {
    filter: hue-rotate(0deg);
    text-shadow: 0 0 20px rgba(0, 212, 255, 0.5);
  }
  100% {
    filter: hue-rotate(90deg);
    text-shadow: 0 0 30px rgba(0, 212, 255, 0.8);
  }
}

.loader-bar {
  width: min(400px, 80vw);
  height: 4px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 2px;
  overflow: hidden;
  margin-top: 30px;
}

.loader-progress {
  height: 100%;
  width: 0;
  background: var(--gradient-cyber);
  border-radius: 2px;
  animation: loadingBar 2.5s ease-in-out forwards;
}

@keyframes loadingBar {
  0% {
    width: 0;
  }
  100% {
    width: 100%;
  }
}

/* ===== CUSTOM CURSOR ===== */
.cursor {
  position: fixed;
  width: 20px;
  height: 20px;
  border: 2px solid var(--accent-cyan);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%, -50%);
  transition: width 0.3s, height 0.3s, border-color 0.3s;
  mix-blend-mode: difference;
  display: none;
}

.cursor-follower {
  position: fixed;
  width: 60px;
  height: 60px;
  background: rgba(0, 212, 255, 0.1);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9998;
  transform: translate(-50%, -50%);
  transition: all 0.6s ease;
  display: none;
}

@media (min-width: 1024px) {
  .cursor,
  .cursor-follower {
    display: block;
  }
}

/* ===== 3D BACKGROUND CANVAS ===== */
#three-bg {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -2;
  opacity: 0.6;
}

/* ===== NAVIGATION ===== */
nav {
  position: fixed;
  top: 0;
  width: 100%;
  padding: clamp(15px, 3vw, 25px) clamp(20px, 4vw, 60px);
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 1000;
  background: rgba(10, 10, 15, 0.9);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(0, 212, 255, 0.1);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

nav.scrolled {
  padding: 12px clamp(20px, 4vw, 60px);
  background: rgba(10, 10, 15, 0.95);
  box-shadow: 0 5px 30px rgba(0, 0, 0, 0.3);
}

.logo {
  font-size: clamp(24px, 4vw, 32px);
  font-weight: 900;
  background: var(--gradient-cyber);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  letter-spacing: -1px;
  transition: all 0.3s;
  position: relative;
  overflow: hidden;
  padding: 5px 0;
  font-family: "Courier New", monospace;
  text-decoration: none;
}

.logo::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: var(--gradient-cyber);
  transform: translateX(-100%);
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.logo:hover::after {
  transform: translateX(0);
}

.nav-links {
  display: flex;
  gap: clamp(15px, 2vw, 30px);
  list-style: none;
}

.nav-links a {
  color: var(--text-primary);
  text-decoration: none;
  font-weight: 600;
  font-size: clamp(12px, 1.5vw, 14px);
  text-transform: uppercase;
  letter-spacing: 1px;
  position: relative;
  padding: 8px 0;
  transition: color 0.3s;
}

.nav-links a::before {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--gradient-cyber);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.nav-links a:hover {
  color: var(--accent-cyan);
}

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

.mobile-menu-btn {
  display: none;
  background: transparent;
  border: none;
  color: var(--text-primary);
  font-size: 24px;
  cursor: pointer;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  align-items: center;
  justify-content: center;
  transition: all 0.3s;
}

.mobile-menu-btn:hover {
  background: rgba(255, 255, 255, 0.1);
}

/* ===== HERO SECTION ===== */
.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  position: relative;
  padding-top: 100px;
  overflow: hidden;
}

.hero-grid {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: linear-gradient(
      rgba(0, 212, 255, 0.03) 1px,
      transparent 1px
    ),
    linear-gradient(90deg, rgba(0, 212, 255, 0.03) 1px, transparent 1px);
  background-size: 50px 50px;
  z-index: -1;
  animation: gridMove 40s linear infinite;
}

@keyframes gridMove {
  0% {
    transform: translate(0, 0);
  }
  100% {
    transform: translate(50px, 50px);
  }
}

.hero-binary {
  position: absolute;
  color: rgba(0, 212, 255, 0.1);
  font-family: "Courier New", monospace;
  font-size: 14px;
  z-index: -1;
  user-select: none;
}

.hero-content {
  max-width: 1200px;
  padding: 0 clamp(20px, 5vw, 40px);
  position: relative;
  z-index: 1;
}

.hero-title {
  font-size: clamp(48px, 10vw, 120px);
  font-weight: 900;
  line-height: 0.9;
  margin-bottom: clamp(20px, 4vw, 40px);
  letter-spacing: -3px;
  position: relative;
  overflow: hidden;
}

.hero-title-main {
  display: block;
  background: var(--gradient-cyber);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: titleReveal 1.5s cubic-bezier(0.77, 0, 0.175, 1) forwards;
  transform: translateY(100%);
  opacity: 0;
  position: relative;
  text-shadow: 0 0 30px rgba(0, 212, 255, 0.3);
}

.hero-title-sub {
  display: block;
  background: var(--gradient-tech);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: titleReveal 1.5s cubic-bezier(0.77, 0, 0.175, 1) 0.3s forwards;
  transform: translateY(100%);
  opacity: 0;
  position: relative;
}

@keyframes titleReveal {
  0% {
    transform: translateY(100%);
    opacity: 0;
  }
  100% {
    transform: translateY(0);
    opacity: 1;
  }
}

.hero-glitch {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: inherit;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: glitch 3s infinite linear alternate-reverse;
  opacity: 0;
  pointer-events: none;
}

@keyframes glitch {
  0%,
  90%,
  100% {
    transform: translate(0);
    opacity: 0;
  }
  92% {
    transform: translate(-2px, 2px);
    opacity: 0.3;
  }
  94% {
    transform: translate(2px, -2px);
    opacity: 0.3;
  }
  96% {
    transform: translate(-2px, -2px);
    opacity: 0.3;
  }
  98% {
    transform: translate(2px, 2px);
    opacity: 0.3;
  }
}

.hero-tagline {
  font-size: clamp(18px, 3vw, 28px);
  color: var(--text-secondary);
  margin-bottom: clamp(30px, 5vw, 60px);
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  opacity: 0;
  transform: translateY(30px);
  animation: fadeUp 1s ease 1.2s forwards;
}

.hero-roles {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 15px;
  margin-bottom: clamp(40px, 6vw, 80px);
  opacity: 0;
  animation: fadeUp 1s ease 1.5s forwards;
}

.role-chip {
  padding: clamp(10px, 2vw, 12px) clamp(20px, 3vw, 24px);
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 50px;
  font-size: clamp(13px, 1.6vw, 16px);
  font-weight: 600;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 8px;
  transition: all 0.3s;
  position: relative;
  overflow: hidden;
  backdrop-filter: blur(10px);
}

.role-chip::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: var(--gradient-cyber);
  opacity: 0.2;
  transition: left 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: -1;
}

.role-chip:hover {
  transform: translateY(-5px);
  border-color: var(--accent-cyan);
  box-shadow: 0 10px 30px rgba(0, 212, 255, 0.2);
}

.role-chip:hover::before {
  left: 0;
}

.hero-buttons {
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
  justify-content: center;
  opacity: 0;
  animation: fadeUp 1s ease 1.8s forwards;
}

.btn {
  padding: clamp(14px, 2vw, 18px) clamp(25px, 4vw, 40px);
  font-size: clamp(14px, 1.8vw, 16px);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  border-radius: 50px;
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
  z-index: 1;
  min-width: min(200px, 80vw);
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border: none;
  flex: 1;
  max-width: 300px;
}

.btn-primary {
  background: var(--gradient-cyber);
  color: var(--bg-dark);
  box-shadow: 0 10px 30px rgba(0, 212, 255, 0.3);
}

.btn-primary:hover {
  transform: translateY(-5px) scale(1.05);
  box-shadow: 0 20px 40px rgba(0, 212, 255, 0.5);
}

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

.btn-secondary:hover {
  background: rgba(0, 212, 255, 0.1);
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0, 212, 255, 0.2);
}

.btn-tertiary {
  background: transparent;
  color: var(--accent-purple);
  border: 2px solid var(--accent-purple);
}

.btn-tertiary:hover {
  background: rgba(123, 44, 191, 0.1);
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(123, 44, 191, 0.3);
}

/* ===== SECTIONS COMMON STYLES ===== */
section {
  padding: var(--section-padding) clamp(20px, 4vw, 30px);
  position: relative;
  overflow: hidden;
}

.container {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 clamp(15px, 3vw, 30px);
}

.section-title {
  font-size: clamp(40px, 8vw, 80px);
  font-weight: 900;
  margin-bottom: clamp(40px, 6vw, 80px);
  background: var(--gradient-cyber);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  letter-spacing: -2px;
  line-height: 1.1;
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
  text-align: center;
}

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

/* ===== ABOUT SECTION ===== */
.about-content {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(40px, 6vw, 80px);
  align-items: center;
}

@media (min-width: 992px) {
  .about-content {
    grid-template-columns: 1fr 1fr;
  }
}

.about-text {
  font-size: clamp(16px, 2vw, 20px);
  line-height: 1.8;
  color: var(--text-secondary);
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.about-text.visible {
  opacity: 1;
  transform: translateY(0);
}

.about-text strong {
  color: var(--accent-cyan);
  font-weight: 700;
}

/* ===== EXPERIENCE & EDUCATION TABS ===== */
.tab-system {
  margin-top: 40px;
}

.tab-titles {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 30px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.tab-links {
  padding: clamp(12px, 2vw, 15px) clamp(20px, 3vw, 30px);
  background: transparent;
  color: var(--text-secondary);
  border: none;
  border-bottom: 3px solid transparent;
  font-size: clamp(16px, 1.8vw, 18px);
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s;
  position: relative;
  flex: 1;
  min-width: 140px;
  text-align: center;
}

.tab-links.active-link {
  color: var(--accent-cyan);
  border-bottom: 3px solid var(--accent-cyan);
}

.tab-links:hover:not(.active-link) {
  color: var(--accent-cyan);
}

.tab-contents {
  display: none;
  animation: fadeIn 0.5s ease;
}

.tab-contents.active-tab {
  display: block;
}

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

.experience-list,
.education-list,
.skills-list {
  list-style: none;
}

.experience-list li,
.education-list li {
  padding: clamp(20px, 3vw, 25px);
  margin-bottom: 20px;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 15px;
  transition: all 0.3s;
  backdrop-filter: blur(10px);
}

.experience-list li:hover,
.education-list li:hover {
  transform: translateY(-5px);
  border-color: var(--accent-cyan);
  box-shadow: 0 10px 30px rgba(0, 212, 255, 0.2);
}

.experience-list li span,
.education-list li span {
  display: block;
  color: var(--accent-cyan);
  font-weight: 600;
  margin-bottom: 10px;
  font-size: clamp(16px, 2vw, 18px);
}

.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr));
  gap: 25px;
  margin-top: 40px;
}

.skill-card {
  padding: clamp(25px, 3vw, 35px);
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 20px;
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  opacity: 0;
  transform: translateY(50px);
  position: relative;
  overflow: hidden;
  backdrop-filter: blur(10px);
}

.skill-card.visible {
  opacity: 1;
  transform: translateY(0);
}

.skill-card:hover {
  transform: translateY(-15px) scale(1.02);
  border-color: var(--accent-cyan);
  box-shadow: 0 30px 60px rgba(0, 212, 255, 0.2);
}

.skill-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 5px;
  background: var(--gradient-cyber);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

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

.skill-icon {
  font-size: clamp(36px, 5vw, 48px);
  margin-bottom: 20px;
  display: inline-block;
  background: var(--gradient-cyber);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: float 3s ease-in-out infinite;
}

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

.skill-card h3 {
  font-size: clamp(22px, 3vw, 26px);
  margin-bottom: 15px;
  color: var(--accent-cyan);
}

.skill-card p {
  color: var(--text-secondary);
  line-height: 1.7;
  font-size: clamp(14px, 1.8vw, 16px);
  margin-bottom: 20px;
}

.skill-list {
  list-style: none;
}

.skill-list li {
  padding: 8px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--text-secondary);
  display: flex;
  justify-content: space-between;
  font-size: clamp(14px, 1.8vw, 16px);
}

.skill-list li:last-child {
  border-bottom: none;
}

.skill-level {
  color: var(--accent-cyan);
  font-weight: 600;
}

/* .tech-category {
  margin-bottom: 30px;
}

.tech-category h4 {
  font-size: clamp(18px, 2vw, 20px);
  margin-bottom: 15px;
  color: var(--accent-cyan);
  display: flex;
  align-items: center;
  gap: 10px;
}

.tech-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
} */

/* .tech-tag {
  padding: 6px 12px;
  background: rgba(0, 212, 255, 0.1);
  border: 1px solid rgba(0, 212, 255, 0.3);
  border-radius: 50px;
  font-size: 13px;
  color: var(--accent-cyan);
  transition: all 0.3s;
}

.tech-tag:hover {
  background: rgba(0, 212, 255, 0.2);
  transform: translateY(-3px);
} */

/* ===== ABOUT VISUAL - RESPONSIVE FIX ===== */
.about-visual {
  position: relative;
  height: clamp(350px, 50vw, 500px);
  border-radius: 20px;
  overflow: hidden;
  opacity: 0;
  transform: scale(0.9);
  transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1) 0.2s;
  width: 100%;
  min-height: 350px;
}

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

.visual-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--gradient-cyber);
  opacity: 0.3;
}

.visual-content {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: clamp(8px, 2vw, 15px); /* Responsive gap */
  padding: clamp(15px, 4vw, 30px); /* Responsive padding */
  box-sizing: border-box;
}

.visual-item {
  display: flex;
  align-items: center;
  gap: clamp(8px, 2vw, 12px); /* Responsive gap */
  padding: clamp(10px, 3vw, 15px) clamp(12px, 3vw, 20px); /* Responsive padding */
  background: rgba(10, 10, 15, 0.85);
  border-radius: 15px;
  width: 100%;
  max-width: min(300px, 90%);
  transform: translateX(-100%);
  opacity: 0;
  transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-sizing: border-box;
  margin: 0 auto;
}

/* Animation delays */
.about-visual.visible .visual-item:nth-child(1) {
  transform: translateX(0);
  opacity: 1;
  transition-delay: 0.4s;
}

.about-visual.visible .visual-item:nth-child(2) {
  transform: translateX(0);
  opacity: 1;
  transition-delay: 0.6s;
}

.about-visual.visible .visual-item:nth-child(3) {
  transform: translateX(0);
  opacity: 1;
  transition-delay: 0.8s;
}

.visual-icon {
  font-size: clamp(18px, 4vw, 24px); /* Responsive font size */
  color: var(--accent-cyan);
  flex-shrink: 0;
  min-width: 24px; /* Minimum width for icon */
}

.visual-text {
  flex: 1;
  min-width: 0; /* Allow text to shrink */
}

.visual-text h4 {
  font-size: clamp(14px, 3.5vw, 16px); /* More responsive font scaling */
  margin-bottom: 4px;
  color: var(--accent-cyan);
  line-height: 1.3;
  word-wrap: break-word;
  overflow-wrap: break-word;
  hyphens: auto; /* Add hyphenation for long words */
}

.visual-text p {
  font-size: clamp(11px, 3vw, 13px); /* More responsive font scaling */
  color: var(--text-secondary);
  line-height: 1.4;
  word-wrap: break-word;
  overflow-wrap: break-word;
  hyphens: auto; /* Add hyphenation for long words */
}

/* ===== RESPONSIVE MEDIA QUERIES ===== */

/* Tablet and below - stack layout */
@media (max-width: 768px) {
  .about-visual {
    height: clamp(320px, 70vw, 400px);
    min-height: 320px;
  }

  .visual-content {
    gap: clamp(6px, 2vw, 10px);
    padding: clamp(12px, 4vw, 20px);
  }

  .visual-item {
    max-width: min(280px, 92%);
    padding: clamp(8px, 3vw, 12px) clamp(10px, 3vw, 15px);
  }

  .visual-icon {
    font-size: clamp(16px, 4vw, 20px);
    min-width: 20px;
  }

  .visual-text h4 {
    font-size: clamp(13px, 3.5vw, 15px);
  }

  .visual-text p {
    font-size: clamp(10px, 3vw, 12px);
  }
}

/* Small mobile phones */
@media (max-width: 480px) {
  .about-visual {
    height: clamp(300px, 80vw, 350px);
    min-height: 300px;
  }

  .visual-content {
    justify-content: flex-start; /* Start from top on very small screens */
    padding-top: clamp(15px, 5vw, 25px);
    gap: clamp(5px, 2vw, 8px);
  }

  .visual-item {
    max-width: min(260px, 95%);
    padding: clamp(6px, 3vw, 10px) clamp(8px, 3vw, 12px);
    gap: clamp(6px, 2vw, 8px);
  }

  .visual-icon {
    font-size: clamp(14px, 4vw, 18px);
    min-width: 18px;
  }

  .visual-text h4 {
    font-size: clamp(12px, 3.5vw, 14px);
    margin-bottom: 2px;
  }

  .visual-text p {
    font-size: clamp(9px, 3vw, 11px);
    line-height: 1.3;
  }
}

/* Extra small phones */
@media (max-width: 375px) {
  .about-visual {
    height: clamp(280px, 90vw, 320px);
    min-height: 280px;
  }

  .visual-item {
    flex-direction: column; /* Stack icon and text vertically */
    align-items: center;
    text-align: center;
    gap: 6px;
    max-width: min(240px, 96%);
  }

  .visual-icon {
    margin-bottom: 4px;
  }

  .visual-text h4 {
    font-size: clamp(11px, 3.5vw, 13px);
  }

  .visual-text p {
    font-size: clamp(8px, 3vw, 10px);
  }
}

/* Extreme small phones */
@media (max-width: 320px) {
  .about-visual {
    height: clamp(260px, 95vw, 300px);
    min-height: 260px;
  }

  .visual-content {
    padding: clamp(10px, 5vw, 15px);
    gap: 4px;
  }

  .visual-item {
    max-width: min(220px, 98%);
    padding: 5px 8px;
  }

  .visual-text h4 {
    font-size: 11px;
  }

  .visual-text p {
    font-size: 9px;
    line-height: 1.2;
  }
}

/* Landscape orientation for mobile */
@media (max-height: 600px) and (orientation: landscape) {
  .about-visual {
    height: clamp(200px, 60vh, 300px);
    min-height: 200px;
  }

  .visual-content {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
  }

  .visual-item {
    flex: 1;
    min-width: 150px;
    max-width: 180px;
  }
}
/* ===== PROJECTS SECTION ===== */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr));
  gap: 25px;
  margin-top: 40px;
}

.project-item {
  height: clamp(300px, 40vw, 400px);
  border-radius: 20px;
  overflow: hidden;
  position: relative;
  cursor: pointer;
  opacity: 0;
  transform: scale(0.9);
  transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

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

.project-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  filter: brightness(0.8);
}

.project-gradient {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    to bottom,
    transparent 0%,
    rgba(0, 0, 0, 0.1) 20%,
    rgba(0, 0, 0, 0.3) 40%,
    rgba(0, 0, 0, 0.6) 60%,
    rgba(0, 0, 0, 0.8) 80%,
    rgba(0, 0, 0, 0.95) 100%
  );
  z-index: 1;
}

.project-content {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: clamp(25px, 3vw, 40px);
  z-index: 2;
  transform: translateY(20px);
  transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  opacity: 0;
}

.project-item:hover .project-content {
  transform: translateY(0);
  opacity: 1;
}

.project-item:hover .project-image {
  transform: scale(1.1);
  filter: brightness(1);
}

.project-content h3 {
  font-size: clamp(22px, 3vw, 28px);
  margin-bottom: 10px;
  background: var(--gradient-cyber);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  line-height: 1.2;
}

.project-content p {
  font-size: clamp(13px, 1.8vw, 15px);
  color: var(--text-secondary);
  margin-bottom: 15px;
  line-height: 1.4;
}

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

.project-tag {
  padding: 5px 10px;
  background: rgba(0, 212, 255, 0.1);
  border: 1px solid var(--accent-cyan);
  border-radius: 20px;
  font-size: 11px;
  color: var(--accent-cyan);
  font-weight: 600;
}

.project-view-more {
  position: absolute;
  top: 20px;
  right: 20px;
  background: rgba(0, 0, 0, 0.7);
  color: var(--accent-cyan);
  padding: 8px 16px;
  border-radius: 50px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-size: 11px;
  z-index: 3;
  opacity: 0;
  transform: translateY(-10px);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  border: 1px solid rgba(0, 212, 255, 0.3);
  backdrop-filter: blur(5px);
  text-decoration: none;
}

.project-item:hover .project-view-more {
  opacity: 1;
  transform: translateY(0);
}

.project-view-more:hover {
  background: var(--gradient-cyber);
  color: var(--bg-dark);
  border-color: transparent;
  transform: translateY(0) scale(1.05);
}

/* ===== CONTACT SECTION ===== */
.contact-container {
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
}

.contact-info {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr));
  gap: 25px;
  margin-top: 60px;
}

.contact-item {
  padding: clamp(25px, 3vw, 30px);
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 20px;
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 160px;
  text-align: center;
  backdrop-filter: blur(10px);
}

.contact-item.visible {
  opacity: 1;
  transform: translateY(0);
}

.contact-item:hover {
  transform: translateY(-10px);
  border-color: var(--accent-cyan);
}

.contact-icon {
  font-size: clamp(32px, 4vw, 40px);
  margin-bottom: 15px;
  background: var(--gradient-cyber);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  display: flex;
  align-items: center;
  justify-content: center;
}

.contact-item h3 {
  font-size: clamp(14px, 1.8vw, 16px);
  color: var(--accent-cyan);
  margin-bottom: 10px;
  text-transform: uppercase;
  letter-spacing: 2px;
  font-weight: 600;
}

.contact-item p {
  font-size: clamp(15px, 2vw, 17px);
  color: var(--text-primary);
  line-height: 1.4;
  word-break: break-word;
}

.download-buttons {
  display: flex;
  gap: 15px;
  justify-content: center;
  margin-top: 40px;
  flex-wrap: wrap;
}

.download-btn {
  padding: clamp(12px, 2vw, 15px) clamp(25px, 3vw, 30px);
  background: transparent;
  color: var(--accent-cyan);
  border: 2px solid var(--accent-cyan);
  border-radius: 50px;
  font-size: clamp(14px, 1.8vw, 16px);
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: min(200px, 80vw);
  justify-content: center;
  flex: 1;
  max-width: 300px;
}

.download-btn:hover {
  background: var(--gradient-cyber);
  color: var(--bg-dark);
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0, 212, 255, 0.3);
}

.social-links {
  display: flex;
  justify-content: center;
  gap: 15px;
  margin-top: 60px;
  flex-wrap: wrap;
}

.social-link {
  width: clamp(50px, 8vw, 60px);
  height: clamp(50px, 8vw, 60px);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: clamp(20px, 3vw, 24px);
  color: var(--accent-cyan);
  border: 2px solid var(--accent-cyan);
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  opacity: 0;
  transform: scale(0);
  text-decoration: none;
}

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

.social-link:hover {
  background: var(--gradient-cyber);
  color: var(--bg-dark);
  transform: scale(1.2) rotate(360deg);
  box-shadow: 0 10px 30px rgba(0, 212, 255, 0.4);
}

/* ===== MODALS ===== */
.modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--modal-overlay);
  z-index: 2000;
  backdrop-filter: blur(5px);
  animation: modalFadeIn 0.3s ease;
}

@keyframes modalFadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.modal-content {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 20px;
  padding: clamp(25px, 4vw, 40px);
  width: min(95%, 500px);
  max-height: 90vh;
  overflow-y: auto;
  backdrop-filter: blur(10px);
  margin: 0 auto;
}

.close-btn {
  position: absolute;
  top: 15px;
  right: 15px;
  font-size: 24px;
  color: var(--accent-cyan);
  cursor: pointer;
  transition: all 0.3s;
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
}

.close-btn:hover {
  background: rgba(0, 212, 255, 0.1);
  transform: rotate(90deg);
  color: var(--accent-purple);
}

.modal-content h2 {
  font-size: clamp(24px, 4vw, 32px);
  margin-bottom: 20px;
  background: var(--gradient-cyber);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  line-height: 1.2;
}

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

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

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 12px 16px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  color: var(--text-primary);
  font-size: 16px;
  transition: all 0.3s;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--accent-cyan);
  background: rgba(255, 255, 255, 0.08);
}

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

.submit-btn {
  width: 100%;
  padding: 15px;
  background: var(--gradient-cyber);
  color: var(--bg-dark);
  border: none;
  border-radius: 10px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.submit-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(0, 212, 255, 0.4);
}

/* ===== CHATBOT/TERMINAL WIDGET ===== */
#chatbot-widget {
  position: fixed;
  bottom: 20px;
  right: 20px;
  width: min(400px, 90vw);
  height: min(500px, 90vh);
  background: rgba(20, 25, 40, 0.95);
  border: 1px solid rgba(0, 212, 255, 0.3);
  border-radius: 20px;
  z-index: 1500;
  display: none;
  flex-direction: column;
  backdrop-filter: blur(10px);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

#chatbot-widget.active {
  display: flex;
}

#chatbot-header {
  padding: 15px 20px;
  background: linear-gradient(135deg, #6c5ce7 0%, #00abf0 100%);
  border-radius: 20px 20px 0 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-shrink: 0;
}

#chatbot-header h3 {
  font-size: clamp(16px, 2vw, 18px);
  color: white !important;
  font-weight: 700;
  margin: 0;
}

#mode-toggle {
  display: flex;
  gap: 5px;
  background: rgba(255, 255, 255, 0.15);
  border-radius: 8px;
  padding: 4px;
  backdrop-filter: blur(10px);
}

.mode-btn {
  padding: 5px 15px;
  background: transparent;
  color: white !important;
  border: none;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s;
  white-space: nowrap;
}

.mode-btn.active {
  background: rgba(255, 255, 255, 0.25);
}

.mode-btn:hover {
  background: rgba(255, 255, 255, 0.2);
}

#chatbot-close {
  background: rgba(255, 255, 255, 0.15);
  border: none;
  color: white !important;
  font-size: 20px;
  cursor: pointer;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s;
  backdrop-filter: blur(10px);
  flex-shrink: 0;
  margin-left: 10px;
}

#chatbot-close:hover {
  background: rgba(255, 255, 255, 0.25);
  transform: scale(1.1);
}

/* Mode containers */
.mode-container {
  display: none;
  flex: 1;
  flex-direction: column;
  overflow: hidden;
}

.mode-container.active {
  display: flex;
}

/* Chatbox Styles */
#chatbox-container {
  display: flex;
  flex-direction: column;
}

#chatbot-messages {
  flex: 1;
  padding: 15px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 10px;
  background: rgba(10, 10, 15, 0.7);
}

.message {
  padding: 10px 15px;
  border-radius: 15px;
  max-width: 85%;
  word-wrap: break-word;
  line-height: 1.4;
  font-size: clamp(13px, 1.8vw, 14px);
  color: white !important;
}

.user-message {
  background: linear-gradient(135deg, #6c5ce7 0%, #00abf0 100%);
  color: white !important;
  margin-left: auto;
  border-bottom-right-radius: 4px;
}

.bot-message {
  background: rgba(255, 255, 255, 0.1);
  color: white !important;
  margin-right: auto;
  border-bottom-left-radius: 4px;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.typing-indicator {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 15px;
  border-bottom-left-radius: 4px;
  padding: 10px 15px;
}

.typing-content {
  display: flex;
  align-items: center;
  gap: 10px;
}

.typing-dots {
  display: flex;
  gap: 4px;
}

.typing-dot {
  width: 8px;
  height: 8px;
  background: rgba(255, 255, 255, 0.6);
  border-radius: 50%;
  animation: typing 1.4s infinite ease-in-out;
}

.typing-dot:nth-child(1) {
  animation-delay: -0.32s;
}
.typing-dot:nth-child(2) {
  animation-delay: -0.16s;
}

@keyframes typing {
  0%,
  80%,
  100% {
    transform: scale(0.8);
    opacity: 0.5;
  }
  40% {
    transform: scale(1);
    opacity: 1;
  }
}

.typing-text {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.7) !important;
  font-style: italic;
}

#chatbot-input {
  padding: 15px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(20, 25, 40, 0.8);
  display: flex;
  gap: 10px;
  flex-shrink: 0;
}

#chatbot-message {
  flex: 1;
  padding: 10px 15px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  color: white !important;
  font-size: clamp(13px, 1.8vw, 14px);
}

#chatbot-message:focus {
  outline: none;
  border-color: #00abf0;
}

#chatbot-send {
  padding: 10px 20px;
  background: linear-gradient(135deg, #6c5ce7 0%, #00abf0 100%);
  color: white !important;
  border: none;
  border-radius: 20px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s;
  font-size: clamp(13px, 1.8vw, 14px);
  white-space: nowrap;
}

#chatbot-send:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(0, 171, 240, 0.3);
}

#chatbot-send:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

/* Terminal Styles */
#terminal-container {
  display: flex;
  flex-direction: column;
  background: rgba(0, 0, 0, 0.85);
}

#terminal-output {
  flex: 1;
  padding: 15px;
  overflow-y: auto;
  font-family: "Courier New", monospace;
  font-size: clamp(12px, 1.8vw, 14px);
  color: #00ff00 !important;
  background: rgba(0, 0, 0, 0.9);
}

.terminal-line {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  line-height: 1.4;
  margin-bottom: 5px;
  color: #00ff00 !important;
  flex-wrap: wrap;
}

.terminal-prompt {
  color: #00ff00 !important;
  font-weight: bold;
  white-space: nowrap;
}

.terminal-command {
  color: #ffffff !important;
  word-break: break-word;
  flex: 1;
}

.terminal-output-line {
  color: #cccccc !important;
  margin-left: 0;
  word-break: break-word;
  width: 100%;
}

.terminal-error {
  color: #ff6b6b !important;
}

#terminal-input {
  padding: 15px;
  border-top: 1px solid #333;
  background: rgba(0, 0, 0, 0.9);
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

#terminal-command {
  flex: 1;
  background: transparent;
  border: none;
  color: #ffffff !important;
  font-family: "Courier New", monospace;
  font-size: clamp(12px, 1.8vw, 14px);
  outline: none;
  caret-color: #00ff00;
}

#terminal-command::placeholder {
  color: #666 !important;
}

/* Chatbot Toggle Button */
#chatbot-toggle {
  position: fixed;
  bottom: 20px;
  right: 20px;
  width: clamp(50px, 10vw, 60px);
  height: clamp(50px, 10vw, 60px);
  background: linear-gradient(135deg, #6c5ce7 0%, #00abf0 100%);
  color: white !important;
  border: none;
  border-radius: 50%;
  font-size: clamp(18px, 3vw, 20px);
  cursor: pointer;
  z-index: 1400;
  box-shadow: 0 10px 30px rgba(0, 212, 255, 0.3);
  transition: all 0.3s;
  display: flex;
  align-items: center;
  justify-content: center;
}

#chatbot-toggle:hover {
  transform: scale(1.1);
  box-shadow: 0 15px 40px rgba(0, 212, 255, 0.4);
}

/* Typing Cursor */
.typing-cursor {
  animation: blink 0.75s step-end infinite;
  color: white !important;
}

@keyframes blink {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0;
  }
}

/* Scrollbar Styling */
#chatbot-messages::-webkit-scrollbar,
#terminal-output::-webkit-scrollbar {
  width: 6px;
}

#chatbot-messages::-webkit-scrollbar-track,
#terminal-output::-webkit-scrollbar-track {
  background: transparent;
}

#chatbot-messages::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.2);
  border-radius: 3px;
}

#terminal-output::-webkit-scrollbar-thumb {
  background: #333;
  border-radius: 3px;
}

#chatbot-messages::-webkit-scrollbar-thumb:hover,
#terminal-output::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.3);
}

/* ===== FOOTER ===== */
footer {
  padding: 60px 20px;
  text-align: center;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  color: var(--text-secondary);
  font-size: clamp(13px, 1.8vw, 14px);
  background: rgba(10, 10, 15, 0.8);
  backdrop-filter: blur(10px);
  line-height: 1.6;
}

/* ===== ANIMATION UTILITIES ===== */
@keyframes fadeUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 1024px) {
  .hero-title {
    letter-spacing: -2px;
  }

  .about-content {
    gap: 50px;
  }

  #chatbot-widget {
    width: min(350px, 90vw);
    height: min(450px, 90vh);
  }
}

@media (max-width: 768px) {
  .mobile-menu-btn {
    display: flex;
  }

  .nav-links {
    position: fixed;
    top: 80px;
    left: 0;
    width: 100%;
    background: rgba(10, 10, 15, 0.95);
    backdrop-filter: blur(10px);
    flex-direction: column;
    padding: 30px;
    gap: 25px;
    transform: translateY(-100%);
    opacity: 0;
    visibility: hidden;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  }

  .nav-links.active {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
  }

  .hero {
    padding-top: 140px;
  }

  .hero-title {
    letter-spacing: -1px;
  }

  .about-visual {
    height: clamp(350px, 60vw, 400px);
  }

  .hero-buttons,
  .download-buttons {
    flex-direction: column;
    align-items: center;
  }

  .btn,
  .download-btn {
    width: 100%;
    max-width: 300px;
    min-width: auto;
  }

  .tab-titles {
    flex-direction: column;
    gap: 10px;
  }

  .tab-links {
    width: 100%;
    text-align: center;
    min-width: auto;
  }

  #chatbot-widget {
    width: calc(100vw - 40px);
    height: calc(100vh - 100px);
    bottom: 10px;
    right: 10px;
    left: 10px;
    margin: 0 auto;
  }

  .modal-content {
    width: 95%;
    padding: 30px 20px;
  }

  /* Fix visual items for mobile */
  .visual-item {
    max-width: min(280px, 90%);
    padding: 12px 15px;
    gap: 10px;
  }

  .visual-icon {
    font-size: 18px;
  }

  .visual-text h4 {
    font-size: 14px;
  }

  .visual-text p {
    font-size: 12px;
  }
}

@media (max-width: 480px) {
  .hero-title {
    font-size: clamp(40px, 12vw, 60px);
  }

  .hero-roles {
    flex-direction: column;
    align-items: center;
  }

  .about-visual {
    height: clamp(350px, 70vw, 400px);
  }

  .contact-info {
    gap: 20px;
  }

  .project-item {
    height: clamp(250px, 50vw, 300px);
  }

  .skill-card {
    padding: 20px;
  }

  #chatbot-toggle {
    width: 50px;
    height: 50px;
    font-size: 18px;
    bottom: 15px;
    right: 15px;
  }

  .download-buttons {
    gap: 10px;
  }

  .download-btn {
    min-width: auto;
    width: 100%;
    max-width: 280px;
    padding: 12px 20px;
    font-size: 14px;
  }

  .section-title {
    font-size: clamp(36px, 10vw, 50px);
  }

  /* Extreme mobile responsiveness */
  .visual-item {
    max-width: 95%;
    flex-direction: column;
    text-align: center;
    gap: 8px;
  }

  .visual-icon {
    margin-bottom: 5px;
  }

  .hero-title {
    font-size: clamp(36px, 10vw, 48px);
  }

  .role-chip {
    width: 100%;
    max-width: 250px;
    justify-content: center;
  }

  .btn {
    font-size: 13px;
    letter-spacing: 1px;
    padding: 12px 20px;
  }
}

@media (max-width: 375px) {
  .hero-title {
    font-size: clamp(32px, 9vw, 40px);
  }

  .section-title {
    font-size: clamp(28px, 8vw, 36px);
  }

  .role-chip {
    padding: 10px 15px;
    font-size: 13px;
  }

  .contact-item {
    padding: 20px;
    min-height: 140px;
  }

  .modal-content {
    padding: 25px 15px;
  }

  .visual-item {
    padding: 10px 12px;
    gap: 8px;
  }

  .visual-text h4 {
    font-size: 13px;
  }

  .visual-text p {
    font-size: 11px;
  }

  #chatbot-widget {
    width: calc(100vw - 20px);
    right: 10px;
    left: 10px;
  }
}

@media (max-width: 320px) {
  .hero-title {
    font-size: clamp(28px, 8vw, 36px);
    letter-spacing: 0;
  }

  .hero-tagline {
    font-size: clamp(15px, 4vw, 18px);
  }

  .section-title {
    font-size: clamp(24px, 7vw, 32px);
  }

  .btn {
    min-width: auto;
    width: 100%;
    padding: 10px 15px;
    font-size: 12px;
  }

  .visual-item {
    padding: 8px 10px;
  }

  .visual-text h4 {
    font-size: 12px;
  }

  .visual-text p {
    font-size: 10px;
  }
}

@media (min-width: 1440px) {
  .container {
    max-width: 1400px;
  }
}

/* ===== SCROLL INDICATOR ===== */
.scroll-indicator {
  position: fixed;
  right: clamp(15px, 2vw, 30px);
  top: 50%;
  transform: translateY(-50%);
  z-index: 100;
  display: flex;
  flex-direction: column;
  gap: 12px;
  opacity: 0;
  transition: opacity 0.5s ease;
}

.scroll-indicator.visible {
  opacity: 0.7;
}

.scroll-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  transition: all 0.3s ease;
  cursor: pointer;
  position: relative;
}

.scroll-dot.active {
  background: var(--accent-cyan);
  box-shadow: 0 0 10px rgba(0, 212, 255, 0.5);
  transform: scale(1.3);
}

.scroll-dot::after {
  content: attr(data-section);
  position: absolute;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0, 212, 255, 0.9);
  color: var(--bg-dark);
  padding: 5px 10px;
  border-radius: 5px;
  font-size: 11px;
  font-weight: 600;
  opacity: 0;
  transition: opacity 0.3s ease;
  white-space: nowrap;
}

.scroll-dot:hover::after {
  opacity: 1;
}

/* ===== TOAST NOTIFICATION ===== */
.toast {
  position: fixed;
  bottom: clamp(20px, 3vw, 30px);
  right: clamp(20px, 3vw, 30px);
  background: var(--gradient-cyber);
  color: var(--bg-dark);
  padding: 12px 20px;
  border-radius: 10px;
  font-weight: 600;
  z-index: 2000;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  display: flex;
  align-items: center;
  gap: 10px;
  transform: translateX(150%);
  transition: transform 0.3s ease;
  font-size: clamp(13px, 1.8vw, 14px);
  max-width: calc(100vw - 60px);
}

.toast.show {
  transform: translateX(0);
}

/* ===== BACK TO TOP ===== */
.back-to-top {
  position: fixed;
  bottom: 90px;
  right: clamp(15px, 2vw, 30px);
  width: 45px;
  height: 45px;
  background: var(--gradient-cyber);
  color: var(--bg-dark);
  border: none;
  border-radius: 50%;
  font-size: 18px;
  cursor: pointer;
  z-index: 100;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 5px 20px rgba(0, 212, 255, 0.3);
}

.back-to-top.show {
  opacity: 1;
  visibility: visible;
}

.back-to-top:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0, 212, 255, 0.4);
}

/* ===== CUSTOM ALERT ===== */
.custom-alert {
  display: none;
  position: fixed;
  top: clamp(20px, 4vw, 30px);
  left: 50%;
  transform: translateX(-50%);
  background: var(--gradient-cyber);
  color: var(--bg-dark);
  padding: 12px 20px;
  border-radius: 10px;
  font-weight: 600;
  z-index: 2000;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  text-align: center;
  min-width: min(300px, 90vw);
  font-size: clamp(13px, 1.8vw, 14px);
}

/*Responsive Visual Items*/
@media (max-width: 768px) {
  .visual-item {
    border: none;
    background: rgba(10, 10, 15, 0.9);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
  }

  .about-visual {
    border-radius: 10px;
  }

  .visual-bg {
    opacity: 0.2;
  }
}

@media (max-width: 375px) {
  .visual-item {
    backdrop-filter: none;
    box-shadow: none;
    background: rgba(10, 10, 15, 0.95);
  }

  .visual-content {
    justify-content: space-evenly;
  }
}
