:root {
    --bg-dark: #001829;
    --bg-darker: #000d16;
    --primary-azure: #007FFF;
    --accent-cyan: #00F3FF;
    --text-main: #ffffff;
    --text-muted: #a0a0a0;
    --glass-bg: rgba(255, 255, 255, 0.05);
    --glass-border: rgba(255, 255, 255, 0.1);
    --glow-shadow: 0 0 20px rgba(0, 127, 255, 0.5);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-dark);
    color: var(--text-main);
    overflow-x: hidden;
    line-height: 1.6;
}

.background-glow {
    position: fixed;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at center, rgba(0, 127, 255, 0.1) 0%, transparent 50%);
    z-index: -1;
    animation: pulseGlow 10s infinite alternate;
}

@keyframes pulseGlow {
    0% {
        transform: scale(1);
        opacity: 0.5;
    }

    100% {
        transform: scale(1.1);
        opacity: 0.8;
    }
}

/* Header */
.glass-header {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 1.5rem 5%;
    background: rgba(0, 24, 41, 0.7);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--glass-border);
    z-index: 1000;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: -0.5px;
    display: flex;
    align-items: center;
    gap: 0.8rem;
    color: var(--text-main);
}

.logo span {
    background: linear-gradient(to right, #fff, var(--text-muted));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.logo .highlight {
    background: linear-gradient(to right, var(--primary-azure), var(--accent-cyan));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.highlight {
    color: var(--primary-azure);
}

.nav-links {
    display: flex;
    gap: 2rem;
    list-style: none;
    align-items: center;
}

.nav-links a {
    color: var(--text-main);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
}

.nav-links a:hover {
    color: var(--accent-cyan);
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--text-main);
    font-size: 1.5rem;
    cursor: pointer;
    z-index: 1002;
    padding: 0.5rem;
}

/* Mobile Sidebar Styling */
@media (max-width: 768px) {
    .menu-toggle {
        display: block;
    }

    .glass-header {
        padding: 1.5rem 1.5rem;
    }

    nav {
        position: absolute;
        width: 0;
        height: 0;
        overflow: hidden;
        /* Only hides the nav container itself, child is fixed */
    }

    /* Override overflow for the fixed child if needed? NO, fixed is relative to viewport */
    /* Actually, verify if overflow: hidden on 0x0 absolute parent hides fixed child. Yes it might! */
    /* So DO NOT use overflow: hidden. */
    /* Just position: absolute is enough to take it out of flex flow. */

    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 75%;
        max-width: 300px;
        height: 100vh;
        background: rgba(0, 13, 22, 0.95);
        backdrop-filter: blur(15px);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 2.5rem;
        transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        z-index: 1001;
        box-shadow: -5px 0 30px rgba(0, 0, 0, 0.5);
        border-left: 1px solid var(--glass-border);
    }

    .nav-links.active {
        right: 0;
    }

    .nav-links a {
        font-size: 1.2rem;
        width: 100%;
        text-align: center;
        padding: 1rem 0;
    }

    /* Overlay for when menu is open */
    .menu-overlay {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0, 0, 0, 0.5);
        z-index: 1000;
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s ease;
        backdrop-filter: blur(2px);
    }

    .menu-overlay.active {
        opacity: 1;
        visibility: visible;
    }
}

.btn-primary {
    background: var(--primary-azure);
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 0 15px rgba(0, 127, 255, 0.3);
}

.btn-primary:hover {
    background: #0066cc;
    box-shadow: 0 0 25px rgba(0, 127, 255, 0.6);
    transform: translateY(-2px);
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: space-evenly;
    padding: 0 10%;
    position: relative;
    padding-top: 80px;
    /* Header height */
}

.hero-content {
    max-width: 600px;
}

.hero h1 {
    font-size: 4rem;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    font-weight: 800;
}

.text-gradient {
    background: linear-gradient(to right, var(--primary-azure), var(--accent-cyan));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero p {
    font-size: 1.25rem;
    color: var(--text-muted);
    margin-bottom: 2.5rem;
}

.cta-group {
    display: flex;
    gap: 1rem;
}

.btn-secondary {
    background: transparent;
    border: 1px solid var(--glass-border);
    color: var(--text-main);
    padding: 0.75rem 1.5rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s;
}

.btn-secondary:hover {
    border-color: var(--primary-azure);
    background: rgba(0, 127, 255, 0.1);
}

/* Hero Visual (New Simulation) */
.hero-visual {
    position: relative;
    width: 600px;
    /* Increased size for simulation */
    height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
}

#architecture-canvas {
    width: 100%;
    height: 100%;
}

@media (max-width: 1200px) {
    .hero-visual {
        width: 100%;
        height: 400px;
        margin-top: 3rem;
    }
}

@media (max-width: 768px) {
    .hero-visual {
        margin-top: 1rem;
        height: 550px;
        /* Increase height to give more vertical room for nodes */
    }
}

/* Features Section */
.features {
    padding: 5rem 10%;
    background: var(--bg-darker);
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.section-subtitle {
    text-align: center;
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto 3rem;
    font-size: 1.1rem;
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.glass-card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    padding: 2rem;
    border-radius: 20px;
    transition: transform 0.3s, border-color 0.3s;
}

.glass-card:hover {
    transform: translateY(-10px);
    border-color: var(--primary-azure);
    background: rgba(255, 255, 255, 0.08);
}

.icon-box {
    width: 50px;
    height: 50px;
    background: rgba(0, 127, 255, 0.2);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    color: var(--accent-cyan);
}

.glass-card h3 {
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.glass-card p {
    color: var(--text-muted);
}

/* Skills Radar Section */
.skills-radar-section {
    padding: 5rem 10%;
    background: var(--bg-darker);
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Certifications Section */
.certifications {
    padding: 6rem 10%;
    background: var(--bg-dark);
}

.radar-container {
    width: 100%;
    max-width: 1500px;
    margin-top: 2rem;
    position: relative;
    padding: 2.5rem;
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    background: rgba(0, 31, 53, 0.4);
    align-items: center;
}

@media (min-width: 1100px) {
    .radar-container {
        grid-template-columns: 1fr 1.2fr 1fr;
    }
}

.radar-visual {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

.skills-summary {
    background: rgba(255, 255, 255, 0.03);
    border-radius: 16px;
    padding: 2rem;
    border: 1px solid var(--glass-border);
    height: 100%;
}

.skills-summary h3 {
    font-size: 1.5rem;
    margin-bottom: 2rem;
    color: var(--accent-cyan);
    border-bottom: 1px solid var(--glass-border);
    padding-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.status-list {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.status-item {
    transition: all 0.3s ease;
}

.status-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
}

.status-title {
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--text-main);
}

.status-pct {
    font-size: 0.9rem;
    color: var(--accent-cyan);
    font-weight: 600;
}

.status-desc {
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.5;
    background: rgba(255, 255, 255, 0.02);
    padding: 0.8rem;
    border-radius: 8px;
    border-left: 2px solid var(--primary-azure);
}

#skills-radar-canvas {
    max-width: 100%;
    height: auto;
    cursor: crosshair;
}

.radar-tooltip {
    position: absolute;
    background: rgba(0, 24, 41, 0.9);
    backdrop-filter: blur(10px);
    border: 1px solid var(--primary-azure);
    padding: 0.5rem 1rem;
    border-radius: 8px;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.2s;
    z-index: 100;
    box-shadow: 0 0 20px rgba(0, 127, 255, 0.4);
    font-size: 0.9rem;
    color: white;
}

.certifications-container {
    position: relative;
    padding: 0 5%;
}

.cert-grid {
    display: flex;
    gap: 1.5rem;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    padding: 1.5rem 2%;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.cert-grid::-webkit-scrollbar {
    display: none;
}

.cert-card {
    flex: 0 0 85%;
    min-width: 0;
    scroll-snap-align: center;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.05), rgba(0, 31, 53, 0.6));
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    padding: 1.5rem 1rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.cert-icon {
    width: 80px;
    height: 80px;
    object-fit: contain;
    filter: drop-shadow(0 0 10px rgba(0, 127, 255, 0.3));
}

/* Tablet: 2 items */
@media (min-width: 768px) {
    .cert-card {
        flex: 0 0 calc((100% - 2rem) / 2);
    }
}

/* Desktop: 4 items */
@media (min-width: 1024px) {
    .cert-card {
        flex: 0 0 calc((100% - 4.5rem) / 4);
    }
}

.roadmap-header {
    display: flex;
    gap: 2rem;
    align-items: center;
    margin-bottom: 3rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid var(--glass-border);
}

.roadmap-icon {
    width: 50px;
    height: 50px;
    object-fit: contain;
}

.cert-badge {
    background: linear-gradient(135deg, var(--primary-azure), #004d99);
    color: white;
    font-size: 1.5rem;
    font-weight: 800;
    padding: 1rem;
    border-radius: 12px;
    box-shadow: 0 0 20px rgba(0, 127, 255, 0.4);
    min-width: 100px;
    text-align: center;
}

.cert-info h3 {
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
}

.progress-bar-container {
    margin-top: 1rem;
    background: rgba(255, 255, 255, 0.1);
    height: 8px;
    border-radius: 4px;
    position: relative;
    width: 100%;
}

.progress-bar {
    height: 100%;
    background: var(--accent-cyan);
    border-radius: 4px;
    width: 0%;
    transition: width 0.5s ease-out;
    box-shadow: 0 0 10px var(--accent-cyan);
}

.progress-text {
    position: absolute;
    right: 0;
    top: -25px;
    font-size: 0.9rem;
    color: var(--accent-cyan);
    font-weight: 600;
}

/* Roadmap Timeline */
.roadmap-timeline {
    position: relative;
    padding-left: 2rem;
    border-left: 2px solid var(--glass-border);
    margin-left: 1rem;
}

.roadmap-item {
    position: relative;
    margin-bottom: 2rem;
    padding-left: 1.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.roadmap-item::before {
    content: '';
    position: absolute;
    left: -2.6rem;
    top: 0.25rem;
    width: 20px;
    height: 20px;
    background: var(--bg-dark);
    border: 2px solid var(--text-muted);
    border-radius: 50%;
    transition: all 0.3s ease;
    z-index: 1;
}

.roadmap-item:hover {
    transform: translateX(10px);
}

.roadmap-item h4 {
    font-size: 1.2rem;
    color: var(--text-main);
    margin-bottom: 0.5rem;
}

.roadmap-item p {
    font-size: 0.95rem;
    color: var(--text-muted);
}

/* Completed State */
.roadmap-item.completed::before {
    background: var(--accent-cyan);
    border-color: var(--accent-cyan);
    box-shadow: 0 0 15px var(--accent-cyan);
}

.roadmap-item.completed h4 {
    color: var(--accent-cyan);
    text-shadow: 0 0 10px rgba(0, 243, 255, 0.3);
}

/* Responsive adjustments for Certifications */
@media (max-width: 768px) {
    .roadmap-header {
        flex-direction: column;
        text-align: center;
    }

    .cert-info h3 {
        font-size: 1.4rem;
    }
}

/* Posts Section */
.posts-section,
.events-section {
    padding: 5rem 0;
    /* Removing side padding to allow full width carousel feel or control via container */
    background: var(--bg-darker);
    position: relative;
    overflow: hidden;
    /* Prevent horizontal scroll on body */
}

.posts-section .section-title,
.events-section .section-title {
    /* Re-align title */
    margin-bottom: 2rem;
}

.posts-container,
.events-container {
    position: relative;
    padding: 0 5%;
    /* Arrows space */
}

.posts-grid,
.events-grid {
    display: flex;
    gap: 2rem;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    padding: 1rem 5%;
    /* Side padding inside scroll area */
    scrollbar-width: none;
    /* Firefox */
    -ms-overflow-style: none;
    /* IE 10+ */
}

.posts-grid::-webkit-scrollbar,
.events-grid::-webkit-scrollbar {
    display: none;
    /* Chrome/Safari */
}

.post-card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.3s ease;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    height: 100%;

    /* Carousel item sizing: 
       Show 4 items at a time on Desktop.
       Calculation: (100% container width - 3 gaps of 2rem) / 4 items
       6rem = 3 * 2rem
    */
    flex: 0 0 85%;
    /* Mobile: 1 item fully visible with peek */
    min-width: 0;
    scroll-snap-align: center;
}

/* Tablet: 2 items */
@media (min-width: 600px) {
    .post-card {
        flex: 0 0 calc((100% - 2rem) / 2);
    }
}

/* Desktop: 4 items (User Request) */
@media (min-width: 1024px) {
    .post-card {
        flex: 0 0 calc((100% - 6rem) / 4);
    }
}

.nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 31, 53, 0.7);
    border: 1px solid var(--glass-border);
    color: var(--primary-azure);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    backdrop-filter: blur(5px);
    transition: all 0.3s ease;
}

.nav-btn:hover {
    background: var(--primary-azure);
    color: white;
    box-shadow: 0 0 15px var(--primary-azure);
}

.prev-btn {
    left: 2%;
    /* Adjusted for container padding */
}

.next-btn {
    right: 2%;
}

/* Hide buttons on touch devices if preferred, but keep for now */
@media (hover: none) and (pointer: coarse) {
    .nav-btn {
        display: none;
    }
}

.post-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary-azure);
    box-shadow: 0 10px 30px rgba(0, 127, 255, 0.2);
}

.post-image {
    width: 100%;
    height: 180px;
    object-fit: cover;
    border-bottom: 1px solid var(--glass-border);
}

.post-content {
    padding: 1.5rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.post-date {
    font-size: 0.85rem;
    color: var(--accent-cyan);
    margin-bottom: 0.5rem;
}

.post-card h3 {
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
    line-height: 1.4;
}

.post-excerpt {
    font-size: 0.95rem;
    color: var(--text-muted);
    margin-bottom: 1.5rem;
    flex-grow: 1;
}

.view-more-container {
    text-align: center;
    margin-top: 2rem;
}

.arrow-icon {
    font-size: 1.2em;
}

.read-more {
    font-size: 0.9rem;
    color: var(--primary-azure);
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 13, 22, 0.9);
    backdrop-filter: blur(5px);
}

.modal-content {
    background: #001f35;
    margin: 5% auto;
    padding: 2.5rem;
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    width: 90%;
    max-width: 800px;
    position: relative;
    box-shadow: 0 0 50px rgba(0, 127, 255, 0.3);
    animation: modalSlideIn 0.4s ease-out;
}

@keyframes modalSlideIn {
    from {
        transform: translateY(-30px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.close-modal {
    color: var(--text-muted);
    float: right;
    font-size: 2rem;
    font-weight: bold;
    cursor: pointer;
    line-height: 1;
    transition: color 0.3s;
}

.close-modal:hover {
    color: var(--accent-cyan);
}

/* Modal Body Content Styling */
#modal-body h2 {
    font-size: 2rem;
    margin-bottom: 0.5rem;
    color: var(--text-main);
}

#modal-body .modal-date {
    color: var(--accent-cyan);
    font-size: 0.9rem;
    display: block;
    margin-bottom: 2rem;
}

#modal-body img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 1.5rem 0;
}

#modal-body h3,
#modal-body h4 {
    margin-top: 2rem;
    margin-bottom: 1rem;
    color: var(--text-main);
}

#modal-body p {
    margin-bottom: 1rem;
    color: #e0e0e0;
    line-height: 1.7;
}

#modal-body ul,
#modal-body ol {
    margin-bottom: 1.5rem;
    padding-left: 1.5rem;
    color: #e0e0e0;
}

#modal-body li {
    margin-bottom: 0.5rem;
}

#modal-body pre {
    background: #000d16;
    padding: 1rem;
    border-radius: 8px;
    overflow-x: auto;
    margin: 1.5rem 0;
    border: 1px solid var(--glass-border);
}

#modal-body code {
    font-family: 'Consolas', monospace;
    color: var(--accent-cyan);
}

/* Contact Section */
.contact-section {
    padding: 5rem 10%;
    position: relative;
    z-index: 10;
}

.contact-container {
    max-width: 600px;
    margin: 0 auto;
    padding: 3rem;
    border-radius: 16px;
    box-shadow: 0 0 40px rgba(0, 127, 255, 0.1);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-status-message {
    display: none;
    margin-top: 1rem;
    color: var(--accent-cyan);
    text-align: center;
}

.form-status-message.visible {
    display: block;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 1rem;
    background: rgba(0, 31, 53, 0.4);
    border: 1px solid var(--glass-border);
    border-radius: 8px;
    color: var(--text-main);
    font-size: 1rem;
    transition: all 0.3s ease;
    font-family: inherit;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-azure);
    background: rgba(0, 31, 53, 0.7);
    box-shadow: 0 0 15px rgba(0, 127, 255, 0.2);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

/* Footer */
footer {
    text-align: center;
    padding: 2rem;
    color: var(--text-muted);
    border-top: 1px solid var(--glass-border);
}

/* Animations */
.fade-in-up {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.8s forwards;
}

.fade-in {
    opacity: 0;
    animation: fadeIn 1s forwards;
}

.delay-1 {
    animation-delay: 0.2s;
}

.delay-2 {
    animation-delay: 0.4s;
}

.delay-3 {
    animation-delay: 0.6s;
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    to {
        opacity: 1;
    }
}

/* Responsive */
@media (max-width: 768px) {
    .hero {
        flex-direction: column;
        text-align: center;
        padding-top: 120px;
    }

    .hero-content {
        margin-bottom: 3rem;
    }

    .cta-group {
        justify-content: center;
    }

    .hero h1 {
        font-size: 2.5rem;
    }
}

/* --- Futuristic Events Styling --- */

/* Larger, more prominent event cards */
.event-card {
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.05) 0%, rgba(0, 20, 40, 0.8) 100%);
    border: 1px solid rgba(0, 243, 255, 0.2);
    border-radius: 20px;
    overflow: hidden;
    transition: all 0.4s ease;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    height: 100%;
    min-width: 0;
    scroll-snap-align: center;
    position: relative;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);

    /* Larger sizing */
    flex: 0 0 85%;
    /* Mobile */
}

@media (min-width: 600px) {
    .event-card {
        flex: 0 0 calc((100% - 2rem) / 2);
    }
}

@media (min-width: 1024px) {
    .event-card {
        flex: 0 0 calc((100% - 4rem) / 4);
        /* 3 items per row for larger impact */
    }
}

.event-card:hover {
    transform: translateY(-8px) scale(1.02);
    border-color: var(--accent-cyan);
    box-shadow: 0 0 40px rgba(0, 127, 255, 0.4);
}

.event-image-container {
    position: relative;
    height: 220px;
    overflow: hidden;
}

.event-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.event-card:hover .event-image {
    transform: scale(1.1);
}

.event-content {
    padding: 2rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    position: relative;
}

.event-date {
    position: absolute;
    top: 20px;
    right: 20px;
    background: var(--primary-azure);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 50px;
    font-weight: 700;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    border: 1px solid var(--accent-cyan);
}

.event-location {
    color: var(--accent-cyan);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 0.5rem;
    display: block;
}

.event-card h3 {
    font-size: 1.6rem;
    margin-bottom: 1.5rem;
    line-height: 1.3;
    background: linear-gradient(to right, #fff, #b3e0ff);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    min-height: 2.6em;
    /* Ensure minimum height for alignment */
}

/* Digital Dashboard Countdown */
.digital-countdown {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.countdown-segment {
    background: rgba(0, 13, 22, 0.8);
    border: 1px solid var(--primary-azure);
    border-radius: 8px;
    padding: 0.5rem;
    flex: 1;
    text-align: center;
    box-shadow: 0 0 10px rgba(0, 127, 255, 0.1) inset;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.segment-number {
    font-family: 'Courier New', monospace;
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--accent-cyan);
    text-shadow: 0 0 5px var(--accent-cyan);
    line-height: 1;
}

.segment-label {
    font-size: 0.7rem;
    color: var(--text-muted);
    text-transform: uppercase;
    margin-top: 2px;
}

.event-excerpt {
    font-size: 1rem;
    color: #ccc;
    margin-bottom: 2rem;
    border-left: 2px solid var(--glass-border);
    padding-left: 1rem;
}

.event-cta {
    margin-top: auto;
    width: 100%;
    padding: 1rem;
    background: rgba(0, 127, 255, 0.1);
    color: white;
    border: 1px solid var(--primary-azure);
    border-radius: 8px;
    font-weight: 600;
    text-align: center;
    transition: all 0.3s;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.event-card:hover .event-cta {
    background: var(--primary-azure);
    box-shadow: 0 0 20px rgba(0, 127, 255, 0.6);
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    padding: 4rem;
    max-width: 1100px;
    margin: 0 auto;
}

.contact-info h3 {
    font-size: 2rem;
    margin-bottom: 1.5rem;
    color: var(--accent-cyan);
}

.contact-info p {
    font-size: 1.1rem;
    color: var(--text-muted);
    margin-bottom: 2.5rem;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.detail-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 1rem;
}

.detail-item .icon {
    font-size: 1.5rem;
}

@media (max-width: 900px) {
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
        padding: 2rem;
    }
}

.cert-icon {
    width: 80px;
    height: 80px;
    object-fit: contain;
    filter: drop-shadow(0 0 10px rgba(0, 127, 255, 0.5));
    transition: transform 0.8s ease-in-out;
}

.cert-card:hover .cert-icon {
    transform: rotateY(360deg);
}

.cert-card h3 {
    font-size: 1.5rem;
    color: var(--text-main);
    margin: 0;
}

.cert-card p {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.roadmap-view {
    display: none;
    /* Hidden by default */
    animation: fadeIn 0.5s ease-out;
}

.back-btn-container {
    max-width: 900px;
    margin: 0 auto 2rem auto;
}

.btn-back {
    background: transparent;
    border: 1px solid var(--primary-azure);
    color: var(--primary-azure);
    padding: 0.5rem 1.5rem;
    border-radius: 50px;
    cursor: pointer;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s;
}

.btn-back:hover {
    background: rgba(0, 127, 255, 0.1);
    box-shadow: 0 0 15px rgba(0, 127, 255, 0.3);
}

/* Override existing container for seamless transition */
.roadmap-container {
    display: block;
    /* Content inside roadmap view */
}

/* Roadmap Modal Content */
.roadmap-timeline {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-top: 2rem;
}

.roadmap-module {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(0, 243, 255, 0.1);
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.roadmap-module:hover {
    border-color: rgba(0, 243, 255, 0.3);
    background: rgba(255, 255, 255, 0.05);
}

.module-header {
    padding: 1.2rem 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    background: rgba(0, 127, 255, 0.05);
}

.module-header h4 {
    margin: 0;
    color: var(--primary-azure);
    font-size: 1.1rem;
}

.toggle-icon {
    transition: transform 0.3s ease;
    color: var(--text-muted);
}

.roadmap-module.expanded .toggle-icon {
    transform: rotate(180deg);
}

.module-body {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
    padding: 0 1.5rem;
}

.roadmap-module.expanded .module-body {
    max-height: 1000px;
    padding: 1rem 1.5rem 1.5rem;
}

.module-body p {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 1.2rem;
}

/* Submodules */
.submodule-list {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.submodule-row {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.8rem;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid transparent;
    cursor: pointer;
    transition: all 0.2s ease;
}

.submodule-row:hover {
    background: rgba(0, 243, 255, 0.05);
    border-color: rgba(0, 243, 255, 0.2);
}

.submodule-row.checked {
    background: rgba(0, 255, 127, 0.03);
}

.custom-checkbox {
    width: 22px;
    height: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid rgba(0, 243, 255, 0.3);
    color: transparent;
    /* Hide check icon by default */
    font-size: 0.8rem;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.custom-checkbox.active {
    background: var(--primary-azure);
    border-color: var(--primary-azure);
    color: white;
    /* Show check icon */
    box-shadow: 0 0 10px rgba(0, 243, 255, 0.5);
}

.submodule-row.checked .submodule-item {
    color: var(--accent-cyan);
}

.toggle-icon {
    font-size: 0.9rem;
    transition: transform 0.3s ease;
    color: var(--text-muted);
}

.roadmap-module.expanded .toggle-icon {
    transform: rotate(180deg);
    color: var(--primary-azure);
}