/* Reset & Base */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --color-primary: #0a1a2f;
  --color-primary-light: #0e2a47;
  --color-primary-dark: #061019;
  --color-white: hsl(0, 0%, 100%);
  --color-gray-100: #f8fafc;
  --color-gray-200: #e2e8f0;
  --color-gray-300: #cbd5e1;
  --color-gray-600: #475569;
  --color-accent: #3b82f6;
  --font-family: "Segoe UI", system-ui, -apple-system, sans-serif;
  --transition: all 0.3s ease;
  --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-family);
  line-height: 1.6;
  color: var(--color-primary);
  background-color: var(--color-white);
  overflow-x: hidden;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  text-decoration: none;
  color: inherit;
}

ul {
  list-style: none;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 1rem 2rem;
  font-size: 1rem;
  font-weight: 600;
  border-radius: 0.5rem;
  cursor: pointer;
  transition: var(--transition);
  border: none;
}

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

.btn-primary:hover {
  background-color: #2563eb;
  transform: translateX(2px);
  box-shadow: var(--shadow-lg);
}

/* Header */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background-color: var(--color-primary);
  padding: 1rem 0;
  transition: var(--transition);
}

.header.scrolled {
  box-shadow: var(--shadow-lg);
  padding: 0.75rem 0;
}

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

.logo {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.logo-text {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--color-white);
  letter-spacing: 0.1em;
}

.logo-sub {
  font-size: 0.75rem;
  color: var(--color-gray-300);
  text-transform: uppercase;
  letter-spacing: 0.15em;
}

.nav-list {
  display: flex;
  gap: 2.5rem;
}

.nav-link {
  color: var(--color-white);
  font-weight: 500;
  position: relative;
  padding: 0.25rem 0;
}

.nav-link::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--color-accent);
  transition: var(--transition);
}

.nav-link:hover::after {
  width: 100%;
}

.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
}

.menu-bar {
  width: 25px;
  height: 2px;
  background-color: var(--color-white);
  transition: var(--transition);
}

/* Hero Section */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-light) 100%);
  padding-top: 5rem;
}

.hero-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.hero-subtitle {
  color: var(--color-accent);
  font-size: 1rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 1rem;
}

.hero-title {
  font-size: 4rem;
  font-weight: 800;
  color: var(--color-white);
  line-height: 1.1;
  margin-bottom: 1.5rem;
}

.hero-description {
  font-size: 1.25rem;
  color: var(--color-gray-300);
  margin-bottom: 2rem;
  max-width: 480px;
}

.hero-image-wrapper {
  position: relative;
  border-radius: 1rem;
  overflow: hidden;
  box-shadow: var(--shadow-xl);
}

.hero-image-wrapper::before {
  content: "";
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: conic-gradient(from 0deg, transparent, var(--color-accent), transparent 30%);
  animation: rotate 4s linear infinite;
  opacity: 0.3;
}

@keyframes rotate {
  100% {
    transform: rotate(360deg);
  }
}

.hero-image-wrapper img {
  position: relative;
  z-index: 1;
  width: 100%;
  height: auto;
  object-fit: cover;
}



/* Section Styles */
.section-header {
  text-align: center;
  margin-bottom: 4rem;
}

.section-tag {
  display: inline-block;
  background-color: var(--color-accent);
  color: var(--color-white);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: 0.5rem 1rem;
  border-radius: 2rem;
  margin-bottom: 1rem;
}

.section-tag-light {
  background-color: rgba(255, 255, 255, 0.2);
}

.section-title {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--color-primary);
}

/* Sobre Section */
.sobre {
  padding: 8rem 0;
  background-color: var(--color-gray-100);
}

.sobre-content {
  display: grid;
  gap: 4rem;
}

.sobre-text {
  max-width: 700px;
  margin: 0 auto;
  text-align: center;
}

.sobre-text p {
  font-size: 1.125rem;
  color: var(--color-gray-600);
  margin-bottom: 1rem;
}

.sobre-text strong {
  color: var(--color-primary);
}

.sobre-skills {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}

.skill-card {
  background-color: var(--color-white);
  padding: 2rem;
  border-radius: 1rem;
  text-align: center;
  box-shadow: var(--shadow);
  transition: var(--transition);
}

.skill-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

.skill-icon {
  width: 64px;
  height: 64px;
  background-color: var(--color-primary);
  color: var(--color-white);
  border-radius: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem;
}

.skill-card h3 {
  font-size: 1.125rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: var(--color-primary);
}

.skill-card p {
  font-size: 0.875rem;
  color: var(--color-gray-600);
}

/* Trabalhos Section */
.trabalhos {
  padding: 8rem 0;
  background-color: var(--color-white);
}

.portfolio-category {
  margin-bottom: 4rem;
}

.portfolio-category:last-child {
  margin-bottom: 0;
}

.category-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--color-primary);
  margin-bottom: 1.5rem;
  padding-bottom: 0.75rem;
  border-bottom: 2px solid var(--color-gray-200);
}

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.portfolio-card {
  background-color: var(--color-white);
  border-radius: 1rem;
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: var(--transition);
}

.portfolio-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-xl);
}

.portfolio-image {
  position: relative;
  overflow: hidden;
  aspect-ratio: 4 / 3;
}

.portfolio-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition);
}

.portfolio-card:hover .portfolio-image img {
  transform: scale(1.05);
}

.portfolio-info {
  padding: 1.5rem;
}

.portfolio-info h4 {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--color-primary);
  margin-bottom: 0.5rem;
}

.portfolio-info p {
  font-size: 0.875rem;
  color: var(--color-gray-600);
}

/* Modal base */
.image-modal {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease;
  z-index: 9999;
}

/* Modal ativo */
.image-modal.active {
  opacity: 1;
  visibility: visible;
}

/* Imagem ampliada */
.modal-image {
  max-width: 90%;
  max-height: 85vh;
  border-radius: 16px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.6);
  transform: scale(0.9);
  transition: transform 0.3s ease;
}

.image-modal.active .modal-image {
  transform: scale(1);
}

/* Botão fechar */
.modal-close {
  position: absolute;
  top: 32px;
  right: 40px;
  font-size: 42px;
  color: #fff;
  cursor: pointer;
  transition: opacity 0.2s;
}

.modal-close:hover {
  opacity: 0.7;
}

/* Cursor de zoom nos cards */
.portfolio-card img {
  cursor: zoom-in;
}

/* Contato Section */
.contato {
  padding: 8rem 0;
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-light) 100%);
}

.contato-content {
  text-align: center;
  max-width: 700px;
  margin: 0 auto;
}

.contato-title {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--color-white);
  margin-bottom: 1rem;
}

.contato-text {
  font-size: 1.125rem;
  color: var(--color-gray-300);
  margin-bottom: 2.5rem;
}

.contato-buttons {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
}

.btn-contact {
  padding: 1rem 2rem;
  font-size: 1rem;
  font-weight: 600;
  border-radius: 0.5rem;
  color: var(--color-white);
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  transition: var(--transition);
}

.btn-whatsapp {
  background-color: #25d366;
}

.btn-whatsapp:hover {
  background-color: #128c7e;
  transform: translateY(-2px);
}

.btn-instagram {
  background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888);
}

.btn-instagram:hover {
  opacity: 0.9;
  transform: translateY(-2px);
}

.btn-behance {
  background-color: #1769ff;
}

.btn-behance:hover {
  background-color: #0050e6;
  transform: translateY(-2px);
}

/* Footer */
.footer {
  background-color: var(--color-primary-dark);
  padding: 2rem 0;
}

.footer-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  text-align: center;
}

.footer p {
  color: var(--color-gray-300);
  font-size: 0.875rem;
}

/* Animations */
.animate-on-scroll {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.animate-on-scroll.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Mobile Menu */
.nav.active .nav-list {
  display: flex;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .hero-content {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero-title {
    font-size: 3rem;
  }

  .hero-description {
    margin-left: auto;
    margin-right: auto;
  }

  .hero-image {
    max-width: 400px;
    margin: 0 auto;
  }

  .sobre-skills {
    grid-template-columns: repeat(2, 1fr);
  }

  .portfolio-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .menu-toggle {
    display: flex;
  }

  .nav {
    position: fixed;
    top: 0;
    right: -100%;
    width: 100%;
    height: 100vh;
    background-color: var(--color-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
  }

  .nav.active {
    right: 0;
  }

  .nav-list {
    flex-direction: column;
    align-items: center;
    gap: 2rem;
  }

  .nav-link {
    font-size: 1.5rem;
  }

  .menu-toggle.active .menu-bar:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
  }

  .menu-toggle.active .menu-bar:nth-child(2) {
    opacity: 0;
  }

  .menu-toggle.active .menu-bar:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
  }

  .hero {
    padding-top: 6rem;
  }

  .hero-title {
    font-size: 2.5rem;
  }

  .section-title {
    font-size: 2rem;
  }

  .sobre-skills {
    grid-template-columns: 1fr;
  }

  .portfolio-grid {
    grid-template-columns: 1fr;
  }

  .contato-title {
    font-size: 2rem;
  }

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

  .btn-contact {
    width: 100%;
    justify-content: center;
  }
}

@media (max-width: 480px) {
  .hero-title {
    font-size: 2rem;
  }

  .hero-description {
    font-size: 1rem;
  }

  .sobre,
  .trabalhos,
  .contato {
    padding: 5rem 0;
  }
}
