/* ===== ROOT VARIABLES ===== */
:root {
  /* Main Colors */
  --color-primary: #123458;
  --color-secondary: #D4C9BE;
  --color-accent: #00bfff;
  
  /* Background Colors */
  --color-light-bg: #F1EFEC;
  --color-dark-bg: #030303;
  --color-surface: #1a1a1a;
  
  /* Text Colors */
  --color-light-text: #F1EFEC;
  --color-dark-text: #333;
  --color-muted: #666;
  
  /* Interactive Colors */
  --color-hover: #0056b3;
  --color-link-hover: var(--color-accent);
  
  /* Component Colors */
  --color-footer-bg: var(--color-primary);
  --color-nav-bg: var(--color-primary);

  /* Spacing */
  --spacing-xs: 0.5rem;
  --spacing-sm: 1rem;
  --spacing-md: 2rem;
  --spacing-lg: 3rem;
  --spacing-xl: 4rem;

  /* Breakpoints */
  --breakpoint-sm: 576px;
  --breakpoint-md: 768px;
  --breakpoint-lg: 992px;
  --breakpoint-xl: 1200px;

  /* Animations */
  --transition-fast: 0.3s ease;
  --transition-smooth: 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ===== BASE STYLES ===== */
html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  font-family: 'Arial', sans-serif;
  background-color: var(--color-light-bg);
  color: var(--color-dark-text);
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  overflow-x: hidden;
  width: 100%;
  padding-top: 70px; /* Add padding for fixed header */
  line-height: 1.6;
}

/* Enhanced Container */
.container {
  width: 90%;
  max-width: 1200px;
  margin: auto;
  padding: 2rem 0;
  overflow-x: hidden;
}

/* Enhanced Section Styles */
section {
  width: 100%;
  overflow-x: hidden;
  padding: var(--spacing-xl) 0;
  position: relative;
}

section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(45deg, rgba(255,255,255,0.1) 0%, rgba(255,255,255,0) 100%);
  pointer-events: none;
}

/* Enhanced Typography */
h1, h2, h3, h4, h5, h6 {
  margin: 0;
  line-height: 1.2;
  font-weight: 700;
}

h2 {
  text-align: center;
  font-size: 2.5rem;
  margin-bottom: var(--spacing-lg);
  position: relative;
  padding-bottom: var(--spacing-sm);
}

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

/* Enhanced Links */
a {
  text-decoration: none;
  color: inherit;
  transition: var(--transition-fast);
}

/* Enhanced Buttons */
.btn {
  display: inline-block;
  padding: 0.8rem 1.5rem;
  background: var(--color-primary);
  color: var(--color-light-text);
  border: none;
  border-radius: 8px;
  font-size: 1rem;
  cursor: pointer;
  transition: var(--transition-smooth);
  position: relative;
  overflow: hidden;
}

.btn::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  background: rgba(255,255,255,0.2);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  transition: width 0.6s ease, height 0.6s ease;
}

.btn:hover::before {
  width: 300px;
  height: 300px;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

/* Enhanced Portfolio Items */
.portfolio-item {
  position: relative;
  background: white;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  transition: var(--transition-smooth);
}

.portfolio-item:hover {
  transform: translateY(-10px);
  box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.portfolio-item img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  position: absolute;
  top: 0;
  left: 0;
  background-color: white;
  opacity: 1;
  transition: transform 0.3s ease;
}

.portfolio-item:hover img {
  transform: scale(1.05);
}

.overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0,0,0,0.8);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: var(--spacing-md);
  opacity: 0;
  transition: var(--transition-smooth);
}

.portfolio-item:hover .overlay {
  opacity: 1;
}

/* Enhanced Contact Form */
.contact-form {
  background: white;
  padding: var(--spacing-lg);
  border-radius: 12px;
  box-shadow: 0 5px 20px rgba(0,0,0,0.1);
}

.form-group {
  position: relative;
  margin-bottom: var(--spacing-md);
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 1rem;
  border: 2px solid #eee;
  border-radius: 8px;
  background: #f8f9fa;
  transition: var(--transition-fast);
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--color-accent);
  outline: none;
  box-shadow: 0 0 0 3px rgba(0,191,255,0.1);
}

/* Enhanced Footer */
.footer {
  background: var(--color-footer-bg);
  color: var(--color-light-text);
  padding: var(--spacing-lg) 0;
  margin-top: auto;
}

.footer-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--spacing-md);
}

.social-icons {
  display: flex;
  gap: var(--spacing-sm);
}

.social-icons a {
  color: var(--color-light-text);
  font-size: 1.5rem;
  transition: var(--transition-fast);
}

.social-icons a:hover {
  color: var(--color-accent);
  transform: translateY(-3px);
}

/* Enhanced Animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-in {
  animation: fadeInUp 0.6s ease forwards;
}

/* Enhanced Scrollbar */
::-webkit-scrollbar {
  width: 10px;
}

::-webkit-scrollbar-track {
  background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
  background: var(--color-primary);
  border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--color-hover);
}

/* Enhanced Selection */
::selection {
  background: var(--color-accent);
  color: white;
}

/* Enhanced Loading States */
.loading {
  position: relative;
  overflow: hidden;
}

.loading::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
  animation: loading 1.5s infinite;
}

@keyframes loading {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(100%); }
}

/* Enhanced Focus States */
:focus {
  outline: 2px solid var(--color-accent);
  outline-offset: 2px;
}

/* Enhanced Image Loading */
img {
  opacity: 1;
  transition: opacity 0.3s ease;
}

img.loaded {
  opacity: 1;
}

/* Enhanced Mobile Styles */
@media (max-width: 768px) {
  h2 {
    font-size: 2rem;
  }

  .container {
    padding: var(--spacing-md) var(--spacing-sm);
  }

  .portfolio-item {
    margin-bottom: var(--spacing-md);
  }

  .contact-form {
    padding: var(--spacing-md);
  }

  .footer-container {
    flex-direction: column;
    text-align: center;
  }
}

/* Enhanced Print Styles */
@media print {
  .navbar,
  .footer,
  .btn {
    display: none;
  }

  body {
    background: white;
    color: black;
  }

  a {
    text-decoration: underline;
  }
}

/* ===== NAVBAR STYLES ===== */
.navbar {
  background-color: var(--color-nav-bg);
  color: var(--color-light-bg);
  padding: 1rem 0;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  font-size: 1.4rem;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
  width: 100%;
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  padding: 0 1.5rem;
  max-width: 1200px;
  margin: 0 auto;
}

.logo {
  font-size: 1.4rem;
  font-weight: bold;
  color: var(--color-light-bg);
  text-decoration: none;
}

.nav-links {
  display: flex;
  gap: 1.5rem;
  list-style: none;
}

.nav-links a {
  color: var(--color-light-bg);
  font-weight: 400;
  text-decoration: none;
  font-size: 1rem;
  transition: color 0.3s;
}

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

/* Glass Navbar Variant */
.navbar.glass {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  z-index: 1000;
  background-color: rgba(18, 52, 88, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  padding: 0.5rem 2rem;
  transition: all 0.3s ease;
}

.navbar.glass.scrolled {
  background-color: rgba(18, 52, 88, 0.98);
  padding: 0.3rem 2rem;
}

.navbar.glass .nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.navbar.glass .logo {
  font-size: 1.6rem;
  font-weight: 600;
  color: var(--color-light-text);
  letter-spacing: 1px;
  text-transform: uppercase;
}

.navbar.glass .nav-links {
  display: flex;
  gap: 2rem;
  list-style: none;
}

.navbar.glass .nav-links a {
  position: relative;
  padding: 0.3rem 0;
  color: var(--color--text);
  font-weight: 500;
  text-transform: capitalize;
  text-decoration: none;
  transition: color 0.3s ease, border-bottom 0.3s ease;
}

.navbar.glass .nav-links a.active {
  color: var(--color-secondary);
  font-weight: 600;
  border-bottom: 2px solid var(--color-secondary);
}

.navbar.glass .nav-links a:hover {
  color: var(--color-secondary);
  border-bottom: 2px solid var(--color-secondary);
}

/* ===== HERO SECTION ===== */
.hero {
  background-image: url('assets/hero-background.jpg');
  background-size: cover;
  background-position: center;
  color: var(--color-footer-bg);
  height: 80vh;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 0 2rem;
}

.hero h1 {
  font-size: 4rem;
  font-weight: bold;
}

.hero p {
  font-size: 1.5rem;
  margin-top: 1rem;
}

.hero .btn-primary {
  background-color: var(--color-primary);
  color: white;
  padding: 1rem 2rem;
  border-radius: 50px;
  margin-top: 2rem;
  font-size: 1.2rem;
  transition: all 0.3s ease;
  cursor: pointer;
}

.hero .btn-primary:hover {
  background-color: var(--color-hover);
  transform: scale(1.1);
}

.hero .btn-primary:active {
  transform: translateY(4px);
}

/* ===== ABOUT SECTION ===== */
.about {
  background-color: var(--color-secondary);
  padding: 6rem 0;
  text-align: center;
}

.about-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 3rem;
  flex-wrap: wrap;
}

.about-img {
  width: 350px;
  height: 350px;
  border-radius: 50%;
  object-fit: cover;
  border: 5px solid var(--color-primary);
}

.about-text {
  max-width: 700px;
  color: var(--color-dark-text);
  font-size: 1.2rem;
  line-height: 1.8;
  text-align: justify;
  text-justify: inter-word;
}

.about-text p {
  margin-bottom: 1.5rem;
}

.about-text strong {
  color: var(--color-primary);
}

.about-text .btn-primary {
  background-color: var(--color-primary);
  color: white;
  padding: 1rem 2rem;
  border-radius: 50px;
  margin-top: 2rem;
  font-size: 1.2rem;
  transition: all 0.3s ease;
  cursor: pointer;
}

.about-text .btn-primary:hover {
  background-color: var(--color-hover);
  transform: scale(1.1);
}

.about-text .btn-primary:active {
  transform: translateY(4px);
}

.about-text p:last-child {
  text-align: left;
}

/* ===== PORTFOLIO SECTION ===== */
#portfolio {
  padding: 80px 0;
  background-color: var(--color-light-bg);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 2rem;
  padding: 2rem 0;
}

.portfolio-item {
  position: relative;
  background-color: white;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
  height: 500px;
  width: 100%;
}

.portfolio-item img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  position: absolute;
  top: 0;
  left: 0;
  background-color: white;
  opacity: 1;
  transition: transform 0.3s ease;
}

.portfolio-item:hover {
  transform: translateY(-10px);
}

.portfolio-item:hover img {
  transform: scale(1.05);
}

.overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(18, 52, 88, 0.9);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 2rem;
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: 1;
}

.portfolio-item:hover .overlay {
  opacity: 1;
}

.overlay h3 {
  color: white;
  font-size: 1.5rem;
  margin-bottom: 1rem;
  transform: translateY(20px);
  transition: transform 0.3s ease;
}

.overlay p {
  color: var(--color-secondary);
  text-align: center;
  margin-bottom: 1.5rem;
  transform: translateY(20px);
  transition: transform 0.3s ease;
}

.portfolio-item:hover .overlay h3,
.portfolio-item:hover .overlay p {
  transform: translateY(0);
}

.overlay .btn {
  background-color: var(--color-accent);
  color: white;
  padding: 0.8rem 1.5rem;
  border-radius: 25px;
  text-decoration: none;
  transition: all 0.3s ease;
  transform: translateY(20px);
  opacity: 0;
  margin: 0.5rem;
}

.portfolio-item:hover .overlay .btn {
  transform: translateY(0);
  opacity: 1;
}

.overlay .btn:hover {
  background-color: var(--color-primary);
  transform: translateY(-2px);
}

/* Project description styles */
.project-description {
  font-size: 0.9rem;
  line-height: 1.6;
  margin: 1rem 0;
  text-align: justify;
  text-justify: inter-word;
}

.tech-stack {
  font-size: 0.8rem;
  color: var(--color-accent);
  margin-bottom: 1rem;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .portfolio-grid {
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 1.5rem;
  }

  .portfolio-item {
    height: 450px;
  }

  .overlay {
    padding: 1.5rem;
  }

  .overlay h3 {
    font-size: 1.3rem;
  }

  .project-description {
    font-size: 0.8rem;
  }
}

@media (max-width: 576px) {
  .portfolio-grid {
    grid-template-columns: 1fr;
  }

  .portfolio-item {
    height: 400px;
  }
}

/* ===== RESUME SECTION ===== */
.resume-section {
  margin-bottom: 3rem;
  background-color: white;
  padding: 2.5rem;
  border-radius: 15px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.resume-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 5px;
  height: 100%;
  background: var(--color-primary);
  transition: all 0.3s ease;
}

.resume-section:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

.resume-section:hover::before {
  width: 8px;
  background: var(--color-accent);
}

.resume-section h3 {
  font-size: 1.8rem;
  color: var(--color-primary);
  font-weight: 700;
  margin-bottom: 1.5rem;
  position: relative;
  padding-bottom: 1rem;
}

.resume-section h3::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 50px;
  height: 3px;
  background: var(--color-accent);
  border-radius: 2px;
}

.resume-section p {
  font-size: 1.1rem;
  color: var(--color-dark-text);
  line-height: 1.8;
  margin-bottom: 1.5rem;
}

.resume-section ul {
  list-style-type: none;
  padding: 0;
  margin: 0;
}

.resume-section li {
  margin-bottom: 1.5rem;
  padding-left: 1.5rem;
  position: relative;
  transition: all 0.3s ease;
}

.resume-section li::before {
  content: '▹';
  position: absolute;
  left: 0;
  color: var(--color-accent);
  font-size: 1.2rem;
}

.resume-section li:hover {
  transform: translateX(10px);
}

.resume-section a {
  color: var(--color-primary);
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
  position: relative;
}

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

.resume-section a:hover {
  color: var(--color-accent);
}

.resume-section a:hover::after {
  width: 100%;
}

.experience-list,
.projects-list {
  list-style-type: none;
  padding-left: 0;
}

.experience-list li,
.projects-list li {
  background: rgba(18, 52, 88, 0.03);
  padding: 1.5rem;
  border-radius: 10px;
  margin-bottom: 1.5rem;
  transition: all 0.3s ease;
}

.experience-list li:hover,
.projects-list li:hover {
  background: rgba(18, 52, 88, 0.05);
  transform: translateX(10px);
}

.experience-list li h4,
.projects-list li h4 {
  color: var(--color-primary);
  font-size: 1.3rem;
  margin-bottom: 0.5rem;
}

.experience-list li p,
.projects-list li p {
  color: var(--color-muted);
  font-size: 1rem;
  margin-bottom: 0.5rem;
}

.experience-list li .date,
.projects-list li .date {
  color: var(--color-accent);
  font-size: 0.9rem;
  font-weight: 500;
}

.projects-list a {
  display: inline-block;
  margin-top: 1rem;
  padding: 0.5rem 1rem;
  background: var(--color-primary);
  color: white;
  border-radius: 5px;
  transition: all 0.3s ease;
}

.projects-list a:hover {
  background: var(--color-accent);
  transform: translateY(-2px);
}

/* Responsive adjustments for resume section */
@media (max-width: 768px) {
  .resume-section {
    padding: 2rem;
  }

  .resume-section h3 {
    font-size: 1.5rem;
  }

  .resume-section p {
    font-size: 1rem;
  }

  .experience-list li,
  .projects-list li {
    padding: 1.2rem;
  }
}

@media (max-width: 576px) {
  .resume-section {
    padding: 1.5rem;
  }

  .resume-section h3 {
    font-size: 1.3rem;
  }

  .experience-list li h4,
  .projects-list li h4 {
    font-size: 1.1rem;
  }
}

/* ===== CONTACT SECTION ===== */
.contact h2 {
  text-align: center;
  margin-bottom: 1rem;
}

.contact p {
  text-align: center;
  margin-bottom: 2rem;
  color: #555;
}

.contact-form {
  max-width: 600px;
  margin: 0 auto;
  background: white;
  padding: 2rem;
  border-radius: 12px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
  animation: fadeIn 1s ease-in-out;
}

.form-group {
  position: relative;
  margin-bottom: 1.5rem;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 1rem 0.75rem;
  border: 1px solid #ccc;
  border-radius: 8px;
  background: #fefefe;
  font-size: 1rem;
  outline: none;
  transition: border-color 0.3s ease;
}

.form-group label {
  position: absolute;
  top: 1rem;
  left: 0.75rem;
  font-size: 0.9rem;
  color: #888;
  pointer-events: none;
  transition: all 0.2s ease;
}

.form-group input:focus + label,
.form-group input:not(:placeholder-shown) + label,
.form-group textarea:focus + label,
.form-group textarea:not(:placeholder-shown) + label {
  top: -0.7rem;
  left: 0.6rem;
  background: white;
  padding: 0 0.25rem;
  font-size: 0.75rem;
  color: #0077cc;
}

.btn {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  background: #0077cc;
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: 1rem;
  cursor: pointer;
  transition: background 0.3s ease;
}

.btn:hover {
  background: #005fa3;
}

/* ===== FOOTER ===== */
footer {
  background-color: var(--color-footer-bg);
  color: var(--color-light-bg);
  padding: 2rem 1rem;
  text-align: center;
  margin-top: auto;
}

.footer-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1.5rem;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}

.footer-left h3 {
  font-size: 1.5rem;
  color: var(--color-light-bg);
  margin-bottom: 0.3rem;
}

.footer-left p {
  margin: 0.2rem 0;
  color: var(--color-secondary);
}

.footer-right h4 {
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
  color: var(--color-light-bg);
}

.social-icons {
  display: flex;
  gap: 1rem;
}

.social-icons a {
  color: var(--color-secondary);
  font-size: 1.5rem;
  transition: transform 0.3s, color 0.3s;
}

.social-icons a:hover {
  color: var(--color-light-bg);
  transform: scale(1.2);
}

/* ===== BACK TO TOP BUTTON ===== */
.back-to-top {
  position: fixed;
  bottom: 25px;
  right: 25px;
  background: #0077cc;
  color: white;
  padding: 0.6rem;
  border-radius: 50%;
  font-size: 1.2rem;
  display: none;
  z-index: 999;
  cursor: pointer;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.back-to-top:hover {
  background: #005fa3;
}

/* ===== ANIMATIONS ===== */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ===== HAMBURGER MENU ===== */
.hamburger {
  display: none;
  cursor: pointer;
  background: none;
  border: none;
  padding: var(--spacing-xs);
  z-index: 1000;
}

.hamburger-line {
  display: block;
  width: 25px;
  height: 3px;
  margin: 5px 0;
  background-color: var(--color-light-text);
  transition: all 0.3s ease;
}

.hamburger.active .hamburger-line:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.hamburger.active .hamburger-line:nth-child(2) {
  opacity: 0;
}

.hamburger.active .hamburger-line:nth-child(3) {
  transform: rotate(-45deg) translate(7px, -6px);
}

/* ===== RESPONSIVE STYLES ===== */
@media (max-width: 1200px) {
  .container {
    width: 95%;
    padding: var(--spacing-md) var(--spacing-sm);
  }

  .hero h1 {
    font-size: 3.5rem;
  }
}

@media (max-width: 992px) {
  .nav-container {
    padding: 0 1.5rem;
  }

  .logo {
    font-size: 1.1rem;
  }

  .nav-links a {
    font-size: 0.9rem;
  }

  .about-content {
    gap: var(--spacing-lg);
  }

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

@media (max-width: 768px) {
  body {
    padding-top: 60px; /* Adjust padding for mobile */
  }

  .nav-container {
    justify-content: flex-end;
  }

  .hamburger {
    display: block;
  }

  .logo {
    display: none;
  }

  .nav-links {
    position: fixed;
    top: 0;
    left: -100%;
    width: 70%;
    max-width: 300px;
    height: 100vh;
    background-color: var(--color-nav-bg);
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    transition: left 0.3s ease;
    z-index: 999;
    padding-top: 80px;
    box-shadow: 5px 0 15px rgba(0, 0, 0, 0.1);
    visibility: hidden;
    opacity: 0;
  }

  .nav-links.active {
    left: 0;
    visibility: visible;
    opacity: 1;
  }

  .nav-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 998;
    opacity: 0;
    transition: opacity 0.3s ease;
    backdrop-filter: blur(4px);
  }

  .nav-overlay.active {
    display: block;
    opacity: 1;
  }

  .nav-links li {
    width: 100%;
    text-align: center;
    margin: var(--spacing-sm) 0;
    opacity: 0;
    transform: translateX(-20px);
    transition: all 0.3s ease;
  }

  .nav-links.active li {
    opacity: 1;
    transform: translateX(0);
  }

  .nav-links li:nth-child(1) { transition-delay: 0.1s; }
  .nav-links li:nth-child(2) { transition-delay: 0.2s; }
  .nav-links li:nth-child(3) { transition-delay: 0.3s; }
  .nav-links li:nth-child(4) { transition-delay: 0.4s; }

  .nav-links a {
    display: block;
    padding: var(--spacing-sm) var(--spacing-md);
    font-size: 1.2rem;
    color: var(--color-light-text);
    transition: all 0.3s ease;
  }

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

  /* Adjust container padding for mobile */
  .container {
    padding: 0 var(--spacing-sm);
  }

  /* Adjust hero section for mobile */
  .hero {
    height: 60vh;
    padding: 0 var(--spacing-sm);
  }

  .hero h1 {
    font-size: 2.5rem;
  }

  .hero p {
    font-size: 1.1rem;
  }

  /* Adjust about section for mobile */
  .about-content {
    flex-direction: column;
    text-align: center;
    gap: var(--spacing-md);
  }

  .about-img {
    width: 250px;
    height: 250px;
  }

  .about-text {
    max-width: 100%;
  }

  /* Adjust portfolio section for mobile */
  .portfolio-grid {
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 1.5rem;
    padding: 1.5rem 0;
  }

  .portfolio-item {
    height: 450px;
  }

  /* Adjust contact section for mobile */
  .contact-form {
    padding: var(--spacing-md) var(--spacing-sm);
  }

  /* Adjust footer for mobile */
  .footer-container {
    flex-direction: column;
    text-align: center;
    gap: var(--spacing-md);
  }

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

@media (max-width: 576px) {
  .nav-container {
    padding: 0 1rem;
  }

  .logo {
    font-size: 1rem;
    padding-right: 0.5rem;
  }

  .hamburger {
    margin-left: 0.5rem;
  }

  .hero h1 {
    font-size: 2rem;
  }

  .hero p {
    font-size: 1rem;
  }

  .about-img {
    width: 200px;
    height: 200px;
  }

  .section-title {
    font-size: 1.8rem;
  }

  .contact-form {
    padding: var(--spacing-sm);
  }

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

  .portfolio-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .portfolio-item {
    height: 400px;
  }
}

/* Add smooth transitions */
.nav-links,
.hero,
.about-content,
.portfolio-grid,
.contact-form,
.footer-container {
  transition: all 0.3s ease;
}

/* Ensure content doesn't get hidden behind fixed header */
main {
  position: relative;
  z-index: 1;
}

.project-link {
  display: inline-block;
  margin-top: 8px;
  padding: 6px 12px;
  background-color: #333;
  color: white;
  text-decoration: none;
  border-radius: 4px;
  transition: background-color 0.3s ease;
}

.project-link:hover {
  background-color: #555;
}

.project-link i {
  margin-right: 6px;
}