/* --- CSS Variables --- */
:root {
    --bg-color: #030303; /* Deepened for Neons */
    --card-bg: rgba(20, 20, 24, 0.7); /* More transparent for glass effect */
    --card-hover: rgba(30, 30, 36, 0.9);
    --border-color: rgba(255, 255, 255, 0.08);
    
    --text-primary: #ffffff;
    --text-secondary: #a1a1aa;
    
    --accent-blue: #3b82f6;
    --accent-cyan: #06b6d4;
    --accent-magenta: #d946ef;
    
    --border-radius-lg: 20px;
    --border-radius-md: 16px;
    
    --transition-smooth: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275); /* Bouncier modern transition */
}

/* --- Base Reset --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', sans-serif;
}

body {
    background-color: var(--bg-color);
    color: var(--text-primary);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 60px 40px 40px;
    overflow-x: hidden;
}

#neon-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -1; /* Place behind all content */
    pointer-events: none; /* Let clicks pass through */
}

.page-container {
    width: 100%;
    max-width: 1000px; /* Constrains the width nicely like the picture */
    display: flex;
    flex-direction: column;
    gap: 80px; /* Space between sections */
}

/* --- Hero Section --- */
.hero-section {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
    animation: fadeInDown 1s ease forwards;
}

.hero-text {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.badge {
    display: inline-block;
    align-self: flex-start;
    padding: 6px 14px;
    background: rgba(255,255,255,0.05);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.title {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 600;
    line-height: 1;
    letter-spacing: -1px;
    color: var(--text-primary);
    text-shadow: 0 0 20px rgba(255, 255, 255, 0.3); /* Subtle glow on main title */
}

.bio {
    font-size: 1rem;
    line-height: 1.6;
    color: var(--text-secondary);
    max-width: 600px;
    font-family: monospace; /* For that text block from the sketch */
}

.hero-image-container {
    flex-shrink: 0;
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-image {
    width: clamp(150px, 20vw, 250px);
    height: clamp(150px, 20vw, 250px);
    border-radius: 50%;
    overflow: hidden;
    border: 2px solid var(--border-color); 
    box-shadow: 0 0 40px rgba(255, 255, 255, 0.1); /* Subtle white glow */
    background: var(--card-bg);
    transition: var(--transition-smooth);
}

.hero-image:hover {
    border-color: rgba(255, 255, 255, 0.5);
    box-shadow: 0 0 60px rgba(255, 255, 255, 0.3);
    transform: scale(1.05);
}

.hero-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* --- Sections --- */
.content-section {
    width: 100%;
    animation: fadeInUp 1s ease forwards;
    animation-delay: 0.2s;
    opacity: 0;
}

.section-heading {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 8px; /* Reduced to make room for subtitle */
    color: var(--text-primary);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.section-subtitle {
    font-size: 1rem;
    color: var(--text-secondary);
    margin-bottom: 30px;
}

/* --- 3-Column Grid Layout --- */
.grid-3-col {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    width: 100%;
}

/* --- Box Cards (Pills) --- */
.box-card {
    background-color: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-md);
    padding: 20px 25px;
    text-decoration: none;
    color: var(--text-primary);
    transition: var(--transition-smooth);
    display: flex;
    align-items: center;
    cursor: pointer;
    backdrop-filter: blur(12px); /* Glassmorphism over the canvas */
    -webkit-backdrop-filter: blur(12px);
    position: relative;
    overflow: hidden;
}

/* Base box header (used mainly by socials to center content) */
.box-header {
    display: flex;
    align-items: center;
    gap: 15px;
    width: 100%;
    justify-content: center;
}

/* Special alignment for cards with text/descriptions */
.project-card {
    align-items: flex-start;
    gap: 15px;
}

.box-text {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.box-icon {
    font-size: 1.8rem;
    color: var(--text-secondary);
    transition: var(--transition-smooth);
    flex-shrink: 0;
}

.box-title {
    font-size: 1.1rem;
    font-weight: 500;
    transition: var(--transition-smooth);
}

.box-desc {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.4;
}

/* Colors for specific icons if needed without hover */
.icon-cyan { color: var(--accent-cyan); }
.icon-blue { color: var(--accent-blue); }
.icon-magenta { color: var(--accent-magenta); }

/* Hover Effects */
.box-card:hover {
    background-color: var(--card-hover);
    transform: translateY(-5px) scale(1.02);
    border-color: var(--hover-color, rgba(255,255,255,0.8)); 
    box-shadow: 0 0 25px var(--hover-color, rgba(255,255,255,0.4)), 
                inset 0 0 15px rgba(255,255,255,0.05); /* Outer neon glow + inner subtle highlight */
    z-index: 10; /* Bring hovered card above others */
}

.box-card:hover .box-icon {
    color: var(--hover-color, var(--text-primary));
    text-shadow: 0 0 15px var(--hover-color, var(--text-primary)); /* Neonic icon glow */
    transform: scale(1.1);
}

.box-card:hover .box-title {
    color: var(--text-primary);
    text-shadow: 0 0 8px rgba(255,255,255,0.5);
}

/* --- Footer --- */
footer {
    margin-top: auto;
    padding-top: 60px;
    text-align: center;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

/* --- Animations --- */
@keyframes fadeInDown {
    from { opacity: 0; transform: translateY(-30px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Stagger cascade effect for cards */
.grid-3-col a:nth-child(1), .grid-3-col div:nth-child(1) { animation-delay: 0.1s; }
.grid-3-col a:nth-child(2), .grid-3-col div:nth-child(2) { animation-delay: 0.15s; }
.grid-3-col a:nth-child(3), .grid-3-col div:nth-child(3) { animation-delay: 0.2s; }
.grid-3-col a:nth-child(4), .grid-3-col div:nth-child(4) { animation-delay: 0.25s; }
.grid-3-col a:nth-child(5), .grid-3-col div:nth-child(5) { animation-delay: 0.3s; }
.grid-3-col a:nth-child(6), .grid-3-col div:nth-child(6) { animation-delay: 0.35s; }
.grid-3-col a:nth-child(7), .grid-3-col div:nth-child(7) { animation-delay: 0.4s; }
.grid-3-col a:nth-child(8), .grid-3-col div:nth-child(8) { animation-delay: 0.45s; }
.grid-3-col a:nth-child(9), .grid-3-col div:nth-child(9) { animation-delay: 0.5s; }

.box-card {
    animation: fadeInUp 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
    opacity: 0;
}

/* --- Responsive Layouts --- */
@media (max-width: 900px) {
    .grid-3-col {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .hero-section {
        flex-direction: column-reverse; /* Usually text below image on mobile, or keep as is */
        text-align: center;
        gap: 30px;
    }
    
    .badge {
        align-self: center;
    }
    
    .bio {
        margin: 0 auto;
    }

    .grid-3-col {
        grid-template-columns: 1fr;
    }
}
