/* Modern CSS Variables */
:root {
    --primary-color: #6366f1;
    --primary-dark: #4f46e5;
    --secondary-color: #8b5cf6;
    --accent-color: #06b6d4;
    --text-primary: #1f2937;
    --text-secondary: #6b7280;
    --text-light: #9ca3af;
    --bg-primary: #ffffff;
    --bg-secondary: #f8fafc;
    --bg-dark: #0f172a;
    --bg-card: #ffffff;
    --border-color: #e5e7eb;
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
    --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
    --gradient-primary: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    --gradient-accent: linear-gradient(135deg, var(--accent-color) 0%, var(--primary-color) 100%);
}

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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: var(--text-primary);
    background-color: var(--bg-primary);
    overflow-x: hidden;
}

html {
    scroll-behavior: smooth;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    line-height: 1.2;
    margin-bottom: 1rem;
}

.text-gradient {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Navigation */
.modern-nav {
    background: rgba(15, 23, 42, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
    padding: 1rem 0;
}

.navbar-brand {
    font-size: 1.5rem;
    font-weight: 700;
}

.brand-highlight {
    color: var(--primary-color);
}

.nav-link {
    font-weight: 500;
    color: rgba(255, 255, 255, 0.8) !important;
    transition: all 0.3s ease;
    position: relative;
    margin: 0 0.5rem;
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary-color) !important;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--gradient-primary);
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 50%, #334155 100%);
    color: white;
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1000 1000"><defs><radialGradient id="a" cx="50%" cy="50%"><stop offset="0%" stop-color="%236366f1" stop-opacity="0.1"/><stop offset="100%" stop-color="%236366f1" stop-opacity="0"/></radialGradient></defs><circle cx="200" cy="200" r="100" fill="url(%23a)"/><circle cx="800" cy="300" r="150" fill="url(%23a)"/><circle cx="400" cy="700" r="120" fill="url(%23a)"/></svg>');
    opacity: 0.5;
}

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

.hero-badge {
    display: inline-flex;
    align-items: center;
    background: rgba(99, 102, 241, 0.1);
    border: 1px solid rgba(99, 102, 241, 0.2);
    color: var(--primary-color);
    padding: 0.5rem 1rem;
    border-radius: 50px;
    font-size: 0.875rem;
    font-weight: 500;
}

.hero-title {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 700;
    margin-bottom: 1.5rem;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: rgba(255, 255, 255, 0.8);
    max-width: 600px;
    line-height: 1.6;
}

.hero-stats {
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
}

.stat-item {
    text-align: center;
}

.stat-number {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-color);
    display: block;
}

.stat-label {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.6);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.hero-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.btn {
    font-weight: 500;
    padding: 0.75rem 2rem;
    border-radius: 50px;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    border: none;
}

.btn-primary {
    background: var(--gradient-primary);
    color: white;
    box-shadow: var(--shadow-lg);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-xl);
    color: white;
}

.btn-outline-light {
    background: transparent;
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.2);
}

.btn-outline-light:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.3);
    color: white;
    transform: translateY(-2px);
}

/* Hero Visual - Code Window */
.hero-visual {
    position: relative;
    z-index: 2;
}

.code-window {
    background: #1e293b;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow-xl);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.window-header {
    background: #334155;
    padding: 1rem;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.window-controls {
    display: flex;
    gap: 0.5rem;
}

.control {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.control.red { background: #ef4444; }
.control.yellow { background: #f59e0b; }
.control.green { background: #10b981; }

.window-title {
    color: rgba(255, 255, 255, 0.8);
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.875rem;
}

.code-content {
    padding: 1.5rem;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.875rem;
    line-height: 1.6;
}

.code-line {
    display: flex;
    align-items: center;
    margin-bottom: 0.5rem;
}

.line-number {
    color: rgba(255, 255, 255, 0.4);
    width: 2rem;
    text-align: right;
    margin-right: 1rem;
    user-select: none;
}

.code-text {
    color: rgba(255, 255, 255, 0.9);
}

.keyword { color: #8b5cf6; }
.string { color: #10b981; }
.function { color: #06b6d4; }
.number { color: #f59e0b; }

/* Scroll Indicator */
.scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
}

.scroll-arrow {
    color: rgba(255, 255, 255, 0.6);
    font-size: 1.5rem;
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
    40% { transform: translateY(-10px); }
    60% { transform: translateY(-5px); }
}

/* About Section */
.about-section {
    background: var(--bg-secondary);
    padding: 5rem 0;
}

.section-header {
    text-align: center;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 1rem;
}

.section-subtitle {
    font-size: 1.125rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
}

.about-content p {
    font-size: 1.125rem;
    color: var(--text-secondary);
    line-height: 1.7;
}

/* Skills Grid */
.skills-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

.skill-category {
    background: var(--bg-card);
    padding: 2rem;
    border-radius: 16px;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

.skill-category:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.skill-title {
    color: var(--text-primary);
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
}

.skill-title i {
    color: var(--primary-color);
}

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

.skill-tag {
    background: rgba(99, 102, 241, 0.1);
    color: var(--primary-color);
    padding: 0.5rem 1rem;
    border-radius: 50px;
    font-size: 0.875rem;
    font-weight: 500;
    border: 1px solid rgba(99, 102, 241, 0.2);
}

/* Quick Links Section */
.quick-links-section {
    background: var(--bg-primary);
    padding: 5rem 0;
}

.quick-link-card {
    background: var(--bg-card);
    padding: 2.5rem 2rem;
    border-radius: 20px;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
    text-align: center;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.quick-link-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-xl);
}

.card-icon {
    width: 80px;
    height: 80px;
    background: var(--gradient-primary);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    font-size: 2rem;
    color: white;
}

.quick-link-card h4 {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 1rem;
}

.quick-link-card p {
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 2rem;
    flex-grow: 1;
}

.card-link {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
}

.card-link:hover {
    color: var(--primary-dark);
    transform: translateX(5px);
}

/* Footer */
.modern-footer {
    background: var(--bg-dark);
    color: white;
    padding: 3rem 0 2rem;
    width: 100%;
    clear: both;
    margin-top: auto;
}

.footer-brand h5 {
    color: white;
    font-weight: 600;
}

.footer-brand p {
    color: rgba(255, 255, 255, 0.7);
}

.social-links {
    display: flex;
    justify-content: flex-end;
    gap: 1rem;
}

.social-link {
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 1.25rem;
}

.social-link:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-3px);
}

.footer-divider {
    border-color: rgba(255, 255, 255, 0.1);
    margin: 2rem 0 1rem;
}

.copyright {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.875rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.125rem;
    }
    
    .hero-stats {
        justify-content: center;
        gap: 1.5rem;
    }
    
    .hero-actions {
        justify-content: center;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .social-links {
        justify-content: center;
        margin-top: 2rem;
    }
    
    .skill-category {
        padding: 1.5rem;
    }
    
    .quick-link-card {
        padding: 2rem 1.5rem;
    }
}

@media (max-width: 576px) {
    .hero-section {
        padding-top: 100px;
    }
    
    .btn {
        padding: 0.75rem 1.5rem;
        font-size: 0.875rem;
    }
    
    .code-window {
        margin-top: 3rem;
    }
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-content > * {
    animation: fadeInUp 0.8s ease forwards;
}

.hero-content > *:nth-child(1) { animation-delay: 0.1s; }
.hero-content > *:nth-child(2) { animation-delay: 0.2s; }
.hero-content > *:nth-child(3) { animation-delay: 0.3s; }
.hero-content > *:nth-child(4) { animation-delay: 0.4s; }
.hero-content > *:nth-child(5) { animation-delay: 0.5s; }

/* Page Hero Section */
.page-hero {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 50%, #334155 100%);
    color: white;
    padding: 120px 0 80px;
    position: relative;
    overflow: hidden;
}

.page-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1000 1000"><defs><radialGradient id="a" cx="50%" cy="50%"><stop offset="0%" stop-color="%236366f1" stop-opacity="0.1"/><stop offset="100%" stop-color="%236366f1" stop-opacity="0"/></radialGradient></defs><circle cx="200" cy="200" r="100" fill="url(%23a)"/><circle cx="800" cy="300" r="150" fill="url(%23a)"/><circle cx="400" cy="700" r="120" fill="url(%23a)"/></svg>');
    opacity: 0.5;
}

.achievement-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    padding: 2rem;
    text-align: center;
    transition: all 0.3s ease;
}

.achievement-card:hover {
    transform: translateY(-10px);
    background: rgba(255, 255, 255, 0.15);
}

.achievement-icon {
    width: 80px;
    height: 80px;
    background: var(--gradient-primary);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    font-size: 2rem;
    color: white;
}

.achievement-rank {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--accent-color);
    margin: 0;
}

.achievement-contest {
    color: rgba(255, 255, 255, 0.8);
    margin: 0;
}

/* Content Section */
.content-section {
    background: var(--bg-secondary);
    width: 100%;
    clear: both;
}

/* Override for specific pages that need white background */
.competitive-programming .content-section,
.problem-setting .content-section,
.career-background .content-section {
    background: white;
}

/* Ensure proper layout for tab content */
.tab-content {
    position: relative;
    width: 100%;
    clear: both;
}

/* Tab Content - Bootstrap Override with stronger rules */
.tab-content {
    position: relative;
}

.tab-content .tab-pane {
    display: none !important;
    transition: opacity 0.3s ease-in-out;
    width: 100%;
}

.tab-content .tab-pane.active {
    display: block !important;
}

.tab-content .tab-pane.show {
    display: block !important;
}

.tab-content .tab-pane.active.show {
    display: block !important;
}

.tab-content .tab-pane.fade {
    opacity: 0;
    transition: opacity 0.15s linear;
}

.tab-content .tab-pane.fade.show {
    opacity: 1;
}

.tab-content .tab-pane.fade.active {
    opacity: 1;
}

/* Ensure inactive tabs are completely hidden */
.tab-content .tab-pane:not(.active):not(.show) {
    display: none !important;
    opacity: 0 !important;
}

/* Modern Tabs - Force active state to persist */
.modern-tabs .nav-pills {
    background: var(--bg-card);
    border-radius: 50px;
    padding: 0.5rem;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-color);
}

.modern-tabs .nav-pills .nav-link {
    border-radius: 50px;
    padding: 1rem 2rem;
    font-weight: 500;
    color: var(--text-primary) !important;
    border: none;
    background: transparent !important;
    transition: all 0.3s ease;
}

.modern-tabs .nav-pills .nav-link.active,
.modern-tabs .nav-pills .nav-link.active:focus,
.modern-tabs .nav-pills .nav-link.active:hover,
.modern-tabs .nav-pills .show > .nav-link,
.modern-tabs .nav-pills .nav-link[aria-selected="true"] {
    background: var(--gradient-primary) !important;
    color: white !important;
    box-shadow: var(--shadow-md) !important;
    border-color: transparent !important;
}

.modern-tabs .nav-pills .nav-link:hover:not(.active):not([aria-selected="true"]) {
    background: rgba(99, 102, 241, 0.1) !important;
    color: var(--primary-color) !important;
}

/* Ensure Bootstrap doesn't override our styles - multiple selectors for maximum specificity */
.nav-pills .nav-link.active,
.nav-pills .show > .nav-link,
.modern-tabs .nav-pills .nav-link.active,
.modern-tabs .nav-pills .show > .nav-link {
    background: var(--gradient-primary) !important;
    color: white !important;
}

/* Force persistence during animations and scroll events */
.modern-tabs .nav-pills .nav-link.active {
    background: var(--gradient-primary) !important;
    color: white !important;
    animation: none !important;
    transition: none !important;
}

/* Contest Table */
.contest-table-wrapper {
    background: var(--bg-card);
    border-radius: 20px;
    padding: 2rem;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border-color);
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.modern-table {
    margin: 0;
    width: 100%;
    min-width: 700px;
}

.modern-table thead th {
    background: var(--bg-secondary);
    border: none;
    padding: 1.5rem 1rem;
    font-weight: 600;
    color: var(--text-primary);
    border-bottom: 2px solid var(--border-color);
    white-space: nowrap;
}

.modern-table tbody td {
    padding: 1.5rem 1rem;
    border: none;
    border-bottom: 1px solid var(--border-color);
    vertical-align: middle;
}

.contest-info strong {
    display: block;
    margin-bottom: 0.25rem;
    line-height: 1.3;
}

.contest-info small {
    font-size: 0.75rem;
    line-height: 1.2;
    color: var(--text-secondary);
}

.modern-table tbody tr:hover {
    background: rgba(99, 102, 241, 0.05);
}

.highlight-row {
    background: rgba(99, 102, 241, 0.02);
}

.rank-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    font-weight: 600;
    color: white;
    background: var(--text-light);
}

.rank-badge.gold {
    background: linear-gradient(135deg, #ffd700 0%, #ffed4e 100%);
    color: #92400e;
}

.rank-badge.silver {
    background: linear-gradient(135deg, #c0c0c0 0%, #e5e7eb 100%);
    color: #374151;
}

.rank-badge.bronze {
    background: linear-gradient(135deg, #cd7f32 0%, #d97706 100%);
    color: white;
}

.contest-info strong {
    color: var(--text-primary);
    font-weight: 600;
}

.position-badge {
    padding: 0.5rem 1rem;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.875rem;
}

.position-badge.top {
    background: rgba(16, 185, 129, 0.1);
    color: #059669;
    border: 1px solid rgba(16, 185, 129, 0.2);
}

.position-badge.good {
    background: rgba(59, 130, 246, 0.1);
    color: #2563eb;
    border: 1px solid rgba(59, 130, 246, 0.2);
}

.position-badge.average {
    background: rgba(245, 158, 11, 0.1);
    color: #d97706;
    border: 1px solid rgba(245, 158, 11, 0.2);
}

.achievement-badge {
    padding: 0.25rem 0.75rem;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 500;
}

.achievement-badge.gold {
    background: rgba(255, 215, 0, 0.1);
    color: #92400e;
    border: 1px solid rgba(255, 215, 0, 0.3);
}

.achievement-badge.silver {
    background: rgba(156, 163, 175, 0.1);
    color: #374151;
    border: 1px solid rgba(156, 163, 175, 0.3);
}

.achievement-badge.bronze {
    background: rgba(205, 127, 50, 0.1);
    color: #92400e;
    border: 1px solid rgba(205, 127, 50, 0.3);
}

.achievement-badge.special {
    background: rgba(139, 92, 246, 0.1);
    color: #7c3aed;
    border: 1px solid rgba(139, 92, 246, 0.3);
}

/* Judge Cards - Fixed Padding */
.judge-card {
    background: var(--bg-card);
    border-radius: 20px;
    padding: 2rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
}

.judge-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.12);
    border-color: rgba(99, 102, 241, 0.3);
}

/* Platform-specific left borders */
.judge-card.codeforces { border-left: 4px solid #1f8dd6; }
.judge-card.codechef { border-left: 4px solid #5b4638; }
.judge-card.hackerrank { border-left: 4px solid #00ea64; }
.judge-card.uva { border-left: 4px solid #003d82; }
.judge-card.lightoj { border-left: 4px solid #ff6b35; }
.judge-card.toph { border-left: 4px solid #27ae60; }

.judge-header {
    display: flex;
    align-items: center;
    margin-bottom: 2rem;
}

.judge-logo {
    width: 60px;
    height: 60px;
    background: var(--gradient-primary);
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 1rem;
    font-size: 1.5rem;
    color: white;
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.judge-card:hover .judge-logo {
    transform: scale(1.1);
    box-shadow: 0 6px 16px rgba(99, 102, 241, 0.4);
}

.judge-info h4 {
    margin: 0 0 0.25rem 0;
    color: var(--text-primary);
    font-weight: 700;
    font-size: 1.25rem;
}

.judge-subtitle {
    margin: 0;
    color: var(--text-secondary);
    font-size: 0.875rem;
    font-weight: 500;
}

.rating-display {
    text-align: center;
    margin-bottom: 0.5rem;
    padding: 1.5rem;
    background: rgba(99, 102, 241, 0.03);
    border-radius: 15px;
    border: 1px solid rgba(99, 102, 241, 0.1);
}

.rating-number {
    font-size: 3rem;
    font-weight: 800;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
    margin-bottom: 0.5rem;
    display: block;
}

.rating-label {
    color: var(--text-secondary);
    font-size: 0.875rem;
    margin-bottom: 1rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.rating-tier {
    padding: 0.5rem 1rem;
    border-radius: 25px;
    font-size: 0.75rem;
    font-weight: 700;
    display: inline-block;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.rating-tier.expert {
    background: rgba(59, 130, 246, 0.1);
    color: #1d4ed8;
    border: 1px solid rgba(59, 130, 246, 0.3);
}

.rating-tier.master {
    background: rgba(245, 158, 11, 0.1);
    color: #b45309;
    border: 1px solid rgba(245, 158, 11, 0.3);
}

.rating-tier.advanced {
    background: rgba(16, 185, 129, 0.1);
    color: #047857;
    border: 1px solid rgba(16, 185, 129, 0.3);
}
    color: #059669;
    border: 1px solid rgba(16, 185, 129, 0.2);
}

.judge-stats {
    background: rgba(248, 250, 252, 0.5);
    border-radius: 12px;
    padding: 1.5rem;
    border: 1px solid rgba(226, 232, 240, 0.8);
    margin-bottom: 1.5rem;
    flex-grow: 1;
}

.stat-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 0;
    border-bottom: 1px solid rgba(226, 232, 240, 0.6);
    transition: all 0.2s ease;
}

.stat-row:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.stat-row:hover {
    background: rgba(99, 102, 241, 0.03);
    margin: 0 -0.75rem;
    padding-left: 0.75rem;
    padding-right: 0.75rem;
    border-radius: 8px;
}

.stat-label {
    color: var(--text-secondary);
    font-size: 0.875rem;
    font-weight: 500;
}

.stat-value {
    color: var(--text-primary);
    font-weight: 600;
    font-size: 0.875rem;
}

.stat-value.highlight {
    color: white;
    background: var(--gradient-primary);
    padding: 0.2rem 0.5rem;
    border-radius: 6px;
    font-size: 0.8rem;
    font-weight: 600;
}

@keyframes subtle-glow {
    0% {
        box-shadow: 0 4px 15px rgba(99, 102, 241, 0.4);
    }
    100% {
        box-shadow: 0 6px 20px rgba(99, 102, 241, 0.6);
    }
}

.best-ranking-row {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.05), rgba(168, 85, 247, 0.05));
    border-radius: 8px;
    padding-left: 0.75rem;
    padding-right: 0.75rem;
    padding-bottom: 0.75rem !important;
    margin: 0.25rem -0.75rem;
    border-left: 3px solid var(--primary-color);
    position: relative;
}

.best-ranking-row:last-child {
    padding-bottom: 0.35rem !important;
    margin-bottom: -0.1rem;
}

.best-ranking-row::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.1), rgba(255, 165, 0, 0.1));
    border-radius: 12px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.best-ranking-row:hover::before {
    opacity: 1;
}

.judge-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 1rem 2rem;
    background: var(--gradient-primary);
    color: white;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.875rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
    position: relative;
    overflow: hidden;
    width: 100%;
    text-align: center;
    margin-top: 3rem;
}
}
}
}

.judge-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.judge-link:hover {
    color: white;
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 8px 20px rgba(99, 102, 241, 0.4);
}

.judge-link:hover::before {
    left: 100%;
}

.judge-link i {
    transition: transform 0.3s ease;
}

.judge-link:hover i {
    transform: translateX(3px);
}
}

/* Responsive Design for Programming Page */
@media (max-width: 768px) {
    .page-hero {
        padding: 100px 0 60px;
    }
    
    .achievement-card {
        margin-top: 2rem;
    }
    
    .modern-tabs .nav-pills {
        flex-direction: column;
        padding: 0.25rem;
    }
    
    .modern-tabs .nav-link {
        margin-bottom: 0.25rem;
        text-align: center;
    }
    
    .contest-table-wrapper {
        padding: 1rem;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
    
    .modern-table {
        min-width: 600px;
    }
    
    .modern-table thead th,
    .modern-table tbody td {
        padding: 1rem 0.75rem;
        font-size: 0.875rem;
    }
    
    .contest-info strong {
        font-size: 0.875rem;
    }
    
    .judge-card {
        margin-bottom: 1.5rem;
    }
    
    .rating-number {
        font-size: 2.5rem;
    }
}

@media (max-width: 576px) {
    .contest-table-wrapper {
        padding: 0.75rem;
    }
    
    .modern-table {
        min-width: 550px;
        font-size: 0.8rem;
    }
    
    .modern-table thead th,
    .modern-table tbody td {
        padding: 0.75rem 0.5rem;
    }
    
    .hero-stats {
        justify-content: center;
        text-align: center;
    }
    
    .stat-item {
        margin-bottom: 1rem;
    }
    
    .contest-info strong {
        font-size: 0.875rem;
    }
    
    .judge-header {
        flex-direction: column;
        text-align: center;
    }
    
    .judge-logo {
        margin-right: 0;
        margin-bottom: 1rem;
    }
}

/* Problem Setting Specific Styles */
.problem-setting-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    padding: 2rem;
    text-align: center;
    transition: all 0.3s ease;
}

.problem-setting-card:hover {
    transform: translateY(-10px);
    background: rgba(255, 255, 255, 0.15);
}

.problem-setting-card .card-icon {
    width: 80px;
    height: 80px;
    background: var(--gradient-primary);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    font-size: 2rem;
    color: white;
}

.problem-setting-card h3 {
    color: white;
    font-weight: 600;
    margin-bottom: 1rem;
}

.card-description {
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 1.5rem;
}

.platforms {
    display: flex;
    gap: 0.5rem;
    justify-content: center;
}

.platform-badge {
    padding: 0.25rem 0.75rem;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 500;
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

/* Contest Organization */
.contest-organization-wrapper {
    background: var(--bg-card);
    border-radius: 20px;
    padding: 2rem;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border-color);
}

.contest-card {
    background: var(--bg-card);
    border-radius: 16px;
    padding: 2rem;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
    height: 100%;
}

.contest-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.contest-card.featured {
    border-left: 4px solid var(--primary-color);
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.05) 0%, var(--bg-card) 100%);
}

.contest-header {
    display: flex;
    align-items: flex-start;
    margin-bottom: 1.5rem;
}

.contest-icon {
    width: 50px;
    height: 50px;
    background: var(--gradient-primary);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 1rem;
    font-size: 1.25rem;
    color: white;
    flex-shrink: 0;
}

.contest-info h4 {
    margin: 0 0 0.5rem 0;
    color: var(--text-primary);
    font-weight: 600;
    font-size: 1.125rem;
    line-height: 1.3;
}

.contest-type {
    margin: 0;
    color: var(--text-secondary);
    font-size: 0.875rem;
}

.contest-details {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.contest-badge {
    padding: 0.25rem 0.75rem;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 500;
}

.contest-badge.regional {
    background: rgba(239, 68, 68, 0.1);
    color: #dc2626;
    border: 1px solid rgba(239, 68, 68, 0.2);
}

.contest-badge.university {
    background: rgba(59, 130, 246, 0.1);
    color: #2563eb;
    border: 1px solid rgba(59, 130, 246, 0.2);
}

.contest-badge.school {
    background: rgba(16, 185, 129, 0.1);
    color: #059669;
    border: 1px solid rgba(16, 185, 129, 0.2);
}

.contest-badge.special {
    background: rgba(236, 72, 153, 0.1);
    color: #db2777;
    border: 1px solid rgba(236, 72, 153, 0.2);
}

.contest-badge.intra {
    background: rgba(245, 158, 11, 0.1);
    color: #d97706;
    border: 1px solid rgba(245, 158, 11, 0.2);
}

.contest-badge.regular {
    background: rgba(139, 92, 246, 0.1);
    color: #7c3aed;
    border: 1px solid rgba(139, 92, 246, 0.2);
}

.contest-badge.year {
    background: rgba(107, 114, 128, 0.1);
    color: #374151;
    border: 1px solid rgba(107, 114, 128, 0.2);
}

.contest-badge.ongoing {
    background: rgba(34, 197, 94, 0.1);
    color: #16a34a;
    border: 1px solid rgba(34, 197, 94, 0.2);
}

/* Platform Filter */
.platform-filter {
    display: flex;
    justify-content: center;
}

.filter-buttons {
    display: flex;
    background: var(--bg-card);
    border-radius: 50px;
    padding: 0.5rem;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-color);
    gap: 0.25rem;
}

.filter-btn {
    padding: 0.75rem 1.5rem;
    border: none;
    background: transparent;
    color: var(--text-secondary);
    border-radius: 50px;
    font-weight: 500;
    transition: all 0.3s ease;
    cursor: pointer;
}

.filter-btn.active {
    background: var(--gradient-primary);
    color: white;
    box-shadow: var(--shadow-md);
}

.filter-btn:hover:not(.active) {
    background: rgba(99, 102, 241, 0.1);
    color: var(--primary-color);
}

/* Problems Grid */
.problems-grid {
    background: var(--bg-card);
    border-radius: 20px;
    padding: 2rem;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border-color);
}

.problem-card {
    background: var(--bg-card);
    border-radius: 16px;
    padding: 1.5rem;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.problem-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}

.problem-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.problem-number {
    width: 40px;
    height: 40px;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 600;
    font-size: 0.875rem;
}

.platform-badge.devskill {
    background: rgba(34, 197, 94, 0.1);
    color: #16a34a;
    border: 1px solid rgba(34, 197, 94, 0.2);
    padding: 0.25rem 0.75rem;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 500;
}

.platform-badge.toph {
    background: rgba(59, 130, 246, 0.1);
    color: #2563eb;
    border: 1px solid rgba(59, 130, 246, 0.2);
    padding: 0.25rem 0.75rem;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 500;
}

.problem-title {
    margin-bottom: 1rem;
    flex-grow: 1;
}

.problem-title a {
    color: var(--text-primary);
    text-decoration: none;
    font-weight: 600;
    font-size: 1.125rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
}

.problem-title a:hover {
    color: var(--primary-color);
}

.problem-title a i {
    font-size: 0.875rem;
    opacity: 0.7;
}

.problem-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: auto;
}

.tag {
    padding: 0.25rem 0.75rem;
    background: rgba(99, 102, 241, 0.1);
    color: var(--primary-color);
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 500;
    border: 1px solid rgba(99, 102, 241, 0.2);
}

/* Filter Animation */
.problem-item {
    transition: all 0.3s ease;
}

.problem-item.hidden {
    opacity: 0;
    transform: scale(0.8);
    pointer-events: none;
}

/* Responsive Design for Problem Setting Page */
@media (max-width: 768px) {
    .contest-organization-wrapper,
    .problems-grid {
        padding: 1rem;
    }
    
    .contest-card {
        padding: 1.5rem;
        margin-bottom: 1rem;
    }
    
    .contest-header {
        flex-direction: column;
        text-align: center;
    }
    
    .contest-icon {
        margin-right: 0;
        margin-bottom: 1rem;
    }
    
    .filter-buttons {
        flex-direction: column;
        width: 100%;
    }
    
    .filter-btn {
        text-align: center;
        margin-bottom: 0.25rem;
    }
    
    .problem-card {
        padding: 1rem;
    }
    
    .problem-header {
        flex-direction: column;
        gap: 1rem;
        align-items: flex-start;
    }
    
    .platforms {
        flex-direction: column;
        align-items: center;
    }
}

@media (max-width: 576px) {
    .hero-stats {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
    
    .contest-details {
        justify-content: center;
    }
    
    .problem-tags {
        justify-content: center;
    }
}

/* Career Page Specific Styles */
.career-timeline-preview {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    padding: 2rem;
}

.timeline-item {
    display: flex;
    align-items: center;
    margin-bottom: 2rem;
    position: relative;
}

.timeline-item:last-child {
    margin-bottom: 0;
}

.timeline-item::after {
    content: '';
    position: absolute;
    left: 15px;
    top: 40px;
    width: 2px;
    height: calc(100% + 1rem);
    background: rgba(255, 255, 255, 0.2);
}

.timeline-item:last-child::after {
    display: none;
}

.timeline-dot {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    border: 3px solid rgba(255, 255, 255, 0.5);
    margin-right: 1rem;
    flex-shrink: 0;
    position: relative;
    z-index: 2;
}

.timeline-item.current .timeline-dot {
    background: var(--primary-color);
    border-color: white;
    box-shadow: 0 0 20px rgba(99, 102, 241, 0.5);
}

.timeline-content h4 {
    color: white;
    font-weight: 600;
    margin-bottom: 0.25rem;
    font-size: 1rem;
}

.timeline-content p {
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 0.25rem;
    font-size: 0.875rem;
}

.timeline-date {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.75rem;
}

/* Experience Timeline */
.experience-timeline {
    position: relative;
}

.experience-card {
    background: var(--bg-card);
    border-radius: 20px;
    padding: 2.5rem;
    margin-bottom: 2rem;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
    position: relative;
}

.experience-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-xl);
}

.experience-card.current-job {
    border-left: 4px solid var(--primary-color);
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.05) 0%, var(--bg-card) 100%);
}

.experience-header {
    display: flex;
    align-items: flex-start;
    margin-bottom: 2rem;
    gap: 1.5rem;
}

.company-logo {
    width: 80px;
    height: 80px;
    background: var(--bg-secondary);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    flex-shrink: 0;
    border: 1px solid var(--border-color);
}

.logo-img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.experience-info {
    flex-grow: 1;
}

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

.company-name {
    margin-bottom: 0.75rem;
}

.company-name a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    font-size: 1.125rem;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
}

.company-name a:hover {
    color: var(--primary-dark);
}

.job-duration {
    color: var(--text-secondary);
    font-size: 0.875rem;
    display: flex;
    align-items: center;
}

.job-status {
    padding: 0.5rem 1rem;
    border-radius: 50px;
    font-size: 0.875rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    white-space: nowrap;
}

.job-status.current {
    background: rgba(34, 197, 94, 0.1);
    color: #16a34a;
    border: 1px solid rgba(34, 197, 94, 0.2);
}

.job-status.previous {
    background: rgba(107, 114, 128, 0.1);
    color: #374151;
    border: 1px solid rgba(107, 114, 128, 0.2);
}

.job-description {
    margin-top: 1.5rem;
}

.description-text {
    color: var(--text-secondary);
    font-size: 1.125rem;
    line-height: 1.6;
    margin-bottom: 2rem;
}

.job-highlights {
    margin-bottom: 2rem;
}

.highlight-item {
    display: flex;
    align-items: center;
    color: var(--text-secondary);
    margin-bottom: 0.75rem;
    font-size: 0.875rem;
}

.highlight-item i {
    color: var(--primary-color);
}

.responsibilities {
    margin-bottom: 2rem;
}

.responsibilities .section-subtitle {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 1rem;
}

.responsibility-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.responsibility-item {
    display: flex;
    align-items: flex-start;
    color: var(--text-secondary);
    font-size: 0.875rem;
    line-height: 1.5;
}

.responsibility-item i {
    color: var(--primary-color);
    margin-top: 0.125rem;
    flex-shrink: 0;
}

.tech-stack {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.tech-tag {
    padding: 0.5rem 1rem;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 500;
    border: 1px solid;
    transition: all 0.3s ease;
}

.tech-tag.aws {
    background: rgba(255, 153, 0, 0.1);
    color: #ff9900;
    border-color: rgba(255, 153, 0, 0.2);
}

.tech-tag.java {
    background: rgba(237, 117, 36, 0.1);
    color: #ed7524;
    border-color: rgba(237, 117, 36, 0.2);
}

.tech-tag.spring {
    background: rgba(109, 179, 63, 0.1);
    color: #6db33f;
    border-color: rgba(109, 179, 63, 0.2);
}

.tech-tag.microservices {
    background: rgba(99, 102, 241, 0.1);
    color: var(--primary-color);
    border-color: rgba(99, 102, 241, 0.2);
}

.tech-tag.kafka {
    background: rgba(35, 31, 32, 0.1);
    color: #231f20;
    border-color: rgba(35, 31, 32, 0.2);
}

.tech-tag.ignite {
    background: rgba(220, 53, 69, 0.1);
    color: #dc3545;
    border-color: rgba(220, 53, 69, 0.2);
}

.tech-tag.python {
    background: rgba(52, 144, 220, 0.1);
    color: #3490dc;
    border-color: rgba(52, 144, 220, 0.2);
}

.tech-tag.kotlin {
    background: rgba(124, 58, 237, 0.1);
    color: #7c3aed;
    border-color: rgba(124, 58, 237, 0.2);
}

.tech-tag.optimization {
    background: rgba(245, 158, 11, 0.1);
    color: #d97706;
    border-color: rgba(245, 158, 11, 0.2);
}

.tech-tag.experiments {
    background: rgba(139, 92, 246, 0.1);
    color: #8b5cf6;
    border-color: rgba(139, 92, 246, 0.2);
}

.tech-tag.payments {
    background: rgba(34, 197, 94, 0.1);
    color: #16a34a;
    border-color: rgba(34, 197, 94, 0.2);
}

.tech-tag.bigdata {
    background: rgba(139, 92, 246, 0.1);
    color: #8b5cf6;
    border-color: rgba(139, 92, 246, 0.2);
}

/* Education Card */
.education-card {
    background: var(--bg-card);
    border-radius: 20px;
    padding: 2.5rem;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

.education-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-xl);
}

.education-header {
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;
}

.university-logo {
    width: 80px;
    height: 80px;
    background: var(--bg-secondary);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    flex-shrink: 0;
    border: 1px solid var(--border-color);
}

.education-info {
    flex-grow: 1;
}

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

.university-name {
    margin-bottom: 0.75rem;
}

.university-name a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    font-size: 1.125rem;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
}

.university-name a:hover {
    color: var(--primary-dark);
}

.education-duration {
    color: var(--text-secondary);
    font-size: 0.875rem;
    display: flex;
    align-items: center;
}

.education-status {
    padding: 0.5rem 1rem;
    border-radius: 50px;
    font-size: 0.875rem;
    font-weight: 500;
    background: rgba(34, 197, 94, 0.1);
    color: #16a34a;
    border: 1px solid rgba(34, 197, 94, 0.2);
    display: flex;
    align-items: center;
    white-space: nowrap;
}

/* Skills Section */
.skills-section {
    background: var(--bg-card);
    border-radius: 20px;
    padding: 2rem;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border-color);
}

.skill-category-card {
    background: var(--bg-secondary);
    border-radius: 16px;
    padding: 2rem;
    height: 100%;
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

.skill-category-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

.skill-category-header {
    display: flex;
    align-items: center;
    margin-bottom: 1.5rem;
}

.skill-category-header i {
    color: var(--primary-color);
    font-size: 1.5rem;
}

.skill-category-header h4 {
    color: var(--text-primary);
    font-weight: 600;
    margin: 0;
}

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

.skill-tag {
    padding: 0.5rem 1rem;
    border-radius: 50px;
    font-size: 0.875rem;
    font-weight: 500;
    border: 1px solid;
    transition: all 0.3s ease;
}

.skill-tag.expert {
    background: rgba(34, 197, 94, 0.1);
    color: #16a34a;
    border-color: rgba(34, 197, 94, 0.2);
}

.skill-tag.advanced {
    background: rgba(59, 130, 246, 0.1);
    color: #2563eb;
    border-color: rgba(59, 130, 246, 0.2);
}

.skill-tag.intermediate {
    background: rgba(245, 158, 11, 0.1);
    color: #d97706;
    border-color: rgba(245, 158, 11, 0.2);
}

/* Projects Grid */
.projects-grid {
    background: var(--bg-card);
    border-radius: 20px;
    padding: 2rem;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border-color);
}

.project-card {
    background: var(--bg-secondary);
    border-radius: 16px;
    padding: 2rem;
    height: 100%;
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
}

.project-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.project-card.featured {
    border-left: 4px solid var(--primary-color);
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.05) 0%, var(--bg-secondary) 100%);
}

.project-header {
    display: flex;
    align-items: flex-start;
    margin-bottom: 1.5rem;
    gap: 1rem;
}

.project-icon {
    width: 50px;
    height: 50px;
    background: var(--gradient-primary);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    color: white;
    flex-shrink: 0;
}

.project-info {
    flex-grow: 1;
}

.project-title {
    color: var(--text-primary);
    font-weight: 600;
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
}

.project-collaboration {
    color: var(--text-secondary);
    font-size: 0.875rem;
    display: flex;
    align-items: center;
}

.project-type {
    color: var(--text-secondary);
    font-size: 0.875rem;
}

.project-description {
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 1.5rem;
    flex-grow: 1;
}

.project-features {
    margin-bottom: 1.5rem;
}

.feature-item {
    display: flex;
    align-items: flex-start;
    color: var(--text-secondary);
    margin-bottom: 0.75rem;
    font-size: 0.875rem;
    line-height: 1.5;
}

.feature-item i {
    color: var(--primary-color);
    margin-top: 0.125rem;
    flex-shrink: 0;
}

.project-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: auto;
}

.project-tech .tech-tag {
    background: rgba(99, 102, 241, 0.1);
    color: var(--primary-color);
    border-color: rgba(99, 102, 241, 0.2);
}

/* Responsive Design for Career Page */
@media (max-width: 768px) {
    .experience-header,
    .education-header,
    .project-header {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }
    
    .company-logo,
    .university-logo {
        align-self: center;
    }
    
    .job-status,
    .education-status {
        align-self: center;
        margin-top: 1rem;
    }
    
    .experience-card,
    .education-card,
    .project-card {
        padding: 1.5rem;
    }
    
    .skills-section,
    .projects-grid {
        padding: 1rem;
    }
    
    .skill-category-card {
        padding: 1.5rem;
        margin-bottom: 1rem;
    }
    
    .tech-stack,
    .skill-tags-grid,
    .project-tech {
        justify-content: center;
    }
}

@media (max-width: 576px) {
    .career-timeline-preview {
        padding: 1.5rem;
    }
    
    .timeline-item {
        flex-direction: column;
        text-align: center;
        margin-bottom: 1.5rem;
    }
    
    .timeline-item::after {
        display: none;
    }
    
    .timeline-dot {
        margin-right: 0;
        margin-bottom: 0.5rem;
    }
    
    .job-title,
    .degree-title {
        font-size: 1.25rem;
    }
    
    .project-features {
        text-align: left;
    }
}

/* Tools Page Specific Styles */
.tool-preview-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    padding: 2rem;
    text-align: center;
    transition: all 0.3s ease;
}

.tool-preview-card:hover {
    transform: translateY(-10px);
    background: rgba(255, 255, 255, 0.15);
}

.tool-icon {
    width: 80px;
    height: 80px;
    background: var(--gradient-primary);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    font-size: 2rem;
    color: white;
}

.tool-description {
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 1.5rem;
}

.tool-features {
    display: flex;
    gap: 0.5rem;
    justify-content: center;
    flex-wrap: wrap;
}

.feature-badge {
    padding: 0.25rem 0.75rem;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 500;
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.tool-container {
    background: var(--bg-card);
    border-radius: 20px;
    padding: 2.5rem;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border-color);
}

.tool-header {
    margin-bottom: 2rem;
}

.tool-title {
    color: var(--text-primary);
    font-weight: 600;
    font-size: 1.75rem;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
}

.tool-title i {
    color: var(--primary-color);
}

.tool-interface {
    background: var(--bg-secondary);
    border-radius: 16px;
    padding: 2rem;
    border: 1px solid var(--border-color);
}

.control-panel {
    background: var(--bg-card);
    border-radius: 12px;
    padding: 1.5rem;
    height: fit-content;
    border: 1px solid var(--border-color);
}

.control-title {
    color: var(--text-primary);
    font-weight: 600;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
}

.control-title i {
    color: var(--primary-color);
}

.output-panel {
    background: var(--bg-card);
    border-radius: 12px;
    padding: 1.5rem;
    border: 1px solid var(--border-color);
}

.output-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.output-title {
    color: var(--text-primary);
    font-weight: 600;
    margin: 0;
    display: flex;
    align-items: center;
}

.output-title i {
    color: var(--primary-color);
}

.modern-select,
.modern-textarea {
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 0.75rem;
    background: var(--bg-card);
    color: var(--text-primary);
    transition: all 0.3s ease;
}

.modern-select:focus,
.modern-textarea:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(99, 102, 241, 0.25);
    outline: none;
}

.modern-textarea {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.875rem;
    resize: vertical;
    min-height: 400px;
}

.range-controls .form-group {
    margin-bottom: 1rem;
}

.button-group {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

/* Tutorials Page Specific Styles */
.tutorial-preview-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    padding: 2rem;
    text-align: center;
    transition: all 0.3s ease;
}

.tutorial-preview-card:hover {
    transform: translateY(-10px);
    background: rgba(255, 255, 255, 0.15);
}

.tutorial-icon {
    width: 80px;
    height: 80px;
    background: var(--gradient-primary);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    font-size: 2rem;
    color: white;
}

.tutorial-description {
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 1.5rem;
}

.tutorial-topics {
    display: flex;
    gap: 0.5rem;
    justify-content: center;
    flex-wrap: wrap;
}

.topic-badge {
    padding: 0.25rem 0.75rem;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 500;
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.tutorials-grid {
    background: var(--bg-card);
    border-radius: 20px;
    padding: 2rem;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border-color);
}

.tutorial-card {
    background: var(--bg-secondary);
    border-radius: 16px;
    padding: 2rem;
    height: 100%;
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
}

.tutorial-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.tutorial-card.featured {
    border-left: 4px solid var(--primary-color);
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.05) 0%, var(--bg-secondary) 100%);
}

.tutorial-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.tutorial-category {
    color: var(--primary-color);
    font-weight: 500;
    font-size: 0.875rem;
    display: flex;
    align-items: center;
}

.difficulty-badge {
    padding: 0.25rem 0.75rem;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 500;
}

.difficulty-badge.advanced {
    background: rgba(245, 158, 11, 0.1);
    color: #d97706;
    border: 1px solid rgba(245, 158, 11, 0.2);
}

.difficulty-badge.expert {
    background: rgba(239, 68, 68, 0.1);
    color: #dc2626;
    border: 1px solid rgba(239, 68, 68, 0.2);
}

.tutorial-content {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.tutorial-title {
    margin-bottom: 1rem;
}

.tutorial-title a {
    color: var(--text-primary);
    text-decoration: none;
    font-weight: 600;
    font-size: 1.25rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: all 0.3s ease;
}

.tutorial-title a:hover {
    color: var(--primary-color);
}

.tutorial-title a i {
    font-size: 1rem;
    opacity: 0.7;
}

.tutorial-excerpt {
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 1.5rem;
    flex-grow: 1;
}

.tutorial-meta {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.meta-item {
    display: flex;
    align-items: center;
    color: var(--text-secondary);
    font-size: 0.875rem;
}

.meta-item i {
    color: var(--primary-color);
}

.tutorial-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: auto;
}

.tutorial-tags .tag {
    padding: 0.25rem 0.75rem;
    background: rgba(99, 102, 241, 0.1);
    color: var(--primary-color);
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 500;
    border: 1px solid rgba(99, 102, 241, 0.2);
}

/* Coming Soon Section */
.coming-soon-section {
    background: var(--bg-card);
    border-radius: 20px;
    padding: 2rem;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border-color);
}

.coming-soon-card {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.05) 0%, var(--bg-secondary) 100%);
    border-radius: 16px;
    padding: 3rem 2rem;
    text-align: center;
    border: 1px solid rgba(99, 102, 241, 0.1);
}

.coming-soon-icon {
    width: 80px;
    height: 80px;
    background: var(--gradient-primary);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    font-size: 2rem;
    color: white;
}

.coming-soon-content h4 {
    color: var(--text-primary);
    font-weight: 600;
    margin-bottom: 1rem;
}

.coming-soon-content p {
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 2rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.upcoming-topics {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    justify-content: center;
}

.upcoming-tag {
    padding: 0.5rem 1rem;
    background: rgba(139, 92, 246, 0.1);
    color: #8b5cf6;
    border-radius: 50px;
    font-size: 0.875rem;
    font-weight: 500;
    border: 1px solid rgba(139, 92, 246, 0.2);
}

/* Responsive Design for Tools and Tutorials */
@media (max-width: 768px) {
    .tool-container,
    .tutorials-grid,
    .coming-soon-section {
        padding: 1.5rem;
    }
    
    .tool-interface {
        padding: 1rem;
    }
    
    .control-panel,
    .output-panel {
        padding: 1rem;
        margin-bottom: 1rem;
    }
    
    .output-header {
        flex-direction: column;
        gap: 1rem;
        align-items: stretch;
    }
    
    .tutorial-card {
        padding: 1.5rem;
        margin-bottom: 1rem;
    }
    
    .tutorial-header {
        flex-direction: column;
        gap: 1rem;
        align-items: flex-start;
    }
    
    .tutorial-meta {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .coming-soon-card {
        padding: 2rem 1rem;
    }
    
    .tool-features,
    .tutorial-topics,
    .upcoming-topics {
        justify-content: center;
    }
}

@media (max-width: 576px) {
    .hero-stats {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
    
    .button-group {
        flex-direction: column;
    }
    
    .tutorial-tags,
    .upcoming-topics {
        justify-content: center;
    }
    
    .modern-textarea {
        min-height: 300px;
    }
}

/* Smooth scrolling for anchor links */
@media (prefers-reduced-motion: no-preference) {
    html {
        scroll-behavior: smooth;
    }
}
