/* ==========================================================================
   mywebsite.css - Main Stylesheet for Santiago Aramburú Lebus Website
   Dark Mode Version
   ========================================================================== */

/* Import Inter font from Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

/* ==========================================================================
   1. CSS Variables (Custom Properties)
   ========================================================================== */
:root {
    /* Dark Mode Colors */
    --primary-color: #ffffff;
    --secondary-color: #b3b3b3;
    --background-color: #1a1a1a;
    --accent-color: #64a6f0;
    --text-color: #ffffff;
    --border-color: #333333;
    
    /* Typography */
    --main-font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif;
}

/* ==========================================================================
   2. Reset & Base Styles
   ========================================================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--main-font);
    font-weight: 400;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--background-color);
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ==========================================================================
   3. Typography
   ========================================================================== */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--main-font);
    margin-bottom: 0.5em;
    line-height: 1.2;
    color: var(--primary-color);
}

h1 {
    font-weight: 700;
    font-size: 2.5em;
    letter-spacing: -0.02em;
}

h2 {
    font-weight: 600;
    font-size: 1.8em;
    letter-spacing: -0.01em;
}

h3 {
    font-weight: 500;
    font-size: 1.4em;
}

p {
    margin-bottom: 1em;
    color: var(--text-color);
}

/* ==========================================================================
   4. Header & Navigation
   ========================================================================== */
header {
    padding: 20px 0;
    margin-bottom: 30px;
    background-color: var(--background-color);
}

/* Navigation Styles */
nav {
    background-color: rgba(255, 255, 255, 0.03);
    padding: 20px 0;
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 30px;
    position: sticky;
    top: 0;
    z-index: 1000;
    backdrop-filter: blur(8px);
}

nav ol {
    list-style: none;
    display: flex;
    justify-content: center;
    gap: 40px;
    margin: 0;
    padding: 0;
}

nav li {
    position: relative;
}

nav a {
    font-weight: 500;
    text-decoration: none;
    color: var(--primary-color);
    padding: 8px 16px;
    border-radius: 6px;
    transition: all 0.3s ease;
    font-size: 1.1em;
    position: relative;
}

nav a:hover {
    color: var(--accent-color);
    background-color: rgba(255, 255, 255, 0.05);
}

/* Active state for current page */
nav a.active {
    color: var(--accent-color);
    background-color: rgba(100, 166, 240, 0.1);
    border: 1px solid rgba(100, 166, 240, 0.2);
}

/* Underline effect */
nav a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -2px;
    left: 50%;
    background-color: var(--accent-color);
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

nav a:hover::after {
    width: 80%;
}

nav a.active::after {
    width: 80%;
}

/* Responsive navigation */
@media (max-width: 768px) {
    nav ol {
        flex-direction: column;
        align-items: center;
        gap: 15px;
    }

    nav a {
        padding: 10px 20px;
        display: block;
        text-align: center;
        width: 200px;
    }
}

/* ==========================================================================
   5. Social Media Links
   ========================================================================== */
.social-links {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
    margin: 20px 0;
}

.social-links a {
    font-weight: 400;
    text-decoration: none;
    color: var(--secondary-color);
    padding: 5px 10px;
    transition: color 0.3s ease;
}

.social-links a:hover {
    color: var(--accent-color);
    background-color: rgba(255, 255, 255, 0.1);
}

/* Individual social media colors on hover */
.social-link:hover .fa-linkedin { color: #0077b5; }
.social-link:hover .fa-github { color: #ffffff; }
.social-link:hover .fa-instagram { color: #e4405f; }
.social-link:hover .fa-x-twitter { color: #ffffff; }
.social-link:hover .fa-youtube { color: #ff0000; }
.social-link:hover .fa-twitch { color: #6441a5; }
.social-link:hover .fa-discord { color: #7289da; }
.social-link:hover .fa-reddit { color: #ff4500; }

/* Responsive adjustments */
@media (max-width: 768px) {
    .social-links {
        gap: 10px;
    }

    .social-link {
        min-width: 70px;
        padding: 8px;
    }

    .social-link i {
        font-size: 20px;
    }

    .social-link span {
        font-size: 12px;
    }
}

/* ==========================================================================
   6. Main Content
   ========================================================================== */
main {
    padding: 20px 0;
}

/* Article List */
.article-list {
    list-style: none;
    padding: 20px 0;
}

.article-list li {
    margin-bottom: 15px;
    padding: 15px;
    border-bottom: 1px solid var(--border-color);
}

/* Projects Grid */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    padding: 2rem 0;
}

.project-card {
    background-color: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.project-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
    border-color: var(--accent-color);
}

.project-card-content {
    padding: 1.5rem;
}

.project-card h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-size: 1.4em;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.project-card h3 i {
    color: var(--accent-color);
}

.project-description {
    color: var(--secondary-color);
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.project-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.tag {
    background-color: rgba(100, 166, 240, 0.1);
    color: var(--accent-color);
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.9em;
    border: 1px solid rgba(100, 166, 240, 0.2);
}

.project-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--accent-color);
    text-decoration: none;
    font-weight: 500;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    transition: all 0.3s ease;
    background-color: rgba(100, 166, 240, 0.1);
}

.project-link:hover {
    background-color: rgba(100, 166, 240, 0.2);
}

.project-link.disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

.project-link.disabled:hover {
    background-color: rgba(100, 166, 240, 0.1);
}

@media (max-width: 768px) {
    .projects-grid {
        grid-template-columns: 1fr;
        padding: 1rem 0;
    }

    .project-card-content {
        padding: 1rem;
    }
}

/* Contact Form */
.contact-form {
    max-width: 600px;
    margin: 0 auto;
    padding: 20px;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 10px;
    margin-bottom: 15px;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    font-family: var(--main-font);
    background-color: #242424;
    color: var(--text-color);
}

/* ==========================================================================
   7. Links & Buttons
   ========================================================================== */
a {
    color: var(--accent-color);
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

/* ==========================================================================
   8. Footer
   ========================================================================== */
footer {
    margin-top: 50px;
    padding: 20px 0;
    text-align: center;
    border-top: 1px solid var(--border-color);
    color: var(--secondary-color);
    font-weight: 300;
}

/* ==========================================================================
   9. Media Queries
   ========================================================================== */
@media (max-width: 768px) {
    /* Navigation */
    nav ol {
        flex-direction: column;
        align-items: center;
        gap: 15px;
    }

    /* Typography */
    h1 { font-size: 2em; }
    h2 { font-size: 1.6em; }
    h3 { font-size: 1.3em; }

    /* Layout */
    body {
        padding: 0 15px;
    }

    .social-links {
        gap: 10px;
    }
}

/* ==========================================================================
   10. Print Styles
   ========================================================================== */
@media print {
    body {
        color: black;
        background: white;
    }
    
    .social-links,
    nav {
        display: none;
    }
}

/* ==========================================================================
   11. Accessibility
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
    * {
        animation: none !important;
        transition: none !important;
    }
}

/* Focus styles for keyboard navigation */
a:focus,
button:focus {
    outline: 2px solid var(--accent-color);
    outline-offset: 2px;
}

/* Image adjustments for dark mode */
img {
    opacity: 0.9;
}

/* Logo styling */
.logo-container {
    margin: 20px auto;
    text-align: center;
    max-width: 600px; 
}

.logo-container img {
    width: 100%;
    height: auto;
    display: block;
    filter: invert(1); /* This will make black become white */
    opacity: 0.9; /* Slightly reduce the brightness */
}

/* Main content container */
.content-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Blog post styling */
.blog-post {
    max-width: 800px;
    margin: 40px auto;
    padding: 20px;
    background-color: rgba(255, 255, 255, 0.03);
    border-radius: 8px;
    border: 1px solid var(--border-color);
}

.blog-post-header {
    margin-bottom: 30px;
    text-align: center;
}

.blog-post-title {
    font-size: 2.2em;
    margin-bottom: 10px;
    color: var(--primary-color);
}

.blog-post-date {
    color: var(--secondary-color);
    font-size: 0.9em;
    margin-bottom: 20px;
}

.blog-post-content {
    line-height: 1.8;
    margin-bottom: 30px;
}

.blog-post-content p {
    margin-bottom: 1.5em;
    text-align: justify;
}

/* Center text in main page */
.main-content {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
}

.main-content p {
    margin: 20px auto;
    max-width: 600px;
    line-height: 1.8;
}

/* Profile Picture Styling */
.profile-picture-container {
    margin: 40px auto;
    text-align: center;
    max-width: 600px; /* Match your current image width */
}

.profile-picture {
    width: 100%;
    height: auto;
    border-radius: 12px; /* Rounded corners */
    border: 3px solid var(--accent-color); /* Main border */
    box-shadow: 0 0 20px rgba(100, 166, 240, 0.2); /* Subtle glow effect */
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* Optional: Add hover effect */
.profile-picture:hover {
    transform: scale(1.02);
    box-shadow: 0 0 30px rgba(100, 166, 240, 0.3);
}

/* Make sure it's responsive */
@media (max-width: 768px) {
    .profile-picture-container {
        max-width: 100%;
        padding: 0 20px;
    }
}

/* Horizontal rule styling */
hr {
    max-width: 200px;
    margin: 30px auto;
    border: none;
    border-top: 1px solid var(--border-color);
}

/* Novel Structure styling */
.novel-structure {
    background-color: rgba(255, 255, 255, 0.05);
    padding: 30px;
    border-radius: 8px;
    margin: 30px 0;
}

.novel-structure h3 {
    text-align: center;
    margin-bottom: 20px;
    color: var(--accent-color);
}

.novel-structure h4 {
    color: var(--primary-color);
    margin: 25px 0 15px 0;
    font-size: 1.2em;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 5px;
}

.novel-structure ol {
    list-style-type: decimal;
    padding-left: 25px;
    margin: 15px 0;
}

.novel-structure li {
    margin: 10px 0;
    color: var(--text-color);
}

/* Articles Page Styles */
.articles-page {
    padding: 40px 0;
}

.page-title {
    text-align: center;
    margin-bottom: 40px;
    font-size: 2.5em;
    color: var(--primary-color);
}

.articles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    padding: 20px 0;
}

.article-card {
    background-color: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.article-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.article-card-content {
    padding: 25px;
}

.article-title {
    font-size: 1.5em;
    margin-bottom: 15px;
    color: var(--primary-color);
}

.article-excerpt {
    color: var(--secondary-color);
    margin-bottom: 20px;
    line-height: 1.6;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.article-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 15px;
    border-top: 1px solid var(--border-color);
}

.article-date {
    color: var(--secondary-color);
    font-size: 0.9em;
}

.article-date i {
    margin-right: 5px;
}

.read-more {
    color: var(--accent-color);
    text-decoration: none;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 5px;
    transition: color 0.3s ease;
}

.read-more:hover {
    color: var(--primary-color);
    text-decoration: none;
}

.read-more i {
    font-size: 0.8em;
    transition: transform 0.3s ease;
}

.read-more:hover i {
    transform: translateX(3px);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .articles-grid {
        grid-template-columns: 1fr;
        gap: 20px;
        padding: 10px;
    }

    .page-title {
        font-size: 2em;
        margin-bottom: 30px;
    }

    .article-card-content {
        padding: 20px;
    }
}

/* Novel Structure additional styling */
.journey-section {
    margin: 30px 0;
    padding: 20px;
    background-color: rgba(255, 255, 255, 0.02);
    border-radius: 8px;
    border: 1px solid var(--border-color);
}

.journey-section h4 {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--accent-color);
    margin-bottom: 15px;
    font-size: 1.3em;
}

.journey-section h4 i {
    font-size: 0.9em;
}

.structure-intro {
    text-align: center;
    color: var(--secondary-color);
    font-style: italic;
    margin: 20px 0;
}

.novel-structure {
    margin: 40px 0;
    padding: 30px;
    background-color: rgba(255, 255, 255, 0.03);
    border-radius: 12px;
    border: 1px solid var(--border-color);
}

.novel-structure h3 {
    text-align: center;
    color: var(--accent-color);
    font-size: 1.8em;
    margin-bottom: 20px;
    letter-spacing: 2px;
}

.novel-structure ol {
    list-style-type: decimal;
    padding-left: 25px;
    color: var(--secondary-color);
}

.novel-structure li {
    margin: 10px 0;
    padding: 5px 0;
}

/* Language sections */
.english-section,
.spanish-section {
    margin-bottom: 40px;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .journey-section {
        padding: 15px;
    }

    .novel-structure {
        padding: 20px;
    }

    .novel-structure h3 {
        font-size: 1.5em;
    }
}

/* Footer Styles */
.site-footer {
    margin-top: 60px;
    background-color: rgba(255, 255, 255, 0.03);
    border-top: 1px solid var(--border-color);
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}

/* Footer Sections */
.footer-section {
    padding: 20px;
}

.footer-section h3 {
    color: var(--accent-color);
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.2em;
}

/* Contact Form Styling */
.footer-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.form-group label {
    color: var(--secondary-color);
    font-size: 0.9em;
}

.form-group input,
.form-group textarea {
    padding: 10px;
    border-radius: 4px;
    border: 1px solid var(--border-color);
    background-color: rgba(255, 255, 255, 0.05);
    color: var(--text-color);
    font-family: var(--main-font);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent-color);
    background-color: rgba(255, 255, 255, 0.08);
}

.submit-button {
    padding: 12px 24px;
    background-color: var(--accent-color);
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-family: var(--main-font);
    font-weight: 500;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.3s ease;
}

.submit-button:hover {
    background-color: #4a7ac4;
    transform: translateY(-2px);
}

/* Footer Links */
.footer-links {
    list-style: none;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.footer-links a {
    color: var(--secondary-color);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: var(--accent-color);
}

.santasy-link {
    color: var(--accent-color) !important;
    font-weight: 500;
}

/* Copyright Bar */
.footer-bottom {
    border-top: 1px solid var(--border-color);
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
}

.copyright {
    color: var(--secondary-color);
    font-size: 0.9em;
}

.footer-social {
    display: flex;
    gap: 15px;
}

.footer-social a {
    color: var(--secondary-color);
    font-size: 1.2em;
    transition: all 0.3s ease;
}

.footer-social a:hover {
    color: var(--accent-color);
    transform: translateY(-2px);
}

/* Responsive Design */
@media (max-width: 768px) {
    .footer-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }
}

/* Contact Page Styles */
.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    padding: 2rem 0;
}

.contact-section {
    background-color: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 2rem;
}

.contact-section h2 {
    color: var(--accent-color);
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.6em;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-group label {
    color: var(--primary-color);
    font-size: 0.95em;
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

.required {
    color: #ff6b6b;
}

.form-group input,
.form-group textarea {
    padding: 0.8rem 1rem;
    border-radius: 6px;
    border: 1px solid var(--border-color);
    background-color: rgba(255, 255, 255, 0.05);
    color: var(--text-color);
    font-family: var(--main-font);
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent-color);
    background-color: rgba(255, 255, 255, 0.08);
    box-shadow: 0 0 0 2px rgba(100, 166, 240, 0.2);
}

.contact-info-section {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.contact-info-section h2 {
    color: var(--accent-color);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.6em;
}

.contact-card {
    background-color: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.contact-method {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.contact-method i {
    color: var(--accent-color);
    font-size: 1.5em;
    padding-top: 0.2rem;
}

.contact-details h3 {
    color: var(--primary-color);
    margin-bottom: 0.3rem;
    font-size: 1.1em;
}

.contact-details a {
    color: var(--secondary-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

.contact-details a:hover {
    color: var(--accent-color);
    text-decoration: none;
}

.social-links-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 1rem;
}

.social-grid-item {
    background-color: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 1rem;
    display: flex;
    align-items: center;
    gap: 0.8rem;
    text-decoration: none;
    color: var(--secondary-color);
    transition: all 0.3s ease;
}

.social-grid-item:hover {
    transform: translateY(-2px);
    border-color: var(--accent-color);
    background-color: rgba(255, 255, 255, 0.05);
    text-decoration: none;
}

.social-grid-item i {
    font-size: 1.2em;
}

/* Social media specific hover colors */
.social-grid-item:hover .fa-linkedin { color: #0077b5; }
.social-grid-item:hover .fa-github { color: #ffffff; }
.social-grid-item:hover .fa-instagram { color: #e4405f; }
.social-grid-item:hover .fa-x-twitter { color: #ffffff; }
.social-grid-item:hover .fa-youtube { color: #ff0000; }
.social-grid-item:hover .fa-twitch { color: #6441a5; }
.social-grid-item:hover .fa-discord { color: #7289da; }
.social-grid-item:hover .fa-reddit { color: #ff4500; }

@media (max-width: 768px) {
    .contact-wrapper {
        grid-template-columns: 1fr;
    }

    .contact-section,
    .contact-info-section {
        padding: 1.5rem;
    }

    .social-links-grid {
        grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    }
}

/* Form Validation Styles */
.form-group input.invalid,
.form-group textarea.invalid {
    border-color: #ff6b6b;
    background-color: rgba(255, 107, 107, 0.05);
}

.error-message {
    color: #ff6b6b;
    font-size: 0.85em;
    margin-top: 0.3rem;
    display: block;
}

/* Notification Styles */
.notification {
    position: fixed;
    bottom: 20px;
    right: 20px;
    padding: 1rem 1.5rem;
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 0.8rem;
    color: white;
    font-weight: 500;
    transform: translateY(100px);
    opacity: 0;
    transition: all 0.3s ease;
    z-index: 1000;
    max-width: 400px;
}

.notification.success {
    background-color: #2ecc71;
    box-shadow: 0 4px 12px rgba(46, 204, 113, 0.2);
}

.notification.error {
    background-color: #e74c3c;
    box-shadow: 0 4px 12px rgba(231, 76, 60, 0.2);
}

.notification.show {
    transform: translateY(0);
    opacity: 1;
}

.notification i {
    font-size: 1.2em;
}

@media (max-width: 768px) {
    .notification {
        left: 20px;
        right: 20px;
        bottom: 20px;
        max-width: none;
    }
}

/* Loading State for Submit Buttons */
.submit-button:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

.submit-button .fa-spinner {
    animation: spin 1s linear infinite;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}