:root {
    --bg-dark: #050505;
    --bg-card: #121212;
    --accent-gold: #D4AF37;
    --gold-gradient: linear-gradient(135deg, #D4AF37 0%, #F1D592 50%, #B28F2A 100%);
    --text-primary: #FFFFFF;
    --text-secondary: #A0A0A0;
    --border: rgba(255, 255, 255, 0.05);
}

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

body {
    background-color: var(--bg-dark);
    color: var(--text-primary);
    font-family: 'Be Vietnam Pro', sans-serif;
    overflow-x: hidden;
    scroll-behavior: smooth;
}

.serif {
    font-family: 'Playfair Display', serif;
}

/* Bento Grid Layout */
.bento-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-template-rows: repeat(4, 220px);
    gap: 2rem;
    padding: 3rem;
}

.bento-item {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 2rem;
    padding: 2rem;
    position: relative;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
}

.bento-item:hover {
    border-color: rgba(212, 175, 55, 0.3);
    transform: translateY(-8px);
    box-shadow: 0 30px 60px rgba(0,0,0,0.6);
}

.item-hero { 
    grid-column: span 2; 
    grid-row: span 2; 
    position: relative;
}

.item-hero::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80%;
    height: 80%;
    background: radial-gradient(circle, rgba(212, 175, 55, 0.15) 0%, transparent 70%);
    filter: blur(40px);
    z-index: 0;
    pointer-events: none;
}
.item-about { grid-column: span 2; grid-row: span 1; }
.item-skills { grid-column: span 1; grid-row: span 2; }
.item-experience { grid-column: span 1; grid-row: span 2; }
.item-projects { grid-column: span 2; grid-row: span 2; }
.item-contact { 
    grid-column: span 2; 
    grid-row: span 1;
    display: flex;
    flex-direction: column;
}

/* Fix input and placeholder styles */
input, textarea, select {
    font-family: 'Be Vietnam Pro', sans-serif !important;
}

input::placeholder, textarea::placeholder {
    color: #555 !important;
    font-weight: 400 !important;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: var(--bg-dark);
}
::-webkit-scrollbar-thumb {
    background: #333;
    border-radius: 10px;
}
::-webkit-scrollbar-thumb:hover {
    background: var(--accent-gold);
}

/* Typography & Elements */
.text-gold {
    background: var(--gold-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.8rem 1.5rem;
    background: var(--gold-gradient);
    color: #000;
    border-radius: 100px;
    font-weight: 700;
    text-decoration: none;
    transition: transform 0.3s ease;
}

.btn-primary:hover {
    transform: scale(1.05);
}

/* Responsive */
@media (max-width: 1024px) {
    .bento-grid {
        grid-template-columns: repeat(2, 1fr);
        grid-template-rows: auto;
    }
    .item-hero, .item-projects, .item-contact { grid-column: span 2; }
    .item-skills, .item-experience, .item-about { grid-column: span 1; }
}

@media (max-width: 640px) {
    .bento-grid {
        grid-template-columns: 1fr;
    }
    .bento-item { grid-column: span 1 !important; grid-row: span 1 !important; }
}
