:root {
    /* Color Palette - White/Open Lab Aesthetic */
    --bg-color: #f8f9fa;
    --surface-color: rgba(255, 255, 255, 0.7);
    --surface-border: rgba(255, 255, 255, 0.4);
    --text-primary: #1a1a1a;
    --text-secondary: #595959;
    --accent-color: #FF4F00;
    /* International Orange */
    --accent-glow: rgba(255, 79, 0, 0.2);
    --glass-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.07);
    --glass-blur: 10px;

    /* Typography */
    --font-main: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
    --font-code: 'Roboto Mono', monospace;
}

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

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

/* Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1.2;
}

h1 {
    font-size: 3.5rem;
    margin-bottom: 1rem;
}

h2 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
}

p {
    margin-bottom: 1rem;
    color: var(--text-secondary);
}

a {
    color: var(--accent-color);
    text-decoration: none;
    transition: all 0.3s ease;
}

/* Utilities */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.glass-panel {
    background: var(--surface-color);
    backdrop-filter: blur(var(--glass-blur));
    -webkit-backdrop-filter: blur(var(--glass-blur));
    border: 1px solid var(--surface-border);
    box-shadow: var(--glass-shadow);
    border-radius: 16px;
    padding: 2rem;
}

.btn {
    display: inline-block;
    padding: 0.8rem 1.5rem;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
}

.btn-primary {
    background-color: var(--accent-color);
    color: white;
    box-shadow: 0 4px 15px var(--accent-glow);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px var(--accent-glow);
}

/* Hero Section */
.hero {
    min-height: 75vh;
    padding: 4rem 0 2rem;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

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

.hero-subtitle {
    font-family: var(--font-code);
    color: var(--accent-color);
    font-size: 1rem;
    margin-bottom: 1rem;
    display: block;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

/* Background Animation Placeholder */
#bg-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    opacity: 0.6;
}

/* Grid System */
.grid-2 {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

@media (min-width: 768px) {
    .grid-2 {
        grid-template-columns: 1fr 1fr;
    }
}

/* Cards */
.card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.1);
}

.card h3 {
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
}

.card-subtitle {
    font-family: var(--font-code);
    font-size: 0.9rem;
    color: var(--accent-color);
    margin-bottom: 1.5rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* Tech List */
.tech-list {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
    margin-bottom: 2rem;
}

.tech-list li span {
    background: rgba(0, 0, 0, 0.05);
    padding: 0.4rem 0.8rem;
    border-radius: 4px;
    font-size: 0.9rem;
    font-weight: 500;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

/* Code Snippet */
.code-snippet {
    background: #1e1e1e;
    /* Dark background for code contrast */
    padding: 1rem;
    border-radius: 8px;
    overflow-x: auto;
}

.code-snippet pre {
    margin: 0;
}

.code-snippet code {
    font-family: var(--font-code);
    color: #d4d4d4;
    font-size: 0.85rem;
}

/* Feature List */
.feature-list {
    list-style: none;
    margin-bottom: 2rem;
}

.feature-list li {
    margin-bottom: 0.8rem;
    padding-left: 1.5rem;
    position: relative;
}

.feature-list li::before {
    content: '>';
    position: absolute;
    left: 0;
    color: #DAA520;
    font-weight: bold;
}

/* Chart Viz */
.chart-viz {
    display: flex;
    align-items: flex-end;
    gap: 10px;
    height: 150px;
    width: 200px;
}

.bar {
    width: 100%;
    background: linear-gradient(to top, #DAA520, #FFD700);
    border-radius: 4px 4px 0 0;
    opacity: 0.8;
    transition: height 0.5s ease;
}

/* Grid 3 for Projects */
.grid-3 {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

@media (min-width: 992px) {
    .grid-3 {
        grid-template-columns: repeat(3, 1fr);
    }
}

.tech-tags {
    margin-top: 1rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.tech-tags span {
    font-size: 0.75rem;
    color: var(--accent-color);
    border: 1px solid var(--accent-color);
    padding: 0.2rem 0.6rem;
    border-radius: 12px;
}

/* Card Images */
.card-img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 1rem;
    border: 1px solid rgba(0, 0, 0, 0.1);
}

/* Responsive Design - Tablet */
@media (max-width: 992px) {
    h1 {
        font-size: 2.5rem;
    }

    h2 {
        font-size: 2rem;
    }

    .container {
        padding: 0 1.5rem;
    }

    .hero {
        min-height: 60vh;
        padding: 3rem 0 2rem;
    }

    .hero>div {
        gap: 2rem !important;
    }

    .hero-profile-img {
        width: 250px !important;
        height: 250px !important;
    }

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

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

    .finance-section p {
        margin: 0 auto;
    }

    .grid-3 {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Responsive Design - Mobile */
@media (max-width: 768px) {
    h1 {
        font-size: 2rem;
        margin-bottom: 1rem;
    }

    h2 {
        font-size: 1.75rem;
        margin-bottom: 1rem;
    }

    .container {
        padding: 0 1rem;
    }

    .glass-panel {
        padding: 1.5rem;
    }

    /* Hero Section Mobile */
    .hero {
        min-height: auto;
        padding: 8rem 0 2rem;
    }

    .hero>div {
        flex-direction: column !important;
        gap: 2rem !important;
        text-align: center;
    }

    .hero-content {
        max-width: 100% !important;
    }

    .hero-profile-img {
        width: 200px !important;
        height: 200px !important;
        order: -1;
    }

    .hero p {
        font-size: 1rem !important;
        max-width: 100% !important;
    }

    /* Navigation Mobile */
    nav.glass-panel {
        padding: 0.75rem 1rem !important;
        width: 95% !important;
    }

    .logo {
        font-size: 1rem !important;
    }

    .nav-links a {
        font-size: 0.8rem !important;
        margin-left: 1rem !important;
    }

    .nav-links .btn {
        padding: 0.4rem 0.8rem !important;
        font-size: 0.8rem !important;
    }

    /* Finance Section Mobile */
    .finance-section {
        text-align: center;
    }

    .finance-section p {
        margin: 0 auto;
        max-width: 100% !important;
    }

    /* Grid System Mobile */
    .grid-3 {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    /* Section Spacing Mobile */
    section {
        padding: 3rem 1rem !important;
    }

    section.hero {
        padding: 8rem 1rem 2rem !important;
    }

    /* Card Adjustments */
    .card h3 {
        font-size: 1.5rem;
    }

    .card p {
        font-size: 0.95rem;
    }

    .tech-tags {
        gap: 0.4rem;
    }

    .tech-tags span {
        font-size: 0.7rem;
        padding: 0.15rem 0.5rem;
    }
}

/* Extra Small Mobile */
@media (max-width: 480px) {
    h1 {
        font-size: 1.75rem;
    }

    h2 {
        font-size: 1.5rem;
    }

    .logo {
        font-size: 0.9rem !important;
    }

    .nav-links a:not(.btn) {
        display: none;
    }

    .nav-links .btn {
        margin-left: 0 !important;
    }

    .hero {
        padding: 7rem 0 2rem;
    }
}