/* ======================== DARK THEME VARIABLES (GRAYSCALE) ======================== */
@import url('https://fonts.googleapis.com/css2?family=Sora:wght@400;500;600;700;800&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Space+Mono:wght@400;700&display=swap');

:root {
    --primary: #a8a8a8;
    --accent: #d1d1d1;
    --secondary: #8b8b8b;
    
    --bg-primary: #0d0d0d;
    --bg-secondary: #1a1a1a;
    --bg-tertiary: #252525;
    
    --text-primary: #f5f5f5;
    --text-secondary: #d4d4d4;
    --text-light: #a8a8a8;
}

/* ======================== GLOBAL STYLES ======================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Sora', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
}

/* ======================== NAVBAR ======================== */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(13, 13, 13, 0.8);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(168, 168, 168, 0.08);
    padding: clamp(0.75rem, 1.5vw, 1rem) 0;
    transition: all 0.3s ease;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 clamp(1rem, 4vw, 2rem);
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.logo {
    display: flex;
    align-items: center;
    gap: clamp(0.5rem, 2vw, 0.8rem);
    font-weight: 700;
    font-size: clamp(0.9rem, 3vw, 1.3rem);
    color: var(--text-primary);
    text-decoration: none;
    flex-shrink: 0;
    cursor: pointer;
}

.logo-svg {
    width: clamp(28px, 5vw, 40px);
    height: clamp(28px, 5vw, 40px);
    animation: logoFloat 3s ease-in-out infinite;
}

@keyframes logoFloat {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-4px); }
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: clamp(1rem, 4vw, 2rem);
}

.nav-link {
    color: var(--text-secondary);
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
    font-weight: 500;
    font-size: clamp(0.9rem, 2vw, 1rem);
}

.nav-link:hover {
    color: var(--accent);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent);
    transition: width 0.3s ease;
}

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

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: clamp(4px, 1vw, 6px);
    cursor: pointer;
    padding: clamp(0.25rem, 1vw, 0.5rem);
    margin-right: clamp(-0.5rem, -1vw, -1rem);
}

.nav-toggle span {
    width: clamp(22px, 5vw, 28px);
    height: 2px;
    background: var(--text-primary);
    transition: all 0.3s ease;
    border-radius: 1px;
}

.nav-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(8px, 8px);
}

.nav-toggle.active span:nth-child(2) {
    opacity: 0;
}

.nav-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
}

.nav-menu {
    display: flex !important;
}

.nav-menu.active {
    position: fixed !important;
    top: 60px !important;
    left: 0 !important;
    width: 100% !important;
    flex-direction: column !important;
    background: var(--bg-primary) !important;
    backdrop-filter: blur(10px);
    padding: clamp(0.75rem, 2vw, 1rem) 0 !important;
    border-bottom: 1px solid rgba(168, 168, 168, 0.1);
    z-index: 999;
    max-height: calc(100vh - 60px);
    overflow-y: auto;
}

.nav-menu.active .nav-link {
    padding: clamp(0.6rem, 2vw, 0.75rem) clamp(1rem, 4vw, 2rem) !important;
    display: block !important;
    width: 100%;
    text-align: left;
}

@media (min-width: 769px) {
    .nav-menu {
        display: flex !important;
        position: static !important;
        width: auto !important;
        background: none !important;
        border: none !important;
        padding: 0 !important;
        max-height: none !important;
    }
    
    .nav-menu .nav-link {
        padding: 0 !important;
    }
    
    .nav-toggle {
        display: none !important;
    }
}

@media (max-width: 768px) {
    .nav-menu {
        display: none !important;
        position: fixed;
        top: 60px;
        left: 0;
        width: 100%;
        flex-direction: column;
        background: var(--bg-secondary);
        border-top: 1px solid rgba(168, 168, 168, 0.1);
    }
    
    .nav-menu.active {
        display: flex !important;
    }
    
    .nav-toggle {
        display: flex !important;
    }
}

/* ======================== HERO SECTION ======================== */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    margin-top: 60px;
    padding: 2rem;
}

.hero-background {
    position: absolute;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.12;
    animation: float 15s infinite ease-in-out;
}

.blob-1 {
    width: 400px;
    height: 400px;
    background: var(--primary);
    top: -100px;
    left: -100px;
    opacity: 0.08;
}

.blob-2 {
    width: 300px;
    height: 300px;
    background: var(--accent);
    bottom: -50px;
    right: -50px;
    animation-delay: 2s;
    opacity: 0.08;
}

.blob-3, .blob-4, .blob-5, .blob-6, .blob-7 {
    position: absolute;
    filter: blur(100px);
    opacity: 0.08;
}

.blob-3 {
    width: 350px;
    height: 350px;
    background: var(--accent);
    top: 10%;
    right: -50px;
}

.blob-4 {
    width: 300px;
    height: 300px;
    background: var(--primary);
    bottom: 10%;
    left: -100px;
}

.blob-5 {
    width: 350px;
    height: 350px;
    background: var(--secondary);
    top: 20%;
    left: 5%;
}

.blob-6 {
    width: 280px;
    height: 280px;
    background: var(--accent);
    bottom: 5%;
    right: 10%;
    animation-delay: 3s;
}

.blob-7 {
    width: 400px;
    height: 400px;
    background: var(--primary);
    top: -100px;
    left: 50%;
    animation-delay: 1s;
}

@keyframes float {
    0%, 100% { transform: translate(0, 0); }
    25% { transform: translate(30px, -50px); }
    50% { transform: translate(-20px, 20px); }
    75% { transform: translate(50px, 50px); }
}

.grid-pattern {
    position: absolute;
    width: 100%;
    height: 100%;
    z-index: 1;
    opacity: 0.5;
}

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

.hero-title {
    font-size: clamp(2.5rem, 8vw, 4.5rem);
    font-weight: 800;
    margin-bottom: 1rem;
    line-height: 1.2;
    color: var(--text-primary);
    animation: slideInUp 1s ease 0.3s both;
    letter-spacing: -0.02em;
}

.hero-subtitle {
    font-size: clamp(1rem, 3vw, 1.5rem);
    color: var(--text-secondary);
    margin-bottom: 2rem;
    animation: slideInUp 1s ease 0.5s both;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    animation: slideInUp 1s ease 0.7s both;
}

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

.btn-primary {
    background: var(--accent);
    color: var(--bg-primary);
    border: 2px solid var(--accent);
    box-shadow: 0 10px 30px rgba(209, 209, 209, 0.2);
    font-weight: 700;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 40px rgba(209, 209, 209, 0.3);
    background: var(--text-primary);
}

.btn-secondary {
    background: transparent;
    color: var(--accent);
    border: 2px solid var(--accent);
}

.btn-secondary:hover {
    background: rgba(209, 209, 209, 0.1);
    transform: translateY(-2px);
}

.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-secondary);
    animation: bounce 2s infinite;
    font-size: 0.9rem;
}

.scroll-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--accent);
    animation: moveDot 1.5s infinite;
}

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

@keyframes moveDot {
    0%, 100% { transform: translateY(0); opacity: 1; }
    50% { opacity: 0.5; }
}

@keyframes bounce {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50% { transform: translateX(-50%) translateY(-10px); }
}

/* ======================== SERVICE SECTIONS ======================== */
.service-section {
    position: relative;
    padding: 80px 2rem;
    min-height: 100vh;
    display: flex;
    align-items: center;
}

.section-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.section-container {
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    z-index: 10;
    width: 100%;
}

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

.section-header h2 {
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 800;
    margin-bottom: 1rem;
    color: var(--text-primary);
    letter-spacing: -0.02em;
}

.section-header p {
    font-size: 1.125rem;
    color: var(--text-secondary);
}

/* Service Cards */
.service-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.card {
    background: rgba(37, 37, 37, 0.6);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(168, 168, 168, 0.15);
    padding: clamp(1.5rem, 4vw, 2rem);
    border-radius: 12px;
    transition: all 0.3s ease;
    transform: translateY(0);
}

.card[data-scroll] {
    opacity: 0;
    transform: translateY(30px);
}

.card[data-scroll].visible {
    opacity: 1;
    transform: translateY(0);
}

.card:hover {
    border-color: var(--accent);
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(209, 209, 209, 0.15);
}

.card-icon {
    width: 50px;
    height: 50px;
    background: var(--primary);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
    color: var(--bg-primary);
}

.card-icon svg {
    width: 24px;
    height: 24px;
}

.card h3 {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.card p {
    color: var(--text-light);
    line-height: 1.6;
}

/* Platform Grid */
.platform-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.platform-card {
    background: rgba(37, 37, 37, 0.6);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(168, 168, 168, 0.15);
    padding: clamp(1.5rem, 4vw, 2.5rem) clamp(1rem, 3vw, 1.5rem);
    border-radius: 12px;
    text-align: center;
    transition: all 0.3s ease;
    transform: translateY(0);
}

.platform-card[data-scroll] {
    opacity: 0;
    transform: translateY(30px);
}

.platform-card[data-scroll].visible {
    opacity: 1;
    transform: translateY(0);
}

.platform-card:hover {
    border-color: var(--accent);
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(209, 209, 209, 0.15);
}

.platform-icon {
    width: 70px;
    height: 70px;
    margin: 0 auto 1.5rem;
    color: var(--accent);
}

.platform-icon svg {
    width: 100%;
    height: 100%;
}

.platform-card h3 {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.platform-card p {
    color: var(--text-light);
}

/* Software Cards */
.software-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.software-card {
    background: rgba(37, 37, 37, 0.6);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(168, 168, 168, 0.15);
    padding: clamp(1.5rem, 4vw, 2rem);
    border-radius: 12px;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.software-card[data-scroll] {
    opacity: 0;
    transform: translateY(30px);
}

.software-card[data-scroll].visible {
    opacity: 1;
    transform: translateY(0);
}

.software-card:hover {
    border-color: var(--accent);
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(209, 209, 209, 0.15);
}

.software-badge {
    display: inline-block;
    background: rgba(168, 168, 168, 0.15);
    color: var(--accent);
    padding: clamp(0.35rem, 1vw, 0.4rem) clamp(0.75rem, 2vw, 1rem);
    border-radius: 20px;
    font-size: clamp(0.75rem, 1vw, 0.8rem);
    font-weight: 600;
    margin-bottom: 1rem;
}

.software-card h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.software-card > p {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.features {
    list-style: none;
    margin-bottom: 1.5rem;
}

.features li {
    color: var(--text-light);
    padding: 0.4rem 0;
    position: relative;
    padding-left: 1.5rem;
}

.features li::before {
    content: '→';
    position: absolute;
    left: 0;
    color: var(--accent);
    font-weight: bold;
}

/* CTA Button */
.cta {
    text-align: center;
}

.cta[data-scroll] {
    opacity: 0;
    transform: translateY(30px);
}

.cta[data-scroll].visible {
    opacity: 1;
    transform: translateY(0);
}

/* ======================== AUTOMATION SECTION ======================== */
.automation-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

.automation-text {
    opacity: 1;
}

.automation-text[data-scroll] {
    opacity: 0;
    transform: translateY(30px);
}

.automation-text[data-scroll].visible {
    opacity: 1;
    transform: translateY(0);
}

.automation-text h3 {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.automation-text p {
    color: var(--text-secondary);
    margin-bottom: 2rem;
    line-height: 1.8;
}

.benefits {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.benefit {
    display: flex;
    gap: 1rem;
    align-items: center;
    padding: 0.5rem 0;
    color: var(--text-secondary);
}

.benefit-check {
    color: var(--secondary);
    font-weight: bold;
    font-size: 1.25rem;
    flex-shrink: 0;
}

.automation-form {
    opacity: 1;
}

.automation-form[data-scroll] {
    opacity: 0;
    transform: translateY(30px);
}

.automation-form[data-scroll].visible {
    opacity: 1;
    transform: translateY(0);
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-item {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-item label {
    color: var(--text-primary);
    font-weight: 600;
    font-size: 0.95rem;
}

.form-item input,
.form-item textarea,
.form-item select {
    background: rgba(37, 37, 37, 0.8);
    border: 1px solid rgba(168, 168, 168, 0.2);
    color: var(--text-primary);
    padding: clamp(0.6rem, 1vw, 0.75rem) clamp(0.75rem, 2vw, 1rem);
    border-radius: 8px;
    font-size: clamp(0.9rem, 2vw, 1rem);
    font-family: inherit;
    transition: all 0.3s ease;
}

.form-item input::placeholder,
.form-item textarea::placeholder {
    color: var(--text-light);
}

.form-item input:focus,
.form-item textarea:focus,
.form-item select:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(209, 209, 209, 0.1);
    background: rgba(37, 37, 37, 0.9);
}

.form-item textarea {
    resize: vertical;
    min-height: 100px;
}

/* ======================== FOOTER ======================== */
.footer {
    background: var(--bg-secondary);
    border-top: 1px solid rgba(168, 168, 168, 0.1);
    padding: clamp(2rem, 4vw, 3rem) clamp(1rem, 4vw, 2rem) clamp(0.5rem, 2vw, 1rem);
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h4 {
    color: var(--text-primary);
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.footer-section p {
    color: var(--text-light);
    line-height: 1.6;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-section a {
    color: var(--text-light);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section a:hover {
    color: var(--accent);
}

.social-links {
    display: flex;
    gap: 1rem;
}

.footer-bottom {
    text-align: center;
    padding-top: clamp(1.5rem, 3vw, 2rem);
    border-top: 1px solid rgba(168, 168, 168, 0.1);
    color: var(--text-light);
    font-size: clamp(0.8rem, 1.5vw, 0.9rem);
}

/* ======================== RESPONSIVE ======================== */
@media (max-width: 768px) {
    .nav-menu {
        gap: 0;
    }

    .nav-toggle {
        display: flex;
    }

    .service-section {
        padding: 60px 1.5rem;
    }

    .automation-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

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

    .hero-buttons {
        flex-direction: column;
    }

    .btn {
        width: 100%;
        text-align: center;
    }

    .section-header h2 {
        font-size: 2rem;
    }

    .service-cards,
    .platform-grid,
    .software-grid {
        grid-template-columns: 1fr;
    }

    .footer-content {
        grid-template-columns: 1fr;
    }

    .blob-1, .blob-2, .blob-3, .blob-4, .blob-5, .blob-6, .blob-7 {
        filter: blur(60px);
        opacity: 0.05;
    }
}

@media (max-width: 480px) {
    .hero {
        padding: 1rem;
        margin-top: 55px;
    }

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

    .hero-subtitle {
        font-size: 0.95rem;
    }

    .service-section {
        padding: 40px 1rem;
    }

    .section-header h2 {
        font-size: 1.5rem;
    }

    .section-header p {
        font-size: clamp(0.9rem, 2vw, 1rem);
    }

    .btn {
        padding: clamp(0.5rem, 1vw, 0.6rem) clamp(1rem, 3vw, 1.5rem);
        font-size: clamp(0.85rem, 1.5vw, 0.9rem);
    }

    .navbar {
        padding: clamp(0.6rem, 1.5vw, 0.75rem) 0;
    }

    .nav-container {
        padding: 0 clamp(0.75rem, 2vw, 1rem);
    }

    .logo {
        font-size: clamp(0.85rem, 3vw, 1rem);
        gap: clamp(0.4rem, 1vw, 0.5rem);
    }

    .logo-svg {
        width: clamp(26px, 4vw, 28px);
        height: clamp(26px, 4vw, 28px);
    }

    .nav-menu {
        gap: 0.5rem;
    }

    .nav-menu.active .nav-link {
        padding: clamp(0.5rem, 1vw, 0.6rem) clamp(0.75rem, 2vw, 1rem);
        font-size: clamp(0.85rem, 1.5vw, 0.9rem);
    }

    .nav-link {
        font-size: clamp(0.85rem, 1.5vw, 0.95rem);
    }

    .nav-toggle span {
        width: clamp(20px, 3vw, 22px);
    }

    .card, .platform-card, .software-card {
        padding: clamp(1rem, 3vw, 1.5rem);
    }

    .form-item {
        gap: clamp(0.35rem, 1vw, 0.5rem);
    }

    .blob {
    display: none;
    }
    .navbar {
    position: absolute;
    }
}
