@import url("https://fonts.googleapis.com/css2?family=Space+Mono:wght@400;700&display=swap");

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

:root {
    --bg: #000000;
    --text: #ffffff;
    --accent: #ff3b30;
    --secondary: #1a1a1a;
    --teal: #00d9ff;
}

body {
    font-family: "Space Mono", monospace;
    background: #000000;
    color: var(--text);
    overflow-x: hidden;
    line-height: 1.6;
}

/* Gradient Background - Nothing Style */
body::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        180deg,
        #000000 0%,
        #001a1a 30%,
        #003333 60%,
        #005555 80%,
        #007070 100%
    );
    z-index: -2;
    opacity: 0.8;
}

/* Alternative gradient for different pages */
.gradient-alt::before {
    background: linear-gradient(180deg, #1a1a1a 0%, #2d2d2d 50%, #1a1a1a 100%);
}

/* Dot Matrix Background */
.dot-matrix {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    opacity: 0.4;
    background-image: radial-gradient(
        circle,
        rgba(255, 255, 255, 0.15) 1px,
        transparent 1px
    );
    background-size: 30px 30px;
    pointer-events: none;
}

/* Scroll Progress */
.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    width: 0%;
    height: 3px;
    background: var(--accent);
    z-index: 9999;
    transition: width 0.1s;
    box-shadow: 0 0 10px var(--accent);
}

/* Navigation */
nav {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 1.5rem 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1000;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.logo {
    font-size: 1.4rem;
    font-weight: 700;
    letter-spacing: 3px;
    text-transform: uppercase;
}

.nav-links {
    display: flex;
    gap: 2.5rem;
    list-style: none;
}

.nav-links a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 400;
    transition: all 0.3s;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--text);
}

.nav-links a.active {
    color: var(--accent);
}

/* Menu Toggle */
.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 6px;
    cursor: pointer;
}

.menu-toggle span {
    width: 25px;
    height: 2px;
    background: var(--text);
    transition: all 0.3s;
}

/* Section Styles */
section {
    padding: 8rem 10%;
    position: relative;
    z-index: 1;
    min-height: 50vh;
}

.section-header {
    margin-bottom: 5rem;
}

.section-label {
    font-size: 0.75rem;
    color: var(--accent);
    text-transform: uppercase;
    letter-spacing: 3px;
    font-weight: 700;
    margin-bottom: 1rem;
}

.section-title {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -1px;
    text-transform: uppercase;
}

/* Hero Section */
#hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    padding: 0 10%;
}

.hero-label {
    font-size: 0.75rem;
    color: var(--accent);
    text-transform: uppercase;
    letter-spacing: 3px;
    font-weight: 700;
    margin-bottom: 1.5rem;
    opacity: 0;
    animation: fadeInUp 0.8s forwards 0.2s;
}

.hero-title {
    font-size: clamp(2.5rem, 8vw, 6rem);
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 2rem;
    letter-spacing: -2px;
    opacity: 0;
    animation: fadeInUp 0.8s forwards 0.4s;
    text-transform: uppercase;
}

.hero-subtitle {
    font-size: clamp(1rem, 2.5vw, 1.3rem);
    color: rgba(255, 255, 255, 0.7);
    max-width: 700px;
    line-height: 1.8;
    margin-bottom: 3rem;
    opacity: 0;
    animation: fadeInUp 0.8s forwards 0.6s;
    font-weight: 400;
}

.hero-stats {
    display: flex;
    gap: 4rem;
    margin-bottom: 3rem;
    opacity: 0;
    animation: fadeInUp 0.8s forwards 0.8s;
}

.stat-item {
    display: flex;
    flex-direction: column;
}

.stat-number {
    font-size: 3rem;
    font-weight: 700;
    color: var(--accent);
    line-height: 1;
    letter-spacing: 2px;
}

.stat-label {
    font-size: 0.7rem;
    color: rgba(255, 255, 255, 0.5);
    margin-top: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.hero-cta {
    display: flex;
    gap: 1.5rem;
    opacity: 0;
    animation: fadeInUp 0.8s forwards 1s;
}

.cta-button,
.cta-button-secondary {
    padding: 1.2rem 2.5rem;
    text-decoration: none;
    font-weight: 700;
    font-size: 0.85rem;
    transition: all 0.3s;
    letter-spacing: 2px;
    text-transform: uppercase;
    font-family: "Space Mono", monospace;
}

.cta-button {
    background: var(--accent);
    border: 2px solid var(--accent);
    color: var(--text);
}

.cta-button:hover {
    background: transparent;
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(255, 59, 48, 0.3);
}

.cta-button-secondary {
    background: transparent;
    border: 2px solid rgba(255, 255, 255, 0.3);
    color: var(--text);
}

.cta-button-secondary:hover {
    border-color: rgba(255, 255, 255, 0.8);
    transform: translateY(-3px);
}

/* Featured Grid */
.featured-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.featured-card {
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 3rem;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.featured-card:hover {
    background: rgba(0, 0, 0, 0.6);
    border-color: rgba(255, 59, 48, 0.5);
    transform: translateY(-5px);
    box-shadow: 0 10px 40px rgba(255, 59, 48, 0.2);
}

.research-tag {
    font-size: 0.65rem;
    color: var(--accent);
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 700;
    margin-bottom: 1.5rem;
    display: inline-block;
}

.research-title {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 1rem;
    line-height: 1.4;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.research-desc {
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.8;
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
}

.research-meta {
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.5);
}

.card-link {
    color: var(--accent);
    text-decoration: none;
    font-weight: 700;
    font-size: 0.85rem;
    transition: all 0.3s;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.card-link:hover {
    letter-spacing: 2px;
}

/* Quick Links Grid */
.quick-links-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.quick-link-card {
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 3rem;
    text-decoration: none;
    color: var(--text);
    transition: all 0.4s;
    position: relative;
    overflow: hidden;
}

.quick-link-card:hover {
    background: rgba(0, 0, 0, 0.6);
    border-color: rgba(255, 59, 48, 0.5);
    transform: translateY(-5px);
    box-shadow: 0 10px 40px rgba(255, 59, 48, 0.2);
}

.quick-link-card h3 {
    font-size: 1.5rem;
    margin-bottom: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.quick-link-card p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.85rem;
    line-height: 1.7;
}

.link-arrow {
    position: absolute;
    bottom: 2rem;
    right: 2rem;
    font-size: 1.5rem;
    color: var(--accent);
    transition: all 0.3s;
}

.quick-link-card:hover .link-arrow {
    transform: translateX(10px);
}

/* Content Grid */
.content-grid,
.projects-grid,
.research-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
}

.content-card,
.project-card,
.research-card {
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 2.5rem;
    transition: all 0.4s;
}

.content-card:hover,
.project-card:hover,
.research-card:hover {
    background: rgba(0, 0, 0, 0.6);
    border-color: rgba(255, 59, 48, 0.5);
    transform: translateY(-5px);
    box-shadow: 0 10px 40px rgba(255, 59, 48, 0.2);
}

/* Page Title */
.page-title {
    padding-top: 10rem;
    padding-bottom: 2rem;
    text-align: center;
}

.page-title h1 {
    font-size: clamp(3rem, 6vw, 5rem);
    font-weight: 700;
    letter-spacing: -2px;
    margin-bottom: 1rem;
    text-transform: uppercase;
}

.page-title p {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.7);
    max-width: 700px;
    margin: 0 auto;
}

/* List Styles */
.cert-list,
.timeline {
    max-width: 900px;
    margin: 0 auto;
}

.cert-item,
.timeline-item {
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 2rem;
    margin-bottom: 1.5rem;
    transition: all 0.3s;
}

.cert-item:hover,
.timeline-item:hover {
    background: rgba(0, 0, 0, 0.6);
    border-color: rgba(255, 59, 48, 0.5);
    box-shadow: 0 10px 40px rgba(255, 59, 48, 0.2);
}

.cert-title,
.timeline-title {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.cert-org,
.timeline-date {
    color: var(--accent);
    font-size: 0.8rem;
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.cert-desc,
.timeline-desc {
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.8;
}

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

/* Responsive */
@media (max-width: 768px) {
    .menu-toggle {
        display: flex;
    }

    .nav-links {
        position: fixed;
        top: 70px;
        right: -100%;
        width: 70%;
        height: calc(100vh - 70px);
        background: rgba(0, 0, 0, 0.98);
        flex-direction: column;
        padding: 2rem;
        gap: 2rem;
        transition: right 0.4s;
        border-left: 1px solid rgba(255, 255, 255, 0.1);
    }

    .nav-links.active {
        right: 0;
    }

    section {
        padding: 5rem 5%;
    }

    .hero-stats {
        gap: 2rem;
        flex-wrap: wrap;
    }

    .hero-cta {
        flex-direction: column;
        width: 100%;
    }

    .cta-button,
    .cta-button-secondary {
        text-align: center;
        width: 100%;
    }
}
