/* 
  Portfolio Tech Solutions
  Theme: Modern Dark Mode + Glassmorphism
*/

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  /* Dark Theme Colors */
  --bg-color: #0b0c10;
  --bg-accent: #111217;
  --text-main: #e2e8f0;
  --text-muted: #94a3b8;

  /* Brand Colors */
  --primary: #38bdf8;
  --primary-glow: rgba(56, 189, 248, 0.4);
  --secondary: #818cf8;

  /* Glassmorphism */
  --glass-bg: rgba(255, 255, 255, 0.03);
  --glass-border: rgba(255, 255, 255, 0.08);

  /* Spaces & Sizes */
  --container-width: 1200px;
  --section-pad: 120px 20px;
  --border-radius: 20px;
  --transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

body {
  font-family: 'Inter', sans-serif;
  background-color: var(--bg-color);
  color: var(--text-main);
  line-height: 1.6;
  overflow-x: hidden;
  position: relative;
}

h1,
h2,
h3,
.logo-text {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  line-height: 1.2;
}

a {
  text-decoration: none;
  color: inherit;
}

.container {
  max-width: var(--container-width);
  margin: 0 auto;
  position: relative;
  z-index: 10;
}

.text-center {
  text-align: center;
}

.section-padding {
  padding: var(--section-pad);
}

/* --- Background Orbs (Glowing Effects) --- */
.bg-grid {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background-size: 50px 50px;
  background-image: linear-gradient(to right, rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  z-index: 0;
  pointer-events: none;
  mask-image: linear-gradient(to bottom, black 40%, transparent 100%);
  -webkit-mask-image: linear-gradient(to bottom, black 40%, transparent 100%);
}

.bg-orb {
  position: fixed;
  border-radius: 50%;
  filter: blur(100px);
  opacity: 0.5;
  z-index: 1;
  pointer-events: none;
  transition: transform 2s ease-out;
}

.orb-1 {
  top: -10%;
  left: -10%;
  width: 500px;
  height: 500px;
  background: rgba(56, 189, 248, 0.3);
}

.orb-2 {
  bottom: -20%;
  right: -10%;
  width: 600px;
  height: 600px;
  background: rgba(129, 140, 248, 0.2);
}

.orb-3 {
  top: 40%;
  left: 50%;
  width: 400px;
  height: 400px;
  transform: translateX(-50%);
  background: rgba(232, 75, 111, 0.15);
}

/* --- Utility Classes --- */
.text-gradient {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.highlight {
  color: var(--primary);
}

.h2 {
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  margin-bottom: 20px;
}

.h3 {
  font-size: 1.5rem;
  margin-bottom: 15px;
}

.section-desc {
  color: var(--text-muted);
  font-size: 1.1rem;
  max-width: 600px;
  margin: 0 auto 60px;
}

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 28px;
  border-radius: 50px;
  font-weight: 600;
  font-family: 'Space Grotesk', sans-serif;
  transition: var(--transition);
  cursor: pointer;
  border: 1px solid transparent;
  font-size: 1rem;
}

.btn-primary {
  background: var(--text-main);
  color: var(--bg-color);
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 20px rgba(255, 255, 255, 0.1);
}

.btn-outline {
  background: transparent;
  border-color: var(--glass-border);
  color: var(--text-main);
  backdrop-filter: blur(10px);
}

.btn-outline:hover {
  border-color: var(--text-main);
  background: rgba(255, 255, 255, 0.05);
  transform: translateY(-3px);
}

.btn-glass {
  background: rgba(37, 211, 102, 0.1);
  border-color: rgba(37, 211, 102, 0.3);
  color: #4ade80;
  backdrop-filter: blur(10px);
}

.btn-glass:hover {
  background: rgba(37, 211, 102, 0.2);
  transform: translateY(-3px);
  box-shadow: 0 10px 20px rgba(37, 211, 102, 0.15);
}

/* --- Header / Navigation --- */
.glass-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  padding: 20px 0;
  border-bottom: 1px solid var(--glass-border);
  background: rgba(11, 12, 16, 0.7);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
}

.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 20px;
}

.logo-text {
  font-size: 1.8rem;
  letter-spacing: -1px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 30px;
}

.nav-links a:not(.btn) {
  font-weight: 500;
  font-size: 0.95rem;
  color: var(--text-muted);
  transition: var(--transition);
}

.nav-links a:not(.btn):hover {
  color: var(--text-main);
}

.mobile-menu-btn {
  display: none;
  background: transparent;
  border: none;
  cursor: pointer;
  flex-direction: column;
  gap: 6px;
  z-index: 1001;
  padding: 10px;
}

.mobile-menu-btn span {
  display: block;
  width: 25px;
  height: 2px;
  background: var(--text-main);
  transition: var(--transition);
}

/* --- Hero Section --- */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding-top: 80px;
  position: relative;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--glass-bg);
  padding: 8px 16px;
  border-radius: 50px;
  border: 1px solid var(--glass-border);
  font-size: 0.85rem;
  font-weight: 500;
  margin-bottom: 30px;
  backdrop-filter: blur(10px);
}

.pulse {
  width: 8px;
  height: 8px;
  background: #22c55e;
  border-radius: 50%;
  box-shadow: 0 0 10px #22c55e;
  position: relative;
}

.pulse::after {
  content: '';
  position: absolute;
  top: -4px;
  left: -4px;
  right: -4px;
  bottom: -4px;
  border-radius: 50%;
  border: 2px solid #22c55e;
  animation: ping 2s cubic-bezier(0, 0, 0.2, 1) infinite;
}

@keyframes ping {

  75%,
  100% {
    transform: scale(2);
    opacity: 0;
  }
}

.hero-title {
  font-size: clamp(3rem, 7vw, 5.5rem);
  letter-spacing: -2px;
  margin-bottom: 30px;
}

.hero-subtitle {
  font-size: clamp(1.1rem, 2vw, 1.25rem);
  color: var(--text-muted);
  max-width: 700px;
  margin: 0 auto 40px;
}

.hero-actions {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
}

/* --- Services Grid --- */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 30px;
}

.glass-card {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--border-radius);
  padding: 40px;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.glass-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at top right, rgba(255, 255, 255, 0.05) 0%, transparent 50%);
  pointer-events: none;
}

.glass-card:hover {
  transform: translateY(-10px);
  border-color: rgba(255, 255, 255, 0.15);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
}

.card-icon {
  width: 60px;
  height: 60px;
  border-radius: 12px;
  background: rgba(56, 189, 248, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  margin-bottom: 25px;
  border: 1px solid rgba(56, 189, 248, 0.2);
}

.card-icon svg {
  width: 28px;
  height: 28px;
}

/* --- Projects Section --- */
.project-list {
  display: flex;
  flex-direction: column;
  gap: 80px;
}

.project-item {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  align-items: center;
  padding: 0;
  background: transparent;
  border: none;
  overflow: visible;
}

.project-item.reverse {
  direction: rtl;
}

.project-item.reverse>* {
  direction: ltr;
}

.project-info {
  padding: 40px;
}

.project-tags {
  display: flex;
  gap: 10px;
  margin-bottom: 20px;
}

.tag {
  font-size: 0.75rem;
  padding: 4px 12px;
  border-radius: 50px;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  color: var(--secondary);
}

.project-info .h3 {
  font-size: 2.2rem;
}

.project-info p {
  color: var(--text-muted);
  margin-bottom: 30px;
  font-size: 1.1rem;
}

.project-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  color: var(--primary);
  transition: var(--transition);
  font-family: 'Space Grotesk', sans-serif;
}

.project-link svg {
  width: 18px;
  height: 18px;
  transition: transform 0.3s ease;
}

.project-link:hover {
  color: var(--text-main);
}

.project-link:hover svg {
  transform: translateX(5px);
}

/* Mac Window Mockup */
.mockup-window {
  background: var(--bg-accent);
  border: 1px solid var(--glass-border);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.6);
  position: relative;
  transition: transform 0.5s ease;
}

.project-item:hover .mockup-window {
  transform: scale(1.02) translateY(-10px);
}

.mockup-header {
  height: 30px;
  background: rgba(255, 255, 255, 0.02);
  display: flex;
  align-items: center;
  padding: 0 15px;
  gap: 6px;
  border-bottom: 1px solid var(--glass-border);
}

.mockup-header i {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.mockup-header i:nth-child(1) {
  background: #ef4444;
}

.mockup-header i:nth-child(2) {
  background: #eab308;
}

.mockup-header i:nth-child(3) {
  background: #22c55e;
}

.mockup-content {
  height: 350px;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 20px;
  background-size: cover;
  background-position: top center;
  background-repeat: no-repeat;
  border-radius: 0 0 16px 16px;
}

/* Actual Project Previews */
.ediana-bg {
  background-image: url('assets/ediana.png');
}

.hotel-bg {
  background-image: url('assets/hotelzinho.png');
}

.glpi-bg {
  background-image: url('assets/glpi.png');
}

.mockup-text {
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(5px);
  color: white;
  padding: 8px 16px;
  border-radius: 8px;
  font-size: 0.85rem;
  font-weight: 500;
}

/* --- Footer --- */
.footer {
  border-top: 1px solid var(--glass-border);
  padding: 80px 20px 40px;
  position: relative;
}

.footer-desc {
  max-width: 500px;
  margin: 0 auto 40px;
  color: var(--text-muted);
}

.footer-cta {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-bottom: 80px;
  flex-wrap: wrap;
}

.footer-bottom {
  border-top: 1px solid var(--glass-border);
  padding-top: 30px;
  color: #64748b;
  font-size: 0.9rem;
}

.glow-button {
  box-shadow: 0 0 20px rgba(56, 189, 248, 0.4);
  border: 1px solid rgba(56, 189, 248, 0.8);
}

/* --- Animations --- */
.reveal-up {
  opacity: 0;
  transform: translateY(40px);
  transition: all 0.8s cubic-bezier(0.5, 0, 0, 1);
}

.reveal-up.active {
  opacity: 1;
  transform: translateY(0);
}

/* --- Responsive --- */
@media (max-width: 992px) {
  .project-item {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .project-item.reverse {
    direction: ltr;
  }

  .project-info {
    padding: 0;
  }

  .mockup-content {
    height: 250px;
  }

  .bg-orb {
    display: none;
  }

  /* Better performance on mobile */
}

@media (max-width: 768px) {
  .nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    width: 300px;
    max-width: 80%;
    height: 100vh;
    background: rgba(11, 12, 16, 0.95);
    backdrop-filter: blur(20px);
    flex-direction: column;
    justify-content: center;
    border-left: 1px solid var(--glass-border);
    transition: var(--transition);
  }

  .nav-links.active {
    right: 0;
  }

  .mobile-menu-btn {
    display: flex;
  }

  .mobile-menu-btn.active span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
  }

  .mobile-menu-btn.active span:nth-child(2) {
    opacity: 0;
  }

  .mobile-menu-btn.active span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
  }

  .h2 {
    font-size: 2.2rem;
  }

  .btn {
    width: 100%;
  }
}