/* =========================
   ROOT VARIABLES
========================= */
:root {
  --bg: #0a0a0a;
  --card-bg: #161616;
  --text-main: #ffffff;
  --text-sec: #b1b1b8;
  --accent: #4A6CF7;
  --nav-h: 80px;
}

/* =========================
   GLOBAL RESET
========================= */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  background: var(--bg);
  padding-top: var(--nav-h);
  color: var(--text-main);
  font-family: 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  line-height: 1.6;
  overflow-x: hidden;
}

a {
  text-decoration: none;
  color: inherit;
  transition: 0.3s;
}

/* =========================
   NAVIGATION
========================= */
nav {
  position: fixed;
  top: 0;
  width: 100%;
  height: var(--nav-h);
  background: rgba(10, 10, 10, 0.7);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  z-index: 1000;
}

.nav-container {
  max-width: 1440px;
  margin: auto;
  padding: 0 5%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
}

.logo img {
  height: 35px;
}

.nav-center {
  display: flex;
  gap: 30px;
  align-items: center;
}

.nav-center a:hover {
  color: var(--accent);
}

.hamburger {
  display: none;
  font-size: 26px;
  cursor: pointer;
}

#menu-toggle {
  display: none;
}

.contact-btn {
  border: 2px solid var(--accent);
  color: var(--accent);
  padding: 8px 22px;
  border-radius: 6px;
  font-size: 0.85rem;
  font-weight: 600;
  transition: 0.25s;
}

.contact-btn:hover {
  background: var(--accent);
  color: #fff;
}

.mobile-contact-link {
  display: none;
  color: var(--accent) !important;
  font-weight: bold;
}

/* =========================
   DROPDOWN
========================= */
.dropdown {
  position: relative;
}

.dropbtn {
  cursor: pointer;
}

.dropdown-content {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: var(--card-bg);
  min-width: 220px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.05);
  padding: 10px 0;
}

.dropdown-content a {
  padding: 12px 20px;
  display: block;
  font-size: 0.9rem;
  color: var(--text-sec);
}

.dropdown-content a:hover {
  color: var(--accent);
  background: rgba(255, 255, 255, 0.03);
}

@media (min-width: 901px) {
  .dropdown:hover .dropdown-content {
    display: block;
    animation: navFade 0.25s ease;
  }
}

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

/* =========================
   HERO
========================= */
.hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: calc(100vh - var(--nav-h));
  padding: 0 8%;
  gap: 40px;
}

.hero-content {
  flex: 1.1;
}

.hero-content h1 {
  font-size: 4.5rem;
  line-height: 1.1;
  margin-bottom: 20px;
}

.hero-description {
  font-size: 1.2rem;
  color: var(--text-sec);
  max-width: 560px;
}

.hero-image {
  flex: 0.9;
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-image img {
  width: 100%;
  max-width: 460px;
  height: auto;
  object-fit: contain;
}

@media (min-width: 1200px) {
  .hero-image img {
    max-width: 580px;
  }
}

/* =========================
   BUTTONS
========================= */
.explore-btn {
  background: var(--accent);
  color: #fff;
  padding: 14px 28px;
  border-radius: 10px;
  font-weight: bold;
  display: inline-block;
  margin-top: 35px;
  transition: 0.25s ease;
}

.explore-btn:hover {
  transform: translateY(-2px);
}

.case-study-link {
  display: inline-block;
  margin-top: 10px;
  font-size: 16px;
  color: var(--accent);
  transition: 0.25s;
}

.case-study-link:hover {
  opacity: 0.7;
}

/* =========================
   ABOUT SECTION
========================= */
.about-section {
  background: #0f0f0f;
  padding: 100px 8%;
}

.section-title {
  font-size: 2.5rem;
  margin-bottom: 25px;
}

.about-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 80px;
}

.about-grid p {
  color: var(--text-sec);
}

.strength-card {
  background: var(--card-bg);
  padding: 25px;
  border-radius: 14px;
  border-left: 4px solid var(--accent);
  margin-bottom: 20px;
  transition: 0.25s;
}

.strength-card:hover {
  transform: translateY(-4px);
}

/* =========================
   EXPERTISE / WORK SECTION
========================= */
.expertise-section {
  padding: 100px 8%;
  text-align: center;
}

.expertise-title {
  font-size: 2.5rem;
  margin-bottom: 120px;
}

.work-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 130px 30px;
}

.work-card {
  background: var(--card-bg);
  padding: 140px 25px 40px;
  border-radius: 32px;
  position: relative;
  border: 1px solid #222;
  transition: 0.3s;
}

.work-card:hover {
  transform: translateY(-8px);
  border-color: var(--accent);
}

.card-image {
  width: 260px;
  position: absolute;
  top: -80px;
  left: 50%;
  transform: translateX(-50%);
}

.card-image img {
  width: 100%;
  transition: 0.3s;
}

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

/* =========================
   TOOLS SECTION
========================= */
.tools-section {
  padding: 80px 8%;
  text-align: center;
}

.tools-grid {
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  gap: 20px;
  margin-top: 40px;
}

.tool-box {
  background: var(--card-bg);
  width: 65px;
  height: 65px;
  padding: 10px;
  border-radius: 12px;
  border: 1px solid #222;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: 0.25s;
  margin: auto;
}

.tool-box img {
  width: 100%;
}

.tool-box:hover {
  transform: translateY(-4px);
  border-color: var(--accent);
}

/* =========================
   CONTACT SECTION
========================= */
.contact-section {
  background: #0f0f0f;
  padding: 100px 8%;
}

.contact-container {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 80px;
  align-items: center;
}

.contact-visual img {
  width: 100%;
  max-width: 500px;
  border-radius: 20px;
}

.contact-header h2 {
  font-size: 2.5rem;
  margin-bottom: 15px;
}

.contact-header p {
  color: var(--text-sec);
  margin-bottom: 25px;
}

.contact-item {
  background: var(--card-bg);
  padding: 20px;
  border-radius: 14px;
  display: flex;
  justify-content: space-between;
  border: 1px solid #333;
  margin-bottom: 15px;
  transition: 0.25s;
}

.contact-item:hover {
  transform: translateX(5px);
  border-color: var(--accent);
}

.contact-item.highlight {
  background: var(--accent);
  border: none;
}

/* =========================
   FOOTER
========================= */
footer {
  border-top: 1px solid #222;
  padding: 30px 0;
  background: var(--bg);
}

.footer-inner {
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 8%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  font-size: 0.85rem;
  color: var(--text-sec);
}

.footer-links {
  display: flex;
  gap: 20px;
}

.footer-links a:hover {
  color: var(--accent);
}

.footer-status {
  color: #4caf50;
  font-weight: 500;
}

/* =========================
   RESPONSIVE — 900px and below
========================= */
@media (max-width: 900px) {
  /* Navigation */
  .nav-container {
    justify-content: space-between;
  }

  .logo {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
  }

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

  .nav-right {
    order: 2;
    position: relative;
    z-index: 1001;
  }

  .nav-right .contact-btn {
    display: none;
  }

  /* Full-screen mobile menu */
  .nav-center {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: var(--bg);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    z-index: 999;
    text-align: center;
  }

  #menu-toggle:checked ~ .menu {
    display: flex;
  }

  /* Nav links */
  .nav-center > a {
    font-size: 1.4rem;
    padding: 12px 0;
    width: 100%;
    text-align: center;
  }

  /* Dropdown — always open and centered on mobile */
  .dropdown {
    padding-bottom: 0;
    width: 100%;
    text-align: center;
  }

  .dropbtn {
    font-size: 1.4rem;
    padding: 12px 0;
    display: block;
    width: 100%;
    text-align: center;
  }

  .dropdown-content {
    position: static;
    display: block;
    background: transparent;
    border: none;
    min-width: unset;
    border-radius: 0;
    padding: 4px 0 12px;
  }

  .dropdown-content a {
    padding: 8px 0;
    font-size: 1rem;
    color: var(--text-sec);
    text-align: center;
    display: block;
    width: 100%;
  }

  .dropdown-content a:hover {
    background: transparent;
  }

  /* Mobile contact link */
  .mobile-contact-link {
    display: block;
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid #222;
    font-size: 1.2rem;
    width: 100%;
    text-align: center;
  }

  /* Hero */
  .hero {
    flex-direction: column;
    text-align: center;
    padding: 60px 5%;
  }

  .hero-image { order: 1; }
  .hero-image img { max-width: 320px; }
  .hero-content { order: 2; }
  .hero-content h1 { font-size: 2.5rem; }

  /* About */
  .about-grid {
    grid-template-columns: 1fr;
    gap: 40px;
    text-align: center;
  }

  /* Contact */
  .contact-container {
    grid-template-columns: 1fr;
    text-align: center;
  }

  /* Tools */
  .tools-grid {
    grid-template-columns: repeat(4, 1fr);
  }

  /* Footer */
  .footer-inner {
    flex-direction: column;
    text-align: center;
    gap: 15px;
  }
}

/* =========================
   RESPONSIVE — 480px and below
========================= */
@media (max-width: 480px) {
  .hero-content h1 {
    font-size: 2rem;
  }

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