@import url('https://fonts.googleapis.com/css2?family=Karla:wght@300;400;500;600;700&display=swap');

/* CSS Variables for Theme */
:root {
  --bg-color: rgba(0, 0, 0, 0.7);
  --text-color: #fff;
  --accent-color: #f9004d;
  --button-bg: #077e11;
  --button-hover: #055c0c;
  --link-hover: #f9004d;
  --social-hover: #ff6b00;
}

/* Light Mode Overrides */
body.light-mode {
  --bg-color: #ffffff;
  --text-color: #111111;
  --accent-color: #ff5c5c;
  --button-bg: #006600;
  --button-hover: #004d00;
  --link-hover: #e60000;
  --social-hover: #cc3300;
}

/* Global Reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Karla', sans-serif;
}

html {
  scroll-behavior: smooth;
}

/* Full-page Background with Overlay */

  body {
  background: url('assets/foto1.jpg') center/cover no-repeat fixed;
  /*             ^ missing quote before assets */

  color: var(--text-color);
  min-height: 100vh;
  position: relative;
  z-index: 1;
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-color: var(--bg-color);
  z-index: -1;
}

/* Layout Container */
.container {
  width: 100%;
  padding: 35px 8% 50px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 100vh;
}

/* Navigation */
nav {
  padding: 10px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  position: relative;
}

.logo a {
  font-size: 40px;
  text-decoration: none;
  color: var(--text-color);
  font-weight: bold;
}

span {
  color: var(--accent-color);
}

.menu-toggle {
  display: none;
  font-size: 1.5rem;
  cursor: pointer;
  position: absolute;
  right: 1rem;
  top: 1rem;
  z-index: 1000;
}

.nav-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 20px;
  transition: all 0.3s ease-in-out;
}

.nav-links li {
  list-style: none;
}

.nav-links li a {
  text-decoration: none;
  color: var(--text-color);
  transition: 0.3s ease;
}

.nav-links li a:hover,
.nav-links li a:focus {
  color: var(--link-hover);
  outline: none;
}

.buttons {
  display: flex;
  align-items: center;
  gap: 15px;
}

.login {
  text-decoration: none;
  font-size: 18px;
  color: var(--text-color);
}

.btn {
  background: var(--button-bg);
  border-radius: 6px;
  padding: 9px 25px;
  text-decoration: none;
  font-size: 18px;
  color: var(--text-color);
  cursor: pointer;
  border: none;
  transition: background 0.3s ease;
}

.btn:hover,
form .btn:hover {
  background-color: var(--button-hover);
}

.btn:focus,
a:focus,
button:focus {
  outline: 2px dashed var(--accent-color);
  outline-offset: 4px;
}

/* Main Content */
.content {
  margin-top: 10%;
  max-width: 600px;
  padding-bottom: 30px;
  background-color: rgba(0, 0, 0, 0.5);
  padding: 2rem;
  border-radius: 10px;
}

.content h2 {
  font-size: 60px;
  line-height: 1.2;
}

.content p {
  margin-top: 10px;
  line-height: 1.6;
  font-size: 18px;
}

a {
  color: var(--text-color);
}

.link {
  margin-top: 40px;
  text-align: left;
}

.link .hire,
.hire {
  display: inline-block;
  background: var(--accent-color);
  color: white;
  padding: 1rem 2rem;
  font-size: 16px;
  font-weight: bold;
  border-radius: 10px;
  text-decoration: none;
  transition: all 0.3s ease;
}

.link .hire:hover,
.hire:hover {
  background: transparent;
  color: var(--text-color);
  border: 1px solid var(--text-color);
}

/* Responsive Design */
@media (max-width: 768px) {
  .content h2 {
    font-size: 40px;
  }

  .container {
    padding-left: 5%;
    padding-right: 5%;
  }

  nav {
    flex-direction: column;
    align-items: flex-start;
  }

  .menu-toggle {
    display: block;
  }

  .nav-links {
    display: none;
    flex-direction: column;
    background: rgba(0, 0, 0, 0.95);
    position: absolute;
    top: 60px;
    right: 0;
    width: 200px;
    padding: 1rem;
    border-radius: 6px;
    z-index: 999;
  }

  .nav-links.active {
    display: flex;
  }

  .buttons {
    margin-top: 10px;
    flex-direction: column;
    align-items: flex-start;
  }

  .link {
    text-align: center;
  }
}

/* Sections */
section {
  color: var(--text-color);
  padding: 4rem 1.5rem;
  scroll-margin-top: 80px;
}

section h2 {
  font-size: 36px;
  margin-bottom: 1rem;
  text-align: center;
  color: var(--accent-color);
}

section p {
  font-size: 18px;
  line-height: 1.6;
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}

/* Services */
.service-items {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  justify-content: center;
  margin-top: 2rem;
}

.service {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid #444;
  border-radius: 12px;
  padding: 2rem 1.5rem;
  text-align: center;
  max-width: 280px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(255, 92, 92, 0.2);
}

.service i {
  color: var(--accent-color);
  margin-bottom: 1rem;
}

.service h3 {
  margin: 0.5rem 0;
  color: var(--text-color);
}

/* Contact Form */
form {
  max-width: 500px;
  margin: 2rem auto;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

form label {
  font-weight: 500;
}

form input,
form textarea {
  padding: 0.8rem;
  border-radius: 6px;
  border: none;
  background: #222;
  color: var(--text-color);
}

form input:focus,
form textarea:focus {
  outline: 2px solid var(--accent-color);
  background-color: #333;
}

/* Socials */
.socials {
  text-align: center;
  padding: 1.2rem 1rem;
  margin-top: 2rem;
  color: #ccc;
}

.socials h3 {
  font-size: 1.2rem;
  margin-bottom: 0.4rem;
  color: #eee;
  font-weight: 500;
}

.socials p {
  font-size: 0.9rem;
  margin-bottom: 0.5rem;
}

.socials p a {
  color: var(--social-hover);
  text-decoration: none;
  font-weight: 500;
}

.social-icons {
  margin-top: 0.5rem;
}

.social-icons a {
  margin: 0 8px;
  color: #aaa;
  font-size: 1.3rem;
  transition: color 0.3s ease, transform 0.3s ease;
}

.social-icons a:hover {
  color: var(--social-hover);
  transform: scale(1.1);
}

/* Footer */
footer {
  text-align: center;
  padding: 1.5rem;
  background: rgba(0, 0, 0, 0.6);
  color: #ccc;
  font-size: 0.9rem;
  margin-top: 2rem;
}