/*
Theme Name: Pedro Cutrim Portfolio
Theme URI: https://pedrocutrim.com.br
Author: Pedro Cutrim
Author URI: https://pedrocutrim.com.br
Description: A professional portfolio theme for Pedro Cutrim, developer and OWASP Teresina member.
Version: 1.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: pedrocutrim
Tags: portfolio, dark, purple, minimalist, professional
*/

/* Reset and Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Inter", sans-serif;
  background-color: #0f0f1a;
  color: #e0e0e0;
  line-height: 1.6;
}

a {
  color: #a855f7;
  text-decoration: none;
  transition: color 0.3s ease;
}

a:hover {
  color: #c084fc;
}

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

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

/* Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 1rem;
  color: #ffffff;
}

h1 {
  font-size: 3rem;
}

h2 {
  font-size: 2.5rem;
  position: relative;
  display: inline-block;
}

h2:after {
  content: "";
  position: absolute;
  bottom: -10px;
  left: 0;
  width: 60px;
  height: 4px;
  background: linear-gradient(90deg, #a855f7, #6366f1);
}

h3 {
  font-size: 1.5rem;
  color: #a855f7;
}

p {
  margin-bottom: 1.5rem;
}

/* Header */
.site-header {
  background-color: rgba(15, 15, 26, 0.9);
  backdrop-filter: blur(10px);
  position: fixed;
  width: 100%;
  z-index: 1000;
  padding: 1rem 0;
  border-bottom: 1px solid rgba(168, 85, 247, 0.1);
}

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

.site-branding {
  font-weight: 700;
  font-size: 1.5rem;
  color: #ffffff;
}

.main-navigation ul {
  display: flex;
  list-style: none;
  gap: 2rem;
}

.main-navigation a {
  color: #e0e0e0;
  font-weight: 500;
  position: relative;
}

.main-navigation a:hover {
  color: #a855f7;
}

.main-navigation a:after {
  content: "";
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, #a855f7, #6366f1);
  transition: width 0.3s ease;
}

.main-navigation a:hover:after {
  width: 100%;
}

.header-cta {
  background: linear-gradient(90deg, #a855f7, #6366f1);
  color: #ffffff;
  padding: 0.5rem 1.5rem;
  border-radius: 4px;
  font-weight: 500;
  transition: all 0.3s ease;
}

.header-cta:hover {
  background: linear-gradient(90deg, #9333ea, #4f46e5);
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(168, 85, 247, 0.3);
}

/* Hero Section */
.hero {
  padding: 10rem 0 6rem;
  position: relative;
  overflow: hidden;
}

.hero:before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at top right, rgba(99, 102, 241, 0.1), transparent 50%);
  z-index: -1;
}

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

.hero-text {
  max-width: 600px;
}

.hero-badge {
  display: inline-block;
  background-color: rgba(168, 85, 247, 0.1);
  color: #a855f7;
  padding: 0.5rem 1rem;
  border-radius: 50px;
  font-size: 0.875rem;
  font-weight: 500;
  margin-bottom: 1.5rem;
  border: 1px solid rgba(168, 85, 247, 0.2);
}

.hero-title {
  font-size: 3.5rem;
  margin-bottom: 1.5rem;
  line-height: 1.1;
}

.hero-title span {
  background: linear-gradient(90deg, #a855f7, #6366f1);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-description {
  font-size: 1.25rem;
  color: #b0b0b0;
  margin-bottom: 2rem;
}

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

.btn-primary {
  background: linear-gradient(90deg, #a855f7, #6366f1);
  color: #ffffff;
  padding: 0.75rem 1.5rem;
  border-radius: 4px;
  font-weight: 500;
  transition: all 0.3s ease;
  display: inline-block;
}

.btn-primary:hover {
  background: linear-gradient(90deg, #9333ea, #4f46e5);
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(168, 85, 247, 0.3);
}

.btn-secondary {
  background-color: transparent;
  color: #e0e0e0;
  padding: 0.75rem 1.5rem;
  border-radius: 4px;
  font-weight: 500;
  border: 1px solid rgba(168, 85, 247, 0.3);
  transition: all 0.3s ease;
  display: inline-block;
}

.btn-secondary:hover {
  border-color: #a855f7;
  color: #a855f7;
  transform: translateY(-2px);
}

.hero-image {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

.profile-image {
  width: 100%;
  max-width: 400px;
  border-radius: 8px;
  position: relative;
  z-index: 2;
  border: 4px solid rgba(168, 85, 247, 0.2);
}

.profile-image:after {
  content: "";
  position: absolute;
  top: 20px;
  left: 20px;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, #a855f7, #6366f1);
  z-index: -1;
  border-radius: 8px;
  opacity: 0.3;
}

/* Section Styles */
.section {
  padding: 6rem 0;
  position: relative;
}

.section-title-container {
  text-align: center;
  margin-bottom: 4rem;
}

.section-subtitle {
  color: #a855f7;
  font-weight: 500;
  margin-bottom: 0.5rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  font-size: 0.875rem;
}

.section-title {
  font-size: 2.5rem;
  margin-bottom: 1.5rem;
}

.section-title:after {
  content: "";
  display: block;
  width: 80px;
  height: 4px;
  background: linear-gradient(90deg, #a855f7, #6366f1);
  margin: 1.5rem auto 0;
}

.section-description {
  max-width: 700px;
  margin: 0 auto;
  color: #b0b0b0;
  font-size: 1.125rem;
}

/* About Section */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
}

.about-card {
  background-color: rgba(30, 30, 46, 0.5);
  border-radius: 8px;
  padding: 2rem;
  margin-bottom: 2rem;
  border: 1px solid rgba(168, 85, 247, 0.1);
  transition: all 0.3s ease;
}

.about-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
  border-color: rgba(168, 85, 247, 0.3);
}

.about-card h3 {
  margin-bottom: 1rem;
}

.skill-list {
  list-style: none;
}

.skill-list li {
  display: flex;
  align-items: center;
  margin-bottom: 0.75rem;
}

.skill-list li svg {
  margin-right: 0.75rem;
  color: #a855f7;
}

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

.social-link {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background-color: rgba(168, 85, 247, 0.1);
  padding: 0.5rem 1rem;
  border-radius: 4px;
  transition: all 0.3s ease;
  border: 1px solid rgba(168, 85, 247, 0.2);
}

.social-link:hover {
  background-color: rgba(168, 85, 247, 0.2);
  transform: translateY(-2px);
}

/* Technologies Section */
.tech-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
  gap: 2rem;
  justify-items: center;
}

.tech-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.tech-icon {
  width: 60px;
  height: 60px;
  margin-bottom: 1rem;
  transition: all 0.3s ease;
}

.tech-item:hover .tech-icon {
  transform: translateY(-5px);
}

.tech-name {
  font-size: 0.875rem;
  font-weight: 500;
}

/* Services Section */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 2rem;
}

.service-card {
  background-color: rgba(30, 30, 46, 0.5);
  border-radius: 8px;
  padding: 2rem;
  border: 1px solid rgba(168, 85, 247, 0.1);
  transition: all 0.3s ease;
}

.service-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
  border-color: rgba(168, 85, 247, 0.3);
}

.service-icon {
  color: #a855f7;
  font-size: 2rem;
  margin-bottom: 1.5rem;
}

/* Portfolio Section */
.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  gap: 2rem;
}

.portfolio-item {
  border-radius: 8px;
  overflow: hidden;
  position: relative;
  border: 1px solid rgba(168, 85, 247, 0.1);
  transition: all 0.3s ease;
}

.portfolio-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
  border-color: rgba(168, 85, 247, 0.3);
}

.portfolio-image {
  height: 200px;
  width: 100%;
  object-fit: cover;
}

.portfolio-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to top, rgba(15, 15, 26, 0.9), transparent);
}

.portfolio-content {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  padding: 2rem;
}

.portfolio-title {
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
}

.portfolio-category {
  color: #a855f7;
  font-size: 0.875rem;
  margin-bottom: 1rem;
}

.portfolio-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 500;
}

/* Contact Section */
.contact-form {
  max-width: 600px;
  margin: 0 auto;
}

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

.form-label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 500;
}

.form-control {
  width: 100%;
  padding: 0.75rem 1rem;
  background-color: rgba(30, 30, 46, 0.5);
  border: 1px solid rgba(168, 85, 247, 0.2);
  border-radius: 4px;
  color: #e0e0e0;
  font-family: inherit;
  transition: all 0.3s ease;
}

.form-control:focus {
  outline: none;
  border-color: #a855f7;
  box-shadow: 0 0 0 3px rgba(168, 85, 247, 0.2);
}

textarea.form-control {
  min-height: 150px;
  resize: vertical;
}

.btn-submit {
  width: 100%;
  background: linear-gradient(90deg, #a855f7, #6366f1);
  color: #ffffff;
  padding: 0.75rem 1.5rem;
  border: none;
  border-radius: 4px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
}

.btn-submit:hover {
  background: linear-gradient(90deg, #9333ea, #4f46e5);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(168, 85, 247, 0.3);
}

/* Footer */
.site-footer {
  background-color: rgba(15, 15, 26, 0.9);
  padding: 3rem 0;
  border-top: 1px solid rgba(168, 85, 247, 0.1);
}

.footer-social {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.footer-social a {
  color: #a855f7;
  font-size: 1.5rem;
  transition: all 0.3s ease;
}

.footer-social a:hover {
  color: #c084fc;
  transform: translateY(-3px);
}

.footer-copyright {
  text-align: center;
  color: #b0b0b0;
  font-size: 0.875rem;
}

/* OWASP Badge */
.owasp-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background-color: rgba(168, 85, 247, 0.1);
  padding: 0.5rem 1rem;
  border-radius: 4px;
  font-size: 0.875rem;
  font-weight: 500;
  border: 1px solid rgba(168, 85, 247, 0.2);
  margin-top: 1rem;
}

.owasp-badge img {
  width: 20px;
  height: 20px;
}

/* Responsive Styles */
@media (max-width: 992px) {
  .hero-content {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .hero-image {
    order: -1;
  }

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

  .services-grid {
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  }

  .portfolio-grid {
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  }
}

@media (max-width: 768px) {
  h1 {
    font-size: 2.5rem;
  }

  h2 {
    font-size: 2rem;
  }

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

  .main-navigation {
    display: none;
  }

  .mobile-menu-toggle {
    display: block;
  }

  .hero {
    padding: 8rem 0 4rem;
  }

  .section {
    padding: 4rem 0;
  }

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

  .social-links {
    flex-direction: column;
  }
}

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

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

  .tech-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}
