/* Carpathian Digital LLC - Main Stylesheet */

:root {
  --primary: #4F46E5;
  --primary-dark: #4338CA;
  --primary-light: #818CF8;
  --accent: #06B6D4;
  --accent-dark: #0891B2;
  --dark: #0F172A;
  --dark-secondary: #1E293B;
  --gray-900: #1F2937;
  --gray-700: #374151;
  --gray-500: #6B7280;
  --gray-300: #D1D5DB;
  --gray-100: #F3F4F6;
  --white: #FFFFFF;
  --gradient-primary: linear-gradient(135deg, var(--primary) 0%, #7C3AED 100%);
  --gradient-dark: linear-gradient(180deg, var(--dark) 0%, var(--dark-secondary) 100%);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Segoe UI', -apple-system, BlinkMacSystemFont, 'Roboto', 'Oxygen', sans-serif;
  line-height: 1.6;
  color: var(--gray-900);
  background-color: var(--white);
}

a {
  color: var(--primary);
  text-decoration: none;
  transition: color 0.3s ease;
}

a:hover {
  color: var(--primary-dark);
}

img {
  max-width: 100%;
  height: auto;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Header & Navigation */
header {
  background: var(--white);
  box-shadow: 0 1px 3px rgba(0,0,0,0.1);
  position: sticky;
  top: 0;
  z-index: 1000;
}

nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 0;
}

.logo {
  height: 50px;
  width: auto;
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 30px;
}

.nav-links a {
  color: var(--gray-700);
  font-weight: 500;
  padding: 8px 0;
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--primary);
  transition: width 0.3s ease;
}

.nav-links a:hover::after,
.nav-links a.active::after {
  width: 100%;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--primary);
}

.mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 10px;
}

.mobile-menu-toggle span {
  display: block;
  width: 25px;
  height: 3px;
  background: var(--gray-700);
  margin: 5px 0;
  transition: 0.3s;
}

/* Hero Section */
.hero {
  background: var(--gradient-dark);
  color: var(--white);
  padding: 80px 0;
  position: relative;
  overflow: hidden;
}

.hero-background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.8;
}

.hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
}

.hero h1 {
  font-size: 3rem;
  font-weight: 700;
  margin-bottom: 20px;
  background: linear-gradient(135deg, var(--white) 0%, var(--gray-300) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero p {
  font-size: 1.25rem;
  color: var(--gray-300);
  margin-bottom: 30px;
}

.cta-button {
  display: inline-block;
  background: var(--gradient-primary);
  color: var(--white);
  padding: 14px 32px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 1rem;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.cta-button:hover {
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(79, 70, 229, 0.4);
}

/* Sections */
section {
  padding: 80px 0;
}

.section-title {
  text-align: center;
  margin-bottom: 50px;
}

.section-title h2 {
  font-size: 2.25rem;
  font-weight: 700;
  color: var(--gray-900);
  margin-bottom: 15px;
}

.section-title p {
  color: var(--gray-500);
  font-size: 1.1rem;
  max-width: 600px;
  margin: 0 auto;
}

/* Projects Grid */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 30px;
}

.project-card {
  background: var(--white);
  border-radius: 12px;
  padding: 30px;
  box-shadow: 0 4px 6px rgba(0,0,0,0.05), 0 10px 40px rgba(0,0,0,0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid var(--gray-100);
}

.project-image {
  width: 80px;
  height: 80px;
  border-radius: 12px;
  margin-bottom: 20px;
  object-fit: cover;
}

.project-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 50px rgba(0,0,0,0.12);
}

.project-card h3 {
  font-size: 1.5rem;
  color: var(--gray-900);
  margin-bottom: 12px;
}

.project-card p {
  color: var(--gray-500);
  margin-bottom: 20px;
}

.project-link {
  display: inline-flex;
  align-items: center;
  color: var(--primary);
  font-weight: 600;
  gap: 8px;
}

.project-link:hover {
  gap: 12px;
}

.project-link::after {
  content: '\2192';
  transition: transform 0.3s ease;
}

/* About Section */
.about-section {
  background: var(--gray-100);
}

.about-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.about-text h3 {
  font-size: 1.75rem;
  color: var(--gray-900);
  margin-bottom: 20px;
}

.about-text p {
  color: var(--gray-700);
  margin-bottom: 15px;
}

.about-image {
  display: flex;
  justify-content: center;
  align-items: center;
}

.about-image img {
  max-width: 400px;
  border-radius: 12px;
}

/* Contact Section */
.contact-section {
  background: var(--dark);
  color: var(--white);
}

.contact-section .section-title h2 {
  color: var(--white);
}

.contact-section .section-title p {
  color: var(--gray-300);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
}

.contact-info h3 {
  font-size: 1.5rem;
  margin-bottom: 20px;
  color: var(--white);
}

.contact-info p {
  color: var(--gray-300);
  margin-bottom: 30px;
}

.contact-details {
  list-style: none;
}

.contact-details li {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 20px;
  color: var(--gray-300);
}

.contact-details .icon {
  width: 40px;
  height: 40px;
  background: var(--primary);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
}

.contact-form {
  background: var(--dark-secondary);
  padding: 40px;
  border-radius: 12px;
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  margin-bottom: 8px;
  color: var(--gray-300);
  font-weight: 500;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 14px;
  background: var(--dark);
  border: 1px solid var(--gray-700);
  border-radius: 8px;
  color: var(--white);
  font-size: 1rem;
  transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary);
}

.form-group textarea {
  min-height: 150px;
  resize: vertical;
}

.submit-button {
  width: 100%;
  padding: 14px;
  background: var(--gradient-primary);
  border: none;
  border-radius: 8px;
  color: var(--white);
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.submit-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(79, 70, 229, 0.4);
}

/* Footer */
footer {
  background: var(--gray-900);
  color: var(--gray-300);
  padding: 60px 0 30px;
}

.footer-content {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}

.footer-brand p {
  margin-top: 15px;
  font-size: 0.9rem;
}

.footer-links h4 {
  color: var(--white);
  margin-bottom: 20px;
  font-size: 1rem;
}

.footer-links ul {
  list-style: none;
}

.footer-links li {
  margin-bottom: 10px;
}

.footer-links a {
  color: var(--gray-300);
  font-size: 0.9rem;
}

.footer-links a:hover {
  color: var(--accent);
}

.footer-bottom {
  border-top: 1px solid var(--gray-700);
  padding-top: 30px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.875rem;
}

.social-links {
  display: flex;
  gap: 15px;
}

.social-links a {
  width: 36px;
  height: 36px;
  background: var(--gray-700);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  transition: background 0.3s ease;
}

.social-links a:hover {
  background: var(--primary);
}

/* Legal Pages */
.legal-page {
  padding: 60px 0;
}

.legal-page h1 {
  font-size: 2.5rem;
  color: var(--gray-900);
  margin-bottom: 10px;
}

.legal-page .last-updated {
  color: var(--gray-500);
  margin-bottom: 40px;
}

.legal-content {
  max-width: 800px;
  margin: 0 auto;
}

.legal-content h2 {
  font-size: 1.5rem;
  color: var(--gray-900);
  margin-top: 40px;
  margin-bottom: 15px;
}

.legal-content h3 {
  font-size: 1.25rem;
  color: var(--gray-700);
  margin-top: 25px;
  margin-bottom: 10px;
}

.legal-content p {
  color: var(--gray-700);
  margin-bottom: 15px;
}

.legal-content ul,
.legal-content ol {
  margin-left: 25px;
  margin-bottom: 15px;
  color: var(--gray-700);
}

.legal-content li {
  margin-bottom: 8px;
}

.legal-content a {
  color: var(--primary);
}

/* Cookie Banner */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--dark);
  color: var(--white);
  padding: 20px;
  z-index: 9999;
  box-shadow: 0 -4px 20px rgba(0,0,0,0.2);
  display: none;
}

.cookie-banner.show {
  display: block;
}

.cookie-content {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
}

.cookie-content p {
  flex: 1;
  font-size: 0.9rem;
  color: var(--gray-300);
}

.cookie-content a {
  color: var(--accent);
}

.cookie-buttons {
  display: flex;
  gap: 15px;
}

.cookie-btn {
  padding: 10px 20px;
  border-radius: 6px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  border: none;
  font-size: 0.9rem;
}

.cookie-btn.accept {
  background: var(--primary);
  color: var(--white);
}

.cookie-btn.accept:hover {
  background: var(--primary-dark);
}

.cookie-btn.decline {
  background: transparent;
  border: 1px solid var(--gray-500);
  color: var(--gray-300);
}

.cookie-btn.decline:hover {
  border-color: var(--white);
  color: var(--white);
}

/* Responsive Design */
@media (max-width: 1024px) {
  .footer-content {
    grid-template-columns: 1fr 1fr;
  }

  .about-content {
    grid-template-columns: 1fr;
  }

  .contact-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--white);
    flex-direction: column;
    padding: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
  }

  .nav-links.active {
    display: flex;
  }

  .mobile-menu-toggle {
    display: block;
  }

  .hero h1 {
    font-size: 2rem;
  }

  .hero p {
    font-size: 1rem;
  }

  section {
    padding: 50px 0;
  }

  .section-title h2 {
    font-size: 1.75rem;
  }

  .footer-content {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 20px;
    text-align: center;
  }

  .cookie-content {
    flex-direction: column;
    text-align: center;
  }
}

/* Page specific styles */
.page-header {
  background: var(--gradient-dark);
  color: var(--white);
  padding: 80px 0;
  text-align: center;
}

.page-header h1 {
  font-size: 2.5rem;
  margin-bottom: 15px;
}

.page-header p {
  color: var(--gray-300);
  font-size: 1.1rem;
}

/* Business Info (for Stripe) */
.business-info {
  background: var(--gray-100);
  padding: 40px;
  border-radius: 12px;
  margin: 40px 0;
}

.business-info h3 {
  color: var(--gray-900);
  margin-bottom: 20px;
}

.business-info p {
  color: var(--gray-700);
  margin-bottom: 10px;
}

/* Utilities */
.text-center {
  text-align: center;
}

.mt-20 {
  margin-top: 20px;
}

.mb-20 {
  margin-bottom: 20px;
}

.highlight {
  color: var(--primary);
}
