:root {
  --color-white: #ffffff;
  --color-dark: #000000;
  --color-light: #212121;
  --color-lime: #d3e97a;
  --color-lime-light: #e4f4a3;
  --color-darkgreen: #006400;
  --color-lightgreen: #90ee90;
  --color-border-light: #444444;

  /* Fonts */
  --font-primary: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto,
    'Helvetica Neue', Arial, sans-serif;
  --font-secondary: Georgia, 'Times New Roman', serif;
  --font-mono: 'Monaco', 'Courier New', monospace;
  --font-ubuntu: 'Ubuntu', sans-serif;
  --font-display: 'Playfair Display', serif;

  /* Container Max Widths */
  --container-sm: 640px;
  --container-md: 768px;
  --container-lg: 1024px;
  --container-xl: 1280px;
  --container-2xl: 1536px;

  /* Font Sizes */
  --text-xs: 0.75rem;
  --text-sm: 0.875rem;
  --text-base: 1rem;
  --text-lg: 1.125rem;
  --text-xl: 1.25rem;
  --text-2xl: 1.5rem;
  --text-3xl: 1.875rem;
  --text-4xl: 2.25rem;
  --text-5xl: 2.75rem;
  --text-6xl: 3rem;
  --text-7xl: 3.25rem;

  /* Font Weights */
  --font-light: 300;
  --font-normal: 400;
  --font-medium: 500;
  --font-semibold: 600;
  --font-bold: 700;
  --font-extrabold: 800;

  /* Spacing */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.25rem;
  --space-6: 1.5rem;
  --space-8: 2rem;
  --space-10: 2.5rem;
  --space-12: 3rem;
  --space-16: 4rem;
  --space-20: 5rem;
  --space-24: 6rem;

  /* Border Radius */
  --radius-sm: 0.25rem;
  --radius-md: 0.375rem;
  --radius-lg: 0.5rem;
  --radius-xl: 0.75rem;
  --radius-2xl: 1rem;
  --radius-full: 9999px;

  /* Shadows */
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1),
    0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1),
    0 4px 6px -2px rgba(0, 0, 0, 0.05);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1),
    0 10px 10px -5px rgba(0, 0, 0, 0.04);
  --shadow-2xl: 0 25px 50px -12px rgba(0, 0, 0, 0.25);

  /* Transitions */
  --transition-fast: 150ms ease-in-out;
  --transition-base: 200ms ease-in-out;
  --transition-slow: 300ms ease-in-out;

  /* Z-index Scale */
  --z-dropdown: 1000;
  --z-sticky: 1020;
  --z-fixed: 1030;
  --z-modal-backdrop: 1040;
  --z-modal: 1050;
  --z-popover: 1060;
  --z-tooltip: 1070;
}

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

html {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  line-height: 1.6;
  font-family: var(--font-ubuntu);
  color: var(--color-white);
  background-color: var(--color-dark);
}

/* ==== Common Classes start */
.container {
  width: 90%;
  max-width: var(--container-xl);
  margin: 0 auto;
}

/* === Button === */
button {
  cursor: pointer;
  border: none;
  background: none;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-3) var(--space-8);
  font-weight: var(--font-normal);
  border-radius: var(--radius-full);
  transition: all var(--transition-base);
  cursor: pointer;
  font-family: var(--font-ubuntu);
  text-decoration: none;
  border: none;
  font-size: var(--text-xs);
}

.btn-primary {
  background-color: var(--color-dark);
  color: var(--color-white);
  box-shadow: var(--shadow-md);
}

.btn-primary:hover {
  transform: translateY(-2px);
  border: 2px solid var(--color-lime);
  box-shadow: 0px 0px 15px var(--color-lime),
    0px 0px 5px var(--color-lime) inset;
}

.btn-primary:focus-visible {
  outline: 2px solid var(--color-lightgreen);
  outline-offset: 2px;
}

/* ======= */
img,
picture,
video,
canvas,
svg {
  display: block;
  max-width: 100%;
  height: auto;
}

/* ====== */
p,
h1,
h2,
h3,
h4,
h5,
h6 {
  overflow-wrap: break-word;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-weight: var(--font-bold);
  line-height: 1.2;
  margin-bottom: var(--space-6);
}

h1 {
  font-size: var(--text-4xl);
}
h2 {
  font-size: var(--text-3xl);
}
h3 {
  font-size: var(--text-2xl);
}
h4 {
  font-size: var(--text-xl);
}
h5 {
  font-size: var(--text-lg);
}
h6 {
  font-size: var(--text-base);
}

p {
  margin-bottom: var(--space-6);
}

a {
  color: var(--color-lightgreen);
  text-decoration: none;
  transition: color var(--transition-base);
}

ul, ol {
  list-style-position: inside;
  margin-bottom: var(--space-6);
}

ul li, ol li {
  margin-bottom: var(--space-2);
}

#common-section {
  padding: var(--space-4) 0;
}

/* ==== Common Classes End*/
/* === Natural Coding Start */
/* == Header == */
header {
  position: sticky;
  top: 0;
  z-index: var(--z-sticky);
  background-color: var(--color-dark);
  padding: var(--space-4) 0;
}

#head-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: var(--color-light);
  color: var(--color-white);
  border-radius: var(--radius-lg);
  padding: var(--space-3) var(--space-6);
  box-shadow: var(--shadow-sm);
}

#nav-menu {
  display: flex;
  align-items: center;
  gap: var(--space-6);
}

#nav-menu a {
  font-family: var(--font-ubuntu);
  font-weight: var(--font-medium);
  color: var(--color-white);
  transition: color var(--transition-base);
  display: flex;
  align-items: center;
  position: relative;
  padding: 0 var(--space-4);
}

#nav-menu a:hover {
  color: var(--color-lime);
}

#nav-menu a:focus-visible {
  outline: 2px solid var(--color-light);
  outline-offset: 4px;
  border-radius: var(--radius-sm);
}
#head-container #nav-menu .arrow i{
    color: var(--color-lime);
    font-weight: var(--font-bold);
    font-size: var(--text-xl);
}

/* Mobile Menu Button */
.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  color: var(--color-dark);
  font-size: var(--text-2xl);
  cursor: pointer;
  padding: var(--space-2);
}

.mobile-menu-btn:focus-visible {
  outline: 2px solid var(--color-darkgreen);
  outline-offset: 2px;
  border-radius: var(--radius-sm);
}

/* Projects Dropdown */
.dropdown {
  position: relative;
}

.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  margin-top: var(--space-2);
  background-color: var(--color-light);
  border: 1px solid var(--color-lime-light);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  min-width: 200px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: all var(--transition-base);
  z-index: var(--z-dropdown);
  padding: var(--space-3) 0;
}

.dropdown:hover .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown-menu a {
  display: block;
  padding: var(--space-3) var(--space-6);
  color: var(--color-white);
  border-bottom: 1px solid var(--color-border-light);
}

.dropdown-menu a:last-child {
  border-bottom: none;
}

.dropdown-menu a:hover {
  background-color: var(--color-dark);
  color: var(--color-lime);
}

.btn-cv {
  border: 3px solid var(--color-border-light);
  box-shadow: 0px 0px 15px var(--color-border-light),
    0px 0px 10px var(--color-border-light) inset;
}

/* == Hero Section Start */
#hero-section {
  background-color: var(--color-dark);
  color: var(--color-white);
  padding: var(--space-12);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--space-12);
  border: 1px solid var(--color-border-light);
  box-shadow: 0px 0px 15px var(--color-border-light),
    0px 0px 10px var(--color-border-light) inset;
  border-radius: var(--radius-lg);
}

.btn-hire {
  background-color: var(--color-dark);
  border: 3px solid var(--color-border-light);
  box-shadow: 0px 0px 15px var(--color-border-light),
    0px 0px 10px var(--color-border-light) inset;
  border-radius: var(--radius-lg);
  max-width: 150px;
  font-size: var(--text-base);
  margin-bottom: var(--space-8);
}

#hero-content {
  display: flex;
  flex-direction: column;
  flex: 1;
}

#hero-content h1 {
  color: var(--color-light);
  font-family: var(--font-display);
  font-size: var(--text-7xl);
}

#hero-content h1 span {
  color: var(--color-white);
  font-family: var(--font-display);
  text-shadow: rgb(71, 71, 71) 3px 5px 2px;
}

#hero-content p {
  font-size: 1rem;
}

/* == image == */
#hero-image {
  flex-shrink: 0;
}

#hero-image img {
  width: 100%;
  max-width: 400px;
  height: auto;
  box-shadow: var(--shadow-2xl);
  object-fit: cover;
}

.social-links {
  display: flex;
  gap: var(--space-6);
}

.social-links a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  color: var(--color-white);
  transition: all var(--transition-base);
  font-size: var(--text-lg);
}

.social-links a:hover {
  transform: translateY(-3px);
  background-color: var(--color-light);
  color: var(--color-white);
  border-radius: var(--radius-full);
  border: 2px solid var(--color-lime);
  box-shadow: 0px 0px 15px var(--color-lime),
    0px 0px 5px var(--color-lime) inset;
}

.social-links a:focus-visible {
  outline: 2px solid var(--color-light);
  color: var(--color-white);
  outline-offset: 2px;
}

/* == Hero Section End */
/* === About Section start */
#about-section {
  display: flex;
  flex-direction: column;
  gap: var(--space-6);
  border: 1px solid var(--color-border-light);
  box-shadow: 0px 0px 15px var(--color-border-light),
    0px 0px 10px var(--color-border-light) inset;
  border-radius: var(--radius-lg);
  padding: var(--space-6);
}

#about-section .about-me {
  display: flex;
  flex-direction: column;
  background-color: var(--color-light);
  color: var(--color-white);
  font-family: var(--font-display);
  border-radius: var(--radius-md);
  padding: var(--space-6) var(--space-12);
  
}
#about-section .about-me h2{
    font-size: var(--text-5xl);
}

#about-section .middle-section {
  display: flex;
  gap: var(--space-6);
  justify-content: space-between;
}

#about-section .middle-section .Certificates,
#about-section .middle-section .Education {
  flex: 1;
  background-color: var(--color-light);
  color: var(--color-white);
  border-radius: var(--radius-md);
  padding: var(--space-6) var(--space-12);
}
#about-section .middle-section .Certificates ul li,
#about-section .middle-section .Education ul li {
  margin-bottom: var(--space-2);
}
#about-section .middle-section .Certificates h4,
#about-section .middle-section .Education h4{
  font-size: var(--text-2xl);
}

#about-section .Skills {
  padding: var(--space-6) var(--space-12);
  background-color: var(--color-light);
  border-radius: var(--radius-md);
  cursor: pointer;
}

#about-section .Skills .skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: var(--space-6);
}

#about-section .Skills .skills-grid .skill-item {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: var(--space-4);
  background-color: var(--color-dark);
  color: var(--color-white);
  padding: var(--space-6);
  border-radius: var(--radius-md);
  transition: all var(--transition-base);
}

#about-section .Skills .skills-grid .skill-item:hover {
  transform: translateY(-5px);
  box-shadow: 0px 0px 15px var(--color-lime),
    0px 0px 5px var(--color-lime) inset;
   
}
#about-section .Skills  h4{
     font-size: var(--text-2xl);
}
#about-section .Skills .skills-grid .skill-item h5 {
  font-size: var(--text-sm);
  text-align: center;
  margin-bottom: 0;
}

#about-section .Skills .skills-grid .skill-item img {
  width: 48px;
  height: 48px;
}

/* === About Section End */
/* === Project Section Start */
/* === Projects Section Start === */
#project-container {
  display: flex;
  flex-direction: column;
  gap: var(--space-12);
  border: 1px solid var(--color-border-light);
  box-shadow: 0px 0px 15px var(--color-border-light),
    0px 0px 10px var(--color-border-light) inset;
  border-radius: var(--radius-lg);
  padding: var(--space-6) var(--space-12);
  background-color: var(--color-light);
}

#project-container h2 {
  text-align: start;
  font-family: var(--font-display);
  font-size: var(--text-5xl);
  color: var(--color-white);
  margin-bottom: var(--space-4);
}

#development-projects,
#design-projects {
  display: flex;
  flex-direction: column;
  gap: var(--space-6);
}

#development-projects h4,
#design-projects h4 {
  font-family: var(--font-ubuntu);
  font-size: var(--text-2xl);
  color: var(--color-white);
  margin-bottom: var(--space-4);
  padding-bottom: var(--space-3);
  border-bottom: 2px solid var(--color-lime);
}

#devProjects-img {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--space-8);
}

#devProjects-img > div {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background-color: var(--color-dark);
  box-shadow: var(--shadow-lg);
  transition: all var(--transition-slow);
  cursor: pointer;
}

#devProjects-img > div:hover {
  transform: translateY(-10px);
  box-shadow: 0px 0px 5px var(--color-lime),
    0px 0px 5px var(--color-lime) inset;
}

#devProjects-img img {
  width: 100%;
  height: 250px;
  object-fit: cover;
  display: block;
  transition: all var(--transition-slow);
}

#devProjects-img > div:hover img {
  transform: scale(1.05);
  opacity: 0.8;
}

#devProjects-img h5 {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.9), transparent);
  color: var(--color-white);
  padding: var(--space-6) var(--space-4);
  margin: 0;
  font-size: var(--text-lg);
  font-weight: var(--font-semibold);
  text-align: center;
  transition: all var(--transition-base);
}

#devProjects-img > div:hover h5 {
  background: linear-gradient(to top, var(--color-lime), transparent);
  color: var(--color-dark);
}

/* === Projects Section End === */

/* === Contact Section Start === */
#contact-section {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--color-border-light);
  box-shadow: 0px 0px 15px var(--color-border-light),
    0px 0px 10px var(--color-border-light) inset;
  border-radius: var(--radius-lg);
  padding: var(--space-12);
  background-color: var(--color-light);
}

#contact-section h2 {
  align-self: flex-start;
  font-family: var(--font-display);
  font-size: var(--text-5xl);
  color: var(--color-white);
  margin-bottom: var(--space-8);
}

.contact-icon {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--space-6);
  width: 100%;
}

.contact-email {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  background-color: var(--color-dark);
  padding: var(--space-4) var(--space-8);
  border-radius: var(--radius-full);
  border: 2px solid var(--color-border-light);
  transition: all var(--transition-base);
}

.contact-email:hover {
  border-color: var(--color-lime);
  box-shadow: 0px 0px 15px var(--color-lime),
    0px 0px 5px var(--color-lime) inset;
}

.contact-email i {
  font-size: var(--text-2xl);
  color: var(--color-lime);
}

.contact-email h4 {
  font-size: var(--text-base);
  font-weight: var(--font-medium);
  color: var(--color-white);
  margin: 0;
}

.icon-others {
  display: flex;
  gap: var(--space-6);
}

.icon-others i {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 50px;
  height: 50px;
  font-size: var(--text-2xl);
  color: var(--color-white);
  background-color: var(--color-dark);
  border-radius: var(--radius-full);
  border: 2px solid var(--color-border-light);
  transition: all var(--transition-base);
  cursor: pointer;
}

.icon-others i:hover {
  transform: translateY(-5px) scale(1.1);
  background-color: var(--color-light);
  border-color: var(--color-lime);
  color: var(--color-lime);
  box-shadow: 0px 0px 15px var(--color-lime),
    0px 0px 5px var(--color-lime) inset;
}

/* === Contact Section End === */

/* === Footer Start === */
footer {
  
  /* border-top: 2px solid var(--color-border-light); */
  padding: var(--space-8) 0;
  margin-top: var(--space-12);
}

.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--space-4);
  
  background-color: var(--color-light);
  color: var(--color-white);
  border-radius: var(--radius-lg);
  padding: var(--space-6) var(--space-12);
  box-shadow: var(--shadow-sm);
}

.footer-content p {
  font-size: var(--text-sm);
  color: var(--color-white);
  margin: 0;
}

.footer-content p:last-child {
  color: var(--color-lime-light);
  font-weight: var(--font-medium);
}

/* === Footer End === */

/* === Responsive Design for Projects, Contact & Footer === */
/* ===== Responsive Design ===== */

/* === Large Laptops & Desktops (1200px and above) === */
@media (min-width: 1200px) {
  .container {
    max-width: var(--container-xl);
  }
  
  #hero-content h1 {
    font-size: var(--text-6xl);
  }
}

/* === Laptops & Small Desktops (992px to 1199px) === */
@media (max-width: 1199px) and (min-width: 992px) {
  .container {
    max-width: var(--container-lg);
  }
  
  #hero-section {
    padding: var(--space-8);
    gap: var(--space-8);
  }
  
  #hero-content h1 {
    font-size: var(--text-5xl);
  }
  
  #hero-image img {
    max-width: 350px;
  }
  
  #about-section .about-me,
  #about-section .middle-section .Certificates,
  #about-section .middle-section .Education,
  #about-section .Skills {
    padding: var(--space-6) var(--space-8);
  }
  
  #project-container,
  #contact-section,
  .footer-content {
    padding: var(--space-6) var(--space-8);
  }
}

/* === Tablets (768px to 991px) === */
@media (max-width: 991px) and (min-width: 768px) {
  .container {
    max-width: var(--container-md);
  }
  
  /* Hero Section */
  #hero-section {
    flex-direction: column;
    text-align: center;
    padding: var(--space-6);
    gap: var(--space-6);
  }
  
  #hero-content h1 {
    font-size: var(--text-4xl);
  }
  
  #hero-image {
    order: -1;
  }
  
  #hero-image img {
    max-width: 300px;
    margin: 0 auto;
  }
  
  .social-links {
    justify-content: center;
  }
  
  /* About Section */
  #about-section .middle-section {
    flex-direction: column;
    gap: var(--space-4);
  }
  
  #about-section .about-me,
  #about-section .middle-section .Certificates,
  #about-section .middle-section .Education,
  #about-section .Skills {
    padding: var(--space-5) var(--space-6);
  }
  
  #about-section .Skills .skills-grid {
    grid-template-columns: repeat(4, 1fr);
  }
  
  /* Projects Section */
  #devProjects-img {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-6);
  }
  
  /* Contact Section */
  .contact-icon {
    flex-direction: column;
    gap: var(--space-8);
    text-align: center;
  }
  
  .contact-email {
    padding: var(--space-3) var(--space-6);
  }
}

/* === Mobile Phones (576px to 767px) === */
@media (max-width: 767px) and (min-width: 576px) {
  .container {
    max-width: 100%;
    padding: 0 var(--space-4);
  }
  
  /* Header */
  #head-container {
    flex-wrap: wrap;
    justify-content: center;
    gap: var(--space-4);
    text-align: center;
  }
  
  #nav-menu {
    order: 3;
    width: 100%;
    justify-content: center;
    flex-wrap: wrap;
    gap: var(--space-4);
  }
  
  .dropdown-menu {
    position: static;
    box-shadow: none;
    border: none;
    background: transparent;
    padding-left: var(--space-4);
    margin-top: 0;
  }
  
  /* Hero Section */
  #hero-section {
    padding: var(--space-4);
    margin: var(--space-2) 0;
  }
  
  #hero-content h1 {
    font-size: var(--text-3xl);
    line-height: 1.1;
  }
  
  #hero-content p {
    font-size: var(--text-sm);
  }
  
  .btn-hire {
    padding: var(--space-2) var(--space-6);
    font-size: var(--text-sm);
    margin-bottom: var(--space-6);
  }
  
  .social-links {
    gap: var(--space-4);
  }
  
  .social-links a {
    width: 35px;
    height: 35px;
    font-size: var(--text-base);
  }
  
  /* About Section */
  #about-section {
    padding: var(--space-4);
    gap: var(--space-4);
  }
  
  #about-section .about-me h2,
  #project-container h2,
  #contact-section h2 {
    font-size: var(--text-3xl);
  }
  
  #about-section .middle-section .Certificates h4,
  #about-section .middle-section .Education h4,
  #about-section .Skills h4,
  #development-projects h4,
  #design-projects h4 {
    font-size: var(--text-xl);
  }
  
  #about-section .Skills .skills-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-4);
  }
  
  #about-section .Skills .skills-grid .skill-item {
    padding: var(--space-4);
  }
  
  #about-section .Skills .skills-grid .skill-item img {
    width: 32px;
    height: 32px;
  }
  
  /* Projects Section */
  #project-container {
    padding: var(--space-4);
    gap: var(--space-8);
  }
  
  #devProjects-img {
    grid-template-columns: 1fr;
    gap: var(--space-4);
  }
  
  #devProjects-img img {
    height: 200px;
  }
  
  /* Contact Section */
  #contact-section {
    padding: var(--space-6) var(--space-4);
  }
  
  .contact-email {
    padding: var(--space-3) var(--space-4);
    width: 100%;
    justify-content: center;
  }
  
  .contact-email h4 {
    font-size: var(--text-sm);
  }
  
  .icon-others {
    flex-wrap: wrap;
    justify-content: center;
    gap: var(--space-3);
  }
  
  .icon-others i {
    width: 40px;
    height: 40px;
    font-size: var(--text-xl);
  }
  
  /* Footer */
  .footer-content {
    flex-direction: column;
    text-align: center;
    gap: var(--space-3);
    padding: var(--space-4);
  }
}

/* === Small Mobile Phones (up to 575px) === */
@media (max-width: 575px) {
  .container {
    width: 95%;
    padding: 0 var(--space-3);
  }
  
  /* Header */
  #head-container {
    flex-direction: column;
    gap: var(--space-3);
    padding: var(--space-3);
  }
  
  #nav-btn {
    order: 1;
  }
  
  #nav-menu {
    order: 2;
    flex-direction: column;
    width: 100%;
    gap: var(--space-2);
    align-items: stretch;
  }
  
  #nav-menu a {
    padding: var(--space-2) var(--space-3);
    justify-content: center;
    border-bottom: 1px solid var(--color-border-light);
  }
  
  #nav-menu a:last-child {
    border-bottom: none;
  }
  
  .dropdown-menu {
    position: static;
    display: block;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    border: none;
    background: transparent;
    padding-left: var(--space-4);
    margin: var(--space-2) 0;
  }
  
  .dropdown-menu a {
    padding: var(--space-2) var(--space-3);
    font-size: var(--text-sm);
  }
  
  /* Hero Section */
  #common-section {
    padding: var(--space-2) 0;
  }
  
  #hero-section {
    padding: var(--space-4) var(--space-3);
    gap: var(--space-4);
  }
  
  #hero-content h1 {
    font-size: var(--text-2xl);
    margin-bottom: var(--space-3);
  }
  
  #hero-content h1 span {
    font-size: var(--text-3xl);
  }
  
  #hero-content p {
    font-size: var(--text-xs);
    margin-bottom: var(--space-4);
  }
  
  #hero-image img {
    max-width: 220px;
  }
  
  .btn-hire {
    padding: var(--space-2) var(--space-4);
    font-size: var(--text-xs);
    margin-bottom: var(--space-4);
    width: 100%;
    max-width: none;
  }
  
  .social-links {
    justify-content: center;
    gap: var(--space-3);
  }
  
  .social-links a {
    width: 30px;
    height: 30px;
    font-size: var(--text-sm);
  }
  
  /* About Section */
  #about-section {
    padding: var(--space-3);
    gap: var(--space-3);
  }
  
  #about-section .about-me h2,
  #project-container h2,
  #contact-section h2 {
    font-size: var(--text-2xl);
    margin-bottom: var(--space-3);
  }
  
  #about-section .about-me,
  #about-section .middle-section .Certificates,
  #about-section .middle-section .Education,
  #about-section .Skills {
    padding: var(--space-4) var(--space-3);
  }
  
  #about-section .middle-section .Certificates h4,
  #about-section .middle-section .Education h4,
  #about-section .Skills h4 {
    font-size: var(--text-lg);
    margin-bottom: var(--space-3);
  }
  
  #about-section .Skills .skills-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-3);
  }
  
  #about-section .Skills .skills-grid .skill-item {
    padding: var(--space-3);
  }
  
  #about-section .Skills .skills-grid .skill-item img {
    width: 28px;
    height: 28px;
  }
  
  #about-section .Skills .skills-grid .skill-item h5 {
    font-size: var(--text-xs);
  }
  
  /* Projects Section */
  #project-container {
    padding: var(--space-3);
    gap: var(--space-6);
  }
  
  #development-projects h4,
  #design-projects h4 {
    font-size: var(--text-lg);
    margin-bottom: var(--space-3);
  }
  
  #devProjects-img {
    gap: var(--space-3);
  }
  
  #devProjects-img img {
    height: 180px;
  }
  
  #devProjects-img h5 {
    padding: var(--space-3) var(--space-2);
    font-size: var(--text-base);
  }
  
  /* Contact Section */
  #contact-section {
    padding: var(--space-4) var(--space-3);
  }
  
  .contact-icon {
    flex-direction: column;
    gap: var(--space-4);
  }
  
  .contact-email {
    flex-direction: column;
    gap: var(--space-2);
    text-align: center;
    padding: var(--space-3);
    width: 100%;
  }
  
  .contact-email i {
    font-size: var(--text-xl);
  }
  
  .contact-email h4 {
    font-size: var(--text-xs);
  }
  
  .icon-others {
    gap: var(--space-2);
  }
  
  .icon-others i {
    width: 35px;
    height: 35px;
    font-size: var(--text-lg);
  }
  
  /* Footer */
  footer {
    margin-top: var(--space-6);
    padding: var(--space-4) 0;
  }
  
  .footer-content {
    padding: var(--space-3);
    gap: var(--space-2);
  }
  
  .footer-content p {
    font-size: var(--text-xs);
  }
}

/* === Ultra Small Devices (up to 360px) === */
@media (max-width: 360px) {
  #hero-content h1 {
    font-size: var(--text-xl);
  }
  
  #hero-content h1 span {
    font-size: var(--text-2xl);
  }
  
  #hero-content p {
    font-size: 0.75rem;
  }
  
  #about-section .Skills .skills-grid {
    grid-template-columns: 1fr;
  }
  
  .icon-others {
    gap: var(--space-1);
  }
  
  .icon-others i {
    width: 30px;
    height: 30px;
    font-size: var(--text-base);
  }
}

/* === Print Styles === */
@media print {
  /* Hide non-essential elements */
  .btn,
  .social-links,
  .icon-others,
  footer {
    display: none !important;
  }
  
  /* Optimize for printing */
  body {
    color: #000 !important;
    background: #fff !important;
    font-size: 12pt !important;
  }
  
  #hero-section,
  #about-section,
  #project-container,
  #contact-section {
    border: none !important;
    box-shadow: none !important;
    background: transparent !important;
    padding: 0 !important;
    margin: 0 !important;
  }
  
  .container {
    max-width: 100% !important;
    width: 100% !important;
  }
  
  /* Ensure images don't print */
  img {
    filter: grayscale(100%);
    max-width: 50% !important;
  }
  
  /* Page breaks */
  #common-section {
    page-break-inside: avoid;
  }
}

/* === Landscape Mode for Mobile === */
@media (max-height: 500px) and (orientation: landscape) {
  #hero-section {
    flex-direction: row;
    padding: var(--space-3);
    gap: var(--space-4);
  }
  
  #hero-content h1 {
    font-size: var(--text-2xl);
    margin-bottom: var(--space-2);
  }
  
  #hero-content p {
    font-size: var(--text-xs);
    margin-bottom: var(--space-2);
    line-height: 1.3;
  }
  
  #hero-image img {
    max-width: 200px;
  }
  
  .social-links {
    gap: var(--space-2);
  }
  
  .social-links a {
    width: 25px;
    height: 25px;
    font-size: var(--text-xs);
  }
}

/* === Accessibility: Reduced Motion === */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  
  #hero-image img,
  #devProjects-img > div,
  .skill-item,
  .social-links a,
  .icon-others i {
    transition: none !important;
    transform: none !important;
  }
}

/* === Dark Mode Support (if you want to add) === */
@media (prefers-color-scheme: dark) {
  /* Your dark mode styles will automatically work since your theme is dark */
  /* Add any adjustments here if needed */
}

/* === High Contrast Mode === */
@media (prefers-contrast: high) {
  :root {
    --color-border-light: #fff;
    --color-lime: #fff;
  }
  
  .btn-primary {
    border: 2px solid #fff;
  }
}