/* ===========================
   CSS VARIABLES
   =========================== */
:root {
  --bg-color: #ffffff;
  --text-color: #333333;
  --text-secondary: #666666;
  --text-light: #555555;
  --navbar-bg: rgba(255, 255, 255, 0.95);
  --card-bg: #ffffff;
  --card-shadow: rgba(0, 0, 0, 0.1);
  --border-color: #f0f0f0;
  --input-bg: #ffffff;
  --section-bg: #ffffff;
  --footer-bg: #f8f9fa;
  --footer-text: #333333;
  --footer-text-light: #666666;
  --primary-color: #2196F3;
  --accent-color: #c41e3a;
}

[data-theme="dark"] {
  --bg-color: #1a1a1a;
  --text-color: #ffffff;
  --text-secondary: #cccccc;
  --text-light: #aaaaaa;
  --navbar-bg: rgba(26, 26, 26, 0.95);
  --card-bg: #2d2d2d;
  --card-shadow: rgba(0, 0, 0, 0.3);
  --border-color: #404040;
  --input-bg: #2d2d2d;
  --section-bg: #1a1a1a;
  --footer-bg: #1a1a1a;
  --footer-text: #ffffff;
  --footer-text-light: #cccccc;
}

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

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background: var(--bg-color);
  color: var(--text-color);
  overflow-x: hidden;
  transition: background-color 0.3s ease, color 0.3s ease;
  line-height: 1.6;
}

/* ===========================
   ACCESSIBILITY
   =========================== */
.skip-link {
  position: absolute;
  top: -40px;
  left: 0;
  background: var(--primary-color);
  color: white;
  padding: 8px 16px;
  text-decoration: none;
  z-index: 9999;
  border-radius: 0 0 4px 0;
}

.skip-link:focus {
  top: 0;
}

/* ===========================
   NAVIGATION
   =========================== */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 8%;
  background: var(--navbar-bg);
  backdrop-filter: blur(10px);
  z-index: 1000;
  box-shadow: 0 2px 20px var(--card-shadow);
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 15px;
}

.mobile-menu {
  display: none;
  background: none;
  border: none;
  font-size: 24px;
  color: var(--text-color);
  cursor: pointer;
  padding: 8px;
}

.logo {
  font-size: 24px;
  font-weight: 700;
  color: var(--text-color);
  letter-spacing: 1px;
}

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

.nav-links {
  display: flex;
  gap: 35px;
  list-style: none;
}

.nav-links a {
  color: var(--text-color);
  text-decoration: none;
  font-size: 16px;
  font-weight: 500;
  transition: all 0.3s ease;
  position: relative;
}

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

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--accent-color);
  transition: width 0.3s ease;
}

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

.theme-toggle {
  background: var(--card-bg);
  border: 2px solid var(--border-color);
  border-radius: 50%;
  width: 45px;
  height: 45px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 2px 10px var(--card-shadow);
}

.theme-toggle:hover {
  background: var(--primary-color);
  border-color: var(--primary-color);
  color: white;
  transform: scale(1.1);
}

.theme-toggle i {
  font-size: 18px;
  color: var(--text-color);
  transition: color 0.3s ease;
}

.theme-toggle:hover i {
  color: white;
}

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

.hero-left {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
}

.profile-img {
  width: 380px;
  height: 380px;
  border-radius: 50%;
  border: 8px solid var(--primary-color);
  object-fit: cover;
  object-position: center;
  transition: transform 0.4s ease;
  box-shadow: 0 10px 40px rgba(33, 150, 243, 0.3);
}

.profile-img:hover {
  transform: scale(1.08);
}

.hero-right {
  flex: 1;
  max-width: 600px;
}

.intro {
  font-size: 18px;
  color: var(--text-secondary);
  margin-bottom: 10px;
}

.typing-container {
  display: inline-block;
  color: var(--primary-color);
  font-weight: 600;
}

.cursor {
  display: inline-block;
  width: 2px;
  height: 20px;
  background: var(--primary-color);
  margin-left: 2px;
  animation: blink 0.7s infinite;
}

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

.hero-name {
  font-size: 62px;
  font-weight: 800;
  color: var(--primary-color);
  margin: 20px 0;
  letter-spacing: 2px;
}

.hero-description {
  font-size: 17px;
  line-height: 1.8;
  color: var(--text-light);
  margin-bottom: 35px;
  text-align: justify;
}

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

.btn {
  padding: 14px 35px;
  border: 2px solid var(--primary-color);
  background: transparent;
  color: var(--text-color);
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.4s ease;
  border-radius: 5px;
  text-decoration: none;
  display: inline-block;
}

.btn:hover {
  background: #e3f2fd;
  box-shadow: 0 0 25px rgba(33, 150, 243, 0.3), 0 0 50px rgba(33, 150, 243, 0.2);
  transform: translateY(-3px);
}

.social-links {
  display: flex;
  gap: 20px;
}

.social-links a {
  color: var(--text-color);
  font-size: 22px;
  transition: all 0.3s ease;
}

.social-links a:hover {
  color: var(--primary-color);
  transform: scale(1.3);
}

/* ===========================
   SECTIONS
   =========================== */
.section {
  min-height: 100vh;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 120px 8% 80px 8%;
  background: var(--section-bg);
  color: var(--text-color);
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.section.animate {
  opacity: 1;
  transform: translateY(0);
}

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

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

.section-title {
  font-size: 36px;
  font-weight: 700;
  color: var(--primary-color);
  margin-bottom: 40px;
  text-align: center;
  letter-spacing: 2px;
}

/* ===========================
   ABOUT SECTION
   =========================== */
.about-content {
  display: flex;
  gap: 40px;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
}

.about-text {
  flex: 1;
  min-width: 280px;
  max-width: 600px;
  font-size: 16px;
  line-height: 1.8;
  color: var(--text-light);
  text-align: justify;
}

.about-text p {
  margin-bottom: 20px;
}

.about-image {
  flex: 1;
  min-width: 280px;
  max-width: 400px;
  display: flex;
  justify-content: center;
}

.about-img {
  width: 100%;
  border-radius: 15px;
  box-shadow: 0 10px 40px rgba(33, 150, 243, 0.3);
  object-fit: cover;
}

/* ===========================
   SKILLS SECTION
   =========================== */
.skills-modern-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 25px;
  margin-top: 40px;
  padding: 20px 0;
}

.skill-item-modern {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 25px 15px;
  background: var(--card-bg);
  border-radius: 15px;
  border: 1px solid var(--border-color);
  transition: all 0.3s ease;
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

.skill-item-modern::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(33, 150, 243, 0.1), transparent);
  transition: left 0.5s ease;
}

.skill-item-modern:hover::before {
  left: 100%;
}

.skill-item-modern:hover {
  transform: translateY(-8px);
  box-shadow: 0 15px 35px var(--card-shadow);
  border-color: var(--primary-color);
}

.skill-item-modern:hover .skill-icon-modern {
  transform: scale(1.2) rotate(5deg);
  color: var(--primary-color);
}

.skill-item-modern:hover .skill-name-modern {
  color: var(--primary-color);
  font-weight: 700;
}

.skill-icon-modern {
  font-size: 40px;
  color: var(--text-secondary);
  margin-bottom: 12px;
  transition: all 0.3s ease;
}

.skill-name-modern {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-color);
  text-align: center;
  transition: all 0.3s ease;
}

/* Specific icon colors */
.skill-item-modern[data-skill="HTML"] .skill-icon-modern {
  color: #e34c26;
}

.skill-item-modern[data-skill="CSS"] .skill-icon-modern {
  color: #1572b6;
}

.skill-item-modern[data-skill="JavaScript"] .skill-icon-modern {
  color: #f7df1e;
}

.skill-item-modern[data-skill="React"] .skill-icon-modern {
  color: #61dafb;
}

.skill-item-modern[data-skill="Node.js"] .skill-icon-modern {
  color: #68a063;
}

.skill-item-modern[data-skill="Python"] .skill-icon-modern {
  color: #3776ab;
}

.skill-item-modern[data-skill="PHP"] .skill-icon-modern {
  color: #777bb4;
}

.skill-item-modern[data-skill="MySQL"] .skill-icon-modern {
  color: #00758f;
}

.skill-item-modern[data-skill="MongoDB"] .skill-icon-modern {
  color: #47a248;
}

.skill-item-modern[data-skill="Git"] .skill-icon-modern {
  color: #f05032;
}

.skill-item-modern[data-skill="GitHub"] .skill-icon-modern {
  color: var(--text-color);
}

.skill-item-modern[data-skill="Machine Learning"] .skill-icon-modern {
  color: #667eea;
}

.skill-item-modern[data-skill="TensorFlow"] .skill-icon-modern {
  color: #ff6f00;
}

.skill-item-modern[data-skill="Data Science"] .skill-icon-modern {
  color: #4CAF50;
}

.skill-item-modern[data-skill="MATLAB"] .skill-icon-modern {
  color: #0076a8;
}

.skill-item-modern[data-skill="Problem Solving"] .skill-icon-modern {
  color: #ffc107;
}

.skill-item-modern[data-skill="Team Work"] .skill-icon-modern {
  color: #28a745;
}

.skill-item-modern[data-skill="Communication"] .skill-icon-modern {
  color: #17a2b8;
}

.skill-item-modern[data-skill="Leadership"] .skill-icon-modern {
  color: #fd7e14;
}

.skill-item-modern[data-skill="Time Management"] .skill-icon-modern {
  color: #6f42c1;
}

.skill-item-modern[data-skill="Critical Thinking"] .skill-icon-modern {
  color: #e83e8c;
}

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

.project-card {
  background: var(--card-bg);
  border-radius: 15px;
  box-shadow: 0 10px 30px var(--card-shadow);
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid var(--border-color);
  cursor: pointer;
}

.project-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.project-image {
  position: relative;
  height: 250px;
  overflow: hidden;
}

.project-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

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

.tech-tags {
  position: absolute;
  top: 15px;
  left: 15px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tech-tag {
  background: var(--primary-color);
  color: white;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  backdrop-filter: blur(10px);
}

.project-content {
  padding: 25px;
}

.project-content h3 {
  font-size: 22px;
  font-weight: 700;
  color: var(--text-color);
  margin-bottom: 15px;
  line-height: 1.3;
}

.project-content p {
  color: var(--text-secondary);
  font-size: 15px;
  line-height: 1.6;
  margin-bottom: 25px;
}

.project-buttons {
  display: flex;
  gap: 15px;
}

.project-btn {
  flex: 1;
  padding: 12px 20px;
  border-radius: 8px;
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  text-align: center;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.demo-btn {
  background: var(--primary-color);
  color: white;
  border: 2px solid var(--primary-color);
}

.demo-btn:hover {
  background: #1976D2;
  border-color: #1976D2;
  transform: translateY(-2px);
}

.source-btn {
  background: transparent;
  color: var(--text-color);
  border: 2px solid var(--border-color);
}

.source-btn:hover {
  background: var(--text-color);
  color: var(--bg-color);
  border-color: var(--text-color);
  transform: translateY(-2px);
}

/* ===========================
   CONTACT SECTION
   =========================== */
.contact-content {
  display: flex;
  gap: 60px;
  flex-wrap: wrap;
  justify-content: center;
}

.contact-info {
  flex: 1;
  min-width: 280px;
  max-width: 400px;
  color: var(--text-light);
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 25px;
  font-size: 16px;
}

.contact-item i {
  font-size: 22px;
  color: var(--primary-color);
}

.social-links-contact {
  display: flex;
  gap: 15px;
  margin-top: 20px;
}

.social-links-contact a {
  color: var(--text-color);
  font-size: 24px;
  transition: all 0.3s ease;
}

.social-links-contact a:hover {
  color: var(--primary-color);
  transform: scale(1.2);
}

.contact-form {
  flex: 1;
  min-width: 280px;
  max-width: 500px;
}

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

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 12px 15px;
  border: 2px solid var(--primary-color);
  border-radius: 8px;
  background: var(--input-bg);
  color: var(--text-color);
  font-size: 15px;
  resize: none;
  transition: border-color 0.3s ease;
  font-family: inherit;
}

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

.contact-form button {
  width: 100%;
  padding: 14px;
  background: var(--primary-color);
  border: none;
  border-radius: 8px;
  color: white;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.4s ease;
}

.contact-form button:hover {
  background: var(--accent-color);
  box-shadow: 0 0 25px rgba(196, 30, 58, 0.4), 0 0 50px rgba(196, 30, 58, 0.2);
  transform: translateY(-3px);
}

/* ===========================
   FOOTER
   =========================== */
.footer {
  background: var(--footer-bg);
  color: var(--footer-text);
  padding: 80px 0;
  margin-top: 80px;
  transition: background-color 0.3s ease, color 0.3s ease;
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 8%;
}

.footer-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 30px;
}

.footer-logo h2 {
  font-size: 48px;
  font-weight: 700;
  color: var(--footer-text);
  margin: 0;
  letter-spacing: 2px;
}

.footer-nav {
  display: flex;
  gap: 40px;
  flex-wrap: wrap;
  justify-content: center;
}

.footer-nav a {
  color: var(--footer-text-light);
  text-decoration: none;
  font-size: 18px;
  font-weight: 500;
  transition: color 0.3s ease;
}

.footer-nav a:hover {
  color: var(--primary-color);
}

.footer-social {
  display: flex;
  gap: 25px;
  justify-content: center;
}

.footer-social a {
  color: var(--footer-text-light);
  font-size: 24px;
  transition: all 0.3s ease;
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(128, 128, 128, 0.1);
}

.footer-social a:hover {
  color: var(--primary-color);
  background: rgba(33, 150, 243, 0.2);
  transform: translateY(-3px);
}

.footer-bottom {
  margin-top: 20px;
}

.footer-bottom p {
  color: var(--footer-text-light);
  font-size: 16px;
  margin: 0;
}

/* ===========================
   RESPONSIVE DESIGN
   =========================== */

/* Mobile First Approach - Default styles for mobile */
@media (max-width: 768px) {
  .navbar {
    padding: 15px 5%;
    justify-content: space-between;
  }

  .logo {
    font-size: 20px;
    font-weight: 700;
  }

  /* Hide navigation links on mobile, show hamburger menu */
  .nav-links {
    position: fixed;
    top: 70px;
    left: -100%;
    width: 100%;
    height: calc(100vh - 70px);
    background: var(--navbar-bg);
    backdrop-filter: blur(10px);
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    padding-top: 50px;
    gap: 30px;
    transition: left 0.3s ease;
    z-index: 999;
  }

  .nav-links.mobile-active {
    left: 0;
  }

  .nav-links li {
    list-style: none;
  }

  .nav-links a {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-color);
    text-decoration: none;
    padding: 10px 20px;
    border-radius: 8px;
    transition: all 0.3s ease;
  }

  .nav-links a:hover,
  .nav-links a.active {
    background: var(--primary-color);
    color: white;
  }

  /* Mobile hamburger menu */
  .mobile-menu {
    display: block;
    background: none;
    border: none;
    font-size: 24px;
    color: var(--text-color);
    cursor: pointer;
  }

  .theme-toggle {
    width: 40px;
    height: 40px;
  }

  .theme-toggle i {
    font-size: 16px;
  }

  /* Mobile Hero Section */
  .hero {
    flex-direction: column;
    text-align: center;
    padding: 120px 5% 60px 5%;
    min-height: 100vh;
    justify-content: center;
    gap: 40px;
  }

  .hero-left {
    order: 1;
  }

  .hero-right {
    order: 2;
    max-width: 100%;
  }

  .profile-img {
    width: 200px;
    height: 200px;
    border: 4px solid var(--primary-color);
    box-shadow: 0 8px 30px rgba(33, 150, 243, 0.3);
  }

  .intro {
    font-size: 18px;
    margin-bottom: 15px;
    color: var(--text-color);
  }

  .hero-name {
    font-size: 32px;
    margin: 15px 0 20px 0;
    line-height: 1.2;
  }

  .hero-description {
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-secondary);
    margin-bottom: 30px;
    text-align: center;
    max-width: 350px;
    margin-left: auto;
    margin-right: auto;
  }

  .hero-buttons {
    flex-direction: column;
    gap: 15px;
    width: 100%;
    max-width: 300px;
    margin: 0 auto 30px auto;
  }

  .btn {
    width: 100%;
    padding: 16px 24px;
    font-size: 16px;
    font-weight: 600;
    border-radius: 25px;
    text-align: center;
  }

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

  .btn:first-child:hover {
    background: var(--primary-color);
    color: white;
  }

  .btn:last-child {
    background: var(--primary-color);
    border: 2px solid var(--primary-color);
    color: white;
  }

  .btn:last-child:hover {
    background: #1976D2;
    border-color: #1976D2;
  }

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

  .social-links a {
    font-size: 24px;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(33, 150, 243, 0.1);
    transition: all 0.3s ease;
  }

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

  /* Mobile Sections */
  .section {
    padding: 80px 5% 60px 5%;
    min-height: auto;
  }

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

  /* Mobile About Section */
  .about-content {
    flex-direction: column;
    text-align: center;
    gap: 30px;
  }

  .about-text {
    max-width: 100%;
    font-size: 15px;
    line-height: 1.7;
  }

  .about-image {
    max-width: 250px;
  }

  /* Mobile Skills Section */
  .skills-modern-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    margin-top: 30px;
  }

  .skill-item-modern {
    padding: 20px 10px;
    border-radius: 12px;
  }

  .skill-icon-modern {
    font-size: 32px;
    margin-bottom: 8px;
  }

  .skill-name-modern {
    font-size: 12px;
    line-height: 1.2;
  }

  /* Mobile Projects Section */
  .projects-grid {
    grid-template-columns: 1fr;
    gap: 25px;
    margin-top: 30px;
  }

  .project-card {
    margin: 0;
    border-radius: 12px;
  }

  .project-image {
    height: 200px;
  }

  .project-content {
    padding: 20px;
  }

  .project-content h3 {
    font-size: 20px;
    margin-bottom: 12px;
  }

  .project-content p {
    font-size: 14px;
    margin-bottom: 20px;
  }

  .project-buttons {
    flex-direction: column;
    gap: 10px;
  }

  .project-btn {
    padding: 12px 16px;
    font-size: 14px;
    border-radius: 8px;
  }

  /* Mobile Contact Section */
  .contact-content {
    flex-direction: column;
    gap: 40px;
    text-align: center;
  }

  .contact-info {
    max-width: 100%;
  }

  .contact-item {
    justify-content: center;
    font-size: 15px;
    margin-bottom: 20px;
  }

  .contact-item i {
    font-size: 20px;
  }

  .social-links-contact {
    justify-content: center;
    gap: 20px;
  }

  .social-links-contact a {
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(33, 150, 243, 0.1);
    font-size: 20px;
  }

  .social-links-contact a:hover {
    background: var(--primary-color);
    color: white;
  }

  .contact-form {
    max-width: 100%;
  }

  .form-group input,
  .form-group textarea {
    padding: 14px 16px;
    font-size: 16px;
    border-radius: 10px;
  }

  .contact-form button {
    padding: 16px;
    font-size: 16px;
    border-radius: 10px;
  }

  /* Mobile Footer */
  .footer {
    padding: 60px 0 40px 0;
  }

  .footer-content {
    gap: 25px;
  }

  .footer-logo h2 {
    font-size: 28px;
  }

  .footer-nav {
    flex-direction: column;
    gap: 15px;
  }

  .footer-nav a {
    font-size: 16px;
  }

  .footer-social {
    gap: 20px;
  }

  .footer-social a {
    width: 45px;
    height: 45px;
    font-size: 18px;
  }

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

/* Extra small mobile devices */
@media (max-width: 480px) {
  .hero {
    padding: 100px 4% 50px 4%;
  }

  .profile-img {
    width: 180px;
    height: 180px;
  }

  .intro {
    font-size: 16px;
  }

  .hero-name {
    font-size: 28px;
  }

  .hero-description {
    font-size: 15px;
    max-width: 320px;
  }

  .hero-buttons {
    max-width: 280px;
  }

  .btn {
    padding: 14px 20px;
    font-size: 15px;
  }

  .social-links a {
    width: 45px;
    height: 45px;
    font-size: 20px;
  }

  .section {
    padding: 60px 4% 50px 4%;
  }

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

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

  .skill-item-modern {
    padding: 16px 8px;
  }

  .skill-icon-modern {
    font-size: 28px;
  }

  .skill-name-modern {
    font-size: 11px;
  }

  .footer-logo h2 {
    font-size: 24px;
  }
}

/* Tablet and larger screens */
@media (min-width: 769px) {
  .mobile-menu {
    display: none;
  }

  .nav-links {
    display: flex;
  }
}

@media (max-width: 1024px) and (min-width: 769px) {
  .hero {
    flex-direction: column;
    text-align: center;
    padding: 120px 5%;
  }

  .hero-right {
    max-width: 100%;
  }

  .profile-img {
    width: 320px;
    height: 320px;
  }

  .hero-name {
    font-size: 48px;
  }

  .hero-description {
    text-align: center;
  }

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

  .social-links {
    justify-content: center;
  }

  .about-content,
  .contact-content {
    flex-direction: column;
    align-items: center;
  }

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