
/* 
 * White Black Theme CSS
 * Optimized for simplicity, accessibility, and maintainability
 */

/* Custom Fonts */
@font-face {
    font-family: 'MyCustomFont1';
    src: url('/fonts/1FTV-VIP-Magiesta.otf') format('opentype');
    font-weight: normal;
    font-style: normal;
}
@font-face {
    font-family: 'MyCustomFont2';
    src: url('/fonts/Roboto-Black.ttf') format('opentype');
    font-weight: normal;
    font-style: normal;
}

/* CSS Variables */
:root {
    /* Colors */
    --primary-color: #000000; /* Black for buttons and primary elements */
    --secondary-color: #FFFFFF; /* White background */
    --accent-color: #333333; /* Dark gray for borders and secondary elements */
    --highlight-color: #666666; /* Light gray for hover effects */
    --text-color: #000000; /* Black for all text */
    --neutral-color: #F5F5F5; /* Light gray for subtle backgrounds */
    --footer-color: #FFFFFF; /* White for footer */
    --header-bg: #FFFFFF; /* White for header */
    --header-text: #000000; /* Black for header text */

    /* Spacing and Sizes */
    --container-max-width: 1280px;
    --border-radius: 12px;
    --section-padding: 100px 20px;
    --box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    --box-shadow-hover: 0 8px 25px rgba(0, 0, 0, 0.15);
}

/* Reset */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

/* Global Styles */
body {
    font-family: 'Poppins', sans-serif;
    background-color: var(--secondary-color);
    color: var(--text-color);
    line-height: 1.7;
    overflow-x: hidden;
}

h1, h2, h3, h4 {
    font-family: 'MyCustomFont1', serif;
    font-weight: 900;
    color: var(--text-color);
    margin-bottom: 0.5em;
}

h2 {
    font-size: 2.8rem;
    text-align: center;
    color: var(--text-color);
    margin-bottom: 50px;
    position: relative;
}

h2::after {
    content: '';
    width: 60px;
    height: 3px;
    background: var(--text-color);
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
}

a {
    text-decoration: none;
    color: var(--text-color);
    transition: color 0.3s ease, transform 0.3s ease;
}

a:hover {
    color: var(--highlight-color);
}

img {
    max-width: 100%;
    height: auto;
    border-radius: var(--border-radius);
}

.container {
    width: 90%;
    max-width: var(--container-max-width);
    margin: auto;
    padding: 30px 0;
}

/* Header & Navigation */
header {
    background-color: var(--header-bg);
    box-shadow: var(--box-shadow);
    padding: 20px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    width: 100%;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 90%;
    max-width: var(--container-max-width);
    margin: auto;
}

.logo {
    font-family: 'Playfair Display', serif;
    font-size: 2rem;
    color: var(--header-text);
}

.logo img {
    border: none !important; /* Remove border for logo image */
}

nav ul {
    list-style: none;
    display: flex;
    gap: 30px;
}

nav ul li a {
    font-weight: 500;
    color: var(--header-text);
    padding: 8px 15px;
    border-radius: 8px;
    transition: background-color 0.3s ease, color 0.3s ease, transform 0.3s ease;
}

nav ul li a:hover,
nav ul li a.active {
    background-color: #E6E6E6; /* Very light gray for hover */
    color: var(--header-text);
    transform: translateY(-2px);
}

.nav-right {
    display: flex;
    align-items: center;
    gap: 20px;
}

.language-icons {
    display: flex;
    align-items: center;
    gap: 10px;
}

.language-icons img {
    width: 32px;
    height: 32px;
    cursor: pointer;
    padding: 6px;
    border: 1px solid var(--neutral-color);
    border-radius: 50%;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.language-icons img:hover {
    opacity: 0.9;
    transform: scale(1.15);
}

.hamburger {
    display: none;
    font-size: 28px;
    cursor: pointer;
    color: var(--header-text);
    transition: color 0.3s ease;
}

.hamburger:hover {
    color: var(--highlight-color);
}

/* Sections */
section {
    padding: var(--section-padding);
    text-align: center;
    background-color: var(--secondary-color);
}

section:nth-child(even) {
    background-color: var(--neutral-color);
}

/* Hero Section */
.hero-section {
    background-color: var(--secondary-color);
    color: var(--text-color);
    padding: 120px 20px;
    min-height: 85vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.hero-content {
    max-width: 800px;
}

.hero-section #profile-pic {
    width: 160px;
    height: 160px;
    border-radius: 50%;
    margin-bottom: 25px;
    object-fit: cover;
    box-shadow: var(--box-shadow);
    border: 3px solid var(--accent-color);
}

.hero-section h1 {
    font-size: 3.8rem;
    margin-bottom: 15px;
}

.hero-section #hero-tagline {
    font-size: 1.3rem;
    font-weight: 300;
    margin-bottom: 25px;
    color: var(--text-color);
}

.hero-section #hero-bio-short {
    font-size: 1.2rem;
    margin-bottom: 35px;
    color: var(--text-color);
}

.cta-button {
    display: inline-block;
    background-color: var(--primary-color);
    color: #FFFFFF; /* White text for contrast */
    padding: 14px 30px;
    border-radius: 8px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    border: 2px solid var(--primary-color);
    box-shadow: var(--box-shadow);
    transition: background-color 0.3s ease, color 0.3s ease, transform 0.3s ease;
}

.cta-button:hover {
    background-color: var(--accent-color);
    border-color: var(--accent-color);
    transform: translateY(-4px);
}

/* About Section */
.about-section .container {
    max-width: 1000px;
}

#bio-long {
    font-size: 1.2rem;
    margin-bottom: 50px;
    text-align: justify;
    color: var(--text-color);
}

.skills-container,
.experience-container {
    margin-bottom: 50px;
    text-align: left;
}

.skills-container h3,
.experience-container h3 {
    color: var(--text-color);
    font-size: 2rem;
    margin-bottom: 25px;
    padding-bottom: 12px;
}

.skills-list {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    list-style: none;
}

.skills-list li {
    background-color: var(--neutral-color);
    color: var(--text-color);
    padding: 8px 16px;
    border-radius: 4px;
    font-size: 0.95rem;
    font-weight: bold;
}

.experience-item {
    background-color: var(--secondary-color);
    padding: 25px;
    border-radius: var(--border-radius);
    margin-bottom: 25px;
    box-shadow: var(--box-shadow);
    text-align: left;
}

.experience-item h4 {
    font-family: 'Poppins', sans-serif;
    color: var(--text-color);
    font-size: 1.4rem;
    margin-bottom: 8px;
}

.experience-item .company {
    font-weight: 600;
    color: var(--text-color);
    margin-bottom: 8px;
}

.experience-item .duration {
    font-style: italic;
    color: var(--text-color);
    margin-bottom: 12px;
    font-size: 0.95rem;
}

.experience-item ul {
    list-style: disc;
    margin-left: 25px;
    color: var(--text-color);
}

/* Projects Section */
.project-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 35px;
}

.project-card {
    background-color: var(--secondary-color);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--box-shadow);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
    display: flex;
    flex-direction: column;
}

.project-card:hover {
    transform: translateY(-12px);
    box-shadow: var(--box-shadow-hover);
}

.project-card img.project-thumbnail {
    width: 100%;
    height: 240px;
    object-fit: cover;
}

.project-info {
    padding: 25px;
    text-align: center;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.project-info h3 {
    font-family: 'MyCustomFont2', sans-serif;
    font-size: 1.5rem;
    color: var(--text-color);
    margin: 0 0 12px;
}

.project-category {
    display: inline-block;
    background-color: var(--neutral-color);
    color: var(--text-color);
    padding: 4px 12px;
    border-radius: 15px;
    font-size: 0.85rem;
    margin-bottom: 12px;
}

.project-summary {
    font-size: 1rem;
    color: var(--text-color);
    flex-grow: 1;
    margin-bottom: 15px;
    text-align: justify;
}

/* Contact Section */
.contact-section .container {
    max-width: 800px;
}

#contact-info p {
    font-size: 1.2rem;
    margin-bottom: 20px;
    color: var(--text-color);
}

#contact-info p strong,
#contact-info p span,
#contact-info p a {
    color: var(--text-color);
    text-decoration: none;
}

#contact-info p a:hover {
    color: var(--highlight-color);
}

.social-links-contact {
    list-style: none;
    display: flex;
    justify-content: center;
    gap: 25px;
    margin-top: 25px;
}

.social-links-contact li a {
    font-size: 2.2rem;
    color: var(--text-color);
    transition: color 0.3s ease, transform 0.3s ease;
}

.social-links-contact li a:hover {
    color: var(--highlight-color);
    transform: scale(1.15);
}

/* Footer */
footer {
    background-color: var(--secondary-color); /* White background */
    color: var(--text-color);
    text-align: center;
    padding: 30px 20px;
    width: 100%;
}

footer *,
footer p,
footer span,
footer a,
footer p[style],
footer span[style],
footer a[style] {
    font-size: 1rem;
    color: var(--text-color);
    text-decoration: none;
}

footer a:hover {
    color: var(--highlight-color);
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.7); /* Black overlay */
    padding-top: 60px;
}

.modal-content {
    background-color: var(--secondary-color);
    margin: 5% auto;
    padding: 35px;
    border: 2px solid var(--accent-color);
    width: 85%;
    max-width: 900px;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    position: relative;
    animation: slideIn 0.5s ease-out;
}

@keyframes slideIn {
    from { transform: translateY(-50px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

.close-button {
    color: var(--neutral-color);
    float: right;
    font-size: 40px;
    font-weight: bold;
    position: absolute;
    top: 20px;
    right: 20px;
}

.close-button:hover,
.close-button:focus {
    color: var(--text-color);
    cursor: pointer;
}

#modal-project-content h2 {
    text-align: left;
    font-size: 2.2rem;
    color: var(--text-color);
    margin-top: 0;
}

#modal-project-content img,
#modal-project-content video {
    max-width: 100%;
    height: auto;
    margin-bottom: 20px;
    border-radius: var(--border-radius);
    border: 2px solid var(--accent-color);
}

#modal-project-content .project-meta {
    margin-bottom: 25px;
    font-size: 0.95rem;
    color: var(--text-color);
}

#modal-project-content .project-meta span {
    margin-right: 20px;
    display: inline-block;
}

#modal-project-content .project-meta strong {
    color: var(--text-color);
}

#modal-project-content .description-detailed {
    text-align: left;
    line-height: 1.8;
    color: var(--text-color);
    margin-bottom: 25px;
}

#modal-project-content .media-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin-top: 25px;
}

#modal-project-content .media-item p {
    font-style: italic;
    font-size: 0.95rem;
    color: var(--text-color);
    text-align: center;
    margin-top: 8px;
}

/* Image Overlay */
.image-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.85); /* Black overlay */
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.image-overlay img {
    max-width: 90%;
    max-height: 90%;
    border-radius: var(--border-radius);
    box-shadow: 0 0 25px rgba(0, 0, 0, 0.3);
    animation: zoomIn 0.5s ease;
}

@keyframes zoomIn {
    from { transform: scale(0.8); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

/* Responsive Design */
@media (max-width: 768px) {
    nav {
        flex-wrap: wrap;
        position: relative;
    }

    nav ul {
        display: none;
        flex-direction: column;
        align-items: center;
        width: 100%;
        background-color: var(--header-bg);
        position: absolute;
        top: 70px;
        left: 0;
        padding: 25px;
        box-shadow: var(--box-shadow);
    }

    nav ul.active {
        display: flex;
    }

    nav ul li {
        margin: 12px 0;
    }

    .nav-right {
        gap: 12px;
    }

    .language-icons img {
        width: 28px;
        height: 28px;
        padding: 6px;
    }

    .hamburger {
        display: block;
    }

    .hero-section h1 {
        font-size: 2.8rem;
        margin-bottom: 12px;
    }

    .hero-section #hero-tagline {
        font-size: 1.2rem;
    }

    h2 {
        font-size: 2.2rem;
    }

    .project-grid {
        grid-template-columns: 1fr;
    }

    .modal-content {
        width: 90%;
        padding: 25px;
    }
}

/* Animations */
.project-card,
.cta-button,
nav ul li a,
.social-links-contact li a {
    will-change: transform;
}

.cta-button:hover,
.social-links-contact li a:hover {
    animation: subtleBounce 0.3s ease-out;
}

@keyframes subtleBounce {
    0%, 100% { transform: translateY(0) scale(1); }
    50% { transform: translateY(-6px) scale(1.03); }
}

.social-icon-img {
    width: 32px;
    height: 32px;
}
