/* Consolidated, responsive stylesheet
   Keeps all existing HTML/content intact. Fixes navbar/mobile toggle, centers hero (.lead),
   and ensures consistent spacing across desktop/tablet/mobile.
*/

:root{
  --header-height-desktop:72px;
  --header-height-mobile:64px;
  --header-height:72px; /* updated via media queries */
  --max-site-width:1200px;
  --accent:#1f77b4;
  --text:#0b0b0b;
  --muted:rgba(11,11,11,0.7);
  --bg:#ffffff;
  --radius:12px;
}

/* Reset + base */
*{box-sizing:border-box}
html,body{height:100%; scroll-behavior:smooth}
body{
  margin:0;
  font-family:"Poppins", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color:var(--text);
  background:var(--bg);
  -webkit-font-smoothing:antialiased;
  -moz-osx-font-smoothing:grayscale;
  min-height:100vh;
  padding-top: var(--header-height); /* reserve space for fixed header */
}

/* Sticky / fixed navbar (full width) */
.sticky-nav{
  position:fixed;
  top:0; left:0; right:0;
  width:100%;
  height:var(--header-height);
  z-index:9999;
  display:flex;
  align-items:center;
  background:linear-gradient(180deg, rgba(255,255,255,0.94), rgba(255,255,255,0.88));
  backdrop-filter: blur(6px);
  box-shadow: 0 6px 20px rgba(10,10,10,0.05);
}

/* inner navbar container (centered content) */
.navbar{
  width:100%;
  max-width:var(--max-site-width);
  margin:0 auto;
  padding:0 1.25rem;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:1rem;
}

/* brand / logo */
.brand{ display:flex; align-items:center; gap:12px; }
.brand .logo{ height:44px; width:auto; display:block; }

/* desktop links */
.nav-links{
  display:flex;
  gap:1rem;
  align-items:center;
  list-style:none;
  margin:0; padding:0;
}
.nav-link{
  text-decoration:none;
  color:var(--text);
  padding:10px 12px;
  border-radius:8px;
  font-weight:600;
  font-size:0.95rem;
}
.nav-link:hover, .nav-link:focus{ background:rgba(31,119,180,0.08); color:var(--accent); outline:none }

/* Cool animated nav toggle (hamburger -> X) */
.menu-toggle {
  display: none; /* shown on small screens via media query below */
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 44px;
  border-radius: 12px;
  border: 0;
  cursor: pointer;
  padding: 6px;
  background: linear-gradient(135deg, rgba(31,119,180,0.95), rgba(42,157,244,0.95));
  box-shadow: 0 10px 30px rgba(16,24,40,0.12);
  transition: transform .16s ease, box-shadow .16s ease, background .18s ease;
  color: #fff;
}

/* Hidden decorative icon replaced by custom hamburger */
.menu-toggle .hamburger { position: relative; width: 22px; height: 14px; display:inline-block; }
.menu-toggle .hamburger span {
  position: absolute;
  left: 0;
  right: 0;
  height: 2px;
  background: #fff;
  border-radius: 2px;
  transition: transform .22s cubic-bezier(.2,.9,.3,1), opacity .18s ease;
}
.menu-toggle .hamburger span:nth-child(1){ top: 0; }
.menu-toggle .hamburger span:nth-child(2){ top: 50%; transform: translateY(-50%); }
.menu-toggle .hamburger span:nth-child(3){ bottom: 0; }

/* Hover / focus micro-interaction */
.menu-toggle:hover { transform: translateY(-3px) scale(1.03); box-shadow: 0 16px 40px rgba(16,24,40,0.18); }
.menu-toggle:focus { outline: 3px solid rgba(255,255,255,0.16); outline-offset: 4px; }

/* When open: morph to X using aria-expanded attribute (no extra JS needed) */
.menu-toggle[aria-expanded="true"] {
  background: linear-gradient(135deg, rgba(42,157,244,0.98), rgba(31,119,180,0.98));
}
.menu-toggle[aria-expanded="true"] .hamburger span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.menu-toggle[aria-expanded="true"] .hamburger span:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}
.menu-toggle[aria-expanded="true"] .hamburger span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* HERO */
.hero{
  position:relative;
  min-height:calc(100vh - var(--header-height));
  display:flex;
  align-items:center;
  justify-content:center;
  padding:2.5rem 1.25rem;
  overflow:hidden;
}
#vanta-bg{ position:absolute; inset:0; z-index:1; }

/* hero content */
.detel{
  position:relative;
  z-index:2;
  width:100%;
  max-width:1100px;
  margin:0 auto;
  text-align:center;
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  gap:0.6rem;
  padding:2rem;
}

/* headline */
#hero-title{ margin:0; font-weight:800; letter-spacing:0.6px; font-size:clamp(3rem,8vw,6rem); line-height:0.95; text-transform:uppercase; color:var(--text); }
#hero-title span{ color:var(--accent) }

/* lead paragraph (centered & responsive) */
.lead{
  margin:0;
  color:var(--text);
  font-weight:600;
  font-size:clamp(1.15rem,2.2vw,1.6rem);
  line-height:1.2;
  max-width:920px;
  text-align:center;
}

/* supporting paragraph */
.detel > p:nth-of-type(2){
  margin:0.6rem 0 0;
  color:var(--muted);
  font-size:clamp(0.95rem,1.4vw,1.125rem);
  max-width:900px;
  text-align:center;
}

/* CTA buttons */
.hero-actions{
  margin-top:1.25rem;
  display:inline-flex;
  gap:0.9rem;
  justify-content:center;
  flex-wrap:wrap;
}
.btn{
  display:inline-flex;
  align-items:center;
  gap:0.6rem;
  padding:0.9rem 1.4rem;
  border-radius:var(--radius);
  font-weight:700;
  font-size:1.05rem;
  text-decoration:none;
  transition:transform .12s ease, box-shadow .12s ease;
  box-shadow: 0 8px 24px rgba(16,24,40,0.06);
}
.btn.primary{ background:linear-gradient(90deg,var(--accent),#2a9df4); color:#fff; border:0; }
.btn.ghost{ background:rgba(255,255,255,0.06); color:var(--text); border:1px solid rgba(11,11,11,0.06); }
.btn:hover,.btn:focus{ transform:translateY(-3px); box-shadow:0 16px 40px rgba(16,24,40,0.12) }

/* ABOUT / SKILLS / PROJECTS */
section{ padding:4rem 1.25rem; max-width:var(--max-site-width); margin:0 auto; box-sizing:border-box; }
.about-flex{ display:flex; gap:2rem; align-items:flex-start; justify-content:space-between; flex-wrap:wrap; }
.about-box{ flex:1 1 420px; min-width:280px; }
.social {
  flex: 0 0 180px;
  display: flex;
  gap: 12px;
  align-items: center;
  justify-content: center; /* Center the social links */
}

.icon-box {
    width: 44px;
    height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    background: rgba(31,119,180,0.06);
    color: var(--accent);
    transition: transform .16s, background .16s, color .16s;
}

.icon-box:hover {
    background: linear-gradient(135deg, var(--accent), #2a9df4);
    transform: scale(1.1); /* Scale effect on hover */
    color: white; /* Change icon color on hover */
}

/* Enhanced Featured Projects Section */
.projects-section {
  padding: 5rem 1.25rem;
  max-width: var(--max-site-width);
  margin: 0 auto;
}

.projects-section h2 {
  text-align: center;
  font-size: 2.5rem;
  font-weight: 800;
  margin-bottom: 3rem;
  color: var(--text);
  position: relative;
}

.projects-section h2::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 4px;
  background: linear-gradient(90deg, var(--accent), #2a9df4);
  border-radius: 2px;
}

/* Modern Projects Grid */
.projects-container {
  display: grid;
  grid-template-columns: repeat(1, 1fr);
  gap: 2rem;
  padding: 1rem 0;
}

.project {
  background: linear-gradient(180deg, rgba(255,255,255,0.98), rgba(250,250,255,0.98));
  border-radius: 20px;
  padding: 0;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(13,30,70,0.08);
  border: 1px solid rgba(11,11,11,0.03);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
}

.project::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--accent), #2a9df4, #ff7f50);
  opacity: 0.9;
}

.project:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 30px 80px rgba(13,30,70,0.15);
}

.project-title {
  background: linear-gradient(135deg, rgba(31,119,180,0.95), rgba(42,157,244,0.95));
  color: white;
  font-size: 1.3rem;
  font-weight: 700;
  padding: 1.5rem;
  margin: 0;
  text-align: center;
  letter-spacing: 0.5px;
}

.project-content {
  padding: 2rem;
  color: var(--text);
}

.project-content h3 {
  font-size: 1.4rem;
  font-weight: 700;
  margin: 0 0 1rem 0;
  color: var(--text);
  line-height: 1.3;
}

.project-content p {
  color: var(--muted);
  line-height: 1.6;
  margin-bottom: 1.5rem;
  font-size: 1rem;
}

/* Tech Tags Styling */
.tech-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}

.tech-tags span {
  background: linear-gradient(135deg, rgba(31,119,180,0.1), rgba(42,157,244,0.1));
  color: var(--accent);
  padding: 0.4rem 0.8rem;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 600;
  border: 1px solid rgba(31,119,180,0.2);
  transition: all 0.2s ease;
}

.tech-tags span:hover {
  background: linear-gradient(135deg, var(--accent), #2a9df4);
  color: white;
  transform: translateY(-2px);
}

/* Project Actions */
.project-actions {
  display: flex;
  gap: 1rem;
  align-items: center;
}

.view-gallery, .view-code {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.8rem 1.2rem;
  border-radius: 12px;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  transition: all 0.2s ease;
  gap: 0.5rem;
}

.view-gallery {
  background: linear-gradient(135deg, rgba(31,119,180,0.1), rgba(42,157,244,0.1));
  color: var(--accent);
  border: 1px solid rgba(31,119,180,0.2);
}

.view-code {
  background: linear-gradient(135deg, var(--accent), #2a9df4);
  color: white;
  border: none;
}

.view-gallery:hover {
  background: linear-gradient(135deg, var(--accent), #2a9df4);
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(31,119,180,0.2);
}

.view-code:hover {
  background: linear-gradient(135deg, #2a9df4, var(--accent));
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(31,119,180,0.3);
}

/* Project Hover Effects */
.project:hover .project-title {
  background: linear-gradient(135deg, var(--accent), #2a9df4);
}

.project:hover .view-gallery {
  background: linear-gradient(135deg, var(--accent), #2a9df4);
  color: white;
}

/* gallery modal */
.gallery-modal{ display:none; position:fixed; z-index:9999; left:0; top:0; width:100vw; height:100vh; background-color:rgba(0,0,0,0.9); justify-content:center; align-items:center; flex-direction:column; }
.gallery-modal.active{ display:flex }
.gallery-modal { padding: 24px; box-sizing: border-box; }
.gallery-modal .gallery-content {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  max-width: 92vw;
  width: 100%;
  box-sizing: border-box;
}
.gallery-modal .gallery-image {
  max-width: 90%;
  max-height: 80vh;
  display: block;
  border-radius: 10px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.45);
}

/* visible, high-contrast close button */
.gallery-modal .close-btn {
  position: absolute;
  top: 8px;
  right: 8px;
  z-index: 40;
  background: rgba(0,0,0,0.65);
  color: #fff;
  border: none;
  padding: 8px 10px;
  border-radius: 10px;
  cursor: pointer;
  font-size: 1.05rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 26px rgba(0,0,0,0.45);
}

/* On wide screens, show the close button floating to the right of the image (next to it) */
@media (min-width: 900px) {
  .gallery-modal .gallery-content { max-width: 80vw; }
  .gallery-modal .gallery-image { max-width: 70%; }
  .gallery-modal .close-btn {
    right: -64px;
    top: 50%;
    transform: translateY(-50%);
    padding: 12px 14px;
    border-radius: 12px;
    font-size: 1.15rem;
  }
}

/* On small screens keep it inside the image area where it's easy to reach */
@media (max-width: 899px) {
  .gallery-modal .gallery-image { max-width: 96%; }
  .gallery-modal .close-btn {
    right: 10px;
    top: 10px;
    transform: none;
    font-size: 1.05rem;
  }
}

/* Ensure nav buttons are visible and spaced below image */
.gallery-modal .gallery-nav { margin-top: 12px; display:flex; gap:12px; align-items:center; justify-content:center; z-index:40; }

/* minor accessibility improvement for focus state */
.gallery-modal .close-btn:focus {
  outline: 3px solid rgba(255,255,255,0.18);
  outline-offset: 4px;
}

/* ABOUT image defaults (cleaned) */
.about-image img{ width:200px; height:200px; border-radius:50%; object-fit:cover; box-shadow:0 2px 12px rgba(0,0,0,0.08); border:4px solid #f3f3f3; transition:transform .3s, box-shadow .3s; }

/* Web Development Page Specific Styles */
.breadcrumb {
  background: linear-gradient(135deg, rgba(31,119,180,0.05), rgba(42,157,244,0.05));
  padding: 1rem 1.25rem;
  margin-bottom: 2rem;
  position: relative;
  z-index: 2;
}

.breadcrumb-container {
  max-width: var(--max-site-width);
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9rem;
}

.breadcrumb a {
  color: var(--accent);
  text-decoration: none;
  transition: color 0.2s ease;
}

.breadcrumb a:hover {
  color: var(--text);
  text-decoration: underline;
}

.breadcrumb-separator {
  color: var(--muted);
}

/* Service Hero Section */
.service-hero {
  position: relative;
  min-height: 60vh;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 3rem;
  padding: 4rem 1.25rem;
  max-width: var(--max-site-width);
  margin: 0 auto;
  overflow: hidden;
}

.service-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(135deg, rgba(255,255,255,0.5) 0%, rgba(255,255,255,0.6) 100%);
  backdrop-filter: blur(2px);
}

.service-hero-content,
.service-hero-image {
  position: relative;
  z-index: 3;
}

#vanta-bg {
  position: absolute;
  inset: 0;
  z-index: 1;
  border-radius: 16px;
  overflow: hidden;
}

.service-hero-content {
  flex: 1;
  max-width: 600px;
}

.service-hero-content h1 {
  font-size: 3rem;
  font-weight: 800;
  margin-bottom: 1rem;
  color: var(--text);
  line-height: 1.2;
}

.service-subtitle {
  font-size: 1.3rem;
  color: var(--muted);
  margin-bottom: 2rem;
  line-height: 1.6;
}

.service-hero-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.service-hero-image {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
}

.service-icon {
  max-width: 100%;
  height: auto;
  border-radius: 16px;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.15);
  margin: 0 auto; /* Center the icon */
  padding: 1rem; /* Add padding for better spacing */
  display: block; /* Ensure it behaves like a block element */
  object-fit: cover;
}

/* Service Details Section */
.service-details {
  padding: 4rem 1.25rem;
  max-width: var(--max-site-width);
  margin: 0 auto;
}

.service-content {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 3rem;
  align-items: start;
}

.service-description h3 {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  color: var(--text);
}

.service-description p {
  font-size: 1.1rem;
  line-height: 1.7;
  color: var(--muted);
  margin-bottom: 2rem;
}

.service-features h4 {
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
  color: var(--text);
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

.feature {
  background: linear-gradient(180deg, rgba(255,255,255,0.98), rgba(250,250,255,0.98));
  padding: 2rem;
  border-radius: 16px;
  text-align: center;
  box-shadow: 0 8px 32px rgba(13,30,70,0.08);
  border: 1px solid rgba(11,11,11,0.03);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.feature:hover {
  transform: translateY(-5px);
  box-shadow: 0 16px 48px rgba(13,30,70,0.12);
}

.feature i {
  font-size: 2.5rem;
  color: var(--accent);
  margin-bottom: 1rem;
  display: block;
}

.feature h5 {
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 0.8rem;
  color: var(--text);
}

.feature p {
  font-size: 1rem;
  line-height: 1.5;
  color: var(--muted);
  margin: 0;
}

/* Pricing Section */
.service-pricing h4 {
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
  color: var(--text);
}

.pricing-cards {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.pricing-card {
  background: linear-gradient(180deg, rgba(255,255,255,0.98), rgba(250,250,255,0.98));
  padding: 2rem;
  border-radius: 16px;
  box-shadow: 0 8px 32px rgba(13,30,70,0.08);
  border: 1px solid rgba(11,11,11,0.03);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.pricing-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 40px rgba(13,30,70,0.12);
}

.pricing-card.featured {
  border: 2px solid var(--accent);
  transform: scale(1.05);
}

.pricing-card.featured:hover {
  transform: scale(1.05) translateY(-3px);
}

.pricing-card h5 {
  font-size: 1.3rem;
  font-weight: 600;
  margin-bottom: 1rem;
  color: var(--text);
}

.price {
  font-size: 2rem;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 1.5rem;
}

.pricing-card ul {
  list-style: none;
  padding: 0;
  margin: 0 0 2rem 0;
}

.pricing-card li {
  padding: 0.5rem 0;
  color: var(--muted);
  border-bottom: 1px solid rgba(11,11,11,0.1);
}

.pricing-card li:last-child {
  border-bottom: none;
}

/* CTA Section */
.service-cta {
  position: relative;
  padding: 5rem 1.25rem;
  text-align: center;
  overflow: hidden;
}

#vanta-cta-bg {
  position: absolute;
  inset: 0;
  z-index: 1;
}

.cta-content {
  position: relative;
  z-index: 2;
  max-width: 600px;
  margin: 0 auto;
}

.cta-content h3 {
  font-size: 2.2rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: var(--text);
}

.cta-content p {
  font-size: 1.2rem;
  color: var(--muted);
  margin-bottom: 2rem;
  line-height: 1.6;
}

.cta-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* Related Services */
.related-services {
  padding: 4rem 1.25rem;
  max-width: var(--max-site-width);
  margin: 0 auto;
}

.related-services h2 {
  font-size: 2.2rem;
  font-weight: 700;
  text-align: center;
  margin-bottom: 3rem;
  color: var(--text);
}

.related-services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.related-service {
  background: linear-gradient(180deg, rgba(255,255,255,0.98), rgba(250,250,255,0.98));
  padding: 2.5rem;
  border-radius: 16px;
  text-align: center;
  text-decoration: none;
  box-shadow: 0 8px 32px rgba(13,30,70,0.08);
  border: 1px solid rgba(11,11,11,0.03);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  color: inherit;
}

.related-service:hover {
  transform: translateY(-5px);
  box-shadow: 0 16px 48px rgba(13,30,70,0.12);
  text-decoration: none;
}

.related-service i {
  font-size: 3rem;
  color: var(--accent);
  margin-bottom: 1.5rem;
  display: block;
}

.related-service h4 {
  font-size: 1.4rem;
  font-weight: 600;
  margin-bottom: 1rem;
  color: var(--text);
}

.related-service p {
  color: var(--muted);
  line-height: 1.6;
  margin-bottom: 1.5rem;
}

.service-link {
  color: var(--accent);
  font-weight: 600;
  transition: color 0.2s ease;
}

.related-service:hover .service-link {
  color: var(--text);
}

/* Footer */
.footer {
  background: var(--text);
  color: white;
  text-align: center;
  padding: 2rem 1.25rem;
  margin-top: 4rem;
}

/* Responsive Design for Web Development Page */
@media (max-width: 968px) {
  .service-hero {
    flex-direction: column;
    text-align: center;
    gap: 2rem;
    min-height: 50vh; /* Reduced height for tablet/mobile */
  }
  
  .service-hero-content {
    max-width: 100%;
  }
  
  .service-content {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  
  .features-grid {
    grid-template-columns: 1fr;
  }
  
  .service-icon {
    max-width: 80%;
    margin: 0 auto;
  }
}

/* Additional mobile-specific height reduction */
@media (max-width: 768px) {
  .service-hero {
    min-height: 45vh; /* Further reduced height for mobile */
    padding: 3rem 1.25rem; /* Slightly reduced padding */
  }
  
  .service-hero-content h1 {
    font-size: 2.2rem; /* Slightly smaller heading for mobile */
    color: #131314;
  }
  
  .service-subtitle {
    font-size: 1.1rem; /* Slightly smaller subtitle */
    margin-bottom: 1.5rem; /* Reduced margin */
  }
}


@media (max-width: 480px) {
  .service-hero-content h1 {
    font-size: 2rem;
  }
  
  .service-hero-actions,
  .cta-actions {
    flex-direction: column;
    align-items: center;
  }
  
  .service-icon {
    max-width: 70%;
    margin: 0 auto;
  }
  
  .feature,
  .pricing-card,
  .related-service {
    padding: 1.5rem;
  }
}

/* Skills grid */
.skills-container{ display:grid; grid-template-columns:repeat(2,1fr); gap:1rem; max-width:800px; margin:0 auto; }
.skill{ background:#ccd4e0e7; border-radius:12px; padding:1rem; display:flex; flex-direction:column; align-items:center; gap:.5rem; color:#8b5cf6; }
.skill i{ font-size:2rem; }

/* Skills boxes — equal size, centered, clean look */
.skills-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 1rem;
  justify-items: center;
  align-items: center;
  padding: 1rem;
  width: 100%;
  max-width: 900px;
  margin: 0 auto;
}

.skill {
  width: 160px;
  height: 140px;
  background: linear-gradient(180deg, rgba(255,255,255,0.9), rgba(250,250,255,0.98));
  border-radius: 14px;
  box-shadow: 0 8px 28px rgba(13,30,70,0.06);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-align: center;
  padding: 12px;
  transition: transform .22s cubic-bezier(.2,.9,.2,1), box-shadow .22s;
  border: 1px solid rgba(11,11,11,0.035);
}

.skill i {
  font-size: 2.1rem;
  line-height: 1;
  display: block;
}

.skill p {
  margin: 0;
  font-weight: 700;
  color: var(--text);
  font-size: 0.95rem;
}

/* Hover/focus state */
.skill:hover,
.skill:focus-within {
  transform: translateY(-8px);
  box-shadow: 0 20px 50px rgba(13,30,70,0.10);
}

/* Service, cards, hire form and other utility styles retained but cleaned */
.service {
    padding: 4rem 1.25rem;
    max-width: var(--max-site-width);
    margin: 0 auto;
    text-align: center;
}

.service h2 {
    font-size: 2rem;
    margin-bottom: 2rem;
    color: var(--text);
}

.box {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    justify-content: center;
    align-items: stretch;
}

.card {
    background: linear-gradient(180deg, #ffffff, rgba(255,255,255,0.98));
    border-radius: 14px;
    padding: 2rem;
    box-shadow: 0 10px 30px rgba(13,30,70,0.06);
    border: 1px solid rgba(11,11,11,0.03);
    transition: transform .26s cubic-bezier(.2,.9,.2,1), box-shadow .26s;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    min-height: 320px;
}

.card::after {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    height: 6px;
    width: 100%;
    background: linear-gradient(90deg, var(--accent), #2a9df4 60%, #ff7f50 100%);
    opacity: 0.95;
}

.card i {
    font-size: 3rem;
    color: var(--accent);
    margin-bottom: 1rem;
    transition: transform .2s ease, color .2s ease;
}

.card h5 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--text);
}

.card p {
    color: var(--muted);
    margin-bottom: 1.5rem;
    line-height: 1.6;
    flex-grow: 1;
}

.card .button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.5rem;
    background: linear-gradient(90deg, var(--accent), #2a9df4);
    color: #fff;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    transition: transform .18s ease, box-shadow .18s ease;
}

.card .button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(31,119,180,0.2);
}

.card:hover {
    transform: translateY(-8px);
    box-shadow: 0 26px 64px rgba(13,30,70,0.12);
}

.card:hover i {
    transform: scale(1.1);
    color: #2a9df4;
}

/* Responsive adjustments */
@media (max-width: 900px) {
    .box {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .card {
        min-height: auto;
        padding: 1.5rem;
    }
}

@media (max-width: 480px) {
    .service {
        padding: 2rem 1rem;
    }
    
    .card {
        padding: 1.25rem;
    }
    
    .card i {
        font-size: 2.5rem;
    }
}

/* Enhanced Hire Me section — card style, spacing, responsive layout */
.hire-me-section {
  background: linear-gradient(180deg, rgba(31,119,180,0.04), rgba(255,255,255,0.95));
  border-radius: 16px;
  padding: 36px;
  box-shadow: 0 18px 48px rgba(15,30,60,0.06);
  max-width: 1100px;
  margin: 48px auto;
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 28px;
  align-items: start;
  position: relative;
  overflow: visible;
}

/* subtle left accent */
.hire-me-section::before{
  content: "";
  position: absolute;
  left: 18px;
  top: 18px;
  bottom: 18px;
  width: 6px;
  border-radius: 6px;
  background: linear-gradient(180deg, var(--accent), #2a9df4);
  opacity: 0.14;
}

/* Form column */
.hire-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.hire-form input,
.hire-form textarea {
  width: 100%;
  padding: 12px 14px;
  border-radius: 10px;
  border: 1px solid rgba(11,11,11,0.09);
  background: #fff;
  font-size: 1rem;
  transition: box-shadow .16s, transform .12s;
}
.hire-form input:focus,
.hire-form textarea:focus{
  outline: none;
  box-shadow: 0 8px 24px rgba(31,119,180,0.12);
  transform: translateY(-2px);
  border-color: rgba(31,119,180,0.25);
}

/* Make submit button more prominent inside the card */
.hire-form .btn.primary {
  align-self: flex-start;
  padding: 0.85rem 1.6rem;
  border-radius: 12px;
  font-size: 1.05rem;
}

/* Contact info column */
.contact-info {
  background: linear-gradient(180deg, rgba(255,255,255,0.95), rgba(250,250,255,0.98));
  border-radius: 12px;
  padding: 18px;
  box-shadow: 0 10px 30px rgba(13,30,70,0.03);
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: flex-start;
}
.contact-info p { margin:0; display:flex; gap:10px; align-items:center; color:var(--text); font-weight:600; }
.contact-info a { color:var(--accent); text-decoration:none; font-weight:700; }
.contact-info i { color: rgba(11,11,11,0.55); }

/* Social icons in the right column */
.icon-links {
  display:flex;
  gap:10px;
  margin-top:6px;
}
.icon-box2 {
  width:44px;
  height:44px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  border-radius:10px;
  background: rgba(31,119,180,0.06);
  color:var(--accent);
  transition: transform .16s, background .16s, color .16s;
}
.icon-box2:hover { transform: translateY(-6px); background:linear-gradient(90deg,var(--accent),#2a9df4); color:#fff; }

/* Brand color accents when not hovered (subtle) using aria-label to avoid changing HTML */
.icon-box[aria-label="Instagram"],
.icon-box2[aria-label="Instagram"] {
  background: linear-gradient(180deg, rgba(255,255,255,0.98), rgba(255,245,250,0.98));
  color: #E1306C;
  border-color: rgba(225,48,108,0.08);
}
.icon-box[aria-label="LinkedIn"],
.icon-box2[aria-label="LinkedIn"] {
  color: #0A66C2;
  border-color: rgba(10,102,194,0.08);
}
.icon-box[aria-label="Dribbble"],
.icon-box2[aria-label="Dribbble"] {
  color: #EA4C89;
  border-color: rgba(234,76,137,0.08);
}

/* When hovered these use the gradient defined above for consistency */

/* Slightly larger on desktop */
@media (min-width:1024px) {
  .icon-box, .icon-box2 { width:64px; height:64px; border-radius:14px; font-size:1.35rem; }
  .icon-box i, .icon-box2 i { font-size:1.5rem; }
}

/* Mobile: reduce size to avoid crowding */
@media (max-width:420px) {
  .icon-box, .icon-box2 { width:48px; height:48px; border-radius:10px; font-size:1.05rem; }
  .icon-box i, .icon-box2 i { font-size:1.15rem; }
}

/* Footer */
.footer{ padding:2rem 1.25rem; text-align:center; color:var(--muted); background:#0b0b0b; color:#fff }

/* Accessibility focus */
button:focus, a:focus{ outline:3px solid rgba(31,119,180,0.18); outline-offset:3px }

/* Responsive breakpoints */
@media (min-width:768px){
  .projects-container{ grid-template-columns:repeat(2,1fr); }
}
@media (min-width:1024px){
  .projects-container{ grid-template-columns:repeat(3,1fr); }
}

/* Mobile / Tablet specific adjustments */
@media (max-width:900px) {
  :root{ --header-height:var(--header-height-mobile); }
  body{ padding-top: var(--header-height); }
  .brand .logo{ height:40px; }

  /* Show/hide mobile nav */
  .menu-toggle{ display:inline-flex; }
  .nav-links{ display:none; } /* default hidden */
  .nav-links.show{ display:flex; position:fixed; top:var(--header-height); right:12px; background:#fff; padding:12px; border-radius:10px; box-shadow:0 10px 30px rgba(0,0,0,0.08); flex-direction:column; gap:8px; z-index:10001; width:220px; }
  .nav-link{ display:block; padding:10px 14px; }

  /* Layout adjustments */
  .about-flex{ flex-direction:column; align-items:center; }
  .projects-container{ grid-template-columns:1fr; }
  .detel{ padding:1.25rem; gap:0.5rem; }
  #hero-title{ font-size:clamp(2.2rem,10vw,4rem); }
}

/* Smaller phones */
@media (max-width:420px){
  .brand .logo{ height:36px; }
  .menu-toggle{ font-size:1.25rem; }
  .detel{ padding:1rem; }
  .btn{ font-size:1rem; padding:0.75rem 1rem; }
  .nav-links.show{ right:8px; width:calc(100% - 32px); }
}

/* ===== Replace/append the mobile view rules below to fix mobile navbar and spacing ===== */

/* Mobile / Tablet fixes (clean, full-width mobile nav, better spacing) */
@media (max-width:900px) {
  :root { --header-height:64px; }
  body { padding-top: var(--header-height); }

  .sticky-nav { height: var(--header-height); }
  .brand .logo { height:40px; }

  /* show toggle button on mobile */
  .menu-toggle { display:inline-flex; }

  /* mobile nav becomes a full-width panel under header for better touch targets */
  .nav-links {
    display: none;
    position: fixed;
    top: var(--header-height);
    left: 0;
    right: 0;
    height: calc(100vh - var(--header-height));
    background: linear-gradient(180deg, #ffffff, #fbfcff);
    padding: 1.25rem;
    border-radius: 0 0 12px 12px;
    box-shadow: 0 18px 40px rgba(10,10,10,0.08);
    flex-direction: column;
    gap: 10px;
    z-index: 10005;
    align-items: stretch;
    justify-content: flex-start;
    overflow-y: auto;
  }

  /* visible when toggled by JS */
  .nav-links.show { display: flex; }

  .nav-links li { width:100%; }
  .nav-link {
    display: block;
    width:100%;
    padding: 14px 16px;
    font-size: 1.05rem;
    border-radius: 10px;
    text-align: left;
    background: transparent;
  }
  .nav-link:hover, .nav-link:focus {
    background: rgba(31,119,180,0.06);
    color: var(--accent);
  }

  /* ensure hero not overlapped and add extra top breathing room on mobile */
  .hero {
    min-height: calc(100vh - var(--header-height));
    padding-top: 1.5rem;
    padding-bottom: 2.25rem;
  }
  .detel { padding: 1.25rem; gap: 0.6rem; }

  /* make VANTA lighter on mobile for performance and readability */
  #vanta-bg { filter: contrast(0.95) saturate(0.95) brightness(0.92); }

  /* Projects/skills stack nicely */
  .projects-container { grid-template-columns: 1fr; gap: 1rem; grid-auto-rows: auto; padding: 0 1rem; }
  .skills-container { grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 0.9rem; padding: 0 1rem; }

  /* Hire me becomes single column */
  .hire-me-section { grid-template-columns: 1fr; padding: 22px; gap: 18px; margin: 30px 1rem; }
  .hire-me-section::before { display: none; }
}

/* Service Hero & CTA Sections */
.service-hero,
.service-cta {
  position: relative;
  padding: 6rem 2rem;
  margin: 2rem auto;
  max-width: var(--max-site-width);
  border-radius: 32px;
  overflow: hidden;
  isolation: isolate;
}

.service-hero {
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(12px);
  box-shadow: 
    0 20px 40px rgba(0, 0, 0, 0.1),
    inset 0 0 0 1px rgba(255, 255, 255, 0.2);
}

.service-cta {
  background: rgba(45, 52, 54, 0.95);
  backdrop-filter: blur(12px);
  box-shadow: 
    0 20px 40px rgba(0, 0, 0, 0.2),
    inset 0 0 0 1px rgba(255, 255, 255, 0.1);
  color: white;
}

#vanta-hero-bg,
#vanta-cta-bg {
  position: absolute;
  inset: 0;
  border-radius: 32px;
  z-index: -1;
  overflow: hidden;
}

@media (max-width: 768px) {
  .service-hero,
  .service-cta {
    padding: 4rem 1.5rem;
    margin: 1.5rem 1rem;
    border-radius: 24px;
  }

  #vanta-hero-bg,
  #vanta-cta-bg {
    border-radius: 24px;
  }
}


/* Contact Section Improvements */
.contact-main-section {
    padding: 4rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.contact-container {
    display: flex;
    flex-direction: column;
    gap: 3rem;
}

/* Info Cards Grid */
.contact-info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.info-card {
    background: white;
    padding: 2rem;
    border-radius: 20px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.info-card:hover {
    transform: translateY(-10px);
}

.icon-circle {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, var(--accent), #2a9df4);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
}

.icon-circle i {
    font-size: 1.8rem;
    color: white;
}

.info-card h3 {
    margin: 0 0 0.5rem;
    color: var(--text);
    font-size: 1.25rem;
}

.info-card p {
    color: var(--text-secondary);
    margin-bottom: 1rem;
}

.info-link {
    color: var(--accent);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.info-link:hover {
    color: #2a9df4;
}

/* Map and Form Layout */
.contact-flex {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    background: white;
    border-radius: 30px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.map-container {
    height: 100%;
    min-height: 500px;
}

.map-container iframe {
    width: 100%;
    height: 100%;
    border: 0;
}

.form-container {
    padding: 3rem;
}

.form-container h2 {
    margin: 0 0 2rem;
    font-size: 2rem;
    color: var(--text);
}

.input-group {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.form-field {
    position: relative;
    margin-bottom: 1.5rem;
}

.form-field input,
.form-field textarea {
    width: 100%;
    padding: 1rem;
    border: 2px solid #eee;
    border-radius: 12px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: transparent;
}

.form-field label {
    position: absolute;
    left: 1rem;
    top: 1rem;
    padding: 0 0.5rem;
    color: #666;
    font-size: 1rem;
    transition: all 0.3s ease;
    pointer-events: none;
    background: white;
}

.form-field input:focus,
.form-field textarea:focus,
.form-field input:not(:placeholder-shown),
.form-field textarea:not(:placeholder-shown) {
    border-color: var(--accent);
    outline: none;
}

.form-field input:focus ~ label,
.form-field textarea:focus ~ label,
.form-field input:not(:placeholder-shown) ~ label,
.form-field textarea:not(:placeholder-shown) ~ label {
    top: -0.5rem;
    left: 0.8rem;
    font-size: 0.85rem;
    color: var(--accent);
}

.submit-button {
    width: 100%;
    padding: 1rem;
    border: none;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--accent), #2a9df4);
    color: white;
    font-size: 1rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.submit-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

/* Responsive Design */
@media (max-width: 992px) {
    .contact-flex {
        grid-template-columns: 1fr;
    }

    .map-container {
        min-height: 400px;
    }

    .form-container {
        padding: 2rem;
    }
}

@media (max-width: 768px) {
    .contact-main-section {
        padding: 2rem 1rem;
    }

    .input-group {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .info-card {
        padding: 1.5rem;
    }
}

/* Social Links Section */
.social-links {
    padding: 4rem 2rem;
    max-width: var(--max-site-width);
    margin: 0 auto;
    text-align: center;
}

.social-links h2 {
    font-size: 2.2rem;
    font-weight: 700;
    margin-bottom: 2rem;
    color: var(--text);
    position: relative;
}

.social-links h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, var(--accent), #2a9df4);
    border-radius: 2px;
}

.social-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    max-width: 800px;
    margin: 0 auto;
}

.social-card {
   display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
   padding: 2rem;
    background: linear-gradient(180deg, rgba(255,255,255,0.98), rgba(250,250,255,0.98));
    border-radius: 16px;
    text-decoration: none;
    color: var(--text);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 8px 32px rgba(13,30,70,0.08);
    border: 1px solid rgba(11,11,11,0.03);
}

.social-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 48px rgba(13,30,70,0.15);
    color: var(--accent);
}

.social-card i {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    transition: transform 0.3s ease;
}

.social-card:hover i {
    transform: scale(1.2);
}

.social-card span {
    font-weight: 600;
    font-size: 1.1rem;
}

/* Enhanced responsive design for contact page */
@media (max-width: 992px) {
    .contact-container {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .map-wrapper {
        height: 400px;
        grid-column: 1 / 2;
        grid-row: 1 / 2;
    }
    
    .form-wrapper {
        grid-column: 1 / 2;
        grid-row: 2 / 3;
    }
}

@media (max-width: 768px) {
    .map-wrapper {
        height: 300px;
        border-radius: 16px;
    }
    
    .social-grid {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
        gap: 1rem;
    }
    
    .social-card {
        padding: 1.5rem;
    }
    
    .social-card i {
        font-size: 2rem;
    }
}

@media (max-width: 480px) {
    .map-wrapper {
        height: 250px;
        border-radius: 12px;
    }
    
    .social-grid {
        grid-template-columns: 1fr;
    }
    
    .social-links h2 {
        font-size: 1.8rem;
    }
  }
  .pricing-icon {
  color: #ff9800;  /* gold/orange gem */
  margin-right: 8px;
}
