/* Nodge CS LLC - Custom Stylesheet */

/* --- Custom Properties & Theme Variables --- */
:root {
    /* Color Palette (HSL-based for harmony) */
    --bg-base: 224, 30%, 6%;         /* Very deep dark blue/slate */
    --bg-surface: 224, 25%, 11%;     /* Dark card/surface background */
    --bg-surface-elevated: 224, 22%, 16%; /* Elevated surface */
    
    --text-primary: 210, 38%, 95%;   /* Crisp off-white */
    --text-secondary: 215, 16%, 70%; /* Muted gray/blue */
    --text-muted: 215, 12%, 50%;     /* Darker gray */
    
    --primary: 188, 100%, 45%;       /* Cyber Cyan */
    --primary-hover: 188, 100%, 38%; 
    --primary-rgb: 0, 229, 255;
    
    --secondary: 271, 81%, 56%;      /* Royal Violet */
    --secondary-hover: 271, 81%, 48%;
    --secondary-rgb: 138, 43, 226;
    
    --border-color: 224, 15%, 18%;   /* Soft borders */
    --border-glow: 188, 100%, 45%, 0.15;
    
    --success: 145, 63%, 42%;        /* Success Green */
    --error: 354, 70%, 54%;          /* Error Red */
    
    /* Layout Tokens */
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;
    --header-height: 80px;
    --border-radius-sm: 8px;
    --border-radius-md: 16px;
    --border-radius-lg: 24px;
    --transition-smooth: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    
    --shadow-soft: 0 4px 30px rgba(0, 0, 0, 0.4);
    --shadow-glow: 0 0 25px rgba(0, 229, 255, 0.15);
}

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

html {
    scroll-behavior: smooth;
    scroll-padding-top: var(--header-height);
}

body {
    background-color: hsl(var(--bg-base));
    color: hsl(var(--text-primary));
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

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

img {
    max-width: 100%;
    height: auto;
    display: block;
}

ul {
    list-style: none;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.25;
    color: #fff;
}

/* --- Utility Classes --- */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

.badge {
    display: inline-block;
    padding: 6px 14px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    border-radius: 50px;
    background: linear-gradient(90deg, rgba(var(--primary-rgb), 0.1), rgba(var(--secondary-rgb), 0.1));
    border: 1px solid rgba(var(--primary-rgb), 0.3);
    color: hsl(var(--primary));
    margin-bottom: 24px;
}

.section-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 60px auto;
}

.section-tag {
    display: block;
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: hsl(var(--primary));
    margin-bottom: 12px;
}

.section-header h2 {
    font-size: clamp(28px, 4vw, 42px);
    margin-bottom: 16px;
}

.section-desc {
    color: hsl(var(--text-secondary));
    font-size: 18px;
}

/* --- Buttons --- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 28px;
    font-family: var(--font-heading);
    font-size: 15px;
    font-weight: 600;
    border-radius: var(--border-radius-sm);
    cursor: pointer;
    transition: var(--transition-smooth);
    border: none;
    gap: 8px;
}

.btn-primary {
    background: linear-gradient(135deg, hsl(var(--primary)), hsl(var(--secondary)));
    color: #0b0f1d;
    box-shadow: 0 4px 15px rgba(var(--primary-rgb), 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(var(--primary-rgb), 0.45);
}

.btn-secondary {
    background-color: hsl(var(--bg-surface-elevated));
    color: hsl(var(--text-primary));
    border: 1px solid hsl(var(--border-color));
}

.btn-secondary:hover {
    background-color: hsl(var(--border-color));
    transform: translateY(-2px);
}

.btn-outline {
    background-color: transparent;
    color: hsl(var(--primary));
    border: 1.5px solid hsl(var(--primary));
}

.btn-outline:hover {
    background-color: rgba(var(--primary-rgb), 0.1);
    transform: translateY(-2px);
}

.btn-block {
    display: flex;
    width: 100%;
}

/* --- Header / Navigation --- */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--header-height);
    z-index: 1000;
    transition: var(--transition-smooth);
    display: flex;
    align-items: center;
    border-bottom: 1px solid transparent;
}

.site-header.scrolled {
    background-color: rgba(10, 15, 29, 0.75);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border-bottom: 1px solid hsl(var(--border-color));
    height: 70px;
}

.header-container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    font-family: var(--font-heading);
    font-size: 24px;
    font-weight: 800;
    color: #fff;
    letter-spacing: 0.5px;
    display: flex;
    align-items: center;
}

.logo-accent {
    color: #0b0f1d;
    background: linear-gradient(135deg, hsl(var(--primary)), hsl(var(--secondary)));
    width: 32px;
    height: 32px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    margin-right: 8px;
    font-size: 20px;
    font-weight: 900;
}

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

.nav-menu ul {
    display: flex;
    gap: 32px;
}

.nav-link {
    font-size: 15px;
    font-weight: 500;
    color: hsl(var(--text-secondary));
    position: relative;
    padding: 8px 0;
}

.nav-link:hover,
.nav-link.active {
    color: #fff;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, hsl(var(--primary)), hsl(var(--secondary)));
    transition: var(--transition-smooth);
    border-radius: 2px;
}

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

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

.hamburger {
    display: block;
    width: 24px;
    height: 2px;
    background-color: #fff;
    position: relative;
    transition: var(--transition-smooth);
}

.hamburger::before,
.hamburger::after {
    content: '';
    position: absolute;
    width: 24px;
    height: 2px;
    background-color: #fff;
    left: 0;
    transition: var(--transition-smooth);
}

.hamburger::before { top: -8px; }
.hamburger::after { top: 8px; }

/* Hamburger Active Animation */
.nav-toggle.active .hamburger {
    background-color: transparent;
}
.nav-toggle.active .hamburger::before {
    transform: rotate(45deg);
    top: 0;
}
.nav-toggle.active .hamburger::after {
    transform: rotate(-45deg);
    top: 0;
}

/* --- Hero Section --- */
.hero-section {
    position: relative;
    padding: calc(var(--header-height) + 80px) 0 100px 0;
    display: flex;
    align-items: center;
    min-height: calc(100vh - 80px);
}

/* Cyber Glow Orbs background effect */
.glow-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(140px);
    z-index: -1;
    opacity: 0.15;
}

.orb-1 {
    top: 10%;
    left: -10%;
    width: 500px;
    height: 500px;
    background-color: hsl(var(--primary));
}

.orb-2 {
    bottom: 10%;
    right: -10%;
    width: 500px;
    height: 500px;
    background-color: hsl(var(--secondary));
}

.hero-container {
    display: flex;
    justify-content: center;
    text-align: center;
}

.hero-content {
    max-width: 900px;
}

.hero-content h1 {
    font-size: clamp(38px, 6vw, 64px);
    font-weight: 800;
    letter-spacing: -1.5px;
    margin-bottom: 24px;
    background: linear-gradient(135deg, #fff 40%, hsl(var(--text-secondary)) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-subtitle {
    font-size: clamp(18px, 2.5vw, 22px);
    color: hsl(var(--text-secondary));
    margin-bottom: 40px;
    line-height: 1.5;
}

.hero-actions {
    display: flex;
    justify-content: center;
    gap: 16px;
}

/* --- Metrics Section --- */
.metrics-section {
    padding: 40px 0;
    position: relative;
    z-index: 10;
}

.metrics-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 24px;
}

.metric-card {
    background-color: hsl(var(--bg-surface));
    border: 1px solid hsl(var(--border-color));
    border-radius: var(--border-radius-md);
    padding: 32px 24px;
    text-align: center;
    box-shadow: var(--shadow-soft);
    transition: var(--transition-smooth);
}

.metric-card:hover {
    transform: translateY(-4px);
    border-color: rgba(var(--primary-rgb), 0.3);
    box-shadow: var(--shadow-glow);
}

.metric-number {
    font-family: var(--font-heading);
    font-size: 48px;
    font-weight: 800;
    background: linear-gradient(135deg, hsl(var(--primary)), hsl(var(--secondary)));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 8px;
}

.metric-label {
    font-size: 14px;
    font-weight: 600;
    color: hsl(var(--text-secondary));
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* --- Services Section --- */
.services-section {
    padding: 100px 0;
    background-color: rgba(255, 255, 255, 0.01);
}

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

.service-card {
    background-color: hsl(var(--bg-surface));
    border: 1px solid hsl(var(--border-color));
    border-radius: var(--border-radius-md);
    padding: 40px;
    box-shadow: var(--shadow-soft);
    transition: var(--transition-smooth);
    position: relative;
    overflow: hidden;
}

.service-card:hover {
    transform: translateY(-6px);
    border-color: rgba(var(--primary-rgb), 0.35);
    box-shadow: var(--shadow-glow);
}

/* Subtle corner gradient hover indicator */
.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(to bottom, hsl(var(--primary)), hsl(var(--secondary)));
    opacity: 0;
    transition: var(--transition-smooth);
}

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

.service-icon-wrapper {
    background: linear-gradient(135deg, rgba(var(--primary-rgb), 0.1), rgba(var(--secondary-rgb), 0.1));
    border: 1.5px solid rgba(var(--primary-rgb), 0.3);
    width: 60px;
    height: 60px;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
    transition: var(--transition-smooth);
}

.service-card:hover .service-icon-wrapper {
    background: linear-gradient(135deg, hsl(var(--primary)), hsl(var(--secondary)));
    border-color: transparent;
}

.service-icon-wrapper .material-symbols-outlined {
    font-size: 28px;
    color: hsl(var(--primary));
    transition: var(--transition-smooth);
}

.service-card:hover .service-icon-wrapper .material-symbols-outlined {
    color: #0b0f1d;
}

.service-card h3 {
    font-size: 22px;
    margin-bottom: 14px;
}

.service-card p {
    color: hsl(var(--text-secondary));
    font-size: 15px;
    line-height: 1.6;
}

/* --- Technology Ecosystem Section --- */
.ecosystem-section {
    padding: 100px 0;
}

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

.ecosystem-card {
    background-color: hsl(var(--bg-surface));
    border: 1px solid hsl(var(--border-color));
    border-radius: var(--border-radius-md);
    padding: 32px;
    box-shadow: var(--shadow-soft);
    transition: var(--transition-smooth);
}

.ecosystem-card:hover {
    transform: translateY(-4px);
    border-color: rgba(var(--primary-rgb), 0.25);
    box-shadow: var(--shadow-glow);
}

.ecosystem-card h3 {
    font-size: 18px;
    margin-bottom: 20px;
    border-bottom: 2px solid hsl(var(--border-color));
    padding-bottom: 12px;
    color: #fff;
    background: linear-gradient(135deg, hsl(var(--primary)), hsl(var(--secondary)));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.ecosystem-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.eco-tag {
    font-size: 13px;
    font-weight: 500;
    padding: 6px 12px;
    border-radius: 4px;
    background-color: hsl(var(--bg-surface-elevated));
    border: 1px solid hsl(var(--border-color));
    color: hsl(var(--text-secondary));
    transition: var(--transition-smooth);
}

.ecosystem-card:hover .eco-tag {
    border-color: rgba(var(--primary-rgb), 0.15);
}

.eco-tag:hover {
    color: #fff;
    border-color: hsl(var(--primary)) !important;
    background-color: rgba(var(--primary-rgb), 0.05);
}

/* --- Impact Section --- */
.impact-section {
    padding: 100px 0;
    background-color: rgba(255, 255, 255, 0.01);
}

.impact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 28px;
}

.impact-card {
    background-color: hsl(var(--bg-surface-elevated));
    border: 1px solid hsl(var(--border-color));
    border-radius: var(--border-radius-md);
    padding: 32px;
    transition: var(--transition-smooth);
    box-shadow: var(--shadow-soft);
    display: flex;
    flex-direction: column;
}

.impact-card:hover {
    transform: translateY(-4px);
    border-color: rgba(var(--primary-rgb), 0.25);
    box-shadow: var(--shadow-glow);
}

.impact-card-icon {
    font-size: 36px;
    background: linear-gradient(135deg, hsl(var(--primary)), hsl(var(--secondary)));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 20px;
}

.impact-card h3 {
    font-size: 18px;
    margin-bottom: 12px;
    line-height: 1.3;
}

.impact-card p {
    color: hsl(var(--text-secondary));
    font-size: 14px;
    line-height: 1.6;
}

/* --- About Section --- */
.about-section {
    padding: 100px 0;
}

.about-container {
    display: grid;
    grid-template-columns: 1fr;
    gap: 48px;
    max-width: 900px;
}

.about-content {
    background-color: hsl(var(--bg-surface));
    border: 1px solid hsl(var(--border-color));
    border-radius: var(--border-radius-lg);
    padding: 48px;
    box-shadow: var(--shadow-soft);
}

.about-content h2 {
    font-size: clamp(28px, 4vw, 38px);
    margin-bottom: 24px;
}

.lead-text {
    font-size: 18px;
    color: #fff;
    margin-bottom: 20px;
    font-weight: 500;
}

.about-content p {
    color: hsl(var(--text-secondary));
    margin-bottom: 32px;
}

.credentials {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 24px;
    border-top: 1px solid hsl(var(--border-color));
    padding-top: 32px;
}

.credential-item {
    display: flex;
    gap: 16px;
    align-items: flex-start;
}

.credential-item .material-symbols-outlined {
    font-size: 28px;
    color: hsl(var(--primary));
    background: rgba(var(--primary-rgb), 0.1);
    padding: 8px;
    border-radius: 8px;
}

.credential-item div strong {
    display: block;
    color: #fff;
    font-size: 15px;
}

.credential-item div p {
    margin: 0;
    font-size: 13px;
    color: hsl(var(--text-muted));
}

/* --- Contact Section --- */
.contact-section {
    padding: 100px 0;
    background: linear-gradient(180deg, hsl(var(--bg-base)), rgba(10, 15, 29, 0.95));
}

.contact-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.contact-info h2 {
    font-size: clamp(30px, 4vw, 42px);
    margin-bottom: 20px;
}

.contact-info p {
    color: hsl(var(--text-secondary));
    font-size: 17px;
    margin-bottom: 40px;
}

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

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

.contact-detail-item .material-symbols-outlined {
    font-size: 26px;
    color: hsl(var(--primary));
    background: hsl(var(--bg-surface-elevated));
    border: 1px solid hsl(var(--border-color));
    width: 52px;
    height: 52px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-soft);
    transition: var(--transition-smooth);
}

.contact-detail-item:hover .material-symbols-outlined {
    background: linear-gradient(135deg, hsl(var(--primary)), hsl(var(--secondary)));
    color: #0b0f1d;
    border-color: transparent;
    transform: scale(1.05);
}

.contact-detail-item h4 {
    font-size: 14px;
    font-weight: 600;
    color: hsl(var(--text-muted));
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 2px;
}

.contact-detail-item p {
    margin: 0;
    font-size: 16px;
    color: #fff;
    font-weight: 500;
}

.contact-form-wrapper {
    background-color: hsl(var(--bg-surface));
    border: 1px solid hsl(var(--border-color));
    border-radius: var(--border-radius-lg);
    padding: 40px;
    box-shadow: var(--shadow-soft);
}

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

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

.form-group label {
    font-size: 13px;
    font-weight: 600;
    color: hsl(var(--text-secondary));
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.form-group input,
.form-group textarea {
    background-color: hsl(var(--bg-surface-elevated));
    border: 1px solid hsl(var(--border-color));
    border-radius: var(--border-radius-sm);
    padding: 12px 16px;
    color: #fff;
    font-family: var(--font-body);
    font-size: 15px;
    transition: var(--transition-smooth);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: hsl(var(--primary));
    box-shadow: 0 0 10px rgba(var(--primary-rgb), 0.15);
}

.form-status {
    font-size: 14px;
    text-align: center;
    min-height: 24px;
    font-weight: 500;
    transition: var(--transition-smooth);
}

.form-status.success {
    color: hsl(var(--success));
}

.form-status.error {
    color: hsl(var(--error));
}

/* --- Footer --- */
.site-footer {
    border-top: 1px solid hsl(var(--border-color));
    padding: 40px 0;
    background-color: hsl(var(--bg-base));
}

.footer-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 24px;
}

.footer-logo {
    font-family: var(--font-heading);
    font-size: 20px;
    font-weight: 800;
    color: #fff;
    margin-bottom: 6px;
    display: inline-block;
}

.footer-left p {
    color: hsl(var(--text-muted));
    font-size: 14px;
}

.footer-right {
    text-align: right;
}

.footer-right p {
    color: hsl(var(--text-muted));
    font-size: 13px;
}

.footer-right .credits {
    color: hsl(var(--text-secondary));
    font-weight: 500;
    margin-top: 4px;
}

/* --- Responsive Adjustments --- */
@media (max-width: 992px) {
    .contact-container {
        grid-template-columns: 1fr;
        gap: 50px;
    }
}

@media (max-width: 768px) {
    /* Mobile navigation */
    .nav-toggle {
        display: block;
    }
    
    .nav-menu {
        position: fixed;
        top: var(--header-height);
        left: -100%;
        width: 100%;
        height: calc(100vh - var(--header-height));
        background-color: rgba(10, 15, 29, 0.98);
        backdrop-filter: blur(15px);
        -webkit-backdrop-filter: blur(15px);
        flex-direction: column;
        justify-content: flex-start;
        padding: 50px 24px;
        gap: 40px;
        transition: var(--transition-smooth);
        z-index: 999;
    }
    
    .nav-menu.active {
        left: 0;
    }
    
    .nav-menu ul {
        flex-direction: column;
        align-items: center;
        gap: 32px;
    }
    
    .nav-link {
        font-size: 20px;
    }
    
    .hero-actions {
        flex-direction: column;
        width: 100%;
        max-width: 320px;
        margin: 0 auto;
    }
    
    .timeline {
        padding-left: 20px;
    }
    .timeline::before {
        left: 4px;
    }
    .timeline-dot {
        left: -23px;
        top: 10px;
        width: 14px;
        height: 14px;
        border-width: 2.5px;
    }
    .timeline-content {
        padding: 24px;
    }
    
    .about-content {
        padding: 32px 24px;
    }
    .contact-form-wrapper {
        padding: 32px 24px;
    }
    
    .footer-container {
        flex-direction: column;
        text-align: center;
    }
    .footer-right {
        text-align: center;
    }
}
