@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;600;700&display=swap');

:root {
    --bg-color: #0a0a0a;
    --card-bg: #161616;
    --text-primary: #ffffff;
    --text-secondary: #a0a0a0;
    --accent-color: #554A9E;
    --accent-hover: #6C63FF;
    --font-main: 'Inter', sans-serif;
    --nav-height: 70px;
}

html,
body {
    scroll-behavior: smooth;
    padding: 0;
    margin: 0;
    background-color: var(--bg-color);
    color: var(--text-primary);
    font-family: var(--font-main);
    overflow-x: hidden;
}

/* Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-weight: 700;
    color: var(--text-primary);
}

p {
    color: var(--text-secondary);
    line-height: 1.6;
}

a {
    color: var(--accent-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: var(--accent-hover);
}

/* Navigation */
.navbar {
    background-color: rgba(10, 10, 10, 0.9) !important;
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    height: var(--nav-height);
}

.navbar-brand {
    font-weight: 700;
    font-size: 1.5rem;
    color: var(--text-primary) !important;
}

.nav-link {
    color: var(--text-secondary) !important;
    font-weight: 500;
    margin-left: 1rem;
    transition: color 0.3s ease;
}

.nav-link:hover {
    color: var(--accent-hover) !important;
}

/* Hero Section */
#Home {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: var(--nav-height);
    background: radial-gradient(circle at top right, rgba(85, 74, 158, 0.4), transparent 50%),
        radial-gradient(circle at bottom left, rgba(108, 99, 255, 0.2), transparent 50%),
        linear-gradient(to bottom, #0a0a0a, #1a1a1a);
    position: relative;
    overflow: hidden;
}

#Home::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* background: url('../images/bg-pattern.png'); Optional */
    opacity: 0.05;
    pointer-events: none;
}

#introwelcome {
    text-align: left;
    font-size: 4rem;
    font-weight: 800;
    background: linear-gradient(135deg, #ffffff 0%, #a0a0a0 100%);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 0.5rem;
    letter-spacing: -1px;
    display: block;
}

#introname {
    text-align: left;
    font-size: 5rem;
    font-weight: 900;
    letter-spacing: -2px;
    color: var(--text-primary);
    margin-bottom: 1.5rem;
    line-height: 1.1;
    display: block;
}

#intropar {
    font-size: 1.25rem;
    max-width: 650px;
    margin-top: 2rem;
    color: var(--text-secondary);
    font-weight: 600;
    border-left: 3px solid var(--accent-color);
    padding-left: 1.5rem;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-up {
    opacity: 0;
    /* Start hidden */
    animation: fadeInUp 0.8s ease-out forwards;
}

.delay-1 {
    animation-delay: 0.2s;
}

.delay-2 {
    animation-delay: 0.4s;
}

.delay-3 {
    animation-delay: 0.6s;
}

/* Face Card */
.facecard {
    background: rgba(22, 22, 22, 0.6);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 24px;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.facecard:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 30px 60px rgba(85, 74, 158, 0.3);
    border-color: rgba(85, 74, 158, 0.5);
}

.facecard img {
    height: 100%;
    object-fit: cover;
    object-position: top center;
    width: 100%;
}

.facecard-body {
    padding: 1.5rem;
}

.facecard-body h5 {
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.facecard-body p {
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

/* Sections */
section {
    padding: 5rem 0;
    text-align: center;
}

section.bg-light {
    background-color: var(--bg-color) !important;
    /* Override bootstrap */
}

h2 {
    font-size: 2.5rem;
    margin-bottom: 3rem;
    position: relative;
    display: inline-block;
    width: auto;
}

h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--accent-color);
    border-radius: 2px;
}

/* Carousel Cards */
.card {
    background-color: var(--card-bg);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    overflow: hidden;
    color: var(--text-primary);
}

.carousel-media {
    max-height: 500px;
    object-fit: contain;
    background-color: #000;
}

.card-body {
    padding: 2rem;
}

.card-title {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.card-text {
    color: var(--text-secondary);
}

.article-link {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--accent-color);
}

.article-link:hover {
    text-decoration: underline;
}

/* Carousel Controls */
.carousel-control-prev,
.carousel-control-next {
    width: 5%;
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
    background-color: rgba(0, 0, 0, 0.5);
    border-radius: 50%;
    padding: 1.5rem;
    background-size: 50%;
}

/* Contact Section */
#Contact {
    text-align: center;
}

#Contact a {
    font-size: 1.2rem;
    display: inline-block;
    margin-bottom: 1rem;
}

#Contact img {
    margin-top: 2rem;
    border-radius: 20px;
    border: 2px solid var(--accent-color);
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    #introwelcome {
        font-size: 2.5rem;
    }

    #introname {
        font-size: 2.5rem;
    }

    #intropar {
        font-size: 1rem;
    }

    .facecard {
        margin-top: 3rem;
        width: 100%;
    }

    .facecard img {
        height: 100%;
    }

    h2 {
        font-size: 2rem;
    }

    .navbar-collapse.show {
        background-color: rgba(10, 10, 10, 1); /* same as .navbar */
        backdrop-filter: blur(10px);
        -webkit-backdrop-filter: blur(10px);
        position: absolute; /* makes the dropdown overlay under the navbar */
        top: var(--nav-height);
        left: 0;
        right: 0;
        z-index: 1040;
        padding: 0.75rem 1rem;
    }

    
}

/* Article Content Fixes */
#article-content table {
    color: #000000;
    background-color: #ffffff;
    width: 100%;
    margin-bottom: 1rem;
    border-collapse: collapse;
}

#article-content table th,
#article-content table td {
    padding: 0.75rem;
    border: 1px solid #dee2e6;
}

#article-content table th {
    background-color: #f8f9fa;
    font-weight: 700;
}