/* Reset & Base Styles */
:root {
    /* Deep Space Theme */
    --bg-color: #050510;
    /* Ultra dark blue/black */
    --text-color: #e2e8f0;
    /* Soft white */
    --primary-color: #00f2ff;
    /* Neon Cyan */
    --secondary-color: #bd00ff;
    /* Neon Purple */
    --accent-color: #ff0055;
    /* Neon Pink */

    --card-bg: rgba(30, 41, 59, 0.4);
    /* Glass effect base */
    --border-color: rgba(255, 255, 255, 0.1);

    --font-main: 'Inter', system-ui, sans-serif;
    --max-width: 1200px;
}

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

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    font-family: var(--font-main);
    line-height: 1.6;
    /* Starry Background */
    background-image:
        radial-gradient(1px 1px at 20px 30px, #fff, rgba(0, 0, 0, 0)),
        radial-gradient(1px 1px at 40px 70px, #ffffff, rgba(0, 0, 0, 0)),
        radial-gradient(1px 1px at 50px 160px, #ffffff, rgba(0, 0, 0, 0)),
        radial-gradient(2px 2px at 90px 40px, #ffffff, rgba(0, 0, 0, 0)),
        radial-gradient(2px 2px at 130px 80px, #ffffff, rgba(0, 0, 0, 0));
    background-repeat: repeat;
    background-size: 200px 200px;
    background-attachment: fixed;
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

ul {
    list-style: none;
}

.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 20px;
}

.section {
    padding: 80px 0;
}

.section-title {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 50px;
    font-weight: 800;
    background: linear-gradient(to right, var(--primary-color), var(--secondary-color));
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: -1px;
}

/* Header & Nav */
header {
    background: rgba(5, 5, 16, 0.8);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 1rem 0;
}

nav {
    max-width: var(--max-width);
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
}

.logo {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--primary-color);
    font-family: 'Courier New', monospace;
    /* Tech feel */
}

.nav-links {
    display: flex;
    gap: 30px;
}

.nav-links a:hover {
    color: var(--primary-color);
    text-shadow: 0 0 10px rgba(0, 242, 255, 0.5);
}

/* Hero Section */
.hero {
    min-height: 90vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

/* Decorative Glow behind Hero */
.hero::before {
    content: '';
    position: absolute;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(123, 44, 191, 0.15) 0%, rgba(0, 0, 0, 0) 70%);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: -1;
}

.hero-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    max-width: var(--max-width);
    padding: 0 40px;
    gap: 50px;
}

.hero-text {
    flex: 1;
}

.hero-text h1 {
    font-size: 4rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 15px;
    color: #fff;
}

.subtitle {
    font-size: 1.8rem;
    color: #94a3b8;
    margin-bottom: 10px;
    font-weight: 600;
}

.tagline {
    font-size: 1rem;
    color: #64748b;
    margin-bottom: 30px;
}

.typing-text {
    color: var(--secondary-color);
}

.hero-actions {
    display: flex;
    gap: 15px;
}

.btn {
    padding: 12px 25px;
    background: var(--primary-color);
    color: #000;
    border-radius: 8px;
    font-weight: 700;
    box-shadow: 0 0 15px rgba(0, 242, 255, 0.3);
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 25px rgba(0, 242, 255, 0.6);
}

.btn-outline {
    background: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
    box-shadow: none;
}

.btn-outline:hover {
    background: rgba(0, 242, 255, 0.1);
}

.profile-pic {
    width: 320px;
    height: 320px;
    background-color: #1e1e1e;
    border-radius: 20px;
    background-image: url('placeholder-profile.jpg');
    /* User to update */
    background-size: cover;
    background-position: center;
    box-shadow: 20px 20px 0px rgba(123, 44, 191, 0.2);
    /* Hard shadow lite */
    border: 1px solid var(--border-color);
    transform: rotate(3deg);
    transition: transform 0.3s ease;
}

.profile-pic:hover {
    transform: rotate(0deg) scale(1.02);
}

/* BENTO GRID (The Hub) */
.bento-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-template-rows: auto auto;
    gap: 20px;
}

.bento-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 25px;
    transition: transform 0.3s ease, border-color 0.3s ease;
    display: flex;
    flex-direction: column;
}

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

.bento-card h3 {
    font-size: 1.2rem;
    margin-bottom: 15px;
    color: var(--primary-color);
    display: flex;
    align-items: center;
    gap: 10px;
}

/* Grid Areas */
.bio-card {
    grid-column: span 2;
    grid-row: span 1;
}

.stats-card {
    grid-column: span 1;
}

.school-card {
    grid-column: span 1;
}

.diploma-card {
    grid-column: span 1;
}

.future-card {
    grid-column: span 3;
}

/* Specific Card Styles */
.stats-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.stats-list li {
    font-size: 0.9rem;
    display: flex;
    justify-content: space-between;
}

.mini-timeline .mt-item {
    margin-bottom: 10px;
    font-size: 0.9rem;
    border-left: 2px solid var(--secondary-color);
    padding-left: 10px;
}

.mt-item .year {
    font-weight: bold;
    color: var(--text-color);
    display: block;
}

.mt-item .detail {
    font-size: 0.8rem;
    color: #94a3b8;
}

.languages {
    font-size: 1.5rem;
    margin-top: 10px;
    display: flex;
    gap: 10px;
}

/* Skills - Icon Grid */
.skills-wrapper {
    display: flex;
    justify-content: center;
    padding: 20px 0;
}

.tech-icons {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 25px;
    max-width: 900px;
    /* Constrain width to force wrapping nice */
}

.skill-icon {
    width: 65px;
    /* Adjust size as needed, user wanted "big cards" */
    height: 65px;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    cursor: pointer;
    filter: drop-shadow(0 0 5px rgba(0, 0, 0, 0.5));
}

.skill-icon:hover {
    transform: translateY(-8px) scale(1.1);
    filter: drop-shadow(0 10px 15px rgba(0, 242, 255, 0.4));
}

/* Timeline (Odyssée) */
.timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 2px;
    height: 100%;
    background: linear-gradient(to bottom, var(--primary-color), var(--secondary-color));
    opacity: 0.3;
}

.timeline-item {
    margin-bottom: 50px;
    position: relative;
    width: 100%;
}

.timeline-content {
    background: var(--card-bg);
    backdrop-filter: blur(5px);
    border: 1px solid var(--border-color);
    padding: 20px;
    border-radius: 15px;
    width: 45%;
    position: relative;
    transition: 0.3s;
}

.timeline-item:nth-child(odd) .timeline-content {
    left: 0;
}

.timeline-item:nth-child(even) .timeline-content {
    left: 55%;
}

.timeline-date {
    position: absolute;
    top: -30px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--bg-color);
    border: 1px solid var(--primary-color);
    padding: 5px 15px;
    border-radius: 20px;
    color: var(--primary-color);
    font-weight: bold;
    font-size: 0.8rem;
    z-index: 2;
}

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

.project-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    overflow: hidden;
    transition: 0.3s;
}

.project-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
    border-color: var(--secondary-color);
}

.project-image {
    height: 200px;
    width: 100%;
}

.project-info {
    padding: 25px;
}

/* Footer */
footer {
    text-align: center;
    padding: 50px 0;
    margin-top: 50px;
    border-top: 1px solid var(--border-color);
    font-size: 0.9rem;
    color: #64748b;
}

/* Responsive Bento Grid */
@media (max-width: 900px) {
    .bento-grid {
        grid-template-columns: 1fr;
    }

    .bio-card,
    .stats-card,
    .school-card,
    .diploma-card,
    .future-card {
        grid-column: span 1;
    }

    .hero-container {
        flex-direction: column;
        text-align: center;
    }

    .hero-actions {
        justify-content: center;
    }

    .timeline::before {
        left: 20px;
    }

    .timeline-item .timeline-content {
        width: calc(100% - 60px);
        left: 60px !important;
    }

    .timeline-date {
        left: 20px;
        transform: none;
        top: -10px;
    }
}
