/* ===== CSS Variables - Dark Grayscale Theme ===== */
:root {
    --color-black: #0a0a0a;
    --color-dark: #111111;
    --color-gray-900: #1a1a1a;
    --color-gray-800: #222222;
    --color-gray-700: #333333;
    --color-gray-600: #666666;
    --color-gray-500: #888888;
    --color-gray-400: #aaaaaa;
    --color-gray-300: #cccccc;
    --color-gray-200: #e5e5e5;
    --color-gray-100: #f5f5f5;
    --color-white: #ffffff;
    --font-family: 'Manrope', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --transition: all 0.3s ease;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-family);
    font-size: 16px;
    line-height: 1.6;
    color: var(--color-gray-300);
    background: var(--color-black);
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 24px;
}

h1, h2, h3 {
    line-height: 1.2;
    font-weight: 700;
    color: var(--color-white);
}

a {
    text-decoration: none;
    color: inherit;
}

/* ===== Navigation ===== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(10, 10, 10, 0.95);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--color-gray-800);
}

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

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

.logo-icon {
    width: 44px;
    height: 44px;
}

.logo-text {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}

.logo-name {
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--color-white);
    letter-spacing: -0.01em;
}

.logo-suffix {
    font-weight: 300;
    font-size: 0.8rem;
    color: var(--color-gray-500);
    letter-spacing: 0.06em;
}

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

.nav-links a {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--color-gray-400);
    transition: var(--transition);
}

.nav-links a:hover {
    color: var(--color-white);
}

.nav-cta {
    background: var(--color-gray-700);
    color: var(--color-white) !important;
    padding: 10px 20px;
    clip-path: polygon(8px 0, 100% 0, 100% calc(100% - 8px), calc(100% - 8px) 100%, 0 100%, 0 8px);
}

.nav-cta:hover {
    background: var(--color-gray-600);
}

/* ===== Hero Section ===== */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 120px 24px 80px;
    background: var(--color-black);
    position: relative;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

/* Angular fold lines - origami inspired */
.fold {
    position: absolute;
    background: var(--color-gray-600);
}

.fold-1 {
    width: 1px;
    height: 60%;
    top: 0;
    left: 20%;
    transform: rotate(15deg);
    transform-origin: top left;
}

.fold-2 {
    width: 1px;
    height: 80%;
    bottom: 0;
    right: 15%;
    transform: rotate(-20deg);
    transform-origin: bottom right;
}

.fold-3 {
    width: 40%;
    height: 1px;
    top: 30%;
    right: 0;
    transform: rotate(-8deg);
}

.fold-4 {
    width: 35%;
    height: 1px;
    bottom: 25%;
    left: 0;
    transform: rotate(12deg);
}

/* Large geometric shapes */
.hero-bg::before {
    content: '';
    position: absolute;
    right: -150px;
    top: 50%;
    transform: translateY(-50%);
    width: 500px;
    height: 500px;
    background: linear-gradient(135deg, var(--color-gray-700) 0%, transparent 60%);
    clip-path: polygon(50% 0%, 100% 50%, 50% 100%, 0% 50%);
}

.hero-bg::after {
    content: '';
    position: absolute;
    left: -100px;
    bottom: -100px;
    width: 400px;
    height: 400px;
    background: linear-gradient(45deg, var(--color-gray-700) 0%, transparent 50%);
    clip-path: polygon(0 0, 100% 0, 100% 100%);
}

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

.hero h1 {
    font-size: clamp(2rem, 5vw, 3.5rem);
    color: var(--color-white);
    margin-bottom: 48px;
    letter-spacing: -0.03em;
    font-weight: 700;
    white-space: nowrap;
}

/* ===== Origami Button ===== */
.btn {
    display: inline-block;
    position: relative;
    padding: 18px 40px;
    font-size: 1rem;
    font-weight: 600;
    transition: var(--transition);
    cursor: pointer;
    border: none;
    text-decoration: none;
}

.btn-primary {
    background: var(--color-gray-700);
    color: var(--color-white);
    clip-path: polygon(
        0 12px,
        12px 0,
        100% 0,
        100% calc(100% - 12px),
        calc(100% - 12px) 100%,
        0 100%
    );
}

.btn-primary .btn-text {
    position: relative;
    z-index: 2;
}

/* Fold corner accents */
.btn-fold {
    position: absolute;
    width: 12px;
    height: 12px;
    z-index: 1;
}

.btn-fold-tl {
    top: 0;
    left: 0;
    background: linear-gradient(135deg, var(--color-gray-500) 50%, transparent 50%);
}

.btn-fold-br {
    bottom: 0;
    right: 0;
    background: linear-gradient(315deg, var(--color-gray-500) 50%, transparent 50%);
}

.btn-primary:hover {
    background: var(--color-gray-600);
    transform: translateY(-2px);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4);
}

.btn-primary:hover .btn-fold-tl {
    background: linear-gradient(135deg, var(--color-gray-400) 50%, transparent 50%);
}

.btn-primary:hover .btn-fold-br {
    background: linear-gradient(315deg, var(--color-gray-400) 50%, transparent 50%);
}

/* ===== Services Section ===== */
.services {
    padding: 120px 24px;
    background: var(--color-gray-900);
    position: relative;
}

.services::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--color-gray-700), transparent);
}

.services h2 {
    font-size: 2.5rem;
    text-align: center;
    color: var(--color-white);
    margin-bottom: 12px;
}

.section-subtitle {
    text-align: center;
    color: var(--color-gray-500);
    font-size: 1.1rem;
    margin-bottom: 60px;
    font-weight: 400;
}

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

.service-card {
    padding: 40px 32px;
    background: var(--color-gray-800);
    transition: var(--transition);
    position: relative;
    clip-path: polygon(0 0, 100% 0, 100% calc(100% - 20px), calc(100% - 20px) 100%, 0 100%);
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 3px;
    height: 60px;
    background: var(--color-gray-500);
}

.service-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.service-icon {
    width: 56px;
    height: 56px;
    background: var(--color-gray-700);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
    clip-path: polygon(8px 0, 100% 0, 100% calc(100% - 8px), calc(100% - 8px) 100%, 0 100%, 0 8px);
}

.service-icon svg {
    width: 28px;
    height: 28px;
    color: var(--color-white);
}

.service-card h3 {
    font-size: 1.25rem;
    color: var(--color-white);
    margin-bottom: 12px;
    font-weight: 700;
}

.service-card p {
    color: var(--color-gray-400);
    line-height: 1.7;
}

/* ===== About Section ===== */
.about {
    padding: 120px 24px;
    background: var(--color-black);
    color: var(--color-white);
    position: relative;
    overflow: hidden;
}

.about-fold {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.about-fold::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 600px;
    height: 600px;
    background: linear-gradient(135deg, var(--color-gray-700) 0%, transparent 50%);
    clip-path: polygon(50% 0%, 100% 50%, 50% 100%, 0% 50%);
    transform: rotate(15deg);
}

.about-fold::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -5%;
    width: 400px;
    height: 400px;
    background: linear-gradient(45deg, var(--color-gray-700) 0%, transparent 60%);
    clip-path: polygon(0 0, 100% 100%, 0 100%);
}

.about-content {
    max-width: 700px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.about h2 {
    font-size: 2.5rem;
    margin-bottom: 32px;
    color: var(--color-white);
}

.about p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--color-gray-400);
    margin-bottom: 20px;
}

.about p:last-child {
    margin-bottom: 0;
}

/* ===== Contact Section ===== */
.contact {
    padding: 120px 24px;
    background: var(--color-gray-900);
    text-align: center;
    position: relative;
}

.contact::before {
    content: '';
    position: absolute;
    top: 60px;
    left: 10%;
    width: 1px;
    height: 100px;
    background: var(--color-gray-500);
    transform: rotate(20deg);
}

.contact::after {
    content: '';
    position: absolute;
    bottom: 60px;
    right: 10%;
    width: 1px;
    height: 100px;
    background: var(--color-gray-500);
    transform: rotate(-20deg);
}

.contact h2 {
    font-size: 2.5rem;
    color: var(--color-white);
    margin-bottom: 12px;
}

.contact .section-subtitle {
    margin-bottom: 48px;
}

.contact-content {
    margin-top: 0;
}

.contact-email {
    display: inline-block;
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--color-white);
    padding: 20px 40px;
    border: 2px solid var(--color-gray-600);
    background: transparent;
    transition: var(--transition);
    clip-path: polygon(12px 0, 100% 0, 100% calc(100% - 12px), calc(100% - 12px) 100%, 0 100%, 0 12px);
}

.contact-email:hover {
    background: var(--color-gray-700);
    border-color: var(--color-gray-500);
}

.contact-note {
    margin-top: 20px;
    color: var(--color-gray-500);
    font-size: 0.95rem;
}

/* ===== Footer ===== */
.footer {
    padding: 48px 24px;
    background: var(--color-black);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.footer-fold {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--color-gray-800), transparent);
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
}

.footer-logo {
    width: 48px;
    height: 48px;
}

.footer p {
    color: var(--color-gray-600);
    font-size: 0.9rem;
}

/* ===== Responsive ===== */
@media (max-width: 768px) {
    .nav-links {
        gap: 20px;
    }

    .nav-links li:first-child,
    .nav-links li:nth-child(2) {
        display: none;
    }

    .hero {
        padding: 100px 24px 60px;
    }

    .hero h1 {
        font-size: 1.75rem;
        margin-bottom: 32px;
        white-space: nowrap;
    }

    .hero-bg::before {
        width: 300px;
        height: 300px;
        right: -100px;
    }

    .services, .about, .contact {
        padding: 80px 24px;
    }

    .services h2, .about h2, .contact h2 {
        font-size: 2rem;
    }

    .logo-text {
        display: none;
    }

    .logo-icon {
        width: 36px;
        height: 36px;
    }
}

@media (min-width: 769px) and (max-width: 1024px) {
    .logo-name {
        font-size: 1rem;
    }

    .logo-suffix {
        font-size: 0.7rem;
    }
}
