/* Base Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
  }
  body {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    transition: background 0.3s, color 0.3s;
  }
  a {
    text-decoration: none;
    color: inherit;
  }
  ul {
    list-style: none;
  }
  
  /* NAVIGATION */
  nav {
    position: fixed;
    top: 0;
    width: 100%;
    background: #fff;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 40px;
  }
  nav .logo {
    font-size: 1.8em;
    font-weight: bold;
    flex: 1;
  }
  nav .logo a {
    background: linear-gradient(45deg, #ff6600, #ff8533);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
  }
  nav .logo a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: #ff6600;
    transition: width 0.3s ease;
  }
  nav .logo a:hover::after {
    width: 100%;
  }
  nav ul {
    display: flex;
    gap: 20px;
    margin-right: 30px;
    flex: 2;
    justify-content: flex-end;
  }
  nav ul li {
    margin: 0;
  }
  nav ul li a {
    padding: 8px 12px;
    border-radius: 4px;
    transition: background 0.3s;
    white-space: nowrap;
  }
  nav ul li a:hover {
    background: rgba(0, 0, 0, 0.1);
  }
  /* Mode Toggle Button */
  .mode-toggle {
    cursor: pointer;
    border: 2px solid #333;
    background: transparent;
    font-size: 1em;
    padding: 8px 16px;
    border-radius: 20px;
    transition: all 0.3s ease;
    position: relative;
    overflow: visible;
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 0 0 auto;
    white-space: nowrap;
    min-width: 140px;
    justify-content: center;
    margin-left: 30px;
  }
  
  .mode-toggle::before {
    content: "🌙";
    font-size: 1.2em;
    display: inline-block;
    margin-right: 4px;
  }
  
  body.dark-mode .mode-toggle::before {
    content: "☀️";
  }
  
  .mode-toggle:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  }
  
  body.dark-mode .mode-toggle {
    border-color: #fff;
    color: #fff;
    background: rgba(255, 255, 255, 0.1);
  }
  
  /* Sections */
  .section {
    position: relative;
    overflow: hidden;
    padding: 120px 0;
    margin: 0;
  }
  
  /* HERO SECTION */
  .hero {
    background: url('https://www.transparenttextures.com/patterns/always-grey.png'),
    linear-gradient(135deg, #f0f0f0 0%, #ffffff 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    position: relative;
    text-align: center;
  }
  .hero::before {
    content: "";
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.5);
  }
  .hero-content {
    position: relative;
    z-index: 1;
    animation: fadeIn 1s ease-out;
    max-width: 800px;
    margin: 0 auto;
    padding: 0 20px;
  }
  .hero-buttons {
    margin-top: 30px;
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
  }
  .hero-buttons button,
  .hero-buttons .download-resume {
    padding: 10px 20px;
    margin: 5px;
    border: none;
    background: #ff6600;
    color: #fff;
    text-transform: uppercase;
    font-weight: bold;
    border-radius: 5px;
    cursor: pointer;
    transition: background 0.3s;
  }
  .hero-buttons button:hover,
  .hero-buttons .download-resume:hover {
    background: #e65c00;
  }
  
  /* ABOUT SECTION */
  #about {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 60px;
  }
  #about .bio {
    flex: 1 1 400px;
    max-width: 600px;
  }
  #about .photo {
    flex: 0 1 300px;
  }
  #about .photo img {
    width: 100%;
    height: auto;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  }
  
  /* PORTFOLIO SECTION */
  #portfolio {
    background: url('https://www.transparenttextures.com/patterns/cubes.png'),
                linear-gradient(135deg, #f0f0f0 0%, #ffffff 100%);
    background-blend-mode: multiply;
    position: sticky;
    padding: 80px 20px;
  }
  .portfolio-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr); /* Force 2 columns */
    gap: 30px;
    padding: 20px 0;
    max-width: 900px; /* Reduced to maintain better proportions */
    margin: 0 auto;
  }
  .portfolio-item {
    position: relative;
    overflow: hidden;
    cursor: pointer;
    animation: zoomIn 0.5s ease;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    background: #fff;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    aspect-ratio: 4/3; /* Maintain consistent image proportions */
  }
  .portfolio-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.3s;
  }
  .portfolio-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
  }
  .portfolio-item .portfolio-title {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 15px;
    text-align: center;
    font-size: 1.1em;
    font-weight: 500;
    transform: translateY(100%);
    transition: transform 0.3s ease;
  }
  .portfolio-item:hover .portfolio-title {
    transform: translateY(0);
  }
  
  /* CASE STUDIES SECTION */
  #case-studies {
    background: url('https://www.transparenttextures.com/patterns/diagmonds-light.png'),
                linear-gradient(45deg, #e8f0f5 0%, #f6f9fc 100%);
    background-blend-mode: multiply;
    padding: 80px 40px;
    position: relative;
  }
  #case-studies .case-study {
    margin: 40px auto;
    max-width: 900px;
    animation: fadeIn 1s ease-out;
  }
  
  .case-study h3 {
    font-size: 1.4em;
    color: #2c3e50;
    margin: 30px 0 15px;
    padding-left: 20px;
    border-left: 4px solid #ff6600;
    transition: color 0.3s ease;
  }
  
  .case-study p {
    font-size: 1.1em;
    line-height: 1.8;
    color: #555;
    margin-bottom: 30px;
    padding-left: 24px;
    transition: color 0.3s ease;
  }
  
  /* Add numbering to case studies */
  .case-study {
    counter-reset: project-counter;
  }
  
  .case-study h3::before {
    counter-increment: project-counter;
    content: "Project " counter(project-counter);
    display: block;
    font-size: 0.8em;
    color: #ff6600;
    margin-bottom: 5px;
    font-weight: normal;
  }
  
  /* Dark mode adjustments */
  body.dark-mode .case-study h3 {
    color: #ecf0f1;
  }
  
  body.dark-mode .case-study p {
    color: #b0b0b0;
  }
  
  /* CONTACT SECTION */
  #contact {
    background: url('https://www.transparenttextures.com/patterns/connected.png'),
                linear-gradient(135deg, #f0f0f0 0%, #ffffff 100%);
    background-blend-mode: multiply;
    padding: 80px 20px;
    position: relative;
  }
  #contact .contact-info {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
  }
  
  /* BLOG SECTION */
  #blog {
    background: url('https://www.transparenttextures.com/patterns/paper-fibers.png'),
                linear-gradient(45deg, #eef2f7 0%, #f6f9fc 100%);
    background-blend-mode: multiply;
    padding: 80px 20px;
    position: relative;
  }
  .blog-container {
    max-width: 900px;
    margin: 0 auto;
    padding: 20px;
  }
  .blog-post {
    position: relative;
    background: #ffffff;
    border-radius: 15px;
    padding: 40px;
    margin-bottom: 40px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
  }
  
  .blog-post:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
  }
  
  .blog-number {
    position: absolute;
    top: -15px;
    left: -15px;
    background: #ff6600;
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2em;
    font-weight: bold;
    box-shadow: 0 4px 10px rgba(255, 102, 0, 0.3);
  }
  
  .blog-post h3 {
    font-size: 1.8em;
    color: #2c3e50;
    margin-bottom: 15px;
    padding-left: 40px;
  }
  
  .blog-meta {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
    padding-left: 40px;
    color: #666;
    font-size: 0.9em;
  }
  
  .blog-content p {
    color: #555;
    line-height: 1.8;
    margin-bottom: 20px;
  }
  
  .blog-content strong {
    color: #2c3e50;
    font-weight: 600;
  }
  
  /* FAQ SECTION */
  #faq {
    background: url('https://www.transparenttextures.com/patterns/subtle-dots.png'),
                linear-gradient(135deg, #f5f5f5 0%, #ffffff 100%);
    background-blend-mode: multiply;
    padding: 80px 20px;
    position: relative;
  }
  .faq-container {
    max-width: 800px;
    margin: 0 auto;
  }
  .faq-item {
    margin: 0 0 30px 0;
    padding: 30px;
    background: #ffffff;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
  }
  
  .faq-item h3 {
    color: #333;
    margin-bottom: 15px;
    font-size: 1.2em;
    transition: color 0.3s ease;
  }
  
  .faq-item p {
    color: #666;
    line-height: 1.6;
    transition: color 0.3s ease;
  }
  
  /* Dark mode styles for FAQ */
  body.dark-mode .faq-item {
    background: #1e1e1e;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
  }
  
  body.dark-mode .faq-item h3 {
    color: #ffffff;
  }
  
  body.dark-mode .faq-item p {
    color: #b0b0b0;
  }
  
  /* CTA SECTION */
  #cta {
    background: url('https://www.transparenttextures.com/patterns/dark-geometric.png'),
                linear-gradient(45deg, #2c3e50 0%, #3498db 100%);
    background-blend-mode: soft-light;
    padding: 100px 20px;
    position: sticky;
    color: white;
    text-align: center;
  }
  
  #cta .section-content {
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 30px;
  }
  
  #cta h2 {
    font-size: 2.8em;
    margin: 0;
    color: white;
  }
  
  #cta p {
    font-size: 1.4em;
    margin: 20px 0;
    color: rgba(255, 255, 255, 0.9);
  }
  
  #cta button {
    padding: 15px 30px;
    font-size: 1.2em;
    background: #ff6600;
    border: none;
    color: #fff;
    cursor: pointer;
    border-radius: 5px;
    transition: all 0.3s ease;
    text-transform: uppercase;
    font-weight: bold;
    letter-spacing: 1px;
  }
  
  #cta button:hover {
    background: #e65c00;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  }
  
  /* RECRUITER FORM SECTION */
  #recruiter {
    background: url('https://www.transparenttextures.com/patterns/diamond-upholstery.png'),
                linear-gradient(135deg, #f4f7fa 0%, #edf1f7 100%);
    background-blend-mode: multiply;
    padding: 100px 0;
    position: relative;
  }
  
  /* Form Container */
  #recruiter form {
    max-width: 600px;
    margin: 40px auto 0;
    background: rgba(255, 255, 255, 0.95);
    padding: 40px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  }
  
  /* Required Field Indicator */
  .form-group.required label::after {
    content: "*";
    color: #e74c3c;
    margin-left: 4px;
  }
  
  /* Form Group and Input Styles */
  .form-group {
    position: relative;
    margin-bottom: 20px;
  }
  
  .form-group input,
  .form-group textarea {
    width: 100%;
    padding: 15px;
    padding-right: 40px; /* Space for warning icon */
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 16px;
    transition: all 0.3s ease;
    line-height: normal; /* Normalize line height */
  }
  
  /* Warning Icon Styles */
  .warning-icon {
    display: none;
    position: absolute;
    right: 15px;
    top: 15px; /* Adjust this value to move icon up/down */
    transform: translateY(0); /* Remove the translateY transform */
    color: #e74c3c;
    font-size: 20px;
    pointer-events: none;
    z-index: 2;
    line-height: 1; /* Ensure icon has no extra space */
  }
  
  /* Show warning icon only when there's an error */
  .form-group.show-error .warning-icon {
    display: block;
  }
  
  /* Error Message Styles */
  .error-message {
    display: none;
    color: #e74c3c;
    font-size: 14px;
    margin-top: 5px;
  }
  
  .form-group.show-error .error-message {
    display: block;
  }
  
  /* Input States */
  .form-group.show-error input {
    border-color: #e74c3c;
  }
  
  .form-group input:focus {
    border-color: #3498db;
    box-shadow: 0 0 0 4px rgba(52, 152, 219, 0.1);
    outline: none;
  }
  
  /* Valid Input State */
  .form-group input:not(:placeholder-shown):valid:not(.show-error) {
    border-color: #2ecc71;
  }
  
  /* Dark Mode Styles */
  body.dark-mode #recruiter {
    background: url('https://www.transparenttextures.com/patterns/diamond-upholstery.png'),
                linear-gradient(135deg, #1a1a1a 0%, #242424 100%);
    background-blend-mode: soft-light;
  }
  
  body.dark-mode #recruiter form {
    background: rgba(30, 30, 30, 0.95);
  }
  
  /* FOOTER */
  footer {
    background: #333;
    color: #fff;
    text-align: center;
    padding: 20px;
  }
  
  /* ANIMATIONS */
  @keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
  }
  @keyframes slideIn {
    from { opacity: 0; transform: translateX(-20px); }
    to { opacity: 1; transform: translateX(0); }
  }
  @keyframes zoomIn {
    from { opacity: 0; transform: scale(0.9); }
    to { opacity: 1; transform: scale(1); }
  }
  
  /* DARK MODE STYLES */
  body.dark-mode {
    background: #121212;
    color: #e0e0e0;
  }
  body.dark-mode .section {
    background: #121212;
  }
  body.dark-mode #about {
    background: linear-gradient(135deg, #1a1a1a 0%, #2c2c2c 100%);
  }
  body.dark-mode nav {
    background: #1e1e1e;
    box-shadow: 0 2px 5px rgba(255, 255, 255, 0.1);
  }
  body.dark-mode nav ul li a:hover {
    background: rgba(255, 255, 255, 0.1);
  }
  body.dark-mode .service,
  body.dark-mode .blog-post,
  body.dark-mode #recruiter form {
    background: #1e1e1e;
    box-shadow: 0 2px 5px rgba(255, 255, 255, 0.1);
  }
  body.dark-mode #cta {
    background: url('https://www.transparenttextures.com/patterns/dark-geometric.png'),
                linear-gradient(45deg, #1a1a1a 0%, #2c3e50 100%);
    background-blend-mode: soft-light;
  }

  /* Dark Mode Enhanced Backgrounds */
  body.dark-mode #portfolio {
    background: url('https://www.transparenttextures.com/patterns/cubes.png'),
                linear-gradient(135deg, #1e1e1e 0%, #282828 100%);
    background-blend-mode: soft-light;
  }

  body.dark-mode #case-studies {
    background: url('https://www.transparenttextures.com/patterns/diagmonds-light.png'),
                linear-gradient(45deg, #1a1a1a 0%, #242424 100%);
    background-blend-mode: soft-light;
  }

  body.dark-mode #contact {
    background: url('https://www.transparenttextures.com/patterns/connected.png'),
                linear-gradient(135deg, #1e1e1e 0%, #262626 100%);
    background-blend-mode: soft-light;
  }

  body.dark-mode #blog {
    background: url('https://www.transparenttextures.com/patterns/paper-fibers.png'),
                linear-gradient(45deg, #1a1a1a 0%, #242424 100%);
    background-blend-mode: soft-light;
  }

  body.dark-mode #faq {
    background: url('https://www.transparenttextures.com/patterns/subtle-dots.png'),
                linear-gradient(135deg, #1e1e1e 0%, #262626 100%);
    background-blend-mode: soft-light;
  }

/* Popup Base Styles */
.popup {
  display: none;
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 1000;
  animation: slideIn 0.5s ease-out;
}

.popup.show {
  display: block;
}

.popup-content {
  padding: 20px;
  border-radius: 8px;
  background: white;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  display: flex;
  align-items: center;
  gap: 15px;
}

/* Success Checkmark Animation */
.success-checkmark {
  width: 40px;
  height: 40px;
  position: relative;
}

.check-icon {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  border: 2px solid #4CAF50;
  position: relative;
  animation: checkScale 0.3s ease-out;
}

.icon-line {
  position: absolute;
  background: #4CAF50;
  border-radius: 2px;
}

.line-tip {
  top: 19px;
  left: 8px;
  width: 12px;
  height: 3px;
  transform: rotate(45deg);
  animation: iconLineTip 0.3s;
}

.line-long {
  top: 16px;
  right: 8px;
  width: 22px;
  height: 3px;
  transform: rotate(-45deg);
  animation: iconLineLong 0.3s;
}

/* Error Icon Animation */
.error-icon {
  width: 40px;
  height: 40px;
  position: relative;
}

.error-circle {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  border: 2px solid #FF5252;
  animation: errorCircle 0.3s;
}

.error-x {
  position: absolute;
  width: 100%;
  height: 100%;
}

.error-line-1, .error-line-2 {
  position: absolute;
  width: 24px;
  height: 3px;
  background: #FF5252;
  border-radius: 2px;
  top: 50%;
  left: 50%;
}

.error-line-1 {
  transform: translate(-50%, -50%) rotate(45deg);
  animation: errorLine 0.3s;
}

.error-line-2 {
  transform: translate(-50%, -50%) rotate(-45deg);
  animation: errorLine 0.3s;
}

/* Animations */
@keyframes slideIn {
  from {
    transform: translateX(100%);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

@keyframes checkScale {
  0% { transform: scale(0); }
  100% { transform: scale(1); }
}

@keyframes iconLineTip {
  0% { width: 0; }
  100% { width: 12px; }
}

@keyframes iconLineLong {
  0% { width: 0; }
  100% { width: 22px; }
}

@keyframes errorCircle {
  0% { transform: scale(0); }
  100% { transform: scale(1); }
}

@keyframes errorLine {
  0% { transform: translate(-50%, -50%) scale(0); }
  100% { transform: translate(-50%, -50%) scale(1); }
}

/* Popup Text Styles */
#success-popup .popup-content {
  border-left: 4px solid #4CAF50;
}

#error-popup .popup-content {
  border-left: 4px solid #FF5252;
}

.popup p {
  margin: 0;
  font-size: 16px;
}

#success-popup p {
  color: #4CAF50;
}

#error-popup p {
  color: #FF5252;
}

/* Section Headings */
.section h2 {
  font-size: 2.5em;
  margin-bottom: 40px;
  text-align: center;
  position: relative;
  padding-bottom: 15px;
}

.section h2::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 3px;
  background: #ff6600;
  border-radius: 2px;
}

/* Recruiter Form Submit Button */
#recruiter form button[type="submit"] {
  width: 100%;
  padding: 15px 30px;
  background: #ff6600;
  color: white;
  border: none;
  border-radius: 8px;
  font-size: 16px;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.3s ease;
  text-transform: uppercase;
  letter-spacing: 1px;
}

#recruiter form button[type="submit"]:hover {
  background: #e65c00;
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

#recruiter form button[type="submit"]:disabled {
  background: #cccccc;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

/* Responsive Design */
@media screen and (max-width: 1024px) {
  /* Tablet and smaller */
  nav {
    padding: 15px 20px;
  }

  nav ul {
    gap: 10px;
    margin-right: 20px;
  }

  .mode-toggle {
    min-width: 120px;
    padding: 8px 12px;
  }
}

@media screen and (max-width: 768px) {
  /* Mobile navigation */
  nav {
    flex-direction: column;
    padding: 10px;
  }

  nav .logo {
    margin-bottom: 10px;
    text-align: center;
  }

  nav ul {
    flex-wrap: wrap;
    justify-content: center;
    margin-right: 0;
    margin-bottom: 10px;
    gap: 5px;
  }

  nav ul li a {
    padding: 6px 10px;
    font-size: 0.9em;
  }

  .mode-toggle {
    margin: 10px auto 0;
  }

  /* Section adjustments */
  .section {
    padding: 60px 20px;
  }

  /* Hero section */
  .hero-content h1 {
    font-size: 2em;
  }

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

  /* About section */
  #about {
    gap: 30px;
  }

  #about .bio {
    flex: 1 1 100%;
  }

  #about .photo {
    flex: 1 1 100%;
    max-width: 300px;
  }

  /* Portfolio grid */
  .portfolio-grid {
    grid-template-columns: 1fr; /* Stack on mobile */
    gap: 20px;
    padding: 15px;
    max-width: 400px; /* Limit width on mobile */
  }

  .portfolio-item img {
    height: 200px;
  }

  .portfolio-item .portfolio-title {
    font-size: 1em;
    padding: 12px;
  }

  /* Form adjustments */
  #recruiter form {
    padding: 20px;
    margin: 20px 10px;
  }

  /* Case studies adjustments */
  #case-studies {
    padding: 60px 20px;
  }
  
  .case-study h3 {
    font-size: 1.2em;
    padding-left: 15px;
  }
  
  .case-study p {
    font-size: 1em;
    padding-left: 19px;
    line-height: 1.6;
  }

  .blog-post {
    padding: 30px 20px;
    margin-bottom: 30px;
  }

  .blog-post h3 {
    font-size: 1.4em;
    padding-left: 20px;
  }

  .blog-meta {
    padding-left: 20px;
    flex-wrap: wrap;
  }

  .blog-number {
    width: 40px;
    height: 40px;
    font-size: 1em;
  }
}

@media screen and (max-width: 480px) {
  /* Small mobile devices */
  nav .logo {
    font-size: 1.5em;
  }

  .section h2 {
    font-size: 2em;
  }

  .hero-content h1 {
    font-size: 1.8em;
  }

  /* FAQ section */
  .faq-item {
    padding: 20px;
  }

  .faq-item h3 {
    font-size: 1.1em;
  }

  /* Contact info */
  .contact-info {
    font-size: 0.9em;
  }

  /* Form elements */
  #recruiter input,
  #recruiter textarea {
    padding: 12px;
    font-size: 14px;
  }

  /* Popup adjustments */
  .popup {
    left: 20px;
    right: 20px;
  }

  .popup-content {
    padding: 15px;
    font-size: 14px;
  }
}

/* Dark mode adjustments for mobile */
@media screen and (max-width: 768px) {
  body.dark-mode nav {
    background: #1a1a1a;
  }

  body.dark-mode .mode-toggle {
    background: rgba(255, 255, 255, 0.05);
  }
}

/* Handle very small screens */
@media screen and (max-width: 320px) {
  nav ul li a {
    font-size: 0.8em;
    padding: 5px 8px;
  }

  .hero-content h1 {
    font-size: 1.5em;
  }

  .section h2 {
    font-size: 1.8em;
  }
}

/* Handle landscape orientation */
@media screen and (max-height: 500px) and (orientation: landscape) {
  .hero {
    min-height: 100vh;
  }

  .section {
    padding: 40px 20px;
  }
}

/* Input Fields */
#recruiter input:not(:placeholder-shown):valid {
    border-color: #2ecc71;
}

.form-group.show-error input {
    border-color: #e74c3c;
}
  