/* ===================================
   C.E.C. I.T. - Design System
   Business Card Color Scheme
   =================================== */

/* Import Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Outfit:wght@600;700;800&display=swap');

/* ===================================
   CSS Custom Properties
   =================================== */
:root {
  /* Business Card Colors - EXACT */
  --color-primary: #5ba3a3;
  /* Teal/Cyan accent */
  --color-secondary: #a48b44;
  /* Gold - Logo color */
  --color-bg-dark: #30445f;
  /* Background color */
  --color-bg-darker: #1f2d3d;
  /* Darker for contrast */
  --color-border: #5ba3a3;
  /* Teal border */

  /* Text Colors */
  --color-text-primary: #ffffff;
  --color-text-secondary: #b8c5d6;
  --color-text-muted: #8a9bb0;

  /* Spacing */
  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 1.5rem;
  --space-lg: 2rem;
  --space-xl: 3rem;
  --space-2xl: 4rem;
  --space-3xl: 6rem;

  /* Typography */
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-heading: 'Outfit', sans-serif;

  --font-size-xs: 0.875rem;
  --font-size-sm: 1rem;
  --font-size-md: 1.125rem;
  --font-size-lg: 1.5rem;
  --font-size-xl: 2rem;
  --font-size-2xl: 2.5rem;
  --font-size-3xl: 3.5rem;
  --font-size-4xl: 4.5rem;

  /* Border Radius */
  --radius-sm: 0.5rem;
  --radius-md: 1rem;
  --radius-lg: 1.5rem;

  /* Shadows */
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.2);
  --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.3);
  --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.4);

  /* Transitions */
  --transition-fast: 150ms ease;
  --transition-base: 300ms ease;
  --transition-slow: 500ms ease;

  /* Z-index */
  --z-base: 1;
  --z-fixed: 300;
  --z-modal: 400;
}

/* ===================================
   Reset & Base
   =================================== */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-body);
  font-size: var(--font-size-sm);
  line-height: 1.7;
  color: var(--color-text-primary);
  background: var(--color-bg-darker);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* ===================================
   Typography
   =================================== */
h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: var(--space-md);
  color: var(--color-text-primary);
}

h1 {
  font-size: var(--font-size-3xl);
  font-weight: 800;
  color: var(--color-text-primary);
}

h2 {
  font-size: var(--font-size-2xl);
}

h3 {
  font-size: var(--font-size-xl);
  font-weight: 600;
}

p {
  margin-bottom: var(--space-md);
  color: var(--color-text-secondary);
}

a {
  color: var(--color-primary);
  text-decoration: none;
  transition: color var(--transition-fast);
}

a:hover {
  color: var(--color-secondary);
}

/* ===================================
   Layout
   =================================== */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--space-md);
}

.section {
  padding: var(--space-3xl) 0;
  position: relative;
  background: var(--color-bg-dark);
}

/* ===================================
   Navigation
   =================================== */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: var(--z-fixed);
  background: rgba(48, 68, 95, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--color-border);
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--space-md);
  max-width: 1200px;
  margin: 0 auto;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  font-family: var(--font-heading);
  font-size: var(--font-size-lg);
  font-weight: 800;
  color: var(--color-text-primary);
}

.logo-img {
  width: 60px;
  height: 60px;
  object-fit: contain;
}

.logo-text {
  color: var(--color-text-primary);
}

.nav-menu {
  display: flex;
  gap: var(--space-lg);
  list-style: none;
}

.nav-link {
  color: var(--color-text-secondary);
  font-weight: 500;
  padding: var(--space-xs) var(--space-sm);
  transition: all var(--transition-fast);
  position: relative;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 50%;
  width: 0;
  height: 2px;
  background: var(--color-primary);
  transform: translateX(-50%);
  transition: width var(--transition-base);
}

.nav-link:hover,
.nav-link.active {
  color: var(--color-primary);
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 80%;
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--color-text-primary);
  font-size: var(--font-size-lg);
  cursor: pointer;
}

/* ===================================
   Hero Section
   =================================== */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  background: var(--color-bg-darker);
  padding-top: 80px;
}

.hero-content {
  text-align: center;
  max-width: 900px;
  padding: var(--space-xl);
  z-index: var(--z-base);
}

.hero-logo {
  width: 120px;
  height: 120px;
  margin: 0 auto var(--space-lg);
  opacity: 0;
  animation: fadeInUp 0.8s ease forwards 0.1s;
}

.hero-subtitle {
  font-size: var(--font-size-md);
  color: var(--color-primary);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: var(--space-sm);
  opacity: 0;
  animation: fadeInUp 0.8s ease forwards 0.2s;
}

.hero-title {
  font-size: var(--font-size-4xl);
  margin-bottom: var(--space-md);
  opacity: 0;
  animation: fadeInUp 0.8s ease forwards 0.4s;
}

.hero-description {
  font-size: var(--font-size-md);
  color: var(--color-text-secondary);
  margin-bottom: var(--space-xl);
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
  opacity: 0;
  animation: fadeInUp 0.8s ease forwards 0.6s;
}

.hero-cta {
  display: inline-flex;
  gap: var(--space-md);
  opacity: 0;
  animation: fadeInUp 0.8s ease forwards 0.8s;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ===================================
   Buttons
   =================================== */
.btn {
  display: inline-block;
  padding: var(--space-md) var(--space-xl);
  font-family: var(--font-body);
  font-size: var(--font-size-sm);
  font-weight: 600;
  text-align: center;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all var(--transition-base);
  border: none;
  text-decoration: none;
}

/* Ensure button elements match link buttons exactly */
button.btn {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
}

.btn-primary {
  background: var(--color-primary);
  color: var(--color-text-primary);
  box-shadow: var(--shadow-sm);
}

.btn-primary:hover {
  background: var(--color-primary);
  opacity: 0.85;
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn-secondary {
  background: transparent;
  color: var(--color-primary);
  border: 2px solid var(--color-primary);
}

.btn-secondary:hover {
  background: var(--color-primary);
  color: var(--color-text-primary);
  transform: translateY(-2px);
}

.btn-sm {
  padding: var(--space-sm) var(--space-lg);
  font-size: var(--font-size-xs);
}

/* ===================================
   Section Headers
   =================================== */
.section-header {
  text-align: center;
  margin-bottom: var(--space-3xl);
}

.section-subtitle {
  font-size: var(--font-size-sm);
  color: var(--color-primary);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: var(--space-sm);
}

.section-title {
  font-size: var(--font-size-3xl);
  margin-bottom: var(--space-md);
}

.section-description {
  font-size: var(--font-size-md);
  color: var(--color-text-secondary);
  max-width: 700px;
  margin: 0 auto;
}

/* ===================================
   Profile Section
   =================================== */
.profile-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-3xl);
  align-items: center;
}

.profile-text h2 {
  margin-bottom: var(--space-md);
}

.profile-text p {
  font-size: var(--font-size-md);
  line-height: 1.8;
  margin-bottom: var(--space-md);
}

.profile-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-lg);
}

.stat-item {
  text-align: center;
  padding: var(--space-lg);
  background: rgba(91, 163, 163, 0.1);
  border-radius: var(--radius-md);
  border: 1px solid var(--color-border);
}

.stat-number {
  font-size: var(--font-size-2xl);
  font-weight: 700;
  color: var(--color-primary);
  display: block;
  margin-bottom: var(--space-xs);
}

.stat-label {
  font-size: var(--font-size-xs);
  color: var(--color-text-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* ===================================
   Cards
   =================================== */
.grid {
  display: grid;
  gap: var(--space-xl);
}

.grid-2 {
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.card {
  background: rgba(48, 68, 95, 0.6);
  backdrop-filter: blur(10px);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
  transition: all var(--transition-base);
}

.card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
  border-color: var(--color-primary);
}

.card-icon {
  width: 60px;
  height: 60px;
  background: var(--color-primary);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--space-md);
}

.card-icon svg {
  width: 30px;
  height: 30px;
  color: white;
}

.card-title {
  font-size: var(--font-size-lg);
  margin-bottom: var(--space-sm);
  color: var(--color-text-primary);
}

.card-description {
  color: var(--color-text-secondary);
  line-height: 1.8;
}

/* ===================================
   Contact Section
   =================================== */
.contact-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-3xl);
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: var(--space-lg);
}

.contact-item {
  display: flex;
  align-items: flex-start;
  gap: var(--space-md);
  padding: var(--space-md);
  background: rgba(48, 68, 95, 0.6);
  border-radius: var(--radius-md);
  border: 1px solid var(--color-border);
  transition: all var(--transition-base);
}

.contact-item:hover {
  border-color: var(--color-primary);
  transform: translateX(8px);
}

.contact-icon {
  width: 48px;
  height: 48px;
  background: var(--color-primary);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.contact-icon svg {
  width: 24px;
  height: 24px;
  color: white;
}

.contact-details h4 {
  font-size: var(--font-size-md);
  margin-bottom: var(--space-xs);
  color: var(--color-text-primary);
}

.contact-details p {
  color: var(--color-text-secondary);
  margin: 0;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
}

.form-label {
  font-size: var(--font-size-sm);
  font-weight: 600;
  color: var(--color-text-primary);
}

.form-input,
.form-textarea {
  padding: var(--space-md);
  background: rgba(48, 68, 95, 0.6);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  color: var(--color-text-primary);
  font-family: var(--font-body);
  font-size: var(--font-size-sm);
  transition: all var(--transition-base);
}

.form-input:focus,
.form-textarea:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(91, 163, 163, 0.1);
}

.form-textarea {
  resize: vertical;
  min-height: 150px;
}

/* ===================================
   Footer
   =================================== */
.footer {
  background: var(--color-bg-darker);
  border-top: 1px solid var(--color-border);
  padding: var(--space-xl) 0;
  text-align: center;
}

.footer-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-md);
}

.footer-text {
  color: var(--color-text-muted);
  font-size: var(--font-size-xs);
  margin: 0;
}

.footer-link {
  color: var(--color-text-secondary);
  transition: color var(--transition-fast);
}

.footer-link:hover {
  color: var(--color-primary);
}

/* ===================================
   Cookie Banner
   =================================== */
.cookie-banner {
  position: fixed;
  bottom: -100%;
  left: 0;
  right: 0;
  z-index: var(--z-modal);
  background: rgba(31, 45, 61, 0.98);
  backdrop-filter: blur(10px);
  border-top: 1px solid var(--color-border);
  box-shadow: var(--shadow-lg);
  transition: bottom var(--transition-slow);
  padding: var(--space-lg);
}

.cookie-banner.show {
  bottom: 0;
}

.cookie-content {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-xl);
}

.cookie-text h4 {
  font-size: var(--font-size-md);
  margin-bottom: var(--space-xs);
  color: var(--color-text-primary);
}

.cookie-text p {
  font-size: var(--font-size-sm);
  color: var(--color-text-secondary);
  margin: 0;
}

.cookie-buttons {
  display: flex;
  gap: var(--space-md);
  flex-shrink: 0;
}

/* ===================================
   Privacy Modal
   =================================== */
.modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  z-index: var(--z-modal);
  align-items: center;
  justify-content: center;
  padding: var(--space-md);
  backdrop-filter: blur(5px);
}

.modal.show {
  display: flex;
}

.modal-content {
  background: var(--color-bg-dark);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  max-width: 700px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: var(--shadow-lg);
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--space-lg);
  border-bottom: 1px solid var(--color-border);
}

.modal-header h2 {
  margin: 0;
  font-size: var(--font-size-xl);
}

.modal-close {
  background: none;
  border: none;
  color: var(--color-text-primary);
  font-size: var(--font-size-2xl);
  cursor: pointer;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
  transition: all var(--transition-fast);
}

.modal-close:hover {
  background: rgba(91, 163, 163, 0.1);
  color: var(--color-primary);
}

.modal-body {
  padding: var(--space-xl);
}

.modal-body h3 {
  font-size: var(--font-size-lg);
  margin-bottom: var(--space-md);
  margin-top: var(--space-lg);
}

.modal-body h4 {
  font-size: var(--font-size-md);
  margin-bottom: var(--space-sm);
  margin-top: var(--space-md);
  color: var(--color-primary);
}

.modal-body ul {
  margin-left: var(--space-lg);
  margin-bottom: var(--space-md);
  color: var(--color-text-secondary);
}

.modal-body li {
  margin-bottom: var(--space-xs);
}

.text-muted {
  color: var(--color-text-muted);
  font-size: var(--font-size-xs);
  font-style: italic;
}

/* ===================================
   Animations
   =================================== */
.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ===================================
   Responsive Design
   =================================== */
@media (max-width: 968px) {
  :root {
    --font-size-3xl: 2.5rem;
    --font-size-4xl: 3rem;
  }

  .profile-content,
  .contact-content {
    grid-template-columns: 1fr;
  }

  .profile-stats {
    grid-template-columns: 1fr;
  }

  .cookie-content {
    flex-direction: column;
    text-align: center;
  }

  .cookie-buttons {
    width: 100%;
    justify-content: center;
  }

  .hero-logo {
    width: 100px;
    height: 100px;
  }
}

@media (max-width: 768px) {
  .nav-menu {
    position: fixed;
    top: 90px;
    left: -100%;
    width: 100%;
    height: calc(100vh - 90px);
    background: rgba(31, 45, 61, 0.98);
    backdrop-filter: blur(10px);
    flex-direction: column;
    padding: var(--space-xl);
    gap: var(--space-md);
    transition: left var(--transition-base);
  }

  .nav-menu.active {
    left: 0;
  }

  .nav-toggle {
    display: block;
  }

  .hero-title {
    font-size: var(--font-size-3xl);
  }

  .section {
    padding: var(--space-2xl) 0;
  }

  .grid-2 {
    grid-template-columns: 1fr;
  }

  .logo-img {
    width: 50px;
    height: 50px;
  }

  .hero-logo {
    width: 80px;
    height: 80px;
  }
}

@media (max-width: 480px) {
  :root {
    --font-size-3xl: 2rem;
    --font-size-2xl: 1.75rem;
  }

  .hero-title {
    font-size: var(--font-size-2xl);
  }

  .btn {
    width: 100%;
  }

  .hero-cta {
    flex-direction: column;
    width: 100%;
  }

  .modal-content {
    margin: var(--space-sm);
  }

  .logo-img {
    width: 40px;
    height: 40px;
  }

  .hero-logo {
    width: 70px;
    height: 70px;
  }
}