/* Noto Sans KR & Outfit Fonts Import */
@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+KR:wght@300;400;500;700&family=Outfit:wght@300;400;600;700&display=swap');

:root {
  --primary-color: #0A192F;
  --primary-light: #172A45;
  --accent-color: #FF6B35;
  --accent-hover: #E85A24;
  --text-dark: #333333;
  --text-light: #F4F6F9;
  --text-gray: #666666;
  --bg-light: #F8F9FA;
  --bg-white: #FFFFFF;
  --border-color: #E2E8F0;
  
  --font-ko: 'Noto Sans KR', sans-serif;
  --font-en: 'Outfit', sans-serif;
  --transition: all 0.3s ease;
  --header-height: 80px;
}

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

body {
  font-family: var(--font-ko);
  color: var(--text-dark);
  background-color: var(--bg-light);
  line-height: 1.6;
}

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

ul {
  list-style: none;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
  transition: transform 0.4s cubic-bezier(0.25, 1, 0.5, 1);
}

/* Common Image Hover Scale Container */
.intro-img,
.ceo-img,
.facility-img,
.prod-img,
.product-card,
.tech-img {
  overflow: hidden;
  border-radius: 8px; /* Maintain clean rounded corners */
}

.intro-img img:hover,
.ceo-img img:hover,
.facility-img img:hover,
.prod-img img:hover,
.product-card img:hover,
.tech-img img:hover {
  transform: scale(1.06);
}

/* Header & GNB */
header {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--header-height);
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 4%;
  z-index: 1000;
  transition: var(--transition);
}

header.scrolled {
  position: fixed;
  background-color: rgba(10, 25, 47, 0.95);
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
  backdrop-filter: blur(5px);
  border-bottom: 1px solid rgba(255,255,255,0.05);
}

header.subpage {
  position: sticky;
  background-color: var(--primary-color);
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

.logo a {
  font-family: var(--font-en);
  font-size: 28px;
  font-weight: 700;
  color: var(--bg-white);
  display: flex;
  align-items: center;
  gap: 10px;
  animation: slideLogo 1.2s cubic-bezier(0.25, 1, 0.5, 1) forwards;
  opacity: 0;
  transition: transform 0.3s cubic-bezier(0.25, 1, 0.5, 1), color 0.3s ease;
}

.logo a span {
  color: var(--accent-color);
  font-family: var(--font-ko);
  font-size: 24px;
  font-weight: 500;
  transition: color 0.3s ease;
}

.logo a:hover {
  color: var(--accent-color);
  transform: scale(1.05);
}

.logo a:hover span {
  color: var(--bg-white);
}

@keyframes slideLogo {
  0% {
    opacity: 0;
    transform: translateX(-40px);
  }
  100% {
    opacity: 1;
    transform: translateX(0);
  }
}

.gnb {
  display: flex;
  gap: 40px;
}

.gnb a {
  color: rgba(255, 255, 255, 0.8);
  font-size: 16px;
  font-weight: 500;
  padding: 8px 0;
  position: relative;
}

.gnb a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--accent-color);
  transition: var(--transition);
}

.gnb a:hover, .gnb a.active {
  color: var(--bg-white);
}

.gnb a:hover::after, .gnb a.active::after {
  width: 100%;
}

.header-btn {
  background-color: var(--accent-color);
  color: var(--bg-white);
  padding: 10px 20px;
  border-radius: 4px;
  font-weight: 500;
  font-size: 14px;
}

.header-btn:hover {
  background-color: var(--accent-hover);
  transform: translateY(-2px);
}

.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 6px;
  cursor: pointer;
  background: none;
  border: none;
}

.menu-toggle span {
  display: block;
  width: 25px;
  height: 2px;
  background-color: var(--bg-white);
  transition: var(--transition);
}

/* Subpage Hero */
.sub-hero {
  background: linear-gradient(rgba(10, 25, 47, 0.8), rgba(10, 25, 47, 0.8)), url('https://images.unsplash.com/photo-1534447677768-be436bb09401?auto=format&fit=crop&w=1920&q=80') no-repeat center center/cover;
  padding: 140px 0 80px;
  text-align: center;
  color: var(--bg-white);
}

.sub-hero h1 {
  font-size: 42px;
  margin-bottom: 10px;
  font-weight: 700;
}

.sub-hero p {
  font-size: 18px;
  color: rgba(255, 255, 255, 0.7);
}

/* Footer */
footer {
  background-color: var(--primary-color);
  color: rgba(255, 255, 255, 0.6);
  padding: 60px 4% 30px;
  font-size: 14px;
  border-top: 1px solid rgba(255,255,255,0.05);
}

.footer-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 40px;
  margin-bottom: 40px;
}

.footer-logo {
  font-family: var(--font-en);
  font-size: 24px;
  font-weight: 700;
  color: var(--bg-white);
  margin-bottom: 15px;
}

.footer-logo span {
  color: var(--accent-color);
  font-family: var(--font-ko);
  font-size: 18px;
}

.footer-info p {
  margin-bottom: 8px;
}

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

.footer-links h4 {
  color: var(--bg-white);
  margin-bottom: 15px;
  font-size: 16px;
}

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

.footer-links ul li a:hover {
  color: var(--accent-color);
}

.footer-bottom {
  text-align: center;
  padding-top: 30px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  font-size: 13px;
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 12px 28px;
  border-radius: 4px;
  font-weight: 500;
  transition: var(--transition);
  cursor: pointer;
  border: none;
}

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

.btn-primary:hover {
  background-color: var(--accent-hover);
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(255, 107, 53, 0.3);
}

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

.btn-outline:hover {
  background-color: var(--accent-color);
  color: var(--bg-white);
  transform: translateY(-2px);
}

/* Section Common */
section {
  padding: 100px 4%;
}

.section-title {
  text-align: center;
  margin-bottom: 60px;
}

.section-title h2 {
  font-size: 36px;
  color: var(--primary-color);
  margin-bottom: 15px;
  position: relative;
  display: inline-block;
  padding-bottom: 15px;
}

.section-title h2::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 50px;
  height: 3px;
  background-color: var(--accent-color);
}

.section-title p {
  color: var(--text-gray);
  font-size: 16px;
}

/* Responsive */
@media (max-width: 992px) {
  .gnb {
    display: none;
    position: fixed;
    top: var(--header-height);
    left: 0;
    width: 100%;
    background-color: var(--primary-color);
    flex-direction: column;
    padding: 30px;
    gap: 20px;
    border-top: 1px solid rgba(255,255,255,0.05);
    box-shadow: 0 10px 15px rgba(0,0,0,0.1);
  }
  
  .gnb.active {
    display: flex;
  }
  
  .menu-toggle {
    display: flex;
  }
  
  .menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
  }
  
  .menu-toggle.active span:nth-child(2) {
    opacity: 0;
  }
  
  .menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
  }
  
  .header-btn {
    display: none;
  }
  
  .footer-links {
    gap: 30px;
  }
}

@media (max-width: 576px) {
  .sub-hero h1 {
    font-size: 32px;
  }
  .section-title h2 {
    font-size: 28px;
  }
  .footer-links {
    width: 100%;
    justify-content: space-between;
  }
}

/* Global Reveal Fade-In-Up Animation */
@keyframes fadeInUp {
  0% {
    opacity: 0;
    transform: translateY(30px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Apply fadeInUp to Title Texts, Paragraphs, Buttons and Cards */
.hero-content h1,
.hero-content p,
.hero-content .hero-btns,
.sub-hero h1,
.sub-hero p,
.section-title h2,
.section-title p,
.intro-text,
.intro-img,
.tech-info,
.tech-img,
.strength-card,
.product-card,
.product-detail-card,
.detail-card,
.system-flow,
.flow-step,
.delivery-card,
.inquiry-form-container,
.tab-menu,
.notice-table,
.faq-item,
.contact-form-container,
.ceo-message,
.facility-info,
.facility-img,
.map-container,
.location-details {
  opacity: 0;
  animation: fadeInUp 1s cubic-bezier(0.25, 1, 0.5, 1) forwards;
}

/* Add delays for natural fluid staggered effect */
.hero-content h1, .sub-hero h1 { animation-delay: 0.2s; }
.hero-content p, .sub-hero p { animation-delay: 0.4s; }
.hero-content .hero-btns { animation-delay: 0.6s; }

.section-title h2 { animation-delay: 0.1s; }
.section-title p { animation-delay: 0.3s; }

.intro-text { animation-delay: 0.2s; }
.intro-img { animation-delay: 0.4s; }

.tech-info { animation-delay: 0.2s; }
.tech-img { animation-delay: 0.4s; }

/* Grid Card Delays */
.strengths-grid .strength-card:nth-child(1),
.product-grid .product-card:nth-child(1),
.delivery-grid .delivery-card:nth-child(1) { animation-delay: 0.2s; }

.strengths-grid .strength-card:nth-child(2),
.product-grid .product-card:nth-child(2),
.delivery-grid .delivery-card:nth-child(2) { animation-delay: 0.4s; }

.strengths-grid .strength-card:nth-child(3),
.delivery-grid .delivery-card:nth-child(3) { animation-delay: 0.6s; }

/* Subpage Content Delays */
.ceo-message { animation-delay: 0.2s; }
.facility-info { animation-delay: 0.2s; }
.facility-img { animation-delay: 0.4s; }
.map-container { animation-delay: 0.2s; }
.location-details { animation-delay: 0.4s; }

.detail-grid .detail-card:nth-child(1) { animation-delay: 0.2s; }
.detail-grid .detail-card:nth-child(2) { animation-delay: 0.4s; }

.product-detail-card:nth-child(1) { animation-delay: 0.2s; }
.product-detail-card:nth-child(2) { animation-delay: 0.4s; }
.product-detail-card:nth-child(3) { animation-delay: 0.6s; }
.inquiry-form-container { animation-delay: 0.3s; }

.tab-menu { animation-delay: 0.1s; }
.notice-table, .faq-list, .contact-form-container { animation-delay: 0.3s; }

/* Recirculating Aquaculture System (RAS) steps delays */
.system-flow .flow-step:nth-child(1) { animation-delay: 0.2s; }
.system-flow .flow-step:nth-child(2) { animation-delay: 0.4s; }
.system-flow .flow-step:nth-child(3) { animation-delay: 0.6s; }
.system-flow .flow-step:nth-child(4) { animation-delay: 0.8s; }

/* Floating Quick Menu (KakaoTalk & Blog) */
.quick-menu {
  position: fixed;
  right: 25px;
  bottom: 40px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  z-index: 9999;
}

.quick-item {
  width: 50px;
  height: 50px;
  border-radius: 8px; /* Match the rounded square style of the upload images */
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  cursor: pointer;
  position: relative;
  transition: var(--transition);
  background-repeat: no-repeat;
  background-size: cover; /* Fit the sprite images perfectly */
}

/* KakaoTalk Color Theme & Sprite Alignment */
.quick-item.kakao {
  background-image: url('images/quick_kakao.png');
  background-position: center center;
}

/* Naver Blog Color Theme & Sprite Alignment */
.quick-item.blog {
  background-image: url('images/quick_blog.png');
  background-position: center center;
}

/* Hover Slide Label */
.quick-item .label {
  position: absolute;
  right: 50%;
  opacity: 0;
  white-space: nowrap;
  background-color: var(--primary-color);
  color: var(--bg-white);
  padding: 8px 16px;
  font-size: 13px;
  font-weight: 500;
  border-radius: 20px;
  pointer-events: none;
  z-index: 1;
  transition: all 0.3s cubic-bezier(0.25, 1, 0.5, 1);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.quick-item:hover {
  transform: translateY(-4px) scale(1.05);
}

.quick-item:hover .label {
  right: 64px;
  opacity: 1;
}

/* Responsive Quick Menu */
@media (max-width: 576px) {
  .quick-menu {
    right: 15px;
    bottom: 25px;
  }
  .quick-item {
    width: 46px;
    height: 46px;
  }
  .quick-item .icon {
    font-size: 18px;
  }
  .quick-item:hover .label {
    display: none; /* Hide label slide on mobile for better visibility */
  }
}



