:root {
    /* Color Palette - Obsidian & Platinum */
    --bg-obsidian: #0D0D0E;
    --bg-card: #161618;
    --text-platinum: #E2E2E2;
    --text-muted: #A1A1AA;
    --accent-gold: #D4AF37;
    --accent-blue: #3B82F6;
    --glass-bg: rgba(22, 22, 24, 0.7);
    --glass-border: rgba(255, 255, 255, 0.1);

    /* Typography */
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;

    /* Spacing */
    --section-padding: 100px 20px;
    --container-max-width: 1200px;
}

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

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

h1,
h2,
h3,
h4 {
    font-family: var(--font-heading);
    font-weight: 600;
    letter-spacing: -0.02em;
}

.container {
    max-width: var(--container-max-width);
    margin: 0 auto;
    width: 100%;
}

/* Glassmorphism utility */
.glass {
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
}

/* Section transitions */
.section {
    padding: var(--section-padding);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    padding: 12px 28px;
    border-radius: 8px;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    font-family: var(--font-heading);
}

.btn-primary {
    background-color: var(--text-platinum);
    color: var(--bg-obsidian);
}

.btn-primary:hover {
    background-color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
}

.btn-secondary {
    background: transparent;
    color: var(--text-platinum);
    border: 1px solid var(--glass-border);
}

.btn-secondary:hover {
    border-color: var(--text-platinum);
    background: rgba(255, 255, 255, 0.05);
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    background: radial-gradient(circle at 50% 50%, #1a1a1c 0%, #0d0d0e 100%);
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('https://images.unsplash.com/photo-1550751827-4bd374c3f58b?auto=format&fit=crop&q=80&w=2070') center/cover no-repeat;
    opacity: 0.15;
    z-index: 0;
    filter: grayscale(100%);
}

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

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

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

@keyframes bounce {

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

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

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

.reveal {
    animation: fadeInUp 0.8s ease-out forwards;
}

/* Service Cards */
.service-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 32px;
}

.service-card {
    padding: 48px;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    background: rgba(255, 255, 255, 0.02);
}

.service-card:hover {
    transform: translateY(-8px);
    background: rgba(255, 255, 255, 0.04);
    border-color: rgba(255, 255, 255, 0.2);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

.service-icon {
    width: 64px;
    height: 64px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 28px;
    font-size: 24px;
}

/* Founder Section */
.founder-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr;
    gap: 100px;
    align-items: center;
}

@media (max-width: 968px) {
    .founder-grid {
        grid-template-columns: 1fr;
        gap: 60px;
    }
}

.founder-card {
    padding: 60px 40px;
    text-align: center;
    border: 1px solid rgba(212, 175, 55, 0.15);
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.03) 0%, rgba(0, 0, 0, 0) 100%);
}

.avatar-container {
    width: 140px;
    height: 140px;
    border-radius: 70px;
    background: #1a1a1c;
    margin: 0 auto 32px;
    overflow: hidden;
    border: 1px solid var(--accent-gold);
    box-shadow: 0 0 30px rgba(212, 175, 55, 0.1);
}

/* Navigation & Header */
.header {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    max-width: 1213px;
    /* Adjusted to match container */
    z-index: 1000;
    padding: 16px 32px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-family: var(--font-heading);
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--text-platinum);
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
}

.logo svg {
    display: block;
    /* Ensure it respects alignment */
    flex-shrink: 0;
}

/* Navigation Links */
.nav-link {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
    padding: 5px 0;
}

.nav-link:hover {
    color: var(--text-platinum);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 1px;
    background-color: var(--accent-gold);
    transition: width 0.3s ease;
}

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

/* Patent Citation Cards */
.citation-grid {
    display: flex;
    flex-direction: column;
    gap: 20px;
    max-width: 800px;
    margin: 0 auto;
}

.citation-card {
    padding: 24px 32px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    transition: all 0.3s ease;
}

.citation-card:hover {
    border-color: rgba(212, 175, 55, 0.3);
    background: rgba(212, 175, 55, 0.03);
}

.citation-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.citation-entity {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-platinum);
}

.citation-context {
    font-size: 0.85rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.patent-badge {
    padding: 4px 12px;
    background: rgba(212, 175, 55, 0.1);
    border: 1px solid rgba(212, 175, 55, 0.2);
    border-radius: 6px;
    color: var(--accent-gold);
    font-size: 0.75rem;
    font-weight: 600;
    font-family: var(--font-heading);
}

@media (max-width: 768px) {
    .header {
        padding: 15px 20px;
        top: 10px;
    }

    .nav-desktop {
        display: none;
    }
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .hero h1 {
        font-size: 2.5rem !important;
    }

    .hero p {
        font-size: 1.1rem !important;
    }

    .section {
        padding: 60px 20px;
    }

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

    .founder-grid {
        gap: 40px;
    }

    .founder-card {
        padding: 40px 20px;
    }
}

/* Smooth Scroll */
html {
    scroll-behavior: smooth;
}