@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600;700&display=swap');

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

body {
  font-family: 'Poppins', sans-serif;
  background: #FFF1CB;
  position: relative;
  overflow-x:hidden ;

}

#preloader {
  position: fixed;
  inset: 0;
  background: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 99999;
}

/* HTML: <div class="loader"></div> */
.loader {
  width: 80px;
  aspect-ratio: 1;
  display: grid;
  color: #8d7958;
  -webkit-mask:radial-gradient(circle 5px,#0000 90%,#000);
  animation: l3 1.5s infinite linear;
}
.loader:before,
.loader:after {
  content: "";
  grid-area: 1/1;
  background: 
    radial-gradient(farthest-side at bottom left, currentColor 94%,#0000) top left, 
    radial-gradient(farthest-side at top right  , currentColor 94%,#0000) bottom right;
  background-size: 63% 50%;
  background-repeat: no-repeat;
  -webkit-mask: 
    radial-gradient(65% 110% at bottom left, #0000 94%,#000) top left, 
    radial-gradient(65% 110% at top   right, #0000 94%,#000) bottom right;
  -webkit-mask-size: 62% 50%;
  -webkit-mask-repeat: no-repeat;
}
.loader:after {
  transform: rotate(90deg);
}
@keyframes l3 { 
  100%{transform: rotate(1turn)}
}


/* Bubble */
.bubble {
  position: absolute;
  width: 80px;
  height: 80px;
  background: rgba(147, 102, 130, 0.16);
  border-radius: 50%;
  z-index: -1;
}

/* Container */
.container {
  width: 100vw;
  max-width: 1200px;
  margin: 0 auto;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 50px;
}

/* Header */
header {
  background: rgba(255, 241, 203, 0.62);
  position: fixed;
  top: 14px;
  left: 50%;
  transform: translateX(-50%);
  width: min(92%, 1120px);
  z-index: 1000;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 28px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.55);
  box-shadow: 0 14px 35px rgba(95, 83, 48, 0.18);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

/* Logo */
.logo {
  color: #7e4f00;
  font-size: 20px;
  font-weight: 700;
  letter-spacing: 0.04em;
  cursor: pointer;
}

.logo-link {
  display: inline-flex;
  align-items: center;
}

header a {
  text-decoration: none;
}

header a h1 {
  color: #7e4f00;
}

/* Navigation Menu */
.navlist {
  display: flex;
  gap: 10px;
  align-items: center;
  margin-left: auto;
}

.navlist li {
  list-style: none;
  position: relative;
}

.navlist li a {
  color: #2f3b3d;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.01em;
  text-decoration: none;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 999px;
  padding: 8px 15px;
  background: rgba(255, 255, 255, 0.12);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.25);
  transition: all 0.28s ease;
  position: relative;
  overflow: hidden;
}

.navlist li a::after {
  content: "";
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 5px;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, #b07915, #d09b32);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.26s ease;
}

.navlist li a:hover {
  border-color: rgba(255, 255, 255, 0.78);
  background: rgba(255, 255, 255, 0.62);
  color: #1d2728;
  transform: translateY(-1px);
}

.navlist li a:hover::after,
.navlist li a:focus-visible::after {
  transform: scaleX(1);
}

.navlist li a:focus-visible {
  outline: 2px solid #b07915;
  outline-offset: 2px;
}

/* Hamburger Icon */
#menu-icon {
  display: none;
  font-size: 24px;
  color: #555879;
  cursor: pointer;
}
/* ================= HERO SECTION ================= */
.hero-section {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(92%, 1120px);
  margin: 0 auto;
  min-height: calc(100vh - 80px);
  padding: 120px 0 56px;
  color: #2f2f2f;
  gap: 40px;
}

.heroleft {
  flex: 1;
  max-width: 560px;
}

/* Greeting */
.heroleft h2 {
  font-size: 2rem;
  margin-bottom: 10px;
  color: #2f2f2f;
}

.heroleft span {
  color: #8a5e06;
}

/* ================= TYPING ANIMATION ================= */
/* ================= TYPING ANIMATION (FIXED – NO IMAGE SHIFT) ================= */
.typing-text {
  font-size: 28px;
  font-weight: bold;
  margin-bottom: 14px;
  color: #7d5605;

  /* IMPORTANT FIX */
  display: inline-block;
  width: 32ch;              /* reserve space */
  white-space: nowrap;
  overflow: hidden;

  /* typing effect without layout shift */
  clip-path: inset(0 100% 0 0);
  animation: typing 2.5s steps(28, end) forwards,
             blink 0.8s step-end infinite;
}

/* Reveal text instead of changing width */
@keyframes typing {
  from {
    clip-path: inset(0 100% 0 0);
  }
  to {
    clip-path: inset(0 0 0 0);
  }
}

@keyframes blink {
  50% {
    border-color: transparent;
  }
}

@keyframes erase {
  from {
    clip-path: inset(0 0 0 0);
  }
  to {
    clip-path: inset(0 100% 0 0);
  }
}


/* ================= TAGLINE ================= */
.tagline {
  margin-top: 10px;
  color: #4f4f4f;
  max-width: 420px;
  font-size: 16px;
  line-height: 1.6;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 24px;
}

/* ================= BUTTON ================= */
.btn {
  display: inline-block;
  margin-top: 0;
  padding: 10px 28px;
  background: linear-gradient(135deg, #8a5e06, #c68b16);
  color: #ffffff;
  border-radius: 30px;
  border: 1px solid transparent;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 22px rgba(128, 92, 26, 0.28);
}

.btn-outline {
  background: transparent;
  color: #7d5605;
  border-color: rgba(125, 86, 5, 0.35);
}

.btn-outline:hover {
  background: rgba(255, 255, 255, 0.68);
  color: #5f4102;
}

/* ================= SOCIAL LINKS ================= */
.hero-left-links-container {
  display: flex;
  justify-content: flex-start;
}

.hero-left-links {
  display: flex;
  gap: 15px;
  margin-top: 25px;
}

.hero-left-links-icons {
  font-size: 30px;
  color:#8A5E06;
  transition: transform 0.3s ease, color 0.3s ease;
  padding: 12px;
}

.hero-left-links-icons:hover {
  background: rgba(255, 255, 255, 0.92);
  transform: translateY(-4px);
  padding: 12px;  
  border-radius: 50%;
  
}

/* ================= HERO IMAGE ================= */
.hero-right img {
  width: min(420px, 88vw);
  animation: float 3s ease-in-out infinite;
  filter: drop-shadow(0 18px 30px rgba(118, 94, 40, 0.2));
}

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

/* About Section */
.about-me {
  background-color: #FFF1CB;
  padding: 100px 10%;
  text-align: center;
  color: #333;
  opacity: 0;
  transform: translateY(50px);
  transition: all 0.8s ease-in-out;
}

.about-me.visible {
  opacity: 1;
  transform: translateY(0);
}

.about-me h2 {
  font-size: 2.5rem;
  margin-bottom: 20px;
  color: #9b59b6;
}

.about-me p {
  font-size: 1.1rem;
  max-width: 800px;
  margin: 0 auto 30px auto;
  line-height: 1.6;
  color: #555;
}

/* Glass Shield */
.projects-glass {
  max-width: 1100px;
  margin: 80px auto;
  padding: 24px;
  border-radius: 24px;
  box-shadow: 0 18px 45px rgba(182, 181, 181, 0.4);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px) saturate(150%);
  color: #ae70e7;
  box-sizing: border-box;
} /* [web:23][web:28][web:51] */

.projects-glass-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 18px;
  font-size: 0.85rem;
  opacity: 0.9;
}

.projects-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.projects-dot--green { background: #27ae60; }
.projects-dot--amber { background: #f1c40f; }
.projects-dot--red { background: #e74c3c; }

.projects-label {
  margin-left: 8px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-size: 0.75rem;
}
.projects-glass-body h2 {
  font-size: 1.8rem;
  margin-bottom: 6px;
}

.projects-glass-body > p {
  font-size: 0.95rem;
  color: rgba(183, 6, 6, 0.85);
  margin-bottom: 22px;
}

/* Responsive grid for laptop & below */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
} /* [web:41][web:52] */
.project-card {
  display: flex;
  flex-direction: column;
  padding: 18px 16px;
  border-radius: 16px;
  background: rgba(250, 234, 189, 0.25);
  border: 1px solid rgba(255, 255, 255, 0.35);
  box-shadow: 0 10px 30px rgba(198, 198, 198, 0.35);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.project-image-wrapper {
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 14px;
  background: linear-gradient(135deg, rgba(155, 89, 182, 0.18), rgba(255, 209, 102, 0.2));
}

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

.project-card h3 {
  font-size: 1.05rem;
  margin-bottom: 6px;
}

.project-card p {
  font-size: 0.9rem;
  color: rgba(82, 81, 81, 0.9);
  margin-bottom: 12px;
}

.project-link {
  font-size: 0.9rem;
  color: #f1c40f;
  text-decoration: none;
  font-weight: 500;
  margin-top: auto;
}

.project-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 40px rgba(185, 184, 184, 0.5);
  border-color: rgba(255, 255, 255, 0.4);
}

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



@media (max-width: 1024px) {
  .projects-glass {
    margin: 60px 24px;
  }
}

@media (max-width: 768px) {
  .projects-glass {
    padding: 20px 16px;
    margin: 50px 16px;
  }

  .projects-glass-body h2 {
    font-size: 1.6rem;
  }

  .projects-glass-body > p {
    font-size: 0.9rem;
  }
}

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

  .project-card {
    padding: 16px 14px;
  }
}



/* Footer */
footer {
  background: linear-gradient(180deg, #fff1cb 0%, #f7e2a8 100%);
  padding: 56px 10% 36px;
  font-family: 'Poppins', sans-serif;
  color: #2f2f2f;
}

.footer {
  display: flex;
  flex-wrap: wrap;
  gap: 22px;
  justify-content: space-between;
}

.footer-content {
  flex: 1 1 220px;
  background: rgba(255, 255, 255, 0.42);
  border: 1px solid rgba(255, 255, 255, 0.68);
  border-radius: 18px;
  padding: 18px;
  box-shadow: 0 10px 24px rgba(88, 74, 38, 0.08);
}

.footer-brand {
  flex: 1.4 1 260px;
}

.footer-logo {
  font-size: 24px;
  font-weight: 700;
  color: #7d5605;
  text-decoration: none;
}

.footer-tagline {
  margin-top: 8px;
  color: #5a4d2f;
  font-size: 13px;
}

.footer-about p {
  margin-top: 12px;
  line-height: 1.6;
  color: #4b4b4b;
}

.footer-content h4 {
  font-size: 18px;
  margin-bottom: 15px;
  color: #7d5605;
}

.footer-items {
  text-decoration: none;
  color: #4f4f4f;
  transition: 0.3s;
}

.footer-items:hover {
  color: #7d5605;
}

/* Sub Footer */
.sub-footer {
  text-align: center;
  margin-top: 30px;
  font-size: 14px;
  color: #565656;
}

.sub-footer a {
  color: #7d5605;
  text-decoration: none;
}

.footer-heart {
  color: #b33657;
  margin: 0 2px;
}

.sub-footer a:hover {
  text-decoration: underline;
}

hr {
  margin-top: 30px;
  border: none;
  border-top: 1px solid #ccc;
}
ul li{
  list-style: none;
}


/* Get in touch  */

@media (max-width: 900px) {
  .projects-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .projects-glass {
    margin-top: 28px;
  }
  .projects-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}




/* Responsive Design */
@media screen and (max-width: 900px) {
  .hero-section {
    flex-direction: column;
    text-align: center;
    min-height: auto;
    padding: 120px 0 40px;
  }

  .heroleft {
    align-items: center;
  }

  .typing-text {
    font-size: 20px;
    margin-left: 0; /* FIX: remove forced offset */
    width: 28ch;
  }

  .tagline {
    font-size: 15px;
    margin: 0 auto;
  }

  .hero-left-links-container {
    justify-content: center;
  }

  .hero-actions {
    justify-content: center;
    flex-wrap: wrap;
  }

  .hero-right img {
    margin-top: 40px;
    width: 80%;
    max-width: 450px;
  }

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

  .footer-content {
    text-align: center;
  }

 
}

@media screen and (max-width: 768px) {
  #menu-icon {
    display: block;
    padding: 10px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.52);
    border: 1px solid rgba(255, 255, 255, 0.7);
  }

  .navlist {
    display: none;
    flex-direction: column;
    position: absolute;
    top: calc(100% + 12px);
    right: 0;
    border-radius: 20px;
    width: min(260px, 78vw);
    background: rgba(255, 250, 236, 0.95);
    border: 1px solid rgba(255, 255, 255, 0.65);
    box-shadow: 0 20px 40px rgba(90, 72, 37, 0.18);
    padding: 16px;
    gap: 8px;
    transition: all 0.5s ease;
  }

  .navlist.open {
    display: flex;
  }

  .navlist li a {
    color: #334042;
    font-size: 16px;
    width: 100%;
    display: block;
    background: rgba(255, 255, 255, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.8);
    border-radius: 12px;
    padding: 11px 13px;
    box-shadow: none;
  }

  .navlist li a:hover {
    background: rgba(255, 255, 255, 0.92);
    transform: translateX(3px);
  }

  .navlist li a::after {
    left: 10px;
    right: 10px;
    bottom: 6px;
  }

  .about-me {
    padding: 80px 5%;
  }

  .about-me h2 {
    font-size: 2rem;
  }

  .about-me p {
    font-size: 1rem;
  }
  .hero-section {
    padding: 104px 0 24px;
  }

  .heroleft h2 {
    font-size: 1.6rem;
  }

  .typing-text {
    font-size: 18px;
  }

  .tagline {
    font-size: 14px;
  }

  .btn {
    padding: 9px 22px;
    font-size: 14px;
  }

  .hero-left-links-icons {
    font-size: 26px;
  }

  .hero-right img {
    width: 90%;
  }

  header {
    top: 10px;
    width: min(95%, 1120px);
    padding: 12px 16px;
    border-radius: 18px;
  }
}

/* Certificates Glass Section */
.certificates-glass {
  max-width: 1100px;
  margin: 80px auto;
  padding: 32px;
  border-radius: 24px;
  box-shadow: 0 18px 45px rgba(182, 181, 181, 0.4);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px) saturate(150%);
  background: rgba(252, 239, 204, 0.85);
  color: #333;
  box-sizing: border-box;
  border: 1px solid rgba(255, 255, 255, 0.3);
}

.certificates-glass-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 24px;
  font-size: 0.85rem;
  opacity: 0.9;
}

.certificates-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  animation: pulse 2s infinite;
}

.certificates-dot--green { background: #27ae60; }
.certificates-dot--amber { background: #f1c40f; animation-delay: 0.3s; }
.certificates-dot--red { background: #e74c3c; animation-delay: 0.6s; }

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.7; transform: scale(1.1); }
}

.certificates-label {
  margin-left: 8px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-size: 0.75rem;
  font-weight: 600;
  color: #9b59b6;
}

.certificates-glass-body h2 {
  font-size: 2rem;
  margin-bottom: 8px;
  color: #333;
  font-weight: 700;
}

.certificates-glass-body > p {
  font-size: 1rem;
  color: rgba(82, 81, 81, 0.85);
  margin-bottom: 32px;
  line-height: 1.6;
}

/* Certificates Grid */
.certificates-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 24px;
}

.certificate-card {
  display: flex;
  flex-direction: column;
  padding: 24px;
  border-radius: 20px;
  background: rgba(250, 234, 189, 0.217);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.4);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
  box-shadow: 0 0 1.6px 1px rgb(210, 142, 255);
}

.certificate-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 1.6px 1px rgb(210, 142, 255);
  background: rgba(250, 234, 189, 0.217);
}

.certificate-icon {
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, #9b59b6, #8e44ad);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  box-shadow: 0 8px 20px rgba(155, 89, 182, 0.3);
  transition: all 0.3s ease;
}

.certificate-card:hover .certificate-icon {
  transform: scale(1.05) rotate(5deg);
}

.certificate-icon i {
  font-size: 24px;
  color: white;
}

.certificate-content h3 {
  font-size: 1.25rem;
  margin-bottom: 8px;
  color: #333;
  font-weight: 600;
  line-height: 1.3;
}

.certificate-content p {
  font-size: 0.95rem;
  color: rgba(82, 81, 81, 0.9);
  margin-bottom: 16px;
  line-height: 1.5;
}

.certificate-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  font-size: 0.85rem;
}

.certificate-date {
  color: #9b59b6;
  font-weight: 500;
}

.certificate-provider {
  color: #27ae60;
  font-weight: 600;
  background: rgba(39, 174, 96, 0.1);
  padding: 4px 12px;
  border-radius: 12px;
  font-size: 0.8rem;
}

.certificate-link {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.9rem;
  color: #9b59b6;
  text-decoration: none;
  font-weight: 500;
  padding-top: 12px;
  border-top: 1px solid rgba(155, 89, 182, 0.2);
  transition: all 0.3s ease;
}

.certificate-link:hover {
  color: #8e44ad;
  transform: translateX(4px);
}

.certificate-link i {
  font-size: 0.85rem;
  transition: transform 0.3s ease;
}

.certificate-link:hover i {
  transform: scale(1.2);
}

/* ================= CONTACT SECTION ================= */

.contact-section {
  position: relative;
  overflow: hidden;

  max-width: 1120px;
  width: calc(100% - 32px);

  margin: 80px auto;
  padding: 42px 32px;

  border-radius: 28px;

  background: rgba(255, 248, 228, 0.72);

  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);

  border: 1px solid rgba(255,255,255,0.55);

  box-shadow:
    0 18px 45px rgba(95, 83, 48, 0.15),
    inset 0 1px 0 rgba(255,255,255,0.35);
}

/* Decorative Blobs */

.contact-section::before,
.contact-section::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  z-index: -1;
}

.contact-section::before {
  width: 180px;
  height: 180px;

  top: -60px;
  right: -60px;

  background: rgba(155, 89, 182, 0.08);
}

.contact-section::after {
  width: 140px;
  height: 140px;

  bottom: -40px;
  left: -40px;

  background: rgba(208, 155, 50, 0.08);
}

/* ================= HEADER ================= */

.contact-header {
  text-align: center;
  margin-bottom: 34px;
}

.contact-header h2 {
  font-size: 2.2rem;
  font-weight: 700;

  color: #8A5E06;

  margin-bottom: 10px;
}

.contact-header p {
  max-width: 620px;

  margin: 0 auto;

  color: #5c5c5c;

  font-size: 15px;
  line-height: 1.7;
}

/* ================= FORM ================= */

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 22px;
}

/* Grid */

.form-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

/* Group */

.form-group {
  display: flex;
  flex-direction: column;
}

/* Labels */

.form-group label {
  margin-bottom: 8px;

  font-size: 14px;
  font-weight: 600;

  color: #7D5605;
}

/* Inputs */

.contact-form input,
.contact-form textarea {
  width: 100%;

  padding: 14px 18px;

  border-radius: 16px;

  border: 1px solid rgba(138, 94, 6, 0.18);

  background: rgba(255,255,255,0.68);

  font-family: 'Poppins', sans-serif;

  font-size: 15px;
  color: #333;

  outline: none;

  transition: all 0.3s ease;

  box-shadow:
    inset 0 1px 2px rgba(255,255,255,0.4),
    0 4px 10px rgba(0,0,0,0.03);
}

/* Focus */

.contact-form input:focus,
.contact-form textarea:focus {
  border-color: #c68b16;

  background: rgba(255,255,255,0.95);

  box-shadow:
    0 0 0 4px rgba(198,139,22,0.12),
    0 12px 26px rgba(198,139,22,0.12);
}

/* Placeholder */

.contact-form input::placeholder,
.contact-form textarea::placeholder {
  color: #8b8b8b;
}

/* Textarea */

.contact-form textarea {
  min-height: 170px;
  resize: vertical;
}

/* ================= BUTTON ================= */

.contact-btn {
  align-self: flex-start;

  padding: 14px 34px;

  border: none;
  border-radius: 999px;

  background: linear-gradient(
    135deg,
    #8A5E06,
    #D09B32
  );

  color: white;

  font-size: 15px;
  font-weight: 600;

  cursor: pointer;

  transition: all 0.3s ease;

  box-shadow:
    0 12px 24px rgba(138,94,6,0.22);
}

.contact-btn:hover {
  transform: translateY(-3px);

  box-shadow:
    0 18px 35px rgba(138,94,6,0.28);
}

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

@media (max-width: 768px) {

  .contact-section {
    width: calc(100% - 24px);

    margin: 60px auto;

    padding: 32px 20px;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .contact-header h2 {
    font-size: 1.8rem;
  }

  .contact-header p {
    font-size: 14px;
  }

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

@media (max-width: 480px) {

  .contact-section {
    width: calc(100% - 20px);

    margin: 40px auto;

    padding: 24px 16px;

    border-radius: 22px;
  }

  .contact-header h2 {
    font-size: 1.6rem;
  }

  .contact-form input,
  .contact-form textarea {
    padding: 13px 15px;

    font-size: 14px;
  }

  .contact-btn {
    padding: 13px 24px;

    font-size: 14px;
  }
}

/* Responsive Design */
@media (max-width: 1024px) {
  .certificates-glass {
    margin: 60px 24px;
    padding: 28px;
  }
}

@media (max-width: 768px) {
  .certificates-glass {
    padding: 24px 20px;
    margin: 50px 16px;
  }

  .certificates-glass-body h2 {
    font-size: 1.75rem;
  }

  .certificates-grid {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
  }

  .certificate-card {
    padding: 20px;
  }
}

@media (max-width: 640px) {
  .certificates-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .certificates-glass-body h2 {
    font-size: 1.6rem;
  }

  .certificate-meta {
    flex-direction: column;
    gap: 4px;
    align-items: flex-start;
  }
}

@media (max-width: 480px) {
  .certificates-glass {
    padding: 20px 16px;
    margin: 40px 12px;
  }

  .certificate-card {
    padding: 20px 16px;
  }

  .certificate-icon {
    width: 50px;
    height: 50px;
  }

  .certificate-icon i {
    font-size: 20px;
  }

  .footer-content {
    padding: 16px;
  }
}

/* Image popup */
.image-popup {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(18, 16, 12, 0.72);
  padding: 24px;
  z-index: 1200;
}

.image-popup.open {
  display: flex;
}

.image-popup img {
  width: min(920px, 95vw);
  max-height: 86vh;
  object-fit: contain;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.48);
  box-shadow: 0 26px 60px rgba(0, 0, 0, 0.35);
  background: #fff;
}

.image-popup-close {
  position: absolute;
  top: 20px;
  right: 24px;
  border: none;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
  color: #402e08;
  background: rgba(255, 255, 255, 0.85);
}

.project-image,
.hero-right img {
  cursor: zoom-in;
}
