:root {
    --primary-color: #0f172a;
    /* Deep Slate - Confidence */
    --secondary-color: #334155;
    /* Slate 700 */
    --accent-color: #3b82f6;
    /* Electric Blue - Interaction */
    --bg-body: #ffffff;
    --bg-alt: #f8fafc;
    /* Very light slate */
    --bg-card: #ffffff;
    --text-main: #1e293b;
    /* Slate 800 */
    --text-muted: #64748b;
    /* Slate 500 */
    --border-color: #cbd5e1;
    /* Slightly darker border for precision */
    --font-heading: 'Montserrat', sans-serif;
    --font-body: 'Inter', sans-serif;
    --transition-speed: 0.3s;
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
    --shadow-hover: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    -webkit-tap-highlight-color: transparent;
}

body {
    background-color: var(--bg-body);
    color: var(--text-main);
    font-family: var(--font-body);
    line-height: 1.6;
    overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-weight: 700;
}

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

ul {
    list-style: none;
}

/* Utilities */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
    z-index: 1;
}

.section {
    padding: 100px 0;
}

.bg-alt {
    background-color: var(--bg-alt);
}

.text-center {
    text-align: center;
}

.btn {
    display: inline-block;
    padding: 14px 35px;
    border-radius: 6px;
    /* Squarer for precision */
    background: var(--accent-color);
    color: #fff;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 1px;
    transition: all var(--transition-speed);
    box-shadow: 0 4px 6px rgba(59, 130, 246, 0.25);
    border: none;
    cursor: pointer;
}

.btn:hover {
    transform: translateY(-2px);
    background: #2563eb;
    box-shadow: 0 8px 15px rgba(59, 130, 246, 0.35);
}

/* Header: Floating Glass with Modern Pill Design */
.main-header {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    max-width: 1100px;
    z-index: 1000;
    padding: 12px 30px;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.6);
    border-radius: 50px;
    transition: all 0.4s ease;
    box-shadow: 0 4px 20px rgba(15, 23, 42, 0.15);
    /* Stronger default shadow */
}

.main-header.scrolled {
    width: 95%;
    max-width: 1150px;
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 10px 15px -3px rgba(15, 23, 42, 0.08);
}

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

.logo {
    font-family: var(--font-heading);
    font-size: 20px;
    font-weight: 800;
    letter-spacing: -0.5px;
    color: var(--primary-color);
    display: flex;
    align-items: center;
    /* gap: 8px; Removed to fix spacing issue in Technik_Apps */
    text-transform: uppercase;
    cursor: pointer;
}

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

.nav-links {
    display: flex;
    gap: 5px;
}

.nav-links a {
    font-size: 13px;
    /* Slightly smaller for elegance */
    font-weight: 600;
    color: var(--text-muted);
    padding: 10px 20px;
    border-radius: 30px;
    transition: all 0.3s;
    position: relative;
    overflow: hidden;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--primary-color);
    background: rgba(15, 23, 42, 0.04);
}

.mobile-toggle {
    display: none;
    color: var(--text-main);
    font-size: 24px;
    cursor: pointer;
}

/* Hero Section */
.hero {
    height: 100vh;
    min-height: 700px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    /* Light Slate to contrast with White Header */
    background: #f8fafc;
    overflow: hidden;
}

/* Abstract Tech Shapes - Subtler */
.hero::after {
    content: '';
    position: absolute;
    width: 800px;
    height: 800px;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.03) 0%, transparent 70%);
    border-radius: 50%;
    top: -200px;
    right: -200px;
    z-index: 1;
}

.hero::before {
    content: '';
    position: absolute;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(15, 23, 42, 0.02) 0%, transparent 70%);
    border-radius: 50%;
    bottom: -100px;
    left: -100px;
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    animation: fadeIn Up 1s ease-out;
    padding: 0 20px;
}

.hero h1 {
    font-size: 4.5rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 25px;
    color: var(--primary-color);
    letter-spacing: -2px;
}

.hero h1 span {
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero p {
    font-size: 1.25rem;
    color: var(--text-muted);
    margin-bottom: 40px;
    max-width: 650px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.8;
}

.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    animation: bounce 2s infinite;
    z-index: 10;
}

.scroll-link {
    color: var(--text-muted);
    font-size: 24px;
    cursor: pointer;
    transition: color 0.3s;
    padding: 20px;
    display: block;
}

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

/* Applications Section */
.apps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
    margin-top: 60px;
}

.app-card {
    background: #ffffff;
    /* Explicitly white cards */
    border-radius: 8px;
    /* Sharper */
    padding: 40px 30px;
    text-align: left;
    transition: all var(--transition-speed);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
    border: 1px solid var(--border-color);
    position: relative;
    overflow: hidden;
}

.app-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 20px -5px rgba(0, 0, 0, 0.1);
    border-color: var(--accent-color);
}

.app-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: var(--accent-color);
    /* Solid accent line */
    opacity: 0;
    transition: opacity 0.3s;
}

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

.app-icon {
    width: 70px;
    height: 70px;
    background: #f8fafc;
    border-radius: 12px;
    margin-bottom: 25px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border: 1px solid var(--border-color);
}

.app-icon img {
    width: 100%;
    height: auto;
    object-fit: cover;
}

.app-card h3 {
    font-size: 1.25rem;
    margin-bottom: 10px;
    color: var(--primary-color);
    font-weight: 700;
}

.app-card p {
    font-size: 0.95rem;
    color: var(--text-muted);
    margin-bottom: 25px;
    line-height: 1.6;
}

.app-card .btn-link {
    color: var(--accent-color);
    font-weight: 600;
    font-size: 0.9rem;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.app-card .btn-link:hover {
    text-decoration: none;
    gap: 8px;
}

/* About Section */
.about-services {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 60px;
}

.service-item {
    background: #fff;
    padding: 30px;
    border-radius: 8px;
    border: 1px solid transparent;
    transition: 0.3s;
}

.service-item:hover {
    border-color: var(--border-color);
    background: #fff;
    box-shadow: var(--shadow-md);
}

.service-icon {
    font-size: 24px;
    color: var(--accent-color);
    background: rgba(59, 130, 246, 0.1);
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    margin-bottom: 20px;
}

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

.service-item p {
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.6;
}

/* Contact Section */
.contact-form {
    max-width: 700px;
    margin: 0 auto;
    background: #fff;
    padding: 50px;
    border-radius: 12px;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border-color);
}

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

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: var(--secondary-color);
    font-size: 0.9rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    background: #f8fafc;
    border: 1px solid #cbd5e1;
    padding: 12px 16px;
    border-radius: 6px;
    color: var(--text-main);
    font-family: var(--font-body);
    font-size: 15px;
    transition: all 0.3s;
}

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

/* Footer */
footer {
    background: var(--primary-color);
    color: #fff;
    padding: 60px 0;
    margin-top: 0;
}

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

.social-links a {
    color: #94a3b8;
    font-size: 20px;
    margin-left: 24px;
    transition: 0.3s;
}

.social-links a:hover {
    color: #fff;
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes bounce {

    0%,
    20%,
    50%,
    80%,
    100% {
        transform: translateX(-50%) translateY(0);
    }

    40% {
        transform: translateX(-50%) translateY(-10px);
    }

    60% {
        transform: translateX(-50%) translateY(-5px);
    }
}

/* Responsive */
@media (max-width: 768px) {
    .nav-links {
        display: none;
    }

    .mobile-toggle {
        display: block;
    }

    .hero h1 {
        font-size: 2.8rem;
    }

    .footer-content {
        flex-direction: column;
        gap: 30px;
        text-align: center;
    }

    .contact-form {
        padding: 30px;
    }
}

/* Lenis Recommended CSS */
html.lenis,
html.lenis body {
    height: auto;
}

.lenis.lenis-smooth {
    scroll-behavior: auto !important;
}

.lenis.lenis-smooth [data-lenis-prevent] {
    overscroll-behavior: contain;
}

.lenis.lenis-stopped {
    overflow: hidden;
}

.lenis.lenis-scrolling iframe {
    pointer-events: none;
}

/* Architectural Grid Background (Apps Section) */
.bg-grid {
    background-color: #ffffff;
    background-size: 60px 60px;
    /* Larger, architectural */
    background-image:
        linear-gradient(to right, rgba(148, 163, 184, 0.1) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(148, 163, 184, 0.1) 1px, transparent 1px);
    /* No animation, keeping it static and professional */
    position: relative;
    z-index: 0;
}

/* Gradient Flow Background (Contact Section) - Medium Slate */
.bg-gradient-flow {
    background: linear-gradient(-45deg, #cbd5e1, #e2e8f0, #f1f5f9, #cbd5e1);
    background-size: 400% 400%;
    animation: gradientFlow 15s ease infinite;
}


@keyframes gradientFlow {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

/* Login Modal Specifics */
.login-header {
    margin-bottom: 35px;
}

.modal-brand {
    font-size: 28px;
    font-weight: 700;
    color: #1a1a2e;
    letter-spacing: -0.5px;
    margin-bottom: 8px;
    font-family: 'Montserrat', sans-serif;
}

.modal-brand span {
    color: var(--primary-color);
}

.login-header p {
    color: #94a3b8;
    font-size: 15px;
    font-weight: 400;
}

.modern-form-group {
    margin-bottom: 24px;
    text-align: left;
    position: relative;
}

.modern-form-group label {
    display: block;
    font-size: 13px;
    color: #64748b;
    margin-bottom: 8px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.modern-input {
    width: 100%;
    padding: 14px 18px;
    border: 2px solid #f1f5f9;
    border-radius: 14px;
    font-size: 16px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    background: #f8fafc;
    color: #334155;
}

.modern-input:focus {
    border-color: var(--primary-color);
    background: white;
    outline: none;
    box-shadow: 0 4px 12px rgba(79, 70, 229, 0.1);
    transform: translateY(-1px);
}

.login-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    font-size: 14px;
}

.forgot-password {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
    font-size: 13px;
    transition: color 0.2s;
}

.forgot-password:hover {
    color: #4338ca;
    text-decoration: underline;
}

.btn-login {
    width: 100%;
    padding: 16px;
    font-size: 16px;
    font-weight: 600;
    letter-spacing: 0.5px;
    border-radius: 14px;
    background: linear-gradient(135deg, #6366f1 0%, #4f46e5 100%);
    color: white;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px -1px rgba(79, 70, 229, 0.1), 0 2px 4px -1px rgba(79, 70, 229, 0.06);
}

.btn-login:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 15px -3px rgba(79, 70, 229, 0.3), 0 4px 6px -2px rgba(79, 70, 229, 0.1);
    background: linear-gradient(135deg, #4f46e5 0%, #4338ca 100%);
}

.modal-close-icon {
    position: absolute;
    top: 24px;
    right: 24px;
    font-size: 20px;
    color: #cbd5e1;
    cursor: pointer;
    transition: all 0.3s;
    background: transparent;
    padding: 8px;
    border-radius: 50%;
}

.modal-close-icon:hover {
    color: #ef4444;
    background: #fee2e2;
    transform: rotate(90deg);
}

/* Success Modal */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 23, 42, 0.8);
    backdrop-filter: blur(5px);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal-content {
    background: #fff;
    padding: 40px;
    border-radius: 16px;
    text-align: center;
    max-width: 400px;
    width: 90%;
    transform: translateY(20px);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.modal-overlay.active .modal-content {
    transform: translateY(0);
}

.modal-icon {
    font-size: 50px;
    color: #10b981;
    /* Emerald Green */
    margin-bottom: 20px;
}

.modal-content h3 {
    margin-bottom: 10px;
    color: #1e293b;
    font-size: 1.5rem;
}

.modal-content p {
    color: #64748b;
    margin-bottom: 30px;
    line-height: 1.5;
}

.btn-close-modal {
    background: #1e293b;
    /* Dark Slate */
    width: 100%;
}

.btn-close-modal:hover {
    background: #334155;
}

/* About Section Canvas Container */
#about {
    position: relative;
    overflow: hidden;
    background-color: #f8fafc;
    /* Light Slate Alt */
}

#canvas-network {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    opacity: 0.4;
    pointer-events: none;
}

/* Privacy Modal Specifics */
.privacy-content {
    max-width: 900px;
    width: 95%;
    height: 85vh;
    padding: 0 !important;
    overflow: hidden;
    background: white;
    display: flex;
    flex-direction: column;
    border: 1px solid rgba(255, 255, 255, 0.5);
}

.privacy-frame-container {
    flex: 1;
    width: 100%;
    height: 100%;
    position: relative;
    background: #fff;
    border-radius: 0 0 16px 16px;
    /* Ensure rounded corners at bottom */
}

.privacy-content .modal-close-icon {
    position: absolute;
    top: 15px;
    right: 15px;
    z-index: 20;
    background: rgba(255, 255, 255, 0.9);
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    color: #475569;
    font-size: 16px;
    transition: all 0.2s ease;
}

.privacy-content .modal-close-icon:hover {
    background: #fee2e2;
    color: #ef4444;
    transform: rotate(90deg);
}

#privacyFrame {
    width: 100%;
    height: 100%;
    border: none;
    display: block;
}

/* Scrollbar Formatting */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f5f9;
}

::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}