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

:root {
  --primary: #2563eb;
  --primary-dark: #1d4ed8;
  --primary-light: #dbeafe;
  --accent: #7c3aed;
  --text: #1e293b;
  --text-light: #64748b;
  --bg: #ffffff;
  --bg-alt: #f8fafc;
  --border: #e2e8f0;
  --radius: 12px;
  --shadow: 0 1px 3px rgba(0,0,0,0.08), 0 1px 2px rgba(0,0,0,0.06);
  --shadow-lg: 0 10px 25px rgba(0,0,0,0.1);
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Noto Sans KR', -apple-system, BlinkMacSystemFont, sans-serif;
  color: var(--text);
  line-height: 1.7;
  background: var(--bg);
}

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

/* ===== Animations ===== */
.animate {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.animate.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ===== Navbar ===== */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 16px 0;
  transition: all 0.3s ease;
}

.navbar .logo-img {
  filter: brightness(0) invert(1);
}

.navbar .nav-links a {
  color: rgba(255,255,255,0.7);
}

.navbar .nav-links a:hover {
  color: white;
}

.navbar.scrolled {
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(10px);
  box-shadow: var(--shadow);
  padding: 10px 0;
}

.navbar.scrolled .logo-img {
  filter: none;
}

.navbar.scrolled .nav-links a {
  color: var(--text-light);
}

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

.navbar.scrolled .nav-toggle span {
  background: var(--text);
}

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

.logo {
  display: flex;
  align-items: center;
  text-decoration: none;
  color: var(--text);
}

.logo-img {
  height: 36px;
  width: auto;
  transition: filter 0.3s ease;
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 32px;
}

.nav-links a {
  text-decoration: none;
  font-weight: 500;
  font-size: 15px;
  transition: color 0.2s;
}

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

.nav-toggle span {
  width: 24px;
  height: 2px;
  background: white;
  transition: all 0.3s;
}

.nav-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.nav-toggle.active span:nth-child(2) {
  opacity: 0;
}

.nav-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* ===== Hero ===== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 50%, #0f172a 100%);
}

.hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 20% 50%, rgba(37, 99, 235, 0.15) 0%, transparent 50%),
    radial-gradient(circle at 80% 50%, rgba(124, 58, 237, 0.1) 0%, transparent 50%);
}

.hero-content {
  position: relative;
  text-align: center;
  color: white;
  padding: 120px 24px 80px;
}

.hero h1 {
  font-size: clamp(36px, 6vw, 64px);
  font-weight: 900;
  line-height: 1.2;
  margin-bottom: 24px;
  letter-spacing: -1px;
}

.hero p {
  font-size: clamp(16px, 2vw, 20px);
  color: rgba(255,255,255,0.7);
  max-width: 600px;
  margin: 0 auto 40px;
  line-height: 1.8;
}

.hero-buttons {
  display: flex;
  gap: 16px;
  justify-content: center;
  margin-bottom: 60px;
}

.btn {
  display: inline-flex;
  align-items: center;
  padding: 14px 32px;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.2s;
  cursor: pointer;
  border: none;
}

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

.btn-primary:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.4);
}

.btn-outline {
  border: 2px solid rgba(255,255,255,0.3);
  color: white;
  background: transparent;
}

.btn-outline:hover {
  border-color: white;
  background: rgba(255,255,255,0.1);
}

.hero-stats {
  display: flex;
  justify-content: center;
  gap: 60px;
}

.stat {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.stat-number {
  font-size: 28px;
  font-weight: 900;
  color: white;
}

.stat-label {
  font-size: 14px;
  color: rgba(255,255,255,0.5);
  margin-top: 4px;
}

/* ===== Section Header ===== */
.section-header {
  text-align: center;
  margin-bottom: 60px;
}

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

.section-header h2 {
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 800;
  margin-bottom: 12px;
  letter-spacing: -0.5px;
}

.section-header p {
  color: var(--text-light);
  font-size: 17px;
  max-width: 500px;
  margin: 0 auto;
}

/* ===== About ===== */
.about {
  padding: 100px 0;
  background: var(--bg);
}

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

.about-card {
  padding: 40px 32px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  transition: all 0.3s;
}

.about-card:hover {
  border-color: var(--primary);
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
}

.about-icon {
  width: 48px;
  height: 48px;
  color: var(--primary);
  margin-bottom: 20px;
}

.about-icon svg {
  width: 100%;
  height: 100%;
}

.about-card h3 {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 12px;
}

.about-card p {
  color: var(--text-light);
  font-size: 15px;
  line-height: 1.8;
}

/* ===== Services ===== */
.services {
  padding: 100px 0;
  background: var(--bg-alt);
}

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

.service-card {
  background: white;
  border-radius: var(--radius);
  padding: 48px 40px;
  border: 1px solid var(--border);
  position: relative;
  overflow: hidden;
  transition: all 0.3s;
}

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

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
}

.service-kaion::before {
  background: linear-gradient(90deg, var(--primary), #3b82f6);
}

.service-kaitoon::before {
  background: linear-gradient(90deg, var(--accent), #a78bfa);
}

.service-badge {
  display: inline-block;
  background: var(--bg-alt);
  color: var(--text-light);
  padding: 4px 12px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 20px;
}

.service-icon {
  width: 48px;
  height: 48px;
  color: var(--primary);
  margin-bottom: 20px;
}

.service-icon svg {
  width: 100%;
  height: 100%;
}

.service-kaitoon .service-icon {
  color: var(--accent);
}

.service-card h3 {
  font-size: 28px;
  font-weight: 800;
  margin-bottom: 8px;
}

.service-subtitle {
  color: var(--text-light);
  font-size: 16px;
  margin-bottom: 24px;
}

.service-features {
  list-style: none;
  margin-bottom: 28px;
}

.service-features li {
  padding: 8px 0;
  padding-left: 24px;
  position: relative;
  color: var(--text);
  font-size: 15px;
}

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

.service-kaitoon .service-features li::before {
  color: var(--accent);
}

.service-platforms {
  display: flex;
  gap: 8px;
}

.service-platforms span,
.service-platforms a {
  background: var(--bg-alt);
  padding: 4px 14px;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-light);
  text-decoration: none;
  transition: background 0.2s, color 0.2s;
}

.service-platforms a:hover {
  background: var(--primary);
  color: #fff;
}

/* ===== Technology ===== */
.technology {
  padding: 100px 0;
  background: var(--bg);
}

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

.tech-category {
  padding: 32px 24px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  text-align: center;
}

.tech-category h4 {
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--primary);
  margin-bottom: 20px;
}

.tech-items {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.tech-item {
  padding: 10px;
  background: var(--bg-alt);
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text);
}

/* ===== AWS Section ===== */
.aws-section {
  padding: 100px 0;
  background: linear-gradient(135deg, #0f172a, #1e293b);
  color: white;
}

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

.aws-text .section-tag {
  background: rgba(37, 99, 235, 0.2);
  color: #93c5fd;
}

.aws-text h2 {
  font-size: 36px;
  font-weight: 800;
  margin-bottom: 16px;
}

.aws-text p {
  color: rgba(255,255,255,0.7);
  font-size: 16px;
  line-height: 1.8;
  margin-bottom: 32px;
}

.aws-features {
  list-style: none;
}

.aws-features li {
  padding: 12px 0;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

.aws-features li strong {
  display: block;
  font-size: 15px;
  margin-bottom: 4px;
}

.aws-features li span {
  font-size: 14px;
  color: rgba(255,255,255,0.5);
}

.aws-diagram {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.diagram-box {
  padding: 16px 28px;
  border-radius: 10px;
  text-align: center;
  font-size: 14px;
  font-weight: 600;
  min-width: 160px;
}

.diagram-box small {
  font-weight: 400;
  opacity: 0.7;
  display: block;
  font-size: 12px;
}

.diagram-user {
  background: rgba(37, 99, 235, 0.2);
  border: 1px solid rgba(37, 99, 235, 0.4);
}

.diagram-cdn {
  background: rgba(245, 158, 11, 0.2);
  border: 1px solid rgba(245, 158, 11, 0.4);
}

.diagram-eb {
  background: rgba(16, 185, 129, 0.2);
  border: 1px solid rgba(16, 185, 129, 0.4);
}

.diagram-s3 {
  background: rgba(239, 68, 68, 0.2);
  border: 1px solid rgba(239, 68, 68, 0.4);
}

.diagram-rds {
  background: rgba(99, 102, 241, 0.2);
  border: 1px solid rgba(99, 102, 241, 0.4);
}

.diagram-lambda {
  background: rgba(245, 158, 11, 0.2);
  border: 1px solid rgba(245, 158, 11, 0.4);
}

.diagram-arrow {
  font-size: 20px;
  color: rgba(255,255,255,0.3);
}

.diagram-row {
  display: flex;
  gap: 16px;
}

/* ===== Contact ===== */
.contact {
  padding: 100px 0;
  background: var(--bg-alt);
}

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

.contact-card {
  background: white;
  padding: 40px 32px;
  border-radius: var(--radius);
  text-align: center;
  border: 1px solid var(--border);
  transition: all 0.3s;
}

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

.contact-icon {
  width: 48px;
  height: 48px;
  color: var(--primary);
  margin: 0 auto 16px;
}

.contact-icon svg {
  width: 100%;
  height: 100%;
}

.contact-card h4 {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 8px;
}

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

.contact-sub {
  margin-top: 8px;
  font-size: 13px !important;
  color: var(--text-light);
  opacity: 0.7;
}

/* ===== Footer ===== */
.footer {
  background: #0f172a;
  color: white;
  padding: 60px 0 0;
}

.footer-content {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 60px;
  padding-bottom: 40px;
}

.footer-brand p {
  color: rgba(255,255,255,0.5);
  font-size: 14px;
  margin-top: 12px;
  line-height: 1.8;
}

.footer-brand .logo-img {
  filter: brightness(0) invert(1);
}

.footer-company {
  color: rgba(255,255,255,0.7) !important;
  font-size: 13px !important;
  font-weight: 500;
  margin-top: 10px !important;
}

.footer-address {
  color: rgba(255,255,255,0.4) !important;
  font-size: 12px !important;
  margin-top: 8px !important;
  line-height: 1.6 !important;
}

.footer-links h4 {
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 16px;
  color: rgba(255,255,255,0.7);
}

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

.footer-links li {
  margin-bottom: 10px;
}

.footer-links a {
  color: rgba(255,255,255,0.5);
  text-decoration: none;
  font-size: 14px;
  transition: color 0.2s;
}

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

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding: 20px 0;
  text-align: center;
}

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

/* ===== Responsive ===== */
@media (max-width: 1024px) {
  .about-grid { grid-template-columns: 1fr; }
  .services-grid { grid-template-columns: 1fr; }
  .tech-grid { grid-template-columns: repeat(2, 1fr); }
  .aws-content { grid-template-columns: 1fr; }
  .footer-content { grid-template-columns: 1fr; gap: 32px; }
}

@media (max-width: 768px) {
  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    flex-direction: column;
    padding: 24px;
    gap: 16px;
    box-shadow: var(--shadow-lg);
  }

  .nav-links.active { display: flex; }
  .nav-toggle { display: flex; }
  .navbar { background: rgba(255,255,255,0.95); backdrop-filter: blur(10px); }

  .hero-buttons { flex-direction: column; align-items: center; }
  .hero-stats { gap: 32px; }
  .contact-grid { grid-template-columns: 1fr; }
  .tech-grid { grid-template-columns: 1fr; }
  .diagram-row { flex-direction: column; }
}
