/* CSS Variables - Color System */
:root {
  --primary: #a78bfa;
  --primary-dark: #7c3aed;
  --accent: #60a5fa;
  --background: #0f172a;
  --card: #1e293b;
  --foreground: #f1f5f9;
  --muted: #64748b;
  --border: #334155;
  --success: #10b981;
  --error: #ef4444;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  background-color: var(--background);
  color: var(--foreground);
  line-height: 1.6;
}

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

/* Typography */
h1 {
  font-size: 3.5rem;
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 1rem;
}

h2 {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

h3 {
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
}

h4 {
  font-size: 1.1rem;
  font-weight: 600;
}

p {
  color: var(--muted);
  margin-bottom: 1rem;
  font-size: 1.05rem;
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  border-radius: 0.5rem;
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
  cursor: pointer;
  border: 2px solid transparent;
  text-align: center;
}

.btn-lg {
  padding: 1rem 2rem;
  font-size: 1.1rem;
}

.btn-sm {
  padding: 0.5rem 1rem;
  font-size: 0.9rem;
}

.btn-block {
  width: 100%;
}

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

.btn-primary:hover {
  background-color: var(--primary-dark);
  border-color: var(--primary-dark);
  transform: translateY(-2px);
}

.btn-outline {
  background-color: transparent;
  color: var(--primary);
  border-color: var(--primary);
}

.btn-outline:hover {
  background-color: var(--primary);
  color: var(--background);
}

/* Header */
.header {
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 1000;
  transition: all 0.3s ease;
  background-color: transparent;
}

.header.scrolled {
  background-color: rgba(15, 23, 42, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

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

.logo {
  font-size: 1.5rem;
  font-weight: 800;
  background: linear-gradient(to right, var(--primary), var(--accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  text-decoration: none;
  white-space: nowrap;
}

.nav {
  display: none;
  gap: 2rem;
}

.nav-link {
  color: var(--foreground);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s ease;
  position: relative;
}

.nav-link:hover,
.nav-link.active {
  color: var(--primary);
}

@media (min-width: 768px) {
  .nav {
    display: flex;
  }
}

/* Hero Section */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: 80px;
  background: linear-gradient(135deg, rgba(30, 41, 59, 0.5) 0%, rgba(15, 23, 42, 1) 100%);
  position: relative;
  overflow: hidden;
}

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

@media (min-width: 768px) {
  .hero-content {
    grid-template-columns: 1fr 1fr;
  }
}

.hero-text h1 {
  margin-bottom: 1.5rem;
}

.gradient {
  background: linear-gradient(to right, var(--primary), var(--accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin: 2rem 0;
}

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

.social-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  background-color: var(--card);
  border-radius: 0.5rem;
  color: var(--primary);
  transition: all 0.3s ease;
  text-decoration: none;
}

.social-icon:hover {
  background-color: var(--primary);
  color: var(--background);
  transform: scale(1.1);
}

/* Hero Visual */
.hero-visual {
  display: none;
  position: relative;
  height: 400px;
}

@media (min-width: 768px) {
  .hero-visual {
    display: flex;
    align-items: center;
    justify-content: center;
  }
}

.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  animation: float 8s ease-in-out infinite;
}

.blob-1 {
  width: 300px;
  height: 300px;
  background: rgba(167, 139, 250, 0.2);
  animation-delay: 0s;
}

.blob-2 {
  width: 200px;
  height: 200px;
  background: rgba(96, 165, 250, 0.2);
  animation-delay: 2s;
}

@keyframes float {
  0%,
  100% {
    transform: translate(0, 0px);
  }
  50% {
    transform: translate(20px, 20px);
  }
}

.hero-box {
  width: 250px;
  height: 250px;
  background: linear-gradient(135deg, rgba(167, 139, 250, 0.3), rgba(96, 165, 250, 0.3));
  border-radius: 1rem;
  border: 1px solid rgba(167, 139, 250, 0.2);
  backdrop-filter: blur(10px);
}

/* Projects Section */
.projects-preview,
.services,
.testimonials,
.blog-preview {
  padding: 5rem 0;
}

.section-header {
  text-align: center;
  margin-bottom: 3rem;
}

.section-header h2 {
  margin-bottom: 1rem;
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 2rem;
}

.project-card {
  background-color: var(--card);
  border-radius: 1rem;
  overflow: hidden;
  border: 1px solid var(--border);
  transition: all 0.3s ease;
}

.project-card:hover {
  transform: translateY(-8px);
  border-color: var(--primary);
  box-shadow: 0 20px 40px rgba(167, 139, 250, 0.1);
}

.project-image {
  width: 100%;
  height: 200px;
  overflow: hidden;
  background-color: var(--background);
}

.project-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.project-card:hover .project-image img {
  transform: scale(1.1);
}

.project-content {
  padding: 1.5rem;
}

.project-content h3 {
  margin-bottom: 0.75rem;
}

.tech-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 1rem 0;
}

.tech-tag {
  display: inline-block;
  padding: 0.4rem 0.8rem;
  background-color: rgba(167, 139, 250, 0.1);
  color: var(--primary);
  border-radius: 2rem;
  font-size: 0.85rem;
  font-weight: 500;
}

.project-actions {
  display: flex;
  gap: 0.75rem;
  margin-top: 1rem;
}

.project-actions .btn {
  flex: 1;
  font-size: 0.9rem;
  padding: 0.6rem;
}

/* Services Section */
.services {
  background-color: rgba(30, 41, 59, 0.5);
}

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

.service-card {
  background-color: var(--background);
  padding: 2rem;
  border-radius: 1rem;
  border: 1px solid var(--border);
  transition: all 0.3s ease;
}

.service-card:hover {
  border-color: var(--primary);
  box-shadow: 0 10px 30px rgba(167, 139, 250, 0.1);
}

.service-icon {
  width: 48px;
  height: 48px;
  background-color: rgba(167, 139, 250, 0.2);
  border-radius: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  margin-bottom: 1rem;
  transition: all 0.3s ease;
}

.service-card:hover .service-icon {
  background-color: var(--primary);
  color: var(--background);
}

.service-card h3 {
  margin-bottom: 0.75rem;
}

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

.testimonial-card {
  background-color: var(--card);
  padding: 2rem;
  border-radius: 1rem;
  border: 1px solid var(--border);
  transition: all 0.3s ease;
}

.testimonial-card:hover {
  border-color: var(--primary);
  transform: translateY(-4px);
}

.stars {
  display: flex;
  gap: 0.25rem;
  margin-bottom: 1rem;
}

.star {
  color: var(--primary);
  font-size: 1.25rem;
}

.testimonial-text {
  color: var(--foreground);
  margin-bottom: 1.5rem;
  font-style: italic;
}

.testimonial-author {
  border-top: 1px solid var(--border);
  padding-top: 1rem;
}

.author-name {
  font-weight: 600;
  color: var(--foreground);
  margin: 0 0 0.25rem 0;
}

.author-role {
  font-size: 0.9rem;
  color: var(--muted);
  margin: 0;
}

/* Blog Section */
.blog-preview {
  background-color: rgba(30, 41, 59, 0.5);
}

.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.blog-card {
  background-color: var(--background);
  padding: 1.5rem;
  border-radius: 1rem;
  border: 1px solid var(--border);
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
}

.blog-card:hover {
  border-color: var(--primary);
  box-shadow: 0 10px 30px rgba(167, 139, 250, 0.1);
}

.blog-category {
  display: inline-block;
  padding: 0.4rem 0.8rem;
  background-color: rgba(167, 139, 250, 0.1);
  color: var(--primary);
  border-radius: 2rem;
  font-size: 0.8rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
  width: fit-content;
}

.blog-card h3 {
  color: var(--foreground);
  margin-bottom: 0.75rem;
}

.blog-card p {
  flex-grow: 1;
  color: var(--muted);
  margin-bottom: 1rem;
}

.blog-meta {
  display: flex;
  gap: 1rem;
  font-size: 0.9rem;
  color: var(--muted);
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border);
  margin-bottom: 1rem;
}

.read-more {
  color: var(--primary);
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.read-more:hover {
  color: var(--accent);
  gap: 1rem;
}

/* CTA Section */
.cta {
  padding: 4rem 0;
  text-align: center;
  background: linear-gradient(135deg, rgba(167, 139, 250, 0.1), rgba(96, 165, 250, 0.1));
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.cta h2 {
  margin-bottom: 0.75rem;
}

.cta p {
  margin-bottom: 2rem;
  font-size: 1.1rem;
}

/* Footer */
.footer {
  background-color: var(--card);
  border-top: 1px solid var(--border);
  padding: 3rem 0 1rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-bottom: 2rem;
}

.footer-col h3,
.footer-col h4 {
  margin-bottom: 1rem;
  color: var(--foreground);
}

.footer-col ul {
  list-style: none;
}

.footer-col ul li {
  margin-bottom: 0.75rem;
}

.footer-col a {
  color: var(--muted);
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-col a:hover {
  color: var(--primary);
}

.social-links-footer {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-links {
  display: flex;
  gap: 2rem;
}

.footer-links a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.9rem;
  transition: color 0.3s ease;
}

.footer-links a:hover {
  color: var(--primary);
}

/* Page Header */
.page-header {
  padding: 120px 0 60px;
  text-align: center;
  background: linear-gradient(135deg, rgba(167, 139, 250, 0.05), rgba(96, 165, 250, 0.05));
  border-bottom: 1px solid var(--border);
}

.page-header h1 {
  margin-bottom: 0.5rem;
}

/* Projects Full Page */
.projects-full {
  padding: 5rem 0;
}

.projects-grid-full {
  display: grid;
  gap: 4rem;
}

.project-card-full {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  padding: 2rem;
  background-color: var(--card);
  border-radius: 1rem;
  border: 1px solid var(--border);
  transition: all 0.3s ease;
}

@media (min-width: 768px) {
  .project-card-full {
    grid-template-columns: 1fr 1fr;
  }
}

.project-card-full:hover {
  border-color: var(--primary);
  box-shadow: 0 10px 40px rgba(167, 139, 250, 0.1);
}

.project-image-full {
  border-radius: 0.75rem;
  overflow: hidden;
  height: 300px;
}

@media (min-width: 768px) {
  .project-image-full {
    height: auto;
  }
}

.project-image-full img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

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

.project-content-full h2 {
  margin-bottom: 1rem;
}

.project-description {
  color: var(--muted);
  margin-bottom: 1.5rem;
}

.tech-tags-full {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin: 1.5rem 0;
}

.project-links {
  display: flex;
  gap: 1rem;
  margin: 1.5rem 0;
}

.project-links .btn {
  flex: 1;
}

.project-details {
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
  margin-top: 1.5rem;
}

.detail {
  margin-bottom: 0.75rem;
  display: flex;
  justify-content: space-between;
}

.detail strong {
  color: var(--foreground);
}

/* Services Full Page */
.services-full {
  padding: 5rem 0;
}

.services-list {
  display: grid;
  gap: 3rem;
}

.service-item {
  display: grid;
  grid-template-columns: 100px 1fr;
  gap: 2rem;
  padding: 2rem;
  background-color: var(--card);
  border-radius: 1rem;
  border: 1px solid var(--border);
  transition: all 0.3s ease;
}

.service-item:hover {
  border-color: var(--primary);
  box-shadow: 0 10px 30px rgba(167, 139, 250, 0.1);
}

.service-number {
  font-size: 2.5rem;
  font-weight: 800;
  color: rgba(167, 139, 250, 0.2);
  line-height: 1;
}

.service-content h2 {
  margin-bottom: 0.75rem;
}

.service-features {
  list-style: none;
  margin-top: 1rem;
  display: grid;
  gap: 0.5rem;
}

.service-features li {
  color: var(--muted);
  position: relative;
  padding-left: 1.5rem;
}

.service-features li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--primary);
  font-weight: bold;
}

/* Pricing */
.pricing {
  padding: 5rem 0;
  background-color: rgba(30, 41, 59, 0.5);
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.pricing-card {
  background-color: var(--card);
  padding: 2rem;
  border-radius: 1rem;
  border: 1px solid var(--border);
  text-align: center;
  transition: all 0.3s ease;
  position: relative;
}

.pricing-card.featured {
  border-color: var(--primary);
  transform: scale(1.05);
  box-shadow: 0 20px 40px rgba(167, 139, 250, 0.2);
}

.pricing-card:hover {
  border-color: var(--primary);
}

.badge {
  position: absolute;
  top: -10px;
  left: 50%;
  transform: translateX(-50%);
  background-color: var(--primary);
  color: var(--background);
  padding: 0.5rem 1rem;
  border-radius: 2rem;
  font-size: 0.8rem;
  font-weight: 600;
}

.pricing-card h3 {
  margin-bottom: 0.75rem;
}

.price {
  font-size: 2rem;
  font-weight: 800;
  color: var(--primary);
  margin-bottom: 0;
}

.price-desc {
  color: var(--muted);
  font-size: 0.95rem;
  margin-bottom: 1.5rem;
}

.pricing-features {
  list-style: none;
  text-align: left;
  margin: 2rem 0;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  min-height: 200px;
}

.pricing-features li {
  color: var(--muted);
  padding-left: 1.5rem;
  position: relative;
}

.pricing-features li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--primary);
  font-weight: bold;
}

/* Blog Full */
.blog-full {
  padding: 5rem 0;
}

.blog-articles {
  display: grid;
  gap: 4rem;
}

.article-card-full {
  background-color: var(--card);
  padding: 3rem;
  border-radius: 1rem;
  border: 1px solid var(--border);
}

.article-header {
  display: flex;
  gap: 1.5rem;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
  align-items: center;
}

.article-category,
.article-date,
.article-time {
  font-size: 0.9rem;
  color: var(--muted);
  padding: 0.5rem 1rem;
  background-color: rgba(167, 139, 250, 0.1);
  border-radius: 2rem;
}

.article-card-full h2 {
  margin-bottom: 1.5rem;
}

.article-image {
  border-radius: 1rem;
  overflow: hidden;
  margin: 2rem 0;
  height: 400px;
}

.article-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.article-content {
  color: var(--foreground);
  line-height: 1.8;
}

.article-content h3 {
  margin: 2rem 0 1rem;
  color: var(--foreground);
}

.article-content p {
  margin-bottom: 1rem;
}

.article-content pre {
  background-color: var(--background);
  padding: 1rem;
  border-radius: 0.5rem;
  overflow-x: auto;
  margin: 1rem 0;
  border: 1px solid var(--border);
}

.article-content code {
  font-family: "Courier New", monospace;
  color: var(--primary);
  font-size: 0.9rem;
}

.article-footer {
  display: flex;
  gap: 1rem;
  margin-top: 2rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
}

.article-footer .btn {
  flex: 1;
  text-align: center;
}

/* Contact Full */
.contact-full {
  padding: 5rem 0;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
}

@media (min-width: 768px) {
  .contact-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.contact-info h2 {
  margin-bottom: 1rem;
}

.contact-info > p {
  margin-bottom: 2rem;
}

.contact-item {
  display: flex;
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.contact-icon {
  width: 48px;
  height: 48px;
  background-color: rgba(167, 139, 250, 0.2);
  border-radius: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  flex-shrink: 0;
}

.contact-label {
  font-weight: 600;
  color: var(--foreground);
  margin: 0 0 0.25rem 0;
}

.contact-value {
  color: var(--muted);
  text-decoration: none;
  transition: color 0.3s ease;
}

.contact-value:hover {
  color: var(--primary);
}

.social-links-contact {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.social-links-contact a {
  color: var(--muted);
  text-decoration: none;
  transition: color 0.3s ease;
}

.social-links-contact a:hover {
  color: var(--primary);
}

/* Contact Form */
.contact-form {
  background-color: var(--card);
  padding: 2rem;
  border-radius: 1rem;
  border: 1px solid var(--border);
}

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

.form-group label {
  display: block;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: var(--foreground);
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 0.75rem;
  background-color: var(--background);
  border: 1px solid var(--border);
  border-radius: 0.5rem;
  color: var(--foreground);
  font-size: 1rem;
  font-family: inherit;
  transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(167, 139, 250, 0.1);
}

.form-group textarea {
  resize: vertical;
  min-height: 120px;
}

.form-group.checkbox {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.form-group.checkbox input {
  width: auto;
  margin: 0;
}

.form-group.checkbox label {
  margin: 0;
  cursor: pointer;
}

.form-message {
  padding: 1rem;
  border-radius: 0.5rem;
  margin-top: 1rem;
  text-align: center;
}

.form-message.success {
  background-color: rgba(16, 185, 129, 0.1);
  color: var(--success);
}

.form-message.error {
  background-color: rgba(239, 68, 68, 0.1);
  color: var(--error);
}

/* FAQ */
.faq {
  padding: 5rem 0;
  background-color: rgba(30, 41, 59, 0.5);
}

.faq-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}
