/* Core Variables - Match index.html */
:root {
    --primary-color: #10a37f;
    --secondary-color: #0f0f0f;
    --text-primary: #ffffff;
    --text-secondary: rgba(255, 255, 255, 0.7);
    --bg-light: #000000;
    --bg-accent: #0f0f0f;
    --accent-light: rgba(16, 163, 127, 0.1);
    --transition: 0.3s ease;
    --border-radius: 12px;
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 4px 8px rgba(0, 0, 0, 0.3);
    --shadow-lg: 0 10px 20px rgba(0, 0, 0, 0.4);
}

/* Dark mode variables - Match index.html */
[data-theme="dark"] {
    --primary-color: #10a37f;
    --text-primary: #ffffff;
    --text-secondary: rgba(255, 255, 255, 0.7);
    --bg-light: #000000;
    --bg-accent: #0f0f0f;
    --accent-light: rgba(16, 163, 127, 0.1);
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 4px 8px rgba(0, 0, 0, 0.3);
    --shadow-lg: 0 10px 20px rgba(0, 0, 0, 0.4);
}

/* Respect system preferences for dark mode - Match index.html */
@media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]) {
        --primary-color: #10a37f;
        --text-primary: #ffffff;
        --text-secondary: rgba(255, 255, 255, 0.7);
        --bg-light: #000000;
        --bg-accent: #0f0f0f;
        --accent-light: rgba(16, 163, 127, 0.1);
        --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.3);
        --shadow-md: 0 4px 8px rgba(0, 0, 0, 0.3);
        --shadow-lg: 0 10px 20px rgba(0, 0, 0, 0.4);
    }
}

/* Add this after the dark mode variables */
[data-theme="dark"] .text-muted.small {
    color: rgba(255, 255, 255, 0.7) !important;
}

@media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]) .text-muted.small {
        color: rgba(255, 255, 255, 0.7) !important;
    }
}

/* Base Styles */
body {
    font-family: 'Inter', sans-serif;
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    background-color: #000000; /* Black background like index.html */
    transition: background-color 0.3s ease, color 0.3s ease;
    animation: bodyFadeIn 0.4s ease-out;
    will-change: opacity;
    position: relative;
}

@keyframes bodyFadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

h1, h2, h3, h4, h5 {
    font-family: 'Inter', sans-serif;
    font-weight: 600;
}

.display-4, .display-5 {
    font-weight: 700;
    letter-spacing: -0.01em;
}

/* Navbar styles matching ai.html */
.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 1.25rem;
    background: transparent;
    border-bottom: none;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: none;
    transition: all 0.3s ease;
}        .header-title {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-weight: 600;
    color: var(--text-primary);
    text-decoration: none;
    position: relative;
    transition: all 0.3s ease;
}

.header-title:hover {
    color: var(--accent-color);
    transform: translateY(-2px);
    transition: all 0.3s cubic-bezier(0.2, 0, 0.2, 1);
}

.header-title img {
    height: 28px;
    transition: transform 0.5s ease;
}

.header-title:hover img {
    transform: rotate(10deg);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.icon-btn {
    background: transparent;
    border: none;
    border-radius: 6px;
    padding: 0.4rem;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.2s;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.icon-btn:hover {
    background: var(--accent-light);
    color: var(--text-primary);
}

.icon-btn.active {
    color: var(--accent-color);
}

.nav-link {
    color: var(--text-primary);
    text-decoration: none;
    font-size: 1rem;
    font-weight: 500;
    padding: 0.4rem 0.8rem;
    border-radius: 6px;
    transition: all 0.2s;
    font-family: 'Inter', sans-serif;
    letter-spacing: 0.02em;
}

.nav-link:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--accent-color);
}

.nav-link.active {
    background-color: rgba(37, 150, 190, 0.1);
    font-weight: 700;
}

/* Hero Section */
.about-hero {
    padding: 120px 0 80px;
    position: relative;
    overflow: hidden;
    background-color: var(--bg-light);
    background-size: 120%;
}

.about-hero::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 0;
}

.about-hero {
    padding-top: 7.5rem; /* Account for fixed navbar + 2rem extra */
}

.about-hero .container-lg {
    position: relative;
    z-index: 1;
}

.portrait-wrapper {
    position: relative;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    transform: rotate(-2deg);
    transition: transform 0.5s cubic-bezier(0.2, 0, 0.2, 1);
    will-change: transform;
}

.portrait-wrapper:hover {
    transform: rotate(0deg) scale(1.02);
}

.portrait-wrapper img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.7s ease;
}

.portrait-wrapper:hover img {
    transform: scale(1.05);
}

.gradient-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 50%;
    background: linear-gradient(to top, rgba(0,0,0,0.7) 0%, transparent 100%);
    z-index: 1;
}

.display-4 {
    position: relative;
    z-index: 1;
}

.text-gradient {
    background: linear-gradient(90deg, var(--primary-color), rgb(41, 171, 226));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline;
}

.border-left {
    position: relative;
    padding-left: 1.5rem;
    font-family: 'Inter', sans-serif;
    font-weight: 500;
    line-height: 1.5;
}

.border-left::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background: linear-gradient(to bottom, var(--primary-color), rgb(41, 171, 226));
    border-radius: 3px;
}

.badge {
    background: linear-gradient(90deg, var(--primary-color), rgb(41, 171, 226));
    border: none;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    font-size: 0.7rem;
    padding: 0.5rem 1rem;
    border-radius: 2rem;
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    letter-spacing: 0.02em;
}

/* Vision Section */
.vision-section {
    padding: 100px 0;
    background-color: var(--bg-light);
    position: relative;
}

.vision-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: radial-gradient(var(--primary-color) 1px, transparent 1px);
    background-size: 30px 30px;
    opacity: 0.05;
    z-index: 0;
}

.vision-card {
    background-color: var(--bg-light);
    border-radius: var(--border-radius);
    padding: 2rem;
    height: 100%;
    box-shadow: var(--shadow-md);
    transition: transform 0.4s cubic-bezier(0.2, 0, 0.2, 1), 
                box-shadow 0.4s cubic-bezier(0.2, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    z-index: 1;
    will-change: transform, box-shadow;
}

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

.vision-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 0;
    background: linear-gradient(to bottom, var(--primary-color), rgb(41, 171, 226));
    transition: height 0.5s ease;
}

.vision-card:hover::before {
    height: 100%;
}

.vision-icon {
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(37, 150, 190, 0.1);
    color: var(--primary-color);
    font-size: 1.5rem;
    border-radius: 12px;
    margin-bottom: 1.5rem;
    transition: all 0.3s ease;
}

.vision-card:hover .vision-icon {
    transform: scale(1.1);
}

/* Timeline Styles */
.timeline-section {
    background-color: var(--bg-accent);
    padding: 80px 0;
}

.timeline-steps {
    display: flex;
    justify-content: space-between;
    margin: 0 auto;
    max-width: 900px;
    position: relative;
    gap: 30px; /* Add this line to create spacing between phases */
}

.timeline-steps::before {
    content: '';
    position: absolute;
    top: 40px;
    left: 0;
    right: 0;
    height: 4px;
    background-color: var(--text-secondary);
    opacity: 0.2;
    z-index: 0;
}

.step {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    z-index: 1;
    width: 33.333%;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.step.animated {
    opacity: 1;
    transform: translateY(0);
}

.step-icon {
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: white;
    border-radius: 50%;
    background-color: var(--text-secondary);
    opacity: 0.5;
    margin-bottom: 1rem;
    position: relative;
    z-index: 1;
    transition: all 0.3s ease;
}

.step.completed .step-icon,
.step.active .step-icon {
    box-shadow: 0 0 0 6px rgba(37, 150, 190, 0.2);
    opacity: 1;
}

.step-icon::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 50%;
    background: conic-gradient(from 0deg, var(--primary-color) 0%, transparent 0%);
    mask: radial-gradient(transparent 60%, black 60%);
    -webkit-mask: radial-gradient(transparent 60%, black 60%);
    transition: all 0.6s ease;
}

.step.completed .step-icon::before {
    background: conic-gradient(from 0deg, var(--primary-color) 100%, transparent 0%);
}

.step.active .step-icon::before {
    background: conic-gradient(from 0deg, var(--primary-color) 65%, transparent 0%);
}

.step h5 {
    font-size: 1rem;
    font-weight: 600;
    margin: 0.5rem 0;
    text-align: center;
    font-family: 'Inter', sans-serif;
}

.step p {
    font-size: 0.875rem;
    color: var(--text-secondary);
    text-align: center;
    margin-bottom: 1rem;
}

.progress {
    width: 100%;
    height: 6px;
    background-color: var(--text-secondary);
    opacity: 0.2;
    border-radius: 3px;
    overflow: hidden;
}



/* Story Section */
.story-section {
    background-color: var(--bg-light);
    padding: 80px 0;
}

.story-section .lead {
    font-size: 1.2rem;
    color: var(--primary-color);
    font-style: italic;
    font-family: 'Inter', sans-serif;
    font-weight: 500;
}

/* Contact Section */
.contact-section {
    background-color: #222;
    color: white;
    padding: 80px 0;
    position: relative;
    overflow: hidden;
}

.contact-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.contact-section .container {
    position: relative;
    z-index: 1;
}

.social-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(255,255,255,0.1);
    color: white;
    transition: all 0.3s ease;
}

.social-icon:hover {
    background-color: var(--primary-color);
    transform: translateY(-5px);
}

/* Footer */
footer {
    background-color: var(--bg-light);
    color: var(--text-secondary);
    padding: 30px 0;
    text-align: center;
}

.footer-social {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 1rem;
}

.footer-social a {
    color: var(--text-secondary);
    transition: color 0.3s ease;
}

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

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

.fade-in-up {
    animation: fadeInUp 0.6s cubic-bezier(0.2, 0, 0.2, 1) forwards;
    opacity: 0;
    will-change: transform, opacity;
}

.delay-1 { animation-delay: 0.1s; }
.delay-2 { animation-delay: 0.2s; }
.delay-3 { animation-delay: 0.3s; }
.delay-4 { animation-delay: 0.4s; }
.delay-5 { animation-delay: 0.5s; }

/* Theme toggle */
.theme-toggle {
    cursor: pointer;
    transition: all 0.3s ease;
}

/* Media Queries */
@media (max-width: 1200px) {
    .about-hero {
        padding: 100px 0 60px;
    }
    
    .vision-card {
        padding: 1.5rem;
    }
    
    .display-4 {
        font-size: 2.5rem;
    }
    
    .display-5 {
        font-size: 2rem;
    }
}

@media (max-width: 992px) {
    .about-hero {
        padding: 80px 0 60px;
    }
    
    .timeline-steps {
        flex-direction: column;
        align-items: flex-start;
        gap: 4rem; /* Increase spacing for mobile view */
    }
    
    .timeline-steps::before {
        top: 0;
        bottom: 0;
        left: 40px;
        right: auto;
        width: 4px;
        height: auto;
    }
    
    .step {
        width: 100%;
        flex-direction: row;
        align-items: flex-start;
        padding-left: 80px;
    }
    
    .step-icon {
        position: absolute;
        left: 0;
        margin-bottom: 0;
    }
    
    .step h5, .step p {
        text-align: left;
    }
    
    .border-left {
        padding-left: 1rem;
    }
    
    .skills-section .skill-progress {
        margin-bottom: 2rem;
    }
}

@media (max-width: 768px) {
    .portrait-wrapper {
        max-width: 80%;
        margin: 0 auto 2rem;
    }
    
    .header-title span {
        display: none;
    }
    .about-hero {
        padding: 60px 0 40px;
    }
    
    .display-4 {
        font-size: 2.2rem;
        margin-bottom: 1rem;
    }
    
    .display-5 {
        font-size: 1.8rem;
    }
    
    .vision-section, .story-section, .skills-section, .timeline-section, .contact-section {
        padding: 50px 0;
    }
    
    .story-section .lead {
        font-size: 1.1rem;
    }
    
    .border-left {
        padding-left: 0.75rem;
    }
    
    .border-left::before {
        width: 2px;
    }
    
    .contact-section h2 {
        font-size: 2rem;
    }
}

@media (max-width: 576px) {
    .header-title span {
        display: none; /* Hide text logo on very small screens */
    }
    
    .header {
        padding: 0.5rem;
    }
    
    .nav-link {
        padding: 0.3rem 0.6rem;
        font-size: 0.9rem;
    }
    
    .about-hero {
        padding: 40px 0 30px;
    }
    
    .display-4 {
        font-size: 1.8rem;
    }
    
    .display-5 {
        font-size: 1.5rem;
    }
    
    .badge {
        font-size: 0.6rem;
        padding: 0.4rem 0.8rem;
    }
    
    .vision-section, .story-section, .skills-section, .timeline-section, .contact-section {
        padding: 40px 0;
    }
    
    .vision-card {
        padding: 1.25rem;
    }
    
    .vision-icon {
        width: 45px;
        height: 45px;
        font-size: 1.2rem;
        margin-bottom: 1rem;
    }
    
    .story-section .lead {
        font-size: 1rem;
    }
    
    .border-left {
        padding-left: 0.5rem;
        font-size: 0.9rem;
    }
    
    .step-icon {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
    }
    
    .step {
        padding-left: 70px;
    }
    
    .timeline-steps::before {
        left: 30px;
    }
    
    .social-icon {
        width: 35px;
        height: 35px;
    }
    
    .portrait-wrapper {
        max-width: 100%;
    }
    
    .step h5 {
        font-size: 0.9rem;
    }
    
    .step p {
        font-size: 0.8rem;
    }
    
    .tech-badges .badge {
        margin: 0.25rem;
        padding: 0.3rem 0.6rem;
        font-size: 0.7rem;
    }
    
    /* Adjust achievement grid for mobile */
    .row.g-4.mb-5 .col-6 {
        width: 50%;
    }
    
    .row.g-4.mb-5 .h3 {
        font-size: 1.5rem;
    }
    
    .row.g-4.mb-5 .text-muted {
        font-size: 0.75rem;
    }
}

/* Adjust line height and spacing for Inter font */
.about-hero h1 {
    line-height: 1.2;
}

.tech-badges .badge {
    font-family: 'Inter', sans-serif;
    font-weight: 500;
    letter-spacing: 0.01em;
}

/* Contact section */
.contact-section h2 {
    font-weight: 700;
    letter-spacing: -0.01em;
}

.contact-section .lead {
    font-weight: 500;
}

/* Footer */
footer {
    font-family: 'Inter', sans-serif;
    font-weight: 400;
}

/* Timeline section adjustments */
.timeline-section h2 {
    font-weight: 700;
}

.step p {
    font-family: 'Inter', sans-serif;
}

/* Vision section adjustments */
.vision-card h3 {
    font-weight: 600;
}

.vision-card p {
    font-weight: 400;
    line-height: 1.6;
}

/* Skills section adjustments */
.skills-section h2, .skills-section h4 {
    font-weight: 600;
}

.skill-progress {
    font-family: 'Inter', sans-serif;
    font-weight: 500;
}

/* Add these styles for optimized page transitions right after the core variables */
.page-transition-wrapper {
    position: relative;
    overflow: hidden;
}

/* Improve animation performance with better timing functions and GPU acceleration */
.fade-in-up {
    animation: fadeInUp 0.6s cubic-bezier(0.2, 0, 0.2, 1) forwards;
    opacity: 0;
    will-change: transform, opacity;
}

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

/* Add staggered animation timing for a more polished feel */
.delay-1 { animation-delay: 0.1s; }
.delay-2 { animation-delay: 0.2s; }
.delay-3 { animation-delay: 0.3s; }
.delay-4 { animation-delay: 0.4s; }
.delay-5 { animation-delay: 0.5s; }

/* Add this to the end of your JavaScript, right before the closing script tag */


/* Add these styles for the animated elements */
.animate-in {
    opacity: 1 !important;
    transform: translateY(0) !important;
    will-change: auto; /* Reset will-change after animation completes */
}

/* Optimize hover animations for smoother performance */
.vision-card {
    will-change: transform, box-shadow;
    transition: transform 0.4s cubic-bezier(0.2, 0, 0.2, 1), 
                box-shadow 0.4s cubic-bezier(0.2, 0, 0.2, 1);
}

.header-title:hover {
    color: var(--accent-color);
    transform: translateY(-2px);
    transition: all 0.3s cubic-bezier(0.2, 0, 0.2, 1);
}

.portrait-wrapper {
    will-change: transform;
    transition: transform 0.5s cubic-bezier(0.2, 0, 0.2, 1);
}

/* Enhance touch experience for mobile */
@media (hover: none) {
    /* Add touch feedback to interactive elements */
    .nav-link:active,
    .icon-btn:active,
    .header-title:active,
    .social-icon:active,
    .badge:active {
        transform: scale(0.95);
        transition: transform 0.1s;
    }
    
    /* Ensure touch targets are large enough */
    .nav-link,
    .icon-btn,
    .social-icon {
        min-width: 44px;
        min-height: 44px;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    /* Improve spacing for better touch experience */
    .vision-card {
        margin-bottom: 1rem;
    }
    
    .tech-badges {
        gap: 10px;
        margin-top: 1rem;
    }
    
    .tech-badges .badge {
        padding: 10px 15px;
    }
    
    /* Add clear visual feedback for touch */
    .vision-card:active {
        background-color: rgba(37, 150, 190, 0.05);
    }
}

/* User menu styles */
.user-menu {
    position: relative;
    display: inline-block;
}

.user-menu-button {
    display: flex;
    align-items: center;
    background: none;
    border: none;
    color: var(--text-secondary);
    font-size: 0.95rem;
    padding: 0.5rem 0.75rem;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s;
}

.user-menu-button:hover {
    color: var(--accent-color);
    background-color: var(--accent-light);
}

.user-menu-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    background-color: var(--bg-primary);
    border-radius: 6px;
    box-shadow: 0 4px 12px var(--shadow-sm);
    min-width: 150px;
    z-index: 100;
    display: none;
    overflow: hidden;
}

.user-menu:hover .user-menu-dropdown {
    display: block;
    animation: fadeInDown 0.2s ease-out forwards;
}

.user-menu-dropdown a {
    display: block;
    padding: 0.75rem 1rem;
    color: var(--text-primary);
    text-decoration: none;
    transition: all 0.2s;
}

.user-menu-dropdown a:hover {
    background-color: var(--accent-light);
    color: var(--accent-color);
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
/* End user menu styles */