/*
  Anoraks Technology Website Styles
  This stylesheet defines the look and feel of the Anoraks Technology
  single‑page website. It uses a modern aesthetic with clear
  typography, generous spacing, responsive grids and subtle
  shadows to create a polished, professional experience.
*/

/* Root variables for easy theming */
:root {
  --primary-color: #07162e;
  --secondary-color: #0078d4;
  --light-bg: #f6f9fc;
  --dark-bg: #0a1931;
  --text-color: #112a45;
  --max-width: 1200px;
}

/* Reset margins and paddings */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Poppins', sans-serif;
  color: var(--text-color);
  line-height: 1.6;
  background-color: #fff;
  scroll-behavior: smooth;
}

/* Container to limit width and center content */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1rem;
}

/* Navigation styles */
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background: #fff;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.05);
  z-index: 1000;
}

nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 70px;
}

.nav-brand img {
  width: 140px;
  height: auto;
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 1.5rem;
  align-items: center;
}

.nav-links li a {
  text-decoration: none;
  color: var(--text-color);
  font-weight: 500;
  transition: color 0.3s;
}

.nav-links li a:hover {
  color: var(--secondary-color);
}

/* Button base styles */
.btn {
  display: inline-block;
  padding: 0.6rem 1.3rem;
  border-radius: 4px;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  transition: background 0.3s, color 0.3s;
}

.btn-primary {
  background: var(--secondary-color);
  color: #fff;
}

.btn-secondary {
  background: #fff;
  color: var(--secondary-color);
  border: 2px solid var(--secondary-color);
}

.btn-primary:hover,
.btn-secondary:hover {
  opacity: 0.85;
}

/* Hamburger menu button */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 30px;
  height: 30px;
  cursor: pointer;
  border: none;
  background: transparent;
}

.nav-toggle span {
  display: block;
  width: 100%;
  height: 3px;
  background: var(--text-color);
  border-radius: 3px;
  margin-bottom: 5px;
  transition: all 0.3s;
}

.nav-toggle span:last-child {
  margin-bottom: 0;
}

/* Transform hamburger into a cross when active */
.nav-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.nav-toggle.active span:nth-child(2) {
  opacity: 0;
}

.nav-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(6px, -6px);
}

/* Hero section */
.hero {
  position: relative;
  color: #fff;
  text-align: left;
  padding-top: 70px;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  z-index: -2;
}

.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.hero-bg .overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.55);
  z-index: -1;
}

.hero-content {
  position: relative;
  padding: 6rem 1rem 4rem;
  max-width: 800px;
  z-index: 1;
}

.hero-content h1 {
  font-size: 2.8rem;
  line-height: 1.3;
  font-weight: 700;
  margin-bottom: 1rem;
}

.hero-content p {
  font-size: 1.1rem;
  margin-bottom: 2rem;
  color: #e6e9ed;
}

.hero-buttons {
  display: flex;
  gap: 1rem;
}

/* Section titles */
.section-title {
  font-size: 2rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
  text-align: center;
  color: var(--primary-color);
}

/* Trust & metrics */
.trust {
  background: var(--light-bg);
  padding: 4rem 0;
}

.logo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 1.5rem;
  justify-items: center;
  margin-bottom: 2.5rem;
}

.logo-item {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 60px;
  background: #eaf0f9;
  border-radius: 6px;
  color: var(--primary-color);
  font-weight: 600;
  font-size: 1.1rem;
}

.metrics {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  justify-content: center;
}

.metric-item {
  text-align: center;
  flex: 1 1 220px;
  padding: 1rem;
}

.metric-item h3 {
  font-size: 2.5rem;
  color: var(--secondary-color);
}

.metric-item h3 span {
  color: var(--secondary-color);
}

.metric-item p {
  margin-top: 0.5rem;
}

/* Services */
.services {
  padding: 4rem 0;
  background: #fff;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
}

.service-card {
  background: var(--light-bg);
  padding: 2rem;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.service-card h3 {
  font-size: 1.4rem;
  margin-bottom: 0.8rem;
  color: var(--primary-color);
}

.service-card p {
  font-size: 1rem;
  line-height: 1.5;
}

/* Packages */
.packages {
  background: var(--light-bg);
  padding: 4rem 0;
}

.packages-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
}

.package-card {
  background: #fff;
  padding: 2rem;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.package-card h3 {
  font-size: 1.35rem;
  margin-bottom: 0.5rem;
  color: var(--primary-color);
}

.package-price {
  font-size: 1rem;
  color: var(--secondary-color);
  font-weight: 600;
  margin-bottom: 0.8rem;
}

.package-card ul {
  list-style: disc inside;
  line-height: 1.5;
}

.package-card li {
  margin-bottom: 0.4rem;
}

/* Case studies */
.cases {
  background: #fff;
  padding: 4rem 0;
}

.case-cards {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
}

.case-card {
  flex: 1 1 300px;
  background: var(--light-bg);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  display: flex;
  flex-direction: column;
}

.case-image img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  object-position: center;
}

.case-content {
  padding: 1.5rem;
  flex: 1;
}

.case-content h3 {
  font-size: 1.4rem;
  margin-bottom: 0.8rem;
  color: var(--primary-color);
}

.case-content p {
  margin-bottom: 0.8rem;
}

.case-content ul {
  list-style: disc inside;
  line-height: 1.4;
}

.case-content li {
  margin-bottom: 0.3rem;
}

/* Technology section */
.technology {
  background: var(--light-bg);
  padding: 4rem 0;
}

.tech-content {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 2rem;
}

.tech-text {
  flex: 1 1 320px;
}

.tech-text h3 {
  font-size: 1.3rem;
  margin: 1rem 0 0.4rem;
  color: var(--primary-color);
}

.tech-text ul {
  list-style: disc inside;
  margin-bottom: 1rem;
  line-height: 1.5;
}

.tech-image {
  flex: 1 1 320px;
  text-align: center;
}

.tech-image img {
  width: 100%;
  max-width: 500px;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

/* Process section */
.process {
  background: #fff;
  padding: 4rem 0;
}

.process-steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
}

.step {
  background: var(--light-bg);
  padding: 2rem;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  text-align: center;
}

.step-number {
  display: inline-block;
  width: 40px;
  height: 40px;
  line-height: 40px;
  border-radius: 50%;
  background: var(--secondary-color);
  color: #fff;
  font-weight: 600;
  margin-bottom: 1rem;
}

.step h4 {
  font-size: 1.2rem;
  margin-bottom: 0.6rem;
  color: var(--primary-color);
}

.step p {
  font-size: 0.95rem;
}

/* Blog section */
.blog {
  background: var(--light-bg);
  padding: 4rem 0;
}

.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 2rem;
}

.blog-post {
  background: #fff;
  padding: 2rem;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.blog-post h3 {
  font-size: 1.35rem;
  margin-bottom: 0.5rem;
  color: var(--primary-color);
}

.blog-date {
  font-size: 0.8rem;
  color: #888;
  margin-bottom: 0.8rem;
}

.blog-post p {
  font-size: 0.95rem;
  margin-bottom: 1rem;
}

.read-more {
  color: var(--secondary-color);
  text-decoration: none;
  font-weight: 500;
}

.read-more:hover {
  text-decoration: underline;
}

/* Contact section */
.contact {
  background: #fff;
  padding: 4rem 0;
}

.contact-intro {
  max-width: 650px;
  margin: 0 auto 2rem;
  text-align: center;
}

.contact-form {
  max-width: 650px;
  margin: 0 auto;
}

.form-group {
  margin-bottom: 1rem;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 0.8rem 1rem;
  border: 1px solid #dcdfe6;
  border-radius: 4px;
  font-size: 1rem;
  color: var(--text-color);
}

.form-group textarea {
  resize: vertical;
}

.contact-form button {
  width: 100%;
}

.contact-form button:hover {
  opacity: 0.85;
}

/* Footer */
.footer {
  background: var(--dark-bg);
  color: #fff;
  padding: 3rem 0;
  font-size: 0.9rem;
}

.footer-content {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 2rem;
  align-items: flex-start;
}

.footer-brand img {
  width: 120px;
  margin-bottom: 1rem;
}

.footer-links ul {
  list-style: none;
}

.footer-links li {
  margin-bottom: 0.5rem;
}

.footer-links a {
  color: #c5d4e0;
  text-decoration: none;
  transition: color 0.3s;
}

.footer-links a:hover {
  color: #fff;
  text-decoration: underline;
}

.footer-contact p,
.footer-contact a {
  color: #c5d4e0;
  margin-bottom: 0.4rem;
  text-decoration: none;
}

.footer-contact a:hover {
  color: #fff;
}

/* Responsive styles */
@media (max-width: 768px) {
  .nav-links {
    position: fixed;
    top: 70px;
    right: -100%;
    width: 240px;
    height: calc(100% - 70px);
    background: #fff;
    flex-direction: column;
    padding: 1.5rem;
    gap: 1.2rem;
    box-shadow: -2px 0 8px rgba(0, 0, 0, 0.1);
    transition: right 0.3s;
    z-index: 999;
  }

  .nav-links.open {
    right: 0;
  }

  .nav-toggle {
    display: flex;
  }

  .hero-content {
    padding: 5rem 1rem 3rem;
  }

  .hero-content h1 {
    font-size: 2rem;
  }

  .hero-buttons {
    flex-direction: column;
  }

  .tech-content {
    flex-direction: column;
  }

  .footer-content {
    flex-direction: column;
    text-align: center;
  }
}