/* --- Global Reset & Variables --- */
:root {
  /* WHITE & BLACK PALETTE */
  --bg-color: #ffffff;
  /* Pure White Background */
  --text-color: #000000;
  /* Pure Black Text */
  --gray-color: #555555;
  /* Dark Gray for subtle text */
  --secondary-bg: #f8f9fa;
  /* Very Light Gray for cards/footer */
  --border-color: #e5e7eb;
  /* Subtle border color */

  /* FONT - Poppins */
  --font-family: "Poppins", sans-serif;
}

/* Dark Mode Variables */
html[data-theme="dark"] {
  --bg-color: #1a1a1a;
  --text-color: #ffffff;
  --gray-color: #b0b0b0;
  --secondary-bg: #2a2a2a;
  --border-color: #404040;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  text-decoration: none;
  list-style: none;
  border: none;
  outline: none;
  scroll-behavior: smooth;
}

body {
  background-color: var(--bg-color);
  color: var(--text-color);
  font-family: var(--font-family);
  overflow-x: hidden;
  line-height: 1.6;
}

/* --- Typography --- */
h1,
h2,
h3,
.logo {
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-color);
}

span {
  color: var(--gray-color);
  font-weight: 600;
}

.section-title {
  font-size: 3rem;
  font-weight: 700;
  text-align: center;
  margin-bottom: 3rem;
  color: var(--text-color);
  position: relative;
  display: inline-block;
  padding-bottom: 15px;
}

/* Underline effect for titles */
.section-title::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 3px;
  background: var(--text-color);
}

section {
  text-align: center;
}

p {
  color: var(--gray-color);
  font-weight: 400;
  font-size: 1rem;
}

/* --- Buttons (Solid High Contrast) --- */
.btn-primary {
  display: inline-block;
  padding: 12px 35px;
  background: var(--text-color);
  /* Black BG */
  color: var(--bg-color);
  /* White Text */
  border-radius: 5px;
  font-weight: 600;
  transition: 0.3s ease;
  cursor: pointer;
  border: 2px solid var(--text-color);
  text-transform: uppercase;
  font-size: 0.9rem;
  letter-spacing: 1px;
}

.btn-primary:hover {
  background: transparent;
  color: var(--text-color);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  /* Dark Shadow */
}

.btn-secondary {
  display: inline-block;
  padding: 12px 35px;
  background: transparent;
  color: var(--text-color);
  border: 2px solid var(--text-color);
  border-radius: 5px;
  font-weight: 600;
  transition: 0.3s ease;
  text-transform: uppercase;
  font-size: 0.9rem;
  letter-spacing: 1px;
}

.btn-secondary:hover {
  background: var(--text-color);
  color: var(--bg-color);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.15);
}

.btn-group {
  display: flex;
  justify-content: center;
  gap: 15px;
  margin-top: 20px;
}

.small {
  padding: 8px 20px;
  font-size: 0.8rem;
}

/* --- SKILLS MARQUEE SECTION --- */
.skills-wrapper {
  max-width: 100%;
  overflow: hidden;
  /* Hides content outside the box */
  padding: 20px 0;
}

.marquee {
  white-space: nowrap;
  overflow: hidden;
  margin-bottom: 20px;
  /* Space between the 3 lines */
  position: relative;
}

/* The Container moving the items */
.marquee-content {
  display: inline-flex;
  gap: 30px;
  /* Space between skill items */
}

/* Animation Classes */
.scroll-left {
  animation: scrollLeft 25s linear infinite;
}

.scroll-right {
  animation: scrollRight 25s linear infinite;
}

/* Individual Skill Item Design (Small & Clean) */
.skill-item {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--bg-color);
  border: 1px solid var(--border-color);
  padding: 8px 20px;
  border-radius: 50px;
  /* Pill Shape */
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--text-color);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  transition: 0.3s;
}

.skill-item i {
  font-size: 1.2rem;
  /* Small Logo Size */
  color: var(--text-color);
}

.skill-item:hover {
  border-color: var(--text-color);
  background: var(--text-color);
  color: var(--bg-color);
  /* Invert colors on hover */
  transform: scale(1.05);
}

.skill-item:hover i {
  color: var(--bg-color);
}

/* --- KEYFRAMES FOR MOVEMENT --- */
@keyframes scrollLeft {
  from {
    transform: translateX(0);
  }

  to {
    transform: translateX(-50%);
  }
}

@keyframes scrollRight {
  from {
    transform: translateX(-50%);
  }

  to {
    transform: translateX(0);
  }
}

/* Pause animation on hover for better UX */
.marquee:hover .marquee-content {
  animation-play-state: paused;
}

/* --- ANIMATIONS --- */
@keyframes float {
  0% {
    transform: translateY(0px);
  }

  50% {
    transform: translateY(-20px);
  }

  100% {
    transform: translateY(0px);
  }
}

@keyframes blink {
  0%,
  100% {
    opacity: 1;
  }

  50% {
    opacity: 0;
  }
}

.reveal {
  position: relative;
  transform: translateY(100px);
  opacity: 0;
  transition: all 1.2s ease;
}

.reveal.active {
  transform: translateY(0);
  opacity: 1;
}
.typing-text{
  font-size: 2rem;
}

.typing-text::after {
  content: "|";
  animation: blink 0.7s infinite;
  color: var(--text-color);
}

/* --- Header --- */
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  padding: 20px 10%;
  background: rgba(255, 255, 255, 0.95);
  /* White semi-transparent */
  backdrop-filter: blur(10px);
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 1000;
  border-bottom: 1px solid var(--border-color);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.logo {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--text-color);
}

.logo span {
  color: var(--gray-color);
}

nav ul {
  display: flex;
  gap: 30px;
}

nav a {
  color: var(--gray-color);
  font-weight: 600;
  transition: 0.3s;
  font-size: 1rem;
}

nav a:hover {
  color: var(--text-color);
}

/* --- Hero --- */
section {
  padding: 10rem 10% 2rem;
}

.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  text-align: left;
}

.hero-content h1 {
  font-size: 4rem;
  font-weight: 700;
  line-height: 1.2;
}

.hero-content h2 {
  font-size: 2.5rem;
  font-weight: 600;
  margin-bottom: 1rem;
  color: var(--gray-color);
}

.hero-content p {
  font-size: 1rem;
  margin-bottom: 2rem;
  max-width: 600px;
}

.social-links {
  display: flex;
  gap: 15px;
  margin-bottom: 30px;
}

.social-links a {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  width: 45px;
  height: 45px;
  background: transparent;
  border: 2px solid var(--text-color);
  color: var(--text-color);
  border-radius: 50%;
  transition: 0.3s;
  font-size: 1.2rem;
}

.social-links a:hover {
  background: var(--text-color);
  color: var(--bg-color);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  transform: translateY(-3px);
}

.hero-buttons {
  display: flex;
  gap: 1.5rem;
}

/* Image Styling: Clean with shadow */
.img-glow {
  width: 400px;
  height: 400px;
  border-radius: 50%;
  background: transparent;
  border: 3px solid var(--bg-color);
  /* White border to separate from bg */
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
  /* Subtle dark shadow */
  display: flex;
  justify-content: center;
  align-items: center;
  animation: float 4s ease-in-out infinite;
}

.img-glow img,
.project-card img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  /* Removed grayscale filter for fresh look on white bg */
  transition: 0.5s;
}

.project-card img {
  border-radius: 10px;
  height: 200px;
}

/* --- About --- */
.about {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5rem;
  text-align: left;
}

.about-content h2 {
  text-align: left;
}

.about-content p {
  margin-bottom: 2rem;
}

/* --- Services --- */
/* --- SERVICES SECTION (Regenerated) --- */
.services-container {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  max-width: 1200px;
  margin: 0 auto;
}
.service-card {
  padding: 40px 30px;
  border: 1px solid var(--border-color);
  border-radius: 20px;
  transition: 0.3s;
  text-align: left;
}
.service-card i {
  font-size: 1.5rem;
  color: var(--text-color);
}
.service-card h3 {
  font-size: 1.3rem;
  margin-bottom: 10px;
}
.service-card:hover {
  background: black;
  color: white;
  transform: translateY(-10px);
}
.service-card:hover i,
.service-card:hover p,
.service-card:hover h3 {
  color: white;
} /* High contrast hover */
.service-link {
  font-weight: 700;
  margin-top: 15px;
  display: inline-block;
  color: inherit;
}
/* --- Projects --- */
/* --- SKETCH PROJECT SECTION --- */
.sketch-projects-section {
  padding: 100px 5%;
  background: #ffffff;
}

.section-header-center {
  text-align: center;
  margin-bottom: 80px;
}
.section-header-center h2 {
  font-size: 3rem;
  font-weight: 800;
  text-transform: uppercase;
}
.section-header-center p {
  color: #666;
  max-width: 600px;
  margin: 10px auto 0;
}

/* Container for the list */
.sketch-projects-list {
  display: flex;
  flex-direction: column;
  gap: 60px;
  max-width: 1000px;
  margin: 0 auto;
}

/* --- THE CARD (Based on your Drawing) --- */
.sketch-card {
  display: flex;
  gap: 40px;
  border: 1px solid #000; /* The outer box from sketch */
  padding: 30px;
  border-radius: 6px;
  background: #fff;
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;
  align-items: center;
}

.sketch-card:hover {
  transform: translateY(-5px);
  border: 2px solid #000;
  box-shadow: 10px 10px 0px #000; /* Solid shadow effect */
}

/* Left: Image Box */
.sketch-img-container {
  flex: 0 0 45%; /* Takes 45% width */
  height: auto;
  aspect-ratio: 16 / 10;
  min-height: 280px;
  border: 1px solid #000; /* Box around image */
  border-radius: 8px;
  overflow: hidden;
}

.sketch-img-container img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: 0.5s;
}

.sketch-card:hover .sketch-img-container img {
  transform: scale(1.05);
}

/* Right: Details */
.sketch-details {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.sketch-details h3 {
  font-size: 2.2rem;
  font-weight: 800;
  margin-bottom: 10px;
  line-height: 1.1;
  text-transform: uppercase;
}

.sketch-subtitle {
  font-size: 1.05rem;
  color: #555;
  margin-bottom: 25px;
  line-height: 1.6;
}

/* Tech Tags (Rectangular Boxes) */
.sketch-tags {
  display: flex;
  gap: 12px;
  margin-bottom: 30px;
  flex-wrap: wrap;
}

.sketch-tags span {
  padding: 6px 16px;
  font-weight: 700;
  font-size: 0.85rem;
  text-transform: uppercase;
  border-radius: 6px;
  background: #d0d0d0;
  color: #000;
}

/* Actions (Buttons) */
.sketch-actions {
  display: flex;
  gap: 20px;
}

.sketch-btn {
  padding: 14px 35px;
  border: 2px solid #000; /* Box border */
  text-decoration: none;
  font-weight: 700;
  text-transform: uppercase;
  border-radius: 8px;
  transition: 0.2s;
  font-size: 0.95rem;
  letter-spacing: 0.5px;
}

/* Primary Button (Black) */
.sketch-btn.primary {
  background: #000;
  color: #fff;
}
.sketch-btn.primary:hover {
  background: #333;
  border-color: #333;
}

/* Secondary Button (White) */
.sketch-btn.secondary {
  background: #fff;
  color: #000;
}
.sketch-btn.secondary:hover {
  background: #000;
  color: #fff;
}
.sketch-card:hover {
  border-color: var(--text-color);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.08);
}
/* --- EXPLORE ALL BUTTON --- */
.view-all-wrapper {
  text-align: center;
  margin-top: 70px; /* Space from the last project card */
}

.btn-explore {
  display: inline-block;
  padding: 20px 60px;
  font-size: 1.4rem;
  font-weight: 800;
  text-transform: uppercase;
  text-decoration: none;
  color: #fff;
  background: #000;
  border: 2px solid #000;
  border-radius: 10px;
  transition: all 0.2s ease;
  letter-spacing: 1px;
}

.btn-explore i {
  margin-left: 10px;
  transition: transform 0.2s;
}

.btn-explore:hover {
  background: #fff;
  color: #000;
}

/* Responsive */
@media (max-width: 1024px) {
  .sketch-card {
    flex-direction: column;
    padding: 20px;
    gap: 25px;
  }
  .sketch-img-container {
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 10;
    min-height: 250px;
  }
  .sketch-details h3 {
    font-size: 1.8rem;
  }
  .sketch-actions {
    width: 100%;
  }
  .sketch-btn {
    flex: 1;
    text-align: center;
    padding: 12px 0;
  }
}

@media (max-width: 768px) {
  .sketch-img-container {
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 10;
    min-height: 200px;
  }
  .sketch-card {
    padding: 15px;
    gap: 20px;
  }
  .sketch-details h3 {
    font-size: 1.5rem;
  }
  .sketch-btn {
    padding: 10px 0;
    font-size: 0.9rem;
  }
}

@media (max-width: 480px) {
  .sketch-img-container {
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 10;
    min-height: 140px;
  }
  .sketch-card {
    padding: 12px;
    gap: 15px;
  }
  .sketch-details h3 {
    font-size: 1.2rem;
  }
  .sketch-btn {
    padding: 8px 0;
    font-size: 0.85rem;
  }
}
/* --- Contact --- */
/* --- REDESIGNED CONTACT SECTION --- */
.contact-redesign {
  padding: 80px 10%;
  background: #ffffff; /* White Background */
  text-align: center;
}

/* Header Styling: CONTACT ME */
.contact-header {
  margin-bottom: 50px;
}

.contact-header h2 {
  font-size: 3.5rem;
  font-weight: 800; /* Extra Bold */
  color: #000000;
  text-transform: uppercase;
  margin: 0;
  letter-spacing: 1px;
}

.contact-header h2 span {
  color: #666666; /* Gray Color for "ME" */
}

/* Small horizontal line under title */
.header-line {
  width: 60px;
  height: 4px;
  background: #000000;
  margin: 15px auto 0;
  border-radius: 2px;
}

/* Form Container */
.modern-form {
  max-width: 900px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* Input Grid (2 Columns) */
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

/* Input & Textarea Styles (Light Gray Box) */
.modern-form input,
.modern-form textarea {
  width: 100%;
  padding: 18px 20px;
  background-color: #f8f9fa; /* Light Gray Background */
  border: 1px solid #e9ecef; /* Very subtle border */
  border-radius: 6px;
  font-family: "Poppins", sans-serif;
  font-size: 1rem;
  color: #333;
  outline: none;
  transition: 0.3s ease;
}

.modern-form input::placeholder,
.modern-form textarea::placeholder {
  color: #888;
}

/* Focus Effect */
.modern-form input:focus,
.modern-form textarea:focus {
  background-color: #fff;
  border-color: #000; /* Black border on focus */
  box-shadow: 0 0 0 4px rgba(0, 0, 0, 0.05);
}

.modern-form textarea {
  height: 200px;
  resize: none;
}

/* Button Styling (Centered, Black) */
.btn-container {
  text-align: center;
  margin-top: 20px;
}

.btn-black {
  background-color: #000000;
  color: #ffffff;
  padding: 18px 50px;
  font-size: 1rem;
  font-weight: 700;
  text-transform: uppercase;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  letter-spacing: 1px;
  transition: 0.3s ease;
  display: inline-block;
}

.btn-black:hover {
  background-color: #333;
  transform: translateY(-3px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
}

/* Responsive: Stack inputs on mobile */
@media (max-width: 768px) {
  .contact-header h2 {
    font-size: 2.5rem;
  }
  .form-grid {
    grid-template-columns: 1fr;
  }
}

/* --- Footer --- */
footer {
  background: var(--secondary-bg);
  padding: 50px 10%;
  border-top: 1px solid var(--border-color);
  margin-top: 50px;
  text-align: center;
}

.footer-socials {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 2rem;
}

.footer-nav {
  display: flex;
  justify-content: center;
  gap: 2rem;
  margin-bottom: 2rem;
}
.footer-nav a {
  color: var(--gray-color);
}

.footer-nav a:hover {
  color: var(--text-color);
}

.copyright {
  color: var(--gray-color);
  font-size: 0.9rem;
}
/* --- NAVBAR DROPDOWN STYLES --- */

/* 1. Parent Item Container */
.dropdown-parent {
  position: relative;
  /* Adds invisible padding at bottom to prevent menu from closing 
       if there is a small gap between the text and the box */
  padding-bottom: 10px;
  margin-bottom: -10px;
}

/* Small arrow next to text */
.arrow-small {
  font-size: 0.7rem;
  margin-left: 5px;
  transition: transform 0.3s;
}

/* Rotate arrow on hover */
.dropdown-parent:hover .arrow-small {
  transform: rotate(180deg);
}

/* 2. The Hidden Menu Box */
.dropdown-menu {
  position: absolute;
  top: 100%; /* Position directly below the parent */
  left: 50%;
  transform: translateX(-50%) translateY(20px); /* Centered and pushed down */
  background: #ffffff;
  min-width: 220px; /* Width of the dropdown */
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  border: 1px solid #eee;
  border-radius: 10px;
  padding: 10px 0;

  /* Hide by default */
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;

  /* Override existing nav ul styles */
  display: flex;
  flex-direction: column;
  gap: 0 !important; /* Remove gap from main nav settings */
  z-index: 1000;
}

/* Triangle Pointer at top */
.dropdown-menu::before {
  content: "";
  position: absolute;
  top: -6px;
  left: 50%;
  transform: translateX(-50%);
  border-left: 6px solid transparent;
  border-right: 6px solid transparent;
  border-bottom: 6px solid #fff;
}

/* 3. Show Menu on Hover */
.dropdown-parent:hover .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0); /* Slide up effect */
}

/* 4. Dropdown Links */
.dropdown-menu li {
  width: 100%;
  display: block;
}

.dropdown-menu a {
  display: flex !important;
  align-items: center;
  gap: 10px;
  padding: 12px 20px;
  font-size: 0.95rem;
  color: #555 !important; /* Dark gray text */
  font-weight: 500;
  white-space: nowrap; /* Prevents text breaking */
  transition: 0.2s;
}

/* Hover effect on individual links */
.dropdown-menu a:hover {
  background-color: #f9f9f9;
  color: #000 !important; /* Black text on hover */
  padding-left: 25px; /* Slide text slightly right */
}

.dropdown-menu i {
  color: #999;
  font-size: 1rem;
  transition: 0.2s;
}

.dropdown-menu a:hover i {
  color: #000; /* Icon turns black on hover */
}
/* --- Responsive Design (Mobile-First & Comprehensive) --- */

/* Ensure responsive images */
img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Improve readability on small screens */
@media (max-width: 480px) {
  body {
    font-size: 13px;
  }

  h1 {
    word-spacing: 100vw;
  }

  /* Hero Section */
  .hero {
    padding-top: 90px;
  }

  .hero-content h1 {
    font-size: 1.8rem;
  }

  .hero-content h2 {
    font-size: 1.2rem;
  }

  .hero-content p {
    font-size: 0.9rem;
  }

  .social-links {
    gap: 10px;
    margin-bottom: 15px;
  }

  .social-links a {
    width: 38px;
    height: 38px;
  }

  .hero-buttons {
    flex-direction: column;
    gap: 8px;
  }

  .hero-buttons a {
    width: 100%;
    padding: 10px 15px;
    font-size: 0.85rem;
  }

  .img-glow {
    width: 150px;
    height: 150px;
  }

  /* About Section */
  .about-content h2 {
    font-size: 1.5rem;
  }

  .about-content p {
    font-size: 0.9rem;
  }

  .about-content a {
    display: block;
    width: 100%;
    margin-right: 0;
    margin-bottom: 10px;
    padding: 10px 15px;
    text-align: center;
  }

  /* Skills */
  .section-title {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
  }

  .skill-item {
    padding: 5px 12px;
    font-size: 0.9rem;
    min-height: 36px;
  }

  .marquee-content {
    gap: 15px;
  }

  /* Projects */
  .sketch-card {
    padding: 12px;
    gap: 15px;
  }

  .sketch-img-container {
    height: auto;
    aspect-ratio: 16 / 10;
    min-height: 140px;
  }

  .sketch-details h3 {
    font-size: 1.1rem;
  }

  .sketch-subtitle {
    font-size: 0.85rem;
  }

  .sketch-tags span {
    font-size: 0.7rem;
    padding: 3px 8px;
  }

  .sketch-btn {
    padding: 8px 0;
    font-size: 0.8rem;
    min-height: 40px;
  }

  /* Services */
  .service-card {
    padding: 20px 15px;
  }

  .service-card h3 {
    font-size: 1rem;
  }

  .service-card p {
    font-size: 0.85rem;
  }

  /* Footer */
  footer {
    padding: 20px 5%;
  }

  .footer-socials {
    gap: 10px;
  }

  .footer-nav {
    gap: 0.8rem;
    font-size: 0.9rem;
  }
}

/* ========== MOBILE (< 768px) ========== */
@media (max-width: 767px) {
  /* Global */
  * {
    scroll-behavior: auto;
  }

  body {
    font-size: 14px;
  }

  /* Touch-friendly buttons and links */
  a,
  button {
    min-height: 44px;
  }

  /* Prevent font zoom on input focus in iOS */
  input,
  textarea,
  select {
    font-size: 16px !important;
  }

  /* Header & Navigation */
  header {
    padding: 15px 5%;
    flex-wrap: wrap;
    position: fixed;
    width: 100%;
  }

  .logo {
    font-size: 1.2rem;
    flex: 1;
  }

  nav {
    display: none;
    position: absolute;
    top: 60px;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.98);
    flex-direction: column;
    padding: 20px 5%;
    z-index: 999;
    border-top: 1px solid var(--border-color);
    width: 100%;
  }

  nav.active {
    display: flex;
  }

  nav ul {
    flex-direction: column;
    gap: 15px;
  }

  nav a {
    font-size: 0.9rem;
    display: block;
    padding: 10px 0;
    border-bottom: 1px solid #f0f0f0;
  }

  header > .btn-primary {
    display: none;
  }

  /* Mobile Menu Toggle Button */
  .menu-toggle {
    display: flex !important;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    background: none;
    border: none;
    padding: 5px;
    margin-left: auto;
    z-index: 1001;
  }

  .menu-toggle span {
    width: 25px;
    height: 2px;
    background: var(--text-color);
    transition: all 0.3s ease;
    display: block;
    transform-origin: center;
  }

  /* Hamburger animation */
  .menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(8px, 8px);
  }

  .menu-toggle.active span:nth-child(2) {
    opacity: 0;
  }

  .menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
  }

  /* Sections & Spacing */
  section {
    padding: 80px 5% 2rem;
    margin-top: 40px;
  }

  .hero {
    min-height: auto;
    flex-direction: column-reverse;
    gap: 1.5rem;
    padding-top: 100px;
    text-align: center;
  }

  .hero-content h1 {
    font-size: 2.2rem;
    line-height: 1.2;
    margin-bottom: 0.5rem;
  }

  .hero-content h2 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
  }

  .hero-content p {
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
    line-height: 1.6;
  }

  .social-links {
    justify-content: center;
    gap: 12px;
    margin-bottom: 20px;
  }

  .social-links a {
    width: 40px;
    height: 40px;
    min-height: 44px;
    min-width: 44px;
  }

  .hero-buttons {
    flex-direction: column;
  }

  .hero-buttons a {
    width: 100%;
    padding: 12px 20px;
  }

  .hero-image {
    width: 100%;
  }

  .img-glow {
    width: 200px;
    height: 200px;
    margin: 0 auto;
  }

  /* ABOUT SECTION */
  .about {
    flex-direction: column;
    text-align: center;
  }

  .about-image {
    width: 100%;
  }

  .about-content {
    width: 100%;
  }

  .about-content h2 {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 1rem;
  }

  .about-content p {
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
  }

  .about-content a {
    display: inline-block;
    margin-right: 10px;
    margin-bottom: 10px;
    min-height: 44px;
  }

  /* SKILLS SECTION */
  .skill-item {
    padding: 6px 15px;
    font-size: 1rem;
    min-height: 40px;
  }

  .marquee-content {
    gap: 20px;
  }

  /* PROJECTS/SKETCH CARDS */
  .sketch-projects-section {
    padding: 60px 5%;
  }

  .section-header-center h2 {
    font-size: 2rem;
  }

  .sketch-projects-list {
    gap: 40px;
  }

  .sketch-card {
    padding: 15px;
    gap: 20px;
  }

  .sketch-img-container {
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 10;
    min-height: 180px;
  }

  .sketch-details h3 {
    font-size: 1.3rem;
    margin-bottom: 10px;
  }

  .sketch-subtitle {
    font-size: 0.9rem;
  }

  .sketch-tags {
    gap: 8px;
  }

  .sketch-tags span {
    padding: 4px 12px;
    font-size: 0.75rem;
  }

  .sketch-actions {
    flex-direction: column;
  }

  .sketch-btn {
    width: 100%;
    min-height: 44px;
    font-size: 0.9rem;
  }

  /* Buttons */
  .btn-primary,
  .btn-secondary {
    padding: 10px 25px;
    font-size: 0.85rem;
    width: auto;
    min-height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .btn-group {
    flex-direction: column;
    gap: 10px;
  }

  /* Typography */
  h1,
  h2,
  h3 {
    word-break: break-word;
  }

  .section-title {
    font-size: 2rem;
    margin-bottom: 2rem;
  }

  .section-title::after {
    width: 50px;
    height: 2px;
  }

  p {
    font-size: 0.95rem;
  }

  /* Skills Marquee */
  .skill-item {
    padding: 6px 15px;
    font-size: 1rem;
  }

  .skill-item i {
    font-size: 1rem;
  }

  /* About Section */
  .about {
    flex-direction: column;
    gap: 2rem;
    text-align: center;
  }

  .about-content h2 {
    text-align: center;
    font-size: 2rem;
  }

  .about-content p {
    text-align: center;
  }

  /* Services */
  .services-container {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .service-card {
    padding: 25px 20px;
    text-align: center;
  }

  .service-card h3 {
    font-size: 1.1rem;
  }

  /* Form Grids */
  .form-grid {
    grid-template-columns: 1fr;
  }

  .input-group {
    grid-template-columns: 1fr;
  }

  /* Form inputs */
  input[type="text"],
  input[type="email"],
  input[type="tel"],
  textarea {
    font-size: 16px;
    border-radius: 8px;
  }

  /* Footer */
  footer {
    padding: 30px 5%;
  }

  .footer-nav {
    flex-direction: column;
    gap: 1rem;
  }

  .footer-socials {
    flex-direction: row;
    gap: 0.8rem;
  }

  /* Dropdown Menu Mobile */
  .dropdown-menu {
    position: fixed;
    top: auto;
    left: 0;
    right: 0;
    transform: none;
    border-radius: 0;
    min-width: 100%;
    box-shadow: none;
    border: none;
    padding: 10px 5%;
    background: #f9f9f9;
  }

  .dropdown-menu::before {
    display: none;
  }

  .dropdown-menu a {
    padding: 10px;
    font-size: 0.9rem;
  }

  .dropdown-parent:hover .dropdown-menu {
    display: none;
  }
}

/* ========== TABLET (768px - 1023px) ========== */
@media (min-width: 768px) and (max-width: 1023px) {
  .menu-toggle {
    display: none !important;
  }

  nav {
    display: flex !important;
  }

  header {
    flex-wrap: nowrap;
  }

  header {
    padding: 18px 5%;
  }

  section {
    padding: 8rem 5% 2rem;
  }

  .logo {
    font-size: 1.5rem;
  }

  nav ul {
    gap: 20px;
  }

  nav a {
    font-size: 0.95rem;
  }

  .hero {
    flex-direction: column-reverse;
    gap: 2rem;
  }

  .hero-content h1 {
    font-size: 3rem;
  }

  .hero-content h2 {
    font-size: 2rem;
  }

  .img-glow {
    width: 280px;
    height: 280px;
  }

  .section-title {
    font-size: 2.5rem;
  }

  .services-container {
    grid-template-columns: repeat(2, 1fr);
  }

  .about {
    flex-direction: column;
    text-align: center;
    gap: 2rem;
  }

  .about-content h2 {
    text-align: center;
    font-size: 2.5rem;
  }

  /* About */
  .about {
    flex-direction: column;
    text-align: center;
    gap: 2rem;
  }

  .about-content h2 {
    text-align: center;
    font-size: 2.5rem;
  }

  .about-content a {
    display: inline-block;
    margin-right: 15px;
    margin-bottom: 10px;
  }

  /* Hero */
  .hero {
    flex-direction: column-reverse;
    gap: 2rem;
  }

  .hero-content h1 {
    font-size: 3rem;
  }

  .hero-content h2 {
    font-size: 2rem;
  }

  .social-links {
    gap: 15px;
  }

  .hero-buttons {
    flex-direction: row;
    gap: 1rem;
  }

  .hero-buttons a {
    width: auto;
  }

  .img-glow {
    width: 280px;
    height: 280px;
  }

  /* Sections */
  .section-title {
    font-size: 2.5rem;
  }

  .services-container {
    grid-template-columns: repeat(2, 1fr);
  }

  /* Sketch Cards */
  .sketch-card {
    flex-direction: row;
    gap: 30px;
  }

  .sketch-img-container {
    flex: 0 0 45%;
    height: auto;
    aspect-ratio: 16 / 10;
    min-height: 250px;
  }

  .sketch-details {
    flex: 1;
  }

  .sketch-actions {
    flex-direction: row;
  }

  .sketch-btn {
    width: auto;
    flex: 1;
  }

  .form-grid {
    grid-template-columns: 1fr 1fr;
  }
}

/* ========== SMALL DESKTOP (1024px - 1199px) ========== */
@media (min-width: 1024px) and (max-width: 1199px) {
  .menu-toggle {
    display: none !important;
  }

  nav {
    display: flex !important;
  }

  header {
    padding: 20px 5%;
  }

  section {
    padding: 8rem 5% 2rem;
  }

  .hero {
    flex-direction: row;
    gap: 2rem;
  }

  .hero-content h1 {
    font-size: 3.5rem;
  }

  .img-glow {
    width: 350px;
    height: 350px;
  }

  .services-container {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* ========== LARGE DESKTOP (1200px+) ========== */
@media (min-width: 1200px) {
  .menu-toggle {
    display: none !important;
  }

  nav {
    display: flex !important;
  }

  header {
    padding: 20px 10%;
  }

  section {
    padding: 10rem 10% 2rem;
  }
}

/* ===== NEW FEATURES STYLES ===== */

/* 1. READING PROGRESS BAR */
.progress-bar {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  background: linear-gradient(90deg, #000 0%, #333 50%, #000 100%);
  width: 0%;
  z-index: 1001;
  transition: width 0.1s ease;
}

/* 2. BACK TO TOP BUTTON */
.back-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 50px;
  height: 50px;
  background: var(--text-color);
  color: var(--bg-color);
  border: none;
  border-radius: 50%;
  cursor: pointer;
  font-size: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  z-index: 999;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.back-to-top.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.back-to-top:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
}

html[data-theme="dark"] .back-to-top:hover {
  box-shadow: 0 10px 25px rgba(255, 255, 255, 0.1);
}

/* 3. THEME TOGGLE BUTTON */
.theme-toggle {
  position: fixed;
  top: 20px;
  right: 20px;
  width: 50px;
  height: 50px;
  background: var(--text-color);
  color: var(--bg-color);
  border: 2px solid var(--border-color);
  border-radius: 50%;
  cursor: pointer;
  font-size: 1.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  z-index: 1000;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.theme-toggle:hover {
  transform: scale(1.1) rotate(20deg);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

html[data-theme="dark"] .theme-toggle {
  background: #2a2a2a;
  color: #ffffff;
  border-color: #404040;
}

/* 4. STATS SECTION */
.stats-section {
  padding: 80px 10%;
  background: var(--secondary-bg);
  margin: 60px 0;
}

.stats-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 40px;
  max-width: 1200px;
  margin: 0 auto;
}

.stat-card {
  text-align: center;
  padding: 30px;
  background: var(--bg-color);
  border: 2px solid var(--border-color);
  border-radius: 15px;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.stat-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(0, 0, 0, 0.05) 0%, transparent 100%);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.stat-card:hover {
  transform: translateY(-10px);
  border-color: var(--text-color);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
}

.stat-card:hover::before {
  opacity: 1;
}

.stat-number {
  font-size: 3rem;
  font-weight: 800;
  color: var(--text-color);
  margin-bottom: 10px;
  font-family: 'Courier New', monospace;
}

.stat-label {
  font-size: 1.1rem;
  color: var(--gray-color);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
}

html[data-theme="dark"] .stat-card {
  background: #2a2a2a;
  border-color: #404040;
}

html[data-theme="dark"] .stat-card:hover {
  border-color: #ffffff;
  box-shadow: 0 15px 40px rgba(255, 255, 255, 0.1);
}

/* Responsive Stats */
@media (max-width: 768px) {
  .stats-section {
    padding: 60px 5%;
  }

  .stats-container {
    gap: 20px;
  }

  .stat-card {
    padding: 20px;
  }

  .stat-number {
    font-size: 2rem;
  }

  .stat-label {
    font-size: 0.9rem;
  }

  .back-to-top {
    width: 45px;
    height: 45px;
    bottom: 20px;
    right: 20px;
    font-size: 1.2rem;
  }

  .theme-toggle {
    width: 45px;
    height: 45px;
    top: 15px;
    right: 15px;
    font-size: 1rem;
  }
}
