/* ========================================
   Chemstellar Chemicals - Professional Light Theme
   ======================================== */

/* CSS Variables */
:root {
    --primary: #3498db;
    --primary-dark: #2980b9;
    --primary-light: #5dade2;
    --secondary: #1a5276;
    --accent: #48c9b0;
    --text-dark: #2c3e50;
    --text-body: #4a5568;
    --text-light: #718096;
    --bg-white: #ffffff;
    --bg-light: #f8fafc;
    --bg-gray: #f1f5f9;
    --border-color: #e2e8f0;
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.08);
    --shadow-md: 0 4px 15px rgba(0,0,0,0.1);
    --shadow-lg: 0 10px 40px rgba(0,0,0,0.12);
    --transition: all 0.3s ease;
    --border-radius: 8px;
    --h-navy: #0a1a42;
    --h-blue: #123a8f;
    --h-violet: #6a35d6;
    --h-teal: #00d9c0;
    --h-amber: #ffb020;
    --h-azure: #2f9bf0;
    --dark-gradient:
        radial-gradient(circle at 12% 18%, rgba(47, 155, 240, 0.35) 0%, transparent 42%),
        radial-gradient(circle at 88% 12%, rgba(106, 53, 214, 0.4) 0%, transparent 48%),
        radial-gradient(circle at 78% 88%, rgba(0, 217, 192, 0.3) 0%, transparent 45%),
        linear-gradient(135deg, var(--h-navy) 0%, var(--h-blue) 45%, #2a1868 100%);
}

/* Reset & Base */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: 'Source Sans Pro', 'Segoe UI', sans-serif;
    background: var(--bg-white);
    color: var(--text-body);
    line-height: 1.7;
}

/* Typography - Matching Logo Style */
h1, h2, h3 {
    font-family: 'Playfair Display', 'Georgia', serif;
    color: var(--text-dark);
    font-weight: 600;
}

h4, h5, h6 {
    font-family: 'Source Sans Pro', sans-serif;
    color: var(--text-dark);
    font-weight: 600;
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: var(--bg-white);
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.navbar.scrolled {
    box-shadow: var(--shadow-md);
}

.nav-container {
    max-width: 1300px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
}

.nav-logo {
    display: flex;
    align-items: center;
}

.logo-img {
    height: 55px;
    width: auto;
    transition: var(--transition);
}

.nav-menu {
    display: flex;
    gap: 2rem;
}

.nav-link {
    font-family: 'Source Sans Pro', sans-serif;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-body);
    text-decoration: none;
    padding: 0.5rem 0;
    position: relative;
    transition: var(--transition);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--primary), var(--accent));
    transition: var(--transition);
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    padding: 5px;
}

.nav-toggle span {
    width: 25px;
    height: 2px;
    background: var(--text-dark);
    transition: var(--transition);
}

.nav-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.nav-toggle.active span:nth-child(2) {
    opacity: 0;
}

.nav-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    background: var(--dark-gradient);
    overflow: hidden;
    padding-top: 80px;
}

/* Animated Background Elements */
.hero-bg-elements {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    pointer-events: none;
}

.hero-grid {
    position: absolute;
    inset: 0;
    background-image: radial-gradient(rgba(255, 255, 255, 0.09) 1px, transparent 1px);
    background-size: 26px 26px;
    -webkit-mask-image: radial-gradient(ellipse at center, black 0%, transparent 75%);
    mask-image: radial-gradient(ellipse at center, black 0%, transparent 75%);
}

.hero-aurora {
    position: absolute;
    width: 600px;
    height: 600px;
    border-radius: 50%;
    filter: blur(90px);
    mix-blend-mode: screen;
    opacity: 0.6;
}

.aurora-1 {
    top: -18%;
    left: -12%;
    background: radial-gradient(circle, var(--h-azure) 0%, transparent 70%);
    animation: auroraDrift 22s ease-in-out infinite alternate;
}

.aurora-2 {
    top: 25%;
    right: -18%;
    background: radial-gradient(circle, var(--h-violet) 0%, transparent 70%);
    animation: auroraDrift 26s ease-in-out infinite alternate;
    animation-delay: -6s;
}

.aurora-3 {
    bottom: -22%;
    left: 18%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, var(--h-teal) 0%, transparent 70%);
    animation: auroraDrift 18s ease-in-out infinite alternate;
    animation-delay: -3s;
}

@keyframes auroraDrift {
    0% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(40px, -30px) scale(1.1); }
    100% { transform: translate(-30px, 20px) scale(0.95); }
}

.hex {
    position: absolute;
    width: 60px;
    height: 70px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.06), rgba(0, 217, 192, 0.16));
    clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
    animation: hexFloat 15s ease-in-out infinite;
}

.hex-1 {
    top: 20%;
    right: 15%;
    animation-delay: -2s;
}

.hex-2 {
    bottom: 30%;
    left: 8%;
    width: 40px;
    height: 46px;
    animation-delay: -7s;
}

.hex-3 {
    top: 50%;
    right: 25%;
    width: 30px;
    height: 35px;
    animation-delay: -12s;
}

@keyframes hexFloat {
    0%, 100% { transform: translateY(0) rotate(0deg); opacity: 0.5; }
    50% { transform: translateY(-30px) rotate(180deg); opacity: 0.8; }
}

/* Floating Capsule Decorations */
.capsule-decor {
    position: absolute;
    filter: drop-shadow(0 12px 22px rgba(0, 0, 0, 0.35));
    animation: capsuleFloat 9s ease-in-out infinite;
}

.capsule-decor img {
    width: 100%;
    height: auto;
    display: block;
}

.capsule-1 {
    top: 13%;
    right: 6%;
    width: 92px;
    animation-delay: 0s;
}

.capsule-1 img {
    transform: rotate(-18deg);
}

.capsule-2 {
    bottom: 9%;
    left: 3%;
    width: 78px;
    animation-delay: -3s;
}

.capsule-2 img {
    transform: rotate(24deg);
    filter: hue-rotate(190deg) saturate(1.3);
}

.capsule-3 {
    top: 40%;
    left: 48%;
    width: 55px;
    opacity: 0.85;
    animation-delay: -5.5s;
}

.capsule-3 img {
    transform: rotate(8deg);
    filter: hue-rotate(255deg) saturate(1.2);
}

@keyframes capsuleFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-20px); }
}

/* Hero Container */
.hero-container {
    max-width: 1300px;
    margin: 0 auto;
    padding: 2rem;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    position: relative;
    z-index: 1;
}

/* Hero Content - Left Side */
.hero-content {
    position: relative;
    z-index: 1;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.28);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 0.5rem 1rem;
    border-radius: 50px;
    margin-bottom: 1.5rem;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
    animation: fadeInUp 0.8s ease forwards;
}

.hero-badge i {
    color: var(--h-amber);
}

.hero-badge span {
    font-size: 0.85rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.92);
}

.hero-title {
    margin-bottom: 1.5rem;
    animation: fadeInUp 0.8s ease 0.1s forwards;
    opacity: 0;
}

.title-main {
    display: block;
    font-family: 'Playfair Display', serif;
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 700;
    line-height: 1.1;
    background: linear-gradient(90deg, #ffffff 0%, #d8e9ff 45%, var(--h-teal) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 4px 40px rgba(0, 217, 192, 0.3);
}

.title-sub {
    display: block;
    font-family: 'Libre Baskerville', serif;
    font-size: clamp(1.2rem, 2.5vw, 1.8rem);
    font-weight: 600;
    color: rgba(216, 227, 255, 0.85);
    margin-top: 0.25rem;
}

.hero-description {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.82);
    line-height: 1.8;
    margin-bottom: 2rem;
    animation: fadeInUp 0.8s ease 0.2s forwards;
    opacity: 0;
}

.hero-description strong {
    color: var(--h-teal);
}

/* Hero Stats */
.hero-stats {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 2rem;
    animation: fadeInUp 0.8s ease 0.3s forwards;
    opacity: 0;
}

.stat-box {
    text-align: center;
    padding: 1rem 1.5rem;
    background: rgba(255, 255, 255, 0.08);
    border-radius: var(--border-radius);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.18);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    transition: var(--transition);
}

.stat-box:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 217, 192, 0.25);
    border-color: var(--h-teal);
}

.stat-number {
    display: block;
    font-family: 'Source Sans Pro', sans-serif;
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--h-teal);
}

.stat-text {
    display: block;
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.65);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    animation: fadeInUp 0.8s ease 0.4s forwards;
    opacity: 0;
}

.hero .btn-outline {
    color: #ffffff;
    border-color: rgba(255, 255, 255, 0.55);
}

.hero .btn-outline:hover {
    background: #ffffff;
    color: var(--h-navy);
    border-color: #ffffff;
}

/* Hero Visual - Right Side */
.hero-visual {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    animation: fadeInRight 1s ease 0.3s forwards;
    opacity: 0;
}

.visual-container {
    position: relative;
    width: 450px;
    height: 450px;
}

.visual-ring {
    position: absolute;
    border-radius: 50%;
    border: 2px dashed rgba(255, 255, 255, 0.25);
}

.ring-1 {
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    border-color: rgba(0, 217, 192, 0.4);
    animation: rotateRing 30s linear infinite;
}

.ring-2 {
    width: 80%;
    height: 80%;
    top: 10%;
    left: 10%;
    border-color: rgba(106, 53, 214, 0.35);
    animation: rotateRing 25s linear infinite reverse;
}

.ring-3 {
    width: 60%;
    height: 60%;
    top: 20%;
    left: 20%;
    border-color: rgba(255, 176, 32, 0.35);
    animation: rotateRing 20s linear infinite;
}

@keyframes rotateRing {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.visual-center {
    position: absolute;
    width: 70%;
    height: 70%;
    top: 15%;
    left: 15%;
    border-radius: 42% 58% 63% 37% / 51% 42% 58% 49%;
    overflow: hidden;
    box-shadow:
        0 25px 70px rgba(106, 53, 214, 0.4),
        0 10px 45px rgba(0, 217, 192, 0.3);
    border: 5px solid rgba(255, 255, 255, 0.85);
    transform: rotate(-3deg);
    transition: var(--transition);
}

.visual-center img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: rotate(3deg) scale(1.15);
}

/* Floating Icons */
.floating-icon {
    position: absolute;
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.14);
    border: 1px solid rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    animation: iconFloat 4s ease-in-out infinite;
}

.icon-1 {
    top: 5%;
    left: 20%;
    color: var(--h-teal);
    box-shadow: 0 10px 25px rgba(0, 217, 192, 0.45);
    animation-delay: 0s;
}

.icon-2 {
    top: 25%;
    right: 0;
    color: #b79bff;
    box-shadow: 0 10px 25px rgba(106, 53, 214, 0.45);
    animation-delay: -1s;
}

.icon-3 {
    bottom: 25%;
    left: 0;
    color: var(--h-amber);
    box-shadow: 0 10px 25px rgba(255, 176, 32, 0.45);
    animation-delay: -2s;
}

.icon-4 {
    bottom: 5%;
    right: 20%;
    color: var(--h-azure);
    box-shadow: 0 10px 25px rgba(47, 155, 240, 0.45);
    animation-delay: -3s;
}

@keyframes iconFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-15px); }
}

/* Scroll Indicator */
.hero-scroll {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
}

.hero-scroll a {
    text-decoration: none;
}

.scroll-indicator {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.scroll-text {
    font-size: 0.75rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.65);
    text-transform: uppercase;
    letter-spacing: 2px;
}

.scroll-line {
    width: 2px;
    height: 40px;
    background: linear-gradient(to bottom, var(--h-teal), transparent);
    animation: scrollPulse 2s ease-in-out infinite;
}

@keyframes scrollPulse {
    0%, 100% { opacity: 1; transform: scaleY(1); }
    50% { opacity: 0.5; transform: scaleY(0.8); }
}

/* Animation Keyframes */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@media (prefers-reduced-motion: reduce) {
    .hero-aurora,
    .capsule-decor,
    .hex,
    .visual-ring,
    .floating-icon,
    .scroll-line {
        animation: none !important;
    }
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.9rem 2rem;
    font-family: 'Source Sans Pro', sans-serif;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    border-radius: var(--border-radius);
    transition: var(--transition);
    border: 2px solid transparent;
    cursor: pointer;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: white;
    border-color: var(--primary-dark);
}

.btn-primary:hover {
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--secondary) 100%);
    border-color: var(--secondary);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-outline {
    background: transparent;
    color: var(--primary);
    border-color: var(--primary);
}

.btn-outline:hover {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: white;
    border-color: var(--primary-dark);
    transform: translateY(-2px);
}

/* Sections */
.section {
    padding: 5rem 2rem;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-label {
    display: inline-block;
    font-size: 0.9rem;
    font-weight: 600;
    background: linear-gradient(90deg, var(--primary), var(--h-teal));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 0.75rem;
}

.section-title {
    font-size: clamp(1.8rem, 4vw, 2.5rem);
    color: var(--text-dark);
    margin-bottom: 1rem;
}

.section-line {
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, var(--primary), var(--accent));
    margin: 0 auto;
}

.section-desc {
    color: var(--text-light);
    font-size: 1.1rem;
    max-width: 600px;
    margin: 1.5rem auto 0;
}

/* About Section */
.about {
    background: var(--bg-white);
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: start;
}

.about-image {
    position: relative;
}

.about-image img {
    width: 100%;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-lg);
}

.about-badge {
    position: absolute;
    bottom: -20px;
    right: 20px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: white;
    padding: 1rem 1.5rem;
    border-radius: var(--border-radius);
    text-align: center;
    box-shadow: var(--shadow-md);
}

.badge-text {
    display: block;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    opacity: 0.9;
}

.badge-year {
    display: block;
    font-family: 'Playfair Display', serif;
    font-size: 1.8rem;
    font-weight: 700;
}

.about-text h3 {
    font-size: 1.6rem;
    margin-bottom: 1.5rem;
    color: var(--secondary);
}

.about-text p {
    margin-bottom: 1.25rem;
    line-height: 1.8;
}

.about-highlights {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin: 2rem 0;
}

.highlight-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.highlight-item i {
    color: var(--accent);
    font-size: 1.1rem;
}

.highlight-item span {
    font-weight: 600;
    color: var(--text-dark);
}

.about-goal {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    background: var(--bg-light);
    padding: 1.5rem;
    border-radius: var(--border-radius);
    border-left: 4px solid var(--primary);
    margin-top: 1.5rem;
}

.about-goal i {
    color: var(--primary);
    font-size: 1.2rem;
    margin-top: 0.2rem;
}

.about-goal p {
    margin: 0;
    font-style: italic;
    color: var(--text-body);
}

/* Vision & Mission Section */
.vision-mission {
    background: var(--dark-gradient);
    position: relative;
}

.vision-mission .section-header .section-label {
    background: none;
    -webkit-text-fill-color: rgba(255, 255, 255, 0.92);
    color: rgba(255, 255, 255, 0.92);
}

.vision-mission .section-header .section-title {
    color: #ffffff;
}

.vision-mission .section-line {
    background: linear-gradient(90deg, var(--h-teal), var(--h-violet));
}

.vm-cards {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    margin-bottom: 3rem;
}

.vm-card {
    background: var(--bg-white);
    padding: 2.5rem;
    border-radius: var(--border-radius);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.15);
    transition: var(--transition);
}

.vm-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 25px 60px rgba(0, 217, 192, 0.25);
}

.vm-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--h-teal), var(--h-azure));
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.vm-icon i {
    font-size: 1.5rem;
    color: white;
}

.vm-card h3 {
    font-size: 1.4rem;
    margin-bottom: 1rem;
    color: var(--secondary);
}

.vm-card p {
    color: var(--text-body);
    font-style: italic;
    line-height: 1.8;
}

/* Products Section */
.products {
    background: linear-gradient(180deg, var(--bg-light) 0%, var(--bg-white) 100%);
    position: relative;
    overflow: hidden;
}

.products::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(52, 152, 219, 0.05) 0%, transparent 70%);
    border-radius: 50%;
}

.products::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -5%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(72, 201, 176, 0.05) 0%, transparent 70%);
    border-radius: 50%;
}

.products .container {
    position: relative;
    z-index: 1;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2.5rem;
}

.product-card {
    background: linear-gradient(165deg, #ffffff 0%, #f8fafc 50%, #f0f7fc 100%);
    border: 2px solid transparent;
    border-radius: 20px;
    padding: 2rem;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.product-card::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 20px;
    padding: 2px;
    background: linear-gradient(135deg, var(--primary), var(--accent), var(--primary));
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.product-card:hover::before {
    opacity: 1;
}

.card-glow {
    position: absolute;
    top: -100%;
    left: -100%;
    width: 300%;
    height: 300%;
    background: conic-gradient(from 0deg, transparent 0%, rgba(52, 152, 219, 0.03) 25%, transparent 50%, rgba(72, 201, 176, 0.03) 75%, transparent 100%);
    animation: rotateGlow 8s linear infinite;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.product-card:hover .card-glow {
    opacity: 1;
}

@keyframes rotateGlow {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.card-corner {
    position: absolute;
    width: 20px;
    height: 20px;
    border-color: var(--primary);
    border-style: solid;
    border-width: 0;
    opacity: 0;
    transition: all 0.3s ease;
}

.corner-tl { top: 10px; left: 10px; border-top-width: 3px; border-left-width: 3px; border-radius: 5px 0 0 0; }
.corner-tr { top: 10px; right: 10px; border-top-width: 3px; border-right-width: 3px; border-radius: 0 5px 0 0; }
.corner-bl { bottom: 10px; left: 10px; border-bottom-width: 3px; border-left-width: 3px; border-radius: 0 0 0 5px; }
.corner-br { bottom: 10px; right: 10px; border-bottom-width: 3px; border-right-width: 3px; border-radius: 0 0 5px 0; }

.product-card:hover .card-corner {
    opacity: 1;
}

.product-card:hover {
    transform: translateY(-12px) scale(1.02);
    box-shadow: 
        0 25px 50px rgba(52, 152, 219, 0.2),
        0 10px 20px rgba(0, 0, 0, 0.05);
}

/* Featured Card */
.product-card.featured {
    background: linear-gradient(165deg, #ffffff 0%, #f0f7fc 50%, #e8f4fd 100%);
    border: 2px solid rgba(52, 152, 219, 0.3);
    transform: scale(1.03);
    z-index: 2;
}

.product-card.featured:hover {
    transform: translateY(-12px) scale(1.05);
}

.featured-badge {
    position: absolute;
    top: 20px;
    right: -35px;
    background: linear-gradient(135deg, var(--accent), #3cb371);
    color: white;
    padding: 0.4rem 3rem;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    transform: rotate(45deg);
    box-shadow: 0 3px 10px rgba(72, 201, 176, 0.3);
    z-index: 10;
}

/* Product Header */
.product-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.25rem;
    position: relative;
    z-index: 1;
}

.product-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: white;
    box-shadow: 
        0 8px 20px rgba(52, 152, 219, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
}

.product-card:hover .product-icon {
    transform: rotate(-10deg) scale(1.1);
    box-shadow: 
        0 12px 25px rgba(52, 152, 219, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.product-number {
    font-family: 'Source Sans Pro', sans-serif;
    font-size: 3.5rem;
    font-weight: 800;
    background: linear-gradient(135deg, rgba(52, 152, 219, 0.15) 0%, rgba(72, 201, 176, 0.1) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
}

.product-name {
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
    color: var(--secondary);
    line-height: 1.3;
    position: relative;
    z-index: 1;
}

.product-grade {
    display: inline-block;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: white;
    padding: 0.35rem 1rem;
    border-radius: 25px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 1.25rem;
    box-shadow: 0 3px 10px rgba(52, 152, 219, 0.25);
    position: relative;
    z-index: 1;
}

.product-card.featured .product-grade {
    background: linear-gradient(135deg, var(--accent) 0%, #2e9e5e 100%);
    box-shadow: 0 3px 10px rgba(72, 201, 176, 0.25);
}

.product-formula {
    background: linear-gradient(135deg, #f8fafc 0%, #e8f4fd 100%);
    padding: 1.25rem;
    border-radius: 12px;
    margin-bottom: 1.25rem;
    border: 1px solid rgba(52, 152, 219, 0.1);
    position: relative;
    z-index: 1;
}

.product-formula::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(180deg, var(--primary), var(--accent));
    border-radius: 4px 0 0 4px;
}

.product-formula span {
    display: block;
    font-size: 0.8rem;
    color: var(--text-light);
    margin-bottom: 0.35rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.product-formula strong {
    font-family: 'Source Sans Pro', sans-serif;
    font-size: 1.2rem;
    color: var(--primary);
    font-weight: 700;
}

.product-details,
.product-applications {
    position: relative;
    z-index: 1;
}

.product-details h4,
.product-applications h4 {
    font-size: 0.85rem;
    color: var(--secondary);
    margin-bottom: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.product-details h4::before {
    content: '';
    width: 4px;
    height: 4px;
    background: var(--primary);
    border-radius: 50%;
}

.product-details ul {
    list-style: none;
    margin-bottom: 1.25rem;
}

.product-details li {
    color: var(--text-body);
    font-size: 0.9rem;
    padding: 0.5rem 0;
    padding-left: 1.75rem;
    position: relative;
    transition: all 0.2s ease;
}

.product-details li:hover {
    color: var(--primary);
    padding-left: 2rem;
}

.product-details li::before {
    content: '✓';
    position: absolute;
    left: 0;
    width: 20px;
    height: 20px;
    background: linear-gradient(135deg, rgba(72, 201, 176, 0.15) 0%, rgba(52, 152, 219, 0.1) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    color: var(--accent);
    font-weight: bold;
}

.app-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.app-tags span {
    background: linear-gradient(135deg, var(--bg-light) 0%, #e8f4fd 100%);
    color: var(--text-body);
    padding: 0.5rem 1rem;
    border-radius: 25px;
    font-size: 0.8rem;
    border: 1px solid rgba(52, 152, 219, 0.15);
    transition: all 0.3s ease;
}

.app-tags span:hover {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: white;
    border-color: var(--primary-dark);
    transform: translateY(-2px);
}

/* Product CTA */
.product-cta {
    margin-top: auto;
    padding-top: 1.5rem;
    position: relative;
    z-index: 1;
}

.product-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    width: 100%;
    justify-content: center;
    padding: 0.9rem 1.5rem;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: white;
    border-radius: 12px;
    font-weight: 600;
    font-size: 0.95rem;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(52, 152, 219, 0.3);
    position: relative;
    overflow: hidden;
}

.product-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.product-btn:hover::before {
    left: 100%;
}

.product-btn:hover {
    background: linear-gradient(135deg, var(--primary-dark) 0%, #1a5276 100%);
    box-shadow: 0 8px 25px rgba(52, 152, 219, 0.4);
    transform: translateY(-2px);
}

.product-btn i {
    transition: transform 0.3s ease;
}

.product-btn:hover i {
    transform: translateX(5px);
}

.product-card.featured .product-btn {
    background: linear-gradient(135deg, var(--accent) 0%, #2e9e5e 100%);
    box-shadow: 0 4px 15px rgba(72, 201, 176, 0.3);
}

.product-card.featured .product-btn:hover {
    background: linear-gradient(135deg, #2e9e5e 0%, #247a4a 100%);
    box-shadow: 0 8px 25px rgba(72, 201, 176, 0.4);
}

/* Facilities Section */
.facilities {
    background: var(--dark-gradient);
    position: relative;
    overflow: hidden;
}

.facilities::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.facilities .section-header .section-label {
    background: none;
    -webkit-text-fill-color: rgba(255, 255, 255, 0.92);
    color: rgba(255, 255, 255, 0.92);
}

.facilities .section-header .section-title,
.facilities .section-desc {
    color: white;
}

.facilities .section-line {
    background: linear-gradient(90deg, var(--h-teal), var(--h-amber));
}

.facility-gallery {
    margin-bottom: 3rem;
    position: relative;
    z-index: 1;
}

.gallery-main {
    position: relative;
    margin-bottom: 1.5rem;
}

.gallery-main img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    border-radius: 12px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
}

.gallery-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0,0,0,0.8));
    color: white;
    padding: 2rem 1.5rem 1rem;
    border-radius: 0 0 12px 12px;
    font-weight: 600;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.gallery-item {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.gallery-item img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    transition: var(--transition);
}

.gallery-item:hover img {
    transform: scale(1.08);
}

.gallery-item span {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0,0,0,0.8));
    color: white;
    padding: 1.5rem 1rem 0.75rem;
    font-size: 0.9rem;
    font-weight: 600;
}

.equipment-section {
    background: linear-gradient(145deg, #ffffff 0%, #f0f7fc 100%);
    padding: 2.5rem;
    border-radius: 16px;
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.2);
    position: relative;
    z-index: 1;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.equipment-section::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(52, 152, 219, 0.08) 0%, transparent 70%);
    border-radius: 50%;
}

.equipment-section h3 {
    font-size: 1.4rem;
    margin-bottom: 2rem;
    color: var(--secondary);
    text-align: center;
    position: relative;
}

.equipment-section h3::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, var(--primary), var(--accent));
    margin: 0.75rem auto 0;
    border-radius: 2px;
}

.equipment-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.25rem;
}

.equipment-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.25rem;
    background: white;
    border-radius: 12px;
    border: 1px solid var(--border-color);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    transition: var(--transition);
}

.equipment-item:hover {
    border-color: var(--primary);
    box-shadow: 0 8px 25px rgba(52, 152, 219, 0.15);
    transform: translateY(-3px);
}

.equip-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.2rem;
    flex-shrink: 0;
    box-shadow: 0 4px 12px rgba(52, 152, 219, 0.3);
}

.equip-name {
    display: block;
    font-weight: 600;
    color: var(--text-dark);
    font-size: 0.9rem;
}

.equip-spec {
    display: block;
    font-size: 0.75rem;
    color: var(--text-light);
    margin-top: 0.2rem;
}

/* Team Section */
.team {
    background: var(--bg-white);
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
}

.team-card {
    background: var(--bg-white);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    padding: 2rem;
    text-align: center;
    transition: var(--transition);
}

.team-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary);
}

.member-photo {
    width: 100px;
    height: 100px;
    background: var(--bg-light);
    border: 3px solid var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
}

.member-photo i {
    font-size: 2.5rem;
    color: var(--primary);
}

.member-name {
    font-size: 1.15rem;
    margin-bottom: 0.5rem;
    color: var(--secondary);
}

.member-role {
    display: block;
    color: var(--primary);
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.member-bio {
    color: var(--text-body);
    font-size: 0.9rem;
    line-height: 1.7;
}

/* Contact Section */
.contact {
    background: var(--bg-light);
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
}

.contact-info h3,
.contact-form-wrapper h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--secondary);
}

.contact-info > p {
    color: var(--text-body);
    margin-bottom: 2rem;
    line-height: 1.8;
}

.info-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.info-item {
    display: flex;
    gap: 1rem;
}

.info-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.2rem;
    flex-shrink: 0;
}

.info-details h4 {
    font-size: 1rem;
    margin-bottom: 0.25rem;
    color: var(--text-dark);
}

.info-details p {
    color: var(--text-body);
    font-size: 0.9rem;
    line-height: 1.6;
}

/* Contact Form */
.contact-form-wrapper {
    background: var(--bg-white);
    padding: 2rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
}

.contact-form {
    margin-top: 1.5rem;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.form-group {
    margin-bottom: 1.25rem;
}

.form-group label {
    display: block;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.8rem 1rem;
    font-family: inherit;
    font-size: 1rem;
    color: var(--text-dark);
    background: var(--bg-light);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    transition: var(--transition);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.1);
}

.contact-form .btn {
    width: 100%;
    justify-content: center;
}

/* Footer */
.footer {
    background: var(--dark-gradient);
    color: white;
}

.footer-main {
    padding: 4rem 2rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1.5fr 1.5fr;
    gap: 3rem;
}

.footer-logo {
    height: 60px;
    margin-bottom: 1rem;
    filter: brightness(0) invert(1);
}

.footer-brand p {
    color: rgba(255,255,255,0.8);
    font-size: 0.95rem;
    line-height: 1.7;
}

.footer-links h4,
.footer-products h4,
.footer-contact h4 {
    font-size: 1.1rem;
    margin-bottom: 1.25rem;
    color: white;
}

.footer-links ul,
.footer-products ul,
.footer-contact ul {
    list-style: none;
}

.footer-links li,
.footer-products li,
.footer-contact li {
    margin-bottom: 0.6rem;
}

.footer-links a,
.footer-products a {
    color: rgba(255,255,255,0.8);
    text-decoration: none;
    font-size: 0.95rem;
    transition: var(--transition);
}

.footer-links a:hover,
.footer-products a:hover {
    color: white;
    padding-left: 5px;
}

.footer-contact li {
    color: rgba(255,255,255,0.8);
    font-size: 0.95rem;
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
}

.footer-contact i {
    color: var(--primary-light);
    margin-top: 0.2rem;
}

.footer-bottom {
    padding: 1.5rem 2rem;
    border-top: 1px solid rgba(255,255,255,0.1);
    text-align: center;
}

.footer-bottom p {
    color: rgba(255,255,255,0.7);
    font-size: 0.9rem;
}

.footer-bottom .tagline {
    font-style: italic;
    margin-top: 0.5rem;
    font-size: 0.85rem;
}

/* Back to Top */
.back-to-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 45px;
    height: 45px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-decoration: none;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    z-index: 999;
    box-shadow: var(--shadow-md);
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--secondary) 100%);
    transform: translateY(-3px);
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-in {
    animation: fadeInUp 0.6s ease forwards;
}

/* Responsive Design */
@media (max-width: 1200px) {
    .team-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .equipment-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 992px) {
    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 300px;
        height: 100vh;
        background: var(--bg-white);
        flex-direction: column;
        padding: 5rem 2rem 2rem;
        box-shadow: var(--shadow-lg);
        transition: var(--transition);
    }
    
    .nav-menu.active {
        right: 0;
    }
    
    .nav-toggle {
        display: flex;
        z-index: 1001;
    }
    
    /* Hero Responsive */
    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 3rem;
    }
    
    .hero-content {
        order: 1;
    }
    
    .hero-visual {
        order: 2;
    }
    
    .hero-badge {
        justify-content: center;
    }
    
    .hero-stats {
        justify-content: center;
    }
    
    .hero-buttons {
        justify-content: center;
    }
    
    .visual-container {
        width: 350px;
        height: 350px;
    }
    
    .about-content {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    
    .vm-cards {
        grid-template-columns: 1fr;
    }
    
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .contact-content {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .section {
        padding: 4rem 1.5rem;
    }
    
    /* Hero Mobile */
    .hero {
        padding-top: 100px;
    }
    
    .hero-container {
        padding: 1.5rem;
    }
    
    .hero-stats {
        flex-wrap: wrap;
        gap: 1rem;
    }
    
    .stat-box {
        padding: 0.75rem 1rem;
        flex: 1;
        min-width: 90px;
    }
    
    .stat-number {
        font-size: 1.4rem;
    }
    
    .visual-container {
        width: 280px;
        height: 280px;
    }
    
    .floating-icon {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
    
    .hero-aurora {
        width: 380px;
        height: 380px;
        filter: blur(60px);
    }

    .capsule-3 {
        display: none;
    }

    .products-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .product-card.featured {
        transform: none;
    }
    
    .product-card.featured:hover {
        transform: translateY(-10px);
    }
    
    .featured-badge {
        right: -30px;
        padding: 0.3rem 2.5rem;
        font-size: 0.7rem;
    }
    
    .product-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.75rem;
    }
    
    .product-number {
        position: absolute;
        top: 1rem;
        right: 1rem;
        font-size: 2.5rem;
    }
    
    .team-grid {
        grid-template-columns: 1fr;
    }
    
    .gallery-grid {
        grid-template-columns: 1fr;
    }
    
    .equipment-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .about-highlights {
        grid-template-columns: 1fr;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .btn {
        width: 100%;
        max-width: 250px;
        justify-content: center;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .nav-container {
        padding: 0 1rem;
    }
    
    .logo-img {
        height: 45px;
    }
    
    /* Hero Small Mobile */
    .title-main {
        font-size: 2rem;
    }
    
    .title-sub {
        font-size: 1rem;
    }
    
    .hero-description {
        font-size: 1rem;
    }
    
    .hero-stats {
        flex-direction: column;
        align-items: center;
    }
    
    .stat-box {
        width: 100%;
        max-width: 200px;
    }
    
    .visual-container {
        width: 240px;
        height: 240px;
    }
    
    .hero-visual {
        display: none;
    }
    
    .hero-bg-elements .hex {
        opacity: 0.5;
    }
    
    .contact-form-wrapper {
        padding: 1.5rem;
    }
}
