/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

:root {
    /* Light Mode Variables */
    --bg-primary: #ffffff;
    --bg-secondary: #f8f9fa;
    --text-primary: #333;
    --text-secondary: #666;
    --text-light: #555;
    --accent-primary: #4A90E2;
    --accent-secondary: #357ABD;
    --border-color: rgba(0, 0, 0, 0.1);
    --shadow-color: rgba(0, 0, 0, 0.08);
    --card-bg: white;
    --nav-bg: rgba(255, 255, 255, 0.95);
}

[data-theme="matrix"] {
    /* Matrix Dark Mode Variables */
    --bg-primary: #000000;
    --bg-secondary: #0a0a0a;
    --text-primary: #00ff41;
    --text-secondary: #00cc33;
    --text-light: #008f11;
    --accent-primary: #00ff41;
    --accent-secondary: #00cc33;
    --border-color: rgba(0, 255, 65, 0.2);
    --shadow-color: rgba(0, 255, 65, 0.1);
    --card-bg: rgba(0, 20, 0, 0.8);
    --nav-bg: rgba(0, 0, 0, 0.95);
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: var(--text-primary);
    background: var(--bg-primary);
    transition: all 0.3s ease;
}

/* Matrix Rain Background */
.matrix-rain {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    opacity: 0;
    transition: opacity 0.5s ease;
    pointer-events: none;
}

[data-theme="matrix"] .matrix-rain {
    opacity: 1;
}

/* Matrix Intro Animation */
.matrix-intro-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #000000;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.5s ease;
}

.matrix-intro-overlay.active {
    opacity: 1;
    visibility: visible;
}

.intro-matrix-rain {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.matrix-terminal {
    position: relative;
    z-index: 2;
    background: rgba(0, 0, 0, 0.8);
    border: 2px solid #00ff41;
    border-radius: 8px;
    padding: 2rem;
    min-width: 400px;
    max-width: 80vw;
    box-shadow: 0 0 30px rgba(0, 255, 65, 0.3);
}

.terminal-text {
    font-family: 'Courier New', monospace;
    color: #00ff41;
    font-size: 1.1rem;
    line-height: 1.4;
    min-height: 150px;
    white-space: pre-wrap;
}

.terminal-cursor {
    display: inline-block;
    color: #00ff41;
    animation: blink-cursor 1s infinite;
    font-family: 'Courier New', monospace;
    font-size: 1.1rem;
}

@keyframes blink-cursor {
    0%, 50% { opacity: 1; }
    51%, 100% { opacity: 0; }
}

/* Hide header content initially when Matrix mode */
[data-theme="matrix"] .header-content {
    opacity: 0;
    transform: translateY(50px);
    transition: all 1s ease;
}

[data-theme="matrix"] .header-content.revealed {
    opacity: 1;
    transform: translateY(0);
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Section Titles */
.section-title {
    font-size: 2.3rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 2.5rem;
    color: var(--text-primary);
    position: relative;
}

.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
    margin: 1rem auto 0;
    border-radius: 2px;
}

[data-theme="matrix"] .section-title {
    font-family: 'Courier New', monospace;
    text-shadow: 0 0 10px var(--accent-primary);
    text-transform: uppercase;
    letter-spacing: 2px;
}

[data-theme="matrix"] .section-title::after {
    box-shadow: 0 0 10px var(--accent-primary);
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: var(--nav-bg);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-color);
    z-index: 1000;
    transition: all 0.3s ease;
}

[data-theme="matrix"] .navbar {
    border-bottom: 1px solid var(--accent-primary);
    box-shadow: 0 2px 10px rgba(0, 255, 65, 0.1);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.nav-logo a {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    text-decoration: none;
    transition: color 0.3s ease;
}

.nav-logo a:hover {
    color: var(--accent-primary);
}

[data-theme="matrix"] .nav-logo a {
    text-shadow: 0 0 5px var(--accent-primary);
    font-family: 'Courier New', monospace;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-link {
    text-decoration: none;
    color: var(--text-light);
    font-weight: 500;
    transition: color 0.3s ease;
    position: relative;
}

.nav-link:hover {
    color: var(--accent-primary);
}

.nav-link::before {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 0;
    background: var(--accent-primary);
    transition: width 0.3s ease;
}

.nav-link:hover::before {
    width: 100%;
}

[data-theme="matrix"] .nav-link {
    font-family: 'Courier New', monospace;
    text-shadow: 0 0 3px var(--accent-primary);
}

[data-theme="matrix"] .nav-link::before {
    box-shadow: 0 0 5px var(--accent-primary);
}

/* Theme Toggle */
.theme-toggle {
    display: flex;
    align-items: center;
}

.theme-btn {
    background: transparent;
    border: 2px solid var(--accent-primary);
    color: var(--accent-primary);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    font-size: 1rem;
}

.theme-btn:hover {
    background: var(--accent-primary);
    color: var(--bg-primary);
    transform: scale(1.1);
}

[data-theme="matrix"] .theme-btn {
    box-shadow: 0 0 10px var(--accent-primary);
    text-shadow: 0 0 5px var(--accent-primary);
}

[data-theme="matrix"] .theme-btn:hover {
    box-shadow: 0 0 20px var(--accent-primary);
}

/* Hamburger Menu */
.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.bar {
    width: 25px;
    height: 3px;
    background: #333;
    margin: 3px 0;
    transition: 0.3s;
}

/* Header Section */
.header-section {
    padding: 120px 0 80px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

[data-theme="matrix"] .header-section {
    background: #000000;
    color: var(--text-primary);
}

/* Header Matrix Rain */
.header-matrix-rain {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    opacity: 0;
    transition: opacity 0.5s ease;
    pointer-events: none;
}

[data-theme="matrix"] .header-matrix-rain {
    opacity: 1;
}

[data-theme="matrix"] .header-section .container {
    position: relative;
    z-index: 2;
}

.header-content {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 3rem;
    align-items: center;
}

.profile-image {
    text-align: center;
}

.profile-image img {
    width: 250px;
    height: 250px;
    border-radius: 50%;
    border: 6px solid rgba(255, 255, 255, 0.3);
    transition: transform 0.3s ease;
}

.profile-image img:hover {
    transform: scale(1.05);
}

.name {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    background: linear-gradient(45deg, #ffffff, #e3f2fd);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

[data-theme="matrix"] .name {
    font-family: 'Courier New', monospace;
    background: none;
    -webkit-background-clip: unset;
    -webkit-text-fill-color: unset;
    background-clip: unset;
    color: var(--accent-primary);
    text-shadow: 0 0 20px var(--accent-primary);
    animation: matrix-glow 2s ease-in-out infinite alternate;
}

@keyframes matrix-glow {
    0% { text-shadow: 0 0 20px var(--accent-primary); }
    100% { text-shadow: 0 0 30px var(--accent-primary), 0 0 40px var(--accent-primary); }
}

.title {
    font-size: 1.5rem;
    font-weight: 500;
    margin-bottom: 1rem;
    opacity: 0.9;
    height: 40px;
    display: flex;
    align-items: center;
}


.subtitle {
    font-size: 1.1rem;
    margin-bottom: 2rem;
    opacity: 0.8;
    line-height: 1.7;
}

[data-theme="matrix"] .title {
    font-family: 'Courier New', monospace;
    color: var(--text-secondary);
    text-shadow: 0 0 10px var(--text-secondary);
}

[data-theme="matrix"] .subtitle {
    font-family: 'Courier New', monospace;
    color: var(--text-light);
    text-shadow: 0 0 5px var(--text-light);
    opacity: 1;
}

[data-theme="matrix"] .header-text {
    background: rgba(0, 0, 0, 0.85);
    border: 2px solid var(--accent-primary);
    border-radius: 12px;
    padding: 2rem;
    backdrop-filter: blur(5px);
    box-shadow: 
        0 0 30px rgba(0, 255, 65, 0.2),
        inset 0 0 30px rgba(0, 255, 65, 0.05);
    position: relative;
    z-index: 3;
}

.header-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 12px 24px;
    border: none;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    cursor: pointer;
}

.btn-primary {
    background: #4A90E2;
    color: white;
}

.btn-primary:hover {
    background: #357ABD;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(74, 144, 226, 0.3);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

[data-theme="matrix"] .btn-primary {
    background: var(--accent-primary);
    color: #000000;
    border: 2px solid var(--accent-primary);
    box-shadow: 0 0 15px rgba(0, 255, 65, 0.3);
    font-family: 'Courier New', monospace;
    text-transform: uppercase;
    letter-spacing: 1px;
}

[data-theme="matrix"] .btn-primary:hover {
    background: transparent;
    color: var(--accent-primary);
    box-shadow: 0 0 25px rgba(0, 255, 65, 0.5);
    text-shadow: 0 0 10px var(--accent-primary);
}

[data-theme="matrix"] .btn-secondary {
    background: transparent;
    color: var(--accent-primary);
    border: 2px solid var(--accent-primary);
    box-shadow: 0 0 10px rgba(0, 255, 65, 0.2);
    font-family: 'Courier New', monospace;
    text-transform: uppercase;
    letter-spacing: 1px;
}

[data-theme="matrix"] .btn-secondary:hover {
    background: var(--accent-primary);
    color: #000000;
    box-shadow: 0 0 20px rgba(0, 255, 65, 0.4);
    text-shadow: none;
}

/* About Section */
.about-section {
    padding: 60px 0;
    background: var(--bg-secondary);
}

[data-theme="matrix"] .about-section {
    background: var(--bg-secondary);
}

[data-theme="matrix"] .about-text p {
    font-family: 'Courier New', monospace;
    color: var(--text-secondary);
    text-shadow: 0 0 5px var(--text-secondary);
    text-align: left;
    letter-spacing: normal;
}

.about-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 2rem;
    align-items: start;
}

.about-text p {
    font-size: 1.05rem;
    margin-bottom: 1.2rem;
    text-align: justify;
    line-height: 1.7;
}

.about-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.stat {
    text-align: center;
    padding: 1.5rem 1rem;
    background: var(--card-bg);
    border-radius: 12px;
    box-shadow: 0 5px 15px var(--shadow-color);
    transition: transform 0.3s ease;
    border: 1px solid var(--border-color);
}

.stat:hover {
    transform: translateY(-3px);
}

.stat-number {
    display: block;
    font-size: 2rem;
    font-weight: 700;
    color: var(--accent-primary);
    margin-bottom: 0.25rem;
}

.stat-label {
    font-size: 0.85rem;
    color: var(--text-secondary);
    font-weight: 500;
    line-height: 1.3;
}

[data-theme="matrix"] .stat {
    background: rgba(0, 20, 0, 0.9);
    border: 1px solid var(--accent-primary);
    box-shadow: 0 0 20px rgba(0, 255, 65, 0.1), inset 0 0 20px rgba(0, 255, 65, 0.05);
}

[data-theme="matrix"] .stat-number {
    text-shadow: 0 0 10px var(--accent-primary);
    font-family: 'Courier New', monospace;
}

[data-theme="matrix"] .stat-label {
    font-family: 'Courier New', monospace;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Timeline Styles */
.timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(to bottom, var(--accent-primary) 0%, var(--accent-primary) var(--timeline-progress, 0%), transparent var(--timeline-progress, 0%));
    transition: all 0.3s ease;
}

[data-theme="matrix"] .timeline::before {
    box-shadow: 0 0 10px var(--accent-primary);
    background: linear-gradient(to bottom, var(--accent-primary) 0%, var(--accent-primary) var(--timeline-progress, 0%), transparent var(--timeline-progress, 0%));
}

.timeline-item {
    position: relative;
    margin: 2rem 0;
    display: flex;
    align-items: flex-start;
    gap: 2rem;
    opacity: 0;
    transform: translateY(50px);
    transition: all 0.8s ease;
}

.timeline-item.visible {
    opacity: 1;
    transform: translateY(0);
}

.timeline-item.fade-out {
    opacity: 0.3;
    transform: translateY(-20px);
}

.timeline-item:nth-child(odd) {
    flex-direction: row;
}

.timeline-item:nth-child(even) {
    flex-direction: row-reverse;
}

.timeline-date {
    flex: 0 0 200px;
    text-align: center;
    font-weight: 600;
    color: #4A90E2;
    background: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    border: 2px solid #4A90E2;
    position: relative;
    white-space: nowrap;
    overflow: hidden;
}

[data-theme="matrix"] .timeline-date {
    font-family: 'Courier New', monospace;
    color: var(--accent-primary);
    background: rgba(0, 20, 0, 0.8);
    border: 2px solid var(--accent-primary);
    box-shadow: 0 0 15px rgba(0, 255, 65, 0.3);
    text-shadow: 0 0 5px var(--accent-primary);
    text-transform: uppercase;
    letter-spacing: 1px;
}


.timeline-content {
    flex: 1;
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease;
}

.timeline-content:hover {
    transform: translateY(-3px);
}

[data-theme="matrix"] .timeline-content {
    background: var(--card-bg);
    border: 1px solid var(--accent-primary);
    box-shadow: 0 0 15px rgba(0, 255, 65, 0.1), inset 0 0 15px rgba(0, 255, 65, 0.05);
}

[data-theme="matrix"] .timeline-content:hover {
    box-shadow: 0 0 25px rgba(0, 255, 65, 0.2), inset 0 0 25px rgba(0, 255, 65, 0.1);
}

.timeline-content h3 {
    color: #2c3e50;
    margin-bottom: 0.5rem;
    font-size: 1.3rem;
}

.timeline-content h4 {
    color: #4A90E2;
    margin-bottom: 1rem;
    font-weight: 600;
}

[data-theme="matrix"] .timeline-content h3 {
    font-family: 'Courier New', monospace;
    color: var(--accent-primary);
    text-shadow: 0 0 10px var(--accent-primary);
    text-transform: uppercase;
    letter-spacing: 1px;
}

[data-theme="matrix"] .timeline-content h4 {
    font-family: 'Courier New', monospace;
    color: var(--text-secondary);
    text-shadow: 0 0 5px var(--text-secondary);
}

[data-theme="matrix"] .timeline-content p,
[data-theme="matrix"] .timeline-content li {
    font-family: 'Courier New', monospace;
    color: var(--text-light);
    text-shadow: 0 0 3px var(--text-light);
}

.timeline-content ul {
    margin-left: 1rem;
}

.timeline-content li {
    margin-bottom: 0.5rem;
    line-height: 1.6;
}

/* Education Section */
.education-section {
    padding: 60px 0;
    background: white;
}

[data-theme="matrix"] .education-section {
    background: var(--bg-primary);
}

/* Skills Section */
.skills-section {
    padding: 60px 0;
    background: #f8f9fa;
}

[data-theme="matrix"] .skills-section {
    background: var(--bg-secondary);
}

.skills-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    margin-bottom: 3rem;
}

.skill-category {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
}

[data-theme="matrix"] .skill-category {
    background: var(--card-bg);
    border: 1px solid var(--accent-primary);
    box-shadow: 0 0 20px rgba(0, 255, 65, 0.1), inset 0 0 20px rgba(0, 255, 65, 0.05);
}

.skill-category h3 {
    margin-bottom: 2rem;
    color: #2c3e50;
    font-size: 1.5rem;
}

[data-theme="matrix"] .skill-category h3 {
    font-family: 'Courier New', monospace;
    color: var(--accent-primary);
    text-shadow: 0 0 10px var(--accent-primary);
    text-transform: uppercase;
    letter-spacing: 2px;
}

.skills-list {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.skill-item {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 8px;
    border: 1px solid rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.skill-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.skill-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
}

.skill-name {
    font-weight: 600;
    color: #2c3e50;
    font-size: 1.1rem;
}

.skill-level {
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.skill-level.expert {
    background: #e8f5e8;
    color: #2e7d32;
    border: 1px solid #4caf50;
}

.skill-level.advanced {
    background: #e3f2fd;
    color: #1565c0;
    border: 1px solid #2196f3;
}

.skill-level.intermediate {
    background: #fff3e0;
    color: #ef6c00;
    border: 1px solid #ff9800;
}

.skill-description {
    color: #666;
    line-height: 1.6;
    font-size: 0.95rem;
    margin: 0;
}

[data-theme="matrix"] .skill-item {
    background: rgba(0, 20, 0, 0.6);
    border: 1px solid var(--accent-primary);
    box-shadow: 0 0 10px rgba(0, 255, 65, 0.1), inset 0 0 10px rgba(0, 255, 65, 0.05);
}

[data-theme="matrix"] .skill-item:hover {
    box-shadow: 0 0 20px rgba(0, 255, 65, 0.2), inset 0 0 20px rgba(0, 255, 65, 0.1);
    transform: translateY(-3px);
}

[data-theme="matrix"] .skill-name {
    font-family: 'Courier New', monospace;
    color: var(--accent-primary);
    text-shadow: 0 0 8px var(--accent-primary);
    text-transform: uppercase;
    letter-spacing: 1px;
}

[data-theme="matrix"] .skill-level {
    font-family: 'Courier New', monospace;
    text-shadow: 0 0 5px currentColor;
}

[data-theme="matrix"] .skill-level.expert {
    background: rgba(0, 255, 65, 0.1);
    color: var(--accent-primary);
    border: 1px solid var(--accent-primary);
    box-shadow: 0 0 10px rgba(0, 255, 65, 0.3);
}

[data-theme="matrix"] .skill-level.advanced {
    background: rgba(0, 200, 50, 0.1);
    color: #00cc33;
    border: 1px solid #00cc33;
    box-shadow: 0 0 10px rgba(0, 200, 50, 0.3);
}

[data-theme="matrix"] .skill-level.intermediate {
    background: rgba(0, 150, 30, 0.1);
    color: #009922;
    border: 1px solid #009922;
    box-shadow: 0 0 10px rgba(0, 150, 30, 0.3);
}

[data-theme="matrix"] .skill-description {
    font-family: 'Courier New', monospace;
    color: var(--text-light);
    text-shadow: 0 0 3px var(--text-light);
}

/* Certifications */
.certifications {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
}

[data-theme="matrix"] .certifications {
    background: var(--card-bg);
    border: 1px solid var(--accent-primary);
    box-shadow: 0 0 20px rgba(0, 255, 65, 0.1), inset 0 0 20px rgba(0, 255, 65, 0.05);
}

.certifications h3 {
    margin-bottom: 2rem;
    color: #2c3e50;
    font-size: 1.5rem;
}

[data-theme="matrix"] .certifications h3 {
    font-family: 'Courier New', monospace;
    color: var(--accent-primary);
    text-shadow: 0 0 10px var(--accent-primary);
    text-transform: uppercase;
    letter-spacing: 2px;
}

.cert-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.cert-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.cert-item:hover {
    border-color: #4A90E2;
    background: #f8f9ff;
}

.cert-item i {
    font-size: 2rem;
    color: #4A90E2;
}

[data-theme="matrix"] .cert-item i {
    color: var(--accent-primary);
    text-shadow: 0 0 10px var(--accent-primary);
}

.cert-item h4 {
    margin-bottom: 0.25rem;
    color: #2c3e50;
}

.cert-item p {
    color: #666;
    font-size: 0.9rem;
}

[data-theme="matrix"] .cert-item {
    border-color: var(--accent-primary);
    background: rgba(0, 20, 0, 0.3);
    box-shadow: 0 0 10px rgba(0, 255, 65, 0.1);
}

[data-theme="matrix"] .cert-item:hover {
    border-color: var(--accent-primary);
    background: rgba(0, 40, 0, 0.5);
    box-shadow: 0 0 20px rgba(0, 255, 65, 0.2);
}

[data-theme="matrix"] .cert-item h4 {
    font-family: 'Courier New', monospace;
    color: var(--accent-primary);
    text-shadow: 0 0 5px var(--accent-primary);
    text-transform: uppercase;
}

[data-theme="matrix"] .cert-item p {
    font-family: 'Courier New', monospace;
    color: var(--text-secondary);
    text-shadow: 0 0 3px var(--text-secondary);
}

/* Experience Section */
.experience-section {
    padding: 60px 0;
    background: white;
}

[data-theme="matrix"] .experience-section {
    background: var(--bg-primary);
}

.tech-stack {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 1rem;
}

.tech-tag {
    background: #e3f2fd;
    color: #1976d2;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
}

[data-theme="matrix"] .tech-tag {
    background: rgba(0, 255, 65, 0.1);
    color: var(--accent-primary);
    border: 1px solid var(--accent-primary);
    box-shadow: 0 0 5px rgba(0, 255, 65, 0.2);
    font-family: 'Courier New', monospace;
    text-shadow: 0 0 3px var(--accent-primary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Projects Section */
.projects-section {
    padding: 60px 0;
    background: #f8f9fa;
}

[data-theme="matrix"] .projects-section {
    background: var(--bg-secondary);
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 2rem;
}

.project-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease;
}

[data-theme="matrix"] .project-card {
    background: var(--card-bg);
    border: 1px solid var(--accent-primary);
    box-shadow: 0 0 20px rgba(0, 255, 65, 0.1), inset 0 0 20px rgba(0, 255, 65, 0.05);
}

[data-theme="matrix"] .project-card:hover {
    box-shadow: 0 0 30px rgba(0, 255, 65, 0.2), inset 0 0 30px rgba(0, 255, 65, 0.1);
}

.project-card:hover {
    transform: translateY(-5px);
}

.project-image img {
    width: 100%;
    height: 250px;
    object-fit: cover;
}

.project-content {
    padding: 2rem;
}

.project-content h3 {
    margin-bottom: 1rem;
    color: #2c3e50;
}

.project-content p {
    margin-bottom: 1rem;
    line-height: 1.6;
}

[data-theme="matrix"] .project-content h3 {
    font-family: 'Courier New', monospace;
    color: var(--accent-primary);
    text-shadow: 0 0 10px var(--accent-primary);
    text-transform: uppercase;
    letter-spacing: 1px;
}

[data-theme="matrix"] .project-content p {
    font-family: 'Courier New', monospace;
    color: var(--text-secondary);
    text-shadow: 0 0 5px var(--text-secondary);
}

.project-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

/* Contact Section */
.contact-section {
    padding: 60px 0;
    background: white;
}

[data-theme="matrix"] .contact-section {
    background: var(--bg-primary);
}

.contact-content {
    display: flex;
    justify-content: center;
}

.contact-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    max-width: 1000px;
    width: 100%;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.5rem;
    background: #f8f9fa;
    border-radius: 12px;
    transition: all 0.3s ease;
}

[data-theme="matrix"] .contact-item {
    background: rgba(0, 20, 0, 0.6);
    border: 1px solid var(--accent-primary);
    box-shadow: 0 0 15px rgba(0, 255, 65, 0.1), inset 0 0 15px rgba(0, 255, 65, 0.05);
}

[data-theme="matrix"] .contact-item:hover {
    background: rgba(0, 40, 0, 0.8);
    box-shadow: 0 0 25px rgba(0, 255, 65, 0.2), inset 0 0 25px rgba(0, 255, 65, 0.1);
}

.contact-item:hover {
    background: #e3f2fd;
}

.contact-item i {
    font-size: 1.5rem;
    color: #4A90E2;
    width: 30px;
    text-align: center;
}

[data-theme="matrix"] .contact-item i {
    color: var(--accent-primary);
    text-shadow: 0 0 10px var(--accent-primary);
}

.contact-item h4 {
    margin-bottom: 0.25rem;
    color: #2c3e50;
}

.contact-item p {
    color: #666;
}

[data-theme="matrix"] .contact-item h4 {
    font-family: 'Courier New', monospace;
    color: var(--accent-primary);
    text-shadow: 0 0 5px var(--accent-primary);
    text-transform: uppercase;
    letter-spacing: 1px;
}

[data-theme="matrix"] .contact-item p {
    font-family: 'Courier New', monospace;
    color: var(--text-secondary);
    text-shadow: 0 0 3px var(--text-secondary);
}

.contact-item a {
    color: #4A90E2;
    text-decoration: none;
}

.contact-item a:hover {
    text-decoration: underline;
}

[data-theme="matrix"] .contact-item a {
    color: var(--accent-primary);
    text-shadow: 0 0 5px var(--accent-primary);
}

[data-theme="matrix"] .contact-item a:hover {
    text-shadow: 0 0 15px var(--accent-primary);
    text-decoration: none;
}

/* Contact Form */
.contact-form {
    background: #f8f9fa;
    padding: 2rem;
    border-radius: 12px;
}

[data-theme="matrix"] .contact-form {
    background: var(--card-bg);
    border: 1px solid var(--accent-primary);
    box-shadow: 0 0 20px rgba(0, 255, 65, 0.1), inset 0 0 20px rgba(0, 255, 65, 0.05);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 1rem;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #4A90E2;
}

[data-theme="matrix"] .form-group input,
[data-theme="matrix"] .form-group textarea {
    background: rgba(0, 20, 0, 0.5);
    border: 2px solid var(--accent-primary);
    color: var(--text-primary);
    font-family: 'Courier New', monospace;
    box-shadow: 0 0 5px rgba(0, 255, 65, 0.1);
}

[data-theme="matrix"] .form-group input:focus,
[data-theme="matrix"] .form-group textarea:focus {
    border-color: var(--accent-primary);
    box-shadow: 0 0 15px rgba(0, 255, 65, 0.3);
    text-shadow: 0 0 3px var(--accent-primary);
}

[data-theme="matrix"] .form-group input::placeholder,
[data-theme="matrix"] .form-group textarea::placeholder {
    color: var(--text-light);
    opacity: 0.7;
}

/* Footer */
.footer {
    background: #2c3e50;
    color: white;
    padding: 2rem 0;
    text-align: center;
}

[data-theme="matrix"] .footer {
    background: var(--bg-primary);
    border-top: 1px solid var(--accent-primary);
    color: var(--text-primary);
    box-shadow: 0 -2px 10px rgba(0, 255, 65, 0.1);
}

[data-theme="matrix"] .footer p {
    font-family: 'Courier New', monospace;
    color: var(--text-secondary);
    text-shadow: 0 0 5px var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 1px;
}

[data-theme="matrix"] .social-links a {
    color: var(--accent-primary);
    text-shadow: 0 0 5px var(--accent-primary);
}

[data-theme="matrix"] .social-links a:hover {
    color: var(--accent-primary);
    text-shadow: 0 0 15px var(--accent-primary);
    transform: scale(1.2);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-links a {
    color: white;
    font-size: 1.2rem;
    transition: color 0.3s ease;
}

.social-links a:hover {
    color: #4A90E2;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-on-scroll {
    opacity: 1 !important;
    transform: translateY(0) !important;
    transition: all 0.8s ease !important;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }

    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background-color: white;
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: 0 10px 27px rgba(0, 0, 0, 0.05);
        padding: 2rem 0;
    }

    .nav-menu.active {
        left: 0;
    }

    .header-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 2rem;
    }

    .name {
        font-size: 2.5rem;
    }

    .about-content {
        grid-template-columns: 1fr;
    }

    .about-stats {
        grid-template-columns: 1fr 1fr;
        gap: 1rem;
    }

    .skills-grid {
        grid-template-columns: 1fr;
    }

    .timeline::before {
        left: 20px;
    }

    .timeline-item {
        flex-direction: column !important;
        padding-left: 50px;
    }

    .timeline-date {
        align-self: flex-start;
        margin-bottom: 1rem;
        flex: 0 0 auto;
        white-space: normal;
        min-width: 120px;
    }

    .contact-info {
        grid-template-columns: 1fr;
    }

    .projects-grid {
        grid-template-columns: 1fr;
    }

    .footer-content {
        flex-direction: column;
        text-align: center;
    }

    .section-title {
        font-size: 2rem;
    }

    .cert-grid {
        grid-template-columns: 1fr;
    }

    .matrix-terminal {
        min-width: 90vw;
        padding: 1.5rem;
        margin: 1rem;
    }

    .terminal-text {
        font-size: 0.9rem;
        min-height: 120px;
    }

    [data-theme="matrix"] .header-text {
        padding: 1.5rem;
        margin: 1rem;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }

    .nav-container {
        padding: 1rem;
    }

    .header-section {
        padding: 100px 0 60px;
    }

    .name {
        font-size: 2rem;
    }

    .profile-image img {
        width: 200px;
        height: 200px;
    }

    .header-buttons {
        flex-direction: column;
        align-items: center;
    }

    .btn {
        width: 100%;
        justify-content: center;
    }

    .section-title {
        font-size: 1.8rem;
    }

    .about-stats {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
}

/* Enhanced fade-out effects */
.animate-on-scroll.fade-out,
.project-card.fade-out,
.cert-item.fade-out,
.skill-category.fade-out,
.stat.fade-out {
    opacity: 0.3 !important;
    transform: translateY(-20px) !important;
    transition: all 0.4s ease !important;
}

.timeline-item,
.project-card,
.cert-item,
.skill-category,
.stat {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease;
}

.timeline-item.visible,
.project-card.animate-on-scroll,
.cert-item.animate-on-scroll,
.skill-category.animate-on-scroll,
.stat.animate-on-scroll {
    opacity: 1;
    transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}
