/* ==================== ROOT VARIABLES ==================== */
:root {
  /* Colors */
  --bg-primary: #0a0e27;
  --bg-secondary: #10142d;
  --bg-tertiary: #151935;
  --text-primary: #e4e8ff;
  --text-secondary: #a0a8d4;
  --accent-primary: #00d4ff;
  --accent-secondary: #0099ff;
  --accent-gradient: linear-gradient(135deg, #00d4ff 0%, #0099ff 50%, #0066ff 100%);
  --accent-glow: rgba(0, 212, 255, 0.3);
  --shadow-sm: 0 2px 10px rgba(0, 0, 0, 0.2);
  --shadow-md: 0 8px 30px rgba(0, 0, 0, 0.3);
  --shadow-lg: 0 15px 50px rgba(0, 0, 0, 0.4);
  --shadow-glow: 0 0 30px var(--accent-glow);
  
  /* Transitions */
  --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-base: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-smooth: 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.light-mode {
  --bg-primary: #f8f9fd;
  --bg-secondary: #ffffff;
  --bg-tertiary: #f0f2f8;
  --text-primary: #1a1d2e;
  --text-secondary: #4a5568;
  --accent-primary: #0099ff;
  --accent-secondary: #0077cc;
  --accent-gradient: linear-gradient(135deg, #0099ff 0%, #0077cc 50%, #0055aa 100%);
  --accent-glow: rgba(0, 153, 255, 0.2);
  --shadow-sm: 0 2px 10px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 8px 30px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 15px 50px rgba(0, 0, 0, 0.1);
  --shadow-glow: 0 0 30px var(--accent-glow);
}

/* ==================== RESET & BASE ==================== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  font-family: 'Poppins', sans-serif;
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
  transition: background var(--transition-base), color var(--transition-base);
}

::selection {
  background: var(--accent-primary);
  color: white;
}

/* ==================== CUSTOM CURSOR ==================== */
.cursor,
.cursor-follower {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  position: fixed;
  pointer-events: none;
  z-index: 9999;
  transition: transform var(--transition-fast);
}

.cursor {
  background: var(--accent-primary);
  transform: translate(-50%, -50%);
  mix-blend-mode: difference;
}

.cursor-follower {
  border: 2px solid var(--accent-primary);
  transform: translate(-50%, -50%) scale(2);
  transition: transform 0.15s ease;
  opacity: 0.5;
}

@media (max-width: 768px) {
  .cursor,
  .cursor-follower {
    display: none;
  }
}

/* ==================== LOADING SCREEN ==================== */
.loading-screen {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--bg-primary);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 10000;
  transition: opacity 0.5s ease, visibility 0.5s ease;
}

.loading-screen.hidden {
  opacity: 0;
  visibility: hidden;
}

.loader-content {
  text-align: center;
}

.loader-logo {
  width: 100px;
  height: 100px;
  margin: 0 auto 2rem;
  position: relative;
  animation: rotate 2s linear infinite;
}

.loader-text {
  font-size: 3rem;
  font-weight: 800;
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  display: block;
}

.loading-bar {
  width: 200px;
  height: 4px;
  background: var(--bg-tertiary);
  border-radius: 10px;
  overflow: hidden;
  margin: 0 auto;
}

.loading-progress {
  height: 100%;
  background: var(--accent-gradient);
  width: 0;
  animation: loadProgress 2s ease-in-out forwards;
}

.loading-text {
  margin-top: 1rem;
  color: var(--text-secondary);
  font-size: 0.9rem;
}

@keyframes rotate {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

@keyframes loadProgress {
  to { width: 100%; }
}

/* ==================== PARTICLES BACKGROUND ==================== */
#particles-js {
  position: fixed;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  z-index: -1;
}

/* ==================== NAVIGATION ==================== */
.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem 5%;
  background: rgba(10, 14, 39, 0.8);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: var(--shadow-sm);
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 1000;
  transition: all var(--transition-base);
}

.navbar.scrolled {
  padding: 1rem 5%;
  box-shadow: var(--shadow-md);
}

.logo {
  font-weight: 800;
  font-size: 1.8rem;
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  cursor: pointer;
  transition: transform var(--transition-base);
}

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

.logo-bracket {
  color: var(--accent-primary);
}

.navbar nav {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav-link {
  color: var(--text-primary);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
  position: relative;
  padding: 0.5rem 0;
  transition: color var(--transition-base);
}

.nav-link::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--accent-gradient);
  transition: width var(--transition-base);
}

.nav-link:hover {
  color: var(--accent-primary);
}

.nav-link:hover::before {
  width: 100%;
}

#theme-toggle {
  background: transparent;
  border: 2px solid var(--accent-primary);
  color: var(--accent-primary);
  width: 45px;
  height: 45px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-base);
  font-size: 1.1rem;
}

#theme-toggle:hover {
  background: var(--accent-primary);
  color: white;
  transform: rotate(180deg);
}

.mobile-menu-btn {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 10px;
}

.mobile-menu-btn span {
  width: 25px;
  height: 3px;
  background: var(--text-primary);
  border-radius: 3px;
  transition: all var(--transition-base);
}

.mobile-menu-btn.active span:nth-child(1) {
  transform: rotate(45deg) translate(8px, 8px);
}

.mobile-menu-btn.active span:nth-child(2) {
  opacity: 0;
}

.mobile-menu-btn.active span:nth-child(3) {
  transform: rotate(-45deg) translate(8px, -8px);
}

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

.hero::before {
  content: '';
  position: absolute;
  top: 20%;
  right: -10%;
  width: 500px;
  height: 500px;
  background: var(--accent-gradient);
  border-radius: 50%;
  filter: blur(150px);
  opacity: 0.1;
  animation: float 6s ease-in-out infinite;
}

.hero::after {
  content: '';
  position: absolute;
  bottom: 20%;
  left: -10%;
  width: 400px;
  height: 400px;
  background: var(--accent-gradient);
  border-radius: 50%;
  filter: blur(120px);
  opacity: 0.08;
  animation: float 8s ease-in-out infinite reverse;
}

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

.hero-content {
  max-width: 900px;
  text-align: center;
  z-index: 1;
}

.profile-container {
  position: relative;
  width: 200px;
  height: 200px;
  margin: 0 auto 2rem;
}

.profile-image {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid var(--accent-primary);
  box-shadow: var(--shadow-glow);
  position: relative;
  z-index: 2;
  animation: fadeInScale 1s ease;
}

.profile-ring {
  position: absolute;
  top: -10px;
  left: -10px;
  width: calc(100% + 20px);
  height: calc(100% + 20px);
  border-radius: 50%;
  border: 2px solid var(--accent-primary);
  animation: pulse 2s ease-in-out infinite;
  z-index: 1;
}

@keyframes pulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.1); opacity: 0.5; }
}

@keyframes fadeInScale {
  from {
    opacity: 0;
    transform: scale(0.8);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

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

.hero-greeting {
  font-size: 3.5rem;
  font-weight: 800;
  margin-bottom: 1rem;
  animation: fadeInUp 0.8s ease 0.3s backwards;
}

.gradient-text {
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subtitle {
  font-size: 1.8rem;
  color: var(--accent-primary);
  margin-bottom: 1rem;
  min-height: 60px;
  animation: fadeInUp 0.8s ease 0.5s backwards;
}

.typing-text {
  font-weight: 600;
}

.cursor-blink {
  animation: blink 0.7s infinite;
}

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

.hero-description {
  font-size: 1.2rem;
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto 2.5rem;
  animation: fadeInUp 0.8s ease 0.7s backwards;
}

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

.hero-btns {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 3rem;
  animation: fadeInUp 0.8s ease 0.9s backwards;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  padding: 1rem 2rem;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 600;
  font-size: 1rem;
  transition: all var(--transition-base);
  position: relative;
  overflow: hidden;
  border: none;
  cursor: pointer;
}

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

.btn:hover::before {
  width: 300px;
  height: 300px;
}

.btn span,
.btn i {
  position: relative;
  z-index: 1;
}

.btn-primary {
  background: var(--accent-gradient);
  color: white;
  box-shadow: var(--shadow-glow);
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 40px var(--accent-glow);
}

.btn-secondary {
  background: var(--bg-tertiary);
  color: var(--accent-primary);
  border: 2px solid var(--accent-primary);
}

.btn-secondary:hover {
  background: var(--accent-primary);
  color: white;
  transform: translateY(-3px);
}

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

.btn-outline:hover {
  background: var(--accent-primary);
  color: white;
  transform: translateY(-3px);
}

.hero-stats {
  display: flex;
  gap: 3rem;
  justify-content: center;
  animation: fadeInUp 0.8s ease 1.1s backwards;
}

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

.stat-number {
  display: block;
  font-size: 2.5rem;
  font-weight: 800;
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.stat-label {
  display: block;
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin-top: 0.3rem;
}

.scroll-indicator {
  position: absolute;
  bottom: 3rem;
  left: 50%;
  transform: translateX(-50%);
  text-align: center;
  animation: fadeIn 1s ease 1.5s backwards;
}

.mouse {
  width: 30px;
  height: 50px;
  border: 2px solid var(--accent-primary);
  border-radius: 25px;
  position: relative;
  margin: 0 auto 0.5rem;
}

.wheel {
  width: 4px;
  height: 10px;
  background: var(--accent-primary);
  border-radius: 2px;
  position: absolute;
  top: 10px;
  left: 50%;
  transform: translateX(-50%);
  animation: scroll 1.5s ease-in-out infinite;
}

@keyframes scroll {
  0% {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
  }
  100% {
    opacity: 0;
    transform: translateX(-50%) translateY(15px);
  }
}

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

.scroll-indicator p {
  font-size: 0.85rem;
  color: var(--text-secondary);
}

/* ==================== SECTIONS ==================== */
.section {
  padding: 8rem 5%;
  position: relative;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
}

.section-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 4rem;
}

.section-number {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--accent-primary);
}

.section-title {
  font-size: 2.5rem;
  font-weight: 700;
  position: relative;
}

.section-line {
  flex: 1;
  height: 2px;
  background: linear-gradient(to right, var(--accent-primary), transparent);
  margin-left: 2rem;
}

/* ==================== ABOUT SECTION ==================== */
.about-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.about-text p {
  margin-bottom: 1.5rem;
  color: var(--text-secondary);
  line-height: 1.8;
}

.highlight-text {
  font-size: 1.2rem;
  color: var(--text-primary);
  font-weight: 600;
}

.about-highlights {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  margin-top: 2rem;
}

.highlight-item {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}

.highlight-item i {
  font-size: 1.5rem;
  color: var(--accent-primary);
  margin-top: 0.2rem;
}

.highlight-item h4 {
  margin-bottom: 0.3rem;
  color: var(--text-primary);
}

.highlight-item p {
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin: 0;
}

.code-window {
  background: var(--bg-secondary);
  border-radius: 15px;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.window-header {
  background: var(--bg-tertiary);
  padding: 0.8rem 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
}

.dot.red { background: #ff5f56; }
.dot.yellow { background: #ffbd2e; }
.dot.green { background: #27c93f; }

.window-title {
  margin-left: auto;
  font-size: 0.85rem;
  color: var(--text-secondary);
}

.window-content {
  padding: 1.5rem;
}

.window-content pre {
  font-family: 'Courier New', monospace;
  font-size: 0.9rem;
  line-height: 1.8;
  overflow-x: auto;
}

.code-keyword { color: #ff79c6; }
.code-variable { color: #50fa7b; }
.code-property { color: #8be9fd; }
.code-string { color: #f1fa8c; }

/* ==================== EXPERIENCE SECTION ==================== */
.timeline {
  position: relative;
  padding-left: 3rem;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  height: 100%;
  width: 2px;
  background: var(--accent-gradient);
}

.timeline-item {
  position: relative;
  margin-bottom: 3rem;
}

.timeline-dot {
  position: absolute;
  left: -3.5rem;
  top: 0.5rem;
  width: 16px;
  height: 16px;
  background: var(--accent-primary);
  border-radius: 50%;
  box-shadow: 0 0 20px var(--accent-glow);
  z-index: 1;
}

.timeline-dot::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 30px;
  height: 30px;
  border: 2px solid var(--accent-primary);
  border-radius: 50%;
  animation: pulse 2s ease-in-out infinite;
}

.timeline-content {
  background: var(--bg-secondary);
  padding: 2rem;
  border-radius: 15px;
  box-shadow: var(--shadow-md);
  transition: transform var(--transition-base);
}

.timeline-content:hover {
  transform: translateX(10px);
}

.timeline-date {
  color: var(--accent-primary);
  font-weight: 600;
  font-size: 0.9rem;
}

.timeline-content h3 {
  margin: 0.5rem 0 0.3rem;
  font-size: 1.5rem;
}

.timeline-content h4 {
  color: var(--text-secondary);
  font-weight: 500;
  margin-bottom: 1rem;
}

.timeline-content ul {
  list-style: none;
  margin: 1rem 0;
}

.timeline-content li {
  position: relative;
  padding-left: 1.5rem;
  margin-bottom: 0.7rem;
  color: var(--text-secondary);
}

.timeline-content li::before {
  content: '▹';
  position: absolute;
  left: 0;
  color: var(--accent-primary);
  font-weight: bold;
}

.timeline-tags {
  display: flex;
  gap: 0.7rem;
  flex-wrap: wrap;
  margin-top: 1rem;
}

.timeline-tags span {
  background: rgba(0, 212, 255, 0.1);
  color: var(--accent-primary);
  padding: 0.4rem 1rem;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 500;
}

/* ==================== PROJECTS SECTION ==================== */
.project-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 2.5rem;
}

.project-card {
  background: var(--bg-secondary);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: var(--shadow-md);
  transition: all var(--transition-base);
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.project-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-lg);
  border-color: var(--accent-primary);
}

.project-card.featured {
  grid-column: span 2;
}

.project-image {
  position: relative;
  height: 250px;
  background: white;
  padding: 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.project-image img {
  max-width: 80%;
  max-height: 80%;
  object-fit: contain;
  transition: transform var(--transition-smooth);
}

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

.project-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity var(--transition-base);
}

.project-card:hover .project-overlay {
  opacity: 1;
}

.project-link {
  width: 60px;
  height: 60px;
  background: var(--accent-gradient);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.5rem;
  transition: transform var(--transition-base);
}

.project-link:hover {
  transform: scale(1.2) rotate(90deg);
}

.project-content {
  padding: 2rem;
}

.project-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
}

.project-label {
  color: var(--accent-primary);
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.project-links {
  display: flex;
  gap: 1rem;
}

.project-links a {
  color: var(--text-secondary);
  font-size: 1.2rem;
  transition: color var(--transition-base), transform var(--transition-base);
}

.project-links a:hover {
  color: var(--accent-primary);
  transform: translateY(-3px);
}

.project-content h3 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

.project-content p {
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 1.5rem;
}

.project-tech {
  display: flex;
  gap: 0.7rem;
  flex-wrap: wrap;
}

.project-tech span {
  background: rgba(0, 212, 255, 0.1);
  color: var(--accent-primary);
  padding: 0.4rem 1rem;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 500;
}

/* ==================== SKILLS SECTION ==================== */
.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
}

.skill-category {
  background: var(--bg-secondary);
  padding: 2rem;
  border-radius: 20px;
  box-shadow: var(--shadow-md);
  transition: transform var(--transition-base);
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.skill-category:hover {
  transform: translateY(-5px);
}

.category-icon {
  width: 60px;
  height: 60px;
  background: var(--accent-gradient);
  border-radius: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
  box-shadow: var(--shadow-glow);
}

.category-icon i {
  font-size: 1.8rem;
  color: white;
}

.skill-category h3 {
  margin-bottom: 1.5rem;
  font-size: 1.3rem;
}

.skill-items {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}

.skill-item span {
  display: block;
  margin-bottom: 0.5rem;
  color: var(--text-primary);
  font-weight: 500;
}

.skill-bar {
  width: 100%;
  height: 8px;
  background: var(--bg-tertiary);
  border-radius: 10px;
  overflow: hidden;
}

.skill-progress {
  height: 100%;
  background: var(--accent-gradient);
  border-radius: 10px;
  width: 0;
  transition: width 1s ease;
}

/* ==================== CONTACT SECTION ==================== */
.contact-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: start;
}

.contact-description {
  font-size: 1.1rem;
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: 2rem;
}

.contact-methods {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.contact-method {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  padding: 1.5rem;
  background: var(--bg-secondary);
  border-radius: 15px;
  text-decoration: none;
  transition: all var(--transition-base);
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.contact-method:hover {
  transform: translateX(10px);
  border-color: var(--accent-primary);
  box-shadow: var(--shadow-glow);
}

.contact-method i {
  font-size: 1.8rem;
  color: var(--accent-primary);
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 212, 255, 0.1);
  border-radius: 12px;
}

.contact-method h4 {
  margin-bottom: 0.3rem;
  color: var(--text-primary);
}

.contact-method p {
  color: var(--text-secondary);
  font-size: 0.95rem;
}

.contact-form-container {
  background: var(--bg-secondary);
  padding: 2.5rem;
  border-radius: 20px;
  box-shadow: var(--shadow-md);
  border: 1px solid rgba(255, 255, 255, 0.05);
}

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

.form-group {
  position: relative;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 1rem 1.2rem;
  background: var(--bg-tertiary);
  border: 2px solid transparent;
  border-radius: 12px;
  color: var(--text-primary);
  font-family: 'Poppins', sans-serif;
  font-size: 1rem;
  transition: all var(--transition-base);
  outline: none;
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--accent-primary);
  box-shadow: 0 0 0 4px rgba(0, 212, 255, 0.1);
}

.form-group label {
  position: absolute;
  top: -10px;
  left: 15px;
  background: var(--bg-secondary);
  padding: 0 0.5rem;
  color: var(--accent-primary);
  font-size: 0.85rem;
  font-weight: 500;
  opacity: 0;
  transition: opacity var(--transition-base);
}

.form-group input:focus + label,
.form-group textarea:focus + label,
.form-group input:not(:placeholder-shown) + label,
.form-group textarea:not(:placeholder-shown) + label {
  opacity: 1;
}

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

.btn-submit {
  width: 100%;
  justify-content: center;
  margin-top: 1rem;
}

.social-links {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  margin-top: 4rem;
  padding-top: 3rem;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.social-link {
  width: 55px;
  height: 55px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-secondary);
  border: 2px solid rgba(0, 212, 255, 0.2);
  border-radius: 50%;
  color: var(--accent-primary);
  font-size: 1.4rem;
  text-decoration: none;
  transition: all var(--transition-base);
}

.social-link:hover {
  background: var(--accent-primary);
  color: white;
  transform: translateY(-5px) rotate(360deg);
  box-shadow: var(--shadow-glow);
}

/* ==================== FOOTER ==================== */
footer {
  background: var(--bg-secondary);
  text-align: center;
  padding: 2.5rem 5%;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

footer p {
  margin-bottom: 0.5rem;
  color: var(--text-secondary);
}

.footer-sub {
  font-size: 0.9rem;
  opacity: 0.7;
}

/* ==================== BACK TO TOP ==================== */
.back-to-top {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 55px;
  height: 55px;
  background: var(--accent-gradient);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  font-size: 1.3rem;
  box-shadow: var(--shadow-glow);
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition-base);
  z-index: 100;
}

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

.back-to-top:hover {
  transform: translateY(-5px) scale(1.1);
}

/* ==================== RESPONSIVE DESIGN ==================== */
@media (max-width: 1024px) {
  .about-content,
  .contact-content {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .project-card.featured {
    grid-column: span 1;
  }

  .skills-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .navbar nav {
    position: fixed;
    top: 80px;
    right: -100%;
    width: 80%;
    max-width: 300px;
    height: calc(100vh - 80px);
    background: var(--bg-secondary);
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-start;
    padding: 2rem;
    gap: 1.5rem;
    transition: right var(--transition-base);
    box-shadow: var(--shadow-lg);
    border-left: 1px solid rgba(255, 255, 255, 0.05);
  }

  .navbar nav.active {
    right: 0;
  }

  .mobile-menu-btn {
    display: flex;
  }

  .hero-greeting {
    font-size: 2.5rem;
  }

  .hero-subtitle {
    font-size: 1.4rem;
  }

  .hero-description {
    font-size: 1rem;
  }

  .hero-btns {
    flex-direction: column;
    width: 100%;
  }

  .btn {
    width: 100%;
    max-width: 300px;
    justify-content: center;
  }

  .hero-stats {
    gap: 2rem;
  }

  .stat-number {
    font-size: 2rem;
  }

  .section {
    padding: 5rem 5%;
  }

  .section-title {
    font-size: 2rem;
  }

  .section-line {
    display: none;
  }

  .project-grid {
    grid-template-columns: 1fr;
  }

  .skills-grid {
    grid-template-columns: 1fr;
  }

  .timeline {
    padding-left: 2rem;
  }

  .timeline-dot {
    left: -2.5rem;
  }

  .code-window {
    max-width: 100%;
    overflow-x: auto;
  }
}

@media (max-width: 480px) {
  .hero-greeting {
    font-size: 2rem;
  }

  .hero-subtitle {
    font-size: 1.2rem;
  }

  .profile-container {
    width: 150px;
    height: 150px;
  }

  .section-title {
    font-size: 1.7rem;
  }

  .project-content,
  .skill-category {
    padding: 1.5rem;
  }

  .hero-stats {
    flex-direction: column;
    gap: 1.5rem;
  }

  .contact-form-container {
    padding: 1.5rem;
  }
}

/* ==================== ANIMATIONS ==================== */
@keyframes gradient {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

/* Smooth scroll padding for fixed navbar */
html {
  scroll-padding-top: 80px;
}

/* Custom scrollbar */
::-webkit-scrollbar {
  width: 12px;
}

::-webkit-scrollbar-track {
  background: var(--bg-secondary);
}

::-webkit-scrollbar-thumb {
  background: var(--accent-gradient);
  border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--accent-primary);
}