:root {
    --bg-color: #050505;
    --card-bg: #0a0a0a;
    --text-primary: #f0f0f0;
    --text-secondary: #888888;
    --accent: #4a90e2;
    --accent-glow: rgba(74, 144, 226, 0.25);
    --grid-color: rgba(255, 255, 255, 0.03);
    --border-color: rgba(255, 255, 255, 0.1);
    --border-hover: rgba(255, 255, 255, 0.35);
    --font-ui: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-mono: 'JetBrains Mono', monospace;
}

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

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-color);
    color: var(--text-primary);
    font-family: var(--font-ui);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Background Elements */
.grid-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        linear-gradient(var(--grid-color) 1px, transparent 1px),
        linear-gradient(90deg, var(--grid-color) 1px, transparent 1px);
    background-size: 50px 50px;
    z-index: -2;
    pointer-events: none;
    transition: transform 0.2s ease-out;
}

.grain-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: radial-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px);
    background-size: 24px 24px;
    opacity: 0.35;
    pointer-events: none;
    z-index: -1;
}

#ambient-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -3;
    pointer-events: none;
}

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

/* Header & Status */
.header {
    padding: 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-family: var(--font-mono);
    font-size: 11px;
    letter-spacing: 2px;
}

.logo {
    font-weight: 600;
    letter-spacing: 3px;
    color: var(--text-primary);
}

.status-wrapper {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text-secondary);
}

.status-dot {
    width: 6px;
    height: 6px;
    background-color: #00ff88;
    border-radius: 50%;
    box-shadow: 0 0 10px #00ff88;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { opacity: 1; }
    50% { opacity: 0.3; }
    100% { opacity: 1; }
}

/* Hero Section */
.hero {
    min-height: 65vh;
    display: flex;
    align-items: center;
    padding-top: 60px;
    padding-bottom: 40px;
}

.pre-title {
    font-family: var(--font-mono);
    font-size: 12px;
    color: var(--text-secondary);
    letter-spacing: 4px;
    margin-bottom: 10px;
}

.main-title {
    font-size: clamp(3rem, 8vw, 6rem);
    font-weight: 300;
    letter-spacing: -2px;
    line-height: 1;
    margin-bottom: 10px;
    color: var(--text-primary);
}

.tagline {
    font-size: clamp(1.2rem, 3vw, 2rem);
    font-weight: 300;
    color: var(--text-secondary);
    margin-bottom: 30px;
}

.divider {
    width: 60px;
    height: 1px;
    background: var(--text-primary);
    margin: 40px 0;
}

.description {
    font-size: 1.1rem;
    color: var(--text-secondary);
    max-width: 620px;
    line-height: 1.7;
    margin-bottom: 40px;
}

.highlight {
    color: var(--text-primary);
    font-weight: 400;
}

/* Hero Action Buttons */
.hero-actions {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-mono);
    font-size: 11px;
    letter-spacing: 1.5px;
    padding: 13px 24px;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.19, 1, 0.22, 1);
    border-radius: 2px;
}

.btn-primary {
    background: var(--text-primary);
    color: var(--bg-color);
    border: 1px solid var(--text-primary);
    font-weight: 500;
}

.btn-primary:hover {
    background: #ffffff;
    border-color: #ffffff;
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.03);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
    font-weight: 400;
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: var(--border-hover);
    transform: translateY(-2px);
}

/* Project Cards */
.projects {
    padding: 120px 0;
}

.section-label {
    font-family: var(--font-mono);
    font-size: 10px;
    color: var(--text-secondary);
    margin-bottom: 40px;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 10px;
    letter-spacing: 2px;
}

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

.project-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    padding: 40px;
    transition: all 0.5s cubic-bezier(0.19, 1, 0.22, 1);
    position: relative;
    overflow: hidden;
}

.project-card:hover {
    border-color: rgba(255, 255, 255, 0.4);
    transform: translateY(-5px);
    background: #0f0f0f;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.6);
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 50px;
}

.card-num {
    font-family: var(--font-mono);
    font-size: 12px;
    color: var(--text-secondary);
    letter-spacing: 1px;
}

.card-icon {
    width: 80px;
    color: var(--text-primary);
    opacity: 0.8;
}

.project-card h3 {
    font-size: 1.5rem;
    font-weight: 400;
    margin-bottom: 15px;
    letter-spacing: -0.5px;
    color: var(--text-primary);
}

.project-card p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.65;
    margin-bottom: 40px;
}

.card-footer {
    font-family: var(--font-mono);
    font-size: 10px;
    color: var(--text-secondary);
    letter-spacing: 1.5px;
}

/* Footer */
.footer {
    padding: 70px 20px;
    border-top: 1px solid var(--border-color);
    font-family: var(--font-mono);
    font-size: 11px;
    color: var(--text-secondary);
    letter-spacing: 1.5px;
    text-align: center;
}

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

.footer-brand {
    color: var(--text-primary);
    font-weight: 600;
    letter-spacing: 3px;
    font-size: 12px;
}

.footer-links {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    flex-wrap: wrap;
}

.footer-link,
.footer-btn {
    color: var(--text-secondary);
    text-decoration: none;
    background: none;
    border: none;
    font-family: var(--font-mono);
    font-size: 11px;
    letter-spacing: 1px;
    cursor: pointer;
    padding: 0;
    transition: color 0.2s ease;
}

.footer-link:hover,
.footer-btn:hover {
    color: var(--text-primary);
}

.footer-dot {
    color: rgba(255, 255, 255, 0.2);
    font-size: 8px;
}

.footer-domain {
    color: var(--text-secondary);
    letter-spacing: 1px;
}

.copyright {
    color: var(--text-secondary);
    font-size: 10px;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    margin-top: 6px;
    opacity: 0.85;
}

/* Animations */
.reveal {
    opacity: 0;
    transform: translateY(20px);
    transition: all 1s ease-out;
}

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

/* Request Briefing Modal */
.modal-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(5, 5, 5, 0.85);
    backdrop-filter: blur(8px);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s cubic-bezier(0.19, 1, 0.22, 1);
}

.modal-backdrop.active {
    opacity: 1;
    pointer-events: auto;
}

.modal-card {
    position: relative;
    width: 100%;
    max-width: 480px;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    padding: 40px 36px;
    transform: scale(0.96);
    transition: transform 0.3s cubic-bezier(0.19, 1, 0.22, 1);
}

.modal-backdrop.active .modal-card {
    transform: scale(1);
}

.modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: none;
    border: none;
    color: var(--text-secondary);
    font-size: 24px;
    line-height: 1;
    cursor: pointer;
    transition: color 0.2s ease;
}

.modal-close:hover {
    color: var(--text-primary);
}

.modal-pre {
    font-family: var(--font-mono);
    font-size: 10px;
    letter-spacing: 2px;
    color: var(--text-secondary);
    margin-bottom: 8px;
}

.modal-heading {
    font-size: 1.6rem;
    font-weight: 300;
    color: var(--text-primary);
    margin-bottom: 10px;
    letter-spacing: -0.5px;
}

.modal-text {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: 28px;
    line-height: 1.5;
}

.modal-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-label {
    font-family: var(--font-mono);
    font-size: 10px;
    letter-spacing: 1.5px;
    color: var(--text-secondary);
}

.form-input,
.form-select {
    width: 100%;
    background: #050505;
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    padding: 12px 14px;
    font-family: var(--font-ui);
    font-size: 0.9rem;
    outline: none;
    border-radius: 2px;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-input:focus,
.form-select:focus {
    border-color: rgba(255, 255, 255, 0.4);
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.05);
}

.form-select option {
    background: #0a0a0a;
    color: var(--text-primary);
}

.modal-submit {
    width: 100%;
    justify-content: center;
    margin-top: 8px;
}

.form-feedback {
    margin-top: 16px;
    font-family: var(--font-mono);
    font-size: 11px;
    letter-spacing: 1px;
    text-align: center;
    min-height: 18px;
}

.form-feedback.success {
    color: #00ff88;
}

.form-feedback.error {
    color: #ff5555;
}

/* Responsive */
@media (max-width: 768px) {
    .header { padding: 24px 20px; }
    .footer-content { flex-direction: column; gap: 16px; text-align: center; }
    .projects-grid { grid-template-columns: 1fr; }
    .container { padding: 0 20px; }
    .hero { min-height: 40vh; padding-top: 40px; }
    .project-card { padding: 30px 24px; }
    .modal-card { padding: 30px 20px; }
}
