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

body {
    font-family: 'SF Pro Display', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
    line-height: 1.6;
    color: #333333;
    background: linear-gradient(135deg, #f0f8ff 0%, #e6f7ff 50%, #d9f3ff 100%);
    overflow-x: hidden;
    position: relative;
}

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

/* Navigation */
nav {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(20px);
    z-index: 1000;
    padding: 1rem 0;
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

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

.logo {
    font-size: 1.8rem;
    font-weight: 700;
    background: linear-gradient(45deg, #007bff, #0056b3);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2rem;
    align-items: center;
}

.nav-links a {
    color: #333333;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-links a:hover {
    color: #007bff;
}

.lang-toggle {
    background: linear-gradient(45deg, #007bff, #0056b3);
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 25px;
    color: white;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.lang-toggle:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 123, 255, 0.3);
}

.menu-toggle {
    display: none;
    font-size: 1.8rem;
    background: none;
    border: none;
    color: #333;
    cursor: pointer;
    z-index: 1001;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.hero-content {
    position: relative;
    z-index: 2;
}

.hero h1 {
    font-size: 4rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    background: linear-gradient(45deg, #007bff, #0056b3);
    
    /* Corrected CSS for cross-browser compatibility */
    -webkit-background-clip: text; /* For Chrome, Safari, etc. */
    -webkit-text-fill-color: transparent; /* For Chrome, Safari, etc. */
    
    /* The next line is a fallback and is still useful, but the prefixed versions are most important */
    background-clip: text;
    
    line-height: 1.2;
}

.hero p {
    font-size: 1.3rem;
    margin-bottom: 2rem;
    color: #666666;
    max-width: 600px;
}

.cta-buttons {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
}

.btn-primary, .btn-secondary {
    padding: 1rem 2rem;
    border: none;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    /* display: inline-block; */
    /* Safari í˜¸í™˜ì„±ì„ ìœ„í•œ ì¶”ê°€ ì†ì„± */
    display: inline-flex;
    align-items: center;
    justify-content: center; /* í…ìŠ¤íŠ¸ë¥¼ ë²„íŠ¼ ì¤‘ì•™ì— ìœ„ì¹˜ì‹œí‚´ */
    white-space: nowrap; /* í…ìŠ¤íŠ¸ê°€ ì¤„ë°”ê¿ˆë˜ì§€ ì•Šë„ë¡ ë°©ì§€ */
}

.btn-primary {
    background: linear-gradient(45deg, #007bff, #0056b3);
    color: white;
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(0, 123, 255, 0.4);
}

.btn-secondary {
    background: transparent;
    color: #007bff;
    border: 2px solid #007bff;
}

.btn-secondary:hover {
    background: #007bff;
    color: white;
}

/* Floating Elements */
.floating-cube {
    position: absolute;
    width: 100px;
    height: 100px;
    background: linear-gradient(45deg, rgba(0, 123, 255, 0.1), rgba(0, 86, 179, 0.1));
    border: 1px solid rgba(0, 123, 255, 0.3);
    transform: rotate(45deg);
    animation: float 6s ease-in-out infinite;
}

.cube-1 { top: 20%; right: 10%; animation-delay: 0s; }
.cube-2 { top: 60%; right: 20%; animation-delay: 2s; }
.cube-3 { top: 30%; left: 10%; animation-delay: 4s; }

@keyframes float {
    0%, 100% { transform: rotate(45deg) translateY(0px); }
    50% { transform: rotate(45deg) translateY(-20px); }
}

/* Features Section & Other sections remain the same... */
.features, .about, .contact, .team, footer {
    padding: 8rem 0;
}
.contact { text-align: center; }
.features-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 3rem; margin-top: 4rem; }
.feature-card { background: rgba(255, 255, 255, 0.7); backdrop-filter: blur(10px); border: 1px solid rgba(0, 0, 0, 0.1); border-radius: 20px; padding: 2.5rem; text-align: center; transition: all 0.3s ease; }
.feature-card:hover { transform: translateY(-10px); box-shadow: 0 20px 40px rgba(0, 123, 255, 0.2); border-color: rgba(0, 123, 255, 0.3); }
.feature-icon { font-size: 3rem; margin-bottom: 1.5rem; color: #007bff; }
.feature-card h3 { font-size: 1.5rem; margin-bottom: 1rem; color: #333333; }
.feature-card p, .about-text p, .contact p { color: #666666; }
.section-title { text-align: center; font-size: 3rem; font-weight: 700; margin-bottom: 4rem; background: linear-gradient(45deg, #007bff, #0056b3); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.about { background: rgba(255, 255, 255, 0.5); }
.about-content { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: center; }
.about-text h2, .contact h2 { font-size: 2.5rem; margin-bottom: 2rem; color: #333333; }
.about-visual { display: flex; justify-content: center; align-items: center; height: 400px; position: relative; }
.ar-visualization { width: 200px; height: 200px; background: linear-gradient(45deg, rgba(0, 123, 255, 0.2), rgba(0, 86, 179, 0.2)); border: 2px solid #007bff; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 4rem; color: #007bff; animation: pulse 3s ease-in-out infinite; position: relative; }
@keyframes pulse { 0%, 100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(0, 123, 255, 0.7); } 50% { transform: scale(1.05); box-shadow: 0 0 0 20px rgba(0, 123, 255, 0); } }
.contact p { max-width: 600px; margin: 0 auto 3rem auto; }
.contact-form { max-width: 500px; margin: 0 auto; }
.form-group { margin-bottom: 1.5rem; }
.form-group input, .form-group textarea { width: 100%; padding: 1rem; border: 1px solid rgba(0, 0, 0, 0.2); border-radius: 10px; background: rgba(255, 255, 255, 0.8); color: #333333; font-size: 1rem; }
.form-group input::placeholder, .form-group textarea::placeholder { color: #999; }
footer { padding: 2rem 0; text-align: center; border-top: 1px solid rgba(0, 0, 0, 0.1); background: rgba(255, 255, 255, 0.7); }

/* Team Section */
.team {
    padding: 8rem 0;
    text-align: center;
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 4rem;
}

.team-member {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 20px;
    padding: 2rem;
    transition: all 0.3s ease;
}

.team-member:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 123, 255, 0.15);
}

.team-photo {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 1rem;
    border: 4px solid #007bff;
}

.team-member h3 {
    font-size: 1.4rem;
    margin-bottom: 0.5rem;
    color: #333;
}

.team-member p {
    color: #666;
    font-weight: 500;
}

/* Bubble Animation Styles */
.bubbles { position: absolute; top: 0; left: 0; width: 100%; height: 100%; overflow: hidden; z-index: 0; }
.bubble { position: absolute; background: rgba(0, 123, 255, 0.15); border-radius: 50%; animation: bubble-float 15s infinite ease-in; bottom: -150px; box-shadow: 0 0 10px rgba(0, 123, 255, 0.2); opacity: 0; }
@keyframes bubble-float { 0% { transform: translateY(0); opacity: 0; } 10% { opacity: 1; } 90% { opacity: 1; } 100% { transform: translateY(-100vh); opacity: 0; } }

/* Responsive Design */
@media (max-width: 768px) {
    .hero h1 { font-size: 2.5rem; }
    .hero p { font-size: 1.1rem; }
    .nav-links { display: none; flex-direction: column; position: absolute; top: 100%; left: 0; width: 100%; background: rgba(255, 255, 255, 0.98); padding: 1rem 0; box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1); }
    .nav-links.active { display: flex; }
    .menu-toggle { display: block; }
    .about-content { grid-template-columns: 1fr; }
    .cta-buttons { flex-direction: column; }
}


/* ==================================================
   WebKit-Safari hard override to force filled primary
   (2025-09-04)
   ================================================== */

/* 1) Extremely specific selector to beat any global 'a' rules */
.cta-buttons a.btn-primary,
a.btn-primary,
.btn-primary {
  -webkit-appearance: none !important;
  appearance: none !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  white-space: nowrap !important;
  padding: 0.9rem 1.6rem !important;
  border-radius: 9999px !important;
  border: 0 !important;

  /* Force fill */
  background-color: #0a66ff !important;
  background-image: none !important;       /* turn off gradients if interfering */
  box-shadow: 0 2px 0 rgba(0,0,0,.06) !important;

  color: #fff !important;
  text-decoration: none !important;
}

/* 2) Ensure all pseudo-states stay filled/white */
.btn-primary:link,
.btn-primary:visited,
.btn-primary:hover,
.btn-primary:active,
a.btn-primary:link,
a.btn-primary:visited,
a.btn-primary:hover,
a.btn-primary:active {
  color: #fff !important;
  background-color: #0a66ff !important;
  background-image: none !important;
  text-decoration: none !important;
}

/* 3) If any reset sets background on a, remove it inside CTA */
.cta-buttons a { background: none !important; }