/* BEOK Solution - Modern Company Website Styles */

/* Import Fonts */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Noto+Sans+KR:wght@300;400;500;700&display=swap');

/* CSS Variables */
:root {
  --primary-color: #4ECDC4;
  --secondary-color: #A8E6CF;
  --dark-color: #2C3E50;
  --white-color: #FFFFFF;
  --gray-color: #F8F9FA;
  --text-dark: #2C3E50;
  --text-light: #6C757D;
  --gradient-primary: linear-gradient(135deg, #4ECDC4 0%, #A8E6CF 100%);
  --gradient-dark: linear-gradient(135deg, #2C3E50 0%, #34495E 100%);
  --shadow-light: 0 4px 6px rgba(0, 0, 0, 0.1);
  --shadow-medium: 0 8px 25px rgba(0, 0, 0, 0.15);
  --shadow-heavy: 0 15px 35px rgba(0, 0, 0, 0.2);
  --border-radius: 12px;
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Reset & Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: 'Noto Sans KR', 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  line-height: 1.6;
  color: var(--text-dark);
  background-color: var(--white-color);
  overflow-x: hidden;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-weight: 600;
  line-height: 1.2;
  margin-bottom: 1rem;
}

h1 { font-size: 3rem; }
h2 { font-size: 2.5rem; }
h3 { font-size: 2rem; }
h4 { font-size: 1.5rem; }
h5 { font-size: 1.25rem; }
h6 { font-size: 1rem; }

p {
  margin-bottom: 1rem;
  color: var(--text-light);
}

/* Navigation */
.navbar {
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 1000;
  transition: var(--transition);
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.navbar.scrolled {
  background: rgba(255, 255, 255, 0.98);
  box-shadow: var(--shadow-light);
}

.navbar-brand {
  font-weight: 700;
  font-size: 1.5rem;
  color: var(--primary-color) !important;
  text-decoration: none;
}

.navbar-nav .nav-link {
  font-weight: 500;
  color: var(--text-dark) !important;
  margin: 0 0.5rem;
  padding: 0.5rem 1rem !important;
  border-radius: var(--border-radius);
  transition: var(--transition);
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
  color: var(--primary-color) !important;
  background: rgba(78, 205, 196, 0.1);
}

/* Buttons - Enhanced Visibility */
.btn-primary {
  background: var(--gradient-primary);
  border: none;
  border-radius: var(--border-radius);
  padding: 1rem 2.5rem;
  font-weight: 700;
  font-size: 1.1rem;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  transition: var(--transition);
  box-shadow: 0 6px 20px rgba(78, 205, 196, 0.4);
  color: var(--white-color) !important;
  text-decoration: none;
  display: inline-block;
  position: relative;
  overflow: hidden;
}

.btn-primary::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
  transition: left 0.5s;
}

.btn-primary:hover::before {
  left: 100%;
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 30px rgba(78, 205, 196, 0.6);
  background: linear-gradient(135deg, #3DBDB4 0%, #98D6BF 100%);
}

.btn-primary:active {
  transform: translateY(-1px);
  box-shadow: 0 4px 15px rgba(78, 205, 196, 0.5);
}

.btn-outline-primary {
  border: 3px solid #000000;
  color: #000000; /* Changed to black */
  background: transparent;
  border-radius: var(--border-radius);
  padding: 0.9rem 2.3rem;
  font-weight: 700;
  font-size: 1.1rem;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  transition: var(--transition);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  text-decoration: none;
  display: inline-block;
}

.btn-outline-primary:hover {
  background: #000000;
  color: var(--white-color) !important;
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.5);
}

.btn-outline-primary:active {
  transform: translateY(-1px);
}

/* Consulting Inquiry Button - Special Styling */
.btn-consulting {
  background: linear-gradient(135deg, #FF6B6B 0%, #FF8E53 100%);
  border: none;
  border-radius: var(--border-radius);
  padding: 1.2rem 3rem;
  font-weight: 800;
  font-size: 1.2rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: var(--transition);
  box-shadow: 0 8px 25px rgba(255, 107, 107, 0.4);
  color: var(--white-color) !important;
  text-decoration: none;
  display: inline-block;
  position: relative;
  overflow: hidden;
}

.btn-consulting::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent);
  transition: left 0.5s;
}

.btn-consulting:hover::before {
  left: 100%;
}

.btn-consulting:hover {
  transform: translateY(-4px) scale(1.05);
  box-shadow: 0 12px 35px rgba(255, 107, 107, 0.6);
  background: linear-gradient(135deg, #FF5252 0%, #FF7043 100%);
}

.btn-consulting:active {
  transform: translateY(-2px) scale(1.02);
}

/* CTA Buttons */
.btn-cta {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border: none;
  border-radius: var(--border-radius);
  padding: 1rem 2.5rem;
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--white-color) !important;
  text-decoration: none;
  display: inline-block;
  transition: var(--transition);
  box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.btn-cta:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 30px rgba(102, 126, 234, 0.6);
  background: linear-gradient(135deg, #5a67d8 0%, #6b46c1 100%);
}

/* Submit Button Enhancement */
.btn-submit {
  background: linear-gradient(135deg, #48bb78 0%, #38a169 100%);
  border: none;
  border-radius: var(--border-radius);
  padding: 1rem 2.5rem;
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--white-color) !important;
  text-decoration: none;
  display: inline-block;
  transition: var(--transition);
  box-shadow: 0 6px 20px rgba(72, 187, 120, 0.4);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.btn-submit:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 30px rgba(72, 187, 120, 0.6);
  background: linear-gradient(135deg, #38a169 0%, #2f855a 100%);
}

/* Hero Section */
.hero {
  min-height: 100vh;
  background: var(--gradient-primary);
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="25" cy="25" r="1" fill="rgba(255,255,255,0.1)"/><circle cx="75" cy="75" r="1" fill="rgba(255,255,255,0.1)"/><circle cx="50" cy="10" r="0.5" fill="rgba(255,255,255,0.05)"/><circle cx="20" cy="80" r="0.5" fill="rgba(255,255,255,0.05)"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
  opacity: 0.3;
}

.hero-content {
  position: relative;
  z-index: 2;
}

.hero h1 {
  font-size: 4rem;
  font-weight: 700;
  color: var(--white-color);
  margin-bottom: 1.5rem;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.hero .lead {
  font-size: 1.5rem;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 2rem;
}

.typing-text {
  border-right: 2px solid var(--white-color);
  animation: blink 1s infinite;
}

@keyframes blink {
  0%, 50% { border-color: var(--white-color); }
  51%, 100% { border-color: transparent; }
}

/* Particles */
.particles {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  z-index: 1;
}

.particle {
  position: absolute;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  animation: float 6s ease-in-out infinite;
}

@keyframes float {
  0%, 100% { transform: translateY(0px) rotate(0deg); }
  50% { transform: translateY(-20px) rotate(180deg); }
}

/* Sections */
.section {
  padding: 3rem 0; /* Reduced from 5rem to 3rem */
}

.section-padding {
  padding: 3rem 0; /* Reduced from default to 3rem */
}

.section-title {
  text-align: center;
  margin-bottom: 2rem; /* Reduced from 3rem to 2rem */
}

.section-title h2 {
  position: relative;
  display: inline-block;
  margin-bottom: 0.5rem; /* Reduced from 1rem to 0.5rem */
}

.section-title h2::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 3px;
  background: var(--gradient-primary);
  border-radius: 2px;
}

/* Reduce excessive bottom margins */
.mb-5 {
  margin-bottom: 2rem !important; /* Override Bootstrap's mb-5 */
}

.pb-5 {
  padding-bottom: 2rem !important; /* Override Bootstrap's pb-5 */
}

/* Specific section adjustments */
.hero-section {
  padding-bottom: 2rem; /* Reduced bottom padding */
}

.cta-section {
  padding: 3rem 0; /* Reduced from default */
}

.footer {
  background: var(--gradient-dark);
  color: var(--white-color);
  padding: 2rem 0 1rem; /* Reduced from 3rem to 2rem */
}

/* Service Cards */
.service-card {
  background: var(--white-color);
  border-radius: var(--border-radius);
  padding: 1.5rem; /* Reduced from 2rem to 1.5rem */
  text-align: center;
  box-shadow: var(--shadow-light);
  transition: var(--transition);
  border: 1px solid rgba(0, 0, 0, 0.05);
  height: 100%;
  margin-bottom: 1.5rem; /* Reduced from 2rem to 1.5rem */
}

.service-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-heavy);
}

.service-icon {
  width: 80px;
  height: 80px;
  background: var(--gradient-primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
  font-size: 2rem;
  color: var(--white-color);
  transition: var(--transition);
}

.service-card:hover .service-icon {
  transform: scale(1.1) rotate(5deg);
}

/* Stats Section */
.stats-section {
  background: var(--gradient-dark);
  color: var(--white-color);
}

.stat-item {
  text-align: center;
  padding: 2rem 1rem;
}

.stat-number {
  font-size: 3rem;
  font-weight: 700;
  color: var(--primary-color);
  display: block;
  margin-bottom: 0.5rem;
}

.stat-label {
  font-size: 1.1rem;
  opacity: 0.9;
}

/* Timeline */
.timeline {
  position: relative;
  padding: 2rem 0;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--primary-color);
  transform: translateX(-50%);
}

.timeline-item {
  position: relative;
  margin-bottom: 3rem;
  width: 50%;
}

.timeline-item:nth-child(odd) {
  left: 0;
  padding-right: 3rem;
}

.timeline-item:nth-child(even) {
  left: 50%;
  padding-left: 3rem;
}

.timeline-content {
  background: var(--white-color);
  padding: 2rem;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-light);
  position: relative;
}

.timeline-marker {
  position: absolute;
  width: 20px;
  height: 20px;
  background: var(--primary-color);
  border-radius: 50%;
  top: 2rem;
}

.timeline-item:nth-child(odd) .timeline-marker {
  right: -10px;
}

.timeline-item:nth-child(even) .timeline-marker {
  left: -10px;
}

/* Contact Form */
.contact-form {
  background: var(--white-color);
  padding: 3rem;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-medium);
}

.form-group {
  margin-bottom: 2rem;
  position: relative;
}

.form-control {
  border: 2px solid #e9ecef;
  border-radius: var(--border-radius);
  padding: 1rem;
  font-size: 1rem;
  transition: var(--transition);
  background: transparent;
}

.form-control:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 0.2rem rgba(78, 205, 196, 0.25);
  outline: none;
}

.floating-label {
  position: absolute;
  top: 1rem;
  left: 1rem;
  color: var(--text-light);
  transition: var(--transition);
  pointer-events: none;
  background: var(--white-color);
  padding: 0 0.5rem;
}

.form-control:focus + .floating-label,
.form-control:not(:placeholder-shown) + .floating-label {
  top: -0.5rem;
  font-size: 0.875rem;
  color: var(--primary-color);
}

/* Footer company information text visibility improvement */
.footer .list-unstyled li {
    color: #ffffff !important;
    font-weight: 500;
}

.footer .list-unstyled li a {
    color: #ffffff !important;
    text-decoration: none;
}

.footer .list-unstyled li a:hover {
    color: #007bff !important;
    text-decoration: underline;
}

/* Ensure all footer text is visible */
.footer {
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
    color: #ffffff;
}

.footer h5 {
    color: #ffffff !important;
    font-weight: 600;
}

.footer p {
    color: #ffffff !important;
}

/* Additional visibility improvements for company info */
.footer .list-unstyled {
    color: #ffffff !important;
}

.footer .list-unstyled i {
    color: #007bff !important;
}

.footer {
  background: var(--gradient-dark);
  color: var(--white-color);
  padding: 3rem 0 1rem;
}

.footer h5 {
  color: var(--primary-color);
  margin-bottom: 1.5rem;
}

.footer a {
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  transition: var(--transition);
}

.footer a:hover {
  color: var(--primary-color);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  margin-top: 2rem;
  padding-top: 2rem;
  text-align: center;
  color: rgba(255, 255, 255, 0.6);
}

/* Animations */
.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.6s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

.slide-in-left {
  opacity: 0;
  transform: translateX(-50px);
  transition: all 0.6s ease;
}

.slide-in-left.visible {
  opacity: 1;
  transform: translateX(0);
}

.slide-in-right {
  opacity: 0;
  transform: translateX(50px);
  transition: all 0.6s ease;
}

.slide-in-right.visible {
  opacity: 1;
  transform: translateX(0);
}

/* Loading Spinner */
.spinner {
  width: 40px;
  height: 40px;
  border: 4px solid rgba(78, 205, 196, 0.3);
  border-top: 4px solid var(--primary-color);
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin: 0 auto;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* Modal */
.modal-content {
  border: none;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-heavy);
}

.modal-header {
  background: var(--gradient-primary);
  color: var(--white-color);
  border-radius: var(--border-radius) var(--border-radius) 0 0;
}

.modal-header .btn-close {
  filter: invert(1);
}

/* Responsive Design */
@media (max-width: 768px) {
  .hero h1 {
    font-size: 2.5rem;
  }
  
  .hero .lead {
    font-size: 1.2rem;
  }
  
  .timeline::before {
    left: 2rem;
  }
  
  .timeline-item {
    width: 100%;
    left: 0 !important;
    padding-left: 4rem !important;
    padding-right: 1rem !important;
  }
  
  .timeline-marker {
    left: 1.5rem !important;
  }
  
  .contact-form {
    padding: 2rem;
  }
  
  .service-card {
    margin-bottom: 2rem;
  }
}

@media (max-width: 576px) {
  .hero h1 {
    font-size: 2rem;
  }
  
  .section {
    padding: 3rem 0;
  }
  
  .contact-form {
    padding: 1.5rem;
  }
}

/* Utility Classes */
.text-gradient {
  color: #000000; /* Changed to black */
  font-weight: 800; /* Increased from 700 to 800 */
  font-size: 1.1em; /* Slightly larger */
  letter-spacing: 0.5px; /* Better letter spacing */
}

.gradient-text {
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-weight: 800; /* Increased from 700 to 800 */
  text-shadow: 0 4px 8px rgba(78, 205, 196, 0.5); /* Enhanced shadow */
  font-size: 1.1em; /* Slightly larger */
  letter-spacing: 0.5px; /* Better letter spacing */
}

/* Enhanced visibility for span elements with gradient text */
span.text-gradient,
span.gradient-text {
  display: inline-block;
  position: relative;
  font-weight: 900; /* Even bolder for span elements */
  color: #000000; /* Changed to black */
}

/* Fallback for browsers that don't support background-clip */
@supports not (-webkit-background-clip: text) {
  .text-gradient,
  .gradient-text {
    color: #000000; /* Changed to black */
    font-weight: 900;
  }
}

.text-gradient,
.gradient-text {
  color: #000000; /* Changed to black */
  font-weight: 900;
}

/* List Styles - Clean and Modern */
ul {
  list-style: none;
  padding-left: 0;
}

ul li {
  position: relative;
  padding-left: 1.5rem;
  margin-bottom: 0.75rem;
  color: var(--text-dark);
  font-weight: 500;
}

ul li::before {
  content: '✓';
  position: absolute;
  left: 0;
  top: 0;
  color: var(--primary-color);
  font-weight: 700;
  font-size: 1.1rem;
}

.vision-points li {
  padding-left: 2rem;
  margin-bottom: 1rem;
  line-height: 1.6;
}

.vision-points li::before {
  content: '▶';
  color: var(--primary-color);
  font-size: 0.9rem;
  left: 0.5rem;
  top: 0.1rem;
}

.service-features li {
  padding-left: 1.8rem;
  margin-bottom: 0.8rem;
  font-size: 0.95rem;
}

.service-features li::before {
  content: '•';
  color: var(--primary-color);
  font-size: 1.2rem;
  left: 0.3rem;
  top: -0.1rem;
}

.bg-gradient {
  background: var(--gradient-primary);
}

.shadow-custom {
  box-shadow: var(--shadow-medium);
}

.border-radius-custom {
  border-radius: var(--border-radius);
}

/* Service Modal Enhancements */
.service-icon-large {
    font-size: 4rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.service-icon-large i {
    display: block;
    width: 100px;
    height: 100px;
    line-height: 100px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    margin: 0 auto;
}

.tech-badges .badge {
    font-size: 0.75rem;
    padding: 0.4rem 0.8rem;
    border-radius: 20px;
}

.service-features-detailed .feature-item {
    padding: 0.5rem 0;
    border-bottom: 1px solid #f0f0f0;
    font-size: 0.95rem;
}

.service-features-detailed .feature-item:last-child {
    border-bottom: none;
}

.service-benefits .benefit-item {
    padding: 0.3rem 0;
    font-weight: 500;
    color: var(--text-color);
}

.modal-header.bg-gradient {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color)) !important;
}

.modal-xl {
    max-width: 1200px;
}

/* Privacy Details Styles */
.privacy-details {
    font-size: 0.9rem;
}

.privacy-toggle button {
    color: var(--primary-color) !important;
    font-size: 0.9rem;
    font-weight: 500;
    transition: var(--transition);
}

.privacy-toggle button:hover {
    color: var(--dark-color) !important;
}

.privacy-toggle button[aria-expanded="true"] i {
    transform: rotate(180deg);
    transition: transform 0.3s ease;
}

.privacy-content {
    background-color: #f8f9fa !important;
    border: 1px solid #e9ecef !important;
    font-size: 0.85rem;
    line-height: 1.5;
    max-height: 400px;
    overflow-y: auto;
}

.privacy-content h6 {
    color: var(--dark-color);
    border-bottom: 2px solid var(--primary-color);
    padding-bottom: 0.5rem;
}

.privacy-content strong {
    color: var(--dark-color);
    font-weight: 600;
}

.privacy-content ul {
    padding-left: 1.2rem;
}

.privacy-content li {
    margin-bottom: 0.3rem;
    color: var(--text-light);
}

.privacy-content p {
    color: var(--text-light);
    margin-bottom: 0.5rem;
}