/* ===== RESET & GLOBAL ===== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Poppins', sans-serif;
}

html {
  scroll-behavior: smooth;
}

body {
  overflow-x: hidden;
  transition: background 0.3s ease, color 0.3s ease;
}

/* ===== DARK THEME (DEFAULT) ===== */
body.dark {
  background: #0a0b14;
  color: #e4e4e7;
}

/* ===== LIGHT THEME ===== */
body.light {
  background: #ffffff;
  color: #1a1a1a;
}

/* ===== ANIMATED BACKGROUND ===== */
.animated-bg {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
}

.gradient-circle {
  position: absolute;
  border-radius: 50%;
  filter: blur(120px);
  opacity: 0.15;
  animation: float 20s infinite ease-in-out;
}

body.dark .gradient-circle {
  opacity: 0.15;
}

body.light .gradient-circle {
  opacity: 0.08;
}

.circle-1 {
  width: 500px;
  height: 500px;
  background: linear-gradient(135deg, #7c3aed, #ff6b6b);
  top: -250px;
  left: -250px;
  animation-delay: 0s;
}

.circle-2 {
  width: 400px;
  height: 400px;
  background: linear-gradient(135deg, #3b82f6, #8b5cf6);
  bottom: -200px;
  right: -200px;
  animation-delay: 5s;
}

.circle-3 {
  width: 600px;
  height: 600px;
  background: linear-gradient(135deg, #ec4899, #f59e0b);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  animation-delay: 10s;
}

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

/* ===== THEME SWITCH - FULLY FIXED WITH HIGHER Z-INDEX ===== */
.theme-switch {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 10000;
  cursor: pointer;
  background: rgba(124, 58, 237, 0.15);
  padding: 0;
  border-radius: 50%;
  backdrop-filter: blur(10px);
  border: 2px solid rgba(124, 58, 237, 0.3);
  transition: all 0.3s ease;
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  pointer-events: auto;
}

.theme-switch:hover {
  transform: scale(1.1);
  background: rgba(124, 58, 237, 0.25);
  box-shadow: 0 6px 20px rgba(124, 58, 237, 0.4);
}

.theme-switch:active {
  transform: scale(0.95);
}

body.light .theme-switch {
  background: rgba(255, 193, 7, 0.15);
  border-color: rgba(255, 193, 7, 0.3);
}

body.light .theme-switch:hover {
  background: rgba(255, 193, 7, 0.25);
  box-shadow: 0 6px 20px rgba(255, 193, 7, 0.4);
}

.theme-icon {
  font-size: 24px;
  position: absolute;
  transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
  pointer-events: none;
  user-select: none;
}

/* Show sun in dark mode, hide moon */
body.dark .theme-icon.sun {
  opacity: 1;
  transform: rotate(0deg) scale(1);
  visibility: visible;
}

body.dark .theme-icon.moon {
  opacity: 0;
  transform: rotate(180deg) scale(0);
  visibility: hidden;
}

/* Show moon in light mode, hide sun */
body.light .theme-icon.sun {
  opacity: 0;
  transform: rotate(-180deg) scale(0);
  visibility: hidden;
}

body.light .theme-icon.moon {
  opacity: 1;
  transform: rotate(0deg) scale(1);
  visibility: visible;
}

/* ===== NAVBAR ===== */
.navbar {
  position: fixed;
  top: 0;
  width: 100%;
  padding: 20px 80px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 999;
  background: rgba(10, 11, 20, 0.8);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(124, 58, 237, 0.1);
}

body.light .navbar {
  background: rgba(255, 255, 255, 0.8);
  border-bottom-color: rgba(0, 0, 0, 0.1);
}

.logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: 'Poppins', sans-serif;
  font-weight: 700;
  font-size: 24px;
}

.logo-icon {
  font-size: 28px;
}

.logo-text {
  background: linear-gradient(135deg, #7c3aed, #ff6b6b);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.nav-links {
  display: flex;
  gap: 40px;
}

.nav-link {
  color: inherit;
  font-weight: 500;
  text-decoration: none;
  letter-spacing: 0.5px;
  transition: all 0.3s ease;
  position: relative;
  font-size: 15px;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(135deg, #7c3aed, #ff6b6b);
  transition: width 0.3s ease;
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}

.nav-link:hover {
  color: #7c3aed;
}

/* ===== HERO SECTION ===== */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 140px 80px 80px;
  gap: 80px;
}

.hero-badge {
  display: inline-block;
  background: rgba(124, 58, 237, 0.1);
  color: #7c3aed;
  padding: 8px 20px;
  border-radius: 50px;
  font-size: 14px;
  font-weight: 500;
  margin-bottom: 20px;
  border: 1px solid rgba(124, 58, 237, 0.2);
}

.hero h1 {
  font-size: 64px;
  line-height: 1.2;
  font-weight: 800;
  margin-bottom: 20px;
}

body.dark .hero h1 {
  color: #ffffff;
}

body.light .hero h1 {
  color: #1a1a1a;
}

.gradient-text {
  background: linear-gradient(135deg, #7c3aed, #ff6b6b);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.typing-text {
  color: #7c3aed;
  position: relative;
}

.typing-text::after {
  content: '|';
  animation: blink 1s infinite;
}

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

.hero-subtitle {
  font-size: 18px;
  line-height: 1.8;
  margin-bottom: 30px;
  max-width: 600px;
}

body.dark .hero-subtitle {
  color: #b4b4b8;
}

body.light .hero-subtitle {
  color: #6a6a6a;
}

.hero-content {
  max-width: 650px;
}

.hero-buttons {
  display: flex;
  gap: 20px;
  margin-bottom: 50px;
}

.btn {
  padding: 14px 32px;
  border-radius: 12px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 15px;
  border: none;
  cursor: pointer;
}

.btn-primary {
  background: linear-gradient(135deg, #7c3aed, #ff6b6b);
  color: #ffffff;
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 20px 40px rgba(124, 58, 237, 0.4);
}

.btn-secondary {
  background: transparent;
  color: inherit;
  border: 2px solid rgba(124, 58, 237, 0.3);
}

.btn-secondary:hover {
  background: rgba(124, 58, 237, 0.1);
  border-color: #7c3aed;
}

.hero-stats {
  display: flex;
  gap: 40px;
  margin-top: 40px;
}

.stat-item {
  display: flex;
  flex-direction: column;
}

.stat-number {
  font-size: 36px;
  font-weight: 800;
  background: linear-gradient(135deg, #7c3aed, #ff6b6b);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.stat-label {
  font-size: 14px;
  opacity: 0.7;
  margin-top: 5px;
}

/* ===== CODE CARD ===== */
.code-card {
  background: #1a1b2e;
  border-radius: 16px;
  box-shadow: 0 30px 80px rgba(124, 58, 237, 0.3);
  padding: 30px;
  font-family: 'Fira Code', monospace;
  font-size: 14px;
  line-height: 1.8;
  transition: all 0.6s ease;
  border: 1px solid rgba(124, 58, 237, 0.2);
  max-width: 100%;
}

body.light .code-card {
  background: #f8f9fa;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.1);
  border-color: #e0e0e0;
}

.code-card.big {
  width: 100%;
  max-width: 550px;
}

.code-card:hover {
  transform: translateY(-10px) scale(1.02);
  box-shadow: 0 40px 100px rgba(124, 58, 237, 0.5);
}

.code-header {
  display: flex;
  gap: 8px;
  margin-bottom: 20px;
}

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

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

.code {
  white-space: pre-wrap;
  word-break: break-word;
}

/* Syntax Colors - Dark Mode */
body.dark .code .kw { color: #c792ea; }
body.dark .code .var { color: #ffcb6b; }
body.dark .code .func { color: #82aaff; }
body.dark .code .str { color: #c3e88d; }
body.dark .code .prop { color: #f78c6c; }

/* Syntax Colors - Light Mode */
body.light .code .kw { color: #7c3aed; }
body.light .code .var { color: #f59e0b; }
body.light .code .func { color: #3b82f6; }
body.light .code .str { color: #10b981; }
body.light .code .prop { color: #ef4444; }

/* ===== SECTIONS ===== */
.section {
  padding: 100px 80px;
  position: relative;
}

.section-header {
  text-align: center;
  margin-bottom: 60px;
}

.section-badge {
  display: inline-block;
  background: rgba(124, 58, 237, 0.1);
  color: #7c3aed;
  padding: 6px 18px;
  border-radius: 50px;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 15px;
  border: 1px solid rgba(124, 58, 237, 0.2);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.section-title {
  font-size: 48px;
  font-weight: 800;
  margin-bottom: 15px;
}

body.dark .section-title {
  color: #ffffff;
}

body.light .section-title {
  color: #1a1a1a;
}

.section-subtitle {
  font-size: 16px;
  opacity: 0.7;
  max-width: 600px;
  margin: 0 auto;
}

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

.about-content .lead-text {
  font-size: 18px;
  line-height: 1.8;
  margin-bottom: 20px;
  font-weight: 500;
}

body.dark .about-content .lead-text {
  color: #e4e4e7;
}

body.light .about-content .lead-text {
  color: #2a2a2a;
}

.about-content p {
  font-size: 16px;
  line-height: 1.9;
  margin-bottom: 30px;
}

body.dark .about-content p {
  color: #b4b4b8;
}

body.light .about-content p {
  color: #6a6a6a;
}

.about-highlights {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 25px;
  margin-top: 40px;
}

.highlight-item {
  display: flex;
  gap: 15px;
  padding: 20px;
  background: rgba(124, 58, 237, 0.05);
  border-radius: 12px;
  border: 1px solid rgba(124, 58, 237, 0.1);
  transition: all 0.3s ease;
}

body.light .highlight-item {
  background: #f8f9fa;
  border-color: #e0e0e0;
}

.highlight-item:hover {
  transform: translateY(-5px);
  background: rgba(124, 58, 237, 0.1);
  border-color: rgba(124, 58, 237, 0.3);
}

.highlight-icon {
  font-size: 32px;
}

.highlight-item strong {
  display: block;
  font-size: 15px;
  margin-bottom: 5px;
}

body.dark .highlight-item strong {
  color: #ffffff;
}

body.light .highlight-item strong {
  color: #1a1a1a;
}

.highlight-item p {
  font-size: 13px;
  opacity: 0.7;
  margin: 0;
}

.code-card.mini {
  max-width: 350px;
  margin-bottom: 30px;
}

.about-image-placeholder {
  width: 100%;
  height: 300px;
  background: linear-gradient(135deg, rgba(124, 58, 237, 0.1), rgba(255, 107, 107, 0.1));
  border-radius: 20px;
  position: relative;
  overflow: hidden;
  border: 2px solid rgba(124, 58, 237, 0.2);
}

.profile-decoration {
  position: absolute;
  width: 200px;
  height: 200px;
  background: linear-gradient(135deg, #7c3aed, #ff6b6b);
  border-radius: 50%;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  opacity: 0.3;
  filter: blur(60px);
}

/* ===== WORK SECTION ===== */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.card {
  background: #1a1b2e;
  border-radius: 16px;
  overflow: hidden;
  transition: all 0.4s ease;
  border: 1px solid rgba(124, 58, 237, 0.2);
  cursor: pointer;
}

body.light .card {
  background: #f8f9fa;
  border-color: #e0e0e0;
}

.card:hover {
  transform: translateY(-15px);
  box-shadow: 0 30px 60px rgba(124, 58, 237, 0.3);
}

body.light .card:hover {
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.15);
}

.card-image {
  width: 100%;
  height: 220px;
  background: linear-gradient(135deg, rgba(124, 58, 237, 0.2), rgba(255, 107, 107, 0.2));
  position: relative;
  overflow: hidden;
}

.card-overlay {
  position: absolute;
  top: 20px;
  left: 20px;
}

.card-tag {
  background: rgba(255, 255, 255, 0.9);
  color: #7c3aed;
  padding: 6px 16px;
  border-radius: 50px;
  font-size: 12px;
  font-weight: 600;
}

.card-content {
  padding: 30px;
}

.card-content h3 {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 12px;
}

body.dark .card-content h3 {
  color: #ffffff;
}

body.light .card-content h3 {
  color: #1a1a1a;
}

.card-content p {
  font-size: 14px;
  line-height: 1.7;
  margin-bottom: 20px;
  opacity: 0.8;
}

body.dark .card-content p {
  color: #b4b4b8;
}

body.light .card-content p {
  color: #6a6a6a;
}

.card-tech {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tech-badge {
  background: rgba(124, 58, 237, 0.1);
  color: #7c3aed;
  padding: 5px 12px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 500;
  border: 1px solid rgba(124, 58, 237, 0.2);
}

body.light .tech-badge {
  background: rgba(124, 58, 237, 0.05);
}

/* ===== TECH STACK ===== */
.tech-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.tech-card {
  background: #1a1b2e;
  padding: 30px;
  border-radius: 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 15px;
  border: 1px solid rgba(124, 58, 237, 0.2);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

body.light .tech-card {
  background: #f8f9fa;
  border-color: #e0e0e0;
}

.tech-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 40px rgba(124, 58, 237, 0.3);
  border-color: #7c3aed;
}

body.light .tech-card:hover {
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.tech-icon {
  width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(124, 58, 237, 0.1);
  border-radius: 12px;
  padding: 10px;
}

.tech-card h3 {
  font-size: 18px;
  font-weight: 700;
  margin: 0;
}

body.dark .tech-card h3 {
  color: #ffffff;
}

body.light .tech-card h3 {
  color: #1a1a1a;
}

.tech-card p {
  font-size: 13px;
  opacity: 0.7;
  margin: 0;
}

.skill-bar {
  width: 100%;
  height: 8px;
  background: rgba(124, 58, 237, 0.1);
  border-radius: 50px;
  overflow: hidden;
  margin-top: 10px;
}

body.light .skill-bar {
  background: #e0e0e0;
}

.skill-fill {
  height: 100%;
  background: linear-gradient(90deg, #7c3aed, #ff6b6b);
  border-radius: 50px;
  width: 0;
  transition: width 1.5s ease;
}

.skill-percentage {
  font-size: 12px;
  font-weight: 600;
  color: #7c3aed;
  margin-top: 8px;
}

/* ===== CONTACT SECTION ===== */
.contact-wrapper {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 60px;
  max-width: 1200px;
  margin: 0 auto;
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.contact-item {
  display: flex;
  gap: 20px;
  padding: 25px;
  background: rgba(124, 58, 237, 0.05);
  border-radius: 16px;
  border: 1px solid rgba(124, 58, 237, 0.1);
  transition: all 0.3s ease;
}

body.light .contact-item {
  background: #f8f9fa;
  border-color: #e0e0e0;
}

.contact-item:hover {
  transform: translateX(10px);
  background: rgba(124, 58, 237, 0.1);
  border-color: rgba(124, 58, 237, 0.3);
}

.contact-icon {
  font-size: 36px;
  min-width: 50px;
}

.contact-item h3 {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 8px;
}

body.dark .contact-item h3 {
  color: #ffffff;
}

body.light .contact-item h3 {
  color: #1a1a1a;
}

.contact-item p,
.contact-item a {
  font-size: 14px;
  margin: 0;
  line-height: 1.6;
}

body.dark .contact-item p,
body.dark .contact-item a {
  color: #b4b4b8;
}

body.light .contact-item p,
body.light .contact-item a {
  color: #6a6a6a;
}

.contact-item a {
  text-decoration: none;
  transition: color 0.3s ease;
}

.contact-item a:hover {
  color: #7c3aed;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 25px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.form-group label {
  font-size: 14px;
  font-weight: 600;
}

body.dark .form-group label {
  color: #e4e4e7;
}

body.light .form-group label {
  color: #2a2a2a;
}

.contact-form input,
.contact-form textarea {
  padding: 16px 20px;
  border-radius: 12px;
  border: 2px solid rgba(124, 58, 237, 0.2);
  font-size: 15px;
  background: rgba(124, 58, 237, 0.05);
  color: inherit;
  transition: all 0.3s ease;
  font-family: 'Poppins', sans-serif;
}

body.light .contact-form input,
body.light .contact-form textarea {
  background: #f8f9fa;
  border-color: #e0e0e0;
  color: #1a1a1a;
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: #7c3aed;
  background: rgba(124, 58, 237, 0.1);
}

body.light .contact-form input:focus,
body.light .contact-form textarea:focus {
  background: #ffffff;
}

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

.btn-block {
  width: 100%;
  justify-content: center;
}

.btn-icon {
  font-size: 20px;
  transition: transform 0.3s ease;
}

.btn:hover .btn-icon {
  transform: translateX(5px);
}

/* ===== FOOTER ===== */
.footer {
  padding: 60px 80px 30px;
  border-top: 1px solid rgba(124, 58, 237, 0.2);
  margin-top: 100px;
}

body.light .footer {
  border-top-color: #e0e0e0;
}

.footer-content {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 60px;
  margin-bottom: 40px;
}

.footer-brand p {
  margin-top: 15px;
  opacity: 0.7;
  font-size: 15px;
}

.footer-links h3,
.footer-social h3 {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 20px;
}

body.dark .footer-links h3,
body.dark .footer-social h3 {
  color: #ffffff;
}

body.light .footer-links h3,
body.light .footer-social h3 {
  color: #1a1a1a;
}

.footer-links nav {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-links a {
  color: inherit;
  text-decoration: none;
  font-size: 14px;
  opacity: 0.7;
  transition: all 0.3s ease;
}

.footer-links a:hover {
  opacity: 1;
  color: #7c3aed;
  padding-left: 10px;
}

.footer-social .social-icons {
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
}

.footer-social .social-icons img {
  width: 32px;
  height: 32px;
  transition: all 0.3s ease;
  opacity: 0.8;
}

.footer-social .social-icons a:hover img {
  transform: translateY(-5px) scale(1.1);
  opacity: 1;
}

.footer-bottom {
  text-align: center;
  padding-top: 30px;
  border-top: 1px solid rgba(124, 58, 237, 0.1);
}

body.light .footer-bottom {
  border-top-color: #e0e0e0;
}

.footer-bottom p {
  font-size: 14px;
  opacity: 0.7;
}

/* ===== MOBILE NAV ===== */
.bottom-nav {
  display: none;
  position: fixed;
  bottom: 0;
  width: 100%;
  background: rgba(26, 27, 46, 0.95);
  backdrop-filter: blur(20px);
  padding: 12px 0;
  justify-content: space-around;
  z-index: 999;
  box-shadow: 0 -10px 30px rgba(0, 0, 0, 0.3);
  border-top: 1px solid rgba(124, 58, 237, 0.2);
}

body.light .bottom-nav {
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 0 -10px 30px rgba(0, 0, 0, 0.1);
  border-top-color: #e0e0e0;
}

.bottom-nav .nav-item {
  color: #aaa;
  font-size: 12px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-decoration: none;
  transition: all 0.3s ease;
  padding: 8px 12px;
  border-radius: 12px;
}

body.light .bottom-nav .nav-item {
  color: #6a6a6a;
}

.bottom-nav .nav-item:hover,
.bottom-nav .nav-item.active {
  color: #7c3aed;
  background: rgba(124, 58, 237, 0.1);
}

.nav-icon {
  font-size: 22px;
  margin-bottom: 4px;
}

.nav-label {
  font-size: 11px;
  font-weight: 500;
}

/* ===== SCROLL TO TOP ===== */
.scroll-to-top {
  position: fixed;
  bottom: 80px;
  right: 30px;
  width: 50px;
  height: 50px;
  background: linear-gradient(135deg, #7c3aed, #ff6b6b);
  color: white;
  border: none;
  border-radius: 50%;
  font-size: 24px;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  z-index: 998;
  box-shadow: 0 10px 30px rgba(124, 58, 237, 0.4);
}

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

.scroll-to-top:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 40px rgba(124, 58, 237, 0.6);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
  .hero {
    flex-direction: column;
    padding: 140px 50px 80px;
    text-align: center;
  }

  .hero-buttons {
    justify-content: center;
  }

  .hero-stats {
    justify-content: center;
  }

  .about-grid {
    grid-template-columns: 1fr;
    gap: 50px;
  }

  .contact-wrapper {
    grid-template-columns: 1fr;
  }

  .footer-content {
    grid-template-columns: 1fr;
    gap: 40px;
  }
}

@media (max-width: 900px) {
  .navbar {
    display: none;
  }

  .bottom-nav {
    display: flex;
  }

  .theme-switch {
    top: 15px;
    right: 15px;
    width: 45px;
    height: 45px;
  }
  
  .theme-icon {
    font-size: 20px;
  }

  .hero {
    padding: 100px 30px 120px;
  }

  .hero h1 {
    font-size: 42px;
  }

  .section {
    padding: 60px 30px;
  }

  .section-title {
    font-size: 36px;
  }

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

  .tech-grid {
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  }

  .about-highlights {
    grid-template-columns: 1fr;
  }

  .hero-stats {
    flex-direction: column;
    gap: 20px;
  }

  .scroll-to-top {
    bottom: 90px;
    right: 20px;
  }

  .footer {
    padding: 40px 30px 100px;
  }

  .footer-social .social-icons {
    display: none;
  }
}

@media (max-width: 600px) {
  .hero h1 {
    font-size: 32px;
  }

  .hero-subtitle {
    font-size: 16px;
  }

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

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

  .code-card.big {
    padding: 20px;
  }

  .section-title {
    font-size: 28px;
  }
}
