:root {
    --bg-color: #0d0e15;
    --sidebar-bg: #090a10;
    --card-bg: rgba(23, 25, 35, 0.7);
    --border-color: rgba(60, 64, 80, 0.5);
    --primary-color: #00f3ff;
    --secondary-color: #ade9eb;
    --accent-green: #2ecc71;
    --accent-red: #e74c3c;
    --accent-yellow: #f1c40f;
    --text-primary: #ecf0f1;
    --text-secondary: #95a5a6;
    --font-mono: 'Fira Code', monospace;
    --font-main: 'Inter', sans-serif;
    --sidebar-width: 280px;
    --header-height: 50px;
}

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

body {
    background-color: var(--bg-color);
    color: var(--text-primary);
    font-family: var(--font-main);
    overflow-x: hidden;
}

/* ---------------- LAYOUT GRID ---------------- */
.dashboard-body {
    display: grid;
    grid-template-columns: var(--sidebar-width) 1fr;
    height: 100vh;
    min-height: 100vh;
}

/* ---------------- SIDEBAR ---------------- */
.sidebar {
    background: var(--sidebar-bg);
    border-right: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    padding: 2rem 1.5rem;
    position: relative;
    z-index: 10;
    overflow-y: auto;
}

.profile-section {
    text-align: center;
    margin-bottom: 3rem;
}

.avatar-container {
    width: 100px;
    height: 100px;
    margin: 0 auto 1rem;
    position: relative;
}

.avatar-img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--secondary-color);
    padding: 3px;
    background: var(--bg-color);
}

.status-indicator {
    position: absolute;
    bottom: 5px;
    right: 5px;
    width: 15px;
    height: 15px;
    background: var(--accent-green);
    border-radius: 50%;
    border: 2px solid var(--sidebar-bg);
    box-shadow: 0 0 10px var(--accent-green);
}

.profile-name {
    font-size: 1.2rem;
    font-weight: 700;
    line-height: 1.4;
    color: #fff;
}

.profile-role {
    font-family: var(--font-mono);
    font-size: 0.8rem;
    color: var(--secondary-color);
    margin-top: 5px;
}

.badge-opentowork {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 15px;
    padding: 6px 12px;
    background: rgba(46, 204, 113, 0.1);
    border: 1px solid rgba(46, 204, 113, 0.3);
    border-radius: 20px;
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: var(--accent-green);
    font-weight: 600;
}

.pulse-dot {
    width: 8px;
    height: 8px;
    background-color: var(--accent-green);
    border-radius: 50%;
    position: relative;
}

.pulse-dot::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 100%;
    background-color: var(--accent-green);
    border-radius: 50%;
    animation: pulse-badge 2s infinite;
    opacity: 0.7;
}

@keyframes pulse-badge {
    0% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 0.7;
    }

    100% {
        transform: translate(-50%, -50%) scale(3);
        opacity: 0;
    }
}

/* Nav Menu */
.nav-menu {
    flex: 1;
}

.nav-label {
    font-size: 0.75rem;
    font-weight: 800;
    color: var(--text-secondary);
    letter-spacing: 1px;
    margin-bottom: 1rem;
    font-family: var(--font-main);
    text-transform: uppercase;
}

.nav-list {
    list-style: none;
}

.nav-list li {
    margin-bottom: 0.5rem;
}

.nav-list a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 15px;
    text-decoration: none;
    color: var(--text-secondary);
    font-family: var(--font-mono);
    font-size: 0.9rem;
    border-radius: 6px;
    transition: all 0.2s;
    border: 1px solid transparent;
}

.nav-list a:hover,
.nav-list li.active a {
    background: rgba(255, 255, 255, 0.05);
    color: var(--primary-color);
    border-color: rgba(0, 243, 255, 0.2);
}

.nav-list a i {
    width: 20px;
    text-align: center;
    font-size: 1rem;
}

/* Sidebar Footer */
.btn-download {
    display: block;
    width: 100%;
    padding: 10px;
    background: linear-gradient(90deg, var(--secondary-color), var(--primary-color));
    color: #000;
    text-align: center;
    text-decoration: none;
    font-weight: 700;
    border-radius: 4px;
    font-size: 0.9rem;
    margin-bottom: 1rem;
    font-family: var(--font-mono);
    opacity: 0.9;
    transition: opacity 0.2s;
}

.btn-download:hover {
    opacity: 1;
}

.copyright {
    font-size: 0.7rem;
    color: #555;
    text-align: center;
}

/* ---------------- MAIN CONTENT ---------------- */
.main-content {
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
    height: 100vh;
}

/* Window Header */
.window-header {
    height: var(--header-height);
    background: rgba(13, 14, 21, 0.9);
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 1.5rem;
    backdrop-filter: blur(10px);
    z-index: 20;
    flex-shrink: 0;
}

.window-controls {
    display: flex;
    gap: 8px;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    opacity: 0.7;
}

.red {
    background: var(--accent-red);
}

.yellow {
    background: var(--accent-yellow);
}

.green {
    background: var(--accent-green);
}

.path-bar {
    font-family: var(--font-mono);
    color: var(--text-secondary);
    font-size: 0.9rem;
    background: rgba(0, 0, 0, 0.3);
    padding: 5px 15px;
    border-radius: 4px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.blink {
    animation: blink 1s infinite;
    font-weight: bold;
    color: var(--primary-color);
}

@keyframes blink {
    50% {
        opacity: 0;
    }
}

.action-icon {
    color: var(--text-secondary);
    cursor: pointer;
    font-size: 1.1rem;
}

/* Page Content Wrapper */
.content-wrapper {
    flex: 1;
    overflow-y: auto;
    padding: 2rem;
    position: relative;
    z-index: 5;
    -webkit-overflow-scrolling: touch;
}

/* Index page specific - no scroll */
.content-wrapper.index-content {
    overflow: hidden;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    height: calc(100vh - var(--header-height));
}

.content-wrapper.centered-content {
    display: flex;
    align-items: center;
    justify-content: center;
}

.page-title {
    font-family: var(--font-mono);
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-weight: 600;
}

/* ---------------- HERO (INDEX) ---------------- */
.hero-split {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex: 1;
    gap: 2rem;
    min-height: 0;
}

.hero-text {
    max-width: 600px;
    flex: 1;
}

.code-block {
    font-family: var(--font-mono);
    background: rgba(0, 0, 0, 0.3);
    padding: 1rem;
    border-radius: 8px;
    border-left: 3px solid var(--primary-color);
    margin-bottom: 1.5rem;
    color: #dcdccc;
    font-size: 0.85rem;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
    overflow-x: auto;
}

.keyword {
    color: #cc99cc;
}

.class-name {
    color: #f9ca24;
}

.this {
    color: #3498db;
}

.string {
    color: #2ecc71;
}

.hero-title {
    font-size: 3rem;
    line-height: 1.1;
    margin-bottom: 0.75rem;
    font-weight: 800;
    background: linear-gradient(to right, #fff, var(--text-secondary));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-subtitle {
    font-size: 1rem;
    color: var(--text-secondary);
    line-height: 1.5;
    margin-bottom: 1.5rem;
    max-width: 500px;
}

.highlight {
    color: var(--primary-color);
}

.hero-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 0;
}

.hero-visual {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    min-height: 0;
}

.holo-container {
    width: 250px;
    height: 250px;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    transform-style: preserve-3d;
}

.holo-ring {
    position: absolute;
    border-radius: 50%;
    border: 2px solid var(--primary-color);
    opacity: 0.3;
}

.ring-1 {
    width: 100%;
    height: 100%;
    animation: spin 10s linear infinite;
    border-top-color: transparent;
}

.ring-2 {
    width: 70%;
    height: 70%;
    animation: spin-rev 7s linear infinite;
    border-style: dashed;
}

.ring-3 {
    width: 110%;
    height: 110%;
    border: 1px dotted var(--secondary-color);
    animation: pulse-ring 4s infinite;
}

.holo-content {
    color: #fff;
    text-shadow: 0 0 20px var(--primary-color);
    animation: float 3s ease-in-out infinite;
}

@keyframes spin {
    100% {
        transform: rotate(360deg);
    }
}

@keyframes spin-rev {
    100% {
        transform: rotate(-360deg);
    }
}

@keyframes pulse-ring {

    0%,
    100% {
        transform: scale(1);
        opacity: 0.1;
    }

    50% {
        transform: scale(1.05);
        opacity: 0.3;
    }
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }
}

/* ---------------- REPO CARDS (PROJECTS) ---------------- */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
    align-items: start;
}

.repo-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 1.5rem;
    transition: transform 0.2s, box-shadow 0.2s;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.repo-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary-color);
    box-shadow: 0 10px 30px rgba(0, 243, 255, 0.1);
}

.repo-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}

.repo-icon {
    color: var(--text-secondary);
}

.repo-name {
    color: var(--primary-color);
    font-family: var(--font-mono);
    font-size: 1.1rem;
    flex: 1;
    word-break: break-word;
}

.repo-badge {
    font-size: 0.7rem;
    padding: 2px 8px;
    border-radius: 10px;
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
}

.repo-desc {
    font-size: 0.9rem;
    color: #aaa;
    margin-bottom: 1.5rem;
    line-height: 1.5;
}

.repo-img-preview {
    height: 150px;
    overflow: hidden;
    border-radius: 4px;
    margin-bottom: 1rem;
    border: 1px solid var(--border-color);
}

.repo-img-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.repo-meta {
    display: flex;
    align-items: center;
    gap: 15px;
    font-size: 0.8rem;
    color: var(--text-secondary);
    flex-wrap: wrap;
}

.lang-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    display: inline-block;
    margin-right: 5px;
}

.php {
    background: #8892be;
}

.js {
    background: #f1e05a;
}

.svelte {
    background: #ff3e00;
}

.css {
    background: #563d7c;
}

.btn-repo {
    display: inline-block;
    margin-top: auto;
    text-decoration: none;
    color: var(--primary-color);
    font-size: 0.8rem;
    font-family: var(--font-mono);
    border-bottom: 1px dashed;
    cursor: pointer;
    padding-top: 1rem;
}

.repo-card {
    cursor: pointer;
}

/* ---------------- PROJECT DETAIL MODAL ---------------- */
.project-detail-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.9);
    z-index: 10000;
    display: none;
    opacity: 0;
    transition: opacity 0.3s ease;
    overflow-y: auto;
    padding: 2rem;
}

.project-detail-modal.active {
    display: block;
    opacity: 1;
}

.project-detail-content {
    max-width: 900px;
    margin: 0 auto;
    background: var(--bg-color);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 1.5rem;
    position: relative;
    margin-top: 2rem;
    margin-bottom: 2rem;
}

.project-detail-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s;
    z-index: 10;
}

.project-detail-close:hover {
    background: var(--accent-red);
    border-color: var(--accent-red);
    transform: rotate(90deg);
}

.project-nav {
    margin-bottom: 1.5rem;
}

.project-back-btn {
    background: transparent;
    border: none;
    color: var(--primary-color);
    font-family: var(--font-mono);
    font-size: 0.9rem;
    cursor: pointer;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    gap: 8px;
}

.project-back-btn:hover {
    background: rgba(0, 243, 255, 0.1);
}

.project-detail-header {
    margin-bottom: 1.5rem;
}

.project-detail-title {
    font-family: var(--font-mono);
    font-size: 2rem;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.project-status-badge {
    background: var(--accent-green);
    color: #000;
    padding: 4px 12px;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 700;
    font-family: var(--font-mono);
}

.project-detail-body {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.project-detail-desc {
    font-family: var(--font-mono);
    color: var(--text-secondary);
    font-size: 1rem;
    line-height: 1.8;
}

.project-tech-section {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.tech-label {
    font-family: var(--font-mono);
    color: var(--primary-color);
    font-size: 0.9rem;
}

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

.tech-tag {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: rgba(0, 243, 255, 0.1);
    border: 1px solid rgba(0, 243, 255, 0.3);
    border-radius: 6px;
    color: var(--text-primary);
    font-family: var(--font-mono);
    font-size: 0.9rem;
    transition: all 0.2s;
}

.tech-tag:hover {
    background: rgba(0, 243, 255, 0.2);
    border-color: var(--primary-color);
    transform: translateY(-2px);
}

.tech-tag i {
    font-size: 1.2rem;
}

.project-actions {
    margin-top: 1rem;
}

.btn-view-source {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 24px;
    background: rgba(0, 243, 255, 0.1);
    border: 1px solid var(--primary-color);
    border-radius: 6px;
    color: var(--primary-color);
    font-family: var(--font-mono);
    text-decoration: none;
    transition: all 0.3s;
    font-size: 0.95rem;
}

.btn-view-source:hover {
    background: var(--primary-color);
    color: #000;
    box-shadow: 0 0 20px rgba(0, 243, 255, 0.3);
}

/* Project Carousel */
.project-carousel {
    position: relative;
    margin-top: 1.5rem;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 8px;
    padding: 1.5rem;
    border: 1px solid var(--border-color);
}

.carousel-container {
    position: relative;
    overflow: hidden;
    border-radius: 4px;
    min-height: 350px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.carousel-track {
    display: flex;
    transition: transform 0.5s ease;
    width: 100%;
}

.carousel-slide {
    min-width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.carousel-slide img {
    max-width: 100%;
    max-height: 600px;
    object-fit: contain;
    border-radius: 4px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
}

.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.7);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s;
    z-index: 10;
    font-size: 1.2rem;
}

.carousel-btn:hover {
    background: var(--primary-color);
    color: #000;
    border-color: var(--primary-color);
}

.carousel-prev {
    left: 1rem;
}

.carousel-next {
    right: 1rem;
}

.carousel-indicator {
    position: absolute;
    bottom: 1rem;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.7);
    padding: 8px 16px;
    border-radius: 20px;
    color: var(--text-primary);
    font-family: var(--font-mono);
    font-size: 0.9rem;
    border: 1px solid var(--border-color);
}

/* Mobile Responsive for Project Detail */
@media screen and (max-width: 768px) {
    .project-detail-modal {
        padding: 1rem;
    }

    .project-detail-content {
        padding: 1.5rem;
    }

    .project-detail-title {
        font-size: 1.8rem;
    }

    .carousel-container {
        min-height: 300px;
    }

    .carousel-btn {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }

    .carousel-prev {
        left: 0.5rem;
    }

    .carousel-next {
        right: 0.5rem;
    }
}

/* ---------------- ABOUT STYLE ---------------- */
.about-header {
    background: #1e1e1e;
    border: 1px solid var(--border-color);
    border-radius: 0;
    margin-bottom: 2rem;
    position: relative;
    overflow: hidden;
    font-family: var(--font-mono);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
}

/* Editor Tab Bar */
.about-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 35px;
    background: #252526;
    border-bottom: 1px solid var(--border-color);
    z-index: 1;
}

.about-header .editor-tabs {
    position: relative;
    z-index: 2;
    display: flex;
    background: #252526;
    border-bottom: 1px solid var(--border-color);
    padding: 0;
    height: 35px;
}

.about-header .editor-tab {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: #1e1e1e;
    border-right: 1px solid var(--border-color);
    color: var(--text-secondary);
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.2s;
    position: relative;
}

.about-header .editor-tab.active {
    background: #1e1e1e;
    color: var(--text-primary);
    border-top: 2px solid var(--primary-color);
}

.about-header .editor-tab::before {
    content: '📄';
    font-size: 0.9rem;
}

.about-header .editor-tab:hover {
    background: #2d2d30;
}

/* Editor Content Area */
.about-header .editor-content {
    padding: 1rem 0;
    background: #1e1e1e;
    position: relative;
    min-height: 120px;
    display: flex;
}

.about-header .editor-content::before {
    content: '1\A 2';
    white-space: pre;
    color: #858585;
    font-size: 0.9rem;
    padding: 1rem 1rem 1rem 1.5rem;
    text-align: right;
    line-height: 1.8;
    border-right: 1px solid #3e3e42;
    user-select: none;
    font-family: var(--font-mono);
}

.about-header .editor-body {
    flex: 1;
    padding: 1rem 1.5rem;
}

.about-header h1 {
    font-family: var(--font-mono);
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--primary-color);
    font-weight: 600;
}

.about-header .lead {
    font-size: 0.95rem;
    color: #d4d4d4;
    line-height: 1.8;
    margin-top: 0.5rem;
    font-family: var(--font-mono);
}

.about-header .lead strong {
    color: #4ec9b0;
    font-weight: 600;
}

/* Editor Status Bar */
.about-header::after {
    content: 'Ln 2, Col 1';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 22px;
    background: #007acc;
    color: #fff;
    font-size: 0.75rem;
    display: flex;
    align-items: center;
    padding: 0 10px;
    font-family: var(--font-mono);
    border-top: 1px solid var(--border-color);
    z-index: 1;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.stat-card {
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid var(--border-color);
    padding: 1.5rem;
    text-align: center;
    border-radius: 8px;
}

.stat-icon {
    font-size: 2rem;
    color: var(--secondary-color);
    margin-bottom: 10px;
}

.stat-card h3 {
    font-size: 1.8rem;
    color: #fff;
}

.stat-card p {
    font-size: 0.8rem;
    color: var(--text-secondary);
    font-family: var(--font-mono);
}

.timeline-container {
    border-left: 2px solid var(--border-color);
    padding-left: 2rem;
    margin-left: 1rem;
}

.timeline-entry {
    position: relative;
    margin-bottom: 2rem;
}

.timeline-entry::before {
    content: '';
    position: absolute;
    left: -39px;
    top: 0;
    width: 14px;
    height: 14px;
    background: var(--bg-color);
    border: 2px solid var(--primary-color);
    border-radius: 50%;
}

.time-marker {
    font-family: var(--font-mono);
    color: var(--primary-color);
    font-size: 0.8rem;
    margin-bottom: 5px;
}

.entry-content {
    background: var(--card-bg);
    padding: 1.5rem;
    border-radius: 8px;
    border: 1px solid var(--border-color);
}

.entry-content h3 {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.entry-content h4 {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.entry-content p {
    color: #aaa;
    font-size: 0.9rem;
    line-height: 1.5;
}

.job-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.company-logo {
    width: 48px;
    height: 48px;
    object-fit: contain;
    background: #fff;
    border-radius: 6px;
    padding: 2px;
}

.company-logo-placeholder {
    width: 48px;
    height: 48px;
    border-radius: 6px;
    background: rgba(0, 243, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--primary-color);
    color: var(--primary-color);
    font-size: 1.2rem;
    overflow: hidden;
    /* Added to clip image if needed */
}

.company-logo-placeholder img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    /* or contain, depending on preference. Cover fills the square */
}


.job-titles {
    flex: 1;
}

.job-titles h3,
.job-titles h4 {
    margin-bottom: 2px;
}

.entry-content ul {
    list-style: none;
    margin-top: 1rem;
}

.entry-content ul li {
    position: relative;
    padding-left: 1.2rem;
    margin-bottom: 0.5rem;
    color: #ccc;
    font-size: 0.9rem;
    line-height: 1.5;
}

.entry-content ul li::before {
    content: '▹';
    position: absolute;
    left: 0;
    color: var(--primary-color);
}

/* Education Styles */
.education-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
}

.education-card {
    padding: 1.5rem;
    border: 1px solid var(--border-color);
    transition: transform 0.2s;
}

.education-card:hover {
    border-color: var(--primary-color);
    transform: translateY(-5px);
}

.edu-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 0.5rem;
    flex-wrap: wrap;
    gap: 10px;
}

.edu-header h3 {
    font-size: 1.1rem;
    color: var(--primary-color);
    font-family: var(--font-mono);
}

.edu-year {
    font-size: 0.8rem;
    color: var(--text-secondary);
    font-family: var(--font-mono);
    background: rgba(255, 255, 255, 0.05);
    padding: 2px 8px;
    border-radius: 4px;
}

.edu-meta {
    display: flex;
    gap: 10px;
    margin: 10px 0;
}

.badgex {
    font-size: 0.75rem;
    padding: 2px 8px;
    border-radius: 4px;
    font-weight: 600;
    font-family: var(--font-mono);
}

.badgex.cgpa {
    background: rgba(46, 204, 113, 0.1);
    color: var(--accent-green);
    border: 1px solid rgba(46, 204, 113, 0.3);
}

.badgex.honor {
    background: rgba(241, 196, 15, 0.1);
    color: var(--accent-yellow);
    border: 1px solid rgba(241, 196, 15, 0.3);
}

/* Awards List */
.awards-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.award-item {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.02);
    border-radius: 6px;
    border-left: 3px solid var(--accent-yellow);
}

.award-icon {
    color: var(--accent-yellow);
    font-size: 1.2rem;
    margin-top: 2px;
}

.award-content p {
    color: #ccc;
    font-size: 0.95rem;
    line-height: 1.5;
}

/* Publications */
.pub-item {
    margin-bottom: 1rem;
    padding-left: 1rem;
    border-left: 2px solid var(--secondary-color);
}

.pub-citation {
    font-family: var(--font-mono);
    font-size: 0.85rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

.pub-title {
    color: var(--primary-color);
    font-weight: 600;
}

/* Volunteering */
.vol-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1rem;
}

.vol-card {
    padding: 1rem;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-color);
    border-radius: 6px;
}

.vol-title {
    color: #fff;
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 5px;
}

.vol-year {
    font-size: 0.8rem;
    color: var(--accent-green);
    font-family: var(--font-mono);
    display: block;
    margin-bottom: 8px;
}

.vol-desc {
    font-size: 0.85rem;
    color: var(--text-secondary);
    line-height: 1.4;
}

.tech-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-top: 1rem;
}

.tech-item {
    background: rgba(255, 255, 255, 0.05);
    padding: 8px 15px;
    border-radius: 4px;
    font-family: var(--font-mono);
    font-size: 0.9rem;
    color: #fff;
    display: flex;
    align-items: center;
    gap: 8px;
}

.section-block {
    margin-bottom: 3rem;
}

.block-title {
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    font-family: var(--font-mono);
}

.hash {
    color: var(--secondary-color);
    margin-right: 5px;
}

/* ---------------- CONTACT LAYOUT ---------------- */
.contact-layout {
    max-width: 900px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.contact-frame {
    background: rgba(13, 17, 23, 0.8);
    border: 1px solid rgba(48, 54, 61, 0.8);
    border-radius: 12px;
    padding: 1.5rem;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    text-decoration: none;
    display: block;
}

.contact-frame:hover {
    border-color: var(--primary-color);
    box-shadow: 0 0 20px rgba(0, 243, 255, 0.15);
    transform: translateY(-2px);
}

.contact-frame.full-width {
    width: 100%;
}

.frame-content {
    position: relative;
    z-index: 2;
}

.cmd-line {
    font-family: var(--font-mono);
    color: var(--primary-color);
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
    background: rgba(0, 0, 0, 0.3);
    display: inline-block;
    padding: 2px 8px;
    border-radius: 4px;
}

.cmd-prompt {
    color: var(--primary-color);
    margin-right: 5px;
}

.frame-title {
    font-size: 2rem;
    font-weight: 700;
    color: #fff;
    margin: 0.5rem 0;
}

.frame-subtitle {
    font-family: var(--font-mono);
    color: var(--text-secondary);
    font-size: 1rem;
}

.icon-box {
    width: 60px;
    height: 60px;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    color: var(--primary-color);
    background: rgba(255, 255, 255, 0.05);
    flex-shrink: 0;
}

/* Flex Utilities */
.flex-row {
    display: flex;
}

.space-between {
    justify-content: space-between;
}

.align-center {
    align-items: center;
}

.mt-2 {
    margin-top: 1rem;
}

/* Social Section */
.social-grid {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.section-comment {
    font-family: var(--font-mono);
    color: var(--primary-color);
    font-size: 0.9rem;
}

.social-cards-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.social-card {
    height: 100%;
}

.frame-title-sm {
    font-size: 1.5rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 0.5rem;
}

.frame-desc {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: 1rem;
}

.link-hint {
    font-family: var(--font-mono);
    font-size: 0.8rem;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 5px;
    opacity: 0.7;
    transition: opacity 0.2s;
}

.contact-frame:hover .link-hint {
    opacity: 1;
    color: var(--primary-color);
}

.icon-box-sm {
    width: 50px;
    height: 50px;
    border: 1px solid var(--border-color);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--primary-color);
    background: rgba(0, 243, 255, 0.1);
    flex-shrink: 0;
}

.contact-frame:hover .icon-box-sm {
    background: var(--primary-color);
    color: #000;
}

/* Terminal Form Container */
.terminal-container {
    background: rgba(13, 17, 23, 0.95);
    border-radius: 12px;
    border: 1px solid rgba(48, 54, 61, 0.8);
    overflow: hidden;
    margin-top: 1.5rem;
}

.terminal-header {
    background: #161b22;
    padding: 10px 15px;
    display: flex;
    align-items: center;
    border-bottom: 1px solid rgba(48, 54, 61, 0.8);
}

.terminal-title {
    flex: 1;
    text-align: center;
    font-family: var(--font-mono);
    color: var(--text-secondary);
    font-size: 0.85rem;
}

.terminal-body-form {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.term-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.term-label {
    font-family: var(--font-mono);
    color: var(--primary-color);
    font-size: 0.9rem;
}

.term-input {
    background: #0d1117;
    border: 1px solid #30363d;
    border-radius: 6px;
    padding: 12px 15px;
    color: #e6edf3;
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    transition: all 0.2s;
    width: 100%;
}

.term-input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px rgba(0, 243, 255, 0.1);
}

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

.term-submit-btn {
    align-self: flex-start;
    background: rgba(0, 243, 255, 0.1);
    color: var(--primary-color);
    border: 1px solid var(--primary-color);
    padding: 12px 25px;
    border-radius: 6px;
    font-family: var(--font-mono);
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.2s;
    width: 100%;
    margin-top: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.term-submit-btn:hover {
    background: var(--primary-color);
    color: #000;
}

.status-msg {
    font-family: var(--font-mono);
    font-size: 0.9rem;
    margin-top: 10px;
    min-height: 20px;
    word-break: break-word;
}

.status-msg.success {
    color: var(--accent-green);
}

.status-msg.error {
    color: var(--accent-red);
}

/* ---------------- SKILLS MARQUEE ---------------- */
.skills-marquee-container {
    width: 100%;
    overflow: hidden;
    padding: 1rem 0;
    background: rgba(13, 17, 23, 0.4);
    border-top: 0px solid var(--border-color);
    position: relative;
    white-space: nowrap;
    margin-top: 1rem;
    flex-shrink: 0;
}

.skills-marquee-container::before,
.skills-marquee-container::after {
    content: "";
    position: absolute;
    top: 0;
    width: 150px;
    height: 100%;
    z-index: 2;
}

.skills-marquee-container::before {
    left: 0;
    background: linear-gradient(to right, var(--bg-color), transparent);
}

.skills-marquee-container::after {
    right: 0;
    background: linear-gradient(to left, var(--bg-color), transparent);
}

.marquee-track {
    display: inline-flex;
    animation: scroll 20s linear infinite;
    gap: 3rem;
    padding-left: 3rem;
}

.skill-item {
    font-family: var(--font-mono);
    color: var(--text-secondary);
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: color 0.3s;
    white-space: nowrap;
}

.skill-item i {
    font-size: 1.5rem;
    color: var(--primary-color);
}

.skill-item:hover {
    color: #fff;
    text-shadow: 0 0 10px var(--primary-color);
}

.skill-item:hover i {
    color: var(--secondary-color);
    transform: scale(1.2);
    transition: transform 0.2s;
}

@keyframes scroll {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

/* Common UI */
.btn {
    padding: 12px 30px;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 600;
    font-family: var(--font-mono);
    transition: all 0.2s;
    display: inline-block;
    text-align: center;
}

.primary-btn {
    background: var(--primary-color);
    color: #000;
}

.primary-btn:hover {
    box-shadow: 0 0 15px var(--primary-color);
}

.secondary-btn {
    border: 1px solid #fff;
    color: #fff;
}

.secondary-btn:hover {
    background: #fff;
    color: #000;
}

.glass-panel {
    background: rgba(18, 18, 23, 0.95);
}

.glass-card {
    background: rgba(30, 32, 45, 0.5);
    backdrop-filter: blur(5px);
    border-radius: 8px;
}

/* Canvas */
#canvas-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    pointer-events: none;
}

/* ---------------- MEDIA & GALLERY ---------------- */
.video-container {
    position: relative;
    padding-bottom: 56.25%;
    /* 16:9 Aspect Ratio */
    height: 0;
    overflow: hidden;
    border: 1px solid var(--border-color);
    margin-bottom: 2rem;
}

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

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
}

.gallery-item {
    padding: 1rem;
    border: 1px solid var(--border-color);
    transition: transform 0.2s, border-color 0.2s;
}

.gallery-item:hover {
    transform: translateY(-5px);
    border-color: var(--primary-color);
}

.gallery-img-container {
    height: 200px;
    overflow: hidden;
    border-radius: 4px;
    margin-bottom: 0.8rem;
    border: 1px solid var(--border-color);
}

.gallery-img-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

.gallery-item:hover .gallery-img-container img {
    transform: scale(1.1);
}

.gallery-caption {
    font-family: var(--font-mono);
    color: var(--text-secondary);
    font-size: 0.85rem;
    text-align: center;
}

/* ---------------- MOBILE RESPONSIVE ---------------- */
.mobile-toggle {
    display: none;
    position: relative;
    z-index: 1001;
    color: var(--text-primary);
    font-size: 1.2rem;
    background: rgba(0, 243, 255, 0.1);
    padding: 8px 12px;
    border-radius: 6px;
    cursor: pointer;
    border: 1px solid rgba(0, 243, 255, 0.3);
    transition: all 0.3s ease;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 36px;
}

.mobile-toggle:hover {
    background: rgba(0, 243, 255, 0.2);
    border-color: var(--primary-color);
    box-shadow: 0 0 10px rgba(0, 243, 255, 0.3);
}

.mobile-toggle.active {
    background: var(--primary-color);
    color: #000;
    border-color: var(--primary-color);
}

/* For tablets and below */
@media screen and (max-width: 1024px) {
    .hero-split {
        flex-direction: column;
        text-align: center;
        gap: 3rem;
        min-height: auto;
    }

    .hero-text {
        max-width: 100%;
    }

    .hero-actions {
        justify-content: center;
    }

    .holo-container {
        width: 250px;
        height: 250px;
    }
}

/* For mobile devices */
@media screen and (max-width: 768px) {
    .dashboard-body {
        grid-template-columns: 1fr;
        height: auto;
        min-height: 100vh;
    }

    .mobile-toggle {
        display: flex !important;
    }

    .sidebar {
        position: fixed;
        width: 280px;
        height: 100vh;
        transform: translateX(-100%);
        transition: transform 0.3s ease-in-out;
        z-index: 1000;
        overflow-y: auto;
        top: 0;
        left: 0;
        visibility: hidden;
    }

    .sidebar.open {
        transform: translateX(0);
        box-shadow: 10px 0 30px rgba(0, 0, 0, 0.7);
        visibility: visible;
    }

    /* Overlay when sidebar is open */
    body.sidebar-open::before {
        content: '';
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(0, 0, 0, 0.5);
        z-index: 999;
        pointer-events: auto;
    }

    .main-content {
        height: 100vh;
        overflow-y: auto;
        padding-top: 60px;
    }

    .window-header {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        z-index: 998;
        padding: 0 1rem;
        justify-content: space-between;
    }

    .window-header .path-bar {
        flex: 1;
        margin: 0 10px;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .window-header .window-controls {
        flex-shrink: 0;
    }

    .window-header .mobile-toggle {
        flex-shrink: 0;
        display: flex !important;
        margin-left: auto;
    }

    .content-wrapper {
        padding: 1.5rem;
        padding-top: 3rem;
        padding-bottom: 3rem;
    }

    .content-wrapper.index-content {
        padding: 1rem;
        padding-top: 3rem;
        padding-bottom: 1rem;
        height: calc(100vh - var(--header-height));
        overflow: hidden;
    }

    .hero-title {
        font-size: 2.5rem;
        line-height: 1.2;
    }

    .hero-subtitle {
        font-size: 1rem;
        margin-bottom: 2rem;
    }

    .code-block {
        font-size: 0.8rem;
        padding: 1rem;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .holo-container {
        width: 200px;
        height: 200px;
    }

    /* Projects Grid */
    .projects-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .repo-card {
        padding: 1rem;
    }

    /* About Page */
    .stats-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .about-header h1 {
        font-size: 1.5rem;
    }

    .about-header .lead {
        font-size: 1rem;
    }

    .timeline-container {
        padding-left: 1rem;
        margin-left: 0.5rem;
    }

    .timeline-entry::before {
        left: -25px;
        width: 12px;
        height: 12px;
    }

    /* Contact Page */
    .contact-layout {
        gap: 1.5rem;
    }

    .social-cards-row {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .frame-title {
        font-size: 1.5rem;
    }

    .flex-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
        position: relative;
    }

    .icon-box,
    .icon-box-sm {
        position: absolute;
        top: 0;
        right: 0;
    }

    .terminal-body-form {
        padding: 1rem;
    }

    /* Skills Marquee */
    .skills-marquee-container {
        padding: 1rem 0;
        margin-top: 1rem;
    }

    .marquee-track {
        gap: 1.5rem;
        animation-duration: 15s;
        padding-left: 1.5rem;
    }

    .skill-item {
        font-size: 1rem;
    }

    .skill-item i {
        font-size: 1.2rem;
    }

    .skills-marquee-container::before,
    .skills-marquee-container::after {
        width: 60px;
    }

    /* Ensure buttons are touch-friendly */
    .btn,
    .btn-download,
    .term-submit-btn,
    .btn-repo {
        min-height: 44px;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    /* Prevent text size adjustment on mobile */
    input,
    textarea,
    select {
        font-size: 16px !important;
    }
}

/* For very small devices */
@media screen and (max-width: 480px) {
    .hero-title {
        font-size: 2rem;
    }

    .hero-subtitle {
        font-size: 0.9rem;
    }

    .btn {
        padding: 10px 20px;
        font-size: 0.9rem;
    }

    .content-wrapper {
        padding: 1rem;
        padding-top: 2.5rem;
    }

    .page-title {
        font-size: 1.5rem;
    }

    .window-header {
        padding: 0 0.5rem;
    }

    .path-bar {
        font-size: 0.8rem;
        padding: 5px 10px;
    }

    .tech-grid {
        gap: 0.5rem;
    }

    .tech-item {
        padding: 6px 10px;
        font-size: 0.8rem;
    }

    .marquee-track {
        gap: 1rem;
    }

    .skill-item {
        font-size: 0.9rem;
    }

    .skill-item i {
        font-size: 1rem;
    }
}

/* Landscape orientation for mobile */
@media screen and (max-height: 600px) and (orientation: landscape) {
    .sidebar {
        overflow-y: auto;
    }

    .profile-section {
        margin-bottom: 1rem;
    }

    .avatar-container {
        width: 60px;
        height: 60px;
        margin-bottom: 0.5rem;
    }

    .profile-name {
        font-size: 1rem;
    }

    .nav-list a {
        padding: 8px 12px;
        font-size: 0.8rem;
    }

    .content-wrapper {
        padding: 1rem;
    }
}

/* High DPI screens */
@media (-webkit-min-device-pixel-ratio: 2),
(min-resolution: 192dpi) {

    .glass-panel,
    .glass-card {
        backdrop-filter: blur(20px);
    }
}

/* ---------------- GALLERY SLIDER ---------------- */
.gallery-slider-container {
    position: relative;
    width: 100%;
    margin-top: 2rem;
    overflow: hidden;
    padding-bottom: 30px;
}

.slider-wrapper {
    overflow: hidden;
    width: 100%;
}

.slider-track {
    display: flex;
    transition: transform 0.5s ease-in-out;
    gap: 20px;
}

.gallery-slide {
    min-width: 100%;
    flex-shrink: 0;
    transition: transform 0.3s;
    cursor: pointer;
}

/* Gallery Image Container - Responsive */
.gallery-img-container {
    width: 100%;
    height: 0;
    padding-bottom: 75%;
    /* 4:3 aspect ratio */
    position: relative;
    overflow: hidden;
    border-radius: 8px;
}

.gallery-img-container img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 8px;
    transition: transform 0.3s ease;
}

.gallery-slide:hover .gallery-img-container img {
    transform: scale(1.05);
}

.gallery-caption {
    padding: 1rem;
    font-family: var(--font-mono);
    font-size: 0.9rem;
    color: var(--text-secondary);
    text-align: center;
}

@media (min-width: 768px) {
    .gallery-slide {
        min-width: calc((100% - 40px) / 3);
        /* 3 items with 20px gaps */
    }

    .gallery-img-container {
        padding-bottom: 66.67%;
        /* 3:2 aspect ratio for desktop */
    }
}

/* Mobile responsive gallery improvements */
@media (max-width: 767px) {
    .gallery-slider-container {
        padding: 0 10px;
        padding-bottom: 40px;
    }

    .gallery-slide {
        min-width: calc(100% - 20px);
        margin: 0 10px;
    }

    .gallery-img-container {
        padding-bottom: 70%;
        /* Slightly taller for mobile */
    }

    .gallery-caption {
        padding: 0.75rem;
        font-size: 0.85rem;
    }
}

.gallery-slider-container:hover .gallery-slide:not(:hover) {
    opacity: 0.7;
}

.slider-dots {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 20px;
}

.dot-nav {
    width: 10px;
    height: 10px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s;
}

.dot-nav.active {
    background: var(--primary-color);
    box-shadow: 0 0 10px var(--primary-color);
    transform: scale(1.2);
}

/* ---------------- IMAGE MODAL ---------------- */
.modal {
    display: none;
    position: fixed;
    z-index: 10001;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(5px);
    /* Use flexbox for true centering */
    justify-content: center;
    align-items: center;
    flex-direction: column;
    padding: 20px;
    box-sizing: border-box;
}

/* When modal is displayed, use flex */
.modal[style*="display: block"] {
    display: flex !important;
}

.modal-content {
    display: block;
    max-width: 90%;
    max-height: 75vh;
    width: auto;
    height: auto;
    object-fit: contain;
    border: 2px solid var(--primary-color);
    box-shadow: 0 0 30px rgba(0, 243, 255, 0.3);
    border-radius: 8px;
    animation: zoomIn 0.3s ease-out;
}

#modalCaption {
    display: block;
    width: 100%;
    max-width: 700px;
    text-align: center;
    color: var(--text-primary);
    padding: 15px 10px;
    font-family: var(--font-mono);
    font-size: 1.1rem;
    margin-top: 1rem;
}

.close-modal {
    position: fixed;
    top: 70px;
    right: 30px;
    color: #fff;
    font-size: 32px;
    font-weight: bold;
    transition: all 0.3s ease;
    cursor: pointer;
    z-index: 10002;
    background: rgba(0, 0, 0, 0.8);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid var(--primary-color);
    box-shadow: 0 0 15px rgba(0, 243, 255, 0.3);
}

.close-modal:hover,
.close-modal:focus {
    color: #000;
    text-decoration: none;
    cursor: pointer;
    background: var(--primary-color);
    border-color: var(--primary-color);
    transform: rotate(90deg) scale(1.1);
    box-shadow: 0 0 25px rgba(0, 243, 255, 0.5);
}

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

    to {
        transform: scale(1);
        opacity: 1;
    }
}

/* Mobile modal improvements */
@media only screen and (max-width: 768px) {
    .modal {
        padding: 15px;
    }

    .modal-content {
        max-width: 95%;
        max-height: 70vh;
        border-width: 1px;
    }

    #modalCaption {
        font-size: 0.95rem;
        padding: 10px 5px;
    }

    .close-modal {
        top: 60px;
        right: 15px;
        width: 44px;
        height: 44px;
        font-size: 24px;
    }
}

/* ---------------- NEWS FEATURE SECTION ---------------- */
.news-feature-card {
    padding: 0;
    overflow: hidden;
    transition: all 0.3s ease;
    border: 1px solid var(--border-color);
    position: relative;
}

.news-feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color), #ff6b6b);
    opacity: 0.8;
}

.news-feature-card:hover {
    border-color: var(--primary-color);
    box-shadow: 0 10px 40px rgba(0, 243, 255, 0.15);
    transform: translateY(-3px);
}

.news-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.25rem 1.5rem;
    background: rgba(0, 0, 0, 0.3);
    border-bottom: 1px solid var(--border-color);
    flex-wrap: wrap;
    gap: 1rem;
}

.news-source {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-mono);
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.news-source i {
    color: var(--primary-color);
    font-size: 1.2rem;
}

.source-name {
    color: var(--text-primary);
    font-weight: 600;
}

.news-date {
    opacity: 0.7;
    font-size: 0.85rem;
}

.news-date::before {
    content: '•';
    margin-right: 10px;
}

.news-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    background: linear-gradient(135deg, rgba(255, 107, 107, 0.2), rgba(255, 200, 87, 0.2));
    border: 1px solid rgba(255, 200, 87, 0.4);
    border-radius: 20px;
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: #ffc857;
    font-weight: 600;
    animation: subtle-pulse 3s ease-in-out infinite;
}

.news-badge i {
    font-size: 0.8rem;
}

@keyframes subtle-pulse {

    0%,
    100% {
        box-shadow: 0 0 0 0 rgba(255, 200, 87, 0.3);
    }

    50% {
        box-shadow: 0 0 10px 2px rgba(255, 200, 87, 0.2);
    }
}

.news-content-wrapper {
    display: flex;
    gap: 0;
}

.news-body {
    flex: 1;
    padding: 1.5rem;
}

.news-image {
    width: 300px;
    min-height: 100%;
    position: relative;
    overflow: hidden;
    flex-shrink: 0;
}

.news-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease, filter 0.3s ease;
}

.news-feature-card:hover .news-image img {
    transform: scale(1.05);
}

.news-image-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 1rem;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.9), transparent);
    display: flex;
    align-items: center;
    gap: 10px;
    color: #fff;
    font-family: var(--font-mono);
    font-size: 0.85rem;
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

.news-feature-card:hover .news-image-overlay {
    transform: translateY(0);
}

.news-image-overlay i {
    color: var(--accent-yellow);
    font-size: 1rem;
}

.news-title {
    font-size: 1.25rem;
    color: var(--text-primary);
    font-weight: 700;
    line-height: 1.4;
    margin-bottom: 1rem;
}

.news-excerpt {
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 1.25rem;
}

.news-excerpt strong {
    color: var(--primary-color);
    font-weight: 600;
}

.news-highlight {
    background: rgba(0, 243, 255, 0.05);
    border-left: 3px solid var(--primary-color);
    padding: 1rem 1.25rem;
    margin-bottom: 1.5rem;
    border-radius: 0 6px 6px 0;
    position: relative;
}

.news-highlight i {
    position: absolute;
    top: -8px;
    left: 12px;
    color: var(--primary-color);
    font-size: 0.9rem;
    background: var(--card-bg);
    padding: 0 5px;
    opacity: 0.7;
}

.news-highlight p {
    font-family: var(--font-mono);
    font-size: 0.9rem;
    color: var(--text-secondary);
    font-style: italic;
    line-height: 1.6;
    margin: 0;
}

.news-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: rgba(0, 243, 255, 0.1);
    border: 1px solid var(--primary-color);
    border-radius: 6px;
    color: var(--primary-color);
    font-family: var(--font-mono);
    font-size: 0.9rem;
    text-decoration: none;
    transition: all 0.3s ease;
}

.news-link:hover {
    background: var(--primary-color);
    color: #000;
    transform: translateX(5px);
    box-shadow: 0 5px 20px rgba(0, 243, 255, 0.3);
}

.news-link i {
    transition: transform 0.3s;
}

.news-link:hover i {
    transform: translateX(3px);
}

/* News section mobile responsiveness */
@media only screen and (max-width: 768px) {
    .news-content-wrapper {
        flex-direction: column;
    }

    .news-image {
        width: 100%;
        height: 200px;
        order: -1;
    }

    .news-image-overlay {
        transform: translateY(0);
    }

    .news-header {
        padding: 1rem;
    }

    .news-source {
        font-size: 0.85rem;
    }

    .news-badge {
        font-size: 0.7rem;
        padding: 5px 10px;
    }

    .news-body {
        padding: 1.25rem 1rem;
    }

    .news-title {
        font-size: 1.1rem;
    }

    .news-excerpt {
        font-size: 0.9rem;
    }

    .news-highlight {
        padding: 0.85rem 1rem;
    }

    .news-highlight p {
        font-size: 0.85rem;
    }

    .news-link {
        width: 100%;
        justify-content: center;
    }
}