/*
 * Global Stylesheet for Arcadia Design & Development
 *
 * This CSS file defines the typographic system, layout helpers and
 * responsive components used throughout the site. The design aims to
 * balance professionalism with a modern aesthetic and clean lines,
 * ensuring the site feels inviting on both desktop and mobile devices.
 */

/* CSS Variables for theme colours and sizing */
:root {
  --primary: #006d77;
  --secondary: #83c5be;
  --dark: #0a0908;
  --light: #ffffff;
  --bg-light: #f9f9f9;
  --transition: 0.3s ease;
}

/* Reset & base typography */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Montserrat', sans-serif;
  color: var(--dark);
  background-color: var(--bg-light);
  line-height: 1.6;
}

a {
  color: inherit;
  text-decoration: none;
  transition: var(--transition);
}

a:hover {
  color: var(--primary);
}

h1,
h2,
h3 {
  font-weight: 600;
}

h1 {
  font-size: 2.5rem;
}

h2 {
  font-size: 2rem;
  margin-bottom: 1rem;
}

/* Navigation bar */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.75rem 1.5rem;
  background-color: rgba(255, 255, 255, 0.85);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  z-index: 1000;
  backdrop-filter: blur(8px);
}

.navbar .logo img {
  height: 40px;
}

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

.navbar .nav-links li a {
  font-weight: 500;
  color: var(--dark);
}

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

/* Hamburger icon */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 22px;
  height: 16px;
  cursor: pointer;
}

.hamburger span {
  display: block;
  height: 2px;
  width: 100%;
  background-color: var(--dark);
  transition: var(--transition);
}

/* Transform hamburger into an X when open */
.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);
}

/* Hero section */
.hero {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 6rem 1rem 4rem;
  min-height: 100vh;
  background-image: linear-gradient(120deg, #3a6073 0%, #16222a 100%);
  color: var(--light);
}

.hero h1 {
  margin-bottom: 0.75rem;
  font-size: 2.75rem;
  letter-spacing: 1px;
}

.hero p {
  max-width: 600px;
  font-size: 1.1rem;
  margin-bottom: 1.5rem;
  opacity: 0.9;
}

.btn {
  display: inline-block;
  background-color: var(--primary);
  color: var(--light);
  padding: 0.75rem 1.5rem;
  border-radius: 50px;
  font-weight: 500;
  transition: var(--transition);
}

.btn:hover {
  background-color: var(--secondary);
  color: var(--dark);
}

/* About section */
#about {
  padding: 5rem 1.5rem 4rem;
  background-color: var(--light);
  text-align: center;
}

#about .content {
  max-width: 800px;
  margin: 0 auto;
  color: #555;
  font-size: 1.1rem;
}

.stats {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2rem;
  margin-top: 3rem;
}

.stat {
  flex: 1 1 120px;
  max-width: 180px;
}

.stat h3 {
  font-size: 2.25rem;
  color: var(--primary);
  margin-bottom: 0.25rem;
}

.stat p {
  font-size: 0.95rem;
  color: #666;
}

/* Portfolio section */
#portfolio {
  padding: 5rem 1.5rem;
  background-color: var(--bg-light);
  text-align: center;
}

#portfolio .grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  max-width: 1100px;
  margin: 0 auto;
}

.card {
  background-color: var(--light);
  border-radius: 8px;
  padding: 2rem 1.5rem;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
  transition: transform 0.2s ease;
}

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

.card i {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  color: var(--primary);
}

.card h3 {
  margin-bottom: 0.5rem;
  font-size: 1.5rem;
  color: var(--dark);
}

.card p {
  color: #666;
  font-size: 0.95rem;
}

/* Contact section */
#contact {
  padding: 5rem 1.5rem;
  background-color: var(--light);
  text-align: center;
}

#contact .contact-info {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  color: #444;
  font-size: 1.05rem;
}

#contact .contact-info i {
  margin-right: 0.5rem;
  color: var(--primary);
}

#contact form {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.8rem;
  margin-top: 2rem;
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
}

#contact form input,
#contact form textarea {
  width: 100%;
  padding: 0.8rem;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 1rem;
  font-family: inherit;
}

#contact form button {
  background-color: var(--primary);
  color: var(--light);
  border: none;
  padding: 0.75rem 1.5rem;
  border-radius: 4px;
  font-size: 1rem;
  cursor: pointer;
  transition: var(--transition);
}

#contact form button:hover {
  background-color: var(--secondary);
  color: var(--dark);
}

/* Footer */
footer {
  background-color: #1a1a1a;
  color: var(--light);
  text-align: center;
  padding: 1rem;
  font-size: 0.9rem;
}

footer a {
  color: var(--secondary);
  text-decoration: underline;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .navbar .nav-links {
    position: absolute;
    top: 60px;
    right: 0;
    background-color: rgba(255, 255, 255, 0.95);
    flex-direction: column;
    width: 200px;
    padding: 1rem;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    display: none;
  }
  .navbar .nav-links.active {
    display: flex;
  }
  .navbar .nav-links li {
    margin-bottom: 0.75rem;
  }
  .navbar .nav-links li:last-child {
    margin-bottom: 0;
  }
  .hamburger {
    display: flex;
  }
  .hero h1 {
    font-size: 2.2rem;
  }
  .hero p {
    font-size: 1rem;
  }
  .stats {
    gap: 1.5rem;
  }
  .stat h3 {
    font-size: 2rem;
  }
  .card i {
    font-size: 2rem;
  }
  .card h3 {
    font-size: 1.35rem;
  }
}