@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600&family=JetBrains+Mono:wght@500;700;800&display=swap&family=Material+Symbols+Outlined');

:root {
    --primary-red: #ff0000;
    --deep-obsidian: #121212;
    --graphite: #1e1e1e;
    --cloud-white: #f8f9fa;
    --slate-grey: #94a3b8;
    
    --font-primary: 'JetBrains Mono', monospace;
    --font-secondary: 'Inter', sans-serif;
}

body {
    background-color: var(--deep-obsidian);
    color: var(--cloud-white);
    font-family: var(--font-secondary);
    margin: 0;
}

/* ============ Typography Overrides (Primary Font) ============ */
/* All Headings */
h1, h2, h3, h4, h5, h6, 
.section-title, 
.project-title, 
.cert-title {
    font-family: var(--font-primary);
    font-weight: 800;
}

/* Nav Links & Brand */
.nav-link, 
.navbar-brand {
    font-family: var(--font-primary);
    font-weight: 500;
}

/* Buttons */
.btn-action-red, 
.btn-outline-cloud, 
.btn-cert, 
.project-link {
    font-family: var(--font-primary);
}
.email-box a {
    font-family: var(--font-primary);
}

/* ============ Body Overrides (Secondary Font) ============ */
.about-text, 
.about-subtext, 
.project-desc, 
.details, 
.institution, 
.cert-issuer, 
.cert-date, 
.contact-card p {
    font-family: var(--font-secondary);
    font-weight: 400; /* Keeps it clean and light */
}


/* ============ Navbar Styles ============ */
.navbar-nav {
    list-style: none;
    padding-left: 0;
    margin-bottom: 0;
}

.custom-nav {
    background-color: rgba(18, 18, 18, .2);
    backdrop-filter: blur(15px);
    border-bottom: 1px solid var(--graphite);
    transition: 0.3s;
}

.nav-link {
    color: var(--cloud-white) !important;
    font-weight: 500;
    padding: 8px 16px;
    margin-right: 10px;
    position: relative;
    z-index: 1;
    overflow: hidden;
    transition: color 0.3s ease;
    display: inline-block;
}

.nav-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--primary-red);

    transform: translateX(105%);
    z-index: -1;
    transition: transform 0.4s cubic-bezier(0.7, 0, 0.3, 1);
}

.nav-link:hover::before {
    transform: translateX(0);
}

.nav-link:hover {
    color: white !important;
}

.navbar-brand {
    padding-left: 10px;
}

/* ============ Site Header Styles ============ */
.site-header {
    height: 100vh;
    background: url(Assets/Header.png) no-repeat center center fixed;
    background-size: cover;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
}

.header-content {
    animation: fadeIn 1s ease-in;
}

.header-content h1 {
    color: var(--cloud-white);
}

.header-content p {
    color: var(--slate-grey);
}

.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    animation: bounce 2s infinite;
    color: var(--slate-grey);
}

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

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

/* ============ Button Styles ============ */
.btn-action-red {
    background-color: var(--primary-red);
    color: white;
    font-weight: bold;
    border: 2px solid var(--primary-red);
}

.btn-action-red:hover {
    background-color: #cc0000;
}

.btn-outline-cloud {
    border: 2px solid var(--cloud-white);
    color: var(--cloud-white);
    backdrop-filter: blur(10px);
}

.btn-outline-cloud:hover {
    background: var(--cloud-white);
    color: var(--deep-obsidian);
}

.btn-action-red, .btn-outline-cloud {
    padding: 12px 30px;
    min-width: 220px;
    height: 54px;

    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    text-decoration: none;
    box-sizing: border-box;
    border-radius: 0px;

    display: inline-flex;
    align-items: center;
    justify-content: center;
}

@media (max-width: 767px) {
    .btn-action-red, .btn-outline-cloud {
        width: 100%;
        max-width: 280px;
        margin: 5px auto;
    }
}

/* ============ Hero Header Typography ============ */
.hero-title {
    font-size: clamp(2rem, 8vw, 4rem);
    color: var(--cloud-white);
    line-height: 1.1;
    margin-bottom: 10px;
}

.hero-subtitle {
    font-size: clamp(0.9rem, 4vw, 1.25rem);
    letter-spacing: 4px;
    color: var(--slate-grey);
    margin-bottom: 20px;
}

/* ============ About Section ============ */
.about-section {
    background-color: var(--graphite);
    padding: 100px 0;
    color: var(--cloud-white);
    padding-left: 20px;
    padding-right: 20px;
}

.about-content-box {
    border-left: 4px solid var(--primary-red);
    padding: 10px 30px;
    background: linear-gradient(90deg, rgba(255, 0, 0, 0.05) 0%, transparent 100%);
}

.section-title {
    font-size: clamp(1.8rem, 5vw, 2.5rem);
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.about-text {
    font-size: clamp(1.1rem, 3vw, 1.5rem);
    line-height: 1.5;
    margin-bottom: 25px;
}

.about-subtext {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--slate-grey);
    max-width: 800px;
}

.highlight-red {
    color: var(--primary-red);
    font-weight: 700;
}

.skill-tag {
    background-color: var(--deep-obsidian);
    border: 1px solid var(--graphite);
    color: var(--cloud-white);
    padding: 6px 16px;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    transition: 0.3s ease;
}

.skill-tag:hover {
    border-color: var(--primary-red);
    color: var(--primary-red);
}

/* ============ Education Section ============ */
.education-section {
    background-color: var(--deep-obsidian);
    padding: 100px 25px;
    color: var(--cloud-white);
}

.edu-wrapper{
    max-width: 965px;
    margin: 0 auto;
}

.edu-wrapper .section-title {
    padding-left: 0;
    margin-left: 0;
    text-align: left;
}

.timeline {
    position: relative;
    padding-left: 30px;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    width: 2px;
    height: 100%;
    background-color: var(--graphite);
}

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

.timeline-dot {
    position: absolute;
    left: -35px;
    top: 25px;
    width: 12px;
    height: 12px;
    background-color: var(--primary-red);
    transform: rotate(45deg);
    box-shadow: 0 0 12px var(--primary-red);
    transition: all 0.3s ease;
}

.timeline-content {
    background: var(--graphite);
    padding: 20px 30px;
    border-left: 3px solid transparent;
    transition: 0.3s ease;
}

.timeline-content:hover {
    border-left: 3px solid var(--primary-red);
}

.timeline-date {
    color: var(--primary-red);
    font-weight: bold;
    font-size: 0.9rem;
    display: block;
    margin-bottom: 5px;
}

.institution {
    color: var(--slate-grey);
    font-style: italic;
    margin-bottom: 10px;
}

.details {
    font-size: 0.95rem;
    line-height: 1.6;
    color: var(--cloud-white);
}

/* ============ Projects Section ============ */
.projects-section {
    background-color: var(--graphite);
    padding: 100px 25px;
}

.project-card {
    background-color: var(--deep-obsidian);
    height: 100%;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transition: transform 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.project-card:hover {
    border-color: rgba(255, 0, 0, 0.2);
}

.project-stripe {
    height: 4px;
    width: 100%;
    background-color: var(--primary-red);
}

.project-body {
    padding: 30px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.project-category {
    color: var(--primary-red);
    font-size: 0.75rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 10px;
}

.project-title {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: var(--cloud-white);
}

.project-desc {
    color: var(--slate-grey);
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 20px;
    flex-grow: 1;
}

.project-tech span {
    font-size: 0.7rem;
    background: var(--graphite);
    color: var(--cloud-white);
    padding: 4px 10px;
    text-transform: uppercase;
    font-weight: bold;
}

.project-link {
    color: var(--cloud-white);
    text-decoration: none;
    font-weight: none;
    font-weight: bold;
    font-size: 0.9rem;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    transition: gap 0.3s ease;
}

.project-link:hover {
    color: var(--primary-red);
    gap: 10px;
}

/* ============ Certifications Section ============ */
.cert-section {
    background-color: var(--deep-obsidian); /* Alternating back to Obsidian */
    padding: 100px 25px;
}

.cert-card {
    background-color: var(--graphite);
    padding: 25px;
    display: flex;
    align-items: flex-start;
    gap: 20px;
    height: 100%;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: transform 0.3s ease;
}

.cert-card:hover {
    border-color: var(--primary-red);
}

.cert-logo {
    background-color: #ffffff; /* White box for logos */
    min-width: 60px;
    max-width: 60px;
    height: 60px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px;
    overflow: hidden;
}

.cert-logo img {
    max-width: 100%;
    height: auto;
    object-fit: contain;
}

.cert-info {
    display: flex;
    flex-direction: column;
}

.cert-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--cloud-white);
    margin-bottom: 4px;
}

.cert-issuer {
    font-size: 0.95rem;
    color: var(--slate-grey);
    margin-bottom: 2px;
}

.cert-date {
    font-size: 0.85rem;
    color: var(--slate-grey);
    margin-bottom: 15px;
}

.btn-cert {
    color: var(--cloud-white);
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 600;
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 6px 14px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    width: fit-content;
    transition: 0.3s;
}

.btn-cert .material-symbols-outlined {
    font-size: 1rem;
}

.btn-cert:hover {
    border-color: var(--primary-red);
    background-color: rgba(255, 0, 0, 0.1);
    color: white;
}

@media (max-width: 576px) {
    .cert-card {
        flex-direction: column; /* Stack logo on top of text on very small screens */
        align-items: center;
        text-align: center;
    }
    
    .btn-cert {
        margin: 0 auto; /* Center the button when stacked */
    }
}

/* ============ Contact Section ============ */
.contact-section {
    background-color: var(--graphite); /* Alternating back to Obsidian */
    padding: 100px 25px;
}

.contact-card {
    background-color: var(--deep-obsidian);
    max-width: 100%;
    margin: 0 auto;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.05);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

.card-accent {
    height: 4px;
    background: var(--primary-red);
    width: 100%;
}

.card-body-content {
    padding: 50px 30px;
}

.email-box {
    display: inline-flex;
    align-items: center;
    background: var(--graphite);
    padding: 12px 24px;
    border: 1px solid transparent;
    transition: 0.3s;

    max-width: 100%;
    box-sizing: border-box;
    word-break: break-all;
}

.email-box a {
    color: var(--cloud-white);
    text-decoration: none;
    font-weight: 700;
    font-size: clamp(0.9rem, 3vw, 1.1rem);
}

.email-box:hover {
    border-color: var(--primary-red);
    box-shadow: 0 0 15px rgba(255, 0, 0, 0.2);
}

.email-box .material-symbols-outlined {
    color: var(--primary-red);
}

.contact-sub-info {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--slate-grey);
    font-size: 0.9rem;
}

.contact-sub-info a {
    color: var(--slate-grey);
    text-decoration: none;
}

.contact-sub-info a:hover {
    color: var(--primary-red);
}

.contact-card p {
    color: var(--slate-grey) !important;
}

@media (max-width: 480px) {
    .email-box {
        padding: 10px 15px;
    }
    .email-box .material-symbols-outlined {
        font-size: 1.2rem;
    }
}

/* ============ Contact Section ============ */
.footer-simple {
    background-color: var(--deep-obsidian);
    padding: 40px 0;
    text-align: center;
    color: var(--slate-grey);
    font-size: 0.85rem;
    letter-spacing: 1px;
}

html {
    scroll-behavior: smooth;
}