/* ========== COLORS & BASE THEME ========== */
:root {
  --bg-light: #f9f9f9;
  --bg-dark: #111;
  --text: #111;
  --text-light: #fff;
  --blue: #007BFF;
  --gray: #555;
  --white: #ffffff;
  --accent: #0dcaf0;
  --fade-speed: 0.8s;
}

/* ========== RESET & GLOBAL ========== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
  font-size: 16px;
}
body {
  background-color: var(--bg-light);
  color: var(--text);
  font-family: 'Segoe UI', Helvetica, sans-serif;
  line-height: 1.6;
  overflow-x: hidden;
}

/* ========== COPY PROTECTION ========== */
body.no-copy {
  user-select: none;
  -webkit-user-select: none;
  -ms-user-select: none;
}

/* ========== LAYOUT HELPERS ========== */
.container {
  max-width: 1200px;
  margin: auto;
  padding: 40px 20px;
}
img {
  max-width: 100%;
  height: auto;
  display: block;
  border-radius: 12px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
}

/* ========== NAVBAR ========== */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background: var(--white);
  z-index: 9999;
  transition: top 0.4s ease, box-shadow 0.3s ease;
  height: 60px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.05);
}
.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 100%;
  padding: 0 20px;
}
.logo {
  max-height: 40px;
  width: auto;
  object-fit: contain;
}
.navbar ul {
  list-style: none;
  display: flex;
  gap: 20px;
}
.navbar a {
  color: var(--text);
  text-decoration: none;
  font-weight: 500;
  position: relative;
  font-size: 1rem;
  transition: color 0.3s;
}
.navbar a:hover {
  color: var(--blue);
}
.navbar a::after {
  content: '';
  height: 2px;
  width: 0;
  background: var(--blue);
  position: absolute;
  bottom: -4px;
  left: 0;
  transition: width 0.3s;
}
.navbar a:hover::after {
  width: 100%;
}

/* ========== HAMBURGER ========== */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
  width: 30px;
  height: 25px;
  background: none;
  border: none;
  cursor: pointer;
  z-index: 10000;
}
.hamburger span {
  height: 3px;
  background: var(--text);
  border-radius: 2px;
  transition: 0.3s;
  width: 100%;
}

/* ========== HERO ========== */
.hero {
  background: linear-gradient(135deg, #f9f9f9, #ececec);
  padding: 100px 20px 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 80vh;
}
.hero-flex {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 40px;
}
.hero-text {
  flex: 1;
}
.hero-image {
  flex: 1;
  text-align: center;
}
.hero-image img {
  width: 100%;
  max-width: 300px;
  height: auto;
}
.hero h1 {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 20px;
}
.hero p {
  font-size: 1.1rem;
  margin-bottom: 30px;
}
.hero-logo {
  max-width: 260px;
  animation: float 4s ease-in-out infinite;
}

/* ========== TYPEWRITER ========== */
.typewriter-text {
  border-right: 2px solid var(--blue);
  white-space: nowrap;
  overflow: hidden;
  width: 0;
  animation: typing 3s steps(40, end) forwards, blink 0.75s step-end infinite;
}
@keyframes typing {
  from { width: 0 }
  to { width: 100% }
}
@keyframes blink {
  50% { border-color: transparent }
}

/* ========== SERVICES ========== */
.services .grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
}
.card {
  background: var(--white);
  padding: 20px;
  border-radius: 12px;
  text-align: center;
  transition: transform 0.3s, box-shadow 0.3s;
  cursor: pointer;
}
.card:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}
.card h3 {
  margin-top: 15px;
  color: var(--blue);
}

/* ========== TESTIMONIALS ========== */
.testimonials {
  background: #1e1e1e;
  color: var(--text-light);
  padding: 80px 20px;
}
.testimonial-grid {
  display: flex;
  flex-direction: column;
  gap: 40px;
}
blockquote {
  font-size: 1.2rem;
  font-style: italic;
}
blockquote footer {
  font-size: 0.9rem;
  margin-top: 10px;
  color: #ccc;
}

/* ========== FOOTER ========== */
.footer {
  background: var(--bg-dark);
  color: var(--text-light);
  text-align: center;
  padding: 40px 20px;
  font-size: 0.95rem;
}

/* ========== BUTTONS ========== */
.btn {
  display: inline-block;
  padding: 12px 30px;
  border-radius: 50px;
  text-decoration: none;
  font-weight: bold;
  background: var(--text);
  color: var(--white);
  transition: all 0.3s ease;
}
.btn.primary {
  background: var(--blue);
}
.btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

/* ========== ANIMATIONS ========== */
@keyframes float {
  0% { transform: translateY(0) }
  50% { transform: translateY(-10px) }
  100% { transform: translateY(0) }
}
.fade-in {
  animation: fadeIn var(--fade-speed) ease-out;
}
.slide-in-right {
  animation: slideRight var(--fade-speed) ease-out;
}
.slide-in-up {
  animation: slideUp var(--fade-speed) ease-out;
}
@keyframes fadeIn {
  from { opacity: 0 }
  to { opacity: 1 }
}
@keyframes slideRight {
  from { transform: translateX(50px); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}
@keyframes slideUp {
  from { transform: translateY(40px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

/* ========== SCROLL-REVEAL ANIMATIONS ========== */
.invisible {
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.6s ease-out;
}
.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ========== RESPONSIVE ========== */

@media (max-width: 1024px) {
  .hero h1 {
    font-size: 1.5rem;
  }

  .hero p {
    font-size: 1rem;
  }

  .navbar a {
    font-size: 0.95rem;
  }
}


@media (max-width: 768px) {
  .hamburger {
    display: flex;
  }

  .nav-menu {
    display: none;
    flex-direction: column;
    align-items: center;
    background: var(--white);
    position: absolute;
    top: 60px;
    left: 0;
    right: 0;
    padding: 20px 0;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
    z-index: 9998;
  }

  .nav-menu.open {
    display: flex;
  }

  .nav-menu ul {
    display: flex;
    flex-direction: column;
    gap: 10px;
    width: 100%;
    align-items: center;
  }

  .nav-menu ul li {
    width: 100%;
    text-align: center;
  }

  .nav-menu ul li a {
    display: block;
    width: 100%;
    padding: 12px 0;
  }
}

/* ========== EXTRAS ========== */
::selection {
  background: var(--blue);
  color: var(--white);
}
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: #f0f0f0;
}
::-webkit-scrollbar-thumb {
  background-color: var(--blue);
  border-radius: 10px;
}
@media (max-width: 768px) {
  .nav-menu {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 60px;
    left: 0;
    right: 0;
    background: var(--white);
    padding: 20px 0;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
    z-index: 9998;
  }

  .nav-menu.open {
    display: flex;
  }

  .nav-menu ul {
    flex-direction: column;
    align-items: center;
    gap: 16px;
  }
}
/* ========== ROOT VARIABLES ========== */
:root {
  --bg-light: #f9f9f9;
  --bg-dark: #111;
  --text: #111;
  --text-light: #fff;
  --blue: #007BFF;
  --gray: #555;
  --white: #ffffff;
  --accent: #0dcaf0;
  --fade-speed: 0.8s;
}

/* ========== RESET ========== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  background-color: var(--bg-light);
  color: var(--text);
  font-family: 'Segoe UI', Helvetica, sans-serif;
  line-height: 1.6;
  overflow-x: hidden;
}

/* ========== NAVBAR ========== */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background: var(--white);
  z-index: 9999;
  transition: top 0.4s ease, box-shadow 0.3s ease;
  height: 60px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.05);
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 100%;
  padding: 0 20px;
}

.logo {
  max-height: 40px;
  width: auto;
}

.navbar ul {
  list-style: none;
  display: flex;
  gap: 20px;
}

.navbar a {
  color: var(--text);
  text-decoration: none;
  font-weight: 500;
  font-size: 1rem;
  position: relative;
  transition: color 0.3s;
}

.navbar a:hover {
  color: var(--blue);
}

.navbar a::after {
  content: '';
  height: 2px;
  width: 0;
  background: var(--blue);
  position: absolute;
  bottom: -4px;
  left: 0;
  transition: width 0.3s;
}

.navbar a:hover::after {
  width: 100%;
}

/* ========== HAMBURGER ========== */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  width: 30px;
  height: 25px;
  background: none;
  border: none;
  cursor: pointer;
  z-index: 10000;
  transition: transform 0.3s ease;
}

.hamburger span {
  display: block;
  height: 3px;
  background: var(--text);
  border-radius: 2px;
  width: 100%;
  transition: all 0.3s ease;
}

.hamburger.open span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.hamburger.open span:nth-child(2) {
  opacity: 0;
}

.hamburger.open span:nth-child(3) {
  transform: rotate(-45deg) translate(6px, -6px);
}

/* ========== MOBILE NAV MENU ========== */
.nav-menu {
  display: flex;
  align-items: center;
  gap: 20px;
}

@media (max-width: 768px) {
  .hamburger {
    display: flex;
    transform: scale(0.9);
  }

  .nav-menu {
    flex-direction: column;
    display: none;
    background: var(--white);
    position: absolute;
    top: 60px;
    left: 0;
    right: 0;
    padding: 20px 0;
    z-index: 9998;
    animation: slideDown 0.4s ease forwards;
  }

  .nav-menu.open {
    display: flex;
  }

  .nav-menu ul {
    flex-direction: column;
    align-items: center;
    gap: 16px;
    width: 100%;
  }

  .nav-menu ul li {
    width: 100%;
    text-align: center;
  }

  .nav-menu ul li a {
    display: block;
    padding: 12px 0;
    width: 100%;
    font-size: 1rem;
  }

  .navbar a {
    font-size: 0.95rem;
  }
}

/* ========== ANIMATIONS ========== */
@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
