/* ===== CSS Variables ===== */
:root {
  --primary: #6366f1;
  --primary-dark: #4f46e5;
  --secondary: #0f172a;
  --text: #334155;
  --text-light: #64748b;
  --background: #ffffff;
  --surface: #f8fafc;
  --border: #e2e8f0;
  --gradient: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
  --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
  --radius: 12px;
  --radius-lg: 20px;
  --transition: all 0.3s ease;
}

/* ===== Reset & Base ===== */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family:
    "Inter",
    -apple-system,
    BlinkMacSystemFont,
    sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: var(--background);
  -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  color: var(--secondary);
  font-weight: 600;
  line-height: 1.3;
}

a {
  text-decoration: none;
  color: inherit;
  transition: var(--transition);
}

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

/* ===== Layout ===== */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

section {
  padding: 100px 0;
}

/* ===== Buttons ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 28px;
  font-size: 15px;
  font-weight: 500;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  transition: var(--transition);
}

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

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.btn-secondary {
  background: transparent;
  color: var(--secondary);
  border: 1px solid var(--border);
}

.btn-secondary:hover {
  background: var(--surface);
  border-color: var(--text-light);
}

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

.btn-white:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.btn-lg {
  padding: 16px 36px;
  font-size: 16px;
}

.btn-full {
  width: 100%;
}

/* ===== Navigation ===== */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
  padding: 16px 0;
}

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

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 22px;
  font-weight: 700;
  color: var(--secondary);
}

.logo-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  background: var(--gradient);
  color: white;
  font-size: 14px;
  font-weight: 700;
  border-radius: 8px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 40px;
  list-style: none;
}

.nav-links a {
  font-size: 15px;
  font-weight: 500;
  color: var(--text);
}

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

.nav-links .btn {
  padding: 10px 24px;
}

.mobile-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 5px;
}

.mobile-toggle span {
  width: 24px;
  height: 2px;
  background: var(--secondary);
  border-radius: 2px;
  transition: var(--transition);
}

/* ===== Hero Section ===== */
.hero {
  padding: 160px 0 100px;
  min-height: 100vh;
  display: flex;
  align-items: center;
}

.hero .container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.hero-tag {
  display: inline-block;
  padding: 8px 16px;
  background: var(--surface);
  color: var(--primary);
  font-size: 14px;
  font-weight: 500;
  border-radius: 20px;
  margin-bottom: 24px;
}

.hero h1 {
  font-size: 56px;
  font-weight: 700;
  margin-bottom: 24px;
  line-height: 1.1;
}

.gradient-text {
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero p {
  font-size: 18px;
  color: var(--text-light);
  margin-bottom: 40px;
  max-width: 540px;
}

.hero-buttons {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.hero-visual {
  display: flex;
  justify-content: center;
}

.code-window {
  background: var(--secondary);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  width: 100%;
  max-width: 500px;
}

.window-header {
  display: flex;
  gap: 8px;
  padding: 16px 20px;
  background: rgba(255, 255, 255, 0.05);
}

.dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
}

.dot.red {
  background: #ff5f57;
}
.dot.yellow {
  background: #febc2e;
}
.dot.green {
  background: #28c840;
}

.code-content {
  padding: 24px;
}

.code-content pre {
  font-family: "SF Mono", "Fira Code", monospace;
  font-size: 14px;
  line-height: 1.8;
  color: #e2e8f0;
}

.code-content .keyword {
  color: #c084fc;
}
.code-content .variable {
  color: #60a5fa;
}
.code-content .property {
  color: #fbbf24;
}
.code-content .string {
  color: #34d399;
}

/* ===== Section Headers ===== */
.section-header {
  text-align: center;
  max-width: 600px;
  margin: 0 auto 60px;
}

.section-tag {
  display: inline-block;
  padding: 6px 14px;
  background: var(--surface);
  color: var(--primary);
  font-size: 13px;
  font-weight: 600;
  border-radius: 20px;
  margin-bottom: 16px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.section-header h2 {
  font-size: 40px;
  margin-bottom: 16px;
}

.section-header p {
  color: var(--text-light);
  font-size: 18px;
}

/* ===== Services Section ===== */
.services {
  background: var(--surface);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.service-card {
  background: white;
  padding: 36px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  transition: var(--transition);
}

.service-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
  border-color: transparent;
}

.service-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  background: var(--surface);
  color: var(--primary);
  border-radius: var(--radius);
  margin-bottom: 20px;
}

.service-card h3 {
  font-size: 20px;
  margin-bottom: 12px;
}

.service-card p {
  color: var(--text-light);
  font-size: 15px;
}

/* ===== About Section ===== */
.about .container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.about-content h2 {
  font-size: 36px;
  margin-bottom: 20px;
}

.about-content p {
  color: var(--text-light);
  font-size: 17px;
  margin-bottom: 40px;
}

.stats {
  display: flex;
  gap: 48px;
}

.stat {
  display: flex;
  flex-direction: column;
}

.stat-number {
  font-size: 40px;
  font-weight: 700;
  color: var(--primary);
}

.stat-label {
  font-size: 14px;
  color: var(--text-light);
}

.about-values {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.value-card {
  background: var(--surface);
  padding: 28px;
  border-radius: var(--radius);
  border-left: 4px solid var(--primary);
}

.value-number {
  font-size: 13px;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 8px;
}

.value-card h3 {
  font-size: 18px;
  margin-bottom: 8px;
}

.value-card p {
  color: var(--text-light);
  font-size: 15px;
}

/* ===== Work Section ===== */
.work-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.work-card {
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: white;
  border: 1px solid var(--border);
  transition: var(--transition);
}

.work-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

.work-image {
  height: 220px;
  overflow: hidden;
}

.work-placeholder {
  width: 100%;
  height: 100%;
}

.gradient-1 {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}
.gradient-2 {
  background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
}
.gradient-3 {
  background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
}

.work-info {
  padding: 24px;
}

.work-category {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 8px;
}

.work-info h3 {
  font-size: 20px;
  margin-bottom: 8px;
}

.work-info p {
  color: var(--text-light);
  font-size: 15px;
}

/* ===== CTA Section ===== */
.cta {
  background: var(--gradient);
  padding: 80px 0;
}

.cta-content {
  text-align: center;
  max-width: 600px;
  margin: 0 auto;
}

.cta h2 {
  color: white;
  font-size: 36px;
  margin-bottom: 16px;
}

.cta p {
  color: rgba(255, 255, 255, 0.9);
  font-size: 18px;
  margin-bottom: 32px;
}

/* ===== Contact Section ===== */
.contact {
  background: var(--surface);
}

.contact-wrapper {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
}

.contact-info h2 {
  font-size: 36px;
  margin-bottom: 16px;
}

.contact-info > p {
  color: var(--text-light);
  font-size: 17px;
  margin-bottom: 32px;
}

.contact-details {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 32px;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--text);
}

.contact-item svg {
  color: var(--primary);
}

.social-links {
  display: flex;
  gap: 12px;
}

.social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  background: white;
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text);
}

.social-link:hover {
  background: var(--primary);
  border-color: var(--primary);
  color: white;
}

/* ===== Contact Form ===== */
.contact-form {
  background: white;
  padding: 40px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}

.form-group {
  margin-bottom: 24px;
}

.form-group label {
  display: block;
  font-size: 14px;
  font-weight: 500;
  margin-bottom: 8px;
  color: var(--secondary);
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 14px 16px;
  font-size: 15px;
  font-family: inherit;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--surface);
  color: var(--text);
  transition: var(--transition);
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary);
  background: white;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: var(--text-light);
}

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

/* ===== Footer ===== */
.footer {
  background: var(--secondary);
  color: white;
  padding: 60px 0 30px;
}

.footer-content {
  display: flex;
  justify-content: space-between;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-brand .logo {
  color: white;
  margin-bottom: 16px;
}

.footer-brand p {
  color: rgba(255, 255, 255, 0.6);
  max-width: 280px;
}

.footer-links {
  display: flex;
  gap: 80px;
}

.footer-column h4 {
  color: white;
  font-size: 15px;
  margin-bottom: 20px;
}

.footer-column ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-column a {
  color: rgba(255, 255, 255, 0.6);
  font-size: 14px;
}

.footer-column a:hover {
  color: white;
}

.footer-bottom {
  padding-top: 30px;
  text-align: center;
}

.footer-bottom p {
  color: rgba(255, 255, 255, 0.5);
  font-size: 14px;
}

/* ===== Responsive Design ===== */
@media (max-width: 1024px) {
  .hero h1 {
    font-size: 44px;
  }

  .services-grid,
  .work-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .about .container,
  .contact-wrapper {
    gap: 60px;
  }
}

@media (max-width: 768px) {
  section {
    padding: 80px 0;
  }

  .mobile-toggle {
    display: flex;
  }

  .nav-links {
    position: fixed;
    top: 70px;
    left: 0;
    right: 0;
    background: white;
    flex-direction: column;
    gap: 0;
    padding: 20px;
    border-bottom: 1px solid var(--border);
    transform: translateY(-100%);
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
  }

  .nav-links.active {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
  }

  .nav-links li {
    width: 100%;
  }

  .nav-links a {
    display: block;
    padding: 16px 0;
    border-bottom: 1px solid var(--border);
  }

  .nav-links .btn {
    margin-top: 16px;
  }

  .hero {
    padding: 120px 0 80px;
    min-height: auto;
  }

  .hero .container {
    grid-template-columns: 1fr;
    gap: 50px;
  }

  .hero h1 {
    font-size: 36px;
  }

  .hero p {
    font-size: 16px;
  }

  .hero-visual {
    order: -1;
  }

  .code-window {
    max-width: 100%;
  }

  .section-header h2 {
    font-size: 32px;
  }

  .services-grid {
    grid-template-columns: 1fr;
  }

  .about .container {
    grid-template-columns: 1fr;
  }

  .about-content h2 {
    font-size: 28px;
  }

  .stats {
    flex-wrap: wrap;
    gap: 32px;
  }

  .work-grid {
    grid-template-columns: 1fr;
  }

  .cta h2 {
    font-size: 28px;
  }

  .contact-wrapper {
    grid-template-columns: 1fr;
  }

  .contact-info h2 {
    font-size: 28px;
  }

  .contact-form {
    padding: 28px;
  }

  .footer-content {
    flex-direction: column;
    gap: 40px;
  }

  .footer-links {
    gap: 40px;
  }
}

@media (max-width: 480px) {
  .hero h1 {
    font-size: 30px;
  }

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

  .hero-buttons .btn {
    width: 100%;
  }

  .stats {
    gap: 24px;
  }

  .stat-number {
    font-size: 32px;
  }

  .footer-links {
    flex-direction: column;
    gap: 32px;
  }
}

/* ===== Animations ===== */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero-content,
.hero-visual {
  animation: fadeIn 0.8s ease-out forwards;
}

.hero-visual {
  animation-delay: 0.2s;
}
