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

:root {
  /* Dark Theme */
  --bg-primary: #0a0e27;
  --bg-secondary: #12172d;
  --bg-tertiary: #1a1f3a;
  --text-primary: #e8eef5;
  --text-secondary: #b0b8cc;
  --text-tertiary: #7d8499;
  --accent: #0ea5e9;
  --accent-light: #06b6d4;
  --accent-dark: #0284c7;
  --success: #10b981;
  --warning: #f59e0b;
  --danger: #ef4444;
  --border: #2a2f4a;
  --nav-color: #2d3748;

  /* Light Theme (will override) */
  --light-bg-primary: #f8f9fc;
  --light-bg-secondary: #ffffff;
  --light-bg-tertiary: #f3f4f8;
  --light-text-primary: #0f172a;
  --light-text-secondary: #475569;
  --light-text-tertiary: #94a3b8;
  --light-border: #e2e8f0;
}

body.light-mode {
  --bg-primary: #f8f9fc;
  --bg-secondary: #ffffff;
  --bg-tertiary: #f3f4f8;
  --text-primary: #0f172a;
  --text-secondary: #475569;
  --text-tertiary: #94a3b8;
  --border: #e2e8f0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Inter", sans-serif;
  background-color: var(--bg-primary);
  color: var(--text-primary);
  transition: background-color 0.3s ease, color 0.3s ease;
  line-height: 1.6;
}
/* ===== TYPING EFFECT ===== */
.typing-text {
    display: inline-block;
    color: var(--accent);
    padding-right: 8px;
    animation: blink-cursor 0.7s infinite;
    min-width: 200px;
}

@keyframes blink-cursor {
    0%, 50% {
        border-right-color: var(--accent);
    }
    51%, 100% {
        border-right-color: transparent;
    }
}

/* ===== HEADER & NAVIGATION ===== */
.header {
  position: fixed;
  left: 0;
  top: 0;
  width: 392px;
  height: 100vh;
  background: var(--bg-secondary);
  border-right: 1px solid var(--border);
  overflow-y: hidden;
  z-index: 1000;
  display: flex;
  flex-direction: column;
  padding: 40px 25px;
  transition: all 0.3s ease;
}

.header-content {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.profile-section {
  text-align: center;
  margin-bottom: 40px;
}

.profile-img {
  width: 140px;
  height: 140px;
  border-radius: 50%;
  background: linear-gradient(135deg, #06b6d4, #0284c7);
  padding: 1px;
  margin: 0 auto 20px;
  position: relative;
  overflow: hidden;
  border: 2px solid var(--accent);
}

.profile-img img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
}

.profile-name h1 {
  font-family: "Space Grotesk", sans-serif;
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 5px;
  color: var(--text-primary);
}

.profile-title {
  font-size: 13px;
  color: var(--accent);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.social-links {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-top: 20px;
}

.social-links a {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--bg-tertiary);
  color: var(--text-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  border: 1px solid var(--border);
  font-size: 16px;
  text-decoration: none;
}

.social-links a:hover {
  background: var(--accent);
  color: white;
  border-color: var(--accent);
  transform: translateY(-3px);
}

nav {
  flex: 1;
}

nav ul {
  list-style: none;
  margin-top: 50px;
}

nav ul li {
  margin-bottom: 15px;
}

nav ul a {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 15px;
  border-radius: 8px;
  transition: all 0.3s ease;
  border-left: 1.5px solid transparent;
  position: relative;
}

nav ul a:hover,
nav ul a.active {
  color: var(--accent);
  background: rgba(99, 102, 241, 0.1);
  border-left-color: var(--accent);
}

nav ul a i {
  font-size: 18px;
}

.theme-toggle {
  margin-top: auto;
  padding-top: 30px;
  border-top: 1px solid var(--border);
}

.toggle-btn {
  width: 100%;
  padding: 12px;
  border: 1px solid var(--border);
  background: var(--bg-tertiary);
  color: var(--text-primary);
  border-radius: 8px;
  cursor: pointer;
  font-size: 13px;
  font-weight: 600;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.toggle-btn:hover {
  background: var(--accent);
  color: white;
  border-color: var(--accent);
}

/* ===== MAIN CONTENT ===== */
main {
  margin-left: 392px;
  min-height: 100vh;
}

section {
  padding: 80px 60px;
  position: relative;
}

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

/* ===== HERO SECTION ===== */
.hero {
  min-height: 100vh;
  padding: 120px 60px;
  background: linear-gradient(
      135deg,
      rgba(14, 165, 233, 0.15) 0%,
      rgba(2, 132, 199, 0.1) 100%
    ),
    url('data:image/svg+xml,%3Csvg width="100" height="100" xmlns="http://www.w3.org/2000/svg"%3E%3Cpath d="M0 0h100v100H0z" fill="none"/%3E%3Ccircle cx="50" cy="50" r="30" fill="rgba(14,165,233,0.1)"/%3E%3Ccircle cx="20" cy="20" r="20" fill="rgba(6,182,212,0.05)"/%3E%3Ccircle cx="80" cy="80" r="25" fill="rgba(2,132,199,0.08)"/%3E%3C/svg%3E');
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(
      circle at 20% 50%,
      rgba(6, 182, 212, 0.1) 0%,
      transparent 50%
    ),
    radial-gradient(
      circle at 80% 80%,
      rgba(14, 165, 233, 0.08) 0%,
      transparent 50%
    );
  pointer-events: none;
}

.hero .container {
  position: relative;
  z-index: 1;
}

.hero-content h1 {
  font-family: "Space Grotesk", sans-serif;
  font-size: 52px;
  font-weight: 700;
  margin-bottom: 20px;
  background: linear-gradient(135deg, #06b6d4, #0284c7);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1.2;
}

.hero-content .subtitle {
  font-size: 20px;
  color: var(--text-secondary);
  margin-bottom: 30px;
  font-weight: 500;
}

.typing-effect {
  color: var(--accent);
  font-weight: 700;
  border-bottom: 2px solid var(--accent);
  padding-bottom: 2px;
}

.cta-buttons {
  display: flex;
  gap: 20px;
  margin-top: 40px;
  flex-wrap: wrap;
}

.btn {
  padding: 14px 32px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 14px;
  text-decoration: none;
  transition: all 0.3s ease;
  cursor: pointer;
  border: none;
  display: inline-block;
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent), var(--accent-dark));
  color: white;
  box-shadow: 0 8px 20px rgba(99, 102, 241, 0.3);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 30px rgba(99, 102, 241, 0.4);
}

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

.btn-secondary:hover {
  background: var(--accent);
  color: white;
  border-color: var(--accent);
}

/* ===== SECTION TITLES ===== */
.section-title {
  font-family: "Space Grotesk", sans-serif;
  font-size: 36px;
  font-weight: 700;
  margin-bottom: 50px;
  position: relative;
  padding-bottom: 20px;
}

.section-title::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 60px;
  height: 4px;
  background: linear-gradient(90deg, var(--accent), var(--accent-light));
  border-radius: 2px;
}

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

.about-content h3 {
  font-family: "Space Grotesk", sans-serif;
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 20px;
  color: var(--text-primary);
}

.about-content p {
  color: var(--text-secondary);
  margin-bottom: 20px;
  line-height: 1.8;
}

.about-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 40px;
}

.stat-card {
  background: var(--bg-secondary);
  padding: 25px;
  border-radius: 12px;
  text-align: center;
  border: 1px solid var(--border);
  transition: all 0.3s ease;
}

.stat-card:hover {
  border-color: var(--accent);
  background: rgba(99, 102, 241, 0.05);
}

.stat-number {
  font-family: "Space Grotesk", sans-serif;
  font-size: 32px;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 10px;
}

.stat-label {
  font-size: 13px;
  color: var(--text-tertiary);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.tech-stack {
  margin-top: 40px;
}

.tech-stack h4 {
  margin-bottom: 15px;
  font-size: 14px;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 700;
}

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

.tech-tag {
  background: var(--bg-tertiary);
  padding: 8px 16px;
  border-radius: 20px;
  font-size: 13px;
  border: 1px solid var(--border);
  color: var(--text-secondary);
  transition: all 0.3s ease;
}

.tech-tag:hover {
  background: var(--accent);
  color: white;
  border-color: var(--accent);
}

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

.skill-item h4 {
  margin-bottom: 15px;
  font-size: 15px;
  color: var(--text-primary);
  font-weight: 600;
}

.progress-bar {
  background: var(--bg-tertiary);
  height: 8px;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid var(--border);
}

.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--accent), var(--accent-light));
  border-radius: 10px;
  width: 0;
  animation: fillProgress 1.5s ease forwards;
}

@keyframes fillProgress {
  to {
    width: var(--progress-width, 100%);
  }
}

/* ===== PORTFOLIO SECTION ===== */
.portfolio-filters {
  display: flex;
  justify-content: center;
  gap: 15px;
  margin-bottom: 50px;
  flex-wrap: wrap;
}

.filter-btn {
  padding: 8px 20px;
  background: var(--bg-tertiary);
  color: var(--text-secondary);
  border: 1px solid var(--border);
  border-radius: 20px;
  cursor: pointer;
  font-size: 13px;
  font-weight: 600;
  transition: all 0.3s ease;
}

.filter-btn.active,
.filter-btn:hover {
  background: var(--accent);
  color: white;
  border-color: var(--accent);
}

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.portfolio-card {
  background: var(--bg-secondary);
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--border);
  transition: all 0.3s ease;
  cursor: pointer;
}

.portfolio-card:hover {
  border-color: var(--accent);
  transform: translateY(-5px);
  box-shadow: 0 15px 40px rgba(99, 102, 241, 0.2);
}

.portfolio-image {
  width: 100%;
  height: 250px;
  background: linear-gradient(135deg, var(--bg-tertiary), var(--bg-secondary));
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-tertiary);
  font-size: 48px;
  position: relative;
  overflow: hidden;
}

.portfolio-image::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(99, 102, 241, 0.1);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.portfolio-card:hover .portfolio-image::after {
  opacity: 1;
}

.portfolio-info {
  padding: 20px;
}

.portfolio-info h4 {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--text-primary);
}

.portfolio-info p {
  font-size: 13px;
  color: var(--text-tertiary);
}

/* ===== SERVICES SECTION ===== */
.services-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 30px;
}

.service-card {
  background: var(--bg-secondary);
  padding: 35px;
  border-radius: 12px;
  border: 1px solid var(--border);
  transition: all 0.3s ease;
}

.service-card:hover {
  border-color: var(--accent);
  background: rgba(99, 102, 241, 0.05);
  transform: translateY(-5px);
}

.service-icon {
  width: 50px;
  height: 50px;
  background: linear-gradient(135deg, var(--accent), var(--accent-light));
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  color: white;
  margin-bottom: 20px;
}

.service-card h3 {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 12px;
  color: var(--text-primary);
}

.service-card p {
  color: var(--text-secondary);
  margin-bottom: 20px;
  line-height: 1.7;
}

/* ===== PRICING SECTION ===== */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  margin-top: 50px;
}

.pricing-card {
  background: var(--bg-secondary);
  padding: 40px;
  border-radius: 12px;
  border: 1px solid var(--border);
  text-align: center;
  transition: all 0.3s ease;
  position: relative;
}

.pricing-card.featured {
  border-color: var(--accent);
  background: rgba(99, 102, 241, 0.05);
  transform: scale(1.05);
}

.pricing-badge {
  position: absolute;
  top: -15px;
  right: 30px;
  background: linear-gradient(135deg, var(--accent), var(--accent-light));
  color: white;
  padding: 6px 16px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
}

.pricing-card h3 {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 15px;
  color: var(--text-primary);
}

.pricing-price {
  font-family: "Space Grotesk", sans-serif;
  font-size: 42px;
  font-weight: 700;
  color: var(--accent);
  margin: 20px 0;
}

.pricing-description {
  font-size: 13px;
  color: var(--text-tertiary);
  margin-bottom: 30px;
}

.pricing-features {
  list-style: none;
  margin: 30px 0;
  text-align: left;
}

.pricing-features li {
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
  font-size: 13px;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  gap: 10px;
}

.pricing-features li:last-child {
  border-bottom: none;
}

.pricing-features i {
  color: var(--accent);
  font-size: 14px;
}

.pricing-card .btn {
  width: 100%;
  margin-top: 20px;
}

/* ===== TESTIMONIALS SECTION ===== */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.testimonial-card {
  background: var(--bg-secondary);
  padding: 30px;
  border-radius: 12px;
  border: 1px solid var(--border);
  transition: all 0.3s ease;
}

.testimonial-card:hover {
  border-color: var(--accent);
  background: rgba(99, 102, 241, 0.05);
}

.stars {
  color: var(--accent);
  margin-bottom: 15px;
  font-size: 14px;
}

.testimonial-text {
  font-style: italic;
  color: var(--text-secondary);
  margin-bottom: 20px;
  line-height: 1.8;
  font-size: 14px;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
}

.author-avatar {
  width: 45px;
  height: 45px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--accent-light));
}

.author-info h4 {
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 2px;
  color: var(--text-primary);
}

.author-info p {
  font-size: 12px;
  color: var(--text-tertiary);
}

/* ===== CONTACT SECTION ===== */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
}

.contact-info h3 {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 30px;
  color: var(--text-primary);
}

.contact-item {
  margin-bottom: 30px;
  display: flex;
  gap: 20px;
}

.contact-icon {
  width: 45px;
  height: 45px;
  background: var(--bg-tertiary);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  flex-shrink: 0;
  font-size: 20px;
}

.contact-item-content h4 {
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 5px;
  color: var(--text-primary);
}

.contact-item-content p {
  font-size: 13px;
  color: var(--text-secondary);
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 12px 15px;
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text-primary);
  font-family: "Inter", sans-serif;
  font-size: 14px;
  margin-bottom: 20px;
  transition: all 0.3s ease;
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--accent);
  background: rgba(99, 102, 241, 0.05);
}

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

/* ===== FOOTER ===== */
footer {
  margin-left: 392px;
  padding: 40px 60px;
  border-top: 1px solid var(--border);
  text-align: center;
  color: var(--text-secondary);
  font-size: 13px;
}
.menu-toggle {
  display: none;
  position: fixed;
  top: 20px;
  right: 20px;
  width: 50px;
  height: 50px;
  background: var(--accent);
  border: none;
  border-radius: 8px;
  color: white;
  font-size: 24px;
  cursor: pointer;
  z-index: 1999;
}
.menu-toggle:hover {
  background: var(--accent-dark);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
  .header {
    width: 350px;
    padding: 30px 20px;
  }

  main,
  footer {
    margin-left: 350px;
  }

  section {
    padding: 60px 40px;
  }

  .hero {
    padding: 100px 40px 60px;
  }

  .hero-content h1 {
    font-size: 40px;
  }

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

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

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

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

  .pricing-card.featured {
    transform: scale(1);
  }

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

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

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

@media (max-width: 768px) {
  .header {
    position: fixed;
    left: -100%;
    width: 70%;
    max-width: 250px;
    transition: left 0.3s ease;
    z-index: 2000;
  }

  .header.active {
    left: 0;
  }

  main,
  footer {
    margin-left: 0;
  }

  section {
    padding: 50px 20px;
  }

  .hero {
    padding: 80px 20px 50px;
  }

  .hero-content h1 {
    font-size: 28px;
  }

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

  .cta-buttons {
    flex-direction: column;
    gap: 12px;
  }

  .btn {
    width: 100%;
    text-align: center;
  }

  .portfolio-grid,
  .pricing-grid,
  .testimonials-grid {
    grid-template-columns: 1fr;
  }

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

  .portfolio-filters {
    justify-content: flex-start;
    overflow-x: auto;
  }

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

  .menu-toggle {
    display: block;
  }
}

