/* ==========================================
   NODEMARS - Clean White Theme
   ========================================== */

:root {
    /* Primary - Vibrant Purple to Pink */
    --primary: #7C3AED;
    --primary-light: #8B5CF6;
    --primary-dark: #6D28D9;
    
    /* Accent - Cyan Blue */
    --accent: #06B6D4;
    --accent-light: #22D3EE;
    
    /* Gradients */
    --gradient-primary: linear-gradient(135deg, #4F46E5, #7C3AED, #EC4899);
    --gradient-soft: linear-gradient(135deg, #EEF2FF, #FDF4FF);
    
    /* Light Theme */
    --bg-white: #FFFFFF;
    --bg-light: #F8FAFC;
    --bg-card: #FFFFFF;
    
    /* Text */
    --text-dark: #0F172A;
    --text-body: #475569;
    --text-muted: #94A3B8;
    
    /* Borders */
    --border: #E2E8F0;
    --border-hover: #CBD5E1;
    
    /* Shadows */
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.07), 0 2px 4px -2px rgba(0, 0, 0, 0.05);
    --shadow-lg: 0 10px 25px -3px rgba(0, 0, 0, 0.08), 0 4px 6px -4px rgba(0, 0, 0, 0.05);
    --shadow-primary: 0 10px 30px -5px rgba(124, 58, 237, 0.25);
    
    /* Typography */
    --font: 'Outfit', -apple-system, BlinkMacSystemFont, sans-serif;
    
    /* Spacing */
    --section-gap: 100px;
    --container: 1100px;
    
    /* Transitions */
    --ease: cubic-bezier(0.4, 0, 0.2, 1);
    --duration: 0.25s;
    
    /* Border Radius */
    --radius: 12px;
    --radius-lg: 20px;
}

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

html {
    scroll-behavior: smooth;
}

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

::selection {
    background: var(--primary);
    color: white;
}

/* Subtle Background Pattern */
.bg-grid {
    position: fixed;
    inset: 0;
    background-image: 
        radial-gradient(circle at 1px 1px, rgba(124, 58, 237, 0.03) 1px, transparent 0);
    background-size: 40px 40px;
    pointer-events: none;
    z-index: 0;
}

.bg-gradient {
    position: fixed;
    inset: 0;
    background: 
        radial-gradient(ellipse 80% 60% at 50% -10%, rgba(124, 58, 237, 0.08), transparent 50%),
        radial-gradient(ellipse 50% 40% at 90% 20%, rgba(6, 182, 212, 0.05), transparent 50%);
    pointer-events: none;
    z-index: 0;
}

/* Container */
.container {
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 24px;
    position: relative;
    z-index: 1;
}

section {
    position: relative;
    z-index: 1;
}

/* ==========================================
   NAVIGATION
   ========================================== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    padding: 16px 0;
    transition: all var(--duration) var(--ease);
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(12px);
}

.navbar.scrolled {
    background: rgba(255, 255, 255, 0.95);
    box-shadow: var(--shadow);
    padding: 12px 0;
}

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

.logo-img {
    height: 38px;
    transition: transform var(--duration) var(--ease);
}

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

.nav-menu {
    display: flex;
    list-style: none;
    gap: 36px;
}

.nav-link {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-body);
    text-decoration: none;
    transition: color var(--duration) var(--ease);
    position: relative;
}

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

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

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

.nav-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
}

.hamburger {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--text-dark);
    position: relative;
    transition: background var(--duration);
}

.hamburger::before,
.hamburger::after {
    content: '';
    position: absolute;
    width: 22px;
    height: 2px;
    background: var(--text-dark);
    transition: transform var(--duration);
}

.hamburger::before { top: -7px; }
.hamburger::after { bottom: -7px; }

.nav-toggle.active .hamburger { background: transparent; }
.nav-toggle.active .hamburger::before { transform: translateY(7px) rotate(45deg); }
.nav-toggle.active .hamburger::after { transform: translateY(-7px) rotate(-45deg); }

/* ==========================================
   HERO SECTION
   ========================================== */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 60px;
    padding: 120px 24px 80px;
    max-width: var(--container);
    margin: 0 auto;
}

.hero-content {
    flex: 1;
    max-width: 540px;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: var(--gradient-soft);
    border: 1px solid var(--border);
    border-radius: 100px;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--primary);
    margin-bottom: 24px;
    animation: fadeUp 0.6s var(--ease) forwards;
}

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

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

.hero-title {
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    font-weight: 700;
    line-height: 1.15;
    color: var(--text-dark);
    margin-bottom: 20px;
    animation: fadeUp 0.6s var(--ease) 0.1s forwards;
    opacity: 0;
}

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

.hero-subtitle {
    font-size: 1.1rem;
    color: var(--text-body);
    line-height: 1.7;
    margin-bottom: 32px;
    animation: fadeUp 0.6s var(--ease) 0.2s forwards;
    opacity: 0;
}

.hero-cta {
    display: flex;
    gap: 14px;
    animation: fadeUp 0.6s var(--ease) 0.3s forwards;
    opacity: 0;
}

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

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 26px;
    font-family: var(--font);
    font-size: 0.95rem;
    font-weight: 600;
    text-decoration: none;
    border-radius: var(--radius);
    cursor: pointer;
    transition: all var(--duration) var(--ease);
    border: none;
}

.btn svg {
    width: 18px;
    height: 18px;
    transition: transform var(--duration) var(--ease);
}

.btn:hover svg {
    transform: translateX(3px);
}

.btn-primary {
    background: var(--gradient-primary);
    color: white;
    box-shadow: var(--shadow-primary);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 35px -5px rgba(124, 58, 237, 0.35);
}

.btn-ghost {
    background: var(--bg-white);
    color: var(--text-dark);
    border: 1px solid var(--border);
    box-shadow: var(--shadow-sm);
}

.btn-ghost:hover {
    background: var(--bg-light);
    border-color: var(--border-hover);
}

.btn-full {
    width: 100%;
    justify-content: center;
}

/* Hero Visual */
.hero-visual {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

.ai-brain {
    position: relative;
    width: 320px;
    height: 290px;
    animation: float 5s ease-in-out infinite;
}

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

.brain-svg {
    width: 100%;
    height: 100%;
    filter: drop-shadow(0 15px 40px rgba(124, 58, 237, 0.25));
}

/* Brain hemispheres */
.brain-half {
    fill: url(#brainGradient);
    opacity: 0.15;
}

.brain-half.left {
    animation: breatheLeft 4s ease-in-out infinite;
}

.brain-half.right {
    animation: breatheRight 4s ease-in-out infinite 0.5s;
}

@keyframes breatheLeft {
    0%, 100% { opacity: 0.12; transform: translateX(0); }
    50% { opacity: 0.2; transform: translateX(-2px); }
}

@keyframes breatheRight {
    0%, 100% { opacity: 0.12; transform: translateX(0); }
    50% { opacity: 0.2; transform: translateX(2px); }
}

/* Brain fold details */
.brain-details path {
    fill: none;
    stroke: url(#brainGradient);
    stroke-width: 1.5;
    stroke-linecap: round;
    opacity: 0.3;
}

/* Traveling pulses */
.brain-pulses .pulse {
    fill: #06B6D4;
    opacity: 0.9;
}

.pulse.p1 { fill: #06B6D4; }
.pulse.p2 { fill: #7C3AED; }
.pulse.p3 { fill: #EC4899; }
.pulse.p4 { fill: #06B6D4; }

/* Activity sparks */
.sparks .spark {
    fill: #7C3AED;
    opacity: 0;
    animation: sparkle 2s ease-in-out infinite;
}

.spark.s1 { animation-delay: 0s; }
.spark.s2 { animation-delay: 0.3s; }
.spark.s3 { animation-delay: 0.6s; }
.spark.s4 { animation-delay: 0.2s; }
.spark.s5 { animation-delay: 0.5s; }
.spark.s6 { animation-delay: 0.8s; }
.spark.s7 { animation-delay: 0.4s; }
.spark.s8 { animation-delay: 0.7s; }
.spark.s9 { animation-delay: 1s; }

@keyframes sparkle {
    0%, 100% { 
        opacity: 0;
        transform: scale(0.5);
        fill: #7C3AED;
    }
    50% { 
        opacity: 1;
        transform: scale(1.5);
        fill: #06B6D4;
    }
}

/* ==========================================
   SECTION HEADERS
   ========================================== */
.section-header {
    text-align: center;
    margin-bottom: 50px;
}

.section-tag {
    display: inline-block;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 10px;
}

.section-title {
    font-size: clamp(1.8rem, 3vw, 2.3rem);
    font-weight: 700;
    color: var(--text-dark);
}

/* ==========================================
   SERVICES
   ========================================== */
.services {
    padding: var(--section-gap) 0;
    background: var(--bg-light);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.service-card {
    padding: 30px;
    background: var(--bg-white);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    transition: all var(--duration) var(--ease);
}

.service-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: transparent;
}

.service-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gradient-soft);
    border-radius: var(--radius);
    margin-bottom: 18px;
}

.service-icon svg {
    width: 24px;
    height: 24px;
    stroke: var(--primary);
}

.service-card h3 {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 10px;
}

.service-card p {
    color: var(--text-body);
    font-size: 0.95rem;
    line-height: 1.6;
}

/* ==========================================
   TRAINING
   ========================================== */
.training {
    padding: var(--section-gap) 0;
}

.training-layout {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 60px;
    align-items: center;
}

.training-info {
    max-width: 380px;
}

.training-desc {
    color: var(--text-body);
    font-size: 1rem;
    line-height: 1.7;
    margin-bottom: 28px;
}

.training-courses {
    display: grid;
    gap: 14px;
}

.course-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 18px 20px;
    background: var(--bg-white);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    transition: all var(--duration) var(--ease);
}

.course-item:hover {
    transform: translateX(6px);
    box-shadow: var(--shadow);
    border-color: var(--primary-light);
}

.course-icon {
    width: 42px;
    height: 42px;
    border-radius: 10px;
    flex-shrink: 0;
}

.course-icon.ai { background: linear-gradient(135deg, #7C3AED, #EC4899); }
.course-icon.cloud { background: linear-gradient(135deg, #06B6D4, #3B82F6); }
.course-icon.dev { background: linear-gradient(135deg, #10B981, #059669); }
.course-icon.devops { background: linear-gradient(135deg, #F59E0B, #EF4444); }

.course-info h4 {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 2px;
}

.course-info span {
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* ==========================================
   ABOUT
   ========================================== */
.about {
    padding: var(--section-gap) 0;
    background: var(--bg-light);
}

.about-content {
    max-width: 650px;
    margin: 0 auto;
    text-align: center;
}

.about-info p {
    color: var(--text-body);
    font-size: 1.05rem;
    line-height: 1.8;
    margin-bottom: 36px;
}

.values-grid {
    display: flex;
    justify-content: center;
    gap: 32px;
    flex-wrap: wrap;
}

.value-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 20px;
    background: var(--bg-white);
    border: 1px solid var(--border);
    border-radius: 100px;
    box-shadow: var(--shadow-sm);
}

.value-item svg {
    width: 18px;
    height: 18px;
    stroke: var(--primary);
}

.value-item span {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-dark);
}

/* ==========================================
   CONTACT
   ========================================== */
.contact {
    padding: var(--section-gap) 0;
}

.contact-layout {
    display: grid;
    grid-template-columns: 1fr 1.3fr;
    gap: 60px;
    align-items: start;
}

.contact-info p {
    color: var(--text-body);
    margin-bottom: 28px;
}

.contact-links {
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin-bottom: 28px;
}

.contact-link {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--text-body);
    text-decoration: none;
    font-size: 0.95rem;
    transition: color var(--duration);
}

.contact-link:hover {
    color: var(--primary);
}

.contact-link svg {
    width: 20px;
    height: 20px;
    stroke: var(--primary);
}

.social-links {
    display: flex;
    gap: 10px;
}

.social-link {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-light);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    color: var(--text-body);
    transition: all var(--duration) var(--ease);
}

.social-link:hover {
    background: var(--primary);
    border-color: var(--primary);
    color: white;
    transform: translateY(-2px);
}

.social-link svg {
    width: 18px;
    height: 18px;
}

/* Contact Form */
.contact-form {
    display: grid;
    gap: 18px;
    padding: 32px;
    background: var(--bg-white);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 14px 16px;
    background: var(--bg-light);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    color: var(--text-dark);
    font-family: var(--font);
    font-size: 0.95rem;
    transition: all var(--duration) var(--ease);
    outline: none;
}

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

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: var(--primary);
    background: var(--bg-white);
    box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.1);
}

.form-group select {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%2394A3B8' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    background-size: 16px;
}

.form-group select option {
    background: var(--bg-white);
}

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

/* ==========================================
   FOOTER
   ========================================== */
.footer {
    padding: 50px 0 24px;
    background: var(--bg-light);
    border-top: 1px solid var(--border);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 32px;
}

.footer-logo {
    height: 34px;
    margin-bottom: 10px;
}

.footer-brand p {
    color: var(--text-muted);
    font-size: 0.85rem;
}

.footer-links {
    display: flex;
    gap: 28px;
}

.footer-links a {
    color: var(--text-body);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color var(--duration);
}

.footer-links a:hover {
    color: var(--primary);
}

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

.footer-bottom p {
    color: var(--text-muted);
    font-size: 0.8rem;
}

/* ==========================================
   RESPONSIVE
   ========================================== */
@media (max-width: 1024px) {
    :root {
        --section-gap: 70px;
    }
    
    .hero {
        flex-direction: column;
        text-align: center;
        padding-top: 130px;
    }
    
    .hero-content {
        max-width: 100%;
    }
    
    .hero-cta {
        justify-content: center;
    }
    
    .hero-visual {
        display: none;
    }
    
    .training-layout {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .training-info {
        max-width: 100%;
        text-align: center;
    }
    
    .training-info .btn {
        display: inline-flex;
    }
    
    .contact-layout {
        grid-template-columns: 1fr;
        gap: 40px;
    }
}

@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 260px;
        height: 100vh;
        background: var(--bg-white);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 28px;
        transition: right var(--duration) var(--ease);
        box-shadow: -10px 0 30px rgba(0, 0, 0, 0.1);
    }
    
    .nav-menu.active {
        right: 0;
    }
    
    .nav-toggle {
        display: block;
        z-index: 101;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .values-grid {
        flex-direction: column;
        align-items: center;
        gap: 12px;
    }
    
    .footer-content {
        flex-direction: column;
        gap: 24px;
        text-align: center;
    }
    
    .footer-links {
        flex-wrap: wrap;
        justify-content: center;
        gap: 16px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 16px;
    }
    
    .hero {
        padding: 110px 16px 50px;
    }
    
    .hero-cta {
        flex-direction: column;
    }
    
    .btn {
        width: 100%;
        justify-content: center;
    }
    
    .service-card, .contact-form {
        padding: 24px;
    }
}

/* Animations */
.hidden {
    opacity: 0;
    transform: translateY(16px);
}

.visible {
    opacity: 1;
    transform: translateY(0);
    transition: all 0.4s var(--ease);
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
    }
}

.btn:focus-visible,
.nav-link:focus-visible,
.social-link:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 3px;
}

