:root {
    --bg-color: #050505;
    --card-bg: #0a0a0a;  /* Slightly lighter black for cards */
    --text-primary: #e5e5e5;
    --text-secondary: #a3a3a3;
    
    /* THE GOLD STANDARD */
    --accent-color: #FFD700;
    --accent-glow: rgba(255, 215, 0, 0.4);
    --hover-color: #e6c200;
    --border-color: #333;
}

body {
    margin: 0; padding: 0;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-primary);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    
    /* Animated Deep Background */
    background: linear-gradient(135deg, #000000, #141414, #000000);
    background-size: 400% 400%;
    animation: gradientBG 10s ease infinite;
}

.container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 4rem 2rem;
    width: 100%;
    box-sizing: border-box;
    animation: fadeIn 1.5s ease-in-out;
}

/* Header Section */
header { 
    margin-bottom: 4rem; 
    text-align: center; 
}

h1 { 
    font-size: clamp(2.5rem, 5vw, 3.5rem); 
    margin: 1rem 0 0.5rem;
    font-weight: 800;
    
    /* Gold Text Gradient */
    background: linear-gradient(to right, #FFD700, #FDB931, #FFFFAC, #FFD700);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-size: 200% auto;
    animation: shine 5s linear infinite;
}

.subtitle {
    color: var(--text-secondary);
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto;
}

.back-link { 
    color: var(--accent-color); 
    text-decoration: none; 
    font-weight: 600; 
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s;
}

.back-link:hover {
    text-shadow: 0 0 10px var(--accent-glow);
    padding-right: 5px; /* Subtle movement */
}

/* Grid Layout */
.project-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
}

/* Premium Cards */
.card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 8px; /* Squared corners for finance look */
    padding: 2.5rem;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: relative;
    overflow: hidden;
}

/* Gold Accent Line on Top of Card */
.card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%;
    height: 3px;
    background: var(--accent-color);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s ease;
}

.card:hover { 
    transform: translateY(-5px); 
    border-color: var(--accent-color);
    box-shadow: 0 10px 30px -10px rgba(0,0,0,0.8);
}

.card:hover::before {
    transform: scaleX(1);
}

.card h2 { 
    margin-top: 0; 
    color: var(--text-primary);
    font-size: 1.5rem;
}

.card p { 
    color: var(--text-secondary); 
    line-height: 1.6; 
    margin-bottom: 2rem;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.8rem 1.5rem;
    background: var(--accent-color);
    color: #000000;
    text-decoration: none;
    border-radius: 4px;
    font-weight: 700;
    text-align: center;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    align-self: flex-start;
}

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

/* Footer */
footer {
    margin-top: 5rem;
    text-align: center;
    color: var(--text-secondary);
    font-size: 0.8rem;
    opacity: 0.6;
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes gradientBG {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

@keyframes shine {
    to { background-position: 200% center; }
}