/* ===== CSS Variables (Design Tokens) ===== */
:root {
  --primary-navy: #0A2540;
  --primary-navy-light: #163659;
  --accent-blue: #0066CC;
  --white: #FFFFFF;
  --bg-light: #F4F5F7;
  --text-dark: #202A36;
  --text-muted: #6B7280;
  --border-color: #E5E7EB;
  
  --font-main: 'Noto Sans KR', sans-serif;
  --transition-speed: 0.3s;
}

/* ===== Reset & Base Styles ===== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-main);
  color: var(--text-dark);
  line-height: 1.6;
  background-color: var(--white);
}

ul {
  list-style: none;
}

a {
  text-decoration: none;
  color: inherit;
  transition: color var(--transition-speed);
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.section {
  padding: 100px 0;
}

.bg-light {
  background-color: var(--bg-light);
}

/* Typography */
h1, h2, h3, h4 {
  color: var(--primary-navy);
  font-weight: 700;
  line-height: 1.3;
}

.section-title {
  text-align: center;
  margin-bottom: 60px;
}

.section-title h2 {
  font-size: 2.5rem;
  margin-bottom: 10px;
  position: relative;
  display: inline-block;
}

.section-title h2::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 3px;
  background-color: var(--accent-blue);
}

.section-title p {
  color: var(--text-muted);
  font-size: 1.1rem;
  margin-top: 20px;
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 14px 32px;
  font-size: 1rem;
  font-weight: 500;
  border-radius: 4px;
  cursor: pointer;
  transition: all var(--transition-speed);
  border: none;
  text-align: center;
}

.btn-primary {
  background-color: var(--accent-blue);
  color: var(--white);
}

.btn-primary:hover {
  background-color: #0052a3;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 102, 204, 0.3);
}

.btn-block {
  display: block;
  width: 100%;
}

/* ===== Header ===== */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background-color: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  z-index: 1000;
  border-bottom: 1px solid var(--border-color);
  transition: all var(--transition-speed);
}

.header.scrolled {
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 80px;
}

.logo a {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary-navy);
}

.nav-menu ul {
  display: flex;
  gap: 30px;
}

.nav-menu a {
  font-weight: 500;
  color: var(--text-dark);
}

.nav-menu a:hover {
  color: var(--accent-blue);
}

.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  color: var(--primary-navy);
  cursor: pointer;
}

/* ===== Hero Section ===== */
.hero {
  position: relative;
  height: 100vh;
  min-height: 600px;
  display: flex;
  align-items: center;
  background-image: url('./assets/hero.png');
  background-size: cover;
  background-position: center;
  color: var(--white);
  padding-top: 80px; /* Offset for header */
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to right, rgba(10, 37, 64, 0.6) 0%, rgba(10, 37, 64, 0.3) 100%);
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 800px;
}

.badge {
  display: inline-block;
  background-color: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.3);
  padding: 6px 16px;
  border-radius: 20px;
  font-size: 0.9rem;
  margin-bottom: 20px;
  backdrop-filter: blur(5px);
}

.hero h1 {
  font-size: 2.8rem;
  color: var(--white);
  margin-bottom: 24px;
}

.hero h1 strong {
  color: #66B2FF;
}

.hero p {
  font-size: 1.25rem;
  opacity: 0.9;
  margin-bottom: 40px;
  max-width: 600px;
}

/* ===== About Section ===== */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.about-text h3 {
  font-size: 2rem;
  margin-bottom: 24px;
}

.about-text h3 strong {
  color: var(--accent-blue);
}

.about-text p {
  color: var(--text-muted);
  margin-bottom: 16px;
  font-size: 1.05rem;
}

.certifications {
  margin-top: 30px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.cert-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 500;
  color: var(--primary-navy);
}

.cert-item i {
  color: var(--accent-blue);
}

/* Timeline */
.timeline {
  position: relative;
  padding-left: 30px;
}

.timeline::before {
  content: '';
  position: absolute;
  top: 0;
  left: 5px;
  width: 2px;
  height: 100%;
  background-color: var(--border-color);
}

.timeline-item {
  position: relative;
  margin-bottom: 40px;
}

.timeline-item:last-child {
  margin-bottom: 0;
}

.timeline-dot {
  position: absolute;
  top: 0;
  left: -30px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background-color: var(--accent-blue);
  border: 3px solid var(--white);
  box-shadow: 0 0 0 2px var(--accent-blue);
}

.timeline-date {
  font-weight: 700;
  color: var(--accent-blue);
  margin-bottom: 8px;
  font-size: 1.2rem;
}

.timeline-content h4 {
  margin-bottom: 8px;
}

.timeline-content p {
  color: var(--text-muted);
}

/* ===== Business Section ===== */
.business-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
}

.biz-card {
  background-color: var(--white);
  padding: 40px 30px;
  border-radius: 8px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
  transition: transform var(--transition-speed);
  border: 1px solid transparent;
}

.biz-card:hover {
  transform: translateY(-10px);
  border-color: var(--accent-blue);
}

.icon-wrapper {
  width: 60px;
  height: 60px;
  background-color: rgba(0, 102, 204, 0.1);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
}

.icon-wrapper i {
  color: var(--accent-blue);
  width: 32px;
  height: 32px;
}

.biz-card h3 {
  font-size: 1.25rem;
  margin-bottom: 16px;
}

.biz-card p {
  color: var(--text-muted);
  font-size: 0.95rem;
}

/* ===== Portfolio Section ===== */
.portfolio-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  gap: 30px;
}

.portfolio-item {
  position: relative;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0,0,0,0.08);
  aspect-ratio: 4/3;
  group: hover;
}

.portfolio-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.placeholder-img {
  width: 100%;
  height: 100%;
  background-color: var(--border-color);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
}

.placeholder-img i {
  width: 48px;
  height: 48px;
  margin-bottom: 10px;
  opacity: 0.5;
}

.portfolio-item:hover img {
  transform: scale(1.05);
}

.portfolio-info {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  padding: 24px;
  background: linear-gradient(to top, rgba(10, 37, 64, 0.9), transparent);
  color: var(--white);
  transform: translateY(20px);
  opacity: 0;
  transition: all 0.3s ease;
}

.portfolio-item:hover .portfolio-info {
  transform: translateY(0);
  opacity: 1;
}

.portfolio-info h4 {
  color: var(--white);
  margin-bottom: 5px;
}

.portfolio-info p {
  font-size: 0.9rem;
  opacity: 0.8;
}

/* ===== Contact Section ===== */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
}

.info-item {
  display: flex;
  gap: 20px;
  margin-bottom: 30px;
}

.info-item .icon {
  width: 50px;
  height: 50px;
  background-color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 10px rgba(0,0,0,0.05);
  color: var(--accent-blue);
  flex-shrink: 0;
}

.info-item h4 {
  margin-bottom: 5px;
}

.info-item p {
  color: var(--text-muted);
}

.map-container {
  margin-top: 40px;
  height: 250px;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}

.map-placeholder {
  width: 100%;
  height: 100%;
  background-color: var(--border-color);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
}

.map-placeholder i {
  width: 32px;
  height: 32px;
  margin-bottom: 10px;
}

.contact-form {
  background-color: var(--white);
  padding: 40px;
  border-radius: 8px;
  box-shadow: 0 10px 40px rgba(0,0,0,0.05);
}

.contact-form h3 {
  margin-bottom: 24px;
  font-size: 1.5rem;
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  margin-bottom: 8px;
  font-weight: 500;
  color: var(--text-dark);
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid var(--border-color);
  border-radius: 4px;
  font-family: inherit;
  font-size: 1rem;
  transition: border-color 0.2s;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--accent-blue);
}

/* ===== Footer ===== */
.footer {
  background-color: var(--primary-navy);
  color: rgba(255, 255, 255, 0.7);
  padding: 60px 0 20px;
}

.footer-content {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  margin-bottom: 40px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  padding-bottom: 40px;
}

.footer-logo {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 20px;
}

.footer-details p {
  margin-bottom: 8px;
}

.footer-bottom {
  text-align: center;
  font-size: 0.9rem;
}

/* ===== Responsive Design ===== */
@media (max-width: 992px) {
  .hero h1 { font-size: 2.4rem; }
  .about-grid { grid-template-columns: 1fr; gap: 40px; }
  .contact-grid { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  .nav-menu {
    position: absolute;
    top: 80px;
    left: 0;
    width: 100%;
    background-color: var(--white);
    padding: 20px;
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
    transform: translateY(-150%);
    transition: transform 0.3s ease;
    z-index: -1;
  }
  
  .nav-menu.active {
    transform: translateY(0);
  }

  .nav-menu ul {
    flex-direction: column;
    gap: 15px;
    text-align: center;
  }

  .mobile-menu-btn {
    display: block;
  }

  .hero h1 { font-size: 1.8rem; }
  .section { padding: 60px 0; }
  .section-title h2 { font-size: 2rem; }
}

/* Animations */
.fade-in-up {
  opacity: 0;
  transform: translateY(30px);
  animation: fadeInUp 0.8s ease forwards;
}

.delay-1 { animation-delay: 0.2s; }
.delay-2 { animation-delay: 0.4s; }

@keyframes fadeInUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
