/* Modern Portfolio CSS - Inspired by clean, professional design */

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

:root {
    /* Dark Mode Colors (Default) */
    --bg-primary: #0a0a0f;
    --bg-secondary: #111118;
    --bg-tertiary: #1a1a24;
    --bg-card: #1e1e2e;
    --bg-hover: #252538;
    
    --text-primary: #ffffff;
    --text-secondary: #b4b4c7;
    --text-muted: #8b8ba7;
    --text-accent: #64ffda;
    
    --accent-primary: #64ffda;
    --accent-secondary: #7c3aed;
    --accent-gradient: linear-gradient(135deg, #64ffda 0%, #7c3aed 100%);
    
    --border-color: #2a2a3a;
    --border-hover: #3a3a4a;
    
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.15);
    --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.2);
    --shadow-xl: 0 16px 48px rgba(0, 0, 0, 0.3);
    
    /* Typography - Responsive sizes */
    --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-mono: 'JetBrains Mono', 'SF Mono', 'Monaco', monospace;
    
    --text-xs: 0.75rem;
    --text-sm: 0.875rem;
    --text-base: 1rem;
    --text-lg: 1.125rem;
    --text-xl: 1.25rem;
    --text-2xl: 1.5rem;
    --text-3xl: 1.875rem;
    --text-4xl: 2.25rem;
    --text-5xl: 3rem;
    
    /* Spacing */
    --space-1: 0.25rem;
    --space-2: 0.5rem;
    --space-3: 0.75rem;
    --space-4: 1rem;
    --space-5: 1.25rem;
    --space-6: 1.5rem;
    --space-8: 2rem;
    --space-10: 2.5rem;
    --space-12: 3rem;
    --space-16: 4rem;
    --space-20: 5rem;
    --space-24: 6rem;
    
    /* Responsive spacing */
    --container-padding: var(--space-6);
    
    /* Border Radius */
    --radius-sm: 0.25rem;
    --radius-md: 0.375rem;
    --radius-lg: 0.5rem;
    --radius-xl: 0.75rem;
    --radius-2xl: 1rem;
    
    /* Transitions */
    --transition-fast: 0.15s ease-out;
    --transition-base: 0.25s ease-out;
    --transition-slow: 0.4s ease-out;
    
    /* Spacing */
    --space-1: 0.25rem;
    --space-2: 0.5rem;
    --space-3: 0.75rem;
    --space-4: 1rem;
    --space-6: 1.5rem;
    --space-8: 2rem;
    --space-12: 3rem;
    --space-16: 4rem;
    --space-20: 5rem;
    --space-24: 6rem;
    
    /* Border Radius */
    --radius-sm: 0.375rem;
    --radius-md: 0.5rem;
    --radius-lg: 0.75rem;
    --radius-xl: 1rem;
    --radius-2xl: 1.5rem;
    
    /* Transitions */
    --transition-fast: 0.15s ease-out;
    --transition-base: 0.25s ease-out;
    --transition-slow: 0.4s ease-out;
    
    /* Layout */
    --nav-height: 80px;
    --container-max: 1200px;
}

/* Light Mode */
[data-theme="light"] {
    --bg-primary: #ffffff;
    --bg-secondary: #f8fafc;
    --bg-tertiary: #f1f5f9;
    --bg-card: #ffffff;
    --bg-hover: #f1f5f9;
    
    --text-primary: #1e293b;
    --text-secondary: #475569;
    --text-muted: #64748b;
    --text-accent: #0066cc;
    
    --accent-primary: #0066cc;
    --accent-secondary: #7c3aed;
    --accent-gradient: linear-gradient(135deg, #0066cc 0%, #7c3aed 100%);
    
    --border-color: #e2e8f0;
    --border-hover: #cbd5e1;
    
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.08);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.12);
    --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.15);
    --shadow-xl: 0 16px 48px rgba(0, 0, 0, 0.2);
}

/* Base Styles */
html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-primary);
    background-color: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    transition: background-color var(--transition-base), color var(--transition-base);
}

/* Container */
.container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 var(--space-8);
}

/* Section Spacing */
section {
    padding: var(--space-24) 0;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.2;
    color: var(--text-primary);
}

h1 { font-size: var(--text-5xl); }
h2 { font-size: var(--text-4xl); }
h3 { font-size: var(--text-3xl); }
h4 { font-size: var(--text-2xl); }
h5 { font-size: var(--text-xl); }
h6 { font-size: var(--text-lg); }

p {
    color: var(--text-secondary);
    margin-bottom: var(--space-4);
}

a {
    color: var(--accent-primary);
    text-decoration: none;
    transition: color var(--transition-fast);
}

a:hover {
    color: var(--accent-secondary);
}

/* Modern Card Styles */
.card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-xl);
    padding: var(--space-8);
    box-shadow: var(--shadow-md);
    transition: all var(--transition-base);
}

.card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: var(--border-hover);
}

/* Button Styles */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: var(--space-3) var(--space-6);
    border-radius: var(--radius-lg);
    font-weight: 600;
    font-size: var(--text-sm);
    text-decoration: none;
    transition: all var(--transition-fast);
    cursor: pointer;
    border: none;
    gap: var(--space-2);
}

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

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

.btn-outline {
    background: transparent;
    color: var(--accent-primary);
    border: 2px solid var(--accent-primary);
}

.btn-outline:hover {
    background: var(--accent-primary);
    color: white;
    transform: translateY(-2px);
}

/* Section Headers */
.section-header {
    text-align: center;
    margin-bottom: var(--space-16);
}

.section-title {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: var(--space-4);
}

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

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(10, 10, 15, 0.95);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-color);
    transition: all var(--transition-base);
}

[data-theme="light"] .navbar {
    background: rgba(255, 255, 255, 0.95);
}

/* .nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: var(--nav-height);
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 var(--space-8);
} */
 .nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: var(--nav-height);
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 var(--container-padding);
}

.nav-logo {
    font-size: var(--text-2xl);
    font-weight: 800;
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    flex-shrink: 0;
    min-width: fit-content;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: var(--space-6);
    list-style: none;
    flex-grow: 1;
    justify-content: center;
    margin: 0 var(--space-6);
}

.nav-link {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    padding: var(--space-2) var(--space-4);
    border-radius: var(--radius-lg);
    font-size: var(--text-sm);
    font-weight: 500;
    color: var(--text-secondary);
    transition: all var(--transition-fast);
    white-space: nowrap;
    flex-shrink: 0;
}

.nav-controls {
    display: flex;
    align-items: center;
    gap: var(--space-4);
    flex-shrink: 0;
    min-width: fit-content;
}

.nav-link {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    padding: var(--space-2) var(--space-4);
    border-radius: var(--radius-lg);
    font-size: var(--text-sm);
    font-weight: 500;
    color: var(--text-secondary);
    transition: all var(--transition-fast);
}

.nav-link:hover,
.nav-link.active {
    color: var(--accent-primary);
    background: var(--bg-hover);
}

.resume-link {
    background: var(--accent-gradient) !important;
    color: white !important;
    margin-left: var(--space-2);
    font-weight: 600;
    flex-shrink: 0;
}

.resume-link:hover {
    background: var(--accent-primary) !important;
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.resume-link i {
    margin-right: var(--space-1);
    font-size: var(--text-sm);
}

/* Resume link responsive adjustments */
@media (max-width: 1199px) and (min-width: 1024px) {
    .resume-link {
        margin-left: var(--space-2);
        padding: var(--space-2) var(--space-3);
        font-size: 0.8rem;
    }
    
    .resume-link i {
        font-size: 0.8rem;
        margin-right: 4px;
    }
}

@media (max-width: 1023px) {
    .resume-link {
        margin-left: var(--space-1);
        padding: var(--space-1) var(--space-2);
        font-size: 0.75rem;
    }
    
    .resume-link i {
        font-size: 0.7rem;
        margin-right: 2px;
    }
}

.nav-controls {
    display: flex;
    align-items: center;
    gap: var(--space-4);
}

.theme-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: var(--radius-lg);
    background: var(--bg-hover);
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    cursor: pointer;
    transition: all var(--transition-fast);
}

.theme-toggle:hover {
    background: var(--bg-tertiary);
    color: var(--accent-primary);
    transform: scale(1.05);
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 4px;
    cursor: pointer;
    padding: var(--space-2);
}

.bar {
    width: 24px;
    height: 2px;
    background: var(--text-primary);
    border-radius: 2px;
    transition: all var(--transition-fast);
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding-top: var(--nav-height);
    background: linear-gradient(135deg, var(--bg-primary) 0%, var(--bg-secondary) 100%);
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 30% 20%, rgba(100, 255, 218, 0.1) 0%, transparent 50%),
                radial-gradient(circle at 70% 80%, rgba(124, 58, 237, 0.1) 0%, transparent 50%);
    pointer-events: none;
}

.hero-container {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 var(--space-8);
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: left;
}

.hero-greeting {
    font-family: var(--font-mono);
    font-size: var(--text-lg);
    color: var(--accent-primary);
    margin-bottom: var(--space-6);
    font-weight: 400;
}

.hero-name {
    font-size: clamp(var(--text-3xl), 6vw, 3.5rem);
    font-weight: 800;
    margin-bottom: var(--space-4);
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1.1;
}

.hero-title {
    font-size: clamp(var(--text-2xl), 4vw, 2.5rem);
    font-weight: 700;
    color: var(--text-secondary);
    margin-bottom: var(--space-8);
    line-height: 1.2;
}

.hero-description {
    font-size: var(--text-lg);
    color: var(--text-muted);
    line-height: 1.6;
    margin-bottom: var(--space-12);
    max-width: 600px;
}

.hero-cta {
    display: flex;
    gap: var(--space-4);
    flex-wrap: wrap;
}

/* About Section */
.about {
    background: var(--bg-secondary);
}

.about-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: var(--space-16);
    align-items: center;
}

.about-text {
    background: var(--bg-card);
    padding: var(--space-8);
    border-radius: var(--radius-2xl);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-md);
}

.about-paragraphs p {
    font-size: var(--text-lg);
    line-height: 1.7;
    margin-bottom: var(--space-6);
}

.tech-list {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-4);
    margin-top: var(--space-8);
}

.tech-list ul {
    list-style: none;
    padding: 0;
}

.tech-list li {
    position: relative;
    padding: var(--space-2) 0;
    padding-left: var(--space-6);
    color: var(--text-secondary);
    font-size: var(--text-sm);
    font-family: var(--font-mono);
}

.tech-list li:before {
    content: "▸";
    position: absolute;
    left: 0;
    color: var(--accent-primary);
    font-size: var(--text-sm);
}

.about-image {
    display: flex;
    justify-content: center;
}

.image-wrapper {
    position: relative;
    width: 300px;
    height: 300px;
    border-radius: var(--radius-2xl);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    transition: all var(--transition-base);
}

.image-wrapper:hover {
    transform: scale(1.05);
    box-shadow: var(--shadow-xl);
}

.about-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(100%);
    transition: filter var(--transition-base);
}

.image-wrapper:hover .about-img {
    filter: grayscale(0%);
}

.image-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--accent-gradient);
    opacity: 0.3;
    transition: opacity var(--transition-base);
}

.image-wrapper:hover .image-overlay {
    opacity: 0;
}

/* Experience Section */
.experience-list {
    display: flex;
    flex-direction: column;
    gap: var(--space-12);
}

.experience-item {
    background: var(--bg-card);
    padding: var(--space-8);
    border-radius: var(--radius-2xl);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-md);
    transition: all var(--transition-base);
}

.experience-item:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: var(--accent-primary);
}

.experience-title {
    font-size: var(--text-xl);
    margin-bottom: var(--space-3);
    color: var(--text-primary);
}

.experience-company {
    color: var(--accent-primary);
    font-weight: 600;
}

.experience-date {
    font-family: var(--font-mono);
    font-size: var(--text-sm);
    color: var(--text-muted);
    margin-bottom: var(--space-2);
}

.experience-location {
    font-size: var(--text-sm);
    color: var(--text-muted);
    margin-bottom: var(--space-6);
}

.experience-details {
    list-style: none;
    padding: 0;
}

.experience-details li {
    position: relative;
    padding-left: var(--space-6);
    margin-bottom: var(--space-4);
    color: var(--text-secondary);
    line-height: 1.6;
}

.experience-details li:before {
    content: "▸";
    position: absolute;
    left: 0;
    color: var(--accent-primary);
    font-size: var(--text-sm);
}

/* Problem Summary Styles */
.problem-summary {
    background: linear-gradient(135deg, var(--bg-hover) 0%, var(--bg-tertiary) 100%);
    border: 1px solid var(--border-color);
    border-left: 4px solid var(--accent-primary);
    border-radius: var(--radius-lg);
    padding: var(--space-4) var(--space-6);
    margin-bottom: var(--space-6);
    position: relative;
    overflow: hidden;
}

.problem-summary::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 60px;
    height: 60px;
    background: radial-gradient(circle, rgba(100, 255, 218, 0.1) 0%, transparent 70%);
    border-radius: 50%;
    transform: translate(20px, -20px);
}

.problem-summary h4 {
    color: var(--accent-primary);
    font-size: var(--text-base);
    font-weight: 700;
    margin-bottom: var(--space-3);
    display: flex;
    align-items: center;
    gap: var(--space-2);
}

.problem-summary h4::before {
    content: "💡";
    font-size: var(--text-sm);
}

.problem-summary p {
    color: var(--text-secondary);
    font-size: var(--text-sm);
    line-height: 1.6;
    margin: 0;
    font-style: italic;
    position: relative;
    z-index: 1;
}

/* Hover effect for problem summary */
.experience-item:hover .problem-summary {
    background: linear-gradient(135deg, var(--bg-tertiary) 0%, var(--bg-hover) 100%);
    border-left-color: var(--accent-secondary);
    transform: translateX(4px);
    transition: all var(--transition-base);
}

/* Experience Technology Bubbles */
.experience-tech {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-2);
    margin-bottom: var(--space-6);
    padding: var(--space-3) 0;
}

.tech-bubble {
    background: var(--bg-tertiary);
    color: var(--text-secondary);
    padding: var(--space-1) var(--space-3);
    border-radius: var(--radius-xl);
    font-family: var(--font-mono);
    font-size: var(--text-xs);
    font-weight: 500;
    border: 1px solid var(--border-color);
    transition: all var(--transition-fast);
    white-space: nowrap;
}

.tech-bubble:hover {
    background: var(--accent-primary);
    color: white;
    border-color: var(--accent-primary);
    transform: translateY(-2px);
    box-shadow: var(--shadow-sm);
}

/* Responsive adjustments for problem summary */
@media (max-width: 768px) {
    .problem-summary {
        padding: var(--space-3) var(--space-4);
        margin-bottom: var(--space-4);
    }
    
    .problem-summary h4 {
        font-size: var(--text-sm);
    }
    
    .problem-summary p {
        font-size: var(--text-xs);
    }
    
    .experience-tech {
        gap: var(--space-1);
        margin-bottom: var(--space-4);
    }
    
    .tech-bubble {
        font-size: 0.65rem;
        padding: 2px var(--space-2);
    }
}

/* Education Section */
.education {
    background: var(--bg-tertiary);
}

/* Problem summary styles also apply to education section if needed */
.education-item .problem-summary {
    background: linear-gradient(135deg, var(--bg-hover) 0%, var(--bg-tertiary) 100%);
    border-left-color: var(--accent-secondary);
}

.education-item:hover .problem-summary {
    background: linear-gradient(135deg, var(--bg-tertiary) 0%, var(--bg-hover) 100%);
    border-left-color: var(--accent-primary);
}

.education-list {
    display: flex;
    flex-direction: column;
    gap: var(--space-8);
}

.education-item {
    background: var(--bg-card);
    padding: var(--space-8);
    border-radius: var(--radius-2xl);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-md);
    transition: all var(--transition-base);
}

.education-item:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: var(--accent-primary);
}

.education-degree {
    font-size: var(--text-xl);
    margin-bottom: var(--space-3);
    color: var(--text-primary);
}

.education-school {
    color: var(--accent-primary);
    font-size: var(--text-lg);
    font-weight: 600;
    margin-bottom: var(--space-2);
}

.education-date {
    font-family: var(--font-mono);
    font-size: var(--text-sm);
    color: var(--text-muted);
    margin-bottom: var(--space-6);
}

.education-details {
    color: var(--text-secondary);
    line-height: 1.6;
}

.coursework-section {
    margin-top: var(--space-6);
}

.coursework-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--space-4);
    margin-top: var(--space-4);
}

.semester {
    background: var(--bg-hover);
    padding: var(--space-4);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-color);
}

.semester h4 {
    color: var(--accent-primary);
    font-family: var(--font-mono);
    font-size: var(--text-sm);
    margin-bottom: var(--space-3);
}

.semester ul {
    list-style: none;
    padding: 0;
}

.semester li {
    padding: var(--space-1) 0;
    font-size: var(--text-sm);
    color: var(--text-secondary);
}

.achievement-list {
    list-style: none;
    padding: 0;
    margin: var(--space-4) 0;
}

.achievement-list li {
    position: relative;
    padding-left: var(--space-6);
    margin-bottom: var(--space-2);
    color: var(--text-secondary);
    font-size: var(--text-sm);
}

.achievement-list li:before {
    content: "▸";
    position: absolute;
    left: 0;
    color: var(--accent-primary);
    font-size: var(--text-sm);
}

/* View More Button Styles */
.view-more-container {
    text-align: center;
    margin-top: var(--space-8);
}

.view-more-btn {
    display: inline-flex;
    align-items: center;
    gap: var(--space-3);
    padding: var(--space-4) var(--space-8);
    background: var(--bg-card);
    border: 2px solid var(--accent-primary);
    border-radius: var(--radius-xl);
    color: var(--accent-primary);
    font-weight: 600;
    font-size: var(--text-base);
    cursor: pointer;
    transition: all var(--transition-base);
    box-shadow: var(--shadow-sm);
}

.view-more-btn:hover {
    background: var(--accent-primary);
    color: white;
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.view-more-btn .btn-icon {
    transition: transform var(--transition-base);
}

.view-more-btn.expanded .btn-icon {
    transform: rotate(180deg);
}

.experience-hidden,
.education-hidden {
    margin-top: var(--space-8);
    animation: slideInUp 0.5s ease-out;
}

/* Certifications Section */
.certifications {
    background: var(--bg-secondary);
}

.certifications-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: var(--space-8);
    margin-bottom: var(--space-16);
}

.certification-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-2xl);
    overflow: hidden;
    transition: all var(--transition-base);
    box-shadow: var(--shadow-md);
    display: flex;
    flex-direction: column;
}

.certification-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-xl);
    border-color: var(--accent-primary);
}

.microsoft-cert {
    border-left: 4px solid #0078d4;
}

.udemy-cert {
    border-left: 4px solid #a435f0;
}

.cert-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--space-6);
    background: var(--bg-hover);
    border-bottom: 1px solid var(--border-color);
}

.cert-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    border-radius: var(--radius-lg);
    font-size: var(--text-2xl);
}

.microsoft-cert .cert-logo {
    background: linear-gradient(135deg, #0078d4, #005a9e);
    color: white;
}

.udemy-cert .cert-logo {
    background: linear-gradient(135deg, #a435f0, #8710d8);
    color: white;
}

.cert-status {
    padding: var(--space-1) var(--space-3);
    border-radius: var(--radius-md);
    font-size: var(--text-xs);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.cert-status.active {
    background: linear-gradient(135deg, #10b981, #059669);
    color: white;
}

.cert-status.completed {
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
    color: white;
}

.cert-body {
    padding: var(--space-6);
    flex-grow: 1;
}

.cert-title {
    font-size: var(--text-xl);
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: var(--space-2);
    line-height: 1.3;
}

.cert-issuer {
    color: var(--accent-primary);
    font-weight: 600;
    font-size: var(--text-lg);
    margin-bottom: var(--space-4);
}

.cert-details {
    margin-bottom: var(--space-4);
}

.cert-date,
.cert-id {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    margin-bottom: var(--space-2);
    font-size: var(--text-sm);
    color: var(--text-secondary);
}

.cert-date i,
.cert-id i {
    color: var(--accent-primary);
    width: 16px;
}

.cert-description {
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: var(--space-4);
    font-size: var(--text-sm);
}

.cert-skills {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-2);
    margin-bottom: var(--space-4);
}

.skill-tag {
    background: var(--bg-tertiary);
    color: var(--text-secondary);
    padding: var(--space-1) var(--space-2);
    border-radius: var(--radius-sm);
    font-family: var(--font-mono);
    font-size: var(--text-xs);
    border: 1px solid var(--border-color);
    transition: all var(--transition-fast);
}

.skill-tag:hover {
    background: var(--accent-primary);
    color: white;
    border-color: var(--accent-primary);
}

.cert-footer {
    padding: var(--space-4) var(--space-6);
    background: var(--bg-hover);
    border-top: 1px solid var(--border-color);
}

.cert-link {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    color: var(--accent-primary);
    font-weight: 600;
    font-size: var(--text-sm);
    transition: all var(--transition-fast);
}

.cert-link:hover {
    color: var(--accent-secondary);
    transform: translateX(4px);
}

.cert-summary {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-2xl);
    padding: var(--space-8);
    box-shadow: var(--shadow-md);
}

.cert-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: var(--space-6);
    margin-bottom: var(--space-8);
    padding-bottom: var(--space-8);
    border-bottom: 1px solid var(--border-color);
}

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

.stat-number {
    font-size: var(--text-3xl);
    font-weight: 800;
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: var(--space-2);
}

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

.cert-commitment h3 {
    color: var(--text-primary);
    font-size: var(--text-xl);
    margin-bottom: var(--space-4);
    text-align: center;
}

.cert-commitment p {
    color: var(--text-secondary);
    line-height: 1.6;
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
}

/* Responsive Certifications */
@media (max-width: 768px) {
    .certifications-grid {
        grid-template-columns: 1fr;
        gap: var(--space-6);
    }
    
    .certification-card {
        margin: 0 var(--space-2);
    }
    
    .cert-stats {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--space-4);
    }
    
    .cert-body,
    .cert-header,
    .cert-footer {
        padding: var(--space-4);
    }
    
    .cert-summary {
        padding: var(--space-6);
    }
}

@media (max-width: 480px) {
    .certifications-grid {
        grid-template-columns: 1fr;
    }
    
    .cert-stats {
        grid-template-columns: 1fr;
        gap: var(--space-3);
    }
    
    .cert-skills {
        justify-content: center;
    }
    
    .cert-title {
        font-size: var(--text-lg);
    }
}

/* Projects Section */
.projects {
    background: var(--bg-secondary);
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: var(--space-8);
    margin-bottom: var(--space-16);
}

.project-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-2xl);
    overflow: hidden;
    transition: all var(--transition-base);
    box-shadow: var(--shadow-md);
    display: flex;
    flex-direction: column;
    height: 100%;
    position: relative;
}

.project-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: var(--shadow-xl);
    border-color: var(--accent-primary);
}

.project-card.featured {
    border: 2px solid var(--accent-primary);
    background: linear-gradient(135deg, var(--bg-card) 0%, var(--bg-hover) 100%);
}

.project-card.featured::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--accent-gradient);
}

.project-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--space-6);
    background: var(--bg-hover);
    border-bottom: 1px solid var(--border-color);
}

.project-card-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    background: var(--accent-gradient);
    border-radius: var(--radius-xl);
    color: white;
    font-size: var(--text-2xl);
    box-shadow: var(--shadow-sm);
}

.project-card-links {
    display: flex;
    gap: var(--space-3);
}

.project-card-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: var(--radius-lg);
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    font-size: var(--text-lg);
    transition: all var(--transition-fast);
}

.project-card-links a:hover {
    background: var(--accent-primary);
    color: white;
    transform: translateY(-2px);
    box-shadow: var(--shadow-sm);
}

.project-card-body {
    padding: var(--space-6);
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.project-badge {
    display: inline-block;
    background: var(--accent-gradient);
    color: white;
    padding: var(--space-1) var(--space-3);
    border-radius: var(--radius-md);
    font-size: var(--text-xs);
    font-weight: 600;
    margin-bottom: var(--space-3);
    width: fit-content;
    box-shadow: var(--shadow-sm);
}

.project-card-title {
    font-size: var(--text-xl);
    font-weight: 700;
    margin-bottom: var(--space-3);
    flex-shrink: 0;
}

.project-card-title a {
    color: var(--text-primary);
    transition: color var(--transition-fast);
}

.project-card-title a:hover {
    color: var(--accent-primary);
}

.project-card-description {
    color: var(--text-secondary);
    line-height: 1.6;
    font-size: var(--text-sm);
    flex-grow: 1;
    margin-bottom: var(--space-4);
}

.project-card-footer {
    padding: var(--space-4) var(--space-6);
    background: var(--bg-hover);
    border-top: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: var(--space-3);
}

.project-tech-logos {
    display: flex;
    gap: var(--space-2);
    flex-wrap: wrap;
}

.project-tech-logos img {
    width: 24px;
    height: 24px;
    transition: all var(--transition-fast);
    border-radius: var(--radius-sm);
}

.project-tech-logos img:hover {
    transform: scale(1.2);
    filter: drop-shadow(0 2px 4px rgba(100, 255, 218, 0.3));
}

.project-stats {
    display: flex;
    gap: var(--space-3);
    color: var(--text-muted);
    font-family: var(--font-mono);
    font-size: var(--text-xs);
    font-weight: 500;
}

.project-stats span {
    display: flex;
    align-items: center;
    gap: var(--space-1);
    padding: var(--space-1) var(--space-2);
    background: var(--bg-tertiary);
    border-radius: var(--radius-sm);
    border: 1px solid var(--border-color);
}

.projects-archive {
    text-align: center;
    margin-top: var(--space-16);
}

.archive-link {
    display: inline-flex;
    align-items: center;
    gap: var(--space-3);
    padding: var(--space-4) var(--space-8);
    background: var(--bg-card);
    border: 2px solid var(--accent-primary);
    border-radius: var(--radius-xl);
    color: var(--accent-primary);
    font-weight: 600;
    font-size: var(--text-lg);
    transition: all var(--transition-base);
    box-shadow: var(--shadow-sm);
}

.archive-link:hover {
    background: var(--accent-primary);
    color: white;
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

/* Enhanced Animations */
@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(60px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-60px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeInScale {
    from {
        opacity: 0;
        transform: scale(0.8);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes typewriterSlide {
    0% {
        opacity: 0;
        transform: translateX(-30px);
        filter: blur(4px);
    }
    50% {
        opacity: 0.7;
        transform: translateX(0);
        filter: blur(2px);
    }
    100% {
        opacity: 1;
        transform: translateX(0);
        filter: blur(0);
    }
}

@keyframes nameReveal {
    0% {
        opacity: 0;
        transform: translateY(30px) scale(0.9);
        filter: blur(8px);
    }
    30% {
        opacity: 0.3;
        transform: translateY(15px) scale(0.95);
        filter: blur(4px);
    }
    60% {
        opacity: 0.7;
        transform: translateY(5px) scale(0.98);
        filter: blur(2px);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
        filter: blur(0);
    }
}

@keyframes titleGlow {
    0% {
        opacity: 0;
        transform: translateY(20px);
        text-shadow: 0 0 0 rgba(100, 255, 218, 0);
    }
    50% {
        opacity: 0.8;
        transform: translateY(10px);
        text-shadow: 0 0 20px rgba(100, 255, 218, 0.3);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
        text-shadow: 0 0 30px rgba(100, 255, 218, 0.2);
    }
}

@keyframes descriptionFloat {
    0% {
        opacity: 0;
        transform: translateY(40px) rotateX(20deg);
    }
    60% {
        opacity: 0.8;
        transform: translateY(10px) rotateX(5deg);
    }
    100% {
        opacity: 1;
        transform: translateY(0) rotateX(0deg);
    }
}

@keyframes buttonBounce {
    0% {
        opacity: 0;
        transform: translateY(30px) scale(0.8);
    }
    50% {
        opacity: 0.8;
        transform: translateY(-5px) scale(1.05);
    }
    70% {
        opacity: 0.9;
        transform: translateY(2px) scale(0.98);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* Hero Animations with Enhanced Effects */
.hero-greeting {
    animation: typewriterSlide 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94) 0.3s both;
}

.hero-name {
    animation: nameReveal 1.2s cubic-bezier(0.25, 0.46, 0.45, 0.94) 0.6s both;
}

.hero-title {
    animation: titleGlow 1s cubic-bezier(0.25, 0.46, 0.45, 0.94) 1s both;
}

.hero-description {
    animation: descriptionFloat 0.9s cubic-bezier(0.25, 0.46, 0.45, 0.94) 1.3s both;
}

.hero-cta {
    animation: buttonBounce 0.8s cubic-bezier(0.34, 1.56, 0.64, 1) 1.6s both;
}

/* Add subtle continuous animations for engagement */
.hero-name {
    animation: nameReveal 1.2s cubic-bezier(0.25, 0.46, 0.45, 0.94) 0.6s both,
               subtlePulse 4s ease-in-out 3s infinite;
}

@keyframes subtlePulse {
    0%, 100% {
        text-shadow: 0 0 30px rgba(100, 255, 218, 0.2);
    }
    50% {
        text-shadow: 0 0 40px rgba(100, 255, 218, 0.4);
    }
}

/* Project Cards Staggered Animation */
.project-card:nth-child(1) { animation: slideInUp 0.6s ease-out 0.1s both; }
.project-card:nth-child(2) { animation: slideInUp 0.6s ease-out 0.2s both; }
.project-card:nth-child(3) { animation: slideInUp 0.6s ease-out 0.3s both; }
.project-card:nth-child(4) { animation: slideInUp 0.6s ease-out 0.4s both; }
.project-card:nth-child(5) { animation: slideInUp 0.6s ease-out 0.5s both; }
.project-card:nth-child(6) { animation: slideInUp 0.6s ease-out 0.6s both; }
.project-card:nth-child(7) { animation: slideInUp 0.6s ease-out 0.7s both; }

/* Responsive Design */

/* Large Desktop (1440px+) - Keep original styling */
@media (min-width: 1440px) {
    :root {
        --text-base: 1.1rem;
        --text-lg: 1.3rem;
        --text-xl: 1.5rem;
        --text-2xl: 1.8rem;
        --text-3xl: 2.2rem;
        --container-padding: var(--space-8);
    }
    
    .nav-logo {
        font-size: var(--text-2xl);
    }
    
    .nav-menu {
        gap: var(--space-8);
        margin: 0 var(--space-8);
    }
    
    .nav-controls {
        gap: var(--space-4);
    }
}

/* Standard Desktop (1200px - 1439px) - Keep good spacing */
@media (max-width: 1439px) and (min-width: 1200px) {
    :root {
        --container-padding: var(--space-6);
    }
    
    .nav-logo {
        font-size: var(--text-2xl);
    }
    
    .nav-menu {
        gap: var(--space-6);
        margin: 0 var(--space-6);
    }
    
    .nav-controls {
        gap: var(--space-4);
    }
}

/* Laptop (1024px - 1199px) - Dell XPS 13 optimized with smaller fonts */
@media (max-width: 1199px) and (min-width: 1024px) {
    :root {
        --text-xs: 0.65rem;
        --text-sm: 0.75rem;
        --text-base: 0.8rem;
        --text-lg: 0.9rem;
        --text-xl: 1rem;
        --text-2xl: 1.2rem;
        --text-3xl: 1.4rem;
        --text-4xl: 1.7rem;
        --text-5xl: 2.2rem;
        --container-padding: var(--space-2);
    }
    
    .nav-container {
        padding: 0 var(--space-2);
    }
    
    .nav-logo {
        font-size: var(--text-base);
    }
    
    .nav-menu {
        gap: var(--space-1);
        margin: 0 var(--space-1);
    }
    
    .nav-link {
        padding: var(--space-1);
        font-size: 0.65rem;
    }
    
    .nav-controls {
        gap: var(--space-1);
    }
    
    .resume-link {
        margin-left: 2px;
        padding: var(--space-1);
        font-size: 0.6rem;
    }
    
    .resume-link i {
        font-size: 0.6rem;
        margin-right: 1px;
    }
    
    .theme-toggle {
        width: 32px;
        height: 32px;
        font-size: 0.8rem;
    }
    
    /* Adjust hero section for laptops */
    .hero-name {
        font-size: var(--text-4xl);
    }
    
    .hero-title {
        font-size: var(--text-2xl);
    }
    
    .hero-description {
        font-size: var(--text-base);
    }
    
    /* Adjust section titles */
    .section-title {
        font-size: var(--text-3xl);
    }
    
    /* Adjust card content */
    .experience-title,
    .education-degree,
    .project-card-title,
    .achievement-title {
        font-size: var(--text-xl);
    }
    
    .experience-date,
    .education-date,
    .achievement-event {
        font-size: var(--text-sm);
    }
    
    .experience-details li,
    .education-details p,
    .project-card-description,
    .achievement-description {
        font-size: var(--text-sm);
    }
}

/* Extra compact for very tight screens */
@media (max-width: 1280px) and (min-width: 1024px) {
    .nav-link .nav-text {
        font-size: 0.6rem;
    }
    
    .resume-link .nav-text {
        font-size: 0.55rem;
    }
}

/* Small Laptop (768px - 1023px) */
@media (max-width: 1023px) and (min-width: 768px) {
    :root {
        --container-padding: var(--space-4);
        --text-base: 0.9rem;
        --text-lg: 1rem;
        --text-xl: 1.1rem;
        --text-2xl: 1.3rem;
        --text-3xl: 1.6rem;
    }
    
    .nav-container {
        padding: 0 var(--space-4);
    }
    
    .nav-menu {
        gap: var(--space-3);
        margin: 0 var(--space-3);
    }
    
    .nav-link {
        padding: var(--space-1) var(--space-2);
        font-size: 0.8rem;
    }
    
    .nav-logo {
        font-size: var(--text-lg);
    }
    
    .resume-link {
        margin-left: var(--space-1);
        padding: var(--space-1) var(--space-2);
        font-size: 0.75rem;
    }
    
    .hero-name {
        font-size: var(--text-4xl);
    }
    
    .hero-title {
        font-size: var(--text-2xl);
    }
    
    .projects-grid {
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
        gap: var(--space-6);
    }
}

/* Tablet (481px - 767px) */
@media (max-width: 767px) and (min-width: 481px) {
    :root {
        --container-padding: var(--space-3);
    }
    
    .nav-menu {
        display: none;
    }
    
    .nav-container {
        justify-content: space-between;
        padding: 0 var(--space-3);
    }
    
    .hero-cta {
        flex-direction: column;
        gap: var(--space-3);
        align-items: center;
    }
    
    .hero-cta .btn {
        width: 100%;
        max-width: 280px;
        justify-content: center;
    }
}

/* Mobile (320px - 480px) */
@media (max-width: 480px) {
    :root {
        --container-padding: var(--space-2);
        --text-base: 0.85rem;
        --text-lg: 0.95rem;
        --text-xl: 1rem;
        --text-2xl: 1.2rem;
        --text-3xl: 1.4rem;
        --nav-height: 60px;
    }
    
    .nav-menu {
        display: none;
    }
    
    .nav-container {
        padding: 0 var(--space-2);
    }
    
    .nav-logo {
        font-size: var(--text-lg);
    }
    
    .hero-name {
        font-size: var(--text-3xl);
    }
    
    .hero-title {
        font-size: var(--text-xl);
    }
    
    .hero-description {
        font-size: var(--text-sm);
    }
    
    .projects-grid {
        grid-template-columns: 1fr;
        gap: var(--space-4);
    }
    
    .achievement-tile {
        flex-direction: column;
        text-align: center;
        gap: var(--space-4);
        padding: var(--space-4);
    }
    
    .achievement-header {
        flex-direction: column;
        align-items: center;
        gap: var(--space-2);
    }
}

/* Small Mobile (max 319px) */
@media (max-width: 319px) {
    :root {
        --container-padding: var(--space-1);
        --text-base: 0.8rem;
        --text-sm: 0.75rem;
        --nav-height: 50px;
    }
    
    .nav-container {
        padding: 0 var(--space-1);
    }
    
    .nav-controls {
        gap: var(--space-1);
    }
}

/* High DPI Displays */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    body {
        -webkit-font-smoothing: antialiased;
        -moz-osx-font-smoothing: grayscale;
    }
}

/* Blog Section */
    margin-bottom: var(--space-20);
}

.featured-project {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-12);
    align-items: center;
    margin-bottom: var(--space-16);
    background: var(--bg-card);
    padding: var(--space-8);
    border-radius: var(--radius-2xl);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-md);
    transition: all var(--transition-base);
}

.featured-project:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: var(--accent-primary);
}

.project-overline {
    font-family: var(--font-mono);
    font-size: var(--text-sm);
    color: var(--accent-primary);
    margin-bottom: var(--space-3);
}

.project-title {
    font-size: var(--text-2xl);
    margin-bottom: var(--space-4);
    color: var(--text-primary);
}

.project-title a {
    color: inherit;
    transition: color var(--transition-fast);
}

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

.project-description {
    background: var(--bg-hover);
    padding: var(--space-6);
    border-radius: var(--radius-lg);
    margin-bottom: var(--space-6);
    border: 1px solid var(--border-color);
}

.project-description p {
    color: var(--text-secondary);
    line-height: 1.6;
    margin: 0;
}

.project-tech-list {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-3);
    margin-bottom: var(--space-6);
    list-style: none;
    padding: 0;
}

.project-tech-list li {
    background: var(--bg-tertiary);
    color: var(--text-secondary);
    padding: var(--space-2) var(--space-3);
    border-radius: var(--radius-md);
    font-family: var(--font-mono);
    font-size: var(--text-xs);
    border: 1px solid var(--border-color);
}

.project-links {
    display: flex;
    gap: var(--space-4);
}

.project-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: var(--radius-lg);
    background: var(--bg-hover);
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    font-size: var(--text-lg);
    transition: all var(--transition-fast);
}

.project-links a:hover {
    background: var(--accent-primary);
    color: white;
    transform: translateY(-2px);
}

.project-image {
    display: flex;
    justify-content: center;
    align-items: center;
}

.project-img-wrapper {
    width: 100%;
    max-width: 400px;
    height: 250px;
    border-radius: var(--radius-xl);
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-base);
}

.project-img-wrapper:hover {
    transform: scale(1.05);
    border-color: var(--accent-primary);
}

.project-img-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-4);
    color: var(--accent-primary);
}

.project-img-placeholder i {
    font-size: 3rem;
    opacity: 0.7;
}

.project-img-placeholder span {
    font-size: var(--text-lg);
    font-weight: 600;
}

.project-stats span {
    display: flex;
    align-items: center;
    gap: var(--space-1);
}

.projects-archive {
    text-align: center;
    margin-top: var(--space-16);
}

.archive-link {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    padding: var(--space-4) var(--space-8);
    background: var(--bg-card);
    border: 2px solid var(--accent-primary);
    border-radius: var(--radius-lg);
    color: var(--accent-primary);
    font-weight: 600;
    transition: all var(--transition-fast);
    box-shadow: var(--shadow-sm);
}

.archive-link:hover {
    background: var(--accent-primary);
    color: white;
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.github-projects-section {
    margin-top: var(--space-16);
    padding-top: var(--space-16);
    border-top: 1px solid var(--border-color);
}

.github-projects-title {
    text-align: center;
    font-size: var(--text-2xl);
    color: var(--text-primary);
    margin-bottom: var(--space-8);
}

.projects-list {
    margin-bottom: var(--space-8);
}

/* Blog Section */
.blog {
    background: var(--bg-tertiary);
}

.blog-intro {
    text-align: center;
    margin-bottom: var(--space-16);
}

.blog-intro p {
    font-size: var(--text-lg);
    color: var(--text-secondary);
    max-width: 700px;
    margin: 0 auto;
}

.blog-posts {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: var(--space-8);
    margin-bottom: var(--space-16);
}

.blog-post-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-2xl);
    overflow: hidden;
    transition: all var(--transition-base);
    box-shadow: var(--shadow-md);
}

.blog-post-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
    border-color: var(--accent-primary);
}

.blog-post-image {
    height: 200px;
    background: var(--bg-hover);
    display: flex;
    align-items: center;
    justify-content: center;
    border-bottom: 1px solid var(--border-color);
}

.blog-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-4);
    color: var(--accent-primary);
}

.blog-placeholder i {
    font-size: 3rem;
    opacity: 0.7;
}

.blog-post-content {
    padding: var(--space-8);
}

.blog-post-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--space-4);
    font-size: var(--text-sm);
}

.blog-category {
    background: var(--accent-gradient);
    color: white;
    padding: var(--space-1) var(--space-3);
    border-radius: var(--radius-md);
    font-weight: 600;
    font-size: var(--text-xs);
}

.blog-date {
    color: var(--text-muted);
    font-family: var(--font-mono);
}

.blog-post-title {
    font-size: var(--text-xl);
    font-weight: 700;
    margin-bottom: var(--space-4);
    color: var(--text-primary);
    line-height: 1.3;
}

.blog-post-excerpt {
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: var(--space-6);
}

.blog-post-tags {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-2);
}

.tag {
    background: var(--bg-hover);
    color: var(--text-secondary);
    padding: var(--space-1) var(--space-3);
    border-radius: var(--radius-md);
    font-size: var(--text-xs);
    font-family: var(--font-mono);
    border: 1px solid var(--border-color);
}

.blog-cta {
    text-align: center;
    padding: var(--space-12);
    background: var(--bg-card);
    border-radius: var(--radius-2xl);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-md);
}

.blog-cta p {
    font-size: var(--text-lg);
    margin-bottom: var(--space-6);
    color: var(--text-secondary);
}

/* Achievements Section */
.achievements {
    background: var(--bg-secondary);
}

.achievements-grid {
    display: flex;
    flex-direction: column;
    gap: var(--space-6);
    margin-bottom: var(--space-16);
}

.achievement-tile {
    display: flex;
    align-items: flex-start;
    gap: var(--space-6);
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-2xl);
    padding: var(--space-8);
    transition: all var(--transition-base);
    box-shadow: var(--shadow-md);
    position: relative;
    overflow: hidden;
}

.achievement-tile::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: var(--accent-gradient);
}

.achievement-tile:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-xl);
    border-color: var(--accent-primary);
}

.achievement-icon-wrapper {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 80px;
    height: 80px;
    background: var(--accent-gradient);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-md);
}

.achievement-icon {
    color: white;
    font-size: var(--text-3xl);
}

.achievement-content {
    flex-grow: 1;
    min-width: 0;
}

.achievement-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: var(--space-4);
    margin-bottom: var(--space-3);
    flex-wrap: wrap;
}

.achievement-title {
    font-size: var(--text-2xl);
    font-weight: 700;
    color: var(--text-primary);
    margin: 0;
    flex-grow: 1;
    min-width: 0;
}

.achievement-badge {
    padding: var(--space-2) var(--space-4);
    border-radius: var(--radius-lg);
    font-size: var(--text-sm);
    font-weight: 600;
    white-space: nowrap;
    flex-shrink: 0;
}

.achievement-badge.winner {
    background: linear-gradient(135deg, #ffd700, #ffb347);
    color: #1a1a1a;
}

.achievement-badge.double {
    background: linear-gradient(135deg, #ff6b6b, #ee5a24);
    color: white;
}

.achievement-badge.second {
    background: linear-gradient(135deg, #c0c0c0, #a8a8a8);
    color: #1a1a1a;
}

.achievement-event {
    color: var(--accent-primary);
    font-weight: 600;
    font-size: var(--text-lg);
    margin-bottom: var(--space-4);
}

.achievement-description {
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: var(--space-4);
    font-size: var(--text-base);
}

.achievement-tech {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-2);
}

.achievement-tech span {
    background: var(--bg-tertiary);
    color: var(--text-secondary);
    padding: var(--space-1) var(--space-3);
    border-radius: var(--radius-md);
    font-family: var(--font-mono);
    font-size: var(--text-xs);
    border: 1px solid var(--border-color);
    transition: all var(--transition-fast);
}

.achievement-tech span:hover {
    background: var(--accent-primary);
    color: white;
    border-color: var(--accent-primary);
}

.other-achievements {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-2xl);
    padding: var(--space-8);
    box-shadow: var(--shadow-md);
}

.other-achievements-title {
    text-align: center;
    font-size: var(--text-2xl);
    color: var(--text-primary);
    margin-bottom: var(--space-8);
}

.other-achievements-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--space-4);
    align-items: start;
}

.other-achievement-tile {
    display: flex;
    align-items: flex-start;
    gap: var(--space-3);
    padding: var(--space-4);
    background: var(--bg-hover);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    transition: all var(--transition-fast);
    height: 100%;
}

.other-achievement-tile:hover {
    background: var(--bg-tertiary);
    border-color: var(--accent-primary);
    transform: translateY(-2px);
}

.other-achievement-tile i {
    color: var(--accent-primary);
    font-size: var(--text-lg);
    margin-top: 2px;
    flex-shrink: 0;
    width: 20px;
    text-align: center;
}

.other-achievement-tile span {
    color: var(--text-secondary);
    line-height: 1.5;
    font-size: var(--text-sm);
    flex-grow: 1;
}

/* Responsive adjustments for different counts */
@media (min-width: 1200px) {
    .other-achievements-grid {
        grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    }
}

@media (max-width: 768px) {
    .other-achievements-grid {
        grid-template-columns: 1fr;
        gap: var(--space-3);
    }
    
    .other-achievement-tile {
        padding: var(--space-3);
    }
}

/* Handle different numbers of items gracefully */
.other-achievements-grid:has(.other-achievement-tile:nth-child(1):last-child) {
    /* Single item - center it */
    justify-content: center;
    max-width: 500px;
    margin: 0 auto;
}

.other-achievements-grid:has(.other-achievement-tile:nth-child(2):last-child) {
    /* Two items - make them wider */
    grid-template-columns: repeat(2, 1fr);
    max-width: 800px;
    margin: 0 auto;
}

.other-achievements-grid:has(.other-achievement-tile:nth-child(3):last-child) {
    /* Three items - nice row */
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

/* For 4+ items, use the default auto-fit behavior */

/* Responsive Achievements */
@media (max-width: 768px) {
    .achievement-tile {
        flex-direction: column;
        text-align: center;
        gap: var(--space-4);
        padding: var(--space-6);
    }
    
    .achievement-header {
        flex-direction: column;
        align-items: center;
        gap: var(--space-3);
    }
    
    .achievement-title {
        text-align: center;
    }
    
    .achievement-tech {
        justify-content: center;
    }
    
    .other-achievements-grid {
        grid-template-columns: 1fr;
    }
}

/* Back to Top Button */
.back-to-top {
    position: fixed;
    bottom: var(--space-8);
    right: var(--space-8);
    width: 50px;
    height: 50px;
    background: var(--accent-gradient);
    border: none;
    border-radius: 50%;
    color: white;
    font-size: var(--text-lg);
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all var(--transition-base);
    z-index: 1000;
    box-shadow: var(--shadow-lg);
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-xl);
}

@media (max-width: 768px) {
    .back-to-top {
        bottom: var(--space-4);
        right: var(--space-4);
        width: 44px;
        height: 44px;
        font-size: var(--text-base);
    }
}

/* Contact Section */
.contact {
    background: var(--bg-tertiary);
}

.contact-content {
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
}

.contact-title {
    font-size: var(--text-4xl);
    margin-bottom: var(--space-6);
    color: var(--text-primary);
}

.contact-description {
    font-size: var(--text-lg);
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: var(--space-8);
}

/* Footer */
.footer {
    background: var(--bg-primary);
    padding: var(--space-8) 0;
    border-top: 1px solid var(--border-color);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--text-muted);
    font-size: var(--text-sm);
}

.footer-links {
    display: flex;
    gap: var(--space-4);
}

.footer-links a {
    color: var(--text-muted);
    font-size: var(--text-lg);
    transition: color var(--transition-fast);
}

.footer-links a:hover {
    color: var(--accent-primary);
}

/* Social Sidebar */
.social-sidebar {
    position: fixed;
    left: var(--space-8);
    bottom: 0;
    z-index: 100;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.social-links {
    display: flex;
    flex-direction: column;
    gap: var(--space-4);
    margin-bottom: var(--space-6);
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: var(--radius-lg);
    background: var(--bg-hover);
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    font-size: var(--text-lg);
    transition: all var(--transition-fast);
}

.social-links a:hover {
    background: var(--accent-primary);
    color: white;
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.social-line {
    width: 1px;
    height: 100px;
    background: var(--border-color);
}

/* Email Sidebar */
.email-sidebar {
    position: fixed;
    right: var(--space-8);
    bottom: 0;
    z-index: 100;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.email-link {
    writing-mode: vertical-rl;
    margin-bottom: var(--space-6);
}

.email-link a {
    font-family: var(--font-mono);
    font-size: var(--text-sm);
    color: var(--text-secondary);
    transition: all var(--transition-fast);
}

.email-link a:hover {
    color: var(--accent-primary);
    transform: translateY(-4px);
}

.email-line {
    width: 1px;
    height: 100px;
    background: var(--border-color);
}

/* Responsive Design */
@media (max-width: 1024px) {
    .container {
        padding: 0 var(--space-6);
    }
    
    .nav-container {
        padding: 0 var(--space-6);
    }
    
    .about-content {
        grid-template-columns: 1fr;
        gap: var(--space-12);
        text-align: center;
    }
    
    .featured-project {
        grid-template-columns: 1fr;
        gap: var(--space-8);
        text-align: center;
    }
    
    .social-sidebar,
    .email-sidebar {
        display: none;
    }
}

@media (max-width: 768px) {
    section {
        padding: var(--space-16) 0;
    }
    
    .nav-menu {
        position: fixed;
        top: var(--nav-height);
        left: 0;
        right: 0;
        background: var(--bg-primary);
        border-top: 1px solid var(--border-color);
        flex-direction: column;
        padding: var(--space-8);
        gap: var(--space-4);
        transform: translateY(-100vh);
        opacity: 0;
        visibility: hidden;
        transition: all var(--transition-base);
    }
    
    .nav-menu.active {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }
    
    .nav-toggle {
        display: flex;
    }
    
    .nav-toggle.active .bar:nth-child(1) {
        transform: rotate(45deg) translate(6px, 6px);
    }
    
    .nav-toggle.active .bar:nth-child(2) {
        opacity: 0;
    }
    
    .nav-toggle.active .bar:nth-child(3) {
        transform: rotate(-45deg) translate(6px, -6px);
    }
    
    .nav-link {
        width: 100%;
        justify-content: center;
        padding: var(--space-4);
        font-size: var(--text-base);
    }
    
    .hero {
        padding: var(--space-20) 0;
        text-align: center;
    }
    
    .hero-container {
        padding: 0 var(--space-4);
    }
    
    .hero-content {
        text-align: center;
    }
    
    .hero-cta {
        justify-content: center;
    }
    
    .tech-list {
        grid-template-columns: 1fr;
    }
    
    .coursework-grid {
        grid-template-columns: 1fr;
    }
    
    .achievements-grid {
        grid-template-columns: 1fr;
    }
    
    .achievement-item {
        flex-direction: column;
        text-align: center;
        gap: var(--space-4);
    }
    
    .blog-posts {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        flex-direction: column;
        gap: var(--space-4);
        text-align: center;
    }
}

/* Loading States */
.loading-projects {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-4);
    padding: var(--space-12);
    color: var(--text-muted);
}

.loading-spinner {
    width: 40px;
    height: 40px;
    border: 3px solid var(--border-color);
    border-top: 3px solid var(--accent-primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.fade-in-up {
    animation: fadeInUp 0.6s ease-out forwards;
}

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

.no-projects {
    text-align: center;
    padding: var(--space-12);
    color: var(--text-muted);
}

.no-projects p {
    margin-bottom: var(--space-6);
    font-size: var(--text-lg);
}
