/* ============================================
   Alain Denis - Professional Website
   Custom CSS Styles
   ============================================ */

/* --- CSS Variables --- */
:root {
    --primary: #1a3a5c;
    --primary-light: #2a5a8c;
    --accent: #c8a456;
    --accent-light: #e0c878;
    --dark: #1a1a2e;
    --light: #f8f9fa;
    --gray: #6c757d;
    --white: #ffffff;
    --shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    --shadow-hover: 0 8px 30px rgba(0, 0, 0, 0.15);
    --transition: all 0.3s ease;
}

/* --- Global --- */
html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: #333;
    line-height: 1.7;
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    color: var(--primary);
}

a {
    color: var(--primary-light);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    color: var(--accent);
}

/* --- Navbar --- */
.navbar {
    background: var(--dark) !important;
    padding: 0.8rem 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    transition: var(--transition);
}

.navbar.scrolled {
    padding: 0.4rem 0;
}

.navbar-brand {
    font-weight: 700;
    font-size: 1.4rem;
    color: var(--white) !important;
    letter-spacing: 1px;
}

.navbar-brand span {
    color: var(--accent);
}

.nav-link {
    color: rgba(255, 255, 255, 0.85) !important;
    font-weight: 500;
    padding: 0.5rem 1rem !important;
    transition: var(--transition);
    font-size: 0.95rem;
}

.nav-link:hover,
.nav-link.active {
    color: var(--accent) !important;
}

.lang-switch {
    border: 1px solid var(--accent);
    border-radius: 20px;
    padding: 0.3rem 1rem !important;
    color: var(--accent) !important;
    font-weight: 600;
    font-size: 0.85rem;
    margin-left: 0.5rem;
    cursor: pointer;
}

.lang-switch:hover {
    background: var(--accent);
    color: var(--dark) !important;
}

/* --- Hero Section --- */
.hero {
    background: linear-gradient(135deg, var(--dark) 0%, var(--primary) 50%, var(--primary-light) 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    padding-top: 80px;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.hero-content {
    position: relative;
    z-index: 1;
}

.hero-photo {
    width: 220px;
    height: 220px;
    border-radius: 50%;
    object-fit: cover;
    border: 5px solid var(--accent);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4);
    margin-bottom: 1.5rem;
}

.hero h1 {
    color: var(--white);
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 0.3rem;
}

.hero-degree {
    color: rgba(255, 255, 255, 0.75);
    font-size: 1.05rem;
    font-weight: 400;
    font-style: italic;
    margin-bottom: 0.8rem;
    letter-spacing: 0.5px;
}

.hero .subtitle {
    color: var(--accent);
    font-size: 1.4rem;
    font-weight: 400;
    margin-bottom: 1rem;
}

.hero .tagline {
    color: rgba(255, 255, 255, 0.8);
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto 2rem;
}

.hero-badges .badge {
    font-size: 0.85rem;
    padding: 0.5rem 1rem;
    margin: 0.25rem;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 30px;
    color: var(--white);
}

.hero .btn-outline-light {
    border-color: var(--accent);
    color: var(--accent);
    border-radius: 30px;
    padding: 0.6rem 2rem;
    font-weight: 600;
    transition: var(--transition);
}

.hero .btn-outline-light:hover {
    background: var(--accent);
    color: var(--dark);
    border-color: var(--accent);
}

.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    animation: bounce 2s infinite;
    color: rgba(255, 255, 255, 0.5);
    font-size: 1.5rem;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateX(-50%) translateY(0); }
    40% { transform: translateX(-50%) translateY(-10px); }
    60% { transform: translateX(-50%) translateY(-5px); }
}

/* --- Section Styles --- */
section {
    padding: 5rem 0;
}

.section-title {
    font-size: 2.2rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background: var(--accent);
    margin-top: 0.5rem;
    border-radius: 2px;
}

.section-subtitle {
    color: var(--gray);
    font-size: 1.1rem;
    margin-bottom: 3rem;
}

.bg-light-custom {
    background-color: #f4f6f9;
}

/* --- About / Profile Section --- */
.about-card {
    background: var(--white);
    border-radius: 15px;
    padding: 2.5rem;
    box-shadow: var(--shadow);
    border: none;
}

.about-card p {
    font-size: 1.05rem;
    color: #555;
}

.profile-badge {
    display: inline-block;
    padding: 0.5rem 1.1rem;
    border-radius: 6px;
    font-size: 0.9rem;
    font-weight: 600;
    margin-right: 0.5rem;
    margin-bottom: 0.5rem;
}

.profile-badge-master {
    background: var(--primary);
    color: var(--white);
}

.profile-badge-mit {
    background: var(--dark);
    color: var(--accent);
}

.about-highlight {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.5rem;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    border-radius: 10px;
    color: var(--white);
    margin-bottom: 1rem;
}

.about-highlight .icon {
    font-size: 2rem;
    color: var(--accent);
}

.about-highlight .number {
    font-size: 2rem;
    font-weight: 800;
    color: var(--accent);
    line-height: 1;
}

.about-highlight .label {
    font-size: 0.9rem;
    opacity: 0.9;
}

/* --- Education Section --- */
.edu-card {
    background: var(--white);
    border-radius: 15px;
    padding: 2rem;
    box-shadow: var(--shadow);
    transition: var(--transition);
    height: 100%;
    border-left: 4px solid var(--accent);
}

.edu-card:hover {
    box-shadow: var(--shadow-hover);
    transform: translateY(-3px);
}

.edu-card .institution {
    color: var(--primary);
    font-weight: 700;
    font-size: 1.15rem;
}

.edu-card .degree {
    color: var(--accent);
    font-weight: 600;
    font-size: 1rem;
}

.edu-card .year {
    color: var(--gray);
    font-size: 0.9rem;
}

/* --- MIT Certifications --- */
.mit-card {
    background: linear-gradient(135deg, var(--dark), var(--primary));
    border-radius: 15px;
    padding: 2rem;
    color: var(--white);
    box-shadow: var(--shadow);
    transition: var(--transition);
    height: 100%;
}

.mit-card:hover {
    box-shadow: var(--shadow-hover);
    transform: translateY(-3px);
}

.mit-card .cert-title {
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--white);
    margin-bottom: 0.5rem;
}

.mit-card .cert-date {
    color: var(--accent);
    font-weight: 600;
    font-size: 0.9rem;
}

.mit-card .cert-icon {
    font-size: 2.5rem;
    color: var(--accent);
    margin-bottom: 1rem;
}

.mit-badge {
    display: inline-block;
    background: var(--accent);
    color: var(--dark);
    padding: 0.3rem 0.8rem;
    border-radius: 5px;
    font-weight: 700;
    font-size: 0.85rem;
    margin-bottom: 1rem;
}

/* --- Experience Section --- */
.timeline {
    position: relative;
    padding-left: 2rem;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background: linear-gradient(to bottom, var(--accent), var(--primary));
    border-radius: 3px;
}

.timeline-item {
    position: relative;
    margin-bottom: 2.5rem;
    padding-left: 1.5rem;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: -2.55rem;
    top: 0.5rem;
    width: 14px;
    height: 14px;
    background: var(--accent);
    border-radius: 50%;
    border: 3px solid var(--white);
    box-shadow: 0 0 0 3px var(--accent);
}

.timeline-card {
    background: var(--white);
    border-radius: 15px;
    padding: 2rem;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.timeline-card:hover {
    box-shadow: var(--shadow-hover);
}

.timeline-card .period {
    color: var(--accent);
    font-weight: 700;
    font-size: 0.9rem;
}

.timeline-card .role {
    font-size: 1.2rem;
    color: var(--primary);
    font-weight: 700;
}

.timeline-card .company {
    font-size: 1rem;
    color: var(--gray);
    font-weight: 500;
}

.timeline-card .description {
    color: #555;
    font-size: 0.95rem;
    margin-top: 0.75rem;
}

.timeline-card .tech-badge {
    display: inline-block;
    background: #e8eef5;
    color: var(--primary);
    padding: 0.2rem 0.6rem;
    border-radius: 5px;
    font-size: 0.8rem;
    margin: 0.15rem;
    font-weight: 500;
}

/* --- Skills Section --- */
.skill-category {
    background: var(--white);
    border-radius: 15px;
    padding: 2rem;
    box-shadow: var(--shadow);
    height: 100%;
    transition: var(--transition);
}

.skill-category:hover {
    box-shadow: var(--shadow-hover);
    transform: translateY(-3px);
}

.skill-category .category-icon {
    font-size: 2.5rem;
    color: var(--accent);
    margin-bottom: 1rem;
}

.skill-category h4 {
    font-size: 1.15rem;
    margin-bottom: 1rem;
}

.skill-tag {
    display: inline-block;
    background: #e8eef5;
    color: var(--primary);
    padding: 0.35rem 0.8rem;
    border-radius: 20px;
    font-size: 0.85rem;
    margin: 0.2rem;
    font-weight: 500;
    transition: var(--transition);
}

.skill-tag:hover {
    background: var(--primary);
    color: var(--white);
}

/* --- Contact Section --- */
.contact-section {
    background: linear-gradient(135deg, var(--dark) 0%, var(--primary) 100%);
    color: var(--white);
}

.contact-section .section-title {
    color: var(--white);
}

.contact-card {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    padding: 2rem;
    text-align: center;
    transition: var(--transition);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.contact-card:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-3px);
}

.contact-card .contact-icon {
    font-size: 2.5rem;
    color: var(--accent);
    margin-bottom: 1rem;
}

.contact-card h5 {
    color: var(--white);
    margin-bottom: 0.5rem;
}

.contact-card a {
    color: var(--accent-light);
}

.contact-card a:hover {
    color: var(--white);
}

.contact-note {
    font-size: 0.82rem;
    color: rgba(255, 255, 255, 0.55);
    font-style: italic;
    margin-top: 0.5rem;
    margin-bottom: 0;
}

/* --- Footer --- */
footer {
    background: var(--dark);
    color: rgba(255, 255, 255, 0.6);
    padding: 2rem 0;
    font-size: 0.9rem;
}

footer a {
    color: var(--accent);
}

footer a:hover {
    color: var(--accent-light);
}

/* --- Utilities --- */
.text-accent {
    color: var(--accent) !important;
}

/* --- Responsive --- */
@media (max-width: 992px) {
    .hero h1 {
        font-size: 2.2rem;
    }
    .hero .subtitle {
        font-size: 1.1rem;
    }
    section {
        padding: 3.5rem 0;
    }
}

@media (max-width: 768px) {
    .hero {
        padding-top: 100px;
    }
    .hero h1 {
        font-size: 1.8rem;
    }
    .hero .subtitle {
        font-size: 1rem;
    }
    .hero-photo {
        width: 160px;
        height: 160px;
    }
    .section-title {
        font-size: 1.8rem;
    }
    .about-highlight {
        flex-direction: column;
        text-align: center;
    }
    .timeline {
        padding-left: 1.5rem;
    }
    .timeline-item {
        padding-left: 1rem;
    }
}

/* --- Print --- */
@media print {
    .navbar, .scroll-indicator, .lang-switch {
        display: none !important;
    }
    .hero {
        min-height: auto;
        padding: 2rem 0;
    }
    section {
        padding: 1.5rem 0;
    }
}
