
/* Basic responsive, clean styling */
* { box-sizing: border-box; }
body { margin: 0; font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif; color: #222; line-height: 1.6; background-image: linear-gradient(to right, #ff6b6b, #4ecdc4); }
a { text-decoration: none; }
.container { max-width: 1100px; margin: 0 auto; padding: 0 20px; }
/* .navbar { position: fixed; top: 0; left: 0; right: 0; background-image: linear-gradient(to right, #ff6b6b, #4ecdc4); backdrop-filter: blur(6px); border-bottom: 1px solid #eee; z-index: 10; }
.navbar .inner { display: flex; align-items: center; justify-content: space-between; padding: 12px 20px; }
/*.logo { font-family: "Stencil"; font-size: xx-large; font-weight: 500; letter-spacing: 0.8px; color: yellow;}*/
/*.navlinks { display: flex; gap: 16px; }
.navlinks a { color: yellow; font-weight: 600; } */
.hero { height: 85vh; display: flex; align-items: center; justify-content: center; text-align: center; color: #fff; background-size: cover; background-position: center; position: relative; }
.hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,.45), rgba(0,0,0,.45)); }
.hero .content { position: relative; z-index: 1; padding: 24px; }
h1 { font-size: clamp(28px, 4vw, 56px); margin: 0 0 10px; }
p.lead { font-size: clamp(16px, 2.2vw, 20px); opacity: .95; }
.btn { display: inline-block; padding: 12px 20px; border-radius: 999px; background: #111; color: #fff; font-weight: 700; margin-top: 16px; }
section { padding: 64px 0; }
.section-title {text-align: center; font-size: clamp(22px, 3vw, 34px); margin-bottom: 28px; color: #0f5c5c; font-weight: 700;letter-spacing: 0.4px;}
.grid { display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); }
.card { border: 1px solid #eee; border-radius: 14px; padding: 18px; background: #fff; position: relative; }
.card h3 { margin: 0 0 8px; }
.badge { display: inline-block; padding: 6px 10px; border-radius: 999px; background: #f2f2f2; font-size: 12px; font-weight: 700; }
.footer { background: #fafafa; border-top: 1px solid #eee; text-align: center; color: #666;padding: 14px 10px;font-size: 13px;letter-spacing: 0.3px; }
/* Simple menu button on mobile */
.menu-btn { display: none; border: 1px solid #ddd; padding: 6px 10px; border-radius: 8px; background: #fff; }
@media (max-width: 720px) {
  .navlinks { display: none; }
  .menu-btn { display: inline-block; }
}
body {font-family: 'Inter', sans-serif;}
h1, h2, h3, h4, h5 {font-family: 'Poppins', sans-serif;}
nav{font-family: 'Poppins', sans-serif; font-weight: 500; letter-spacing: 0.5px;  background: linear-gradient(to right, #1e1e1e, #232323);padding: 15px 40px;box-shadow: 0 4px 14px rgba(0,0,0,0.2);}
nav a {color: #ffffff;opacity: 0.9;padding: 0 15px;transition: 0.3s ease;}
nav a:hover {opacity: 1;text-decoration: underline;}
.hero {position: relative;}
.hero::before {content: "";position: absolute;inset: 0;
    background: rgba(0, 0, 0, 0.45); /* Dark overlay */
    z-index: 1;}
.hero * {position: relative;z-index: 2;}
.btn-primary {background: #ffffff;color: #000;border-radius: 30px;padding: 10px 22px;font-family: 'Poppins', sans-serif;font-weight: 600;box-shadow: 0 2px 10px rgba(0,0,0,0.2);
    transition: 0.3s ease;}
.btn-primary:hover {background: #000;color: #fff;}
.logo {font-family: 'Poppins', sans-serif;font-weight: 700; font-size: 28px;
       color: #ffffff; /* Replace yellow */
    letter-spacing: 1px;text-transform: uppercase;}
nav ul {display: flex;gap: 25px; /* modern spacing */}
nav ul li a {color: #ffffff;font-family: 'Poppins', sans-serif;font-weight: 400;opacity: 0.85;transition: 0.3s;}
nav ul li a:hover {opacity: 1;text-decoration: underline;}
nav {position: sticky; top: 0; z-index: 999;}
/* NAVBAR FIX */
.navbar {width: 100%;padding: 25px 200px; display: flex;/* makes items align left & right */justify-content: space-between;/* logo left, menu right */
align-items: center;/* vertical centering */background: rgba(0, 0, 0, 0.4);/*translucent white */backdrop-filter: blur(6px);/*modern look*/ position: fixed;top: 0;left: 0;
    z-index: 1000;}
/* Logo styling */
.navbar .logo {font-size: 1.4rem;font-weight: 700;color: #ffffff;letter-spacing: 1px;}
/* Menu */
.navbar ul {list-style: none;display: flex;gap: 25px}
.navbar ul li a {text-decoration: none;color: white;font-weight: 500;transition: 0.3s ease;}
.navbar ul li a:hover {color: #ffe;}
.section-divider {width: 80px;margin:auto;border: 2px solid rgba(0,0,0,0.15);}
.about-content {max-width: 820px;}
.about-content p {line-height: 1.7;}
.project-img {
  width: 100%;
  height: 180px;          /* controls visible image height */
  overflow: hidden;       /* hides zoom overflow */
  border-radius: 8px;
}

.project-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;      /* crops image nicely */
  transition: transform 0.4s ease;
}

/* Hover zoom effect */
.card:hover .project-img img {
  transform: scale(2);
}
.project-img {
  position: relative;
  overflow: visible;
}

.project-img img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  transform-origin: center bottom;
  transition: transform 0.45s ease, box-shadow 0.45s ease;
  position: relative;
  z-index: 1;
}

.card:hover .project-img {
  overflow: visible;
}

.card:hover .project-img img {
  transform: scale(1.8) translateY(40%);
  z-index: 10;
  box-shadow: 0 15px 40px rgba(0,0,0,0.35);
}
.grid,
.container {
  overflow: visible;
}
.project-img img {
  transform-origin: bottom bottom;
}
@media (hover: none) {
  .card:hover .project-img img {
    transform: none;
    box-shadow: none;
  }
}
.skills-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 40px;
  max-width: 1100px;
  margin: 0 auto;
}

@media (max-width: 768px) {
  .skills-grid {
    grid-template-columns: 1fr;
  }
}
#approach {
  padding-top: 4rem;     /* space from previous section */
  padding-bottom: 4rem;
}

#approach h2 {
  margin-bottom: 2.4rem;  /* space BELOW heading */
}

#approach p {
  margin-top: 0;
  margin-bottom: 1.2rem;
  line-height: 1.7;
}
.approach-final {
  font-weight: 500;
  margin-top: 1.2rem;
}
@media (max-width: 768px) {
  .approach ul li {
    margin-bottom: 0.6rem;
  }
}
.approach-content {
  max-width: 900px;
}
.sameline {
  display: flex;
    /*border: 1px solid #ccc;*/
  /* Optional: adds space between the items */
  gap: 20px; 
}

.SLitem {
  /* This makes both items share available space equally */
  /*flex: 1; */
  /* Add styling as needed */
  border: 1px solid #ccc;
  padding: 15px;
  width: 50%;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 10px 12px;
  border-radius: 6px;
  border: 1px solid #ccc;
  font-size: 14px;
}
.contact-form button {
  background: #0f5c5c;
  color: #fff;
  padding: 10px 18px;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-weight: 600;
  width: 100px;
  align-self: flex-start;   /* 🔑 THIS SOLVES IT */
   margin-top: 0.8rem;
}

.contact-form button:hover {
  opacity: 0.9;
}
.submit-link {
  display: inline-block;           /* 🔑 prevents full width */
  padding: 10px 22px;
  width: auto;
  background: linear-gradient(#157777, #0f5c5c);
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  border-radius: 6px;

  /* 3D effect */
  box-shadow: 0 4px 0 #0b4444;
  transition: all 0.15s ease;
}

/* Hover */
.submit-link:hover {
  background: linear-gradient(#1a8a8a, #117070);
}

/* Pressed effect */
.submit-link:active {
  transform: translateY(3px);
  box-shadow: 0 1px 0 #0b4444;
}
.project-link {
  display: inline-block;
  margin-top: 0.6rem;
  font-weight: 600;
  color: #0f5c5c;
  text-decoration: none;
}

.project-link:hover {
  text-decoration: underline;
}

}

