:root {
    --primary-color: #00ff88;
    --secondary-color: #ff0088;
    --accent-color: #0099ff;
    --bg-primary: #0a0a0a;
    --bg-secondary: #1a1a1a;
    --bg-tertiary: #2a2a2a;
    --text-primary: #ffffff;
    --text-secondary: #b0b0b0;
    --text-muted: #707070;
    --border-color: #333333;
    --success-color: #00ff88;
    --warning-color: #ffaa00;
    --error-color: #ff0044;
    
    /* Consistent spacing system */
    --space-xs: 0.25rem;
    --space-sm: 0.5rem;
    --space-md: 1rem;
    --space-lg: 1.5rem;
    --space-xl: 2rem;
    --space-2xl: 3rem;
    --space-3xl: 4rem;
    
    --font-mono: 'JetBrains Mono', 'Courier New', monospace;
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    
    --shadow-sm: 0 2px 4px rgba(0, 255, 136, 0.1);
    --shadow-md: 0 4px 8px rgba(0, 255, 136, 0.15);
    --shadow-lg: 0 8px 16px rgba(0, 255, 136, 0.2);
    --shadow-glow: 0 0 20px rgba(0, 255, 136, 0.3);
}

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

body {
    font-family: var(--font-sans);
    background-color: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
}

.matrix-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 25% 25%, rgba(0, 255, 136, 0.02) 0%, transparent 50%),
        radial-gradient(circle at 75% 75%, rgba(0, 153, 255, 0.02) 0%, transparent 50%),
        linear-gradient(135deg, transparent 0%, rgba(255, 0, 136, 0.01) 50%, transparent 100%);
    z-index: -2;
}

.matrix-bg::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url('profile.jpg');
    background-size: cover;
    background-position: center right;
    background-repeat: no-repeat;
    opacity: 0.05;
    z-index: -1;
    filter: blur(1px);
}

.matrix-bg::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        repeating-linear-gradient(
            0deg,
            transparent,
            transparent 2px,
            rgba(0, 255, 136, 0.03) 2px,
            rgba(0, 255, 136, 0.03) 4px
        );
    z-index: -1;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Left Sidebar Navigation - Clean & Minimal */
.sidebar-nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 250px;
    height: 100vh;
    background: rgba(10, 10, 10, 0.9);
    backdrop-filter: blur(15px);
    border-right: 1px solid rgba(0, 255, 136, 0.3);
    z-index: 1000;
    padding: 2rem 0;
    overflow-y: auto;
    transition: transform 0.3s ease;
}

.sidebar-header {
    padding: 0 2rem 2rem 2rem;
    border-bottom: 1px solid rgba(0, 255, 136, 0.2);
    margin-bottom: 2rem;
}

.logo {
    font-family: var(--font-mono);
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--primary-color);
    text-align: center;
}

.code-bracket {
    color: var(--secondary-color);
}

.sidebar-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.sidebar-links li {
    margin: 0;
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 15px;
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    padding: 15px 2rem;
    transition: color 0.3s ease, opacity 0.3s ease, border-left-color 0.3s ease;
    position: relative;
    border-left: 3px solid transparent;
    opacity: 1;
}

.nav-link:hover {
    color: var(--primary-color);
    border-left-color: var(--primary-color);
}

.nav-link.active {
    color: var(--primary-color);
    border-left-color: var(--primary-color);
    opacity: 1;
}

/* Fade effect for inactive nav items - more visible */
.sidebar-nav.has-active .nav-link:not(.active) {
    opacity: 0.6;
    color: var(--text-secondary);
}

.sidebar-nav.has-active .nav-link:not(.active):hover {
    opacity: 0.8;
    color: var(--primary-color);
}

.nav-link i {
    font-size: 1.1rem;
    width: 20px;
    text-align: center;
    transition: all 0.3s ease;
}

.nav-link.active i {
    color: var(--primary-color);
}

.nav-link span {
    font-size: 0.95rem;
    transition: all 0.3s ease;
    font-family: var(--font-mono);
}

.nav-link.active span {
    font-weight: 600;
    color: var(--primary-color);
}

.mobile-menu-toggle {
    position: fixed;
    top: 20px;
    left: 20px;
    display: none;
    cursor: pointer;
    color: var(--text-primary);
    font-size: 1.5rem;
    z-index: 1001;
    background: rgba(26, 26, 26, 0.9);
    backdrop-filter: blur(10px);
    padding: 12px;
    border-radius: 8px;
    border: 1px solid rgba(0, 255, 136, 0.2);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3), 0 0 10px rgba(0, 255, 136, 0.1);
    transition: all 0.3s ease;
}

.mobile-menu-toggle:hover {
    transform: scale(1.1);
    border-color: var(--primary-color);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4), 0 0 15px rgba(0, 255, 136, 0.2);
    color: var(--primary-color);
}

/* Main Content Adjustment */
.main-content {
    margin-left: 250px;
    min-height: 100vh;
}

/* Hero Section */
.hero {
    min-height: 40vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding-top: 30px;
    padding-bottom: 30px;
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    align-items: stretch;
    max-width: 1400px;
    width: 100%;
    height: auto;
}

.hero-left {
    display: flex;
    justify-content: center;
}

.hero-right {
    display: flex;
    align-items: center;
    justify-content: center;
}

.terminal-window {
    background: var(--bg-secondary);
    border-radius: 12px;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-lg), 0 0 20px rgba(0, 255, 136, 0.15);
    width: 100%;
    height: 550px;
    max-height: 550px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.terminal-header {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    background: var(--bg-tertiary);
    border-bottom: 1px solid var(--border-color);
}

.terminal-buttons {
    display: flex;
    gap: 8px;
}

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

.btn.close {
    background: var(--error-color);
}

.btn.minimize {
    background: var(--warning-color);
}

.btn.maximize {
    background: var(--success-color);
}

.terminal-title {
    margin-left: auto;
    font-family: var(--font-mono);
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.terminal-body {
    padding: 20px 24px;
    font-family: var(--font-mono);
    font-size: 0.95rem;
    line-height: 1.6;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    overflow: hidden;
}

.code-line {
    margin: 8px 0;
}

.prompt {
    color: var(--primary-color);
    font-weight: 600;
}

.output {
    color: var(--text-primary);
    margin: 8px 0 16px 0;
}

.skills-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 8px;
}

.skill-tag {
    background: rgba(0, 255, 136, 0.1);
    color: var(--primary-color);
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    border: 1px solid rgba(0, 255, 136, 0.3);
}

.skill-tag.primary {
    background: rgba(255, 0, 136, 0.2);
    color: var(--secondary-color);
    border: 1px solid rgba(255, 0, 136, 0.5);
    font-weight: 600;
}

.cursor {
    background: var(--primary-color);
    animation: blink 1s infinite;
}

@keyframes blink {
    0%, 50% { opacity: 1; }
    51%, 100% { opacity: 0; }
}

/* Section Styles - Improved spacing */
section {
    padding: var(--space-3xl) 0;
}

section:first-of-type {
    padding-top: var(--space-2xl);
}

section:last-of-type {
    padding-bottom: var(--space-2xl);
}

/* Certification Section Styles */
.certifications-section {
    background: var(--bg-secondary);
    padding: 30px 0;
}

.cert-grid-main {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
}

.cert-one-line {
    display: flex;
    justify-content: center;
    flex-wrap: nowrap;
    gap: 15px;
    overflow-x: auto;
}

.cert-one-line .cert-item-main {
    flex: 0 0 auto;
    min-width: 180px;
    white-space: nowrap;
}

.cert-item-main {
    display: flex;
    align-items: center;
    gap: 10px;
    background: var(--bg-primary);
    padding: 15px;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

.cert-item-main:hover {
    border-color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: var(--shadow-sm);
}

.cert-item-main i {
    font-size: 1.5rem;
    color: var(--primary-color);
}

.cert-item-main span {
    color: var(--text-primary);
    font-weight: 500;
    font-size: 0.85rem;
    white-space: nowrap;
}

/* Contact Info in Profile Summary */
.contact-info-compact {
    margin-top: var(--space-sm);
    padding-top: var(--space-sm);
    border-top: 1px solid var(--border-color);
    width: 100%;
}

.contact-links {
    display: flex;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
}

.contact-link {
    display: flex;
    align-items: center;
    gap: 6px;
    color: var(--text-secondary);
    text-decoration: none;
    padding: 6px 12px;
    background: rgba(0, 255, 136, 0.1);
    border-radius: 16px;
    border: 1px solid rgba(0, 255, 136, 0.3);
    transition: all 0.3s ease;
    font-size: 0.8rem;
    position: relative;
    cursor: pointer;
}

.contact-link:hover {
    color: var(--primary-color);
    border-color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: var(--shadow-sm);
}

.contact-link i {
    font-size: 1rem;
}

/* Email tooltip */
.email-link {
    position: relative;
}

.email-link .tooltip {
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: var(--bg-primary);
    color: var(--text-primary);
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 0.8rem;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    border: 1px solid var(--border-color);
    margin-bottom: 8px;
    z-index: 1000;
}

.email-link .tooltip::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border: 5px solid transparent;
    border-top-color: var(--border-color);
}

.email-link:hover .tooltip {
    opacity: 1;
    visibility: visible;
}

/* Success message */
.tooltip.copied {
    background: var(--primary-color);
    color: var(--bg-primary);
}

.tooltip.copied::after {
    border-top-color: var(--primary-color);
}

.section-title {
    text-align: center;
    margin-bottom: var(--space-3xl);
    font-family: var(--font-mono);
    font-size: clamp(1.5rem, 4vw, 2rem);
    color: var(--text-primary);
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 2px;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
    border-radius: 1px;
}

.code-comment {
    color: var(--text-secondary);
}

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

.about-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 40px;
    align-items: center;
}

.about-text p {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-bottom: 20px;
}

.about-stats {
    display: grid;
    gap: 20px;
}

.stat {
    text-align: center;
    padding: 20px;
    background: var(--bg-primary);
    border-radius: 8px;
    border: 1px solid var(--border-color);
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-color);
    font-family: var(--font-mono);
}

.stat-label {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-top: 8px;
}

/* Timeline */
.timeline {
    position: relative;
    margin-left: 20px;
}

.timeline::before {
    content: '';
    position: absolute;
    left: -2px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: var(--primary-color);
}

.timeline-item {
    position: relative;
    margin-bottom: 40px;
    padding-left: 40px;
}

.timeline-dot {
    position: absolute;
    left: -10px;
    top: 0;
    width: 16px;
    height: 16px;
    background: var(--primary-color);
    border-radius: 50%;
    box-shadow: 0 0 10px rgba(0, 255, 136, 0.5);
}

.timeline-content {
    background: var(--bg-secondary);
    padding: var(--space-xl);
    border-radius: 12px;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
}

.timeline-content:hover {
    border-color: var(--primary-color);
    box-shadow: var(--shadow-md);
    transform: translateX(5px);
}

.job-header {
    margin-bottom: var(--space-lg);
    padding-bottom: var(--space-md);
    border-bottom: 1px solid var(--border-color);
}

.job-header h3 {
    font-size: 1.3rem;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.company {
    color: var(--accent-color);
    font-weight: 600;
    margin-right: 15px;
}

.duration {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.achievements {
    list-style: none;
    margin-bottom: var(--space-lg);
}

.achievements li {
    color: var(--text-secondary);
    margin-bottom: var(--space-sm);
    position: relative;
    padding-left: var(--space-lg);
    line-height: 1.6;
}

.achievements li::before {
    content: '▸';
    position: absolute;
    left: 0;
    color: var(--primary-color);
}

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

.tech {
    background: rgba(0, 153, 255, 0.1);
    color: var(--accent-color);
    padding: 4px 12px;
    border-radius: 16px;
    font-size: 0.8rem;
    border: 1px solid rgba(0, 153, 255, 0.3);
}

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

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
}

.project-card {
    background: var(--bg-primary);
    padding: var(--space-xl);
    border-radius: 12px;
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    min-height: 250px;
    display: flex;
    flex-direction: column;
}

.project-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
}

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

.project-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: var(--space-md);
    padding-bottom: var(--space-sm);
    border-bottom: 1px solid var(--border-color);
}

.project-header h3 {
    font-size: 1.2rem;
    color: var(--text-primary);
    margin-bottom: 0;
}

.project-links {
    display: flex;
    gap: 10px;
}

.project-link {
    color: var(--text-muted);
    font-size: 1.2rem;
    transition: color 0.3s ease;
}

.project-link:hover {
    color: var(--primary-color);
}

.project-card p {
    color: var(--text-secondary);
    margin-bottom: var(--space-lg);
    line-height: 1.6;
    flex-grow: 1;
}

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

/* Profile Summary Styles */
.profile-summary {
    padding: 25px 30px;
    background: rgba(26, 26, 26, 0.8);
    border-radius: 12px;
    border: 1px solid var(--border-color);
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow-lg), 0 0 20px rgba(0, 255, 136, 0.15);
    width: 100%;
    height: 550px;
    max-height: 550px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    overflow: hidden;
}

/* Profile Avatar Placeholder */
.profile-avatar-placeholder {
    margin-bottom: var(--space-md);
    display: flex;
    justify-content: center;
    align-items: center;
}

.avatar-initials {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 3px solid rgba(0, 255, 136, 0.3);
    box-shadow: 0 0 30px rgba(0, 255, 136, 0.2);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.avatar-initials:hover {
    transform: scale(1.05);
    box-shadow: 0 0 40px rgba(0, 255, 136, 0.4);
}

.avatar-initials::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transform: rotate(45deg);
    animation: shine 3s infinite;
}

.avatar-initials span {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--bg-primary);
    font-family: var(--font-mono);
    z-index: 1;
    position: relative;
}

@keyframes shine {
    0% { transform: translateX(-100%) translateY(-100%) rotate(45deg); }
    50% { transform: translateX(100%) translateY(100%) rotate(45deg); }
    100% { transform: translateX(-100%) translateY(-100%) rotate(45deg); }
}

.profile-summary h1 {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: var(--space-xs);
    font-family: var(--font-mono);
}

.domain-display {
    margin-bottom: var(--space-md);
}

.domain-text {
    font-family: var(--font-mono);
    font-size: 1.1rem;
    color: var(--accent-color);
    font-weight: 500;
}

#expanding-d {
    color: var(--secondary-color);
    font-weight: 600;
    transition: all 0.3s ease;
}

.profile-summary .title {
    font-size: 1.1rem;
    color: var(--text-primary);
    margin-bottom: var(--space-md);
    font-weight: 600;
}

.profile-summary .summary {
    color: var(--text-secondary);
    line-height: 1.5;
    margin-bottom: var(--space-md);
    font-size: 0.9rem;
    max-width: 95%;
}

.quick-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-sm);
    width: 100%;
    margin-bottom: var(--space-sm);
}

.quick-stat {
    text-align: center;
    padding: 10px 8px;
    background: var(--bg-primary);
    border-radius: 6px;
    border: 1px solid var(--border-color);
}

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

.quick-stat .label {
    font-size: 0.7rem;
    color: var(--text-secondary);
    margin-top: 3px;
}

/* Skills Section - New Design */
.skills-grid-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
}

.skill-category-card {
    background: var(--bg-primary);
    padding: var(--space-xl);
    border-radius: 12px;
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    min-height: 200px;
    display: flex;
    flex-direction: column;
}

.skill-category-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
}

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

.category-icon {
    font-size: 2rem;
    margin-bottom: 15px;
    display: block;
}

.skill-category-card h3 {
    color: var(--primary-color);
    margin-bottom: var(--space-lg);
    font-size: clamp(1.1rem, 3vw, 1.3rem);
    font-weight: 600;
}

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

.skill-badge {
    padding: 6px 12px;
    border-radius: 16px;
    font-size: 0.8rem;
    font-weight: 500;
    border: 1px solid;
    transition: all 0.3s ease;
}

.skill-badge.expert {
    background: rgba(0, 255, 136, 0.15);
    color: var(--primary-color);
    border-color: rgba(0, 255, 136, 0.4);
}

.skill-badge.advanced {
    background: rgba(0, 153, 255, 0.15);
    color: var(--accent-color);
    border-color: rgba(0, 153, 255, 0.4);
}

.skill-badge.intermediate {
    background: rgba(255, 170, 0, 0.15);
    color: var(--warning-color);
    border-color: rgba(255, 170, 0, 0.4);
}

.skill-badge:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}


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

.education-content {
    max-width: 1000px;
    margin: 0 auto;
}

.education-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(450px, 1fr));
    gap: 30px;
    margin-bottom: 50px;
}

.education-card {
    background: var(--bg-primary);
    padding: var(--space-xl);
    border-radius: 12px;
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    min-height: 200px;
}

.education-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--accent-color), var(--primary-color));
}

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

.education-header {
    margin-bottom: var(--space-lg);
    padding-bottom: var(--space-md);
    border-bottom: 1px solid var(--border-color);
}

.education-header h3 {
    font-size: 1.3rem;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.school {
    color: var(--accent-color);
    font-weight: 600;
    margin-right: 15px;
    display: block;
    margin-bottom: 5px;
}

.duration {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.education-details p {
    color: var(--text-secondary);
    margin-bottom: 8px;
    line-height: 1.6;
}

.education-details strong {
    color: var(--primary-color);
}

.certifications {
    text-align: center;
}

.certifications h3 {
    color: var(--primary-color);
    margin-bottom: 30px;
    font-size: 1.4rem;
}

.cert-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.cert-item {
    display: flex;
    align-items: center;
    gap: 15px;
    background: var(--bg-primary);
    padding: 20px;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

.cert-item:hover {
    border-color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: var(--shadow-sm);
}

.cert-item i {
    font-size: 1.5rem;
    color: var(--primary-color);
}

.cert-item span {
    color: var(--text-primary);
    font-weight: 500;
}

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

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

.contact-content p {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-bottom: 40px;
}

.contact-methods {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
}

.contact-method {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text-secondary);
    text-decoration: none;
    padding: 15px 25px;
    background: var(--bg-primary);
    border-radius: 8px;
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

.contact-method:hover {
    color: var(--primary-color);
    border-color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.contact-method i {
    font-size: 1.2rem;
}

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

.footer p {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.footer i {
    color: var(--secondary-color);
}

/* Responsive Design */
@media (max-width: 768px) {
    .sidebar-nav {
        transform: translateX(-100%);
        width: 280px;
        box-shadow: 
            2px 0 30px rgba(0, 0, 0, 0.5),
            2px 0 15px rgba(0, 255, 136, 0.1);
    }
    
    .sidebar-nav.active {
        transform: translateX(0);
        animation: sidebar-slide-in 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    }
    
    @keyframes sidebar-slide-in {
        0% { 
            transform: translateX(-100%);
            opacity: 0;
        }
        100% { 
            transform: translateX(0);
            opacity: 1;
        }
    }
    
    .mobile-menu-toggle {
        display: block;
    }
    
    .main-content {
        margin-left: 0;
    }
    
    .hero {
        padding: 80px 20px 30px;
    }
    
    .hero-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .terminal-window {
        max-width: 100%;
        height: 500px;
        max-height: 500px;
    }
    
    .profile-summary {
        max-width: 100%;
        padding: var(--space-xl);
        height: 500px;
        max-height: 500px;
    }
    
    .avatar-initials {
        width: 100px;
        height: 100px;
    }
    
    .avatar-initials span {
        font-size: 2rem;
    }
    
    .profile-summary h1 {
        font-size: 2rem;
    }
    
    .quick-stats {
        grid-template-columns: 1fr;
        gap: 10px;
    }
    
    .terminal-body {
        padding: 16px;
        font-size: 0.9rem;
    }
    
    .about-content {
        grid-template-columns: 1fr;
        gap: 40px;
        text-align: center;
    }
    
    .about-stats {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .timeline {
        margin-left: 10px;
    }
    
    .timeline-item {
        padding-left: 30px;
    }
    
    .projects-grid {
        grid-template-columns: 1fr;
    }
    
    .skills-grid-container {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .skill-category-card {
        padding: var(--space-lg);
        min-height: auto;
    }
    
    .section-title {
        font-size: 1.5rem;
        margin-bottom: 30px;
    }
    
    .cert-grid-main {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .cert-one-line {
        flex-wrap: wrap;
        justify-content: center;
        gap: 10px;
    }
    
    .cert-one-line .cert-item-main {
        min-width: 140px;
    }
    
    .contact-links {
        flex-direction: column;
        align-items: center;
        gap: 10px;
    }
    
    .contact-link {
        width: 100%;
        max-width: 250px;
        justify-content: center;
    }
    
    .email-link .tooltip {
        font-size: 0.7rem;
        padding: 6px 10px;
    }
    
    .education-grid {
        grid-template-columns: 1fr;
    }
    
    .cert-grid {
        grid-template-columns: 1fr;
    }
    
    .contact-methods {
        flex-direction: column;
        align-items: center;
    }
    
    .contact-method {
        width: 100%;
        max-width: 300px;
        justify-content: center;
    }
    
    .section-title {
        font-size: clamp(1.3rem, 5vw, 1.5rem);
        margin-bottom: var(--space-2xl);
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 var(--space-md);
    }
    
    .nav {
        padding: 1rem 15px;
    }
    
    .terminal-window {
        height: 450px;
        max-height: 450px;
    }
    
    .profile-summary {
        height: 450px;
        max-height: 450px;
    }
    
    .terminal-body {
        padding: var(--space-sm) var(--space-md);
        font-size: 0.8rem;
    }
    
    .skill-tag {
        font-size: 0.75rem;
        padding: var(--space-xs) var(--space-sm);
    }
    
    .quick-stat .number {
        font-size: 1.2rem;
    }
    
    .about-stats {
        grid-template-columns: 1fr;
        gap: var(--space-lg);
    }
    
    .stat-number {
        font-size: 2rem;
    }
}

/* Scroll behavior */
html {
    scroll-behavior: smooth;
}

/* Accessibility Improvements */
.skip-to-content {
    position: absolute;
    top: -40px;
    left: 6px;
    background: var(--primary-color);
    color: var(--bg-primary);
    padding: 8px;
    text-decoration: none;
    border-radius: 4px;
    z-index: 9999;
    font-weight: 600;
    transition: top 0.3s ease;
}

.skip-to-content:focus {
    top: 6px;
}

/* Focus styles for better accessibility */
.nav-link:focus,
.contact-link:focus,
.project-link:focus,
.mobile-menu-toggle:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
    border-radius: 4px;
}

/* Reduced motion for users who prefer it */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    .cursor {
        animation: none;
    }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    :root {
        --primary-color: #00ff00;
        --secondary-color: #ff0000;
        --accent-color: #0088ff;
        --text-primary: #ffffff;
        --text-secondary: #cccccc;
        --border-color: #666666;
    }
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg-secondary);
}

::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--accent-color);
}

/* Selection styles */
::selection {
    background: rgba(0, 255, 136, 0.3);
    color: var(--text-primary);
}

::-moz-selection {
    background: rgba(0, 255, 136, 0.3);
    color: var(--text-primary);
}

