:root {
    --bg-color: #050507;
    --bg-secondary: #0f0f12;
    --text-primary: #ffffff;
    --text-secondary: #a1a1aa;
    --accent-primary: #3b82f6;
    --accent-secondary: #8b5cf6;
    --glass-bg: rgba(255, 255, 255, 0.03);
    --glass-border: rgba(255, 255, 255, 0.08);
    --glass-hover: rgba(255, 255, 255, 0.08);
    --grid-color: rgba(255, 255, 255, 0.03);
    --nav-height: 80px;
    --radius-lg: 24px;
    --radius-md: 16px;
    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-sm: 8px;
    --container-width: 1200px;
    --mobile-menu-bg: rgba(5, 5, 7, 0.98);
}

[data-theme="light"] {
    --bg-color: #f9fafb;
    --bg-secondary: #e5e7eb;
    --text-primary: #111827;
    --text-secondary: #4b5563;
    --glass-bg: rgba(0, 0, 0, 0.03);
    --glass-border: rgba(0, 0, 0, 0.1);
    --glass-hover: rgba(0, 0, 0, 0.05);
    --grid-color: rgba(0, 0, 0, 0.05);
    --mobile-menu-bg: rgba(249, 250, 251, 0.98);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background-color: var(--bg-color);
    background-image:
        linear-gradient(var(--grid-color) 1px, transparent 1px),
        linear-gradient(90deg, var(--grid-color) 1px, transparent 1px);
    background-size: 50px 50px;
    color: var(--text-primary);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
    transition: background-color 0.3s ease, color 0.3s ease;
}

@keyframes pulse-glow {
    0% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 0.5;
    }

    50% {
        transform: translate(-50%, -50%) scale(1.2);
        opacity: 0.7;
    }

    100% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 0.5;
    }
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

ul {
    list-style: none;
}

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

/* Typography */
h1,
h2,
h3,
h4 {
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1.2;
}

h1 {
    font-size: 3.5rem;
    margin-bottom: 24px;
}

h2.section-title {
    font-size: 2.5rem;
    margin-bottom: 16px;
    text-align: center;
}

p.section-desc {
    text-align: center;
    color: var(--text-secondary);
    font-size: 1.25rem;
    max-width: 600px;
    margin: 0 auto 64px;
}

.text-gradient,
.gradient-text {
    background: linear-gradient(135deg, #60a5fa, #c084fc);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Utilities */
.glass {
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    box-shadow: 0 4px 24px -1px rgba(0, 0, 0, 0.2);
}

.btn {
    display: inline-block;
    padding: 14px 32px;
    border-radius: 100px;
    font-weight: 500;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 16px rgba(59, 130, 246, 0.2);
}

.btn-primary {
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
    color: white;
    border: none;
}

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

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.15);
}

.btn-sm {
    padding: 10px 24px;
    font-size: 0.9rem;
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--nav-height);
    z-index: 1000;
    display: flex;
    align-items: center;
    border-bottom: 1px solid var(--glass-border);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}


.logo-link {
    display: flex;
    align-items: center;
    gap: 12px;
}

.brand-text {
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: -0.03em;
    color: var(--text-primary);
}

.brand-logo {
    transition: transform 0.3s ease;
}

.logo-link:hover .brand-logo {
    transform: rotate(-10deg);
}

.logo .dot {
    color: var(--accent-primary);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 32px;
}

.nav-links li a {
    color: var(--text-secondary);
    font-weight: 500;
    font-size: 0.95rem;
}

.nav-links li a:hover,
.nav-links li a:active {
    color: var(--text-primary);
}

.nav-links li a:hover {
    color: white;
}

.hamburger {
    display: none;
}

/* Hero */
.hero {
    padding-top: calc(var(--nav-height) + 60px);
    padding-bottom: 100px;
    position: relative;
    overflow: hidden;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    position: relative;
    z-index: 2;
}

.hero-content {
    text-align: left;
    max-width: 100%;
}

.hero-content h1 {
    font-size: 3.5rem;
    margin-bottom: 24px;
    line-height: 1.1;
}

.subhead {
    font-size: 1.25rem;
    color: var(--text-secondary);
    margin-bottom: 32px;
    max-width: 90%;
}

.cta-group {
    display: flex;
    gap: 16px;
    justify-content: flex-start;
}

.hero-image-wrapper {
    position: relative;
    margin-right: -40px;
    /* Slight optical adjustment */
}

.hero-img {
    width: 100%;
    height: auto;
    /* drop-shadow works better for transparency if image has it, otherwise box-shadow */
    filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.4));
    animation: float 6s ease-in-out infinite;
    max-width: 600px;
    display: block;
    margin: 0 auto;
    border-radius: var(--radius-lg);
}

@keyframes float {
    0% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-20px);
    }

    100% {
        transform: translateY(0px);
    }
}

.hero-bg-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 800px;
    height: 800px;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.12) 0%, rgba(0, 0, 0, 0) 70%);
    z-index: 0;
    pointer-events: none;
    animation: pulse-glow 8s infinite ease-in-out;
}

/* Responsive Styles for Hero */
@media (max-width: 1024px) {
    .hero-content h1 {
        font-size: 3rem;
    }
}

@media (max-width: 900px) {
    .hero-grid {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 40px;
    }

    .hero-image-wrapper {
        order: -1;
        /* Image on top on mobile feels modern, or remove this line for image below */
        margin-right: 0;
    }

    .hero-content {
        text-align: center;
        margin: 0 auto;
    }

    .subhead {
        margin-left: auto;
        margin-right: auto;
    }

    .cta-group {
        justify-content: center;
    }

    .hero-img {
        max-width: 80%;
    }
}

/* Trust Section */
.trust-section {
    padding: 60px 0 100px;
    border-bottom: 1px solid var(--glass-border);
}

.trust-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    text-align: center;
}

.trust-item h3 {
    font-size: 1.1rem;
    margin-bottom: 8px;
    color: var(--text-primary);
}

.trust-item p {
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.5;
}

/* Services */
.services-section {
    padding: 120px 0;
}

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

.service-card {
    padding: 32px;
    border-radius: var(--radius-md);
    transition: background 0.3s;
}

.service-card:hover {
    background: var(--glass-hover);
}

.service-card h3 {
    font-size: 1.25rem;
    margin-bottom: 12px;
}

.service-card p {
    color: var(--text-secondary);
}

/* Projects */
.projects-section {
    padding: 80px 0 120px;
}

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

.project-card {
    border-radius: var(--radius-lg);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    height: 100%;
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.27), box-shadow 0.4s ease;
}

.project-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px -5px rgba(0, 0, 0, 0.4);
}

.project-image {
    height: 280px;
    background-color: #1a1a1a;
    background-size: cover;
    background-position: center;
    position: relative;
    overflow: hidden;
}

/* Abstract Tech Patterns for Projects via CSS */
/* Terrascope */
#img-terrascope {
    background-image: url('terrascope.png'), linear-gradient(135deg, #022c22 0%, #10b981 100%);
    background-size: cover;
}

/* TuneAtlas */
#img-tuneatlas {
    background-image: url('tuneatlas.png'), linear-gradient(135deg, #0ea5e9 0%, #2563eb 100%);
    background-size: cover;
}

/* Fileforge: Blue grid */
#img-fileforge {
    background-image: url('fileforge.png'), linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    background-size: cover;
}

/* FileFlow: Node connections dots */
#img-fileflow {
    background-image: url('fileflow.png'), linear-gradient(135deg, #1e1b4b 0%, #312e81 100%);
    background-size: cover;
}

/* TextFlow: Text lines pattern */
#img-textflow {
    background-image: url('textflow.png'), linear-gradient(135deg, #2e1065 0%, #581c87 100%);
    background-size: cover;
}

/* ShareMenu: Diagonal stripes */
#img-sharemenu {
    background-image: url('sharemenu.png'), linear-gradient(135deg, #064e3b 0%, #065f46 100%);
    background-size: cover;
}

#img-inboxpeek {
    background-image: url('inboxpeek.png'), linear-gradient(135deg, #7f1d1d, #450a0a);
    background-size: cover;
}

#img-inboxpeek::after {
    display: none;
}

#img-gitcase {
    background-image: url('gitcase.png'), linear-gradient(135deg, #431407 0%, #7c2d12 100%);
    background-size: cover;
}

#img-pathmanager {
    background-image: url('pathmanager.png'), linear-gradient(135deg, #0f172a 0%, #334155 100%);
    background-size: cover;
}

#img-menno {
    background-image: url('menno.png'), linear-gradient(135deg, #451a03 0%, #78350f 100%);
    background-size: cover;
}

#img-invalue {
    background-image: url('invalue.png'), linear-gradient(135deg, #064e3b 0%, #065f46 100%);
    background-size: cover;
}

#img-aicopilot {
    background-image: url('aicopilot.png'), linear-gradient(135deg, #1e1b4b 0%, #312e81 100%);
    background-size: cover;
}


.project-content {
    padding: 32px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.project-content h3 {
    font-size: 1.75rem;
    margin-bottom: 8px;
}

.codename {
    font-size: 1rem;
    color: var(--text-secondary);
    font-weight: 400;
    opacity: 0.7;
}

.project-summary {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-bottom: 24px;
}

.feature-list {
    margin-top: auto;
    padding-left: 20px;
    list-style-type: disc;
}

.feature-list li {
    color: var(--text-secondary);
    margin-bottom: 6px;
    font-size: 0.95rem;
}

/* Process */
.process-section {
    padding: 100px 0;
    background: linear-gradient(to bottom, var(--bg-color), var(--bg-secondary));
}

.process-steps {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 20px;
    margin-top: 60px;
}

.step {
    flex: 1;
    text-align: center;
    min-width: 150px;
}

.step-number {
    font-size: 3rem;
    font-weight: 800;
    color: var(--glass-border);
    margin-bottom: 16px;
    font-family: monospace;
}

.step h4 {
    margin-bottom: 8px;
    font-size: 1.2rem;
}

.step p {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.step-connector {
    flex-grow: 1;
    height: 1px;
    background: var(--glass-border);
    margin-top: 30px;
    display: none;
    /* Hide on mobile, show on desktop via media query */
}

/* Tech Badges */
.tech-section {
    padding: 80px 0;
    text-align: center;
}

.tech-badges {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
    max-width: 800px;
    margin: 40px auto 0;
}

.badge {
    padding: 8px 16px;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 100px;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

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

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: center;
}

.about-text p {
    color: var(--text-secondary);
    margin-bottom: 24px;
    font-size: 1.1rem;
}

.about-location {
    padding: 48px;
    border-radius: var(--radius-lg);
    background: url('https://images.unsplash.com/photo-1512453979798-5ea904ac22ac?q=80&w=2000&auto=format&fit=crop') center/cover;
    position: relative;
    overflow: hidden;
    height: 300px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}

.about-location::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.9), transparent);
}

.about-location h3,
.about-location p {
    position: relative;
    z-index: 1;
}

/* Footer */
footer {
    border-top: 1px solid var(--glass-border);
    padding: 80px 0;
    background: var(--bg-secondary);
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 48px;
}

.footer-col h3 {
    margin-bottom: 12px;
}

.footer-col h4 {
    margin-bottom: 16px;
    color: var(--text-primary);
}

.footer-col p,
.footer-col a {
    color: var(--text-secondary);
    display: block;
    margin-bottom: 8px;
    font-size: 0.95rem;
}

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

/* Contact Form */
.contact-section {
    padding: 100px 0;
}

.contact-form-wrapper {
    max-width: 600px;
    margin: 0 auto;
    padding: 40px;
    border-radius: var(--radius-lg);
}

.form-group {
    margin-bottom: 24px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: var(--text-primary);
    font-weight: 500;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px 16px;
    background: rgba(255, 255, 255, 0.05);
    /* Slightly visible bg */
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    font-family: inherit;
    font-size: 1rem;
    transition: all 0.3s ease;
}

[data-theme="light"] .form-group input,
[data-theme="light"] .form-group textarea {
    background: white;
    border: 1px solid #e5e7eb;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent-primary);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.form-group textarea {
    resize: vertical;
}

/* Responsive */
@media (min-width: 768px) {
    .step-connector {
        display: block;
    }
}

@media (max-width: 768px) {
    h1 {
        font-size: 2.5rem;
    }

    .hamburger {
        display: block;
        cursor: pointer;
        z-index: 1001;
    }

    .hamburger span {
        display: block;
        width: 25px;
        height: 3px;
        margin: 5px auto;
        -webkit-transition: all 0.3s ease-in-out;
        transition: all 0.3s ease-in-out;
        background-color: var(--text-primary);
        border-radius: 2px;
    }

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

    .hamburger.active span:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }

    .hamburger.active span:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }

    .nav-links {
        display: none;
        /* Initially hidden, toggled by JS */
        position: fixed;
        left: 0;
        top: 0;
        width: 100%;
        height: 100vh;
        background: var(--mobile-menu-bg);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 32px;
        z-index: 1000;
        padding-top: 60px;
    }

    .nav-links.active {
        display: flex;
    }

    .nav-links li a,
    .nav-links a {
        font-size: 1.5rem;
    }

    .projects-grid {
        grid-template-columns: 1fr;
    }

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

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

/* Animations */
.fade-up-hidden {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

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

/* Modal Removed */

.project-card {
    cursor: pointer;
}