:root {
    /* Mondragon Data Services Official Brand Colors */
    --brand-primary: #11111E;        /* Azul Escuro Principal */
    --brand-secondary: #2B2B35;      /* Azul Escuro Secundário */
    --brand-dark: #19181D;           /* Preto */
    --brand-light: #F6F4F5;          /* Branco/Cinza Claro */
    
    /* Applied Colors */
    --primary-color: #2B2B35;
    --secondary-color: #11111E;
    --accent-color: #4A5568;         /* Cinza médio derivado */
    --text-color: #E8E6E7;           /* Texto claro sobre escuro */
    --text-dark: #19181D;            /* Texto escuro sobre claro */
    --bg-color: #11111E;             /* Fundo principal */
    --card-bg: #2B2B35;              /* Fundo dos cards */
    --white: #F6F4F5;                /* Branco da marca */
    --border-color: #3A3A45;         /* Bordas sutis */
    
    --font-family: 'Segoe UI Variable', 'Segoe UI', Arial, Helvetica, sans-serif;
    --heading-font: 'Segoe UI Variable', 'Segoe UI', Arial, Helvetica, sans-serif;
    
    /* Light Mode - Para áreas específicas */
    --light-bg: #F6F4F5;
    --light-card-bg: #FFFFFF;
    --light-text: #19181D;
    --light-text-secondary: #2B2B35;
    --light-border: #D8D6D7;
    
    /* Status Colors - Ajustados para harmonia com a marca */
    --success-color: #27AE60;
    --warning-color: #F39C12;
    --info-color: #5A6C84;
    --neutral-color: #6B7280;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-family);
    color: var(--text-color);
    background-color: var(--bg-color);
    line-height: 1.6;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
.header {
    background-color: var(--card-bg);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: 2px solid var(--border-color);
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.logo img {
    height: 80px;
    width: auto;
}

.nav-list {
    display: flex;
    list-style: none;
    gap: 2rem;
    align-items: center;
}

.nav-link {
    text-decoration: none;
    color: var(--text-color);
    font-weight: 600;
    transition: color 0.3s;
    font-family: var(--font-family);
}

.nav-link:hover {
    color: var(--white);
}

/* Hero */
.hero {
    background: linear-gradient(135deg, var(--brand-primary) 0%, var(--brand-secondary) 100%);
    color: var(--white);
    padding: 8rem 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 50% 50%, rgba(43, 43, 53, 0.3) 0%, transparent 70%);
}

.hero-logo {
    max-width: 400px;
    width: 100%;
    height: auto;
    margin-bottom: 2rem;
    position: relative;
    z-index: 1;
    filter: drop-shadow(0 10px 30px rgba(43, 43, 53, 0.5));
}


.hero-title {
    font-size: 4rem;
    margin-bottom: 1rem;
    font-family: var(--heading-font);
    background: linear-gradient(to right, var(--white), var(--accent-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    position: relative;
    z-index: 1;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.hero-subtitle {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    opacity: 0.9;
    color: #E0E0E0;
    position: relative;
    z-index: 1;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    border-radius: 0.5rem;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    font-family: var(--font-family);
}

.btn-primary {
    background-color: var(--primary-color);
    color: var(--white);
    border: 2px solid var(--primary-color);
}

.btn-primary:hover {
    background-color: var(--secondary-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(43, 43, 53, 0.4);
}

.btn-secondary {
    background-color: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.btn-secondary:hover {
    background-color: rgba(43, 43, 53, 0.1);
    transform: translateY(-2px);
}

/* About/Profile Section */
.about-section {
    padding: 6rem 0;
    background-color: var(--bg-color);
}

.profile-container {
    display: flex;
    gap: 3rem;
    align-items: flex-start;
    max-width: 900px;
    margin: 0 auto;
}

.profile-photo {
    flex-shrink: 0;
}

.profile-photo img {
    width: 250px;
    height: 250px;
    object-fit: cover;
    border-radius: 50%;
    border: 4px solid var(--primary-color);
    box-shadow: 0 8px 24px rgba(43, 43, 53, 0.4);
}

.profile-content {
    flex: 1;
}

.profile-name {
    font-size: 2.5rem;
    color: var(--white);
    margin-bottom: 0.5rem;
    font-family: var(--heading-font);
}

.profile-title {
    font-size: 1.5rem;
    color: var(--accent-color);
    margin-bottom: 1rem;
}

.profile-location,
.profile-experience {
    color: var(--text-color);
    margin-bottom: 0.5rem;
    font-size: 1rem;
}

.profile-bio {
    color: var(--text-color);
    line-height: 1.8;
    margin: 1.5rem 0;
    font-size: 1.1rem;
}

.profile-links {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
}

.profile-link {
    padding: 0.75rem 1.5rem;
    background-color: var(--primary-color);
    color: var(--white);
    text-decoration: none;
    border-radius: 0.5rem;
    transition: all 0.3s ease;
    font-weight: 600;
}

.profile-link:hover {
    background-color: var(--secondary-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(43, 43, 53, 0.4);
}

@media (max-width: 768px) {
    .profile-container {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    
    .profile-photo img {
        width: 200px;
        height: 200px;
    }
    
    .profile-links {
        justify-content: center;
        flex-wrap: wrap;
    }
}

/* Services */
.services {
    padding: 6rem 0;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 4rem;
    color: var(--white);
    font-family: var(--heading-font);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.service-card {
    background: var(--card-bg);
    padding: 2.5rem;
    border-radius: 1rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 20px rgba(43, 43, 53, 0.3);
    border-color: var(--primary-color);
}

.service-card h3 {
    margin-bottom: 1rem;
    color: var(--primary-color);
    font-size: 1.5rem;
    font-family: var(--heading-font);
}

.service-card p {
    color: #B0B0B0;
}

/* Contact */
.contact {
    background-color: var(--card-bg);
    padding: 6rem 0;
    text-align: center;
    border-top: 2px solid var(--border-color);
}

.contact-subtitle {
    margin-bottom: 3rem;
    font-size: 1.15rem;
    color: #B0B0B0;
    max-width: 550px;
    margin-left: auto;
    margin-right: auto;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 2.5rem;
    text-align: left;
    max-width: 1000px;
    margin: 0 auto;
}

.contact-form-card,
.contact-info-card {
    background: var(--bg-color);
    border-radius: 1rem;
    padding: 2.5rem;
    border: 1px solid var(--border-color);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.25);
}

.contact-card-title {
    font-size: 1.4rem;
    color: var(--white);
    margin-bottom: 1.5rem;
    font-family: var(--heading-font);
    font-weight: 700;
}

/* Form Styles */
.form-group {
    margin-bottom: 1.25rem;
}

.form-label {
    display: block;
    font-size: 0.85rem;
    color: #B0B0B0;
    margin-bottom: 0.4rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.form-input,
.form-textarea {
    width: 100%;
    padding: 0.85rem 1rem;
    background: var(--card-bg);
    border: 1.5px solid var(--border-color);
    border-radius: 0.5rem;
    color: var(--text-color);
    font-family: var(--font-family);
    font-size: 1rem;
    transition: all 0.3s ease;
    outline: none;
}

.form-input:focus,
.form-textarea:focus {
    border-color: #5A6C84;
    box-shadow: 0 0 0 3px rgba(90, 108, 132, 0.2);
}

.form-input::placeholder,
.form-textarea::placeholder {
    color: #606068;
}

.form-textarea {
    resize: vertical;
    min-height: 120px;
}

.form-input.input-error,
.form-textarea.input-error {
    border-color: #E74C3C;
    box-shadow: 0 0 0 3px rgba(231, 76, 60, 0.15);
}

.field-error {
    display: block;
    color: #E74C3C;
    font-size: 0.8rem;
    margin-top: 0.35rem;
}

/* Submit Button */
.btn-submit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    width: 100%;
    padding: 1rem 2rem;
    background: linear-gradient(135deg, #3A3A45 0%, #2B2B35 100%);
    color: var(--white);
    border: 2px solid var(--border-color);
    border-radius: 0.5rem;
    font-size: 1rem;
    font-weight: 700;
    font-family: var(--font-family);
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.btn-submit:hover {
    background: linear-gradient(135deg, #4A4A55 0%, #3A3A45 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.35);
    border-color: #5A6C84;
}

.btn-submit:active {
    transform: translateY(0);
}

.btn-submit:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

.btn-loading {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.spinner {
    animation: spin 1s linear infinite;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* Feedback */
.form-feedback {
    margin-top: 1.25rem;
    padding: 1rem 1.25rem;
    border-radius: 0.5rem;
    font-weight: 600;
    font-size: 0.95rem;
    animation: fadeSlideIn 0.4s ease;
}

.form-success {
    background: rgba(39, 174, 96, 0.12);
    color: #27AE60;
    border: 1px solid rgba(39, 174, 96, 0.3);
}

.form-error {
    background: rgba(231, 76, 60, 0.12);
    color: #E74C3C;
    border: 1px solid rgba(231, 76, 60, 0.3);
}

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

/* Contact Info Card */
.contact-info-text {
    color: #B0B0B0;
    margin-bottom: 2rem;
    line-height: 1.7;
    font-size: 1rem;
}

.contact-info-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.25rem;
    background: var(--card-bg);
    border-radius: 0.75rem;
    border: 1.5px solid var(--border-color);
    text-decoration: none;
    transition: all 0.3s ease;
    margin-bottom: 1rem;
}

.contact-info-item:hover {
    border-color: #5A6C84;
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
}

.contact-info-icon {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(90, 108, 132, 0.12);
    border-radius: 0.625rem;
    color: #8A9AB5;
    transition: all 0.3s ease;
}

.contact-info-item:hover .contact-info-icon {
    background: rgba(90, 108, 132, 0.22);
    color: var(--white);
}

.contact-info-details {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}

.contact-info-label {
    font-size: 0.75rem;
    color: #808080;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 600;
}

.contact-info-value {
    color: var(--text-color);
    font-size: 1rem;
    font-weight: 600;
}

.contact-decoration {
    margin-top: 2rem;
    padding-top: 1.5rem;
}

.decoration-line {
    height: 3px;
    border-radius: 2px;
    background: linear-gradient(90deg, var(--border-color), #5A6C84, var(--border-color));
    opacity: 0.5;
}

/* Contact Responsive */
@media (max-width: 768px) {
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .contact-form-card,
    .contact-info-card {
        padding: 2rem 1.5rem;
    }

    .contact {
        padding: 4rem 0;
    }
}

/* Footer */
.footer {
    background-color: #050812;
    color: #808080;
    padding: 2rem 0;
    text-align: center;
    border-top: 2px solid var(--primary-color);
}

/* Language Switcher */
.language-form select {
    background-color: var(--bg-color);
    color: var(--text-color);
    border: 2px solid #333;
    padding: 0.5rem;
    border-radius: 0.25rem;
    cursor: pointer;
    font-family: var(--font-family);
}

.language-form select:hover {
    border-color: var(--primary-color);
}
/* Blog Styles */
.blog-header {
    background: linear-gradient(135deg, var(--brand-primary) 0%, var(--accent-color) 100%);
    color: var(--white);
    padding: 4rem 0;
    text-align: center;
}

.blog-subtitle {
    font-size: 1.1rem;
    opacity: 0.9;
    color: #E0E0E0;
    margin-top: 1rem;
}

.blog-posts {
    padding: 4rem 0;
}

.posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.post-card {
    background: var(--card-bg);
    border-radius: 1rem;
    overflow: hidden;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.post-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(43, 43, 53, 0.3);
    border-color: var(--primary-color);
}

.post-card-content {
    padding: 2rem;
}

.post-category {
    display: inline-block;
    background: var(--primary-color);
    color: var(--white);
    padding: 0.25rem 0.75rem;
    border-radius: 0.25rem;
    font-size: 0.875rem;
    text-decoration: none;
    margin-bottom: 1rem;
    font-weight: 600;
}

.post-category:hover {
    background: var(--secondary-color);
}

.post-title {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    font-family: var(--heading-font);
}

.post-title a {
    color: var(--white);
    text-decoration: none;
    transition: color 0.3s;
}

.post-title a:hover {
    color: var(--primary-color);
}

.post-excerpt {
    color: #B0B0B0;
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.post-meta {
    display: flex;
    gap: 1.5rem;
    font-size: 0.875rem;
    color: #808080;
    margin-bottom: 1.5rem;
}

.no-posts {
    text-align: center;
    color: #B0B0B0;
    font-size: 1.1rem;
    padding: 3rem 0;
}

/* Blog Post Detail */
.blog-post-detail {
    padding: 4rem 0;
}

.post-header {
    margin-bottom: 3rem;
    padding-bottom: 2rem;
    border-bottom: 2px solid var(--card-bg);
}

.post-content {
    color: #E0E0E0;
    line-height: 1.8;
    font-size: 1.1rem;
    margin-bottom: 3rem;
}

.post-content p {
    margin-bottom: 1.5rem;
}

.post-footer {
    padding-top: 2rem;
    border-top: 2px solid var(--card-bg);
}

.category-footer {
    text-align: center;
    margin-top: 3rem;
}

/* Videos Styles */
.videos-header {
    background: linear-gradient(135deg, var(--brand-primary) 0%, var(--accent-color) 100%);
    color: var(--white);
    padding: 4rem 0;
    text-align: center;
}

.videos-subtitle {
    font-size: 1.1rem;
    opacity: 0.9;
    color: #E0E0E0;
    margin-top: 1rem;
}

.videos-content {
    padding: 4rem 0;
}

.video-categories {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 3rem;
    justify-content: center;
}

.category-chip {
    padding: 0.5rem 1.5rem;
    background: var(--card-bg);
    color: var(--text-color);
    border-radius: 2rem;
    text-decoration: none;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.category-chip:hover,
.category-chip.active {
    background: var(--primary-color);
    color: var(--white);
    border-color: var(--primary-color);
}

.videos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.video-card {
    background: var(--card-bg);
    border-radius: 1rem;
    overflow: hidden;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.video-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(43, 43, 53, 0.3);
    border-color: var(--primary-color);
}

.video-thumbnail {
    position: relative;
    display: block;
    width: 100%;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
    overflow: hidden;
    background: #000;
}

.video-thumbnail img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.video-card:hover .video-thumbnail img {
    transform: scale(1.05);
}

.play-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    opacity: 0.9;
    transition: all 0.3s ease;
}

.video-card:hover .play-overlay {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1.1);
}

.video-card-content {
    padding: 1.5rem;
}

.video-category {
    display: inline-block;
    background: var(--primary-color);
    color: var(--white);
    padding: 0.25rem 0.75rem;
    border-radius: 0.25rem;
    font-size: 0.875rem;
    text-decoration: none;
    margin-bottom: 0.75rem;
    font-weight: 600;
}

.video-category:hover {
    background: var(--secondary-color);
}

.video-title {
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
    font-family: var(--heading-font);
}

.video-title a {
    color: var(--white);
    text-decoration: none;
    transition: color 0.3s;
}

.video-title a:hover {
    color: var(--primary-color);
}

.video-description {
    color: #B0B0B0;
    margin-bottom: 1rem;
    line-height: 1.6;
    font-size: 0.95rem;
}

.video-meta {
    font-size: 0.875rem;
    color: #808080;
}

.no-videos {
    text-align: center;
    color: #B0B0B0;
    font-size: 1.1rem;
    padding: 3rem 0;
}

/* Video Detail */
.video-detail {
    padding: 4rem 0;
}

.video-player-container {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
    margin-bottom: 2rem;
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.video-player {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.video-info {
    margin-bottom: 3rem;
}

.video-info .video-title {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.video-info .video-description {
    background: var(--card-bg);
    padding: 2rem;
    border-radius: 0.5rem;
    margin-top: 2rem;
}

.video-info .video-description h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.related-videos {
    margin-bottom: 3rem;
}

.related-videos h2 {
    color: var(--white);
    margin-bottom: 2rem;
    font-size: 1.75rem;
}

.video-footer {
    padding-top: 2rem;
    border-top: 2px solid var(--card-bg);
}

/* ================================================================
   Projects Pages — Dark / Tech theme (matches rest of site)
   List · Category · Detail
   ================================================================ */

.projects-header {
    background:
      radial-gradient(ellipse 60% 70% at 80% 50%, rgba(0,212,255,.08) 0%, transparent 60%),
      linear-gradient(135deg, var(--brand-primary) 0%, var(--accent-color) 100%);
    color: var(--white);
    padding: 5rem 0 4rem;
    text-align: center;
    border-bottom: 1px solid var(--glass-border, rgba(0,212,255,0.12));
    position: relative;
    overflow: hidden;
}

.projects-header .section-title {
    color: var(--white);
    background: linear-gradient(90deg, #FFFFFF 0%, #00D4FF 60%, #7B2FBE 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.projects-subtitle {
    font-size: 1.15rem;
    color: #C5C7D6;
    margin-top: 1rem;
    max-width: 640px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.7;
}

.projects-content {
    padding: 4rem 0;
    background: var(--bg-color);
    position: relative;
}

/* Subtle ambient glow on the whole content area */
.projects-content::before {
    content: '';
    position: absolute; inset: 0;
    background:
      radial-gradient(800px 400px at 10% 0%, rgba(0,212,255,.04) 0%, transparent 70%),
      radial-gradient(800px 400px at 100% 30%, rgba(123,47,190,.04) 0%, transparent 70%);
    pointer-events: none;
}

.projects-content > .container { position: relative; z-index: 1; }

/* ---- Filters ---- */
.project-filters {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
    margin-bottom: 3rem;
    justify-content: center;
}

.filter-chip {
    padding: 0.6rem 1.4rem;
    background: rgba(43, 43, 53, 0.5);
    color: #C5C7D6;
    border-radius: 2rem;
    text-decoration: none;
    transition: all 0.25s ease;
    border: 1px solid rgba(0, 212, 255, 0.12);
    font-weight: 500;
    font-size: 0.85rem;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    letter-spacing: 0.3px;
}

.filter-chip:hover {
    color: #00D4FF;
    border-color: rgba(0, 212, 255, 0.45);
    box-shadow: 0 0 12px rgba(0,212,255,.15);
    transform: translateY(-1px);
}

.filter-chip.active {
    background: linear-gradient(135deg, rgba(0,212,255,.18) 0%, rgba(123,47,190,.18) 100%);
    color: #00D4FF;
    border-color: #00D4FF;
    box-shadow: 0 0 16px rgba(0,212,255,.25);
}

/* ---- Grid + Cards ---- */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 1.75rem;
    margin-bottom: 2rem;
}

.project-card {
    background: rgba(43, 43, 53, 0.55);
    border-radius: 0.85rem;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(.2,.7,.2,1);
    border: 1px solid rgba(0, 212, 255, 0.10);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 4px 20px rgba(0,0,0,0.25);
    position: relative;
}

.project-card::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 0.85rem;
    padding: 1px;
    background: linear-gradient(135deg, transparent 30%, rgba(0,212,255,0) 50%, transparent 70%);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
            mask-composite: exclude;
    pointer-events: none;
    transition: background 0.3s ease;
}

.project-card:hover {
    transform: translateY(-6px);
    border-color: rgba(0, 212, 255, 0.45);
    box-shadow: 0 16px 40px rgba(0,0,0,0.45), 0 0 24px rgba(0,212,255,.18);
}

.project-card:hover::before {
    background: linear-gradient(135deg, rgba(0,212,255,.4) 0%, rgba(123,47,190,.4) 100%);
}

.project-image {
    position: relative;
    width: 100%;
    padding-bottom: 56%;
    overflow: hidden;
    background:
      radial-gradient(circle at 30% 30%, rgba(0,212,255,.10) 0%, transparent 60%),
      linear-gradient(135deg, #1a1a28 0%, #2B2B35 100%);
    border-bottom: 1px solid rgba(0,212,255,.08);
}

.project-image img {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease, filter 0.3s ease;
    filter: brightness(0.92) saturate(1.05);
}

.project-card:hover .project-image img {
    transform: scale(1.06);
    filter: brightness(1.05) saturate(1.15);
}

.project-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
}

.placeholder-icon {
    font-size: 3.2rem;
    opacity: 0.35;
    filter: drop-shadow(0 0 12px rgba(0,212,255,.4));
}

.project-overlay {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(180deg, rgba(17,17,30,0) 30%, rgba(17,17,30,0.92) 100%);
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding-bottom: 1.25rem;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.project-card:hover .project-overlay { opacity: 1; }

.project-overlay .btn-primary {
    background: linear-gradient(135deg, rgba(0,212,255,.18) 0%, rgba(123,47,190,.18) 100%);
    color: #00D4FF !important;
    border: 1px solid #00D4FF;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-size: 0.8rem;
    padding: 0.55rem 1.4rem;
    box-shadow: 0 0 16px rgba(0,212,255,.35);
}

.project-card-content {
    padding: 1.5rem 1.6rem 1.6rem;
}

.project-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.9rem;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.project-category {
    display: inline-block;
    background: rgba(0, 212, 255, 0.08);
    color: #00D4FF;
    padding: 0.3rem 0.85rem;
    border-radius: 0.35rem;
    font-size: 0.72rem;
    text-decoration: none;
    font-weight: 700;
    border: 1px solid rgba(0, 212, 255, 0.25);
    text-transform: uppercase;
    letter-spacing: 0.6px;
    transition: all 0.2s ease;
}

.project-category:hover {
    background: rgba(0, 212, 255, 0.18);
    border-color: #00D4FF;
    box-shadow: 0 0 10px rgba(0,212,255,.25);
}

.project-status {
    padding: 0.3rem 0.75rem;
    border-radius: 0.35rem;
    font-size: 0.68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.6px;
}

.status-planning {
    background: rgba(243, 156, 18, 0.12);
    color: #F39C12;
    border: 1px solid rgba(243, 156, 18, 0.4);
}

.status-progress {
    background: rgba(0, 212, 255, 0.12);
    color: #00D4FF;
    border: 1px solid rgba(0, 212, 255, 0.45);
    box-shadow: 0 0 8px rgba(0,212,255,.15);
}

.status-completed {
    background: rgba(39, 174, 96, 0.12);
    color: #2ECC71;
    border: 1px solid rgba(46, 204, 113, 0.45);
}

.status-hold {
    background: rgba(127, 140, 141, 0.12);
    color: #95A5A6;
    border: 1px solid rgba(149, 165, 166, 0.4);
}

.project-title {
    font-size: 1.3rem;
    margin-bottom: 0.7rem;
    font-family: var(--heading-font);
    line-height: 1.35;
    font-weight: 600;
}

.project-title a {
    color: var(--white);
    text-decoration: none;
    transition: color 0.2s ease, text-shadow 0.2s ease;
}

.project-card:hover .project-title a {
    color: #00D4FF;
    text-shadow: 0 0 12px rgba(0,212,255,.4);
}

.project-description {
    color: #B0B3C0;
    margin-bottom: 1.1rem;
    line-height: 1.65;
    font-size: 0.92rem;
}

.project-technologies {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    margin-bottom: 1rem;
}

.tech-badge {
    padding: 0.28rem 0.7rem;
    background: rgba(123, 47, 190, 0.12);
    color: #B591FF;
    border-radius: 0.3rem;
    font-size: 0.72rem;
    border: 1px solid rgba(123, 47, 190, 0.3);
    font-weight: 500;
    transition: all 0.2s ease;
    font-family: 'Courier New', monospace;
    letter-spacing: 0.3px;
}

.tech-badge:hover {
    background: rgba(123, 47, 190, 0.2);
    border-color: #B591FF;
    box-shadow: 0 0 8px rgba(123,47,190,.25);
}

.project-meta {
    display: flex;
    gap: 1rem;
    font-size: 0.8rem;
    color: #808390;
    flex-wrap: wrap;
    padding-top: 0.85rem;
    border-top: 1px solid rgba(0,212,255,.08);
}

.project-meta .project-client {
    color: #00D4FF;
    font-weight: 600;
}

.no-projects {
    text-align: center;
    color: #B0B3C0;
    font-size: 1.05rem;
    padding: 4rem 2rem;
    background: rgba(43, 43, 53, 0.4);
    border-radius: 0.75rem;
    border: 1px dashed rgba(0,212,255,.2);
}

/* ================================================================
   Project Detail (dark theme)
   ================================================================ */
.project-detail {
    padding: 4rem 0;
    background: var(--bg-color);
    position: relative;
}

.project-detail::before {
    content: '';
    position: absolute; inset: 0;
    background:
      radial-gradient(900px 500px at 0% 0%, rgba(0,212,255,.05) 0%, transparent 70%),
      radial-gradient(900px 500px at 100% 50%, rgba(123,47,190,.05) 0%, transparent 70%);
    pointer-events: none;
}

.project-detail > .container { position: relative; z-index: 1; }

.project-detail-header {
    margin-bottom: 3rem;
    background: rgba(43, 43, 53, 0.55);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    padding: 2.5rem;
    border-radius: 1rem;
    border: 1px solid rgba(0, 212, 255, 0.12);
    box-shadow: 0 8px 32px rgba(0,0,0,0.3);
}

.project-detail-meta {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.project-detail-title {
    font-size: 2.6rem;
    color: var(--white);
    margin-bottom: 1.75rem;
    line-height: 1.25;
    background: linear-gradient(90deg, #FFFFFF 0%, #00D4FF 80%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.project-info-bar {
    display: flex;
    gap: 2rem;
    padding: 1.25rem 1.5rem;
    background: rgba(17, 17, 30, 0.5);
    border-radius: 0.6rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
    border: 1px solid rgba(0,212,255,.10);
}

.info-item {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
}

.info-label {
    font-size: 0.72rem;
    color: #00D4FF;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    font-weight: 700;
}

.info-value {
    color: var(--white);
    font-weight: 600;
    font-size: 1rem;
}

.project-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.project-actions .btn {
    background: linear-gradient(135deg, rgba(0,212,255,.15) 0%, rgba(123,47,190,.15) 100%);
    border: 1px solid rgba(0, 212, 255, 0.4);
    color: #00D4FF;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-size: 0.8rem;
    padding: 0.65rem 1.5rem;
    transition: all 0.25s ease;
}

.project-actions .btn:hover {
    border-color: #00D4FF;
    color: #FFFFFF;
    box-shadow: 0 0 18px rgba(0,212,255,.35);
    transform: translateY(-2px);
}

.project-actions .btn span {
    margin-right: 0.4rem;
}

.project-detail-image {
    margin-bottom: 3rem;
    border-radius: 0.85rem;
    overflow: hidden;
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(0,212,255,.15);
}

.project-detail-image img {
    width: 100%;
    height: auto;
    display: block;
}

.project-detail-content {
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: 2.5rem;
    margin-bottom: 3rem;
}

@media (max-width: 968px) {
    .project-detail-content { grid-template-columns: 1fr; }
}

.project-main-content {
    background: rgba(43, 43, 53, 0.55);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    padding: 2.25rem;
    border-radius: 0.85rem;
    border: 1px solid rgba(0, 212, 255, 0.10);
}

.project-main-content h2 {
    color: var(--white);
    margin-bottom: 1.5rem;
    font-size: 1.6rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid rgba(0,212,255,.2);
    position: relative;
}

.project-main-content h2::after {
    content: '';
    position: absolute;
    bottom: -1px; left: 0;
    width: 60px; height: 1px;
    background: linear-gradient(90deg, #00D4FF, #7B2FBE);
    box-shadow: 0 0 8px rgba(0,212,255,.4);
}

.project-main-content .project-description {
    color: #D0D2DC;
    line-height: 1.8;
    font-size: 1rem;
}

.project-main-content .project-description p { margin-bottom: 1.1rem; }
.project-main-content .project-description strong { color: #00D4FF; }
.project-main-content .project-description a {
    color: #00D4FF;
    text-decoration: underline;
    text-decoration-color: rgba(0,212,255,.3);
}
.project-main-content .project-description a:hover { text-decoration-color: #00D4FF; }
.project-main-content .project-description code {
    background: rgba(0,212,255,.08);
    color: #00D4FF;
    padding: 0.15em 0.45em;
    border-radius: 0.25rem;
    font-size: 0.92em;
    border: 1px solid rgba(0,212,255,.15);
}
.project-main-content .project-description ul,
.project-main-content .project-description ol {
    margin: 0 0 1.1rem 1.5rem;
    color: #D0D2DC;
}
.project-main-content .project-description li { margin-bottom: 0.4rem; }

.project-sidebar {
    position: sticky;
    top: 100px;
    align-self: start;
}

.sidebar-section {
    background: rgba(43, 43, 53, 0.55);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    padding: 1.6rem;
    border-radius: 0.85rem;
    margin-bottom: 1.25rem;
    border: 1px solid rgba(0, 212, 255, 0.10);
}

.sidebar-section h3 {
    color: var(--white);
    margin-bottom: 1.1rem;
    font-size: 1.05rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid rgba(0,212,255,.15);
}

.tech-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
}

.info-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.info-list li {
    padding: 0.65rem 0;
    border-bottom: 1px solid rgba(0,212,255,.08);
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--white);
    font-size: 0.92rem;
}

.info-list li:last-child { border-bottom: none; }

.info-list strong {
    color: #00D4FF;
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.related-projects {
    margin-bottom: 3rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(0,212,255,.10);
}

.related-projects h2 {
    color: var(--white);
    margin-bottom: 2rem;
    font-size: 1.6rem;
    text-align: center;
}

.project-footer {
    padding-top: 2rem;
    text-align: center;
}

.project-footer .btn-secondary {
    background: transparent;
    color: #00D4FF;
    border: 1px solid rgba(0, 212, 255, 0.4);
    padding: 0.7rem 1.6rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-size: 0.8rem;
    transition: all 0.25s ease;
}

.project-footer .btn-secondary:hover {
    border-color: #00D4FF;
    box-shadow: 0 0 16px rgba(0,212,255,.3);
    transform: translateY(-2px);
}

