/* --- CSS Variables based on requested palette --- */
:root {
  /* Colors */
  --primary: #64943E;       /* Flat Green */
  --accent: #95BF47;        /* Guacamole */
  --bg: #FFFFFF;            /* Full White */
  --section-bg: #f4f6f3;    /* Light Greenish Gray */
  --text: #1a1a1a;          /* Darker, softer black */
  --text-light: #555555;    /* Secondary text */
  --white: #ffffff;
  
  /* Utilities */
  --shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
  --shadow-hover: 0 15px 35px rgba(0, 0, 0, 0.1);
  --border: 1px solid #e5e7eb;
  --radius: 16px;
  --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  
  /* Spacing */
  --container-width: 1400px;
  --container-padding: 2rem;
  --section-padding: 8rem 0;
}

/* --- Reset & Base Styles --- */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}


html {
  scroll-behavior: smooth;
  font-size: 62.5%; /* 1rem = 10px */
}

body {
  font-family: 'Inter', sans-serif;
  color: var(--text);
  line-height: 1.6;
  font-size: 1.6rem;
  overflow-x: hidden;
  background-color: var(--section-bg);
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

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

ul {
  list-style: none;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

.container {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 var(--container-padding);
}

/* --- Card Utilities --- */
.clean-card {
  background: var(--bg);
  border: var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  transition: var(--transition);
  height: 100%; /* Ensure equal height in grids */
  display: flex;
  flex-direction: column;
}

.clean-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-hover);
  border-color: var(--accent);
}

/* --- Typography --- */
h1, .h1, h2, .h2, h3, .h3, h4, .h4, h5, .h5, h6, .h6 {
  line-height: 1.2;
  font-weight: 700;
  color: var(--text);
}

h1, .h1 { font-size: 5.6rem; }
h2, .h2 { font-size: 4rem; }
h3, .h3 { font-size: 2.8rem; }
h4, .h4 { font-size: 2rem; }

p:not(.h1):not(.h2):not(.h3):not(.h4):not(.h5):not(.h6) {
  font-size: 1.6rem;
  margin-bottom: 1.6rem;
  color: var(--text-light);
}

@media (max-width: 768px) {
  h1, .h1 { font-size: 4rem; }
  h2, .h2 { font-size: 3.2rem; }
  h3, .h3 { font-size: 2.4rem; }
  p { font-size: 1.5rem; }
}

.section-header {
  text-align: center;
  margin-bottom: 5rem;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.section-header h2 {
  margin-bottom: 1.5rem;
  position: relative;
  display: inline-block;
}

.section-header h2::after {
  content: '';
  display: block;
  width: 60px;
  height: 4px;
  background: var(--primary);
  margin: 1.5rem auto 0;
  border-radius: 2px;
}

/* Typing Animation Cursor */
.highlight {
  color: var(--primary);
  border-right: 3px solid var(--primary); /* Cursor */
  padding-right: 5px;
  animation: blink 0.75s step-end infinite;
}

@keyframes blink {
  from, to { border-color: transparent }
  50% { border-color: var(--primary) }
}

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 1.2rem 3rem;
  border-radius: 50px;
  font-weight: 600;
  transition: var(--transition);
  cursor: pointer;
  border: 2px solid transparent;
  font-size: 1.6rem;
}

.btn-primary {
  background-color: var(--primary);
  color: var(--white);
  box-shadow: 0 4px 15px rgba(100, 148, 62, 0.3);
}

.btn-primary:hover {
  background-color: var(--accent);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(100, 148, 62, 0.5);
}

.btn-outline {
  border-color: var(--text);
  background: transparent;
  color: var(--text);
}

.btn-outline:hover {
  border-color: var(--primary);
  color: var(--primary);
  background: rgba(100, 148, 62, 0.05);
}

/* --- Navigation --- */
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  z-index: 1000;
  padding: 1.5rem 0;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  transition: var(--transition);
}

nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-size: 2.4rem;
  font-weight: 700;
  color: var(--primary);
  letter-spacing: -0.5px;
}

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

/* Default Desktop Styles for Nav Links */
.nav-links {
  display: flex;
  gap: 3rem;
  align-items: center;
}

.nav-links > li {
  width: 100%;
}

.nav-links a {
  font-weight: 500;
  font-size: 1.5rem;
  transition: var(--transition);
  position: relative;
  color: var(--text);
}

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

.hamburger {
  display: none;
  cursor: pointer;
  font-size: 2.4rem;
  color: var(--text);
}

/* --- Welcome Screen --- */
#welcome-screen {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: var(--primary);
  z-index: 9999;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  color: var(--white);
  transition: opacity 0.8s ease-out, visibility 0.8s ease-out;
}

#welcome-screen.fade-out {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.welcome-content {
  text-align: center;
  animation: slideUp 0.8s ease-out;
}

.welcome-content .welcome-title.h1 {
  margin-bottom: 1rem;
  color: var(--white);
}

.welcome-content p:not(.welcome-title) {
  font-size: 1.9rem;
  opacity: 0.9;
  color: #f4f6f3;
}

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

/* --- Hero Section --- */
#hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding-top: 80px;
  padding-bottom: 60px;
  position: relative;
  overflow: hidden;
  background-color: var(--bg);
}

/* Floating Icons */
.hero-bg-icons {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  pointer-events: none;
}

.hero-icon {
  position: absolute;
  font-size: 8rem;
  color: var(--accent);
  opacity: 0.45; 
  animation: float 6s ease-in-out infinite;
  line-height: 1;
  will-change: transform;
}

.hero-icon:nth-child(even) {
  font-size: 6rem;
  color: var(--accent);
  opacity: 0.40;
}

@keyframes float {
  0% { transform: translate3d(0, 0, 0); }
  50% { transform: translate3d(0, -20px, 0); }
  100% { transform: translate3d(0, 0, 0); }
}

/* Animation Timing */
.hero-icon:nth-child(1) { animation-duration: 6s; }
.hero-icon:nth-child(2) { animation-duration: 8s; }
.hero-icon:nth-child(3) { animation-duration: 7s; }
.hero-icon:nth-child(4) { animation-duration: 9s; }
.hero-icon:nth-child(5) { animation-duration: 7.5s; }
.hero-icon:nth-child(6) { animation-duration: 8.5s; }

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 900px;
  padding: 0 2rem;
}

.hero-content h1 {
  margin-bottom: 2rem;
  color: var(--text);
}

.hero-content p {
  font-size: 2rem;
  color: var(--text-light);
  max-width: 650px;
  margin: 0 auto 3rem;
  font-weight: 400;
}

.hero-buttons {
  display: flex;
  gap: 1.5rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* --- Section Defaults --- */
section {
  padding: var(--section-padding);
  position: relative;
}


/* --- About Section --- */
.about-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 4rem;
  align-items: center;
}

.about-img img {
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  transition: transform 0.5s ease;
}

.about-img:hover img {
  transform: scale(1.02);
}

.about-card {
  background: var(--white);
  padding: 3rem;
  border-radius: var(--radius);
  border: var(--border);
  box-shadow: var(--shadow);
}

.about-card .section-title {
  margin-bottom: 1rem;
}

.stats {
  display: flex;
  gap: 2rem;
  margin-top: 3rem;
  flex-wrap: wrap;
}

.stat-item {
  flex: 1;
  min-width: 120px;
  background: #f9f9f9;
  padding: 1.5rem;
  border-radius: 1.2rem;
  text-align: center;
  border: 1px solid #eee;
  transition: var(--transition);
}

.stat-item:hover {
  transform: translateY(-3px);
  border-color: var(--primary);
  background: white;
}

.stat-item h3 {
  font-size: 2.8rem;
  color: var(--primary);
  margin-bottom: 0.5rem;
}

.stat-item p {
  font-size: 1.4rem;
  color: var(--text-light);
  margin: 0;
}

/* --- Services Section --- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 3rem;
}

.service-card {
  text-align: left;
  padding: 3rem;
}

.service-icon {
  font-size: 4rem;
  color: var(--primary);
  margin-bottom: 2rem;
  background: rgba(149, 191, 71, 0.1);
  width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 1.2rem;
}

.service-card h3 {
  margin-bottom: 1.5rem;
  font-size: 2.2rem;
}

.service-card p {
  font-size: 1.5rem;
  color: var(--text-light);
  line-height: 1.6;
}

/* --- Tech Stack (Skills) Section --- */
#skills {
  background: var(--white);
  border-top: 1px solid #eee;
  border-bottom: 1px solid #eee;
}

.tech-stack-wrapper {
  text-align: center;
}

.tech-tags {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.5rem;
  margin-top: 3rem;
}

.tech-tag {
  background: #f8f9fa;
  padding: 1rem 2rem;
  border-radius: 50px;
  font-weight: 600;
  color: var(--text);
  border: 1px solid #eee;
  display: flex;
  align-items: center;
  gap: 1rem;
  transition: var(--transition);
  font-size: 1.5rem;
}

.tech-tag:hover {
  transform: translateY(-3px);
  background: var(--white);
  color: var(--primary);
  border-color: var(--primary);
  box-shadow: 0 5px 15px rgba(100, 148, 62, 0.2);
}

.tech-tag i {
  color: var(--primary);
}

/* --- Work Experience Section --- */
#experience {
  background-color: var(--section-bg);
}

.experience-timeline {
  position: relative;
  max-width: 800px;
  margin: 0 auto;
}

/* Vertical Line */
.experience-timeline::after {
  content: '';
  position: absolute;
  width: 4px;
  background-color: #ddd;
  top: 0;
  bottom: 0;
  left: 20px;
  margin-left: -2px;
  z-index: 1;
}

.timeline-item {
  padding: 10px 0 0 40px;
  position: relative;
  background-color: inherit;
  width: 100%;
}

/* Timeline Dot */
.timeline-dot {
  width: 20px;
  height: 20px;
  background-color: var(--primary);
  border: 4px solid var(--white);
  position: absolute;
  border-radius: 50%;
  left: 20px;
  top: 30px;
  transform: translateX(-50%);
  z-index: 2;
  box-shadow: 0 0 0 4px rgba(100, 148, 62, 0.2);
}

.timeline-content {
  padding: 2.5rem;
  background-color: var(--white);
  position: relative;
  border-radius: var(--radius);
  margin-left: 20px;
}

/* Arrow pointing to dot */
.timeline-content::before {
  content: " ";
  height: 0;
  position: absolute;
  top: 26px;
  width: 0;
  z-index: 1;
  left: -10px;
  border: medium solid white;
  border-width: 10px 10px 10px 0;
  border-color: transparent white transparent transparent;
}

.job-header {
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid #f0f0f0;
}

.job-header h3 {
  color: var(--primary);
  font-size: 2.2rem;
  margin-bottom: 0.5rem;
}

.job-header .company {
  display: block;
  font-weight: 700;
  font-size: 1.6rem;
  color: var(--text);
}

.job-header .duration {
  display: block;
  font-size: 1.4rem;
  color: var(--text-light);
  margin-top: 0.4rem;
  font-style: italic;
}

.job-details {
  list-style: none;
  padding-left: 0;
}

.job-details li {
  position: relative;
  padding-left: 20px;
  margin-bottom: 0.8rem;
  color: var(--text-light);
  font-size: 1.5rem;
  line-height: 1.6;
}

.job-details li::before {
  content: "▹";
  position: absolute;
  top: 4px;
  left: 0;
  color: var(--accent);
  font-size: 1.8rem;
  line-height: 1.5rem;
}

@media (max-width: 600px) {
  .experience-timeline::after {
    left: 20px;
  }
  
  .timeline-content {
    margin-left: 10px;
    padding: 2rem;
  }
  
  .job-header h3 {
    font-size: 1.8rem;
  }
}

/* --- Process Section --- */
.process-steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 3rem;
}

.process-step {
  text-align: center;
  display: flex;
  flex-direction: column;
}

.step-number {
  width: 50px;
  height: 50px;
  min-width: 50px;
  min-height: 50px;
  background: var(--primary);
  color: var(--white);
  font-weight: 700;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 2rem;
  font-size: 1.8rem;
  box-shadow: 0 5px 15px rgba(100, 148, 62, 0.3);
  position: relative;
  z-index: 2;
  flex-shrink: 0;
  aspect-ratio: 1;
}

.process-card {
  padding: 3rem 2rem;
  height: 100%;
  background: var(--white);
  border-radius: var(--radius);
  border: var(--border);
  box-shadow: var(--shadow);
  transition: var(--transition);
  flex-grow: 1;
}

.process-card p {
  font-size: 1.4rem;
  margin-top: 1.5rem;
  color: var(--text-light);
}

.process-card:hover {
  transform: translateY(-5px);
  border-color: var(--accent);
  box-shadow: var(--shadow-hover);
}

/* --- Projects Section --- */
.projects-slider {
  padding-bottom: 50px !important;
  padding-left: 5px;
  padding-right: 5px;
}

.projects-slider .swiper-slide {
  height: auto;
  display: flex;
}

.projects-slider .project-card {
  width: 100%;
}

/* Swiper Controls Customization */
.swiper-pagination-bullet-active {
  background-color: var(--primary) !important;
}

.projects-slider .swiper-button-next,
.projects-slider .swiper-button-prev {
  color: var(--primary) !important;
  background: white;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  top: 52% !important;
}

@media (max-width: 640px) {
  .projects-slider .swiper-button-next,
  .projects-slider .swiper-button-prev {
    display: none;
  }
}

.swiper-button-next:after,
.swiper-button-prev:after {
  font-size: 20px !important;
  font-weight: bold;
}

.swiper-button-next:hover,
.swiper-button-prev:hover {
  background: var(--primary);
  color: white !important;
  transform: scale(1.1);
}

/* Adjust navigation button positions for mobile */
@media (max-width: 640px) {
  .swiper-button-next,
  .swiper-button-prev {
    display: none !important;
  }
}

.project-card {
  overflow: hidden;
  background: var(--white);
  display: flex;
  flex-direction: column;
}

.project-image {
  height: 240px;
  background-color: #eee;
  overflow: hidden;
  position: relative;
}

.project-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.25, 0.8, 0.25, 1);
}

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

.project-info {
  padding: 2.5rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.project-info h3 {
  margin-bottom: 1rem;
}

.project-card .project-info p::before {
  content: "- "
}

.project-category {
  color: var(--accent);
  font-size: 1.2rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  margin-bottom: 1rem;
  background: rgba(149, 191, 71, 0.1);
  display: inline-block;
  padding: 0.4rem 0.8rem;
  border-radius: 0.6rem;
  align-self: flex-start;
}

/* .project-link removed as it is replaced by .btn-visit in .project-footer */

/* Read More Functionality */
.project-details-wrapper {
  margin-top: 1rem;
  margin-bottom: 1.5rem;
}

.project-details-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.5s ease-out;
  opacity: 0;
}

.project-details-content.active {
  max-height: 500px;
  opacity: 1;
  transition: max-height 0.5s ease-in, opacity 0.5s ease-in;
}

.read-more-btn {
  background: none;
  border: none;
  color: var(--primary);
  font-weight: 600;
  font-size: 1.4rem;
  cursor: pointer;
  padding: 0;
  margin-top: 0.5rem;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-family: inherit;
  transition: var(--transition);
}

.read-more-btn:hover {
  color: var(--accent);
  text-decoration: underline;
}

.read-more-btn i {
  transition: transform 0.3s ease;
}

.read-more-btn.active i {
  transform: rotate(180deg);
}

.read-more-btn.active i {
  transform: rotate(180deg);
}

/* Project Footer & Visit Button */
.project-footer {
  margin-top: auto;
  padding-top: 2rem;
  border-top: 1px solid #f0f0f0;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.project-live-note {
  font-size: 1.3rem;
  color: var(--text-light);
  font-style: italic;
  margin: 0;
}

.btn-visit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 1rem 2rem;
  background-color: var(--primary);
  color: var(--white);
  border-radius: var(--radius);
  font-weight: 600;
  text-decoration: none;
  transition: var(--transition);
  align-self: flex-start;
  font-size: 1.5rem;
  box-shadow: 0 4px 10px rgba(100, 148, 62, 0.2);
}

.btn-visit:hover {
  background-color: var(--accent);
  transform: translateY(-2px);
  box-shadow: 0 6px 15px rgba(100, 148, 62, 0.3);
  color: var(--white);
}

.btn-visit i {
  margin-left: 0.8rem;
  transition: transform 0.2s;
}

.btn-visit:hover i {
  transform: translateX(3px);
}

/* --- Why Choose Me --- */
#why-me {
  background: var(--white);
  border-top: 1px solid #eee;
  border-bottom: 1px solid #eee;
}

.why-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 3rem;
}

.why-card {
  text-align: center;
  padding: 4rem 2.5rem;
  background: #f8f9fa;
  border: var(--border);
  border-radius: var(--radius);
  transition: var(--transition);
}

.why-card:hover {
  transform: translateY(-5px);
  background: var(--white);
  border-color: var(--primary);
  box-shadow: var(--shadow-hover);
}

.why-icon {
  font-size: 4.5rem;
  color: var(--accent);
  margin-bottom: 2rem;
}

/* --- Testimonials --- */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 3rem;
}

.testimonial-card {
  padding: 4rem 3rem;
  position: relative;
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  border: var(--border);
  display: flex;
  flex-direction: column;
}

.testimonial-icon {
  font-size: 3.5rem;
  color: rgba(100, 148, 62, 0.15);
  position: absolute;
  top: 2.5rem;
  left: 2.5rem;
}

.testimonial-text {
  font-style: italic;
  color: var(--text-light);
  margin-bottom: 2.5rem;
  position: relative;
  z-index: 1;
  font-size: 1.7rem;
  line-height: 1.7;
  flex-grow: 1;
}

.client-info h4 {
  font-size: 1.7rem;
  color: var(--text);
  margin-bottom: 0.3rem;
  font-weight: 700;
}

.client-info span {
  font-size: 1.4rem;
  color: var(--primary);
  font-weight: 500;
}

/* --- Contact Section --- */
#contact {
  background-color: #111;
  color: var(--white);
}

#contact .section-header h2 {
  color: var(--white);
}

#contact .section-header p {
  color: #aaa;
}

.contact-wrapper {
  max-width: 900px;
  margin: 0 auto;
}

.contact-form {
  background: var(--white);
  padding: 5rem;
  border-radius: var(--radius);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
  color: var(--text);
  margin-top: 4rem;
}

.contact-form .btn {
  width: 100%;
  margin-top: 1rem;
}

.form-group {
  margin-bottom: 2.5rem;
}

.form-group label {
  display: block;
  margin-bottom: 1rem;
  font-weight: 600;
  font-size: 1.5rem;
  color: var(--text);
}

.form-control {
  width: 100%;
  padding: 1.5rem;
  background: #f8f9fa;
  border: 1px solid #e1e1e1;
  border-radius: 0.8rem;
  font-family: inherit;
  font-size: 1.6rem;
  transition: var(--transition);
  color: var(--text);
}

.form-control:focus {
  outline: none;
  background: var(--white);
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(100, 148, 62, 0.15);
}

.contact-info-bar {
  display: flex;
  justify-content: center;
  gap: 2rem;
  flex-wrap: wrap;
  margin-top: 5rem;
}

.contact-pill {
  display: flex;
  align-items: center;
  gap: 1.2rem;
  background: rgba(255, 255, 255, 0.08);
  padding: 1.2rem 2.5rem;
  border-radius: 50px;
  font-weight: 500;
  font-size: 1.5rem;
  color: var(--white);
  transition: var(--transition);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.contact-pill:hover {
  transform: translateY(-3px);
  background: var(--primary);
  border-color: var(--primary);
  color: var(--white);
}

/* --- Footer --- */
footer {
  background: #000;
  color: #888;
  text-align: center;
  padding: 4rem 0;
  font-size: 1.4rem;
  border-top: 1px solid #222;
}

/* --- Animations --- */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s cubic-bezier(0.25, 0.8, 0.25, 1);
  will-change: opacity, transform;
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

/* --- Media Queries (RESPONSIVENESS) --- */
@media (max-width: 1200px) {
  html { font-size: 58%; }  
  .container { max-width: 960px; }
}

@media (max-width: 992px) {
  html { font-size: 56%; }
  .container { max-width: 720px; }
  
  .hero-content h1 { font-size: 4.8rem; }
  
  .contact-form { padding: 4rem 3rem; }
}

@media (max-width: 768px) {
  /* html { font-size: 55%; } */
  .container { max-width: 540px; padding: 0 2rem; }
  
  header { padding: 1rem 0; }
  section { padding: 6rem 0; }
  
  .hero-content h1 { font-size: 3.8rem; }
  .hero-content p { font-size: 1.8rem; }
  .hero-buttons { flex-direction: column; gap: 1rem; }
  .hero-buttons .btn { width: 100%; }

  .hamburger {
    display: block;
    position: relative;
    z-index: 1001;
  }

  /* Mobile Nav Logic */
  .nav-links {
    position: fixed;
    top: 0; 
    right: -100%;
    background: var(--white);
    height: 100vh;
    width: 280px;
    flex-direction: column;
    padding: 8rem 3rem 4rem;
    box-shadow: -5px 0 20px rgba(0, 0, 0, 0.1);
    transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    align-items: flex-start;
    gap: 2rem;
    border-left: 1px solid #eee;
    z-index: 1000;
    overflow-y: auto;
  }

  .nav-links.active { right: 0; }
  
  .nav-links a {
    font-size: 2rem;
    display: block;
    width: 100%;
    padding: 1rem 0;
    border-bottom: 1px solid #f0f0f0;
  }

  /* Resize floating icons on mobile */
  .hero-icon { font-size: 4rem; opacity: 0.40; }
  .hero-icon:nth-child(even) { font-size: 3rem; }

  .contact-info-bar { flex-direction: column; align-items: stretch; gap: 1rem; }
  .contact-pill { justify-content: center; }
  
  .clean-card:hover, .project-card:hover { transform: none; }
}

@media (max-width: 480px) {
  /* html { font-size: 50%; } */
  .container { width: 100%; padding: 0 1.5rem; }
  
  .hero-content h1 { font-size: 3.2rem; }
  .section-header h2 { font-size: 3rem; }
  
  .about-grid, .services-grid, .process-steps, .projects-grid, .why-grid, .testimonials-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
  
  .contact-form { padding: 3rem 2rem; }
}
