/* Marina Oliveira Rocca - Portfolio Website Styles */
/* Modern, clean and responsive design */

/* ===== FONT FACE ===== */
@font-face {
  font-family: 'Mansalva';
  src: url('../fonts/mansalva.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

/* ===== CSS VARIABLES ===== */
:root {
  --primary-color: #02af86;
  --primary-hover: #026d54;
}

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

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Helvetica Neue', Arial, sans-serif;
  line-height: 1.6;
  color: #333;
  background-color: #fff;
  overflow-x: hidden;
}

/* ===== TYPOGRAPHY ===== */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Mansalva', cursive;
  font-weight: 400;
  line-height: 1.3;
  margin-bottom: 1rem;
}

h1 {
  font-size: 2.5rem;
  color: var(--primary-color);
  letter-spacing: 0.5px;
}

h2 {
  font-size: 2rem;
  color: var(--primary-color);
  letter-spacing: 0.5px;
}

h3 {
  font-size: 1.5rem;
  color: var(--primary-color);
  letter-spacing: 0.3px;
}

p {
  margin-bottom: 1rem;
  color: #555;
}

a {
  color: var(--primary-color);
  text-decoration: none;
  transition: all 0.3s ease;
}

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

/* ===== LAYOUT COMPONENTS ===== */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.container-fluid {
  width: 100%;
  padding: 0 20px;
}

/* ===== HEADER & NAVIGATION ===== */
.header {
  background-color: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 1000;
  padding: 1rem 0;
  transition: all 0.3s ease;
}

.header.scrolled {
  background-color: rgba(255, 255, 255, 0.98);
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-family: 'Mansalva', cursive;
  font-size: 1.5rem;
  font-weight: 400;
  color: var(--primary-color);
}

.nav-menu {
  display: flex;
  list-style: none;
  gap: 2rem;
}

.nav-menu a {
  padding: 0.5rem 0;
  font-size: 1.1rem;
  font-weight: 300;
  transition: color 0.3s ease;
}

.nav-menu a:hover,
.nav-menu a.active {
  color: var(--primary-hover);
  text-decoration: none;
}

/* Mobile menu toggle */
.menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  color: var(--primary-color);
  cursor: pointer;
}

/* ===== MAIN CONTENT ===== */
.main-content {
  margin-top: 80px;
  min-height: calc(100vh - 80px);
}

/* ===== HOME PAGE STYLES ===== */
.hero {
  min-height: 40vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 2rem 0;
}

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

.hero-content .subtitle {
  font-size: 1.4rem;
  color: #666;
  margin-bottom: 3rem;
  font-style: italic;
}

.cta-buttons {
  display: flex;
  gap: 2rem;
  justify-content: center;
  flex-wrap: wrap;
}

.btn {
  display: inline-block;
  padding: 12px 30px;
  border: 2px solid var(--primary-color);
  color: var(--primary-color);
  font-size: 1.1rem;
  font-weight: 300;
  text-decoration: none;
  border-radius: 0;
  transition: all 0.3s ease;
  background-color: transparent;
  cursor: pointer;
}

.btn:hover {
  background-color: var(--primary-hover);
  border-color: var(--primary-hover);
  color: white;
  text-decoration: none;
}

.btn-primary {
  background-color: var(--primary-color);
  color: white;
}

.btn-primary:hover {
  background-color: var(--primary-hover);
  border-color: var(--primary-hover);
}

/* ===== GALLERY STYLES ===== */
.gallery {
  padding: 0 0 4rem 0;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.gallery-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
}

.gallery-item img {
  width: 100%;
  height: 300px;
  object-fit: cover;
  display: block;
  transition: transform 0.3s ease;
}

.gallery-item:hover img {
  transform: scale(1.05);
}

.gallery-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.9), rgba(0, 0, 0, 0.7) 60%, transparent);
  color: #f5f5f5;
  padding: 2rem 1.5rem 1.5rem;
  transform: translateY(100%);
  transition: transform 0.3s ease;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.8), 0 1px 2px rgba(0, 0, 0, 0.6);
}

.gallery-overlay h3 {
  color: #66ddc4;
}

.gallery-overlay p {
  color: #d0d0d0;
}

.gallery-item:hover .gallery-overlay {
  transform: translateY(0);
}

/* ===== LIGHTBOX ===== */
.lightbox {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.9);
  z-index: 2000;
  cursor: pointer;
  overflow: auto;
}

.lightbox.active {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.lightbox-content {
  max-width: none;
  max-height: none;
  position: relative;
  margin: auto;
  display: block;
}

.lightbox-content img {
  max-width: 100%;
  max-height: 90vh;
  width: auto;
  height: auto;
  display: block;
  margin: 0 auto;
  transition: opacity 0.3s ease, transform 0.3s ease;
  cursor: zoom-in;
  object-fit: contain;
}

.lightbox-content img.zoomed {
  max-width: none;
  max-height: none;
  cursor: zoom-out;
}

.lightbox.zoomed {
  align-items: flex-start;
  justify-content: flex-start;
  overflow: auto;
}

.lightbox.zoomed .lightbox-content {
  margin: 0;
  width: auto;
  height: auto;
}

.lightbox-content img.loading {
  opacity: 0;
}

/* Loading spinner animation */
.lightbox-content::before {
  content: "";
  display: none;
  position: absolute;
  top: 50%;
  left: 50%;
  width: 60px;
  height: 60px;
  margin: -50px 0 0 -30px;
  border: 4px solid rgba(255, 255, 255, 0.3);
  border-top: 4px solid #ffffff;
  border-radius: 50%;
  animation: lightbox-spin 1s linear infinite;
  z-index: 1;
}

.lightbox-content.loading::before {
  display: block;
}

.lightbox-content.loading::after {
  content: "Loading image...";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, 30px);
  color: white;
  font-size: 0.9rem;
  text-align: center;
  z-index: 1;
}

@keyframes lightbox-spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.lightbox-close {
  position: fixed;
  top: 20px;
  right: 20px;
  color: white;
  font-size: 2rem;
  cursor: pointer;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: rgba(0, 0, 0, 0.5);
  border-radius: 50%;
  z-index: 2001;
}

/* ===== ABOUT SECTION ===== */
.about {
  padding: 4rem 0;
}

.about .hero-content {
  margin-top: 3rem;
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 4rem;
  align-items: start;
  margin-top: 2rem;
}

.about-text {
  margin-top: 3rem;
}

.about-text h2 {
  color: var(--primary-color);
  margin-bottom: 1.5rem;
}

.about-text h3 {
  font-size: 1.3rem;
  margin-top: 2rem;
  margin-bottom: 1rem;
}

.about-image img {
  width: 100%;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.process-image {
  max-width: 800px;
  margin: 3rem auto;
  text-align: center;
}

.process-image img {
  width: 100%;
  height: auto;
  border-radius: 0;
  box-shadow: none;
}

.contact-info {
  background-color: #f8f9fa;
  padding: 2rem;
  border-radius: 8px;
  margin-top: 2rem;
}

.contact-info h3 {
  margin-bottom: 1rem;
}

/* ===== SOCIAL LINKS ===== */
.social-links {
  display: flex;
  gap: 1rem;
  justify-content: center;
  margin: 2rem 0;
}

.social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 50px;
  height: 50px;
  border: 2px solid var(--primary-color);
  border-radius: 50%;
  color: var(--primary-color);
  font-size: 1.2rem;
  transition: all 0.3s ease;
  text-decoration: none;
}

.social-link:hover {
  background-color: var(--primary-color);
  color: white;
  text-decoration: none;
  transform: translateY(-2px);
}

/* ===== FOOTER ===== */
.footer {
  background-color: var(--primary-color);
  color: white;
  text-align: center;
  padding: 2rem 0;
  margin-top: 4rem;
}

.footer p {
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 0;
}

/* ===== LOADING ANIMATIONS ===== */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.6s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ===== LIGHTBOX RESPONSIVE ===== */
@media (max-width: 768px) {
  .lightbox.active {
    padding: 10px;
  }

  .lightbox-close {
    top: 10px;
    right: 10px;
    font-size: 1.8rem;
    width: 35px;
    height: 35px;
  }
}

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 768px) {
  .nav-menu {
    position: fixed;
    top: 80px;
    left: -100%;
    width: 100%;
    height: calc(100vh - 80px);
    background-color: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    padding-top: 2rem;
    transition: left 0.3s ease;
    gap: 2rem;
  }

  .nav-menu.active {
    left: 0;
  }

  .menu-toggle {
    display: block;
  }

  .hero {
    min-height: 25vh;
    padding: 1.5rem 0;
  }

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

  .hero-content .subtitle {
    font-size: 1.2rem;
  }

  .cta-buttons {
    flex-direction: column;
    align-items: center;
    gap: 1rem;
  }

  .about-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .process-image {
    max-width: 100%;
    margin: 2rem auto;
    padding: 0 1rem;
  }

  .process-image img {
    border-radius: 0;
    box-shadow: none;
  }

  .gallery-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .container {
    padding: 0 15px;
  }

  h1 {
    font-size: 2rem;
  }

  h2 {
    font-size: 1.7rem;
  }
}

@media (max-width: 480px) {
  .hero {
    min-height: 20vh;
    padding: 1rem 0;
  }

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

  .hero-content .subtitle {
    font-size: 1.1rem;
  }

  .btn {
    padding: 10px 25px;
    font-size: 1rem;
  }

  .social-links {
    gap: 0.5rem;
  }

  .social-link {
    width: 45px;
    height: 45px;
  }

  .process-image {
    margin: 1.5rem auto;
    padding: 0 0.5rem;
  }

  .process-image img {
    border-radius: 0;
  }
}

/* ===== CONTACT PAGE ===== */
.contact {
  padding: 2rem 0;
  min-height: calc(100vh - 200px);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  margin-top: 3rem;
  align-items: start;
}

.contact-info-section h2,
.contact-form-section h2 {
  margin-bottom: 2rem;
  font-size: 1.75rem;
  color: var(--primary-color);
}

/* Contact Information */
.contact-details {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.contact-item h3 {
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
  color: var(--primary-color);
}

.contact-item p {
  color: #555;
  margin-bottom: 0.5rem;
}

.contact-item a {
  color: var(--primary-hover);
  text-decoration: none;
  font-weight: 500;
}

.contact-item a:hover {
  color: var(--primary-color);
  text-decoration: underline;
}

.contact-item ul {
  list-style: none;
  padding-left: 0;
}

.contact-item ul li {
  color: #555;
  margin-bottom: 0.25rem;
}

.social-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 0.5rem;
}

.social-links a {
  color: var(--primary-hover);
  text-decoration: none;
  padding: 0.5rem 1rem;
  border: 1px solid var(--primary-hover);
  border-radius: 4px;
  transition: all 0.3s ease;
  font-size: 0.9rem;
}

.social-links a:hover {
  background-color: var(--primary-hover);
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(45, 85, 5, 0.2);
}

/* Contact Form */
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.form-group {
  display: flex;
  flex-direction: column;
}

.form-group label {
  font-weight: 500;
  margin-bottom: 0.5rem;
  color: #333;
  font-size: 1rem;
}

.form-group input,
.form-group textarea {
  padding: 0.75rem;
  border: 2px solid #ddd;
  border-radius: 4px;
  font-family: inherit;
  font-size: 1rem;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
  background-color: #fff;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary-hover);
  box-shadow: 0 0 0 3px rgba(45, 85, 5, 0.1);
}

.form-group input:invalid,
.form-group textarea:invalid {
  border-color: #e74c3c;
}

.form-group textarea {
  resize: vertical;
  min-height: 120px;
}

.submit-button {
  background-color: var(--primary-hover);
  color: white;
  border: none;
  padding: 1rem 2rem;
  border-radius: 4px;
  font-size: 1rem;
  font-family: inherit;
  cursor: pointer;
  transition: all 0.3s ease;
  align-self: flex-start;
}

.submit-button:hover {
  background-color: var(--primary-color);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(32, 61, 4, 0.3);
}

.submit-button:active {
  transform: translateY(0);
  box-shadow: 0 2px 6px rgba(32, 61, 4, 0.3);
}

/* Contact page responsive design */
@media screen and (max-width: 1024px) {
  .contact-grid {
    gap: 3rem;
  }
}

@media screen and (max-width: 768px) {
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .social-links {
    justify-content: center;
  }

  .social-links a {
    flex: 1;
    text-align: center;
    min-width: auto;
  }
}

@media screen and (max-width: 480px) {
  .contact {
    padding: 1.5rem 0;
  }

  .contact-grid {
    gap: 2rem;
    margin-top: 2rem;
  }

  .social-links {
    flex-direction: column;
    gap: 0.75rem;
  }

  .submit-button {
    width: 100%;
    text-align: center;
  }
}

/* ===== ACCESSIBILITY ===== */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* Focus styles for better accessibility */
a:focus,
button:focus,
.btn:focus {
  outline: 2px solid var(--primary-color);
  outline-offset: 2px;
}

/* Print styles */
@media print {
  .header,
  .menu-toggle,
  .social-links,
  .lightbox {
    display: none !important;
  }

  body {
    font-size: 12pt;
    line-height: 1.4;
  }

  .main-content {
    margin-top: 0;
  }
}