/* ========================================
   생선가게 - Style (Ocean Blue Theme)
   ======================================== */

:root {
  --primary: #1B7FA3;
  --primary-dark: #145F7A;
  --primary-light: #2BA5D4;
  --primary-glow: rgba(27, 127, 163, 0.3);
  --accent: #0E4D64;
  --bg-dark: #0A1929;
  --bg-darker: #06111E;
  --bg-light: #F0F7FA;
  --bg-white: #FFFFFF;
  --text-white: #FFFFFF;
  --text-black: #1A1A1A;
  --text-gray: #777777;
  --text-light-gray: #AAB8C2;
  --radius: 16px;
  --radius-sm: 8px;
  --transition: 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --transition-slow: 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --font-serif: 'Noto Serif KR', Georgia, serif;
}

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

html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; }

body {
  font-family: 'Inter', 'Pretendard', -apple-system, BlinkMacSystemFont, sans-serif;
  color: var(--text-black);
  background: var(--bg-white);
  line-height: 1.6;
  word-break: keep-all;
  overflow-x: hidden;
}

a { text-decoration: none; color: inherit; transition: color var(--transition); }
img { max-width: 100%; height: auto; display: block; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }

/* --- Buttons --- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 14px 36px; border-radius: 50px; font-size: 15px; font-weight: 600;
  letter-spacing: 0.02em; cursor: pointer; border: none;
  transition: all var(--transition); position: relative; overflow: hidden;
}
.btn::after { content: ''; position: absolute; inset: 0; background: rgba(255,255,255,0.1); opacity: 0; transition: opacity var(--transition); }
.btn:hover::after { opacity: 1; }
.btn-primary { background: var(--primary); color: var(--text-white); }
.btn-primary:hover { background: var(--primary-dark); transform: translateY(-2px); box-shadow: 0 8px 30px var(--primary-glow); }
.btn-outline { background: transparent; color: var(--text-white); border: 1.5px solid rgba(27,127,163,0.4); }
.btn-outline:hover { border-color: var(--primary-light); color: var(--primary-light); transform: translateY(-2px); }
.btn-outline-dark { background: transparent; color: var(--primary); border: 1.5px solid rgba(27,127,163,0.3); }
.btn-outline-dark:hover { background: var(--primary); color: var(--text-white); transform: translateY(-2px); }
.btn-lg { padding: 18px 48px; font-size: 16px; }
.btn-sm { padding: 10px 24px; font-size: 14px; }

/* --- Header --- */
.header { position: fixed; top: 0; left: 0; right: 0; z-index: 1000; padding: 0 24px; transition: all var(--transition); }
.header.scrolled { background: rgba(10, 25, 41, 0.92); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); border-bottom: 1px solid rgba(27,127,163,0.15); }
.header-inner { max-width: 1200px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; height: 80px; }
.logo { display: flex; align-items: center; gap: 10px; }
.logo-icon { flex-shrink: 0; }
.logo-text { font-family: var(--font-serif); font-size: 24px; font-weight: 900; color: var(--primary-light); letter-spacing: 0.05em; }
.nav { display: flex; gap: 32px; }
.nav-link { color: rgba(255,255,255,0.7); font-size: 14px; font-weight: 500; position: relative; padding: 4px 0; }
.nav-link::after { content: ''; position: absolute; bottom: 0; left: 0; width: 0; height: 2px; background: var(--primary-light); transition: width var(--transition); }
.nav-link:hover { color: var(--primary-light); }
.nav-link:hover::after { width: 100%; }

/* Hamburger */
.hamburger { display: none; flex-direction: column; gap: 6px; background: none; border: none; cursor: pointer; padding: 8px; z-index: 1001; }
.hamburger span { display: block; width: 24px; height: 1.5px; background: var(--primary-light); transition: all 0.3s ease; transform-origin: center; }
.hamburger.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* Mobile Nav */
.mobile-nav { position: fixed; inset: 0; background: rgba(6, 17, 30, 0.97); z-index: 999; display: flex; align-items: center; justify-content: center; opacity: 0; visibility: hidden; transition: all 0.5s ease; }
.mobile-nav.active { opacity: 1; visibility: visible; }
.mobile-nav-inner { display: flex; flex-direction: column; align-items: center; gap: 32px; }
.mobile-nav-link { color: var(--text-white); font-family: var(--font-serif); font-size: 28px; font-weight: 700; opacity: 0; transform: translateY(20px); transition: all 0.4s ease; }
.mobile-nav.active .mobile-nav-link { opacity: 1; transform: translateY(0); }
.mobile-nav.active .mobile-nav-link:nth-child(1) { transition-delay: 0.1s; }
.mobile-nav.active .mobile-nav-link:nth-child(2) { transition-delay: 0.15s; }
.mobile-nav.active .mobile-nav-link:nth-child(3) { transition-delay: 0.2s; }
.mobile-nav.active .mobile-nav-link:nth-child(4) { transition-delay: 0.25s; }
.mobile-nav.active .mobile-nav-link:nth-child(5) { transition-delay: 0.3s; }
.mobile-nav.active .mobile-nav-link:nth-child(6) { transition-delay: 0.35s; }
.mobile-nav-link:hover { color: var(--primary-light); }

/* --- Hero --- */
.hero { position: relative; min-height: 100vh; display: flex; align-items: center; overflow: hidden; background: var(--bg-dark); }
.hero-split { display: grid; grid-template-columns: 1fr 1fr; min-height: 100vh; width: 100%; }
.hero-left { display: flex; align-items: center; justify-content: center; padding: 0 60px; position: relative; }
.hero-left::before { content: ''; position: absolute; inset: 0; background: radial-gradient(ellipse 80% 80% at 70% 50%, rgba(27,127,163,0.08) 0%, transparent 70%); }
.hero-content { position: relative; z-index: 2; }
.hero-sub { font-size: 13px; font-weight: 600; color: var(--primary-light); letter-spacing: 0.2em; text-transform: uppercase; margin-bottom: 24px; opacity: 0; animation: fadeUp 1s 0.3s forwards; }
.hero-title { font-family: var(--font-serif); font-size: clamp(40px, 6vw, 68px); font-weight: 900; color: var(--text-white); line-height: 1.2; margin-bottom: 24px; }

.blur-word { display: inline-block; opacity: 0; filter: blur(20px); transform: translateY(20px); animation: blurReveal 0.8s forwards; }
.blur-word:nth-child(1) { animation-delay: 0.5s; }
.blur-word:nth-child(2) { animation-delay: 0.7s; }
@keyframes blurReveal { to { opacity: 1; filter: blur(0); transform: translateY(0); } }

.hero-desc { font-size: clamp(15px, 2vw, 18px); color: var(--text-light-gray); margin-bottom: 40px; line-height: 1.8; }
.fade-up { opacity: 0; transform: translateY(30px); animation: fadeUp 0.8s 1.5s forwards; }
.hero-desc.fade-up { animation-delay: 1.2s; }
.btn.fade-up { animation-delay: 1.4s; }
@keyframes fadeUp { to { opacity: 1; transform: translateY(0); } }

.hero-right { position: relative; overflow: hidden; }
.hero-image { width: 100%; height: 100%; object-fit: cover; position: absolute; inset: 0; }
.hero-image-overlay { position: absolute; inset: 0; background: linear-gradient(135deg, rgba(10,25,41,0.5) 0%, rgba(6,17,30,0.2) 100%); z-index: 1; }

.floating-particles { position: absolute; inset: -50px; overflow: hidden; z-index: 1; }
.hero-particle { position: absolute; width: 3px; height: 3px; background: var(--primary-light); border-radius: 50%; opacity: 0; animation: particleFloat 8s infinite; }
@keyframes particleFloat { 0% { opacity: 0; transform: translateY(100%) scale(0); } 10% { opacity: 0.4; } 90% { opacity: 0.1; } 100% { opacity: 0; transform: translateY(-300px) scale(1); } }

.hero-scroll { position: absolute; bottom: 40px; left: 50%; transform: translateX(-50%); z-index: 2; }
.scroll-indicator { width: 28px; height: 44px; border: 1.5px solid rgba(27,127,163,0.3); border-radius: 14px; display: flex; justify-content: center; padding-top: 8px; }
.scroll-indicator span { display: block; width: 3px; height: 8px; background: var(--primary-light); border-radius: 2px; animation: scrollBounce 2s infinite; }
@keyframes scrollBounce { 0%, 100% { transform: translateY(0); opacity: 1; } 50% { transform: translateY(12px); opacity: 0.3; } }

/* --- Section Commons --- */
.section-header { text-align: center; margin-bottom: 64px; }
.section-tag { font-size: 12px; font-weight: 700; color: var(--primary); letter-spacing: 0.2em; text-transform: uppercase; margin-bottom: 16px; }
.section-title { font-family: var(--font-serif); font-size: clamp(28px, 4vw, 42px); font-weight: 900; line-height: 1.2; color: var(--text-black); }
.section-title-light { font-family: var(--font-serif); font-size: clamp(28px, 4vw, 42px); font-weight: 900; line-height: 1.3; color: var(--text-white); }
.section-desc { font-size: 17px; color: var(--text-gray); margin-top: 12px; }

/* --- Brand Story --- */
.story { position: relative; padding: 160px 0; overflow: hidden; }
.story-bg { position: absolute; inset: 0; background: var(--bg-dark); background-image: radial-gradient(ellipse 50% 50% at 30% 50%, rgba(27,127,163,0.08) 0%, transparent 70%), radial-gradient(ellipse 30% 40% at 80% 30%, rgba(43,165,212,0.05) 0%, transparent 70%); }
.story-inner { position: relative; text-align: center; max-width: 700px; margin: 0 auto; }
.story-quote { font-family: var(--font-serif); font-size: clamp(28px, 5vw, 52px); font-weight: 900; color: var(--text-white); line-height: 1.3; margin: 24px 0; }
.story-text { font-size: 16px; color: var(--text-light-gray); line-height: 2; }

/* --- Services - Wide Cards --- */
.services { padding: 120px 0; background: var(--bg-light); }
.wide-card { display: grid; grid-template-columns: 360px 1fr; margin-bottom: 32px; border-radius: var(--radius); overflow: hidden; background: var(--bg-white); border: 1px solid rgba(27,127,163,0.1); transition: all var(--transition); }
.wide-card:last-child { margin-bottom: 0; }
.wide-card:hover { transform: translateY(-4px); box-shadow: 0 20px 60px rgba(27,127,163,0.12); border-color: rgba(27,127,163,0.3); }
.wide-card-visual { position: relative; min-height: 220px; overflow: hidden; }
.wide-card-img { width: 100%; height: 100%; object-fit: cover; position: absolute; inset: 0; transition: transform var(--transition-slow); }
.wide-card:hover .wide-card-img { transform: scale(1.05); }
.wide-card-img-overlay { position: absolute; inset: 0; background: linear-gradient(135deg, rgba(27,127,163,0.15) 0%, rgba(10,25,41,0.25) 100%); z-index: 1; }
.wide-card-content { padding: 48px; display: flex; flex-direction: column; justify-content: center; }
.service-label { font-size: 12px; font-weight: 700; color: var(--primary); letter-spacing: 0.15em; }
.service-name { font-family: var(--font-serif); font-size: 28px; font-weight: 900; margin: 12px 0 16px; color: var(--text-black); }
.service-desc { font-size: 15px; color: #555; line-height: 1.8; }

/* --- Bestseller --- */
.bestseller { padding: 120px 0; background: var(--bg-white); }
.product-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.product-card { display: flex; flex-direction: column; border-radius: var(--radius); overflow: hidden; transition: all var(--transition); border: 1px solid #e0edf2; background: var(--bg-white); }
.product-card:hover { transform: translateY(-8px); box-shadow: 0 20px 50px rgba(27,127,163,0.1); border-color: var(--primary); }
.product-card:hover .product-photo { transform: scale(1.08); }
.product-img { height: 260px; flex-shrink: 0; position: relative; overflow: hidden; background: var(--bg-light); }
.product-photo { width: 100%; height: 100%; object-fit: cover; transition: transform var(--transition-slow); }
.product-badge { position: absolute; top: 16px; left: 16px; padding: 4px 12px; background: var(--primary); color: var(--text-white); font-size: 11px; font-weight: 700; border-radius: 20px; }
.product-body { padding: 20px 24px 24px; flex: 1; background: var(--bg-white); }
.product-name { font-size: 17px; font-weight: 700; color: var(--text-black); margin-bottom: 6px; }
.product-detail { font-size: 13px; color: var(--text-gray); margin-bottom: 12px; }
.product-price { font-size: 18px; font-weight: 800; color: var(--primary-dark); }

/* --- Stats --- */
.stats { position: relative; padding: 120px 0; overflow: hidden; }
.stats-bg { position: absolute; inset: 0; background: var(--bg-dark); background-image: radial-gradient(ellipse 60% 50% at 50% 50%, rgba(27,127,163,0.06) 0%, transparent 70%); }
.stats-grid { position: relative; display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; }
.stat-item { text-align: center; padding: 40px 20px; border-radius: var(--radius); border: 1px solid rgba(27,127,163,0.12); transition: all var(--transition); }
.stat-item:hover { border-color: rgba(27,127,163,0.35); background: rgba(27,127,163,0.04); transform: translateY(-4px); }
.stat-number { font-family: var(--font-serif); font-size: clamp(40px, 5vw, 56px); font-weight: 900; color: var(--primary-light); line-height: 1; }
.stat-suffix { font-size: clamp(20px, 3vw, 28px); font-weight: 700; color: var(--primary-light); }
.stat-label { font-size: 15px; color: var(--text-gray); margin-top: 12px; font-weight: 500; }

/* --- Reviews --- */
.reviews { padding: 120px 0; background: var(--bg-light); }
.reviews-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.review-card { padding: 36px; border-radius: var(--radius); background: var(--bg-white); border: 1px solid rgba(27,127,163,0.12); transition: all var(--transition); }
.review-card:hover { transform: translateY(-6px); box-shadow: 0 20px 50px rgba(27,127,163,0.1); border-color: var(--primary); }
.review-stars { color: #F5A623; font-size: 16px; margin-bottom: 16px; letter-spacing: 2px; }
.review-text { font-size: 15px; color: #444; line-height: 1.8; margin-bottom: 24px; font-style: italic; }
.review-author { display: flex; align-items: center; gap: 12px; }
.review-avatar { width: 44px; height: 44px; border-radius: 50%; display: flex; align-items: center; justify-content: center; background: linear-gradient(135deg, var(--primary), var(--primary-dark)); color: var(--text-white); font-weight: 700; font-size: 16px; }
.review-name { font-size: 15px; font-weight: 700; color: var(--text-black); }
.review-info { font-size: 13px; color: var(--text-gray); }

/* --- Reserve --- */
.reserve { padding: 120px 0; background: var(--bg-white); }
.reserve-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.reserve-card { padding: 40px 32px; border-radius: var(--radius); background: var(--bg-light); border: 1px solid rgba(27,127,163,0.1); text-align: center; transition: all var(--transition); }
.reserve-card:hover { transform: translateY(-6px); box-shadow: 0 20px 50px rgba(27,127,163,0.1); border-color: var(--primary); }
.reserve-icon { font-size: 48px; margin-bottom: 20px; animation: iconBounce 3s ease-in-out infinite; }
.reserve-card:nth-child(2) .reserve-icon { animation-delay: 0.3s; }
.reserve-card:nth-child(3) .reserve-icon { animation-delay: 0.6s; }
@keyframes iconBounce { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-6px); } }
.reserve-title { font-family: var(--font-serif); font-size: 22px; font-weight: 900; color: var(--text-black); margin-bottom: 12px; }
.reserve-desc { font-size: 15px; color: #555; line-height: 1.7; margin-bottom: 24px; }

/* --- Contact --- */
.contact { position: relative; padding: 120px 0; overflow: hidden; }
.contact-bg { position: absolute; inset: 0; background: var(--bg-dark); background-image: radial-gradient(ellipse 60% 50% at 30% 50%, rgba(27,127,163,0.06) 0%, transparent 70%); }
.contact-grid { position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; }
.contact-info { display: flex; flex-direction: column; gap: 32px; }
.contact-item { display: flex; gap: 16px; align-items: flex-start; }
.contact-icon { font-size: 28px; flex-shrink: 0; padding-top: 2px; }
.contact-item h4 { font-size: 16px; font-weight: 700; color: var(--primary-light); margin-bottom: 6px; }
.contact-item p { font-size: 15px; color: var(--text-light-gray); line-height: 1.6; }
.contact-sub { font-size: 13px; color: var(--text-gray); margin-top: 2px; }
.contact-map { border-radius: var(--radius); overflow: hidden; border: 1px solid rgba(27,127,163,0.15); }
.map-placeholder { background: var(--bg-darker); padding: 80px 40px; text-align: center; }
.map-pin { font-size: 48px; margin-bottom: 16px; animation: pinBounce 2s ease-in-out infinite; }
@keyframes pinBounce { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
.map-placeholder p { color: var(--text-light-gray); font-size: 16px; font-weight: 600; }
.map-address { color: var(--text-gray); font-size: 14px; margin-top: 8px; }

/* --- CTA --- */
.cta { position: relative; padding: 160px 0; overflow: hidden; }
.cta-bg { position: absolute; inset: 0; background: var(--bg-darker); }
.cta-gradient { position: absolute; inset: 0; background: radial-gradient(ellipse 50% 60% at 50% 50%, rgba(27,127,163,0.1) 0%, transparent 70%); }
.cta-inner { position: relative; text-align: center; }
.cta-title { font-family: var(--font-serif); font-size: clamp(30px, 5vw, 52px); font-weight: 900; color: var(--text-white); line-height: 1.2; }
.cta-desc { font-size: 18px; color: var(--text-gray); margin: 24px 0 40px; }
.cta-buttons { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

/* --- Footer --- */
.footer { background: var(--bg-dark); padding: 80px 0 40px; color: var(--text-gray); border-top: 1px solid rgba(27,127,163,0.1); }
.footer-top { display: flex; justify-content: space-between; padding-bottom: 48px; border-bottom: 1px solid rgba(255,255,255,0.04); margin-bottom: 32px; }
.footer-logo-text { font-family: var(--font-serif); font-size: 22px; font-weight: 900; color: var(--primary-light); }
.footer-tagline { font-size: 14px; color: var(--text-gray); margin-top: 8px; }
.footer-links { display: flex; gap: 64px; }
.footer-col h5 { font-size: 12px; font-weight: 700; color: var(--primary-light); letter-spacing: 0.1em; text-transform: uppercase; margin-bottom: 16px; }
.footer-col a { display: block; font-size: 14px; color: var(--text-gray); margin-bottom: 10px; }
.footer-col a:hover { color: var(--primary-light); }

.portfolio-disclaimer { text-align: center; color: #e53e3e; font-weight: 700; font-size: 13px; padding: 12px 16px; margin-bottom: 16px; border: 1px solid rgba(229, 62, 62, 0.3); border-radius: 6px; background: rgba(229, 62, 62, 0.05); }
.footer-bottom { text-align: center; }
.footer-bottom p { font-size: 13px; color: #556; line-height: 1.8; }
.footer-copy { margin-top: 16px; color: #445; }

/* --- Scroll Animations --- */
.anim-on-scroll { opacity: 0; transform: translateY(40px); transition: opacity 0.7s ease, transform 0.7s ease; }
.anim-on-scroll.visible { opacity: 1; transform: translateY(0); }

/* --- Shimmer effect on hover for cards --- */
.wide-card::before, .product-card::before, .reserve-card::before {
  content: ''; position: absolute; top: 0; left: -100%; width: 50%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(27,127,163,0.04), transparent);
  transition: left 0.6s ease;
  z-index: 0;
}
.wide-card, .product-card, .reserve-card { position: relative; }
.wide-card:hover::before, .product-card:hover::before, .reserve-card:hover::before { left: 100%; }

/* --- Responsive --- */
@media (max-width: 1024px) {
  .hero-split { grid-template-columns: 1fr; }
  .hero-left { padding: 120px 40px 40px; text-align: center; }
  .hero-right { min-height: 300px; }
  .wide-card { grid-template-columns: 280px 1fr; }
  .product-grid { grid-template-columns: repeat(2, 1fr); }
  .reviews-grid { grid-template-columns: repeat(2, 1fr); }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .reserve-grid { grid-template-columns: repeat(2, 1fr); }
  .contact-grid { grid-template-columns: 1fr; }
  .footer-links { gap: 40px; }
}

@media (max-width: 768px) {
  .nav { display: none; }
  .hamburger { display: flex; }
  .header-inner { height: 64px; }
  .hero-left { padding: 100px 24px 20px; }
  .hero-right { min-height: 250px; }
  .hero-title { font-size: clamp(32px, 8vw, 52px); }
  .wide-card { grid-template-columns: 1fr; }
  .wide-card-visual { min-height: 180px; }
  .wide-card-content { padding: 32px; }
  .product-grid { grid-template-columns: repeat(2, 1fr); gap: 16px; }
  .reviews-grid { grid-template-columns: 1fr; gap: 24px; }
  .reserve-grid { grid-template-columns: 1fr; gap: 20px; }
  .services, .bestseller, .stats, .reviews, .reserve, .contact { padding: 80px 0; }
  .story { padding: 100px 0; }
  .cta { padding: 100px 0; }
  .section-header { margin-bottom: 40px; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 16px; }
  .stat-item { padding: 24px 12px; }
  .footer-top { flex-direction: column; gap: 40px; }
  .footer-links { gap: 32px; flex-wrap: wrap; }
  .cta-buttons { flex-direction: column; align-items: center; }
  .btn-lg { padding: 16px 40px; width: 100%; max-width: 300px; }
}

@media (max-width: 480px) {
  .product-grid { grid-template-columns: 1fr 1fr; }
  .product-img { height: 200px; }
  .hero-content { padding: 0 16px; }
  .footer-links { flex-direction: column; gap: 24px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
  .blur-word { opacity: 1; filter: none; transform: none; }
  .anim-on-scroll { opacity: 1; transform: none; }
  html { scroll-behavior: auto; }
}
