/* ============================================================
   GLOBAL VARIABLES & RESET
   ============================================================ */
:root {
  --bg-dark: #0a1120;
  --bg-darker: #060b16;
  --bg-light: #f5f7fa;
  --primary-blue: #1f7aff;
  --primary-hover: #3b8cff;
  --primary-glow: rgba(31, 122, 255, 0.4);
  --text-white: #ffffff;
  --text-muted: #8a94a6;
  --text-dark: #333333;
  --border-color: rgba(255, 255, 255, 0.1);
  --font-main: 'Inter', sans-serif;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-main);
  background-color: var(--bg-dark);
  color: var(--text-white);
  line-height: 1.6;
  overflow-x: hidden;
}

a {
  text-decoration: none;
  color: inherit;
}

ul {
  list-style: none;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.highlight {
  color: var(--primary-blue);
}

/* ============================================================
   ANIMATED PARTICLES BACKGROUND
   ============================================================ */
.particles-bg {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.particle {
  position: absolute;
  background: radial-gradient(circle, var(--primary-blue) 0%, transparent 70%);
  border-radius: 50%;
  opacity: 0.4;
  animation: floatParticle linear infinite;
}

@keyframes floatParticle {
  0% {
    transform: translateY(0) translateX(0) scale(1);
    opacity: 0;
  }
  10% {
    opacity: 0.5;
  }
  90% {
    opacity: 0.5;
  }
  100% {
    transform: translateY(-100vh) translateX(50px) scale(0.5);
    opacity: 0;
  }
}

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: 50px;
  font-weight: 600;
  font-size: 14px;
  transition: all 0.3s ease;
  cursor: pointer;
  border: none;
  background: none;
  position: relative;
  overflow: hidden;
}

.btn i {
  transition: transform 0.3s ease;
}

.btn:hover i {
  transform: translateX(4px);
}

.btn-primary {
  background-color: var(--primary-blue);
  color: var(--text-white);
  border: 1px solid var(--primary-blue);
  box-shadow: 0 0 0 0 var(--primary-glow);
}

.btn-primary:hover {
  background-color: var(--primary-hover);
  border-color: var(--primary-hover);
  box-shadow: 0 0 25px 5px var(--primary-glow);
  transform: translateY(-2px);
}

.btn-outline {
  background-color: transparent;
  border: 1px solid var(--primary-blue);
  color: var(--text-white);
}

.btn-outline:hover {
  background-color: rgba(31, 122, 255, 0.1);
  box-shadow: 0 0 20px 2px var(--primary-glow);
}

.btn-secondary {
  background-color: transparent;
  border: 1px solid var(--text-muted);
  color: var(--text-white);
}

.btn-secondary:hover {
  border-color: var(--text-white);
  transform: translateY(-2px);
}

.btn-outline-primary {
  background-color: transparent;
  border: 1px solid var(--primary-blue);
  color: var(--primary-blue);
}

.btn-outline-primary:hover {
  background-color: var(--primary-blue);
  color: var(--text-white);
  box-shadow: 0 0 20px 2px var(--primary-glow);
}

/* ============================================================
   HEADER / NAV
   ============================================================ */
header {
  background-color: rgba(6, 11, 22, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  padding: 20px 0;
  border-bottom: 1px solid var(--border-color);
  position: sticky;
  top: 0;
  z-index: 100;
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* ============================================================
   LOGO
   ============================================================ */
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  transition: transform 0.3s ease;
}

.logo:hover {
  transform: scale(1.03);
}

.logo-img {
  height: 40px;
  object-fit: contain;
  border-radius: 8px;
  transition: transform 0.3s ease;
}

.logo:hover .logo-img {
  transform: scale(1.08) rotate(-5deg);
}

.logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.brand {
  font-weight: 700;
  font-size: 18px;
  letter-spacing: 1px;
}

.subbrand {
  font-size: 10px;
  letter-spacing: 3px;
  color: var(--text-muted);
}

/* ============================================================
   DESKTOP NAV
   ============================================================ */
.desktop-nav ul {
  display: flex;
  gap: 30px;
}

.desktop-nav ul li a {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-muted);
  transition: color 0.3s;
  cursor: pointer;
  position: relative;
}

.desktop-nav ul li a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--primary-blue);
  transition: width 0.3s ease;
}

.desktop-nav ul li a:hover::after,
.desktop-nav ul li a.active::after {
  width: 100%;
}

.desktop-nav ul li a:hover,
.desktop-nav ul li a.active {
  color: var(--text-white);
}

/* ============================================================
   HAMBURGER BUTTON (mobile only)
   ============================================================ */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 42px;
  height: 42px;
  background: transparent;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  cursor: pointer;
  padding: 0;
  transition: border-color 0.3s, background 0.3s;
  z-index: 110;
}

.hamburger:hover {
  border-color: var(--primary-blue);
  background: rgba(31, 122, 255, 0.08);
}

.hamburger span {
  display: block;
  width: 20px;
  height: 2px;
  background-color: var(--text-white);
  border-radius: 2px;
  transition: transform 0.3s ease, opacity 0.3s ease;
  transform-origin: center;
}

.hamburger.open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.hamburger.open span:nth-child(2) {
  opacity: 0;
}

.hamburger.open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ============================================================
   MOBILE MENU (slide-down panel)
   ============================================================ */
.mobile-menu {
  display: none;
  position: fixed;
  top: 70px;
  left: 0;
  right: 0;
  background-color: rgba(6, 11, 22, 0.98);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border-color);
  max-height: calc(100vh - 70px);
  overflow-y: auto;
  z-index: 99;
  transform: translateY(-20px);
  opacity: 0;
  pointer-events: none;
  transition: transform 0.35s ease, opacity 0.35s ease;
}

.mobile-menu.open {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}

.mobile-menu nav {
  padding: 24px 20px 32px;
}

.mobile-menu ul {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-bottom: 20px;
}

.mobile-menu ul li a {
  display: block;
  padding: 14px 16px;
  font-size: 15px;
  font-weight: 500;
  color: var(--text-muted);
  border-radius: 10px;
  transition: background 0.25s ease, color 0.25s ease, padding-left 0.25s ease;
}

.mobile-menu ul li a:hover,
.mobile-menu ul li a.active {
  color: var(--text-white);
  background: rgba(31, 122, 255, 0.12);
  padding-left: 22px;
}

.mobile-menu ul li a.active {
  border-left: 3px solid var(--primary-blue);
}

.mobile-cta {
  width: 100%;
  justify-content: center;
  padding: 14px 20px;
}

/* ============================================================
   HERO SECTION
   ============================================================ */
.hero {
  padding: 80px 0;
  background: radial-gradient(circle at 70% 50%, rgba(31, 122, 255, 0.15) 0%, transparent 50%);
  position: relative;
  overflow: hidden;
}

.floating-shape {
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  opacity: 0.4;
  pointer-events: none;
  animation: floatShape 12s ease-in-out infinite;
}

.shape-1 {
  width: 300px;
  height: 300px;
  background: var(--primary-blue);
  top: -80px;
  right: -80px;
  animation-delay: 0s;
}

.shape-2 {
  width: 200px;
  height: 200px;
  background: #00e5ff;
  bottom: -60px;
  left: -60px;
  animation-delay: 3s;
}

.shape-3 {
  width: 150px;
  height: 150px;
  background: #7b5cff;
  top: 40%;
  right: 30%;
  animation-delay: 6s;
}

@keyframes floatShape {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(30px, -30px) scale(1.1); }
  66% { transform: translate(-20px, 20px) scale(0.95); }
}

.hero-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  position: relative;
  z-index: 1;
}

.hero-text {
  flex: 1;
}

.eyebrow {
  color: var(--primary-blue);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 2px;
  margin-bottom: 15px;
}

.hero h1 {
  font-size: 48px;
  line-height: 1.2;
  margin-bottom: 20px;
}

.hero .description {
  color: var(--text-muted);
  font-size: 16px;
  margin-bottom: 30px;
  max-width: 500px;
}

.hero-buttons {
  display: flex;
  gap: 15px;
}

.hero-image {
  flex: 1;
  position: relative;
  animation: floatImage 6s ease-in-out infinite;
}

@keyframes floatImage {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-15px); }
}

.hero-image img {
  width: 100%;
  border-radius: 20px;
  opacity: 0.8;
  mask-image: linear-gradient(to right, transparent, black 20%);
  -webkit-mask-image: linear-gradient(to right, transparent, black 20%);
}

.scribble-text {
  position: absolute;
  bottom: 20px;
  right: 20px;
  font-family: 'Brush Script MT', cursive;
  font-size: 25px;
  color: rgba(255, 255, 255, 0.8);
  transform: rotate(-10deg);
  text-align: center;
  animation: wiggle 3s ease-in-out infinite;
}

@keyframes wiggle {
  0%, 100% { transform: rotate(-10deg); }
  50% { transform: rotate(-6deg) scale(1.05); }
}

/* ============================================================
   SERVICES SECTION
   ============================================================ */
.services {
  background-color: var(--bg-light);
  color: var(--text-dark);
  padding: 80px 0;
}

.section-header {
  text-align: center;
  margin-bottom: 50px;
}

.section-header h2 {
  font-size: 36px;
  margin-bottom: 15px;
}

.section-header p {
  color: #666;
  max-width: 600px;
  margin: 0 auto;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
}

.card {
  background-color: var(--text-white);
  padding: 30px 20px;
  border-radius: 12px;
  border: 1px solid #e0e4ea;
  transition: transform 0.3s, box-shadow 0.3s, border-color 0.3s;
  position: relative;
  overflow: hidden;
}

.card::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(31, 122, 255, 0.05), transparent);
  transition: left 0.5s ease;
}

.card:hover::before {
  left: 100%;
}

.card:hover {
  transform: translateY(-8px);
  box-shadow: 0 15px 40px rgba(31, 122, 255, 0.15);
  border-color: var(--primary-blue);
}

.icon-box {
  width: 50px;
  height: 50px;
  background-color: #e6f0ff;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  transition: background 0.3s, transform 0.3s;
}

.card:hover .icon-box {
  background-color: var(--primary-blue);
  transform: rotate(-8deg) scale(1.1);
}

.icon-box i {
  color: var(--primary-blue);
  font-size: 24px;
  transition: color 0.3s;
}

.card:hover .icon-box i {
  color: var(--text-white);
}

.card h3 {
  font-size: 18px;
  margin-bottom: 10px;
}

.card p {
  font-size: 14px;
  color: #666;
}

/* ============================================================
   ABOUT SECTION
   ============================================================ */
.about {
  display: flex;
  background-color: var(--bg-darker);
  padding: 0;
}

.about-image {
  flex: 1;
  overflow: hidden;
}

.about-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.6;
  transition: transform 0.8s ease, opacity 0.5s;
}

.about-image:hover img {
  transform: scale(1.08);
  opacity: 0.85;
}

.about-content {
  flex: 1;
  padding: 80px 60px;
}

.about-content h2 {
  font-size: 36px;
  margin-bottom: 20px;
}

.about-content > p {
  color: var(--text-muted);
  margin-bottom: 30px;
  max-width: 500px;
}

.about-features {
  margin-top: 40px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.feature {
  display: flex;
  align-items: flex-start;
  gap: 15px;
  padding: 12px;
  border-radius: 10px;
  transition: background 0.3s, transform 0.3s;
}

.feature:hover {
  background: rgba(31, 122, 255, 0.08);
  transform: translateX(6px);
}

.feature i {
  color: var(--primary-blue);
  font-size: 20px;
  margin-top: 4px;
  transition: transform 0.3s;
}

.feature:hover i {
  transform: scale(1.2) rotate(8deg);
}

.feature h4 {
  font-size: 16px;
  margin-bottom: 5px;
}

.feature p {
  font-size: 14px;
  color: var(--text-muted);
}

/* ============================================================
   TECH STACK SECTION
   ============================================================ */
.tech-stack {
  background-color: var(--bg-light);
  color: var(--text-dark);
  padding: 60px 0;
}

.tech-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
}

.tech-text {
  flex: 1;
}

.tech-text h2 {
  font-size: 28px;
  margin-bottom: 10px;
}

.tech-text p {
  color: #666;
  font-size: 14px;
}

.tech-icons {
  flex: 2;
  display: flex;
  justify-content: space-around;
  align-items: center;
}

.tech-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  color: #555;
  font-size: 14px;
  font-weight: 500;
  transition: transform 0.3s, color 0.3s;
  cursor: pointer;
}

.tech-item:hover {
  transform: translateY(-6px) scale(1.1);
  color: var(--primary-blue);
}

.tech-item i {
  font-size: 32px;
  color: #333;
  transition: color 0.3s, transform 0.3s;
}

.tech-item:hover i {
  color: var(--primary-blue);
  transform: rotate(8deg);
}

/* ============================================================
   CTA SECTION
   ============================================================ */
.cta {
  background: linear-gradient(135deg, #0a1120 0%, #1a2a4a 100%);
  padding: 80px 0;
  text-align: center;
  border-top: 1px solid var(--border-color);
  position: relative;
  overflow: hidden;
}

.cta::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(31, 122, 255, 0.15) 0%, transparent 50%);
  animation: rotateGlow 20s linear infinite;
  pointer-events: none;
}

@keyframes rotateGlow {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.cta h2,
.cta p,
.cta a {
  position: relative;
  z-index: 1;
}

.cta h2 {
  font-size: 32px;
  margin-bottom: 10px;
}

.cta p {
  color: var(--text-muted);
  margin-bottom: 30px;
}

/* ============================================================
   CAREERS / PROJECTS / BLOG HERO
   ============================================================ */
.careers-hero {
  padding: 80px 0 40px;
  background: radial-gradient(circle at 30% 40%, rgba(31, 122, 255, 0.18) 0%, transparent 60%);
}

.careers-hero h1 {
  font-size: 48px;
  line-height: 1.2;
  margin-bottom: 20px;
}

.careers-hero .description {
  color: var(--text-muted);
  font-size: 18px;
  max-width: 700px;
  margin-bottom: 40px;
}

/* ============================================================
   JOBS / PROJECTS / BLOG GRID
   ============================================================ */
.jobs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
  padding: 40px 0 80px;
}

.job-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 28px 24px;
  transition: transform 0.3s, border-color 0.3s, background 0.3s, box-shadow 0.3s;
  position: relative;
  overflow: hidden;
}

.job-card::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, var(--primary-blue), #00e5ff);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s ease;
}

.job-card:hover::after {
  transform: scaleX(1);
}

.job-card:hover {
  transform: translateY(-6px);
  border-color: var(--primary-blue);
  background: rgba(31, 122, 255, 0.06);
  box-shadow: 0 15px 40px rgba(31, 122, 255, 0.15);
}

.job-card h3 {
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 8px;
}

.job-meta {
  display: flex;
  gap: 16px;
  font-size: 13px;
  color: var(--primary-blue);
  margin-bottom: 16px;
  font-weight: 500;
  letter-spacing: 0.3px;
  flex-wrap: wrap;
}

.job-meta span i {
  margin-right: 4px;
}

.job-card p {
  color: var(--text-muted);
  font-size: 14px;
  margin-bottom: 20px;
}

.job-card .btn {
  width: 100%;
  justify-content: center;
}

/* ============================================================
   PROJECT TAG
   ============================================================ */
.project-tag {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1px;
  padding: 4px 12px;
  border-radius: 50px;
  background: rgba(31, 122, 255, 0.15);
  color: var(--primary-blue);
  border: 1px solid rgba(31, 122, 255, 0.35);
  margin-bottom: 14px;
  text-transform: uppercase;
}

/* ============================================================
   BLOG THUMBNAIL
   ============================================================ */
.blog-thumb {
  width: 100%;
  height: 120px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
  position: relative;
  overflow: hidden;
  transition: transform 0.4s ease;
}

.blog-thumb::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.25), transparent 60%);
  opacity: 0.8;
}

.blog-thumb i {
  font-size: 44px;
  color: rgba(255, 255, 255, 0.95);
  z-index: 1;
  transition: transform 0.4s ease;
}

.job-card:hover .blog-thumb {
  transform: scale(1.02);
}

.job-card:hover .blog-thumb i {
  transform: scale(1.15) rotate(-8deg);
}

/* ============================================================
   FOOTER
   ============================================================ */
footer {
  background-color: var(--bg-darker);
  padding: 80px 0 0;
  border-top: 1px solid var(--border-color);
}

.footer-main {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 40px;
  margin-bottom: 60px;
}

.footer-brand-col .footer-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 20px;
}

.footer-desc {
  color: var(--text-muted);
  font-size: 14px;
  line-height: 1.7;
  margin-bottom: 25px;
  max-width: 300px;
}

.newsletter h4 {
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 12px;
  color: var(--text-white);
}

.newsletter-form {
  display: flex;
  background-color: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  overflow: hidden;
  max-width: 320px;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.newsletter-form:focus-within {
  border-color: var(--primary-blue);
  box-shadow: 0 0 15px rgba(31, 122, 255, 0.3);
}

.newsletter-form input {
  flex: 1;
  background: transparent;
  border: none;
  padding: 12px 15px;
  color: var(--text-white);
  font-family: var(--font-main);
  font-size: 14px;
  outline: none;
}

.newsletter-form input::placeholder {
  color: var(--text-muted);
}

.newsletter-form button {
  background-color: var(--primary-blue);
  border: none;
  padding: 0 20px;
  color: white;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.newsletter-form button:hover {
  background-color: var(--primary-hover);
}

.footer-links-col h4 {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 20px;
  color: var(--text-white);
}

.footer-links-col ul {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-links-col ul li a {
  color: var(--text-muted);
  font-size: 14px;
  transition: color 0.3s ease, padding-left 0.3s ease;
  cursor: pointer;
}

.footer-links-col ul li a:hover {
  color: var(--primary-blue);
  padding-left: 5px;
}

.contact-info li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  color: var(--text-muted);
  font-size: 14px;
}

.contact-info li i {
  color: var(--primary-blue);
  margin-top: 4px;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 25px 20px;
  border-top: 1px solid var(--border-color);
}

.copyright {
  font-size: 14px;
  color: var(--text-muted);
}

.social-icons {
  display: flex;
  gap: 15px;
}

.social-icons a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  background-color: rgba(255, 255, 255, 0.05);
  border-radius: 50%;
  color: var(--text-muted);
  font-size: 16px;
  transition: all 0.3s ease;
}

.social-icons a:hover {
  background-color: var(--primary-blue);
  color: var(--text-white);
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(31, 122, 255, 0.4);
}

/* ============================================================
   SCROLL REVEAL ANIMATION
   ============================================================ */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ============================================================
   SMOOTH SCROLL OFFSET
   ============================================================ */
#hero,
#services,
#about,
#tech-stack,
#contact {
  scroll-margin-top: 90px;
}

/* ============================================================
   RESPONSIVE — TABLET & MOBILE (≤ 992px)
   ============================================================ */
@media (max-width: 992px) {
  /* Hide desktop nav and CTA, show hamburger */
  .desktop-nav,
  .desktop-cta {
    display: none;
  }

  .hamburger {
    display: flex;
  }

  .mobile-menu {
    display: block;
  }

  /* Nav container tweaks */
  .nav-container {
    gap: 16px;
  }

  .logo-img {
    height: 34px;
  }

  .brand {
    font-size: 16px;
  }

  .subbrand {
    font-size: 9px;
    letter-spacing: 2px;
  }

  /* Stack flex sections */
  .hero-content,
  .about,
  .tech-content {
    flex-direction: column;
  }

  .about-image {
    display: none;
  }

  .about-content {
    padding: 60px 20px;
  }

  .tech-icons {
    flex-wrap: wrap;
    gap: 30px;
  }

  .scribble-text {
    display: none;
  }

  .footer-main {
    grid-template-columns: 1fr 1fr;
    gap: 50px;
  }
}

/* ============================================================
   TABLET (≤ 900px)
   ============================================================ */
@media (max-width: 900px) {
  .hero-content {
    flex-direction: column;
    text-align: center;
  }

  .hero-text {
    max-width: 100%;
  }

  .hero .description {
    margin-left: auto;
    margin-right: auto;
  }

  .hero-buttons {
    justify-content: center;
  }

  .hero-image {
    width: 100%;
    max-width: 500px;
    margin: 0 auto;
  }

  .hero-image img {
    mask-image: none;
    -webkit-mask-image: none;
    opacity: 0.9;
  }
}

/* ============================================================
   MOBILE (≤ 768px)
   ============================================================ */
@media (max-width: 768px) {
  .container {
    padding: 0 16px;
  }

  /* Headings */
  .hero h1,
  .careers-hero h1 {
    font-size: 32px;
    line-height: 1.25;
  }

  .section-header h2,
  .about-content h2,
  .cta h2 {
    font-size: 26px;
  }

  .tech-text h2 {
    font-size: 22px;
  }

  /* Buttons stack */
  .hero-buttons {
    flex-direction: column;
    width: 100%;
  }

  .hero-buttons .btn,
  .about-content .btn {
    width: 100%;
  }
  
  .hero-image {
    display: none;
  }

  /* Section padding */
  .hero,
  .services,
  .cta {
    padding: 60px 0;
  }

  .careers-hero {
    padding: 60px 0 30px;
  }

  .about-content {
    padding: 50px 20px;
  }

  /* Tech stack */
  .tech-content {
    text-align: center;
  }

  .tech-icons {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    width: 100%;
    margin-top: 20px;
  }

  .tech-item i {
    font-size: 28px;
  }

  /* Grids → single column */
  .jobs-grid,
  .services-grid {
    grid-template-columns: 1fr;
    gap: 20px;
    padding: 24px 0 60px;
  }

  .services-grid {
    padding: 0;
  }

  /* Footer */
  .footer-main {
    grid-template-columns: 1fr 1fr;
    gap: 36px;
    margin-bottom: 40px;
  }

  .newsletter-form {
    max-width: 100%;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 16px;
    text-align: center;
  }

  .section-header {
    margin-bottom: 36px;
  }

  .feature h4 {
    font-size: 15px;
  }

  .feature p {
    font-size: 13px;
  }
}

/* ============================================================
   SMALL MOBILE (≤ 576px)
   ============================================================ */
@media (max-width: 576px) {
  .hero h1,
  .careers-hero h1 {
    font-size: 26px;
  }

  .section-header h2,
  .about-content h2,
  .cta h2 {
    font-size: 22px;
  }

  .tech-icons {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-main {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .job-card {
    padding: 22px 18px;
  }

  .shape-1,
  .shape-2 {
    display: none;
  }

  .logo-img {
    height: 30px;
  }

  .brand {
    font-size: 15px;
  }

  .subbrand {
    font-size: 8px;
    letter-spacing: 2px;
  }

  .hamburger {
    width: 38px;
    height: 38px;
  }
}

/* ============================================================
   VERY SMALL (≤ 400px)
   ============================================================ */
@media (max-width: 400px) {
  .container {
    padding: 0 14px;
  }

  .logo-text {
    display: none;
  }

  .hero h1 {
    font-size: 24px;
  }
}
