:root {
    --primary-color: #00e472;
    --primary-color-rgb: 0, 228, 114;
    --secondary-color: #00b0ff;
    --secondary-color-rgb: 0, 176, 255;
    --accent-color: #ff36b0;
    --accent-color-rgb: 255, 54, 176;
    --code-color: #ff5a5f;
    --text-color: #d8dee9;
    --text-light: #a7b6c9;
    --background-color: #0d121c;
    --background-alt: #111827;
    --success-color: #10b981;
    --border-color: #1e2a3d;
    --shadow: 0 4px 20px rgba(0,0,0,0.3);
    --card-shadow: 0 10px 30px rgba(0,0,0,0.2);
    --glass-bg: rgba(16, 22, 36, 0.7);
    --glass-border: rgba(30, 41, 59, 0.5);
    --transition: all 0.3s ease;
    --container-width: 1200px;
    --border-radius: 8px;
    --glow: 0 0 20px rgba(0, 228, 114, 0.3);
    --glow-accent: 0 0 15px rgba(255, 54, 176, 0.4);
    --grid-lines: rgba(30, 42, 61, 0.3);
    
    /* Sidebar */
    --sidebar-width: 280px;
    --sidebar-bg: #111827;
    --sidebar-border: #1e2a3d;
    
    /* Content area */
    --content-bg: #0d121c;
    --section-spacing: 40px;
}

/* Light mode variables */
body:not(.dark-mode) {
    --primary-color: #21a67a;
    --primary-color-rgb: 33, 166, 122;
    --secondary-color: #0085c7;
    --secondary-color-rgb: 0, 133, 199;
    --accent-color: #e62e8b;
    --accent-color-rgb: 230, 46, 139;
    --code-color: #dc3545;
    --text-color: #2a3142;
    --text-light: #4f5a73;
    --background-color: #f3f5f7;
    --background-alt: #e9ecef;
    --border-color: #d5dae1;
    --shadow: 0 4px 20px rgba(0,0,0,0.08);
    --card-shadow: 0 10px 30px rgba(0,0,0,0.05);
    --glass-bg: rgba(255, 255, 255, 0.8);
    --glass-border: rgba(255, 255, 255, 0.6);
    --glow: 0 0 20px rgba(33, 166, 122, 0.2);
    --glow-accent: 0 0 15px rgba(230, 46, 139, 0.3);
    --grid-lines: rgba(220, 230, 240, 0.5);
    
    /* Sidebar */
    --sidebar-bg: #ffffff;
    --sidebar-border: #e5e7eb;
    
    /* Content area */
    --content-bg: #f3f5f7;
}

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

body {
    font-family: 'JetBrains Mono', 'Fira Code', 'SF Mono', monospace;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--background-color);
    background-image: 
        linear-gradient(to right, var(--grid-lines) 1px, transparent 1px),
        linear-gradient(to bottom, var(--grid-lines) 1px, transparent 1px);
    background-size: 20px 20px;
    background-position: center;
    overflow-x: hidden;
    position: relative;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 10% 20%, rgba(var(--primary-color-rgb), 0.05) 0%, transparent 25%),
        radial-gradient(circle at 90% 80%, rgba(var(--accent-color-rgb), 0.05) 0%, transparent 25%);
    pointer-events: none;
    z-index: -1;
}

/* Page Layout */
.page-wrapper {
    display: flex;
    min-height: 100vh;
}

/* Sidebar Styles */
.sidebar {
    width: var(--sidebar-width);
    background: var(--sidebar-bg);
    border-right: 1px solid var(--sidebar-border);
    padding: 2rem;
    position: fixed;
    height: 100vh;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    z-index: 10;
    transition: all 0.3s ease;
    box-shadow: inset -5px 0 15px rgba(0, 0, 0, 0.1);
}

.sidebar::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 1px;
    height: 100%;
    background: linear-gradient(to bottom, 
        transparent 0%, 
        var(--accent-color) 50%, 
        transparent 100%);
    opacity: 0.5;
}

.profile-section {
    text-align: center;
    margin-bottom: 2rem;
}

.profile-image-container {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    margin: 0 auto 1.5rem;
    border: 3px solid rgba(255, 255, 255, 0.3);
    box-shadow: var(--shadow);
    overflow: hidden;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
}

.profile-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.5s ease;
}

.sidebar h1 {
    font-size: 1.6rem;
    margin-bottom: 0.2rem;
    color: var(--primary-color);
}

.sidebar h2 {
    font-size: 1rem;
    font-weight: 500;
    color: var(--text-color);
    margin-bottom: 0.2rem;
}

.sidebar p {
    font-size: 0.9rem;
    color: var(--text-light);
    margin-bottom: 0.5rem;
}

.location {
    font-size: 0.8rem;
    color: var(--text-light);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    margin-bottom: 1.2rem;
}

.sidebar .social-links {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-bottom: 2rem;
}

.sidebar .social-links a {
    color: var(--text-color);
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    transition: var(--transition);
}

.sidebar .social-links a:hover {
    transform: translateY(-3px);
    background: var(--accent-color);
    color: white;
    box-shadow: var(--glow);
}

/* Main Navigation */
.main-nav {
    margin-top: auto;
    margin-bottom: 2rem;
}

.main-nav ul {
    list-style: none;
}

.main-nav ul li {
    margin-bottom: 0.5rem;
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 0.7rem 1rem;
    border-radius: var(--border-radius);
    color: var(--text-color);
    transition: var(--transition);
    font-weight: 500;
}

.nav-link i {
    width: 20px;
    text-align: center;
}

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

.nav-link::before {
    content: '>';
    margin-right: 8px;
    color: var(--accent-color);
    font-weight: bold;
    opacity: 0;
    transform: translateX(-10px);
    transition: all 0.3s ease;
}

.nav-link:hover::before, .nav-link.active::before {
    opacity: 1;
    transform: translateX(0);
}

.theme-switch {
    margin-top: auto;
}

.dark-mode-toggle {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    padding: 0.7rem 1rem;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: var(--border-radius);
    color: var(--text-color);
    cursor: pointer;
    transition: var(--transition);
    font-size: 0.9rem;
    font-weight: 500;
}

.dark-mode-toggle span {
    margin-left: 5px;
}

.dark-mode-toggle:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-2px);
    box-shadow: var(--glow);
}

/* Main Content Area */
/* This will be replaced by the updated version below */

.section {
    padding: 3rem;
    display: none;
}

.section-container {
    max-width: 900px;
    margin: 0 auto;
}

.section h2 {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 2.5rem;
    position: relative;
    display: inline-block;
}

.section h2::before {
    content: '<';
    position: absolute;
    left: -30px;
    color: var(--accent-color);
    opacity: 0.7;
}

.section h2::after {
    content: '>';
    position: absolute;
    right: -30px;
    color: var(--accent-color);
    opacity: 0.7;
}

.section h2 span {
    position: relative;
}

.section h2 span::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
    border-radius: 3px;
    box-shadow: 0 0 10px rgba(var(--primary-color-rgb), 0.4);
}

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

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

/* About Section Styles */
.highlight-text {
    font-size: 1.3rem;
    font-weight: 500;
    margin-bottom: 1.5rem;
    color: var(--primary-color);
}

.about-content p {
    margin-bottom: 2rem;
}

/* Expertise Grid */
.expertise-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 2rem;
}

.expertise-item {
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    padding: 1.5rem;
    border-radius: var(--border-radius);
    border: 1px solid var(--glass-border);
    box-shadow: var(--card-shadow);
    transition: var(--transition);
}

.expertise-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow), var(--glow);
    border-color: var(--accent-color);
}

.expertise-item h3 {
    color: var(--primary-color);
    margin-bottom: 0.8rem;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: 'JetBrains Mono', monospace;
}

.expertise-item h3 i {
    color: var(--accent-color);
}

.expertise-item h3::before {
    content: '//';
    color: var(--code-color);
    font-weight: bold;
    margin-right: 8px;
}

.expertise-item p {
    color: var(--text-light);
    font-size: 0.95rem;
    margin-bottom: 0;
}

/* Experience Cards */
.experience-cards {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 2rem;
}

.experience-card {
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    border-radius: var(--border-radius);
    border: 1px solid var(--glass-border);
    box-shadow: var(--card-shadow);
    overflow: hidden;
    transition: var(--transition);
    height: 100%;
    display: flex;
    flex-direction: column;
}

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

.experience-card-header {
    padding: 1.2rem;
    background: rgba(var(--primary-rgb), 0.05);
    border-bottom: 1px solid var(--glass-border);
    display: flex;
    align-items: center;
    gap: 1rem;
}

.company-logo {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    flex-shrink: 0;
}

.jpmc {
    background: linear-gradient(135deg, #004c8c, #0073cf);
    color: white;
}

.openinvest {
    background: linear-gradient(135deg, #2e7d32, #4caf50);
    color: white;
}

.moap {
    background: linear-gradient(135deg, #7b1fa2, #9c27b0);
    color: white;
}

.experience-card-title {
    flex-grow: 1;
}

.experience-card-title h3 {
    font-size: 1.1rem;
    color: var(--primary-color);
    margin: 0 0 0.25rem 0;
}

.company-name {
    font-weight: 500;
    color: var(--text-color);
    margin-bottom: 0.25rem;
}

.date {
    font-size: 0.85rem;
    color: var(--text-light);
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.experience-card-content {
    padding: 1.2rem;
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
    flex-grow: 1;
}

.responsibilities, .tech-used {
    margin-bottom: 0.5rem;
}

.responsibilities h4, .tech-used h4 {
    font-size: 0.95rem;
    color: var(--text-color);
    margin-bottom: 0.8rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.responsibilities h4 i, .tech-used h4 i {
    color: var(--accent-color);
}

.responsibilities ul {
    padding-left: 1.2rem;
    margin: 0;
}

.responsibilities li {
    margin-bottom: 0.5rem;
    color: var(--text-light);
    font-size: 0.9rem;
}

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

.tech-tags span {
    background: rgba(var(--accent-rgb), 0.1);
    border: 1px solid rgba(var(--accent-rgb), 0.2);
    color: var(--accent-color);
    font-size: 0.8rem;
    padding: 0.25rem 0.8rem;
    border-radius: 30px;
    display: inline-block;
    transition: var(--transition);
}

.tech-tags span:hover {
    background: rgba(var(--accent-rgb), 0.2);
    transform: translateY(-2px);
}
    font-size: 1.1rem;
    margin-bottom: 0.8rem;
}

.experience-item ul {
    list-style-type: none;
}

.experience-item ul li {
    margin-bottom: 0.5rem;
    position: relative;
    padding-left: 1.2rem;
    font-size: 0.95rem;
}

.experience-item ul li:before {
    content: "→";
    position: absolute;
    left: 0;
    color: var(--accent-color);
}

/* Skills Section */
.skills-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 20px;
}

.skill-category {
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    padding: 1.5rem;
    border-radius: var(--border-radius);
    border: 1px solid var(--glass-border);
    box-shadow: var(--card-shadow);
    transition: var(--transition);
}

.skill-category:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow), var(--glow);
    border-color: var(--accent-color);
}

.skill-category h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: 'JetBrains Mono', monospace;
}

.skill-category h3 i {
    color: var(--accent-color);
}

.skill-category h3::before {
    content: 'function';
    color: var(--code-color);
    font-size: 0.8rem;
    opacity: 0.7;
    margin-right: 5px;
}

.skill-category ul {
    list-style-type: none;
}

.skill-category ul li {
    padding: 0.4rem 0;
    border-bottom: 1px solid var(--border-color);
    font-size: 0.95rem;
    position: relative;
    padding-left: 20px;
}

.skill-category ul li::before {
    content: '→';
    position: absolute;
    left: 0;
    color: var(--accent-color);
}

.skill-category ul li:hover {
    color: var(--primary-color);
    transform: translateX(5px);
    transition: all 0.3s ease;
}

.skill-category ul li:last-child {
    border-bottom: none;
}

/* Projects Section */
.project-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
}

.project-item {
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    border-radius: var(--border-radius);
    border: 1px solid var(--glass-border);
    overflow: hidden;
    box-shadow: var(--card-shadow);
    transition: var(--transition);
}

.project-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow), var(--glow);
    border-color: var(--accent-color);
}

.project-item h3 {
    padding: 1.2rem 1.2rem 0.5rem;
    color: var(--primary-color);
    font-size: 1.2rem;
    font-family: 'JetBrains Mono', monospace;
    display: flex;
    align-items: center;
}

.project-item h3::before {
    content: './';
    color: var(--accent-color);
    margin-right: 8px;
    font-weight: bold;
}

.technologies {
    padding: 0 1.2rem 0.8rem;
    color: var(--accent-color);
    font-size: 0.85rem;
    font-style: italic;
}

.project-item p {
    padding: 0 1.2rem 1.2rem;
    color: var(--text-light);
    font-size: 0.95rem;
}

/* Education Section */
.education-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
}

.subsection-title {
    font-size: 1.3rem;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

.subsection-title i {
    color: var(--accent-color);
}

.education-item {
    margin-bottom: 1.5rem;
    border-left: 2px solid var(--primary-color);
    padding-left: 1rem;
}

.education-item h4 {
    font-size: 1.1rem;
    color: var(--primary-color);
    margin-bottom: 0.3rem;
}

.education-item .degree {
    font-weight: 500;
    font-size: 1rem;
    margin-bottom: 0.3rem;
}

.certification-item {
    margin-bottom: 1.2rem;
    border-left: 2px solid var(--accent-color);
    padding-left: 1rem;
}

.certification-item h4 {
    font-size: 1.05rem;
    color: var(--primary-color);
    margin-bottom: 0.3rem;
}

/* Contact Section */
.contact-hero {
    text-align: center;
    margin-bottom: 3rem;
    position: relative;
    padding: 3rem 2rem;
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    border-radius: var(--border-radius);
    border: 1px solid var(--glass-border);
    box-shadow: var(--card-shadow);
    overflow: hidden;
    width: 100%; /* Ensure it takes up full width */
    box-sizing: border-box; /* Include padding and border in width calculation */
}

.contact-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(var(--primary-color-rgb), 0.05), rgba(var(--accent-color-rgb), 0.05));
    z-index: -1;
}

.contact-hero-text h3 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    color: transparent;
    font-family: 'JetBrains Mono', monospace;
    position: relative;
    display: inline-block;
    margin-left: 80px; /* Add space for the echo command */
    margin-right: 15px; /* Add space for the closing quote */
}

.contact-hero-text h3::before {
    content: '$ echo "';
    color: var(--code-color);
    position: absolute;
    left: -80px;
    opacity: 0.7;
    font-size: 1.2rem;
    -webkit-text-fill-color: var(--code-color);
}

.contact-hero-text h3::after {
    content: '"';
    color: var(--code-color);
    position: absolute;
    right: -15px;
    opacity: 0.7;
    font-size: 1.2rem;
    -webkit-text-fill-color: var(--code-color);
}

.contact-hero-text {
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
}

.contact-hero-text p {
    font-size: 1.1rem;
    margin: 0 auto;
    margin-top: 30px; /* Space after the heading */
    color: var(--text-light);
}

.contact-options {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 3rem;
    position: relative;
}

.contact-options::before {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    width: 0;
    height: 30px;
    border-left: 1px dashed var(--border-color);
    transform: translateX(-50%);
}

.contact-card {
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    padding: 1.5rem;
    border-radius: var(--border-radius);
    border: 1px solid var(--glass-border);
    box-shadow: var(--card-shadow);
    text-align: center;
    transition: var(--transition);
}

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

.contact-card-header {
    margin-bottom: 1rem;
}

.contact-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    color: white;
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.contact-card h3 {
    font-size: 1.2rem;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.contact-card p {
    color: var(--text-light);
    line-height: 1.6;
}

.contact-card a {
    color: var(--accent-color);
    transition: var(--transition);
}

.contact-card a:hover {
    color: var(--primary-color);
    text-decoration: underline;
}

.social-contact-links {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 1rem;
}

.social-contact-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(var(--primary-color-rgb), 0.1);
    color: var(--primary-color);
    font-size: 1.2rem;
    transition: var(--transition);
}

.social-contact-links a:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-3px);
    box-shadow: var(--glow);
}

.contact-form-container {
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    padding: 2rem;
    border-radius: var(--border-radius);
    border: 1px solid var(--glass-border);
    box-shadow: var(--card-shadow);
    position: relative;
    margin-top: 20px; /* Extra space at the top */
    width: 100%; /* Ensure it takes full width */
    box-sizing: border-box; /* Include padding in width calculation */
}

.contact-form-header {
    text-align: center;
    margin-bottom: 2rem;
}

.contact-form-header h3 {
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-bottom: 1.5rem; /* More space below to accommodate :after content */
    padding-top: 10px; /* More space above */
    font-family: 'JetBrains Mono', monospace;
    display: inline-block;
    position: relative;
}

.contact-form-header h3::before {
    content: '<form>';
    position: absolute;
    left: -70px;
    top: 10px;
    color: var(--code-color);
    opacity: 0.5;
    font-size: 0.9rem;
}

.contact-form-header h3::after {
    content: '</form>';
    position: absolute;
    bottom: -20px;
    left: 50%;
    transform: translateX(-50%);
    color: var(--code-color);
    opacity: 0.5;
    font-size: 0.9rem;
}

.contact-form-header p {
    color: var(--text-light);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.form-group {
    margin-bottom: 1.5rem;
}

label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--primary-color);
}

input, textarea {
    width: 100%;
    padding: 0.8rem 1rem;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-size: 1rem;
    background: rgba(255, 255, 255, 0.5);
    backdrop-filter: blur(5px);
    color: var(--text-color);
    transition: var(--transition);
}

input:focus, textarea:focus {
    outline: none;
    border-color: var(--accent-color);
    box-shadow: 0 0 0 2px rgba(56, 189, 248, 0.2);
}

textarea {
    min-height: 120px;
    resize: vertical;
}

.btn {
    background: var(--primary-color);
    color: white;
    border: none;
    padding: 0.8rem 1.5rem;
    font-size: 1rem;
    border-radius: 8px;
    cursor: pointer;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    z-index: 1;
    display: inline-block;
    width: 100%;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    opacity: 0;
    z-index: -1;
    transition: var(--transition);
}

.btn:hover {
    box-shadow: var(--glow);
    transform: translateY(-2px);
}

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

/* Footer */
footer {
    text-align: center;
    padding: 2rem;
    color: var(--text-light);
    font-size: 0.9rem;
    margin-top: auto;
    position: relative;
    border-top: 1px solid var(--border-color);
}

footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg, 
        transparent 0%, 
        var(--accent-color) 50%, 
        transparent 100%);
    opacity: 0.3;
}

footer p {
    position: relative;
    display: inline-block;
    font-family: 'JetBrains Mono', monospace;
}

footer p::before {
    content: '© ';
    color: var(--code-color);
}

footer p::after {
    content: ' $';
    color: var(--primary-color);
    animation: blink 1s infinite;
}$';
    color: var(--primary-color);
    animation: blink 1s infinite;
}

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

/* Make sure content fills page height */
.main-content {
    flex: 1;
    margin-left: var(--sidebar-width);
    background: var(--content-bg);
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* Responsive Design */
@media (max-width: 992px) {
    .sidebar {
        width: 220px;
    }
    
    .main-content {
        margin-left: 220px;
    }
    
    .section {
        padding: 2rem;
    }
    
    .contact-options {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .page-wrapper {
        flex-direction: column;
    }
    
    .sidebar {
        width: 100%;
        height: auto;
        position: relative;
        padding: 1rem;
        flex-direction: row;
        align-items: center;
        overflow-x: auto;
        border-right: none;
        border-bottom: 1px solid var(--sidebar-border);
    }
    
    .profile-section {
        margin-bottom: 0;
        margin-right: 1.5rem;
        display: flex;
        align-items: center;
    }
    
    .profile-image-container {
        width: 70px;
        height: 70px;
        margin: 0 1rem 0 0;
    }
    
    .sidebar h1 {
        font-size: 1.2rem;
        text-align: left;
    }
    
    .sidebar h2, .sidebar p {
        display: none;
    }
    
    .sidebar .location {
        display: none;
    }
    
    .sidebar .social-links {
        display: none;
    }
    
    .main-nav {
        margin: 0;
        flex: 1;
        overflow-x: auto;
    }
    
    .main-nav ul {
        display: flex;
        gap: 0.5rem;
    }
    
    .main-nav ul li {
        margin-bottom: 0;
    }
    
    .nav-link {
        padding: 0.5rem 0.8rem;
        white-space: nowrap;
    }
    
    .theme-switch {
        margin-left: 1rem;
    }
    
    .dark-mode-toggle {
        padding: 0.5rem;
        width: auto;
    }
    
    .dark-mode-toggle span {
        display: none;
    }
    
    .main-content {
        margin-left: 0;
        min-height: calc(100vh - 90px); /* Account for header height */
    }
    
    .section {
        padding: 1.5rem;
    }
    
    .expertise-grid, .skills-container, .project-grid, .education-grid {
        grid-template-columns: 1fr;
    }
    
    .contact-options {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .contact-hero {
        padding: 2rem 1rem;
    }
    
    .contact-hero-text h3 {
        font-size: 1.5rem;
        margin-left: 0; /* Remove margin on mobile */
        margin-right: 0; /* Remove margin on mobile */
    }
    
    .contact-hero-text h3::before,
    .contact-hero-text h3::after {
        display: none; /* Hide the terminal elements on mobile */
    }
    
    .contact-form-header h3::before,
    .contact-form-header h3::after {
        display: none; /* Hide the form tags on mobile */
    }
    
    .form-row {
        grid-template-columns: 1fr;
        gap: 0;
    }
    
    .section h2::before,
    .section h2::after {
        display: none; /* Hide angle brackets on mobile */
    }
}

@media (max-width: 480px) {
    .sidebar {
        padding: 0.8rem;
    }
    
    .profile-image-container {
        width: 50px;
        height: 50px;
    }
    
    .sidebar h1 {
        font-size: 1rem;
    }
    
    .nav-link {
        padding: 0.4rem 0.6rem;
        font-size: 0.9rem;
    }
    
    .nav-link i {
        margin-right: 5px;
    }
    
    .section {
        padding: 1rem;
    }
    
    .section h2 {
        font-size: 1.5rem;
    }
    
    .timeline {
        padding-left: 1.2rem;
    }
    
    .experience-item:before {
        left: -1.2rem;
        width: 10px;
        height: 10px;
    }
    
    .contact-hero-text h3 {
        font-size: 1.3rem;
    }
    
    .contact-icon {
        width: 50px;
        height: 50px;
        font-size: 1.2rem;
    }
    
    .contact-form-container {
        padding: 1.5rem 1rem;
    }
}

section:nth-child(even) {
    background-color: var(--background-alt);
}

section h2 {
    font-size: 2.2rem;
    text-align: center;
    margin-bottom: 50px;
    color: var(--primary-color);
    position: relative;
}

section h2:after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
    border-radius: 3px;
}

/* About Section */
#about p {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
    font-size: 1.2rem;
    line-height: 1.8;
}

/* Expertise Section */
.expertise-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 30px;
}

.expertise-item {
    background-color: var(--glass-bg);
    backdrop-filter: blur(10px);
    padding: 30px;
    border-radius: var(--border-radius);
    border: 1px solid var(--glass-border);
    box-shadow: var(--card-shadow);
    transition: var(--transition);
}

.expertise-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow), var(--glow);
    border-color: var(--accent-color);
}

.expertise-item h3 {
    color: var(--primary-color);
    margin-bottom: 15px;
    font-size: 1.3rem;
}

.expertise-item p {
    color: var(--text-light);
}

/* Experience Section */
.experience-item {
    margin-bottom: 40px;
    position: relative;
    padding-left: 30px;
    border-left: 2px solid var(--primary-color);
}

.experience-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.experience-header h3 {
    font-size: 1.4rem;
    color: var(--primary-color);
}

.date {
    color: var(--text-light);
    font-style: italic;
}

.title {
    font-weight: 500;
    font-size: 1.2rem;
    margin-bottom: 15px;
}

.experience-item ul {
    list-style-type: none;
}

.experience-item ul li {
    margin-bottom: 8px;
    position: relative;
    padding-left: 25px;
}

.experience-item ul li:before {
    content: "→";
    position: absolute;
    left: 0;
    color: var(--accent-color);
}

/* Projects Section */
.project-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 30px;
}

.project-item {
    background-color: var(--glass-bg);
    backdrop-filter: blur(10px);
    border-radius: var(--border-radius);
    overflow: hidden;
    border: 1px solid var(--glass-border);
    box-shadow: var(--card-shadow);
    transition: var(--transition);
}

.project-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow), var(--glow);
    border-color: var(--accent-color);
}

.project-item h3 {
    padding: 20px 20px 10px;
    color: var(--primary-color);
    font-size: 1.3rem;
}

.technologies {
    padding: 0 20px 15px;
    color: var(--accent-color);
    font-size: 0.9rem;
    font-style: italic;
}

.project-item p {
    padding: 0 20px 20px;
    color: var(--text-light);
}

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

.skill-category {
    background-color: var(--glass-bg);
    backdrop-filter: blur(10px);
    padding: 25px;
    border-radius: var(--border-radius);
    border: 1px solid var(--glass-border);
    box-shadow: var(--card-shadow);
    transition: var(--transition);
}

.skill-category:hover {
    box-shadow: var(--shadow), var(--glow);
    border-color: var(--accent-color);
}

.skill-category h3 {
    color: var(--primary-color);
    margin-bottom: 15px;
    font-size: 1.3rem;
    text-align: center;
}

.skill-category ul {
    list-style-type: none;
}

.skill-category ul li {
    padding: 8px 0;
    border-bottom: 1px solid var(--border-color);
}

.skill-category ul li:last-child {
    border-bottom: none;
}

/* Education Section */
.education-item {
    margin-bottom: 30px;
    text-align: center;
}

.education-item h3 {
    color: var(--primary-color);
    font-size: 1.4rem;
    margin-bottom: 5px;
}

.degree {
    font-weight: 500;
    font-size: 1.1rem;
    margin-bottom: 5px;
}

/* Certifications Section */
.certifications-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 25px;
}

.certification-item {
    background-color: var(--glass-bg);
    backdrop-filter: blur(10px);
    padding: 25px;
    border-radius: var(--border-radius);
    border: 1px solid var(--glass-border);
    box-shadow: var(--card-shadow);
    text-align: center;
    transition: var(--transition);
}

.certification-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow), var(--glow);
    border-color: var(--accent-color);
}

.certification-item h3 {
    color: var(--primary-color);
    margin-bottom: 10px;
    font-size: 1.2rem;
}

/* Contact Section */
#contact {
    text-align: center;
}

#contact p {
    max-width: 600px;
    margin: 0 auto 40px;
    color: var(--text-light);
}

#contact-form {
    max-width: 600px;
    margin: 0 auto;
}

.form-group {
    margin-bottom: 20px;
}

input, textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    font-size: 1rem;
    transition: var(--transition);
}

input:focus, textarea:focus {
    outline: none;
    border-color: var(--accent-color);
    box-shadow: 0 0 0 2px rgba(2, 119, 189, 0.2);
}

textarea {
    min-height: 150px;
    resize: vertical;
}

.btn {
    background-color: var(--primary-color);
    color: white;
    border: none;
    padding: 12px 25px;
    font-size: 1rem;
    border-radius: 8px;
    cursor: pointer;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    opacity: 0;
    z-index: -1;
    transition: var(--transition);
}

.btn:hover {
    box-shadow: var(--glow);
    transform: translateY(-2px);
}

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

/* Animation classes */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.animate-on-scroll.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Footer */
footer {
    background-color: #333;
    color: white;
    padding: 30px 0;
    text-align: center;
}

/* Responsive Design */
@media (max-width: 768px) {
    header {
        padding: 80px 0;
    }
    
    .hero-content {
        flex-direction: column;
        gap: 30px;
    }
    
    .profile-image-container {
        width: 180px;
        height: 180px;
    }
    
    header h1 {
        font-size: 2.5rem;
    }
    
    header h2 {
        font-size: 1.5rem;
    }
    
    section {
        padding: 60px 0;
    }
    
    section h2 {
        font-size: 1.8rem;
    }
    
    .experience-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .project-grid, .expertise-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    header h1 {
        font-size: 2rem;
    }
    
    .profile-image-container {
        width: 150px;
        height: 150px;
    }
    
    .profile-image-placeholder {
        font-size: 4rem;
    }
    
    .expertise-item, .project-item, .certification-item {
        padding: 20px;
    }
    
    .social-links {
        gap: 10px;
    }
    
    .social-links a {
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
    }
}