:root {
    --bg-color: #0a0a0a;
    --bg-secondary: #1a1a1a;
    --text-primary: #e6e6e6;
    --text-secondary: #a0a0a0;
    --accent: #D4AF37;
    --accent-tint: rgba(212, 175, 55, 0.1);
    --font-heading: 'Inter', -apple-system, sans-serif;
    --font-mono: 'Fira Code', monospace;
    --transition: all 0.25s cubic-bezier(0.645, 0.045, 0.355, 1);
}

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

html {
    scroll-behavior: smooth;
}

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

/* Typography */
h1,
h2,
h3,
h4 {
    color: var(--text-primary);
    /* Changed to primary for better contrast, headings usually bright in dark mode */
    font-weight: 700;
}

h1 {
    font-size: clamp(2.5rem, 5vw, 4rem);
    margin-bottom: 1rem;
    line-height: 1.1;
}

h2 {
    font-size: clamp(1.5rem, 3vw, 2rem);
    margin-bottom: 2rem;
    position: relative;
    display: flex;
    align-items: center;
    white-space: nowrap;
}

h2::after {
    content: "";
    display: block;
    width: 200px;
    /* Fixed width line often looks better than % */
    height: 1px;
    background-color: rgba(212, 175, 55, 0.3);
    margin-left: 20px;
}

.mono {
    font-family: var(--font-mono);
    color: var(--accent);
    font-size: 0.9rem;
}

a {
    color: var(--accent);
    text-decoration: none;
    transition: var(--transition);
    position: relative;
    display: inline-block;
}

a:hover {
    color: var(--accent);
}

a.text-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 1px;
    bottom: 0px;
    left: 0;
    background-color: var(--accent);
    transition: var(--transition);
}

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

/* Layout */
.container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 20px;
}

section {
    padding: 100px 0;
}

/* Hero Section */
#hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
}

.hero-content {
    z-index: 10;
    position: relative;
    max-width: 800px;
}

.tagline {
    color: var(--text-secondary);
    font-size: clamp(1.2rem, 2.5vw, 1.5rem);
    margin-bottom: 2rem;
    max-width: 600px;
}

/* Buttons */
.btn {
    border: 1px solid var(--accent);
    border-radius: 4px;
    padding: 1rem 1.5rem;
    font-family: var(--font-mono);
    font-size: 0.9rem;
    color: var(--accent);
    background: transparent;
    transition: var(--transition);
    cursor: pointer;
    text-decoration: none !important;
    display: inline-block;
}

.btn:hover {
    background-color: var(--accent-tint);
}

/* Canvas Background */
#canvas-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    opacity: 0.4;
}

/* Value Prop */
.value-prop {
    border-left: 2px solid var(--accent);
    padding-left: 1.5rem;
    font-style: italic;
    color: var(--text-secondary);
    margin: 2rem 0;
    font-size: 1.1rem;
}

/* Projects Grid */
.projects-grid {
    display: grid;
    gap: 2rem;
}

.project-card {
    background-color: var(--bg-secondary);
    padding: 2rem;
    border-radius: 8px;
    transition: var(--transition);
    position: relative;
    border: 1px solid transparent;
}

.project-card:hover {
    transform: translateY(-5px);
    border-color: rgba(212, 175, 55, 0.3);
    box-shadow: 0 10px 30px -15px rgba(2, 12, 27, 0.7);
}

.project-card h3 {
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.project-card .architecture {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: var(--accent);
    margin-bottom: 1rem;
    display: block;
}

.project-card p {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
}

/* Project name links */
.project-card h3 a,
.project-card ul li strong a,
.project-card ul li a {
    transition: var(--transition);
}

.project-card h3 a:hover {
    color: var(--accent) !important;
    text-decoration: underline !important;
}

/* LIVE badge hover effect */
.project-card h3 a[style*="color: var(--accent)"]:hover {
    opacity: 0.8;
    text-decoration: underline !important;
}

.project-card ul li strong a:hover {
    color: var(--accent) !important;
    text-decoration: underline !important;
}

/* Ensure all links in project cards (including RATU suite) have hover effect */
.project-card ul li a:hover {
    color: var(--accent) !important;
    text-decoration: underline !important;
}

/* Tech Grid */
.tech-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1.5rem;
}

.tech-item {
    background: var(--bg-secondary);
    padding: 1.5rem;
    border-radius: 6px;
    transition: var(--transition);
}

.tech-item:hover {
    background: #15294a;
    /* slightly lighter than bg-secondary */
}

.tech-item h4 {
    color: var(--text-primary);
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

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

/* Footer */
footer {
    padding: 2rem 0;
    text-align: center;
    color: var(--text-secondary);
    font-size: 0.8rem;
    font-family: var(--font-mono);
}

/* Utilities */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

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

/* Responsive */
@media (max-width: 768px) {
    section {
        padding: 60px 0;
    }
}