a {
    text-decoration: none !important;
}

:root {
    --bg-primary: #1a1a1a;
    --bg-secondary: #2a2a2a;
    --bg-card: #2d2d2d;
    --text-primary: #e0e0e0;
    --text-secondary: #a0a0a0;
    --text-muted: #707070;
    --accent: #ffffff;
    --border: #3a3a3a;
    --shadow: rgba(0, 0, 0, 0.3);
}

[data-theme="light"] {
    --bg-primary: #ffffff;
    --bg-secondary: #f5f5f5;
    --bg-card: #ffffff;
    --text-primary: #1a1a1a;
    --text-secondary: #4a4a4a;
    --text-muted: #888888;
    --accent: #000000;
    --border: #e0e0e0;
    --shadow: rgba(0, 0, 0, 0.1);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-primary);
    background-color: var(--bg-primary);
    transition: background-color 0.3s ease, color 0.3s ease;
}

/* Navigation */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
    background: var(--bg-primary);
    border-bottom: 1px solid var(--border);
    z-index: 1000;
    backdrop-filter: blur(10px);
}

.nav-brand {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-primary);
    text-decoration: none;
}

.nav-right {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.nav-right a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.95rem;
    transition: color 0.2s ease;
}

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

.nav-right a.active {
    color: var(--text-primary);
    text-decoration: underline;
}

.theme-toggle {
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    transition: background-color 0.2s ease;
}

.theme-toggle:hover {
    background: var(--bg-secondary);
}

.sun-icon {
    display: none;
}

.moon-icon {
    display: block;
}

[data-theme="light"] .sun-icon {
    display: block;
}

[data-theme="light"] .moon-icon {
    display: none;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 80px 2rem 2rem;
    position: relative;
}

.hero-content {
    text-align: center;
    animation: fadeInUp 0.8s ease;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-avatar {
    width: 300px;
    height: 300px;
    border-radius: 50%;
    margin-bottom: 2rem;
    object-fit: cover;
    border: 4px solid var(--border);
    margin-top: 1rem;
}

.hero-title {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.hero-subtitle {
    font-size: 1.3rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
}

.social-links {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-bottom: 2rem;
}

.social-links a {
    color: var(--text-secondary);
    transition: color 0.2s ease, transform 0.2s ease;
    display: flex;
    align-items: center;
}

.social-links a:hover {
    color: var(--text-primary);
    transform: translateY(-2px);
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

.btn {
    padding: 0.75rem 2rem;
    border-radius: 6px;
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    transition: all 0.2s ease;
    border: 1px solid var(--border);
    color: var(--text-primary);
    background: var(--bg-secondary);
}

.btn:hover {
    background: var(--bg-card);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px var(--shadow);
}

.btn-primary {
    background: var(--accent);
    color: var(--bg-primary);
    border-color: var(--accent);
}

.btn-primary:hover {
    background: var(--accent);
    color: var(--bg-primary);
    border-color: var(--accent);
}

.scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    color: var(--text-muted);
    animation: bounce 2s infinite;
}

@keyframes bounce {

    0%,
    20%,
    50%,
    80%,
    100% {
        transform: translateX(-50%) translateY(0);
    }

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

    60% {
        transform: translateX(-50%) translateY(-5px);
    }
}

/* Blog Section */
.blog {
    padding: 4rem 2rem;
    background: var(--bg-secondary);
}

.container {
    max-width: 900px;
    margin: 0 auto;
}

.post-card {
    background: var(--bg-card);
    border-radius: 8px;
    padding: 2rem;
    margin-bottom: 2rem;
    border: 1px solid var(--border);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    position: relative;
    /* Added for absolute positioning of date */
}

.post-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px var(--shadow);
}

.post-date-box {
    position: absolute;
    top: 2rem;
    right: 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 64px;
    height: 64px;
    border: 1px solid var(--border);
    border-radius: 8px;
    color: var(--text-muted);
    line-height: 1;
    background: var(--bg-secondary);
    /* Optional: distinct background */
}

.date-day {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 2px;
}

.date-month {
    font-size: 0.75rem;
    text-transform: uppercase;
}

.date-year {
    font-size: 0.65rem;
    margin-top: 2px;
}

.post-card-title {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    padding-right: 80px;
    /* Prevent overlap with date box */
}

.post-card-title a {
    color: var(--text-primary);
    text-decoration: none;
    transition: color 0.2s ease;
}

.post-card-title a:hover {
    color: var(--text-secondary);
}

/* Description removed via PHP, style not needed but kept clean */

/* Categories */
.post-categories {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 0.5rem;
}

.post-category {
    font-size: 0.85rem;
    color: var(--text-secondary);
    /* opacity: 0.8; */
}

.about-card {
    background: var(--bg-secondary);
    border: 2px solid var(--border);
}

/* Footer */
.footer {
    text-align: center;
    padding: 3rem 2rem;
    border-top: 1px solid var(--border);
    color: var(--text-muted);
    font-size: 0.9rem;
}

.footer p {
    margin-bottom: 0.5rem;
}

.footer a {
    color: var(--text-secondary);
    text-decoration: none;
}

.footer a:hover {
    text-decoration: underline;
}

/* Scroll to Top */
.scroll-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--bg-card);
    border: 1px solid var(--border);
    color: var(--text-primary);
    cursor: pointer;
    display: none;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 100;
}

.scroll-top:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px var(--shadow);
}

.scroll-top.show {
    display: flex;
}

/* Responsive */
@media (max-width: 768px) {
    .nav {
        padding: 1rem;
    }

    .nav-right {
        gap: 1rem;
    }

    .nav-right a {
        font-size: 0.85rem;
    }

    .hero {
        padding: 100px 1rem 2rem;
    }

    .hero-title {
        font-size: 2rem;
    }

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

    .hero-avatar {
        width: 120px;
        height: 120px;
    }

    .social-links {
        gap: 0.75rem;
    }

    .social-links svg {
        width: 20px;
        height: 20px;
    }

    .hero-buttons {
        flex-direction: column;
        width: 100%;
        max-width: 300px;
    }

    .btn {
        width: 100%;
    }

    .blog {
        padding: 4rem 1rem;
    }

    .post-card {
        padding: 1.5rem;
    }

    .post-card-title {
        font-size: 1.25rem;
    }

    .scroll-top {
        bottom: 1rem;
        right: 1rem;
        width: 45px;
        height: 45px;
    }

    .post-date-box {
        right: 1rem;
        top: 1.5rem;
        width: 50px;
        height: 50px;
    }
    
    .date-day {
        font-size: 0.9rem;
    }

    .post-card-title {
        padding-right: 60px; /* Adjust padding for smaller date box */
    }
}

@media (max-width: 480px) {
    .nav {
        flex-direction: column;
        gap: 0.5rem;
        padding: 0.5rem 1rem;
    }

    .nav-right {
        gap: 1rem;
        flex-wrap: wrap;
        justify-content: center;
        width: 100%;
    }

    .nav-right a {
        font-size: 0.85rem;
        display: inline-block;
    }
    
    .nav-brand {
        font-size: 1.1rem;
    }
}
/* Pocket Page Styles */
.pocket-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1rem;
    margin-top: 1rem;
}

.pocket-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: 8px;
    text-decoration: none !important;
    transition: all 0.2s ease;
}

.pocket-item:hover {
    transform: translateY(-2px);
    border-color: var(--text-secondary);
    box-shadow: 0 4px 12px var(--shadow);
}

.pocket-icon {
    width: 40px;
    height: 40px;
    background: var(--bg-primary);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    flex-shrink: 0;
}

.pocket-item:hover .pocket-icon {
    color: var(--text-primary);
    background: var(--bg-card);
}

.pocket-details {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
    overflow: hidden;
}

.pocket-title {
    color: var(--text-primary);
    font-weight: 600;
    font-size: 0.95rem;
}

.pocket-desc {
    color: var(--text-muted);
    font-size: 0.8rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Shimmer Effect */
@keyframes shimmer {
    0% {
        background-position: -200% 0;
    }
    100% {
        background-position: 200% 0;
    }
}

.shimmer-effect {
    position: relative;
    overflow: hidden;
}

.shimmer-effect::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        rgba(255, 255, 255, 0) 0%,
        rgba(255, 255, 255, 0.1) 50%,
        rgba(255, 255, 255, 0) 100%
    );
    background-size: 200% 100%;
    animation: shimmer 2s infinite linear;
    pointer-events: none;
    display: none; /* Hidden by default, shown on specific elements or hover */
}

/* Apply shimmer to buttons on hover */
.btn:hover, .btn-primary:hover {
    position: relative;
    overflow: hidden;
}

.btn:hover::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        rgba(255, 255, 255, 0) 0%,
        rgba(255, 255, 255, 0.2) 50%,
        rgba(255, 255, 255, 0) 100%
    );
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite linear;
    pointer-events: none;
}

.btn-primary:hover::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* Darker shimmer for light button, Light shimmer for dark button */
    /* Using a mix to ensure visibility on both */
    background: linear-gradient(
        90deg,
        rgba(128, 128, 128, 0) 0%,
        rgba(128, 128, 128, 0.5) 50%,
        rgba(128, 128, 128, 0) 100%
    );
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite linear;
    pointer-events: none;
}

/* Apply shimmer to blog post cards on hover */
.post-card {
    overflow: hidden; /* Needed for shimmer */
}

.post-card:hover::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        rgba(255, 255, 255, 0) 0%,
        rgba(255, 255, 255, 0.03) 50%,
        rgba(255, 255, 255, 0) 100%
    );
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite linear;
    pointer-events: none;
}

/* Apply shimmer to images on load (optional, or just hover) */
.hero-avatar:hover {
    position: relative;
}

.hero-avatar:hover::after {
   /* Image shimmer is tricky with img tag directly, usually needs a wrapper. 
      For now, let's skip direct img tag shimmer unless wrapped. */
}

/* Apply shimmer to pocket items on hover */
.pocket-item:hover {
    position: relative;
    overflow: hidden;
}

.pocket-item:hover::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        rgba(255, 255, 255, 0) 0%,
        rgba(255, 255, 255, 0.05) 50%,
        rgba(255, 255, 255, 0) 100%
    );
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite linear;
    pointer-events: none;
}

/* Disable shimmer for no-shimmer class */
.post-card.no-shimmer::after, .post-card.no-shimmer:hover::after {
    display: none !important;
    content: none !important;
    animation: none !important;
}

/* Teams Page Styles */
.teams-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr); /* 2 columns */
    gap: 3rem; /* Increased gap */
    margin-top: 3rem;
}

/* Media query moved to bottom to ensure overrides work */

.team-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 3rem 2rem; /* More padding */
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.team-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px var(--shadow);
}

.team-image-wrapper {
    width: 350px; /* Much larger image */
    max-width: 100%; /* Prevent overflow on small screens */
    height: auto;
    aspect-ratio: 1/1; /* Maintain square ratio */
    margin: 0 auto 2rem;
    border-radius: 50%;
    overflow: hidden;
    border: 6px solid var(--border); /* Thicker border */
}

.team-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.team-card:hover .team-image {
    transform: scale(1.05);
}

.team-name {
    font-size: 2rem; /* Larger font */
    color: var(--text-primary);
    margin-bottom: 0.5rem;
    font-weight: 700;
}

/* Image Lightbox */
.lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 2000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    cursor: zoom-out;
}

.lightbox.active {
    opacity: 1;
    visibility: visible;
}

.lightbox img {
    max-width: 90%;
    max-height: 90%;
    border-radius: 8px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.5);
    transform: scale(0.9);
    transition: transform 0.3s ease;
}

.lightbox.active img {
    transform: scale(1);
}

.team-image {
    cursor: zoom-in;
}

/* Responsive adjustments for Teams page - moved to end to override */
@media (max-width: 768px) {
    .teams-grid {
        grid-template-columns: 1fr;
    }

    .team-image-wrapper {
        width: 250px; /* Smaller image on mobile */
    }

    .team-card {
        padding: 2rem 1rem; /* Less padding on mobile */
    }
}
