/* Custom Overrides for d8maldon.github.io */

/* 1. Particles Container */
#particles-js {
    position: fixed;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    z-index: -1;
    pointer-events: none;
}

.profile-image {
    border-radius: 50%;
    width: 150px;
    height: 150px;
    object-fit: cover;
    margin: 0 auto;
}

/* Recent Posts */
.recent-posts-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    text-align: center;
}

.recent-posts-title {
    font-size: 2em;
    color: #33dbff;
    margin-bottom: 20px;
}

.recent-posts-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-around;
}

/* Highlight Card */
.highlight-card {
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    margin: 20px;
    width: 300px;
    transition: transform 0.2s;
}

.highlight-card:hover {
    transform: translateY(-10px);
}

.highlight-card img {
    border-radius: 10px 10px 0 0;
    width: 100%;
}

.highlight-card-content {
    padding: 15px;
}

.highlight-card-title {
    font-size: 1.5em;
    color: #33dbff;
    margin-bottom: 10px;
}

.highlight-card-description {
    font-size: 1em;
    color: #33dbff;
}

/* Projects Grid */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    justify-content: center;
}

.project-item {
    position: relative;
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease-in-out, box-shadow 0.3s ease-in-out, opacity 0.3s ease-in-out;
    width: 100%;
    height: auto;
    margin: 20px;
    text-align: center;
    padding: 20px;
    box-sizing: border-box;
}

.project-item:hover {
    transform: scale(1.05);
    z-index: 10;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.3);
}

.project-item img {
    display: none;
    width: 100%;
    max-height: 200px;
    object-fit: cover;
    border-bottom: 1px solid #ddd;
    transition: opacity 0.3s ease-in-out;
}

.project-item:hover img {
    display: block;
    opacity: 1;
}

.project-item .description {
    padding: 20px;
    font-size: 1em;
    color: #333;
    display: none;
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
}

.project-item:hover .description {
    display: block;
    opacity: 1;
}

.project-link {
    color: #333;
    text-decoration: none;
}

.project-link i {
    font-size: 2em;
    margin-bottom: 10px;
    color: #33dbff;
    display: block;
}

.project-item h2 {
    padding: 15px 10px;
    font-size: 1.5em;
    margin: 0;
}

h1,
h2 {
    text-align: center;
    margin-top: 40px;
    margin-bottom: 20px;
    font-size: 2em;
    color: #33dbff;
    text-transform: uppercase;
}

.project-item h3,
.project-item p {
    display: block;
    margin: 10px 0;
}

.project-item h3 {
    color: #33dbff;
}

.project-item p {
    color: #333;
    font-size: 1em;
}

/* Carousel */
.carousel {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
}

.carousel-track-container {
    overflow: hidden;
    width: 100%;
}

.carousel-track {
    display: flex;
    transition: transform 0.5s ease-in-out;
}


.carousel-item {
    flex: 0 0 48%;
    max-width: 48%;
    margin: 1%;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    text-align: center;
    padding: 0;
    transition: transform 0.3s ease-in-out, box-shadow 0.3s ease-in-out;
    height: 600px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: center;
    color: #333;
    /* Default dark text */
}

.carousel-item img {
    display: block;
    max-width: 75%;
    max-height: 75%;
    object-fit: contain;
    margin: auto;
}

/* New Title Class - Always Visible */
.carousel-title {
    font-size: 1.5em;
    color: #33dbff !important;
    margin: 15px 0 5px 0;
    text-transform: uppercase;
    display: block !important;
    font-weight: 700;
}

.carousel-item .description {
    padding: 10px;
    font-size: 1em;
    color: #333;
    /* Dark text for readability */
    display: none;
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
}

.carousel-item:hover .description {
    display: block;
    opacity: 1;
}

.carousel-item p {
    color: #555;
    /* Slightly lighter dark text for paragraph */
}


.carousel-control {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    font-size: 2em;
    cursor: pointer;
    z-index: 10;
}

.carousel-control.prev {
    left: 10px;
}

.carousel-control.next {
    right: 10px;
}

.header {
    position: relative;
    width: 100%;
    height: auto;
}

.header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
}

.header img {
    width: 100%;
    height: auto;
    display: block;
}

@media (max-width: 768px) {
    .header img {
        height: auto;
        object-fit: cover;
    }
}

/* --- Site-Wide Premium Revamp Overrides --- */

:root {
    --global-bg-color: #0e0e0e;
    --global-text-color: #e0e0e0;
    --global-accent-color: #33dbff;
    --global-glass-bg: rgba(30, 30, 30, 0.6);
    --global-glass-border: rgba(255, 255, 255, 0.1);
    --global-font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, "Fira Sans", "Droid Sans", "Helvetica Neue", Arial, sans-serif;
}

html {
    background-color: var(--global-bg-color) !important;
    background-image: radial-gradient(circle at 50% 0%, #1a1a1a 0%, #0e0e0e 70%);
    background-attachment: fixed;
    height: 100%;
}

body {
    background-color: transparent !important;
    color: var(--global-text-color) !important;
    font-family: var(--global-font-family);
    min-height: 100vh;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    color: #fff !important;
    font-weight: 700;
    letter-spacing: -0.5px;
}

a {
    color: var(--global-accent-color);
    transition: color 0.3s ease;
}

a:hover {
    color: #fff;
    text-decoration: none;
}

/* Glassmorphism Utilities - CRITICAL WIDTH FIX */
.glass-container {
    background: var(--global-glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--global-glass-border);
    border-radius: 16px;
    padding: 40px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
    max-width: 900px !important;
    margin: 40px auto;
    width: 95%;
}

.glass-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 20px;
    transition: all 0.3s ease;
    backdrop-filter: blur(5px);
}

.glass-card:hover {
    background: rgba(255, 255, 255, 0.06);
    border-color: var(--global-accent-color);
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

/* Override Default Minimal Mistakes Content Width */
.page__content {
    max-width: 900px !important;
    margin-left: auto;
    margin-right: auto;
}

/* Footer Global Styling */
.page__footer {
    background: #050505 !important;
    color: #888 !important;
    padding-top: 40px;
    padding-bottom: 40px;
    margin-top: 4em;
    border-top: 1px solid #222;
}

.page__footer-follow,
.page__footer-copyright {
    color: #666;
}