/* Root Variables for Dark Mode (Default) */
:root {
  --bg-primary: linear-gradient(135deg, #0a0a0f 0%, #0f1419 50%, #1a1a2e 100%);
  --bg-secondary: rgba(15, 20, 25, 0.6);
  --bg-accent: rgba(52, 152, 219, 0.2);
  --bg-accent-hover: rgba(52, 152, 219, 0.3);
  --text-primary: #3498db;
  --text-secondary: #bdc3c7;
  --text-accent: #5dade2;
  --border-color: rgba(52, 152, 219, 0.2);
  --border-accent: rgba(52, 152, 219, 0.3);
  --gradient-primary: linear-gradient(45deg, #3498db, #9b59b6);
  --gradient-secondary: linear-gradient(45deg, #3498db, #9b59b6);
  --selection-bg: #4B0082;
  --selection-text: #ffffff;
}

/* Light Mode Variables */
[data-theme="light"] {
  --bg-primary: linear-gradient(135deg, #f5f7fa 0%, #e9ecef 50%, #d3d9e0 100%);
  --bg-secondary: rgba(248, 250, 252, 0.92);
  --bg-accent: rgba(156, 39, 176, 0.15);
  --bg-accent-hover: rgba(156, 39, 176, 0.25);
  --text-primary: #1a202c;
  --text-secondary: #2d3748;
  --text-accent: #7b1fa2;
  --border-color: rgba(156, 39, 176, 0.4);
  --border-accent: rgba(156, 39, 176, 0.6);
  --gradient-primary: linear-gradient(45deg, #9c27b0, #e91e63);
  --gradient-secondary: linear-gradient(45deg, #673ab7, #9c27b0);
  --selection-bg: #9c27b0;
  --selection-text: #ffffff;
}

body {
    font-family: 'Karma';
    background: var(--bg-primary);
    margin: 0;
    padding: 0;
    color: var(--text-primary);
    min-height: 100vh;
    transition: background 0.3s ease, color 0.3s ease;
}

/* General hover effects for all clickable elements */
a:hover, button:hover, [onclick]:hover, input[type="button"]:hover, input[type="submit"]:hover, .collapsible:hover {
    filter: drop-shadow(0 0 20px rgba(52, 152, 219, 1.0));
    transition: filter 0.2s ease;
}

::selection {
  background-color: var(--selection-bg);
  color: var(--selection-text);
}

header {
    background: var(--bg-secondary);
    backdrop-filter: blur(10px);
    border-bottom: 2px solid var(--border-accent);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    color: var(--text-primary);
    padding: 20px 0;
    transition: background 0.3s ease, border-color 0.3s ease, padding 0.3s ease;
    position: sticky;
    top: 0;
    z-index: 1000;
}

header.scrolled {
    padding: 10px 0;
}

/* Theme Toggle Button */
.theme-toggle {
    background: var(--bg-accent);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 8px 12px;
    color: var(--text-accent);
    cursor: pointer;
    font-size: 16px;
    margin-right: 20px;
    transition: all 0.3s ease;
}

.theme-toggle:hover {
    background: var(--bg-accent-hover);
    border-color: var(--border-accent);
}

.header-content {
    display: flex;
    justify-content: space-between; 
    align-items: center;
    max-width: 1200px; 
    margin: auto;
    padding: 0 20px;
}

.title-section {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
}

.social-icons {
    display: flex;
    gap: 18px;
    align-items: center;
}

.social-icons .icon-link {
    font-size: 22px;
    color: #5dade2;
    text-decoration: none;
}

.social-icons .icon-link:hover {
    filter: drop-shadow(0 0 20px rgba(52, 152, 219, 1.0));
}

.title {
    font-size: 42px;
    text-decoration: none;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: bold;
    transition: all 0.3s ease;
}

.title:hover {
    filter: drop-shadow(0 0 20px rgba(52, 152, 219, 1.0));
}

.pages {
    display: flex;
    gap: 30px;
    font-size: 26px;
}

.pages a {
    text-decoration: none;
    color: var(--text-primary);
    font-weight: bold;
    padding: 10px 20px;
    border-radius: 25px;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.pages a:hover {
    filter: drop-shadow(0 0 20px rgba(52, 152, 219, 1.0));
}

.pages a.active {
    background: var(--gradient-primary);
    color: white;
    box-shadow: 0 4px 15px rgba(52, 152, 219, 0.3);
}

.pages a.active:hover {
    filter: drop-shadow(0 0 10px rgba(52, 152, 219, 0.8));
}


.top-button {
    position: fixed;
    bottom: 30px;
    right: 30px;
    display: none;
    background: linear-gradient(45deg, #3498db, #9b59b6);
    color: white;
    font-size: 20px;
    border: none;
    padding: 12px;
    cursor: pointer;
    border-radius: 50%;
    box-shadow: 0 4px 15px rgba(52, 152, 219, 0.3);
    z-index: 999;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.top-button:hover {
    filter: drop-shadow(0 0 20px rgba(52, 152, 219, 1.0));
}

.top-button i {
    font-size: 20px;
}

/* Mobile-specific styling */
@media (max-width: 1000px) {
    .header-content {
        flex-direction: column;
        align-items: center;
        gap: 15px;
    }

    .title-section {
        align-items: center;
        text-align: center;
        gap: 10px;
    }

    .social-icons {
        gap: 20px;
        justify-content: center;
    }

    .social-icons .icon-link {
        font-size: 22px;
    }

    .pages {
        margin-top: 10px;
        font-size: 20px;
        gap: 20px;
    }

    .pages a {
        padding: 8px 16px;
        font-size: 18px;
    }

    .title {
        font-size: 32px;
    }
}

a {
    text-decoration: none;
    color: #5dade2;
}

hr {
    border: none;
    height: 2px;
    background: linear-gradient(45deg, #e74c3c, #f39c12);
    margin: 30px 0;
    border-radius: 2px;
}

h1 {
    font-size: 36px;
    color: var(--text-primary);
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

h2 {
    font-size: 24px;
    color: #3498db;
    border-left: 4px solid #5dade2;
    padding-left: 15px;
    margin-top: 30px;
    margin-bottom: 20px;
}

h3,h4,h5,h6 {
  color: #bdc3c7;
}

h3 {
    font-size: 20px;
}

p {
    font-size: 18px;
    margin: 20px 0;
}

.table-container {
    width: 100%;
    overflow-x: auto; 
}

/* Keep your existing table styles */
table {
    border-collapse: collapse; 
    width: 100%; 
}

th, td {
    border: 2px solid; 
    padding: 8px;
    color: #a4a4a4;
    background-color: transparent; 
    text-align: justify;
}

.container {
    max-width: 1200px;
    background: var(--bg-secondary);
    backdrop-filter: blur(10px);
    margin: 30px auto;
    text-align: justify;
    padding: 30px;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    font-size: 16px;
    line-height: 1.7;
    transition: background 0.3s ease, border-color 0.3s ease, color 0.3s ease;
}

/* Profile Section Styles */
.profile-section {
    display: flex;
    gap: 40px;
    margin-bottom: 40px;
    align-items: flex-start;
}

.profile-image {
    flex: 0 0 250px;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 20px;
}

.profile-pic {
    width: 200px;
    height: 200px;
    object-fit: cover;
    border-radius: 50%;
    border: 4px solid rgba(52, 152, 219, 0.4);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.profile-content {
    flex: 1;
    text-align: left;
    margin: 20px 20px 20px 0;
}

.profile-content h2 {
    margin-top: 0;
    color: #3498db;
    font-size: 28px;
    border-left: 4px solid #5dade2;
    padding-left: 15px;
}

.profile-content p {
    line-height: 1.7;
    margin-bottom: 20px;
}

/* Responsive Design for Profile Section */
@media (max-width: 768px) {
    .profile-section {
        flex-direction: column;
        text-align: center;
        gap: 25px;
    }
    
    .profile-image {
        flex: none;
        align-self: center;
        margin: 10px;
    }
    
    .profile-pic {
        width: 150px;
        height: 150px;
    }
    
    .profile-content {
        text-align: justify;
        margin: 10px;
    }
}

/* LeetCode and Tech Stack Sections */
.leetcode-section, .tech-stack-section {
    margin: 30px 0;
}

.leetcode-section h3, .tech-stack-section h3 {
    color: #3498db;
    font-size: 20px;
    margin-bottom: 15px;
    border-left: 3px solid #5dade2;
    padding-left: 12px;
}

.leetcode-container {
    text-align: center;
    margin: 20px 0;
}

.tech-stack-container {
    background: var(--bg-secondary);
    border-radius: 15px;
    padding: 25px;
    border: 1px solid var(--border-color);
    transition: background 0.3s ease, border-color 0.3s ease;
}

.tech-category {
    margin-bottom: 20px;
}

.tech-category:last-child {
    margin-bottom: 0;
}

.tech-category h4 {
    color: var(--text-accent);
    font-size: 17px;
    margin: 0 0 10px 0;
    font-weight: bold;
}

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

.tech-item {
    background: var(--bg-accent);
    padding: 15px;
    border-radius: 15px;
    border: 1px solid var(--border-accent);
    display: flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    transition: background 0.3s ease, border-color 0.3s ease;
}

.tech-item img {
    width: 40px;
    height: 40px;
    object-fit: contain;
}

@media (max-width: 768px) {
    .tech-items {
        justify-content: center;
    }
    
    .tech-item {
        font-size: 12px;
        padding: 5px 10px;
    }
}

/* AudioPrism Showcase Section */
.audioprism-showcase-section {
    margin: 30px 0;
}

.audioprism-showcase-section h3 {
    color: var(--text-accent);
    font-size: 24px;
    text-align: center;
    margin-bottom: 20px;
}

.audioprism-showcase-container {
    display: grid;
    grid-template-columns: 1.4fr 1fr;
    gap: 30px;
    align-items: center;
    background: var(--bg-secondary);
    border-radius: 18px;
    padding: 30px;
    border: 1px solid var(--border-color);
    transition: background 0.3s ease, border-color 0.3s ease;
}

.audioprism-preview {
    display: flex;
    flex-direction: column;
    gap: 18px;
    align-items: center;
    text-align: center;
}

.audioprism-reel {
    width: 100%;
    border-radius: 15px;
    border: 2px solid rgba(52, 152, 219, 0.3);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.35);
    background: rgba(0, 0, 0, 0.4);
}

.audioprism-caption {
    font-size: 14px;
    font-style: italic;
    color: var(--text-secondary);
    margin: 0;
}

.audioprism-details {
    display: flex;
    flex-direction: column;
    gap: 18px;
    padding: 20px;
    border-radius: 15px;
    background: transparent;
    border: 1px solid var(--border-color);
    align-self: center;
    justify-self: center;
    width: min(100%, 420px);
}

.audioprism-details p {
    margin: 0;
    color: var(--text-secondary);
}

.audioprism-highlights {
    list-style: none;
    padding-left: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
    text-align: left;
    align-self: center;
}

.audioprism-highlights li {
    position: relative;
    padding-left: 26px;
    color: var(--text-secondary);
    font-size: 15px;
}

.audioprism-highlights li:before {
    content: "";
    position: absolute;
    left: 0;
    top: 6px;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: linear-gradient(135deg, #3498db, #9b59b6);
    box-shadow: 0 0 12px rgba(52, 152, 219, 0.5);
}

.audioprism-button {
    background: var(--gradient-secondary);
    color: #ffffff;
    text-decoration: none;
    padding: 14px 28px;
    border-radius: 22px;
    font-size: 16px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    border: 2px solid transparent;
    box-shadow: 0 12px 25px rgba(52, 152, 219, 0.25);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.audioprism-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 16px 30px rgba(52, 152, 219, 0.35);
}

@media (max-width: 900px) {
    .audioprism-showcase-container {
        grid-template-columns: 1fr;
        padding: 24px;
    }
}

/* PulsarPReSPIDAR Showcase Section */
.pulsar-showcase-section {
    margin: 30px 0;
}

.pulsar-showcase-section h3 {
    color: var(--text-accent);
    font-size: 24px;
    text-align: center;
    margin-bottom: 20px;
}

.pulsar-showcase-container {
    display: grid;
    grid-template-columns: 1.4fr 1fr;
    gap: 30px;
    align-items: center;
    background: var(--bg-secondary);
    border-radius: 18px;
    padding: 30px;
    border: 1px solid var(--border-color);
    transition: background 0.3s ease, border-color 0.3s ease;
}

.pulsar-preview {
    display: flex;
    flex-direction: column;
    gap: 18px;
    align-items: center;
    text-align: center;
}

.pulsar-reel {
    width: 100%;
    border-radius: 15px;
    border: 2px solid rgba(52, 152, 219, 0.3);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.35);
    background: rgba(0, 0, 0, 0.4);
}

.pulsar-caption {
    font-size: 14px;
    font-style: italic;
    color: var(--text-secondary);
    margin: 0;
}

.pulsar-details {
    display: flex;
    flex-direction: column;
    gap: 18px;
    padding: 20px;
    border-radius: 15px;
    background: transparent;
    border: 1px solid var(--border-color);
    align-self: center;
    justify-self: center;
    width: min(100%, 420px);
}

.pulsar-details p {
    margin: 0;
    color: var(--text-secondary);
}

.pulsar-highlights {
    list-style: none;
    padding-left: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
    text-align: left;
    align-self: center;
}

.pulsar-highlights li {
    position: relative;
    padding-left: 26px;
    color: var(--text-secondary);
    font-size: 15px;
}

.pulsar-highlights li:before {
    content: "";
    position: absolute;
    left: 0;
    top: 6px;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: linear-gradient(135deg, #3498db, #9b59b6);
    box-shadow: 0 0 12px rgba(52, 152, 219, 0.5);
}

.pulsar-button {
    background: var(--gradient-secondary);
    color: #ffffff;
    text-decoration: none;
    padding: 14px 28px;
    border-radius: 22px;
    font-size: 16px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    border: 2px solid transparent;
    box-shadow: 0 12px 25px rgba(52, 152, 219, 0.25);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.pulsar-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 16px 30px rgba(52, 152, 219, 0.35);
}

@media (max-width: 900px) {
    .pulsar-showcase-container {
        grid-template-columns: 1fr;
        padding: 24px;
    }
}

/* Game Showcase Section */
.game-showcase-section {
    margin: 30px 0;
}

.game-showcase-section h3 {
    color: var(--text-accent);
    font-size: 24px;
    margin-bottom: 20px;
    text-align: center;
}

.game-showcase-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    align-items: center;
    background: var(--bg-secondary);
    border-radius: 15px;
    padding: 25px;
    border: 1px solid var(--border-color);
    transition: background 0.3s ease, border-color 0.3s ease;
}

.game-preview {
    text-align: center;
}

.game-gif {
    width: 100%;
    max-width: 400px;
    border-radius: 10px;
    border: 2px solid rgba(52, 152, 219, 0.3);
    object-fit: cover;
    height: auto;
}

.game-description {
    color: var(--text-secondary);
    font-style: italic;
    margin-top: 15px;
    font-size: 15px;
}

.game-widget {
    display: flex;
    justify-content: center;
    align-items: center;
}

.game-widget iframe {
    border-radius: 10px;
    max-width: 100%;
}

@media (max-width: 768px) {
    .game-showcase-container {
        grid-template-columns: 1fr;
        gap: 20px;
        padding: 20px;
    }
    
    .game-widget iframe {
        width: 100%;
        max-width: 100%;
    }
}

/* Project Showcase Section */
.project-showcase-section {
    margin: 30px 0;
}

.project-showcase-section h3 {
    color: var(--text-accent);
    font-size: 24px;
    margin-bottom: 20px;
    text-align: center;
}

.project-showcase-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    align-items: center;
    background: var(--bg-secondary);
    border-radius: 15px;
    padding: 25px;
    border: 1px solid var(--border-color);
    transition: background 0.3s ease, border-color 0.3s ease;
}

.project-preview {
    text-align: center;
}

.project-gif {
    width: 100%;
    max-width: 400px;
    border-radius: 10px;
    border: 2px solid rgba(52, 152, 219, 0.3);
    object-fit: contain;
    height: auto;
    background: rgba(52, 152, 219, 0.1);
    display: block;
    margin: 0 auto;
}

.project-gif[src=""] {
    background: rgba(52, 152, 219, 0.1);
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.project-gif[src=""]:after {
    content: "GIF Preview Placeholder";
    color: #5dade2;
    font-size: 14px;
    font-family: 'Karma', serif;
}

.project-description {
    color: var(--text-secondary);
    font-style: italic;
    margin-top: 15px;
    font-size: 15px;
}

.project-link {
    display: flex;
    flex-direction: column;
    gap: 15px;
    align-items: center;
}

.project-button {
    background: var(--gradient-primary);
    color: white;
    text-decoration: none;
    padding: 12px 24px;
    border-radius: 15px;
    font-size: 16px;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-width: 180px;
    justify-content: center;
    border: 2px solid transparent;
    transition: all 0.3s ease;
}

.project-button.secondary {
    background: transparent;
    border: 2px solid var(--border-accent);
    color: var(--text-accent);
}

@media (max-width: 768px) {
    .project-showcase-container {
        grid-template-columns: 1fr;
        gap: 20px;
        padding: 20px;
    }
    
    .project-button {
        width: 100%;
        max-width: 250px;
    }
}

/* BISKit Showcase Section */
.biskit-showcase-section {
    margin: 30px 0;
}

.biskit-showcase-section h3 {
    color: var(--text-accent);
    font-size: 24px;
    margin-bottom: 20px;
    text-align: center;
}

.biskit-showcase-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    align-items: center;
    background: var(--bg-secondary);
    border-radius: 15px;
    padding: 25px;
    border: 1px solid var(--border-color);
    transition: background 0.3s ease, border-color 0.3s ease;
}

.biskit-preview {
    text-align: center;
}

.biskit-gif {
    width: 100%;
    max-width: 300px;
    border-radius: 10px;
    border: 2px solid rgba(52, 152, 219, 0.3);
    object-fit: contain;
    height: auto;
    min-height: 200px;
    background: rgba(52, 152, 219, 0.1);
    display: block;
    margin: 0 auto;
}

.biskit-gif[src=""] {
    background: rgba(52, 152, 219, 0.1);
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.biskit-gif[src=""]:after {
    content: "BISKit Mascot GIF";
    color: #5dade2;
    font-size: 14px;
    font-family: 'Karma', serif;
}

.biskit-description {
    color: var(--text-secondary);
    font-style: italic;
    margin-top: 15px;
    font-size: 15px;
}

.biskit-link {
    display: flex;
    flex-direction: column;
    gap: 20px;
    align-items: center;
}

.biskit-button {
    background: var(--gradient-secondary);
    color: white;
    text-decoration: none;
    padding: 15px 30px;
    border-radius: 15px;
    font-size: 18px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    min-width: 220px;
    justify-content: center;
    border: 2px solid transparent;
    box-shadow: 0 4px 15px rgba(230, 126, 34, 0.3);
    transition: all 0.3s ease;
}

.biskit-info {
    background: var(--bg-accent);
    border-radius: 10px;
    padding: 15px;
    border: 1px solid var(--border-color);
    width: 100%;
    max-width: 250px;
    transition: background 0.3s ease, border-color 0.3s ease;
}

.biskit-info p {
    margin: 8px 0;
    color: var(--text-secondary);
    font-size: 15px;
}

.biskit-info strong {
    color: var(--text-accent);
}

@media (max-width: 768px) {
    .biskit-showcase-container {
        grid-template-columns: 1fr;
        gap: 20px;
        padding: 20px;
    }
    
    .biskit-button {
        width: 100%;
        max-width: 280px;
    }
    
    .biskit-info {
        max-width: 100%;
    }
}

/* Stellar Binary Showcase Styles */
.stellar-showcase-section {
    margin: 30px 0;
}

.stellar-showcase-section h3 {
    color: var(--text-accent);
    font-size: 24px;
    margin-bottom: 20px;
    text-align: center;
}

.stellar-showcase-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    align-items: center;
    background: var(--bg-secondary);
    border-radius: 15px;
    padding: 25px;
    border: 1px solid var(--border-color);
    transition: background 0.3s ease, border-color 0.3s ease;
}

.stellar-preview {
    text-align: center;
}

.stellar-gif {
    width: 100%;
    max-width: 350px;
    border-radius: 10px;
    border: 2px solid rgba(138, 43, 226, 0.4);
    object-fit: cover;
    height: auto;
    min-height: 200px;
    display: block;
    margin: 0 auto;
}

.stellar-description {
    color: var(--text-secondary);
    font-style: italic;
    margin-top: 15px;
    font-size: 15px;
}

.stellar-link {
    display: flex;
    flex-direction: column;
    gap: 15px;
    align-items: center;
}

.stellar-button {
    background: var(--gradient-primary);
    color: white;
    text-decoration: none;
    padding: 12px 25px;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-width: 200px;
    justify-content: center;
    border: 2px solid transparent;
    transition: all 0.3s ease;
}

.stellar-button:hover {
    transform: translateY(-2px);
    border-color: var(--border-accent);
}

.stellar-button.secondary {
    background: transparent;
    border: 2px solid var(--border-accent);
    color: var(--text-accent);
}

.stellar-button.secondary:hover {
    background: var(--bg-accent);
}

@media (max-width: 768px) {
    .stellar-showcase-container {
        grid-template-columns: 1fr;
        gap: 20px;
        padding: 20px;
    }
    
    .stellar-button {
        width: 100%;
        max-width: 280px;
    }
    
    .stellar-gif {
        max-width: 300px;
    }
}


.icon-link {
    color: #5dade2;
    font-size: 30px;
    margin-right: 10px;
    text-decoration: none;
}

.icon-link:hover {
    filter: drop-shadow(0 0 20px rgba(52, 152, 219, 1.0));
}

.circle {
    width: 200px;
    height: 200px;
    border-radius: 50%; 
    overflow: hidden; 
    float: left; 
    margin-right: 10px; 
    margin-bottom: 10px; 
}

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

.collapsible {
    background: linear-gradient(45deg, #3498db, #2980b9);
    color: white;
    cursor: pointer;
    padding: 15px 20px;
    width: 100%;
    text-align: left;
    border: none;
    outline: none;
    font-size: 18px;
    font-family: 'Karma';
    border-radius: 10px;
    margin: 10px 0;
    box-shadow: 0 4px 15px rgba(52, 152, 219, 0.2);
    font-weight: bold;
}

.content {
    padding: 20px;
    display: none; 
    overflow: hidden;
    background: rgba(15, 20, 25, 0.95);
    backdrop-filter: blur(5px);
    border-radius: 0 0 10px 10px;
    border: 2px solid rgba(52, 152, 219, 0.3);
    border-top: none;
    margin-top: -10px;
    margin-bottom: 10px;
    color: #ecf0f1;
    line-height: 1.6;
}

/* Blog Page Styles */
.blog-container {
  display: flex;
  gap: 30px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
}

.blog-main {
  flex: 2;
  min-width: 0; /* Prevents flex item from overflowing */
}

.blog-sidebar {
  flex: 1;
  max-width: 300px;
  min-width: 250px;
  position: sticky;
  top: 20px;
  height: fit-content;
}

.blog-search {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  border-radius: 15px;
  padding: 20px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
  margin-bottom: 20px;
}

.blog-search h3 {
  color: var(--text-primary);
  margin: 0 0 15px 0;
  font-size: 1.2rem;
}

.search-container {
  position: relative;
  width: 100%;
}

.search-input {
  width: 100%;
  padding: 12px 40px 12px 15px;
  border: 2px solid rgba(52, 152, 219, 0.3);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.1);
  color: var(--text-primary);
  font-size: 16px;
  box-sizing: border-box;
}

.search-input:focus {
  outline: none;
  border-color: #3498db;
  box-shadow: 0 0 15px rgba(52, 152, 219, 0.6);
  background: rgba(255, 255, 255, 0.15);
}

.search-input::placeholder {
  color: var(--text-secondary);
}

.search-icon {
  position: absolute;
  right: 15px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-secondary);
  pointer-events: none;
}

.blog-filters {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  border-radius: 15px;
  padding: 20px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.blog-filters h3 {
  color: var(--text-primary);
  margin: 0 0 15px 0;
  font-size: 1.2rem;
}

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

.filter-tag {
  background: rgba(52, 152, 219, 0.2);
  color: var(--text-primary);
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 0.85rem;
  cursor: pointer;
  border: 1px solid rgba(52, 152, 219, 0.3);
}

.filter-tag:hover, .filter-tag.active {
  background: rgba(52, 152, 219, 0.6);
  border-color: #3498db;
  box-shadow: 0 0 10px rgba(52, 152, 219, 0.4);
}

.blog-grid {
  display: flex;
  flex-direction: column;
  gap: 25px;
}

.blog-card {
  display: flex;
  background: var(--bg-secondary);
  backdrop-filter: blur(10px);
  border-radius: 15px;
  overflow: hidden;
  border: 1px solid var(--border-color);
  text-decoration: none;
  color: var(--text-secondary);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
  min-height: 200px;
  transition: background 0.3s ease, border-color 0.3s ease, color 0.3s ease;
}

.blog-card:hover {
  box-shadow: 0 20px 40px rgba(52, 152, 219, 0.3);
  border-color: rgba(52, 152, 219, 0.5);
}

.blog-card.hidden {
  display: none;
}

.blog-card-image {
  flex: 0 0 200px;
  position: relative;
  overflow: hidden;
}

.blog-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.blog-card-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    font-weight: 600;
    letter-spacing: 1px;
    color: white;
    text-transform: uppercase;
    background: linear-gradient(135deg, rgba(52, 152, 219, 0.8), rgba(155, 89, 182, 0.8));
}

.blog-card-content {
  flex: 1;
  padding: 20px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.blog-card h3 {
  color: var(--text-primary);
  margin: 0 0 10px 0;
  font-size: 1.3rem;
  line-height: 1.4;
}

.blog-card-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 15px;
  flex-wrap: wrap;
  gap: 10px;
}

.blog-card-date {
  color: var(--text-secondary);
  font-size: 0.9rem;
}

.blog-card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.blog-tag {
  background: var(--bg-accent);
  color: var(--text-primary);
  padding: 4px 8px;
  border-radius: 12px;
  font-size: 0.75rem;
  border: 1px solid var(--border-accent);
  transition: background 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}

.blog-card p {
  color: var(--text-secondary);
  line-height: 1.6;
  margin: 0;
  flex-grow: 1;
}

/* Responsive Design */
@media (max-width: 768px) {
  .blog-container {
    flex-direction: column;
    padding: 15px;
  }
  
  .blog-sidebar {
    max-width: none;
    position: static;
    order: -1;
  }
  
  .blog-card {
    flex-direction: column;
    min-height: auto;
  }
  
  .blog-card-image {
    flex: none;
    height: 200px;
  }
}

.blog-article-wrapper {
    max-width: 900px;
    margin: 30px auto;
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.blog-article {
    background: var(--bg-secondary);
    border-radius: 18px;
    padding: 40px;
    border: 1px solid var(--border-color);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.35);
}

.article-hero {
    text-align: left;
    margin-bottom: 30px;
}

.article-kicker {
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 13px;
    color: var(--text-accent);
    margin-bottom: 10px;
}

.article-hero h1 {
    font-size: 36px;
    margin: 0 0 15px 0;
    color: var(--text-primary);
}

.article-summary {
    color: var(--text-secondary);
    font-size: 18px;
    line-height: 1.6;
    margin-bottom: 15px;
}

.article-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: 20px;
}

.article-meta span {
    padding: 6px 12px;
    border-radius: 12px;
    border: 1px solid var(--border-color);
    background: rgba(52, 152, 219, 0.08);
}

.article-quote {
    font-size: 20px;
    font-style: italic;
    color: var(--text-accent);
    border-left: 3px solid var(--border-accent);
    padding-left: 20px;
    margin: 0;
}

.article-section {
    margin: 35px 0;
}

.article-section h2 {
    font-size: 24px;
    color: var(--text-primary);
    margin-bottom: 15px;
}

.article-section p,
.article-section ul,
.article-section ol {
    color: var(--text-secondary);
    line-height: 1.7;
}

.article-section ul,
.article-section ol {
    padding-left: 20px;
    margin: 10px 0 0 0;
}

.article-callout {
    border: 1px solid var(--border-accent);
    border-radius: 15px;
    padding: 20px;
    background: rgba(52, 152, 219, 0.08);
    margin-top: 20px;
}

.article-callout h3 {
    margin-top: 0;
    color: var(--text-accent);
}

.article-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 15px;
}

.article-gallery-intro {
    color: var(--text-secondary);
    margin-bottom: 20px;
    font-size: 17px;
}

.photo-collage {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.photo-card {
    margin: 0;
    border-radius: 16px;
    border: 1px solid var(--border-color);
    background: var(--bg-secondary);
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.35);
    overflow: hidden;
}

[data-theme="light"] .photo-card {
    background: #fff;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}

.photo-card img {
    width: auto;
    max-width: 100%;
    min-height: 400px;
    max-height: 400px;
    height: auto;
    display: block;
    margin: 0 auto;
    cursor: zoom-in;
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.photo-card img:hover {
    transform: scale(1.02);
    opacity: 0.9;
}

.photo-card figcaption {
    margin: 0;
    padding: 14px 18px;
    font-size: 15px;
    color: var(--text-secondary);
    border-top: 1px solid var(--border-color);
    word-break: break-word;
    background: var(--bg-secondary);
}

[data-theme="light"] .photo-card figcaption {
    background: #f8f9fa;
    color: #555;
}

/* Lightbox */
/* Image Viewer Backdrop */
.image-viewer-backdrop {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: 9998;
    animation: fadeIn 0.3s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* Inline Image Viewer */
.image-viewer {
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 90%;
    max-width: 1200px;
    max-height: 90vh;
    padding: 1.5rem;
    background: var(--bg-secondary);
    border: 2px solid var(--border-accent);
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
    z-index: 9999;
    animation: slideDown 0.3s ease-out;
    backdrop-filter: blur(10px);
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translate(-50%, -60%);
    }
    to {
        opacity: 1;
        transform: translate(-50%, -50%);
    }
}

.image-viewer-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid var(--border-color);
}

.image-viewer-caption {
    color: var(--text-primary);
    font-size: 1.1rem;
    font-weight: 500;
    flex: 1;
}

.image-viewer-close {
    background: transparent;
    border: none;
    color: var(--text-accent);
    font-size: 32px;
    font-weight: bold;
    cursor: pointer;
    padding: 0;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.2s ease;
}

.image-viewer-close:hover {
    background: var(--bg-accent-hover);
    transform: rotate(90deg);
}

.image-viewer-content {
    display: flex;
    justify-content: center;
    align-items: center;
    background: rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    padding: 1rem;
    max-height: calc(90vh - 120px);
    overflow: auto;
}

.image-viewer-content img {
    max-width: 100%;
    max-height: calc(90vh - 160px);
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.article-placeholder {
    border: 1px dashed var(--border-accent);
    border-radius: 12px;
    padding: 20px;
    text-align: center;
    color: var(--text-secondary);
    background: rgba(52, 152, 219, 0.05);
}

.article-nav {
    display: flex;
    justify-content: flex-start;
}

.article-nav-link {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 20px;
    border-radius: 12px;
    border: 1px solid var(--border-color);
    color: var(--text-accent);
    font-weight: 600;
}

.article-nav-link i {
    font-size: 14px;
}

@media (max-width: 768px) {
    .blog-article {
        padding: 25px;
    }

    .article-hero h1 {
        font-size: 28px;
    }

    .article-meta {
        flex-direction: column;
    }
}
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
    margin: 30px 0;
}

.project-tile {
    background: var(--bg-secondary);
    border-radius: 15px;
    overflow: hidden;
    border: 1px solid var(--border-color);
    cursor: pointer;
    text-decoration: none;
    color: var(--text-secondary);
    transition: background 0.3s ease, border-color 0.3s ease, color 0.3s ease;
}

.project-tile-image {
    width: 100%;
    height: 200px;
    background: var(--gradient-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 48px;
    color: white;
    position: relative;
    overflow: hidden;
}

.project-tile-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.project-tile-content {
    padding: 20px;
}

.project-tile h3 {
    margin: 0 0 10px 0;
    color: var(--text-primary);
    font-size: 20px;
}

.project-tile p {
    margin: 0 0 15px 0;
    color: var(--text-secondary);
    font-size: 15px;
    line-height: 1.4;
}

.project-tile-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.tech-tag {
    background: var(--bg-accent);
    color: var(--text-accent);
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 12px;
    border: 1px solid var(--border-accent);
    transition: background 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}

.project-item {
    background: rgba(15, 20, 25, 0.9);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    padding: 25px;
    margin: 20px 0;
    border-left: 5px solid #3498db;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    color: #ecf0f1;
}

.project-item h3 {
    color: #ecf0f1;
    margin-top: 0;
    font-size: 22px;
    border-left: none;
    padding-left: 0;
}

.project-item ul {
    padding-left: 20px;
}

.project-item li {
    margin: 8px 0;
    line-height: 1.4;
}

/* PDF Embed Styling */
.pdf-container {
    background: rgba(26, 26, 46, 0.8);
    backdrop-filter: blur(10px);
    border: 2px solid rgba(52, 152, 219, 0.3);
    border-radius: 15px;
    padding: 20px;
    margin: 20px 0;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.pdf-embed {
    border: none;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    display: block;
    margin: 0 auto;
}

.pdf-actions {
    display: flex;
    gap: 20px;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
}

.pdf-download-btn, .pdf-view-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    background: linear-gradient(45deg, #3498db, #9b59b6);
    color: white;
    text-decoration: none;
    border-radius: 25px;
    font-weight: bold;
    box-shadow: 0 4px 15px rgba(52, 152, 219, 0.3);
}

.pdf-download-btn:hover, .pdf-view-btn:hover {
    background: linear-gradient(45deg, #2980b9, #8e44ad);
}

.pdf-download-btn i, .pdf-view-btn i {
    font-size: 16px;
}

/* Responsive PDF styling */
@media (max-width: 768px) {
    .pdf-embed {
        height: 600px;
    }
    
    .pdf-actions {
        flex-direction: column;
        gap: 15px;
    }
    
    .pdf-download-btn, .pdf-view-btn {
        width: 100%;
        justify-content: center;
        max-width: 250px;
    }
}

/* Floating Music Widget */
.music-widget {
  position: fixed;
  bottom: 20px;
  left: 20px;
  z-index: 1000;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.music-toggle {
  width: 60px;
  height: 60px;
  background: var(--gradient-primary);
  border-radius: 50%;
  border: none;
  color: white;
  font-size: 24px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(10px);
  transition: all 0.3s ease;
  border: 2px solid rgba(255, 255, 255, 0.1);
}

.music-toggle:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4);
  border-color: rgba(255, 255, 255, 0.2);
}

.music-toggle.active {
  background: var(--gradient-secondary);
}

.music-player {
  position: absolute;
  bottom: 80px;
  left: 0;
  width: 350px;
  height: 152px;
  background: var(--bg-secondary);
  backdrop-filter: blur(20px);
  border-radius: 15px;
  border: 1px solid var(--border-color);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px) scale(0.9);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  overflow: hidden;
}

.music-player.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
}

.spotify-embed {
  width: 100%;
  height: 152px;
  border: none;
  border-radius: 15px;
}

/* Mobile Responsiveness */
@media (max-width: 480px) {
  .music-widget {
    bottom: 15px;
    left: 15px;
  }
  
  .music-toggle {
    width: 50px;
    height: 50px;
    font-size: 20px;
  }
  
  .music-player {
    width: 280px;
    left: 0;
  }
}

@media (max-width: 360px) {
  .music-player {
    width: 250px;
    left: 0;
  }
}
