/* =====================================================
   SOMATEVA LABS - CSS STYLESHEET
   Tech meets Nature aesthetic
   ===================================================== */

/* CSS Variables */
:root {
    /* Primary Colors - from logo */
    --green-light: #7ed957;
    --green-mid: #4cb848;
    --green-dark: #2d8a3e;
    --blue-light: #4ec5e0;
    --blue-mid: #2a9fd6;
    --blue-dark: #1a5f8a;
    
    /* Gradient */
    --gradient-primary: linear-gradient(135deg, var(--green-mid) 0%, var(--blue-mid) 100%);
    --gradient-hero: linear-gradient(160deg, #0a1628 0%, #0d2137 50%, #0a2820 100%);
    --gradient-text: linear-gradient(90deg, var(--green-light) 0%, var(--blue-light) 100%);
    
    /* Neutrals */
    --dark-900: #0a1628;
    --dark-800: #111d32;
    --dark-700: #1a2a42;
    --dark-600: #243550;
    --gray-500: #64748b;
    --gray-400: #94a3b8;
    --gray-300: #cbd5e1;
    --gray-100: #f1f5f9;
    --white: #ffffff;
    
    /* Typography */
    --font-display: 'Space Grotesk', sans-serif;
    --font-body: 'Plus Jakarta Sans', sans-serif;
    
    /* Spacing */
    --section-padding: 120px;
    --container-width: 1200px;
    
    /* Transitions */
    --transition-fast: 0.2s ease;
    --transition-base: 0.3s ease;
    --transition-slow: 0.5s ease;
    
    /* Border Radius */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --radius-xl: 32px;
}

/* Reset & Base */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

body {
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.6;
    color: var(--gray-300);
    background-color: var(--dark-900);
    overflow-x: hidden;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-display);
    font-weight: 600;
    line-height: 1.2;
    color: var(--white);
}

.gradient-text {
    background: var(--gradient-text);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color var(--transition-fast);
}

/* =====================================================
   NAVIGATION
   ===================================================== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 20px 0;
    transition: all var(--transition-base);
}

.navbar.scrolled {
    background: rgba(10, 22, 40, 0.95);
    backdrop-filter: blur(20px);
    padding: 12px 0;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

.nav-container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-logo img {
    height: 48px;
    width: auto;
    transition: transform var(--transition-base);
}

.nav-logo:hover img {
    transform: scale(1.05);
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 40px;
}

.nav-link {
    font-family: var(--font-display);
    font-size: 15px;
    font-weight: 500;
    color: var(--gray-300);
    position: relative;
    padding: 8px 0;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gradient-primary);
    transition: width var(--transition-base);
}

.nav-link:hover,
.nav-link.active {
    color: var(--white);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
}

.nav-toggle span {
    width: 24px;
    height: 2px;
    background: var(--white);
    transition: all var(--transition-base);
}

/* =====================================================
   BUTTONS
   ===================================================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 32px;
    font-family: var(--font-display);
    font-size: 15px;
    font-weight: 600;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all var(--transition-base);
    border: none;
    text-align: center;
}

.btn svg {
    width: 18px;
    height: 18px;
}

.btn-primary {
    background: var(--gradient-primary);
    color: var(--white);
    box-shadow: 0 4px 20px rgba(76, 184, 72, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(76, 184, 72, 0.4);
}

.btn-secondary {
    background: transparent;
    color: var(--white);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.3);
}

.btn-full {
    width: 100%;
}

/* =====================================================
   HERO SECTION
   ===================================================== */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    padding: 120px 24px 80px;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.hero-gradient {
    position: absolute;
    inset: 0;
    background: var(--gradient-hero);
}

.hero-gradient::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 100%;
    background: 
        radial-gradient(ellipse 80% 50% at 50% -20%, rgba(76, 184, 72, 0.15) 0%, transparent 50%),
        radial-gradient(ellipse 60% 40% at 80% 60%, rgba(42, 159, 214, 0.1) 0%, transparent 40%);
}

.hero-particles {
    position: absolute;
    inset: 0;
    overflow: hidden;
}

.particle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: rgba(126, 217, 87, 0.6);
    border-radius: 50%;
    animation: float 15s infinite;
}

@keyframes float {
    0%, 100% {
        transform: translateY(100vh) scale(0);
        opacity: 0;
    }
    10% {
        opacity: 1;
    }
    90% {
        opacity: 1;
    }
    100% {
        transform: translateY(-100px) scale(1);
        opacity: 0;
    }
}

.dna-helix {
    position: absolute;
    right: 5%;
    top: 50%;
    transform: translateY(-50%);
    width: 200px;
    height: 400px;
    opacity: 0.1;
    background: repeating-linear-gradient(
        0deg,
        transparent,
        transparent 10px,
        var(--green-mid) 10px,
        var(--green-mid) 12px,
        transparent 12px,
        transparent 22px
    );
    mask-image: linear-gradient(to bottom, transparent, black 20%, black 80%, transparent);
    -webkit-mask-image: linear-gradient(to bottom, transparent, black 20%, black 80%, transparent);
    animation: dnaRotate 20s linear infinite;
}

@keyframes dnaRotate {
    from { transform: translateY(-50%) rotateY(0deg); }
    to { transform: translateY(-50%) rotateY(360deg); }
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 900px;
    text-align: center;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 10px 20px;
    background: rgba(76, 184, 72, 0.1);
    border: 1px solid rgba(76, 184, 72, 0.2);
    border-radius: 50px;
    font-size: 14px;
    font-weight: 500;
    color: var(--green-light);
    margin-bottom: 32px;
    animation: fadeInUp 0.8s ease;
}

.badge-dot {
    width: 8px;
    height: 8px;
    background: var(--green-light);
    border-radius: 50%;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(1.2); }
}

.hero-title {
    font-size: clamp(48px, 8vw, 80px);
    font-weight: 700;
    margin-bottom: 24px;
    letter-spacing: -2px;
}

.title-line {
    display: block;
    animation: fadeInUp 0.8s ease backwards;
}

.title-line:nth-child(1) { animation-delay: 0.1s; }
.title-line:nth-child(2) { animation-delay: 0.2s; }
.title-line:nth-child(3) { animation-delay: 0.3s; }

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-subtitle {
    font-size: 18px;
    line-height: 1.7;
    color: var(--gray-400);
    max-width: 700px;
    margin: 0 auto 40px;
    animation: fadeInUp 0.8s ease 0.4s backwards;
}

.hero-stats {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 32px;
    margin-bottom: 48px;
    animation: fadeInUp 0.8s ease 0.5s backwards;
}

.stat {
    text-align: center;
}

.stat-number {
    display: block;
    font-family: var(--font-display);
    font-size: 48px;
    font-weight: 700;
    color: var(--white);
}

.stat-label {
    font-size: 14px;
    color: var(--gray-500);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.stat.highlight .stat-number {
    background: var(--gradient-text);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stat-arrow {
    font-size: 32px;
    color: var(--gray-500);
}

.hero-cta {
    display: flex;
    gap: 16px;
    justify-content: center;
    animation: fadeInUp 0.8s ease 0.6s backwards;
}

.scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    color: var(--gray-500);
    font-size: 12px;
    letter-spacing: 1px;
    animation: fadeInUp 0.8s ease 0.8s backwards;
}

.mouse {
    width: 26px;
    height: 40px;
    border: 2px solid var(--gray-500);
    border-radius: 20px;
    position: relative;
}

.wheel {
    width: 4px;
    height: 8px;
    background: var(--gray-500);
    border-radius: 2px;
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    animation: scroll 2s infinite;
}

@keyframes scroll {
    0% { opacity: 1; transform: translateX(-50%) translateY(0); }
    100% { opacity: 0; transform: translateX(-50%) translateY(12px); }
}

/* =====================================================
   SECTION COMMON STYLES
   ===================================================== */
.section-container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 24px;
}

.section-header {
    text-align: center;
    margin-bottom: 64px;
}

.section-tag {
    display: inline-block;
    padding: 8px 16px;
    background: rgba(76, 184, 72, 0.1);
    border: 1px solid rgba(76, 184, 72, 0.2);
    border-radius: 50px;
    font-size: 13px;
    font-weight: 600;
    color: var(--green-light);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 20px;
}

.section-title {
    font-size: clamp(36px, 5vw, 52px);
    margin-bottom: 16px;
}

.section-desc {
    font-size: 18px;
    color: var(--gray-400);
    max-width: 600px;
    margin: 0 auto;
}

/* =====================================================
   ABOUT SECTION
   ===================================================== */
.about {
    padding: var(--section-padding) 0;
    background: var(--dark-900);
    position: relative;
}

.about::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(76, 184, 72, 0.3), transparent);
}

.about-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 32px;
}

.about-main {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.about-card {
    background: var(--dark-800);
    border: 1px solid var(--dark-600);
    border-radius: var(--radius-lg);
    padding: 40px;
    position: relative;
    overflow: hidden;
    transition: all var(--transition-base);
}

.about-card:hover {
    transform: translateY(-4px);
    border-color: rgba(76, 184, 72, 0.3);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.about-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--gradient-primary);
    opacity: 0;
    transition: opacity var(--transition-base);
}

.about-card:hover::before {
    opacity: 1;
}

.card-icon {
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(76, 184, 72, 0.1);
    border-radius: var(--radius-md);
    margin-bottom: 24px;
}

.card-icon svg {
    width: 28px;
    height: 28px;
    color: var(--green-light);
}

.about-card h3 {
    font-size: 24px;
    margin-bottom: 16px;
}

.about-card p {
    color: var(--gray-400);
    line-height: 1.7;
}

.about-card strong {
    color: var(--green-light);
}

.about-vision {
    display: flex;
    align-items: stretch;
}

.vision-card {
    background: linear-gradient(135deg, var(--dark-800) 0%, var(--dark-700) 100%);
    border: 1px solid var(--dark-600);
    border-radius: var(--radius-lg);
    padding: 40px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.vision-graphic {
    width: 200px;
    height: 200px;
    position: relative;
    margin-bottom: 32px;
}

.orbit-ring {
    position: absolute;
    inset: 0;
    border: 1px solid rgba(76, 184, 72, 0.2);
    border-radius: 50%;
    animation: orbitPulse 4s ease-in-out infinite;
}

.orbit-ring.delay-1 {
    inset: 20px;
    animation-delay: 0.5s;
}

.orbit-ring.delay-2 {
    inset: 40px;
    animation-delay: 1s;
}

@keyframes orbitPulse {
    0%, 100% { transform: scale(1); opacity: 0.3; }
    50% { transform: scale(1.05); opacity: 0.6; }
}

.center-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80px;
    height: 80px;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.center-icon svg {
    width: 40px;
    height: 40px;
    color: var(--white);
}

.vision-card h3 {
    font-size: 24px;
    margin-bottom: 16px;
}

.vision-card p {
    color: var(--gray-400);
    line-height: 1.7;
}

/* =====================================================
   SERVICES SECTION
   ===================================================== */
.services {
    padding: var(--section-padding) 0;
    background: linear-gradient(180deg, var(--dark-900) 0%, var(--dark-800) 100%);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
    margin-bottom: 64px;
}

.service-card {
    background: var(--dark-800);
    border: 1px solid var(--dark-600);
    border-radius: var(--radius-lg);
    padding: 40px;
    position: relative;
    transition: all var(--transition-base);
}

.service-card:hover {
    transform: translateY(-8px);
    border-color: rgba(42, 159, 214, 0.3);
    box-shadow: 0 24px 48px rgba(0, 0, 0, 0.4);
}

.service-card.featured {
    background: linear-gradient(135deg, rgba(76, 184, 72, 0.1) 0%, rgba(42, 159, 214, 0.1) 100%);
    border-color: rgba(76, 184, 72, 0.3);
}

.service-badge {
    position: absolute;
    top: 20px;
    right: 20px;
    padding: 6px 12px;
    background: var(--gradient-primary);
    border-radius: 50px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--white);
}

.service-number {
    font-family: var(--font-display);
    font-size: 64px;
    font-weight: 700;
    color: var(--dark-600);
    line-height: 1;
    margin-bottom: 16px;
    transition: color var(--transition-base);
}

.service-card:hover .service-number {
    color: var(--dark-700);
}

.service-icon {
    width: 64px;
    height: 64px;
    margin-bottom: 24px;
}

.service-icon svg {
    width: 100%;
    height: 100%;
    color: var(--blue-light);
}

.service-card h3 {
    font-size: 24px;
    margin-bottom: 16px;
}

.service-card > p {
    color: var(--gray-400);
    line-height: 1.7;
    margin-bottom: 24px;
}

.service-features {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.service-features li {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 14px;
    color: var(--gray-300);
}

.service-features li::before {
    content: '';
    width: 8px;
    height: 8px;
    background: var(--gradient-primary);
    border-radius: 50%;
    flex-shrink: 0;
}

.services-cta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: var(--dark-700);
    border: 1px solid var(--dark-600);
    border-radius: var(--radius-lg);
    padding: 40px 48px;
}

.cta-content h3 {
    font-size: 24px;
    margin-bottom: 8px;
}

.cta-content p {
    color: var(--gray-400);
}

/* =====================================================
   CONTACT SECTION
   ===================================================== */
.contact {
    padding: var(--section-padding) 0;
    background: var(--dark-900);
    position: relative;
}

.contact::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(42, 159, 214, 0.3), transparent);
}

.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: start;
}

.contact-info {
    position: relative;
}

.contact-info .section-tag {
    margin-bottom: 20px;
}

.contact-info .section-title {
    text-align: left;
    margin-bottom: 20px;
}

.contact-info > p {
    color: var(--gray-400);
    line-height: 1.7;
    margin-bottom: 40px;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 20px;
}

.contact-icon {
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(42, 159, 214, 0.1);
    border: 1px solid rgba(42, 159, 214, 0.2);
    border-radius: var(--radius-md);
    flex-shrink: 0;
}

.contact-icon svg {
    width: 24px;
    height: 24px;
    color: var(--blue-light);
}

.contact-label {
    display: block;
    font-size: 13px;
    color: var(--gray-500);
    margin-bottom: 4px;
}

.contact-item a {
    font-size: 18px;
    color: var(--white);
    font-weight: 500;
}

.contact-item a:hover {
    color: var(--blue-light);
}

.contact-decoration {
    position: absolute;
    bottom: -40px;
    left: -40px;
    pointer-events: none;
}

.deco-circle {
    width: 300px;
    height: 300px;
    border: 1px solid rgba(76, 184, 72, 0.1);
    border-radius: 50%;
    position: absolute;
    animation: decoFloat 10s ease-in-out infinite;
}

.deco-circle.delay {
    width: 200px;
    height: 200px;
    left: 50px;
    top: 50px;
    animation-delay: 2s;
}

@keyframes decoFloat {
    0%, 100% { transform: translate(0, 0); }
    50% { transform: translate(20px, -20px); }
}

.contact-form-wrapper {
    background: var(--dark-800);
    border: 1px solid var(--dark-600);
    border-radius: var(--radius-lg);
    padding: 48px;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group label {
    font-size: 14px;
    font-weight: 500;
    color: var(--gray-300);
}

.form-group input,
.form-group textarea {
    padding: 16px 20px;
    background: var(--dark-700);
    border: 1px solid var(--dark-600);
    border-radius: var(--radius-md);
    font-family: var(--font-body);
    font-size: 16px;
    color: var(--white);
    transition: all var(--transition-base);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--gray-500);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--blue-mid);
    box-shadow: 0 0 0 3px rgba(42, 159, 214, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

/* =====================================================
   FOOTER
   ===================================================== */
.footer {
    background: var(--dark-800);
    border-top: 1px solid var(--dark-600);
    padding: 64px 0 32px;
}

.footer-container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 24px;
}

.footer-main {
    display: flex;
    justify-content: space-between;
    align-items: start;
    margin-bottom: 48px;
}

.footer-logo {
    height: 48px;
    margin-bottom: 16px;
}

.footer-brand p {
    color: var(--gray-500);
    max-width: 300px;
    font-size: 14px;
    line-height: 1.6;
}

.footer-col h4 {
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 20px;
    color: var(--gray-300);
}

.footer-col a {
    display: block;
    font-size: 14px;
    color: var(--gray-500);
    margin-bottom: 12px;
    transition: color var(--transition-fast);
}

.footer-col a:hover {
    color: var(--green-light);
}

.footer-bottom {
    padding-top: 32px;
    border-top: 1px solid var(--dark-600);
    text-align: center;
}

.footer-bottom p {
    font-size: 14px;
    color: var(--gray-500);
}

/* =====================================================
   RESPONSIVE DESIGN
   ===================================================== */
@media (max-width: 1024px) {
    :root {
        --section-padding: 80px;
    }
    
    .about-grid {
        grid-template-columns: 1fr;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
    }
    
    .contact-wrapper {
        grid-template-columns: 1fr;
        gap: 48px;
    }
}

@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        max-width: 400px;
        height: 100vh;
        background: var(--dark-800);
        flex-direction: column;
        justify-content: center;
        gap: 32px;
        padding: 40px;
        transition: right var(--transition-base);
        box-shadow: -10px 0 30px rgba(0, 0, 0, 0.3);
    }
    
    .nav-menu.active {
        right: 0;
    }
    
    .nav-toggle {
        display: flex;
        z-index: 1001;
    }
    
    .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-stats {
        flex-direction: column;
        gap: 16px;
    }
    
    .stat-arrow {
        transform: rotate(90deg);
    }
    
    .hero-cta {
        flex-direction: column;
    }
    
    .services-cta {
        flex-direction: column;
        text-align: center;
        gap: 24px;
    }
    
    .footer-main {
        flex-direction: column;
        gap: 40px;
    }
    
    .contact-form-wrapper {
        padding: 32px 24px;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 36px;
        letter-spacing: -1px;
    }
    
    .hero-subtitle {
        font-size: 16px;
    }
    
    .section-title {
        font-size: 32px;
    }
    
    .about-card,
    .service-card {
        padding: 28px;
    }
    
    .scroll-indicator {
        display: none;
    }
}
