/* Reset and Variables */
:root {
    --bg-dark: #ffffff;
    --bg-dark-elem: #ffffff;
    --bg-light: #ffffff;
    --text-dark: #1d1d1f;
    --text-light: #1d1d1f;
    --text-sub: #515154;
    --accent: #2997ff;
    --green-accent: #34c759;
    --font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    --transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

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

html {
    scroll-behavior: smooth;
}

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

h1,
h2,
h3,
h4 {
    letter-spacing: -0.02em;
    font-weight: 600;
}

h2 {
    font-size: 3rem;
    margin-bottom: 1rem;
}

h3 {
    font-size: 1.8rem;
    margin-bottom: 0.8rem;
}

h4 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
}

p {
    font-size: 1.1rem;
    font-weight: 400;
    color: var(--text-sub);
}

a {
    text-decoration: none;
}

.text-dark {
    color: var(--text-dark);
}

.text-dark p,
.text-dark .text-sub {
    color: #515154;
}

.text-light {
    color: #1d1d1f !important;
}

.text-center {
    text-align: center;
}

.mt-s {
    margin-top: 1rem;
}

.mt-l {
    margin-top: 3rem;
}

.mb-s {
    margin-bottom: 1rem;
}

.mb-l {
    margin-bottom: 3rem;
}

/* Navigation */
.nav {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    background: #ffffff;
    transition: var(--transition);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.nav-content {
    width: 100%;
    padding: 10px 2rem;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

.logo {
    position: absolute;
    left: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

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

.nav-links a {
    color: #1d1d1f;
    font-size: 0.9rem;
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

.nav-links a:hover {
    opacity: 1;
}

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

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    z-index: 0;
    transform: scale(1.05);
    transition: transform 1.5s ease-out;
}

.hero.scrolled .hero-bg {
    transform: scale(1);
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    padding: 0 2rem;
}

.hero-subtitle {
    font-size: 1.4rem;
    color: var(--green-accent);
    margin-bottom: 0.5rem;
    font-weight: 400;
    letter-spacing: 1px;
}

.hero-title {
    font-size: 5rem;
    font-weight: 800;
    color: #fff;
    margin-bottom: 1rem;
    line-height: 1.1;
}

.hero-desc {
    font-size: 1.2rem;
    color: #d2d2d7;
    letter-spacing: 3px;
}

.btn {
    display: inline-block;
    padding: 14px 32px;
    border-radius: 30px;
    font-size: 1rem;
    font-weight: 600;
    transition: all 0.3s ease;
    cursor: pointer;
    text-decoration: none;
}

.btn-primary {
    background-color: #34c759;
    border: 2px solid #34c759;
    color: #ffffff !important;
    box-shadow: 0 4px 15px rgba(52, 199, 89, 0.4);
}

.btn-primary:hover {
    background-color: #2eb150;
    border-color: #2eb150;
    color: #ffffff !important;
    box-shadow: 0 6px 20px rgba(52, 199, 89, 0.6);
    transform: translateY(-2px);
}

/* Sections */
.section {
    padding: 8rem 0;
}

.dark-section {
    background-color: var(--bg-dark);
}

.light-section {
    background-color: var(--bg-light);
    border-top: 1px solid #e5e5ea;
    border-bottom: 1px solid #e5e5ea;
}

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

.container-large {
    max-width: 1400px;
}

.section-header {
    text-align: center;
    margin-bottom: 5rem;
}

/* Bento Grid (R&D / Team) */
.bento-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    grid-auto-rows: minmax(250px, auto);
    gap: 2rem;
}

.bento-item {
    border-radius: 24px;
    padding: 3rem;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.04);
}

.team-card {
    background: #fff;
    color: var(--text-dark);
    grid-column: span 2;
}

.team-stats {
    display: flex;
    justify-content: space-around;
    margin-top: 2rem;
    text-align: center;
}

.t-stat span {
    font-size: 3rem;
    font-weight: 800;
    color: var(--accent);
}

.t-stat small {
    font-size: 1rem;
    color: var(--text-sub);
}

.dark-card {
    background: var(--bg-dark-elem);
    color: #1d1d1f;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.dark-card .text-sub {
    color: #515154;
}

.feature-list {
    list-style: none;
    margin-top: 2rem;
    font-size: 1.2rem;
    color: #1d1d1f;
}

.feature-list li {
    margin-bottom: 1rem;
}

.feature-list span {
    font-size: 2rem;
    font-weight: bold;
    color: var(--green-accent);
    margin-right: 0.5rem;
}

.highlight-card {
    background: linear-gradient(135deg, #f5f5f7 0%, #e5e5ea 100%);
    color: #1d1d1f;
}

.highlight-card p {
    color: #1d1d1f;
    font-size: 1.2rem;
    margin-top: 1rem;
}

.strategy-card {
    background: #fff;
    color: var(--text-dark);
    grid-column: span 2;
}

.goal-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-top: 2rem;
}

.badge {
    background: var(--bg-light);
    padding: 12px 24px;
    border-radius: 30px;
    font-weight: 600;
    color: var(--text-dark);
    font-size: 0.95rem;
    border: 1px solid #d2d2d7;
}

/* Service Splits (Text + Image panels) */
.service-split {
    display: flex;
    gap: 4rem;
    align-items: center;
}

.reverse-split {
    flex-direction: row-reverse;
}

.split-text {
    flex: 1;
}

.split-image {
    flex: 1;
    height: 500px;
    background-size: cover;
    background-position: center;
    border-radius: 24px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.2);
}

.spec-list {
    margin-top: 2rem;
}

.spec-item {
    margin-bottom: 2rem;
    padding-left: 1.5rem;
    border-left: 2px solid var(--accent);
}

.spec-item p {
    color: #a1a1a6;
    font-size: 1rem;
}

.clean-list {
    list-style: none;
    margin-top: 2rem;
}

.clean-list li {
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
    line-height: 1.6;
    padding-left: 2rem;
    position: relative;
}

.clean-list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--green-accent);
    font-weight: bold;
}

/* Clients Grid */
.clients-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
    max-width: 1000px;
    margin: 0 auto;
}

.client-pill {
    background: rgba(0, 0, 0, 0.03);
    border: 1px solid rgba(0, 0, 0, 0.08);
    color: var(--text-dark);
    padding: 12px 24px;
    border-radius: 30px;
    font-size: 0.95rem;
    transition: all 0.3s;
}

.client-pill:hover {
    background: rgba(0, 0, 0, 0.06);
}

/* Devices Flex List */
.device-list-flex {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    max-width: 900px;
    margin: 0 auto;
}

.dev-card {
    display: flex;
    align-items: center;
    gap: 2rem;
    padding: 2rem;
    border-radius: 20px;
    background: #fff;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.03);
    transition: background 0.3s;
}

.dev-card:hover {
    background: #fafafa;
}

.dev-num {
    font-size: 2.5rem;
    font-weight: 800;
    color: rgba(0, 0, 0, 0.1);
    min-width: 60px;
}

.dev-info h3 {
    margin-bottom: 0.3rem;
    font-size: 1.4rem;
    color: #1d1d1f;
}

.dev-info p {
    margin-bottom: 0;
    font-size: 1rem;
}

/* Footer */
.footer {
    padding: 5rem 0 3rem;
    background-color: var(--bg-dark);
    border-top: 1px solid #e5e5ea;
}

.footer-title {
    font-size: 2rem;
    color: #1d1d1f;
    margin-bottom: 0.5rem;
}

.footer-divider {
    width: 40px;
    height: 2px;
    background: var(--text-sub);
    margin: 2rem auto;
}

.copyright {
    font-size: 0.85rem;
}

/* Animations */
.fade-up {
    opacity: 0;
    transform: translateY(40px);
    transition: var(--transition);
}

.fade-up.visible {
    opacity: 1;
    transform: translateY(0);
}

.delay-1 {
    transition-delay: 0.1s;
}

/* --- ELITE R&D SUPER SECTION (NEW COOL STYLES) --- */
.elite-rd-section {
    position: relative;
    background: #ffffff;
    overflow: hidden;
}

.text-gradient {
    background: linear-gradient(135deg, #1d1d1f 0%, #86868b 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.text-gradient-dark {
    background: linear-gradient(135deg, #1d1d1f 0%, #86868b 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.text-gradient-blue {
    background: linear-gradient(135deg, #10b981 0%, #3b82f6 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.text-gradient-green {
    background: linear-gradient(135deg, #34d399 0%, #10b981 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.text-gradient-gold {
    background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.elite-bento-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    grid-auto-rows: minmax(280px, auto);
    gap: 1.5rem;
}

.elite-card {
    position: relative;
    border-radius: 24px;
    background: #f5f5f7;
    border: 1px solid rgba(0, 0, 0, 0.05);
    padding: 3rem;
    overflow: hidden;
    color: #1d1d1f;
    display: flex;
    flex-direction: column;
}

.card-content {
    position: relative;
    z-index: 2;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.team-hero-card,
.strategy-hero-card {
    grid-column: span 2;
}

.elite-stats {
    display: flex;
    justify-content: space-between;
    margin-top: auto;
    padding-top: 2rem;
}

.e-stat {
    text-align: center;
}

.e-stat .counter {
    font-size: 4.5rem;
    font-weight: 800;
    line-height: 1;
    display: block;
}

.stat-label {
    font-size: 1.1rem;
    color: #a1a1a6;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-top: 0.5rem;
}

.patent-numbers {
    display: flex;
    gap: 3rem;
    margin-top: auto;
    padding-top: 1rem;
}

.p-num {
    text-align: left;
}

.p-num .counter {
    font-size: 4rem;
    font-weight: 800;
    line-height: 0.9;
}

.p-num small {
    font-size: 1.5rem;
    color: var(--green-accent);
    margin-left: 0.2rem;
}

.solid-badge {
    display: inline-block;
    padding: 10px 20px;
    font-weight: 800;
    font-size: 1.1rem;
    border-radius: 30px;
    background: #1d1d1f;
    color: #fff;
}

.timeline-goals {
    display: flex;
    gap: 4rem;
    margin-top: auto;
    padding-top: 2rem;
    position: relative;
}

.t-goal {
    position: relative;
    padding-left: 2rem;
}

.t-dot {
    position: absolute;
    left: 0;
    top: 5px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    box-shadow: 0 0 15px currentColor;
}

.dot-blue {
    background: #3b82f6;
    color: #3b82f6;
}

.dot-gold {
    background: #fbbf24;
    color: #fbbf24;
}

/* Responsive */
@media (max-width: 900px) {

    .bento-grid,
    .elite-bento-grid,
    .vision-grid,
    .contact-grid {
        grid-template-columns: 1fr !important;
    }

    .team-card,
    .strategy-card,
    .team-hero-card,
    .strategy-hero-card {
        grid-column: span 1;
    }

    .elite-stats {
        flex-wrap: wrap;
        gap: 2rem;
        justify-content: center;
    }

    .timeline-goals {
        flex-direction: column;
        gap: 2rem;
    }

    .hero-title {
        font-size: 3.5rem;
    }

    .service-split,
    .reverse-split {
        flex-direction: column;
    }

    .split-image {
        height: 300px;
        width: 100%;
    }

    .nav-links {
        display: none;
    }
}

/* Office Gallery */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-top: 3rem;
}

.gallery-img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    border-radius: 16px;
    cursor: pointer;
    transition: transform 0.3s, box-shadow 0.3s;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.gallery-img:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
}

/* Vision Grid */
.vision-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

/* Lightbox Modal */
.lightbox {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    align-items: center;
    justify-content: center;
}

.lightbox-content {
    max-width: 90%;
    max-height: 90%;
}

.lightbox-content img {
    width: auto;
    height: auto;
    max-width: 100%;
    max-height: 90vh;
    border-radius: 8px;
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 30px;
    color: #f1f1f1;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    transition: 0.3s;
}

.lightbox-close:hover {
    color: #fff;
}

.lightbox-prev,
.lightbox-next {
    cursor: pointer;
    position: absolute;
    top: 50%;
    width: auto;
    padding: 16px;
    margin-top: -50px;
    color: white;
    font-weight: bold;
    font-size: 20px;
    transition: 0.6s ease;
    border-radius: 0 3px 3px 0;
    user-select: none;
    -webkit-user-select: none;
}

.lightbox-prev {
    left: 0;
    border-radius: 3px 0 0 3px;
}

.lightbox-next {
    right: 0;
    border-radius: 3px 0 0 3px;
}

.lightbox-prev:hover,
.lightbox-next:hover {
    background-color: rgba(0, 0, 0, 0.8);
}

/* Business Cards Grid */
.biz-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
}

.biz-card {
    background: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.06);
    border-radius: 24px;
    padding: 2.5rem;
    transition: transform 0.3s, box-shadow 0.3s;
}

.biz-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.08);
}

.biz-icon {
    width: 56px;
    height: 56px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.biz-card h3 {
    font-size: 1.35rem;
    color: #1d1d1f;
    margin-bottom: 1rem;
    line-height: 1.4;
}

.biz-card p {
    line-height: 1.7;
    font-size: 0.95rem;
}

.biz-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 1.5rem;
}

.biz-tag {
    background: rgba(0, 122, 255, 0.08);
    color: #007aff;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
}

@media (max-width: 900px) {
    .biz-grid {
        grid-template-columns: 1fr;
    }

    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}