/* Base Styles */
:root {
    /* Dark Theme (Default) */
    --bg-color: #0a0a0a;
    --text-color: #f0f0f0;
    --primary-color: #00ff00;
    --secondary-color: #0066cc;
    --card-bg: #111111;
    --border-color: #333333;
    --terminal-bg: #000000;
    --terminal-text: #00ff00;
    --section-bg: rgba(0, 0, 0, 0.8);
    --header-bg: rgba(0, 0, 0, 0.9);
    --accent-color: #d300ff;  /* Neon purple */
    --light-text: #a0a0a0;
    --background-color: #0d0d0d; /* Darker background as requested */
    --light-background: #1a1a1a; /* Slightly lighter than main background */
    --darker-background: #050505; /* Slightly darker than main background */
    --section-padding: 80px 0;
    --container-padding: 0 20px;
    --border-radius: 6px;
    --transition: all 0.3s ease;
    --glow: 0 0 10px;
    --terminal-font: 'Fira Code', 'Source Code Pro', 'Courier New', monospace;
}

@import url('https://fonts.googleapis.com/css2?family=Fira+Code:wght@300;400;500;600;700&display=swap');

/* Global Styles */
body {
    font-family: 'Courier New', monospace;
    margin: 0;
    padding: 0;
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Force Dark Theme */
html, body {
    background-color: var(--background-color) !important;
    color: var(--text-color) !important;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--terminal-font);
    line-height: 1.6;
    position: relative;
    overflow-x: hidden;
}

body::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(rgba(0, 0, 0, 0.97), rgba(0, 0, 0, 0.97)), 
                url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='4' height='4' viewBox='0 0 4 4'%3E%3Cpath fill='%2300ff8c' fill-opacity='0.1' d='M1 3h1v1H1V3zm2-2h1v1H3V1z'%3E%3C/path%3E%3C/svg%3E");
    opacity: 0.5;
    z-index: -1;
}

/* Matrix rain animation */
.matrix-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2;
    opacity: 0.07;
    pointer-events: none;
    will-change: transform; /* Performance optimization */
}

@keyframes glitch {
    0% {
        text-shadow: 0.05em 0 0 var(--primary-color), -0.05em -0.025em 0 var(--secondary-color);
        clip-path: polygon(0 0, 100% 0, 100% 25%, 0 25%);
    }
    25% {
        text-shadow: 0.05em 0 0 var(--primary-color), -0.05em -0.025em 0 var(--secondary-color);
        clip-path: polygon(0 25%, 100% 25%, 100% 50%, 0 50%);
    }
    50% {
        text-shadow: -0.05em -0.025em 0 var(--primary-color), 0.025em 0.025em 0 var(--secondary-color);
        clip-path: polygon(0 50%, 100% 50%, 100% 75%, 0 75%);
    }
    75% {
        text-shadow: -0.05em -0.025em 0 var(--primary-color), 0.025em 0.025em 0 var(--secondary-color);
        clip-path: polygon(0 75%, 100% 75%, 100% 100%, 0 100%);
    }
    100% {
        text-shadow: 0.05em 0 0 var(--primary-color), -0.05em -0.025em 0 var(--secondary-color);
        clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%);
    }
}

@keyframes typing {
    from { width: 0 }
    to { width: 100% }
}

@keyframes blink {
    50% { border-color: transparent }
}

@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(0, 255, 140, 0.7); }
    70% { box-shadow: 0 0 0 10px rgba(0, 255, 140, 0); }
    100% { box-shadow: 0 0 0 0 rgba(0, 255, 140, 0); }
}

a {
    text-decoration: none;
    color: var(--primary-color);
    transition: var(--transition);
    position: relative;
}

a:hover {
    color: var(--secondary-color);
    text-shadow: var(--glow) var(--primary-color);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
}

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

.section {
    padding: var(--section-padding);
    position: relative;
    border-bottom: 1px solid var(--border-color);
}

.section::before {
    content: "/* " attr(id) " */";
    position: absolute;
    top: 20px;
    left: 20px;
    color: var(--primary-color);
    opacity: 0.3;
    font-family: var(--terminal-font);
    font-size: 0.8rem;
}

.section-title {
    font-size: 2.2rem;
    margin-bottom: 40px;
    text-align: center;
    position: relative;
    color: var(--text-color);
    text-transform: uppercase;
    letter-spacing: 2px;
}

.section-title::before {
    content: "<";
    color: var(--primary-color);
    margin-right: 10px;
    opacity: 0.7;
}

.section-title::after {
    content: ">";
    color: var(--primary-color);
    margin-left: 10px;
    opacity: 0.7;
}

/* Header & Navigation */
.header {
    background-color: rgba(10, 10, 10, 0.9);
    box-shadow: 0 2px 10px rgba(0, 255, 140, 0.1);
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: 1px solid var(--primary-color);
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
}

.logo {
    font-size: 1.8rem;
    font-weight: bold;
    color: var(--primary-color);
    text-shadow: var(--glow) var(--primary-color);
    font-family: var(--terminal-font);
    position: relative;
}

.logo::before {
    content: ">";
    margin-right: 5px;
    animation: blink 1s step-end infinite;
}

.nav-links {
    display: flex;
}

.nav-links li {
    margin-left: 30px;
}

.nav-links a {
    color: var(--text-color);
    font-weight: 500;
    position: relative;
    padding: 5px 0;
}

.nav-links a::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 1px;
    background-color: var(--primary-color);
    transition: width 0.3s ease;
}

.nav-links a:hover::before {
    width: 100%;
}

.nav-links a:hover {
    color: var(--primary-color);
}

.hamburger {
    display: none;
    cursor: pointer;
}

.bar {
    display: block;
    width: 25px;
    height: 3px;
    margin: 5px auto;
    background-color: var(--primary-color);
    transition: var(--transition);
}

/* Hero Section */
.hero {
    padding: 120px 0 100px;
    background-color: var(--background-color);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--primary-color), transparent);
}

.hero-content {
    position: relative;
    z-index: 1;
}

.hero-content h1 {
    font-size: 3rem;
    margin-bottom: 10px;
    color: var(--text-color);
    text-transform: uppercase;
    letter-spacing: 2px;
    position: relative;
    display: inline-block;
}

.hero-content h1:hover {
    animation: glitch 0.5s linear infinite;
}

.hero-content h2 {
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-bottom: 20px;
    font-weight: 400;
    border-right: 0.1em solid var(--primary-color);
    width: fit-content;
    white-space: nowrap;
    overflow: hidden;
    margin: 0 auto 20px;
    animation: 
        typing 3.5s steps(40, end),
        blink 0.75s step-end infinite;
}

.location {
    margin-bottom: 30px;
    color: var(--light-text);
    font-size: 1rem;
}

.hero-buttons {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
}

.btn {
    display: inline-flex;
    align-items: center;
    padding: 12px 25px;
    border-radius: var(--border-radius);
    font-weight: 500;
    transition: var(--transition);
    text-transform: uppercase;
    letter-spacing: 1px;
    border: 1px solid transparent;
}

.btn i {
    margin-right: 8px;
}

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

.btn-primary:hover {
    background-color: transparent;
    color: var(--primary-color);
    box-shadow: 0 0 15px var(--primary-color);
    animation: pulse 1.5s infinite;
}

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

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

/* About Section */
.about {
    background-color: var(--light-background);
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}

.about-content h3 {
    font-size: 1.5rem;
    margin-bottom: 20px;
    color: var(--primary-color);
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 10px;
}

.about-content p {
    margin-bottom: 15px;
}

.leadership-competencies ul {
    padding-left: 20px;
}

.leadership-competencies li {
    margin-bottom: 10px;
    position: relative;
    padding-left: 25px;
}

.leadership-competencies li::before {
    content: ">";
    color: var(--primary-color);
    font-weight: bold;
    position: absolute;
    left: 0;
    font-family: var(--terminal-font);
}

/* Experience Section */
.experience {
    background-color: var(--background-color);
}

.timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
}

.timeline::after {
    content: '';
    position: absolute;
    width: 2px;
    background-color: var(--primary-color);
    top: 0;
    bottom: 0;
    left: 120px;
    opacity: 0.3;
}

.timeline-item {
    display: flex;
    margin-bottom: 40px;
    position: relative;
}

.timeline-date {
    min-width: 120px;
    text-align: right;
    padding-right: 25px;
    font-weight: 600;
    color: var(--primary-color);
}

.timeline-content {
    background-color: var(--light-background);
    border-radius: var(--border-radius);
    padding: 25px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
    margin-left: 25px;
    flex: 1;
    border-left: 2px solid var(--primary-color);
    position: relative;
}

.timeline-content::before {
    content: '';
    position: absolute;
    left: -8px;
    top: 20px;
    width: 14px;
    height: 14px;
    background-color: var(--primary-color);
    border-radius: 50%;
    box-shadow: 0 0 10px var(--primary-color);
}

.timeline-content h3 {
    font-size: 1.3rem;
    margin-bottom: 5px;
    color: var(--secondary-color);
}

.timeline-content h4 {
    font-size: 1rem;
    font-weight: 400;
    color: var(--light-text);
    margin-bottom: 15px;
}

.timeline-content ul {
    padding-left: 20px;
}

.timeline-content li {
    margin-bottom: 8px;
    position: relative;
    padding-left: 20px;
}

.timeline-content li::before {
    content: ">";
    color: var(--primary-color);
    font-weight: bold;
    position: absolute;
    left: 0;
    font-family: var(--terminal-font);
}

/* Skills Section */
.skills {
    background-color: var(--light-background);
}

.skills-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.skills-category {
    background-color: var(--background-color);
    border-radius: var(--border-radius);
    padding: 25px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
    border: 1px solid var(--border-color);
    transition: var(--transition);
}

.skills-category:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 255, 140, 0.2);
    border-color: var(--primary-color);
}

.skills-category h3 {
    font-size: 1.3rem;
    margin-bottom: 20px;
    color: var(--primary-color);
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 10px;
    position: relative;
}

.skills-category h3::before {
    content: "[";
    color: var(--secondary-color);
    margin-right: 5px;
}

.skills-category h3::after {
    content: "]";
    color: var(--secondary-color);
    margin-left: 5px;
}

.tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.tag {
    background-color: var(--background-color);
    color: var(--text-color);
    padding: 8px 15px;
    border-radius: 30px;
    font-size: 0.9rem;
    transition: var(--transition);
    border: 1px solid var(--border-color);
}

.tag:hover {
    background-color: var(--primary-color);
    color: var(--background-color);
    border-color: var(--primary-color);
    transform: translateY(-3px);
    box-shadow: 0 0 10px var(--primary-color);
}

.tag.cert {
    background-color: rgba(0, 255, 140, 0.1);
    color: var(--primary-color);
    border-color: rgba(0, 255, 140, 0.2);
}

.tag.cert:hover {
    background-color: var(--primary-color);
    color: var(--background-color);
    box-shadow: 0 0 10px var(--primary-color);
}

.tag.cert-previous {
    background-color: rgba(0, 0, 0, 0.2);
    color: var(--light-text);
    border-color: rgba(255, 255, 255, 0.1);
}

.tag.cert-previous:hover {
    background-color: rgba(0, 255, 140, 0.1);
    color: var(--primary-color);
    border-color: rgba(0, 255, 140, 0.2);
}

/* Education Section */
.education {
    background-color: var(--background-color);
}

.education-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

.education-item {
    background-color: var(--light-background);
    border-radius: var(--border-radius);
    padding: 25px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
    border: 1px solid var(--border-color);
    transition: var(--transition);
}

.education-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 255, 140, 0.2);
    border-color: var(--primary-color);
}

.education-item h3 {
    font-size: 1.3rem;
    margin-bottom: 5px;
    color: var(--secondary-color);
}

.education-item h4 {
    font-size: 1rem;
    font-weight: 400;
    color: var(--light-text);
    margin-bottom: 15px;
}

.achievements {
    margin-top: 15px;
    border-top: 1px solid var(--border-color);
    padding-top: 15px;
}

.achievements h5 {
    font-size: 1rem;
    margin-bottom: 10px;
    color: var(--primary-color);
}

.achievements ul {
    padding-left: 20px;
}

.achievements li {
    margin-bottom: 5px;
    position: relative;
    padding-left: 20px;
}

.achievements li::before {
    content: ">";
    color: var(--primary-color);
    font-weight: bold;
    position: absolute;
    left: 0;
    font-family: var(--terminal-font);
}

.certifications-container h3 {
    font-size: 1.3rem;
    margin-bottom: 20px;
    color: var(--primary-color);
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 10px;
}

.certifications-container h3:not(:first-child) {
    margin-top: 30px;
}

/* Contact Section */
.contact {
    background-color: var(--light-background);
}

.contact-grid {
    display: grid;
    grid-template-columns: minmax(300px, 600px);
    justify-content: center;
    gap: 30px;
}

.contact-card {
    background-color: var(--background-color);
    border-radius: var(--border-radius);
    border: 1px solid var(--border-color);
    overflow: hidden;
    transition: var(--transition);
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
}

.contact-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 255, 140, 0.2);
    border-color: var(--primary-color);
}

.contact-header {
    padding: 20px;
    background-color: rgba(0, 255, 140, 0.05);
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
}

.contact-header i {
    font-size: 2rem;
    color: var(--primary-color);
    margin-right: 15px;
}

.contact-header h3 {
    font-size: 1.3rem;
    color: var(--primary-color);
    margin: 0;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 15px;
    transition: var(--transition);
    padding: 10px;
    border-radius: var(--border-radius);
}

.contact-item:hover {
    background-color: rgba(0, 255, 140, 0.05);
    transform: translateX(5px);
}

.contact-item i {
    font-size: 1.2rem;
    color: var(--primary-color);
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(0, 255, 140, 0.1);
    border-radius: 50%;
}

.section-subtitle {
    text-align: center;
    margin-bottom: 30px;
    color: var(--light-text);
    font-size: 1rem;
}

/* Footer */
.footer {
    background-color: var(--darker-background);
    color: var(--text-color);
    padding: 40px 0;
    text-align: center;
    position: relative;
}

.footer::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--primary-color), transparent);
}

.social-links {
    margin-bottom: 20px;
}

.social-links a {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 40px;
    height: 40px;
    background-color: rgba(0, 255, 140, 0.1);
    color: var(--primary-color);
    border-radius: 50%;
    margin: 0 10px;
    font-size: 1.2rem;
    transition: var(--transition);
    border: 1px solid rgba(0, 255, 140, 0.2);
}

.social-links a:hover {
    background-color: var(--primary-color);
    color: var(--background-color);
    transform: translateY(-5px);
    box-shadow: 0 0 15px var(--primary-color);
}

.footer p {
    font-size: 0.9rem;
    color: var(--light-text);
}

.tagline {
    font-family: var(--terminal-font);
    color: var(--primary-color);
    margin-top: 10px;
    letter-spacing: 1px;
}

/* Responsive Styles */
@media (max-width: 992px) {
    .about-content {
        grid-template-columns: 1fr;
    }
    
    .timeline::after {
        left: 30px;
    }
    
    .timeline-date {
        min-width: 60px;
    }
}

@media (max-width: 768px) {
    .hamburger {
        display: block;
    }
    
    .nav-links {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background-color: rgba(10, 10, 10, 0.95);
        width: 100%;
        text-align: center;
        transition: var(--transition);
        box-shadow: 0 10px 10px rgba(0, 0, 0, 0.1);
        padding: 20px 0;
        border-bottom: 1px solid var(--primary-color);
    }
    
    .nav-links.active {
        left: 0;
        z-index: 1000; /* Ensure menu appears above other content */
    }
    
    .nav-links li {
        margin: 15px 0;
    }
    
    .hero-content h1 {
        font-size: 2.5rem;
    }
    
    .timeline-item {
        flex-direction: column;
    }
    
    .timeline-date {
        text-align: left;
        padding-right: 0;
        padding-bottom: 10px;
    }
    
    .timeline-content {
        margin-left: 0;
    }
    
    .timeline::after {
        display: none;
    }
    
    .ascii-art {
        font-size: 0.4rem; /* Smaller font size on mobile */
        line-height: 0.5rem;
    }
}

@media (max-width: 576px) {
    .hero-content h1 {
        font-size: 2rem;
    }
    
    .section-title {
        font-size: 1.8rem;
    }
    
    .btn {
        width: 100%;
        justify-content: center;
        margin-bottom: 10px;
    }
    
    .hero-buttons {
        flex-direction: column;
    }
}

/* ASCII Art */
.ascii-art {
    margin-bottom: 20px;
    font-family: var(--terminal-font);
    font-size: 0.5rem;
    line-height: 0.6rem;
    color: var(--primary-color);
    text-shadow: var(--glow) var(--primary-color);
    opacity: 0.8;
}

.ascii-art pre {
    display: inline-block;
    text-align: left;
}

/* Terminal Output */
.terminal-output {
    font-family: var(--terminal-font);
    color: var(--primary-color);
    margin: 20px 0;
    font-size: 1.2rem;
    height: 1.5rem;
}

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

.cursor {
    animation: blink 1s step-end infinite;
}

/* Terminal Windows */
.terminal-window {
    background-color: var(--terminal-bg);
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
    margin-bottom: 20px;
    overflow: hidden;
    width: 100%;
    max-width: 600px;
    transition: all 0.3s ease;
}

.terminal-header {
    background-color: #333;
    padding: 10px;
    display: flex;
    align-items: center;
}

.terminal-button {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    margin-right: 8px;
    background-color: #ff5f56;
    display: inline-block;
}

.terminal-button:nth-child(2) {
    background-color: #ffbd2e;
}

.terminal-button:nth-child(3) {
    background-color: #27c93f;
}

.terminal-title {
    color: #aaa;
    margin-left: 10px;
    font-size: 14px;
    font-family: var(--terminal-font);
}

.terminal-body {
    padding: 20px;
    color: var(--terminal-text);
    font-family: var(--terminal-font);
    line-height: 1.6;
    overflow-x: auto;
    white-space: pre-wrap;
    word-wrap: break-word;
}

.command {
    color: var(--primary-color);
    font-weight: bold;
}

/* Mobile Responsive Terminal Windows */
@media screen and (max-width: 768px) {
    .terminal-window {
        font-size: 14px;
        margin-bottom: 15px;
    }
    
    .terminal-body {
        padding: 15px;
        max-height: 300px;
        overflow-y: auto;
    }
    
    .terminal-header {
        padding: 8px;
    }
    
    .terminal-button {
        width: 10px;
        height: 10px;
        margin-right: 6px;
    }
    
    .terminal-title {
        font-size: 12px;
    }
    
    .contact-grid {
        grid-template-columns: 1fr;
    }
    
    .contact-info {
        flex-direction: column;
    }
    
    .contact-item {
        margin-bottom: 10px;
    }
}

@media screen and (max-width: 480px) {
    .terminal-window {
        font-size: 13px;
    }
    
    .terminal-body {
        padding: 12px;
    }
    
    .terminal-body ul, .terminal-body ol {
        padding-left: 20px;
    }
    
    .terminal-body p, .terminal-body li {
        margin-bottom: 8px;
    }
}

/* Projects Section */
.projects {
    background-color: var(--background-color);
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
    grid-auto-rows: 1fr; /* Ensure equal height rows */
}

.project-card {
    background-color: var(--light-background);
    border-radius: var(--border-radius);
    border: 1px solid var(--border-color);
    overflow: hidden;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    height: 100%; /* Ensure cards take full height of grid cell */
}

.project-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 255, 140, 0.2);
    border-color: var(--primary-color);
}

.project-header {
    padding: 20px;
    background-color: rgba(0, 255, 140, 0.05);
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
}

.project-header i {
    font-size: 2rem;
    color: var(--primary-color);
    margin-right: 15px;
}

.project-header h3 {
    font-size: 1.3rem;
    color: var(--primary-color);
    margin: 0;
}

.project-body {
    padding: 20px;
    flex-grow: 1;
}

.project-body p {
    margin-bottom: 15px;
}

.project-features {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 15px;
}

.project-features span {
    display: flex;
    align-items: center;
    font-size: 0.9rem;
}

.project-features i {
    color: var(--primary-color);
    margin-right: 8px;
    font-size: 0.8rem;
}

.project-footer {
    padding: 15px 20px;
    border-top: 1px solid var(--border-color);
}

.project-link {
    display: inline-flex;
    align-items: center;
    color: var(--primary-color);
    font-size: 0.9rem;
    transition: var(--transition);
}

.project-link i {
    margin-right: 8px;
}

.project-link:hover {
    color: var(--secondary-color);
    transform: translateX(5px);
}

/* Blog Section */
.blog {
    background-color: var(--light-background);
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
    grid-auto-rows: 1fr; /* Ensure equal height rows */
}

.blog-card {
    background-color: var(--background-color);
    border-radius: var(--border-radius);
    border: 1px solid var(--border-color);
    overflow: hidden;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    height: 100%; /* Ensure cards take full height of grid cell */
}

.blog-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 255, 140, 0.2);
    border-color: var(--primary-color);
}

.blog-header {
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(0, 255, 140, 0.05);
    border-bottom: 1px solid var(--border-color);
}

.blog-header i {
    font-size: 2.5rem;
    color: var(--primary-color);
    opacity: 0.7;
}

.blog-body {
    padding: 20px;
    flex-grow: 1;
}

.blog-date {
    display: block;
    font-size: 0.8rem;
    color: var(--light-text);
    margin-bottom: 10px;
}

.blog-body h3 {
    font-size: 1.3rem;
    color: var(--secondary-color);
    margin-bottom: 15px;
}

.blog-footer {
    padding: 15px 20px;
    border-top: 1px solid var(--border-color);
}

.blog-link {
    display: inline-flex;
    align-items: center;
    color: var(--primary-color);
    font-size: 0.9rem;
    transition: var(--transition);
}

.blog-link i {
    margin-left: 8px;
}

.blog-link:hover {
    color: var(--secondary-color);
    transform: translateX(5px);
}

/* Resume Sections */
.resume-sections {
    margin-top: 60px;
}

/* Glitch Effect */
.glitch-effect {
    animation: glitch 0.5s linear infinite;
}

/* Responsive Styles for New Elements */
@media (max-width: 768px) {
    .projects-grid,
    .blog-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 576px) {
    .terminal-body {
        font-size: 0.8rem;
    }
    
    .terminal-output {
        font-size: 1rem;
    }
}

/* Section Backgrounds */
section.about {
    background-color: var(--light-background) !important;
}

section.experience, 
section.projects,
section.contact {
    background-color: var(--background-color) !important;
}

section.skills,
section.blog,
section.education {
    background-color: var(--light-background) !important;
}

/* Ensure all text is light colored */
p, h1, h2, h3, h4, h5, h6, span, li {
    color: var(--text-color);
}

/* Ensure all links have correct color */
a:not(.btn) {
    color: var(--primary-color);
}

a:not(.btn):hover {
    color: var(--secondary-color);
}

/* Improve accessibility for links */
a:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

/* Fix for print styles */
@media print {
    .matrix-bg {
        display: none; /* Hide matrix animation when printing */
    }
    
    body {
        background-color: white !important;
        color: black !important;
    }
    
    a {
        color: #006600 !important;
        text-decoration: underline !important;
    }
    
    .header, .footer {
        background-color: white !important;
    }
}

/* Cursor blink effect */
.cursor-blink {
    color: var(--primary-color);
    animation: blink 1s step-end infinite;
    margin-left: 5px;
    font-weight: normal;
} 