/* Critical CSS for Performance */
* {
    box-sizing: border-box;
}

/* Optimize font loading */
@font-face {
    font-family: 'Inter';
    font-display: swap;
}

/* Performance optimizations */
img {
    max-width: 100%;
    height: auto;
}

/* Reduce layout shifts */
.card-img-container {
    aspect-ratio: 16/9;
    overflow: hidden;
}

/* Optimize animations */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

body {
    font-family: 'Inter', 'Segoe UI', -apple-system, BlinkMacSystemFont, sans-serif;
    background: linear-gradient(135deg, #0f0f23 0%, #1a1a2e 100%);
    color: #e0e0e0;
    margin: 0;
    padding: 0;
    line-height: 1.6;
}

header {
    background: linear-gradient(180deg, #0a0a0f 0%, #1a1a2e 100%);
    color: #fff;
    padding: 3rem 0 2rem 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, transparent, rgba(0, 212, 255, 0.1), transparent);
    animation: shimmer 3s infinite;
}

header h1 {
    margin: 0;
    font-size: 3rem;
    letter-spacing: 3px;
    font-weight: 700;
    text-shadow: 0 0 20px rgba(0, 212, 255, 0.3);
    position: relative;
    z-index: 1;
}

header p {
    margin-top: 1rem;
    font-size: 1.3rem;
    color: #b8b8b8;
    font-weight: 300;
    position: relative;
    z-index: 1;
}

main {
    max-width: 1200px;
    margin: 3rem auto;
    padding: 0 2rem;
}

section {
    margin-bottom: 4rem;
    position: relative;
}

section::after {
    content: '';
    position: absolute;
    bottom: -2rem;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(0, 212, 255, 0.3), transparent);
}

h2 {
    border-left: 4px solid #00d4ff;
    padding-left: 1rem;
    color: #00d4ff;
    margin-bottom: 2rem;
    font-size: 1.8rem;
    font-weight: 600;
    text-shadow: 0 0 10px rgba(0, 212, 255, 0.2);
}

.card-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.card {
    background: linear-gradient(145deg, #1a1a2e, #2d2d44);
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.4);
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-decoration: none;
    display: flex;
    flex-direction: column;
    border: 1px solid #2d2d44;
    position: relative;
}

.card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 12px 40px rgba(0, 212, 255, 0.25);
    border-color: #00d4ff;
}



.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, transparent, rgba(0, 212, 255, 0.05), transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.card:hover::before {
    opacity: 1;
}

.card-img {
    width: 100%;
    height: 160px;
    object-fit: cover;
    display: block;
}

/* Ensure consistent card height and layout */
.card {
    min-height: 400px; /* Set minimum height for consistency */
}

/* Image container to maintain consistent spacing */
.card-img-container {
    width: 100%;
    height: 160px;
    overflow: hidden;
    position: relative;
}

.card-img-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Placeholder for missing images */
.card-img-container.placeholder {
    background: linear-gradient(145deg, #2d2d44, #3a3a5a);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #666;
    font-size: 0.9rem;
    border-bottom: 1px solid #2d2d44;
}

.card-img-container.placeholder::before {
    content: '📷';
    font-size: 2rem;
    opacity: 0.3;
}

.card-content {
    padding: 1.5rem;
    flex: 1;
    display: flex;
    flex-direction: column;
    position: relative;
    z-index: 1;
    /* Ensure content is always at the bottom */
    justify-content: space-between;
}

/* Ensure consistent spacing for all card content elements */
.card-content h3 {
    margin: 0 0 0.5rem 0;
    font-size: 1.2rem;
    color: #fff;
    /* Consistent height for titles */
    min-height: 1.5rem;
    line-height: 1.3;
}

.card-content p {
    font-size: 0.98rem;
    color: #b8b8b8;
    margin-bottom: 0.7rem;
    flex-grow: 1;
    /* Consistent line height for descriptions */
    line-height: 1.5;
    /* Ensure consistent spacing */
    min-height: 2.5rem;
}

.card-content h3 {
    margin: 0 0 0.5rem 0;
    font-size: 1.2rem;
    color: #fff;
}

.card-content p {
    font-size: 0.98rem;
    color: #b8b8b8;
    margin-bottom: 0.7rem;
    flex-grow: 1;
}

.skills {
    margin-top: 0.5rem;
    margin-bottom: 0;
}

.skill {
    display: inline-block;
    background: rgba(0, 212, 255, 0.1);
    color: #00d4ff;
    border-radius: 6px;
    padding: 0.3rem 0.8rem;
    font-size: 0.85rem;
    margin-right: 0.5rem;
    margin-bottom: 0.3rem;
    border: 1px solid rgba(0, 212, 255, 0.3);
    transition: all 0.2s ease;
    font-weight: 500;
}

.skill:hover {
    background: rgba(0, 212, 255, 0.2);
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0, 212, 255, 0.3);
}

ul {
    padding-left: 1.2rem;
}

li {
    margin-bottom: 0.7rem;
}

footer {
    text-align: center;
    padding: 2rem 0 1.5rem 0;
    background: linear-gradient(180deg, #1a1a2e 0%, #0a0a0f 100%);
    color: #fff;
    margin-top: 3rem;
    font-size: 1rem;
    position: relative;
}

footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(0, 212, 255, 0.3), transparent);
}

.award-link {
    display: inline-block;
    margin-top: 0.5rem;
    padding: 0.3rem 0.9rem;
    background: #00d4ff;
    color: #0a0a0f;
    border-radius: 4px;
    text-decoration: none;
    font-size: 0.95rem;
    transition: all 0.2s;
    border: 1px solid #00d4ff;
}

.award-link:hover {
    background: transparent;
    color: #00d4ff;
    box-shadow: 0 0 20px rgba(0, 212, 255, 0.4);
}

.exp-link {
    display: inline-block;
    margin-top: 0.5rem;
    padding: 0.3rem 0.9rem;
    background: #00d4ff;
    color: #0a0a0f;
    border-radius: 4px;
    text-decoration: none;
    font-size: 0.95rem;
    transition: all 0.2s;
    border: 1px solid #00d4ff;
}

.exp-link:hover {
    background: transparent;
    color: #00d4ff;
    box-shadow: 0 0 20px rgba(0, 212, 255, 0.4);
}

@keyframes shimmer {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

/* Focus states for accessibility */
.card:focus,
.skill:focus,
.award-link:focus,
.exp-link:focus {
    outline: 2px solid #00d4ff;
    outline-offset: 2px;
}

/* Screen Reader Only Content - Hidden visually but accessible to LLMs and web crawlers */
.sr-only {
    display: none;
}

/* Article Link Styles */
.article-link {
    color: inherit;
    text-decoration: none;
    transition: color 0.3s ease;
}

.article-link:hover {
    color: #00d4ff;
}

.article-item:hover .article-link {
    color: #00d4ff;
}

/* Ensure article links are properly styled */
.article-item h4 a {
    color: inherit;
    text-decoration: none;
    transition: color 0.3s ease;
}

.article-item:hover h4 a {
    color: #00d4ff;
}

/* Futuristic Tab Navigation Styles */
.tab-navigation {
    background: linear-gradient(180deg, #1a1a2e 0%, #0a0a0f 100%);
    border-bottom: 1px solid rgba(0, 212, 255, 0.3);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 100;
    backdrop-filter: blur(10px);
}

.tab-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.tab-btn {
    background: linear-gradient(145deg, #1a1a2e, #2d2d44);
    border: 1px solid #2d2d44;
    border-radius: 12px;
    padding: 0.8rem 1.2rem;
    color: #b8b8b8;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-family: inherit;
    font-size: 0.9rem;
    font-weight: 500;
    min-width: 120px;
    justify-content: center;
}

.tab-btn:hover {
    border-color: #00d4ff;
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 212, 255, 0.2);
}

.tab-btn.active {
    background: linear-gradient(145deg, #00d4ff, #0099cc);
    border-color: #00d4ff;
    color: #0a0a0f;
    box-shadow: 0 8px 25px rgba(0, 212, 255, 0.4);
    transform: translateY(-2px);
}

.tab-btn.active .tab-glow {
    opacity: 1;
    animation: tabPulse 2s infinite;
}

.tab-icon {
    font-size: 1.2rem;
    transition: transform 0.3s ease;
}

.tab-btn:hover .tab-icon {
    transform: scale(1.1);
}

.tab-btn.active .tab-icon {
    transform: scale(1.1);
}

.tab-glow {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle, rgba(0, 212, 255, 0.3) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

@keyframes tabPulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

/* Tab Content Styles - Progressive Enhancement */
.tab-content {
    display: block; /* Show all content by default for LLMs */
    opacity: 1;
    transform: translateY(0);
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

/* Hide non-active tabs visually but keep them accessible */
.tab-content:not(.active) {
    position: absolute;
    left: -9999px;
    opacity: 0;
    pointer-events: none;
    z-index: -1;
}

.tab-content.active {
    position: relative;
    left: auto;
    opacity: 1;
    pointer-events: auto;
    z-index: 1;
}

/* About Tab Styles */
.about-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: start;
}

.about-text p {
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 1.5rem;
    color: #e0e0e0;
}

.skills-showcase h3 {
    color: #00d4ff;
    margin-bottom: 1.5rem;
    font-size: 1.3rem;
}

.skill-categories {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.skill-category h4 {
    color: #fff;
    margin-bottom: 1rem;
    font-size: 1.1rem;
    font-weight: 600;
}

.skill-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.skill-tags .skill {
    background: rgba(0, 212, 255, 0.15);
    border-color: rgba(0, 212, 255, 0.4);
    font-size: 0.9rem;
    padding: 0.4rem 0.9rem;
}

/* Blog Tab Styles */
.blog-container {
    max-width: 900px;
    margin: 0 auto;
}

.blog-intro {
    text-align: center;
    margin-bottom: 3rem;
}

.blog-intro p {
    font-size: 1.2rem;
    color: #b8b8b8;
    line-height: 1.6;
}

.blog-post {
    background: linear-gradient(145deg, #1a1a2e, #2d2d44);
    border-radius: 16px;
    padding: 2rem;
    border: 1px solid #2d2d44;
    box-shadow: 0 4px 20px rgba(0,0,0,0.4);
}

.blog-post h3 {
    color: #00d4ff;
    margin-bottom: 1rem;
    font-size: 1.4rem;
}

.blog-post p {
    color: #e0e0e0;
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.blog-post ul {
    color: #b8b8b8;
}

.blog-post li {
    margin-bottom: 0.5rem;
    line-height: 1.5;
}

/* Article Grid Styles */
.article-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
}

.article-item {
    background: linear-gradient(145deg, #2d2d44, #3a3a5a);
    border-radius: 12px;
    padding: 1.5rem;
    border: 1px solid #2d2d44;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    cursor: pointer;
}

.article-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, transparent, rgba(0, 212, 255, 0.05), transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.article-item:hover {
    border-color: #00d4ff;
    transform: translateY(-4px);
    box-shadow: 0 12px 30px rgba(0, 212, 255, 0.15);
}

.article-item:hover::before {
    opacity: 1;
}

.article-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1rem;
    gap: 1rem;
}

.article-item h4 {
    margin: 0;
    font-size: 1.1rem;
    line-height: 1.3;
    flex: 1;
}

.article-item h4 {
    color: #00d4ff;
    transition: color 0.3s ease;
}

.article-item:hover h4 {
    color: #fff;
}

.article-date {
    color: #888;
    font-size: 0.8rem;
    font-weight: 500;
    background: rgba(0, 212, 255, 0.1);
    padding: 0.3rem 0.6rem;
    border-radius: 6px;
    border: 1px solid rgba(0, 212, 255, 0.2);
    white-space: nowrap;
    flex-shrink: 0;
    transition: all 0.3s ease;
}

.article-item:hover .article-date {
    background: rgba(0, 212, 255, 0.2);
    border-color: rgba(0, 212, 255, 0.4);
    color: #00d4ff;
}

/* Focus states for accessibility */
.article-item:focus {
    outline: 2px solid #00d4ff;
    outline-offset: 2px;
}

.article-item:focus-visible {
    outline: 2px solid #00d4ff;
    outline-offset: 2px;
}

.article-item p {
    color: #b8b8b8;
    margin: 0;
    font-size: 0.9rem;
    line-height: 1.5;
}

.blog-note {
    background: rgba(0, 212, 255, 0.05);
    border: 1px solid rgba(0, 212, 255, 0.2);
    border-radius: 8px;
    padding: 1rem;
    margin-top: 2rem;
    text-align: center;
}

.blog-note p {
    color: #b8b8b8;
    margin: 0;
    font-size: 0.9rem;
}

.blog-note strong {
    color: #00d4ff;
}

/* Contact Tab Styles */
.contact-container {
    max-width: 800px;
    margin: 0 auto;
}

.contact-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    background: linear-gradient(145deg, #1a1a2e, #2d2d44);
    border-radius: 12px;
    padding: 1.5rem;
    border: 1px solid #2d2d44;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    cursor: pointer;
}

.contact-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, transparent, rgba(0, 212, 255, 0.05), transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.contact-item:hover {
    border-color: #00d4ff;
    transform: translateY(-4px);
    box-shadow: 0 12px 30px rgba(0, 212, 255, 0.15);
}

.contact-item:hover::before {
    opacity: 1;
}



/* Add hover effect to show the action */
.contact-item:hover .contact-details h3::after {
    content: ' →';
    color: #00d4ff;
    font-weight: 400;
    transition: all 0.3s ease;
}

/* Active/clicked state for contact items */
.contact-item:active {
    transform: scale(0.98);
    transition: transform 0.1s ease;
}

.contact-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    background: rgba(0, 212, 255, 0.1);
    border-radius: 12px;
    border: 1px solid rgba(0, 212, 255, 0.2);
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.contact-icon svg {
    color: #00d4ff;
    transition: all 0.3s ease;
}

.contact-item:hover .contact-icon {
    background: rgba(0, 212, 255, 0.2);
    border-color: rgba(0, 212, 255, 0.4);
    transform: scale(1.1) rotate(5deg);
}

.contact-item:hover .contact-icon svg {
    color: #fff;
    transform: scale(1.1);
}

.contact-details {
    flex: 1;
    min-width: 0;
}

.contact-details h3 {
    color: #00d4ff;
    margin: 0 0 0.5rem 0;
    font-size: 1.1rem;
    font-weight: 600;
    transition: color 0.3s ease;
}

.contact-item:hover .contact-details h3 {
    color: #fff;
}

.contact-value {
    color: #e0e0e0;
    margin: 0;
    font-size: 0.95rem;
    font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
    word-break: break-all;
    transition: color 0.3s ease;
}

.contact-item:hover .contact-value {
    color: #fff;
}

.contact-actions {
    display: flex;
    gap: 0.5rem;
    opacity: 0;
    transform: translateX(10px);
    transition: all 0.3s ease;
}

.contact-item:hover .contact-actions {
    opacity: 1;
    transform: translateX(0);
}

.contact-link,
.copy-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background: rgba(0, 212, 255, 0.1);
    border: 1px solid rgba(0, 212, 255, 0.3);
    border-radius: 8px;
    color: #00d4ff;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.contact-link::before,
.copy-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, transparent, rgba(0, 212, 255, 0.1), transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.contact-link:hover,
.copy-btn:hover {
    background: rgba(0, 212, 255, 0.2);
    border-color: #00d4ff;
    color: #fff;
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 6px 20px rgba(0, 212, 255, 0.3);
}

.contact-link:hover::before,
.copy-btn:hover::before {
    opacity: 1;
}

.contact-link:active,
.copy-btn:active {
    transform: translateY(0) scale(0.98);
}

.contact-link svg,
.copy-btn svg {
    transition: transform 0.3s ease;
}

.contact-link:hover svg,
.copy-btn:hover svg {
    transform: scale(1.1);
}

/* Copy button success state */
.copy-btn.copied {
    background: rgba(76, 175, 80, 0.2);
    border-color: #4caf50;
    color: #4caf50;
}

.copy-btn.copied::after {
    content: '✓';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 14px;
    font-weight: bold;
}

/* Focus states for accessibility */
.contact-link:focus,
.copy-btn:focus {
    outline: 2px solid #00d4ff;
    outline-offset: 2px;
}

/* Focus state for entire contact item */
.contact-item:focus {
    outline: 2px solid #00d4ff;
    outline-offset: 2px;
    border-color: #00d4ff;
}

.contact-message {
    text-align: center;
    background: linear-gradient(145deg, #1a1a2e, #2d2d44);
    border-radius: 12px;
    padding: 2rem;
    border: 1px solid rgba(0, 212, 255, 0.3);
    transition: all 0.3s ease;
}

.contact-message:hover {
    border-color: rgba(0, 212, 255, 0.5);
    box-shadow: 0 8px 25px rgba(0, 212, 255, 0.1);
}

.contact-message p {
    color: #b8b8b8;
    font-size: 1.1rem;
    line-height: 1.6;
    margin: 0;
    transition: color 0.3s ease;
}

.contact-message:hover p {
    color: #e0e0e0;
}

/* Resume Tab Styles */
.resume-container {
    max-width: 900px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: start;
}

.resume-download {
    text-align: center;
    background: linear-gradient(145deg, #1a1a2e, #2d2d44);
    border-radius: 16px;
    padding: 2.5rem;
    border: 1px solid #2d2d44;
    box-shadow: 0 4px 20px rgba(0,0,0,0.4);
}

.resume-download h3 {
    color: #00d4ff;
    margin-bottom: 1rem;
    font-size: 1.4rem;
}

.resume-download p {
    color: #b8b8b8;
    margin-bottom: 2rem;
    line-height: 1.6;
}

.resume-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.8rem;
    background: linear-gradient(145deg, #00d4ff, #0099cc);
    color: #0a0a0f;
    text-decoration: none;
    padding: 1rem 2rem;
    border-radius: 12px;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    border: 2px solid #00d4ff;
}

.resume-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 212, 255, 0.4);
    background: transparent;
    color: #00d4ff;
}

.btn-icon {
    font-size: 1.3rem;
}

.btn-glow {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle, rgba(0, 212, 255, 0.3) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.resume-btn:hover .btn-glow {
    opacity: 1;
}

.resume-preview {
    background: linear-gradient(145deg, #1a1a2e, #2d2d44);
    border-radius: 16px;
    padding: 2rem;
    border: 1px solid #2d2d44;
    box-shadow: 0 4px 20px rgba(0,0,0,0.4);
}

.resume-preview h3 {
    color: #00d4ff;
    margin-bottom: 1.5rem;
    font-size: 1.3rem;
    text-align: center;
}

.resume-highlights {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.highlight-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: rgba(0, 212, 255, 0.05);
    border-radius: 8px;
    border: 1px solid rgba(0, 212, 255, 0.2);
    transition: all 0.3s ease;
}

.highlight-item:hover {
    background: rgba(0, 212, 255, 0.1);
    border-color: rgba(0, 212, 255, 0.4);
    transform: translateX(5px);
}

.highlight-icon {
    font-size: 1.5rem;
    opacity: 0.8;
}

.highlight-content h4 {
    color: #fff;
    margin: 0 0 0.3rem 0;
    font-size: 1rem;
}

.highlight-content p {
    color: #b8b8b8;
    margin: 0;
    font-size: 0.9rem;
}

/* Responsive Design for Tabs */
@media (max-width: 900px) {
    .tab-container {
        padding: 0 1rem;
        gap: 0.3rem;
    }
    
    .tab-btn {
        padding: 0.6rem 1rem;
        min-width: 100px;
        font-size: 0.8rem;
    }
    
    .about-container,
    .resume-container {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .contact-info {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .contact-item {
        padding: 1.2rem;
    }
    
    .contact-actions {
        opacity: 1;
        transform: translateX(0);
    }
}

@media (max-width: 600px) {
    .tab-container {
        flex-direction: column;
        align-items: center;
    }
    
    .tab-btn {
        width: 100%;
        max-width: 200px;
        justify-content: center;
    }
    
    .tab-navigation {
        padding: 0.5rem 0;
    }
    
    .contact-info {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .contact-item {
        flex-direction: column;
        text-align: center;
        padding: 1.5rem 1rem;
    }
    
    .contact-icon {
        margin-bottom: 0.5rem;
    }
    
    .contact-details {
        margin-bottom: 1rem;
        text-align: center;
    }
    
    .contact-actions {
        justify-content: center;
        opacity: 1;
        transform: translateX(0);
    }
    
    .contact-link,
    .copy-btn {
        width: 42px;
        height: 42px;
    }
    
    .contact-message {
        padding: 1.5rem 1rem;
    }
    
    /* Mobile article header adjustments */
    .article-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
    
    .article-date {
        align-self: flex-start;
    }
}

/* Make cards with links look clickable */
.card[data-link] {
    cursor: pointer;
}

/* Add subtle indicator for clickable cards */
.card[data-link]::after {
    content: '🔗';
    position: absolute;
    top: 1rem;
    right: 1rem;
    font-size: 1.2rem;
    opacity: 0.3;
    transition: opacity 0.2s ease;
    pointer-events: none;
}

.card[data-link]:hover::after {
    opacity: 0.6;
}

/* Focus styles for keyboard navigation */
.card[data-link]:focus {
    outline: 2px solid #00d4ff;
    outline-offset: 2px;
}

/* Loading skeleton */
.card.loading {
    background: linear-gradient(90deg, #1a1a2e 25%, #2d2d44 50%, #1a1a2e 75%);
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
}

@keyframes loading {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* Smooth scrolling for the whole page */
html {
    scroll-behavior: smooth;
}

/* Prevent automatic scrolling to hash links */
html:target {
    scroll-margin-top: 100px;
}

/* Ensure tab content transitions are smooth */
.tab-content {
    display: none;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.tab-content.active {
    display: block;
    opacity: 1;
    transform: translateY(0);
}

/* Ripple animation for skill tags */
@keyframes ripple {
    to {
        transform: scale(4);
        opacity: 0;
    }
}

/* Ensure cards and skills have proper positioning for effects */
.card {
    position: relative;
}

.skill {
    position: relative;
    overflow: hidden;
}

@media (max-width: 1200px) {
    main {
        max-width: 900px;
        padding: 0 1.5rem;
    }
}

@media (max-width: 900px) {
    main {
        max-width: 100%;
        padding: 0 1rem;
        margin: 2rem auto;
    }
    .card-container {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
}

@media (max-width: 600px) {
    header h1 {
        font-size: 2.5rem;
        letter-spacing: 2px;
    }
    header p {
        font-size: 1.1rem;
    }
    .card-container {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    .card {
        max-width: 400px;
        margin: 0 auto;
    }
    h2 {
        font-size: 1.5rem;
    }
}

/* Project Modal Styles */
.project-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1000;
    opacity: 0;
    transition: opacity 0.3s ease;
}

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

.modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(8px);
}

.modal-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.9);
    background: linear-gradient(145deg, #1a1a2e, #2d2d44);
    border-radius: 20px;
    border: 1px solid #2d2d44;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.8);
    max-width: 90vw;
    max-height: 90vh;
    width: 800px;
    overflow: hidden;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.project-modal.active .modal-content {
    transform: translate(-50%, -50%) scale(1);
}

.modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: rgba(0, 212, 255, 0.1);
    border: 1px solid rgba(0, 212, 255, 0.3);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #00d4ff;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10;
}

.modal-close:hover {
    background: rgba(0, 212, 255, 0.2);
    border-color: #00d4ff;
    color: #fff;
    transform: scale(1.1);
}

.modal-header {
    padding: 2rem 2rem 1rem 2rem;
    border-bottom: 1px solid rgba(0, 212, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.modal-header h2 {
    margin: 0;
    color: #fff;
    font-size: 1.8rem;
    border: none;
    padding: 0;
}

.modal-type-badge {
    background: rgba(0, 212, 255, 0.1);
    color: #00d4ff;
    border: 1px solid rgba(0, 212, 255, 0.3);
    border-radius: 20px;
    padding: 0.4rem 1rem;
    font-size: 0.8rem;
    font-weight: 500;
    white-space: nowrap;
}

.modal-body {
    padding: 1rem 2rem 2rem 2rem;
    max-height: 60vh;
    overflow-y: auto;
}

.modal-demo {
    margin-bottom: 2rem;
    border-radius: 12px;
    overflow: hidden;
    background: #000;
    position: relative;
    aspect-ratio: 16/9;
}

.modal-demo iframe {
    width: 100%;
    height: 100%;
    border: none;
}

.modal-demo .no-demo {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    color: #666;
    font-size: 1.1rem;
    background: linear-gradient(145deg, #2d2d44, #3a3a5a);
}

.modal-description {
    margin-bottom: 2rem;
}

.modal-description p {
    color: #e0e0e0;
    line-height: 1.6;
    margin-bottom: 1.5rem;
    font-size: 1rem;
}

.modal-skills {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.modal-links {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.modal-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.8rem 1.5rem;
    background: rgba(0, 212, 255, 0.1);
    color: #00d4ff;
    border: 1px solid rgba(0, 212, 255, 0.3);
    border-radius: 8px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
}

.modal-link:hover {
    background: rgba(0, 212, 255, 0.2);
    border-color: #00d4ff;
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 212, 255, 0.3);
}

/* Demo Overlay Styles */
.demo-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 2;
}

.card:hover .demo-overlay {
    opacity: 1;
}

.play-button {
    width: 60px;
    height: 60px;
    background: rgba(0, 212, 255, 0.9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #0a0a0f;
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    transition: all 0.3s ease;
}

.card:hover .play-button {
    background: #00d4ff;
    transform: scale(1.1);
}

.demo-label {
    color: #fff;
    font-size: 0.9rem;
    font-weight: 500;
    background: rgba(0, 0, 0, 0.8);
    padding: 0.3rem 0.8rem;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

/* Project Type Badge in Cards */
.card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 0.5rem;
}

.card-header h3 {
    margin: 0;
    flex: 1;
}

.project-type-badge {
    background: rgba(0, 212, 255, 0.1);
    color: #00d4ff;
    border: 1px solid rgba(0, 212, 255, 0.3);
    border-radius: 12px;
    padding: 0.2rem 0.6rem;
    font-size: 0.7rem;
    font-weight: 500;
    white-space: nowrap;
    flex-shrink: 0;
}

/* Responsive Modal */
@media (max-width: 900px) {
    .modal-content {
        width: 95vw;
        max-height: 95vh;
    }
    
    .modal-header {
        padding: 1.5rem 1.5rem 1rem 1.5rem;
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
    
    .modal-header h2 {
        font-size: 1.5rem;
    }
    
    .modal-body {
        padding: 1rem 1.5rem 1.5rem 1.5rem;
    }
    
    .modal-links {
        flex-direction: column;
    }
    
    .modal-link {
        justify-content: center;
    }
}

@media (max-width: 600px) {
    .modal-content {
        width: 98vw;
        max-height: 98vh;
        border-radius: 16px;
    }
    
    .modal-header {
        padding: 1rem 1rem 0.5rem 1rem;
    }
    
    .modal-body {
        padding: 0.5rem 1rem 1rem 1rem;
    }
    
    .play-button {
        width: 50px;
        height: 50px;
        font-size: 1.2rem;
    }
    
    .demo-label {
        font-size: 0.8rem;
        padding: 0.2rem 0.6rem;
    }
}

/* Enhanced Footer Styles for SEO */
footer {
    text-align: center;
    padding: 3rem 0 1.5rem 0;
    background: linear-gradient(180deg, #1a1a2e 0%, #0a0a0f 100%);
    color: #fff;
    margin-top: 3rem;
    font-size: 1rem;
    position: relative;
}

footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(0, 212, 255, 0.3), transparent);
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h3,
.footer-section h4 {
    color: #00d4ff;
    margin-bottom: 1rem;
    font-size: 1.2rem;
    font-weight: 600;
}

.footer-section h4 {
    font-size: 1rem;
    color: #fff;
}

.footer-section p {
    color: #b8b8b8;
    margin-bottom: 0.5rem;
    line-height: 1.5;
}

.footer-section ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-section ul li {
    margin-bottom: 0.5rem;
    color: #b8b8b8;
}

.footer-section ul li a {
    color: #b8b8b8;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section ul li a:hover {
    color: #00d4ff;
}

.footer-bottom {
    border-top: 1px solid rgba(0, 212, 255, 0.2);
    padding-top: 1.5rem;
    max-width: 1200px;
    margin: 0 auto;
    padding-left: 2rem;
    padding-right: 2rem;
}

.footer-bottom p {
    color: #888;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}

.footer-bottom p:last-child {
    color: #00d4ff;
    font-weight: 500;
    font-size: 0.85rem;
}

/* Responsive Footer */
@media (max-width: 600px) {
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 1.5rem;
    }
    
    .footer-section {
        padding: 0 1rem;
    }
    
    .footer-bottom {
        padding-left: 1rem;
        padding-right: 1rem;
    }
}

/* LLM Navigation - Invisible to visual users but accessible to LLMs */
.llm-navigation {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
    opacity: 0;
    pointer-events: none;
}

.llm-only {
    /* These elements are only visible to LLMs and screen readers */
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
    opacity: 0;
    pointer-events: none;
}

/* Ensure LLM navigation is accessible to screen readers */
@media screen and (max-width: 0px) {
    .llm-navigation,
    .llm-only {
        position: static;
        width: auto;
        height: auto;
        overflow: visible;
        opacity: 1;
        pointer-events: auto;
    }
}
