/*-- Google Fonts Import --*/
@import url('https://fonts.googleapis.com/css2?family=Fira+Code&display=swap');

/*-- CSS Variables for theming --*/
:root {
    --bg-color: #f0f2f5;
    --card-bg-color: rgba(100, 100, 100, 0.2); /* Semi-transparent dark gray for cards */
    --text-color: #E0E0E0; /* Soft grey for general text */
    --heading-color: #4FC3F7; /* Bright cyan for headings */
    --accent-color: #1a73e8; /* Vibrant blue for accents */
    --accent-color-hover: #0d47a1; /* Darker blue for hover effects */
    --border-color: rgba(255, 255, 255, 0.2);
    --shadow-color: rgba(0, 0, 0, 0.1);
    --glow-color: rgba(0, 123, 255, 0.5);
}

@media (prefers-color-scheme: dark) {
    :root {
        --bg-color: #000000;
        --card-bg-color: rgba(0, 30, 90, 0.4); /* Darker, muted blue for cards in dark mode */
        --text-color: #E0E0E0; /* Soft grey for general text */
        --heading-color: #4FC3F7; /* Bright cyan for headings */
        --accent-color: #39FF14; /* Neon Green for accents (buttons/links) */
        --accent-color-hover: #00FFFF; /* Cyan for hover effects */
        --magenta-color: #FF00FF; /* Magenta for specific accents like skill categories */
        --border-color: rgba(0, 255, 255, 0.3); /* Cyan border with transparency */
        --shadow-color: rgba(0, 0, 0, 0.5);
        --glow-color: rgba(0, 255, 255, 0.8); /* Cyan glow effect */
    }
}

body {
    font-family: 'Fira Code', monospace;
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
    margin: 0;
    padding: 20px;
    overflow-x: hidden;
}

/*-- Animated background --*/
#particles-js {
    position: fixed;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    z-index: -1;
    background: #000;
}


.container {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.left-column {
    display: flex;
    flex-direction: column;
    gap: 20px;
    flex: 1;
    min-width: 280px;
}

/*-- Glassmorphism Card Style --*/
.profile-card, .main-content, .contact-card {
    background-color: var(--card-bg-color);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 8px 32px 0 var(--shadow-color);
    transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.profile-card:hover, .main-content:hover, .contact-card:hover {
    box-shadow: 0 0 25px var(--glow-color);
    transform: translateY(-5px);
}

.profile-card {
    text-align: center;
}

.profile-card img {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 20px;
    border: 3px solid var(--accent-color);
}

.skill-category {
    color: var(--magenta-color);
    font-weight: bold;
    margin-right: 5px;
}

.contact-card h3 {
    color: var(--heading-color);
    margin-top: 0;
}

.contact-card ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.contact-card ul li {
    margin-bottom: 10px;
}

.contact-card a {
    text-decoration: none;
    color: var(--accent-color);
    transition: color 0.3s;
}

.contact-card a:hover {
    color: var(--accent-color-hover);
}


.main-content {
    flex: 2;
}

.main-content h2, .main-content h3 {
    color: var(--heading-color);
    border-bottom: 2px solid var(--border-color);
    padding-bottom: 10px;
}

nav a {
    text-decoration: none;
    color: var(--accent-color);
    font-weight: bold;
    margin-right: 15px;
    transition: color 0.3s ease;
}
nav a:hover {
    color: var(--accent-color-hover);
}

.resume-button {
    display: inline-block;
    background-color: var(--accent-color);
    color: #fff;
    padding: 12px 25px;
    text-decoration: none;
    border-radius: 8px;
    font-weight: bold;
    transition: background-color 0.3s ease;
}
.resume-button:hover {
    background-color: var(--accent-color-hover);
}

.copy-button {
    background-color: var(--accent-color);
    color: #fff;
    border: none;
    padding: 5px 10px;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.copy-button:hover {
    background-color: var(--accent-color-hover);
}

/* Code Block Styling */
.code-block-container {
    position: relative;
    background-color: #2d2d2d; /* Dark background for code */
    border-radius: 8px;
    padding: 15px;
    margin: 20px 0;
    overflow-x: auto;
}

.code-block-container pre {
    margin: 0;
    padding: 0;
    color: #f8f8f2; /* Light text for code */
    font-family: 'Fira Code', monospace;
    font-size: 0.9em;
    line-height: 1.5;
}

.code-block-container .copy-code-button {
    position: absolute;
    top: 10px;
    right: 10px;
    background-color: var(--accent-color);
    color: #fff;
    border: none;
    padding: 5px 10px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 0.8em;
    transition: background-color 0.3s ease;
}

.code-block-container .copy-code-button:hover {
    background-color: var(--accent-color-hover);
}

/* Equation Block Styling */
.equation-container {
    border: 1px solid var(--border-color);
    padding: 15px;
    background-color: rgba(45, 45, 45, 0.5); /* Semi-transparent dark background */
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    border-radius: 8px;
    margin: 20px 0;
    overflow-x: auto;
    white-space: nowrap;
    text-align: center;
}

.equation-container .katex-display {
    margin: 0;
}

.main-content ul { list-style: none; padding: 0; }
.main-content ul li {
    margin-bottom: 10px;
    padding: 8px;
    border-radius: 5px;
    transition: background-color 0.2s;
}
.main-content ul li:hover {
    background-color: rgba(100, 100, 100, 0.1);
}
.main-content ul li a {
    text-decoration: none;
    color: var(--accent-color);
    font-weight: bold;
}
.main-content ul li a:hover {
    color: var(--accent-color-hover);
}
.main-content ul li small { color: rgba(255, 255, 255, 0.7); }

.topic-card-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    padding: 20px 0;
}

.topic-card {
    background-color: var(--card-bg-color);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 20px;
    box-shadow: 0 8px 32px 0 var(--shadow-color);
    transition: box-shadow 0.3s ease, transform 0.3s ease;
    text-decoration: none;
    color: var(--text-color);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.topic-card:hover {
    box-shadow: 0 0 25px var(--glow-color);
    transform: translateY(-5px);
    color: var(--accent-color-hover);
}

.topic-card img {
    width: 64px;
    height: 64px;
    margin-bottom: 15px;
    filter: invert(1);
}

.topic-card span {
    font-weight: bold;
    font-size: 1.1em;
}

.post-card {
    background-color: var(--card-bg-color);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 20px;
    box-shadow: 0 8px 32px 0 var(--shadow-color);
    transition: box-shadow 0.3s ease, transform 0.3s ease;
    text-decoration: none;
    color: var(--text-color);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    text-align: center;
}

.post-card:hover {
    box-shadow: 0 0 25px var(--glow-color);
    transform: translateY(-5px);
    color: var(--accent-color-hover);
}

.post-card span {
    font-weight: bold;
    font-size: 1.1em;
    flex-grow: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.post-card .date {
    font-size: 0.8em;
    color: rgba(255, 255, 255, 0.7);
    margin-top: 15px;
}


/*-- Responsive design --*/
@media (max-width: 768px) {
    body { padding: 10px; }
    .container { flex-direction: column; }
    .left-column { display: contents; }
    .profile-card { order: 1; }
    .main-content { order: 2; }
    .contact-card { order: 3; }
    .profile-card, .main-content, .contact-card {
        width: 100%;
        margin-bottom: 20px;
        box-sizing: border-box; /* Ensures padding is included in the width */
    }
}
.image-container {
  display: flex;
  justify-content: center;  /* horizontal centering */
  align-items: center;      /* vertical alignment if needed */
  margin: 20px 0;           /* spacing above and below */
}

.image-container img {
  max-width: 90%;           /* responsive width for mobile */
  height: auto;             /* maintain aspect ratio */
  border-radius: 8px;       /* optional: rounded corners */
  box-shadow: 0 4px 10px rgba(0,0,0,0.1); /* optional: subtle shadow */
}

