/* About Page Specific Styles */

/* About Hero Section */
.about-hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    padding-top: 5rem;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.bg-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center top;
    opacity: 0;
    transition: opacity 2s ease-in-out;
}

.bg-image.active {
    opacity: 1;
}

.bg-image::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.15);
    z-index: 1;
}

.hero-background::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.15);
    z-index: 2;
}

@media (min-width: 769px) {
    .hero-background::after {
        width: 100%;
        height: 100%;
        background: rgba(0, 0, 0, 0.15);
    }
}

@media (max-width: 768px) {
    .hero-background::after {
        width: 100%;
        height: 60%;
        top: auto;
        bottom: 0;
        background: linear-gradient(0deg, rgba(15, 23, 42, 0.7), transparent);
    }
}

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

.about-hero-content {
    max-width: 1200px;
    width: 100%;
    color: white;
    animation: slideInUp 1s ease-out 0.5s both;
    padding: 0 2rem;
    margin: 0 auto;
    text-align: left;
}

.hero-layout {
    display: grid;
    grid-template-columns: 2fr 300px;
    gap: 3rem;
    align-items: center;
}

.hero-left {
    width: 100%;
}

.hero-right {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    justify-content: flex-end;
    height: 100%;
    padding-bottom: 2rem;
}

#typing-hero {
    font-size: 2.5rem;
    font-weight: 900;
    margin: 0 0 1.5rem;
    line-height: 1.1;
    color: white;
    letter-spacing: -1px;
    text-align: left;
}

.quote-bubble {
    background: white;
    color: #0f172a;
    padding: 1.5rem;
    border-radius: 20px;
    position: relative;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
    margin-bottom: 0.5rem;
    max-width: 250px;
}

.quote-text {
    font-size: 1rem;
    font-weight: 600;
    line-height: 1.4;
    text-align: center;
    font-style: italic;
}

.quote-tail {
    position: absolute;
    bottom: -10px;
    left: 30px;
    width: 0;
    height: 0;
    border-left: 15px solid transparent;
    border-right: 15px solid transparent;
    border-top: 15px solid white;
}



.hero-text {
    max-width: 600px;
    text-align: left;
}

.hero-subtitle {
    font-size: 1.1rem;
    font-weight: 600;
    color: #60a5fa;
    margin-bottom: 1rem;
    letter-spacing: 0.5px;
}

.hero-description {
    font-size: 1rem;
    font-weight: 400;
    color: white;
    line-height: 1.6;
    margin-bottom: 1rem;
    opacity: 0.9;
}

.hero-mission {
    font-size: 1rem;
    font-weight: 400;
    color: #cbd5e1;
    line-height: 1.6;
    margin: 0;
    opacity: 0.8;
}

.hero-description .fa-quote-left,
.hero-description .fa-quote-right,
.hero-mission .fa-quote-left,
.hero-mission .fa-quote-right {
    color: #60a5fa;
    font-size: 0.8rem;
    margin: 0 0.3rem;
}



#typing-hero::after {
    content: '|';
    animation: blink 1s infinite;
    color: #60a5fa;
}



.hero-quote {
    font-size: 2.5rem;
    font-weight: 300;
    color: white;
    font-style: italic;
    margin: 0;
    position: relative;
    text-align: center;
    line-height: 1.3;
}

.hero-quote::before,
.hero-quote::after {
    content: '"';
    font-size: 4rem;
    color: #60a5fa;
    position: absolute;
    top: -1rem;
}

.hero-quote::before {
    left: -2rem;
}

.hero-quote::after {
    right: -2rem;
}

/* Journey Section */
.journey {
    padding: 4rem 0;
    background: white;
}

.journey-timeline {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
}

.journey-timeline::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 2px;
    background: #2563eb;
    transform: translateX(-50%);
}

.timeline-item {
    display: flex;
    align-items: center;
    margin-bottom: 4rem;
    position: relative;
    opacity: 0;
    transform: translateY(50px);
    transition: all 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.timeline-item.animate {
    opacity: 1;
    transform: translateY(0);
}

.timeline-item:nth-child(odd) {
    flex-direction: row;
}

.timeline-item:nth-child(even) {
    flex-direction: row-reverse;
}

.timeline-marker {
    width: 80px;
    height: 80px;
    background: #2563eb;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.1rem;
    position: relative;
    z-index: 2;
}

.timeline-content {
    flex: 1;
    padding: 2rem;
    background: white;
    border: 2px solid #e2e8f0;
    margin: 0 2rem;
    transition: all 0.3s ease;
}

.timeline-content:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
    border-color: #2563eb;
}

.timeline-content h3 {
    font-size: 1.3rem;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 0.5rem;
}

.timeline-content p {
    color: #475569;
    line-height: 1.6;
}

/* Recommendations Section */
.recommendations-section {
    padding: 4rem 0;
    background: white;
    overflow: hidden;
}

.recommendations-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 4rem;
}

.recommendation-card {
    background: white;
    border: 2px solid #e2e8f0;
    padding: 2rem;
    transition: all 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    position: relative;
    display: flex;
    flex-direction: column;
    opacity: 0;
    transform: translateY(50px) scale(0.95);
}

.recommendation-card.collapsed {
    height: 400px;
    overflow: hidden;
}

.recommendation-card.animate {
    opacity: 1;
    transform: translateY(0) scale(1);
}

.recommendation-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: #2563eb;
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s ease;
}

.recommendation-card:hover::before {
    transform: scaleX(1);
}

.recommendation-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
    border-color: #2563eb;
}

.person-info {
    text-align: center;
    margin-bottom: 1.5rem;
}

.person-image {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
    margin: 0 auto 1rem;
    border: 3px solid #e2e8f0;
}

.person-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.person-details h4 {
    font-size: 1.1rem;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 0.25rem;
}

.person-details p {
    font-size: 0.9rem;
    color: #64748b;
    margin-bottom: 0.5rem;
}

.person-details p:last-of-type {
    margin-bottom: 0.75rem;
}

.social-links {
    display: flex;
    gap: 0.5rem;
    justify-content: center;
    margin-top: 0.75rem;
}

.social-links a {
    width: 32px;
    height: 32px;
    background: #f1f5f9;
    color: #64748b;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 0.875rem;
}

.social-links a:hover {
    background: #2563eb;
    color: white;
    transform: translateY(-2px);
}

.recommendation-preview {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.recommendation-card.collapsed .recommendation-preview p {
    color: #475569;
    line-height: 1.6;
    margin-bottom: 1rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    max-height: 3.2em;
}

.recommendation-card:not(.collapsed) .recommendation-preview p {
    color: #475569;
    line-height: 1.6;
    margin-bottom: 1rem;
    display: block;
    overflow: visible;
}

.expand-btn {
    background: none;
    border: none;
    color: #2563eb;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
    font-size: 0.9rem;
}

.expand-btn:hover {
    color: #1d4ed8;
}

.expand-btn i {
    transition: transform 0.3s ease;
}

.expand-btn.expanded i {
    transform: rotate(180deg);
}

.recommendation-full {
    display: none;
    margin-top: 1rem;
}

.recommendation-full.show {
    display: block;
}

.recommendation-full p {
    color: #475569;
    line-height: 1.7;
    padding-top: 1rem;
    border-top: 1px solid #e2e8f0;
}

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

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

/* Dark Theme Support */
[data-theme="dark"] .journey {
    background: #0f172a;
}

[data-theme="dark"] .recommendations-section {
    background: #0f172a;
}

[data-theme="dark"] .timeline-content {
    background: #1e293b;
    border-color: #475569;
}

[data-theme="dark"] .timeline-content h3 {
    color: #ffffff;
}

[data-theme="dark"] .timeline-content p {
    color: #ffffff !important;
}

[data-theme="dark"] .timeline-card h3,
[data-theme="dark"] .timeline-card p {
    color: #ffffff !important;
}

[data-theme="dark"] .recommendation-card {
    background: #1e293b;
    border-color: #475569;
}

[data-theme="dark"] .person-details h4 {
    color: #ffffff;
}

[data-theme="dark"] .person-details p {
    color: #ffffff;
}

[data-theme="dark"] .recommendation-preview p,
[data-theme="dark"] .recommendation-full p {
    color: #ffffff;
}

[data-theme="dark"] .person-details h4,
[data-theme="dark"] .person-details p,
[data-theme="dark"] .recommendation-preview p,
[data-theme="dark"] .expand-btn,
[data-theme="dark"] .social-card p,
[data-theme="dark"] .bio-content p,
[data-theme="dark"] .section-subtitle,
[data-theme="dark"] .hero-description,
[data-theme="dark"] .hero-mission {
    color: #ffffff !important;
}

[data-theme="dark"] .social-links a {
    background: #334155;
    color: #94a3b8;
}

[data-theme="dark"] .recommendation-full {
    border-color: #475569;
}

[data-theme="dark"] .person-image {
    border-color: #475569;
}



.bio-title {
    font-size: 2rem;
    font-weight: 600;
    color: #111827;
    margin-bottom: 2rem;
    text-align: left;
    font-family: 'Inter', sans-serif;
}

.section-title {
    font-size: 2.2rem;
    font-weight: 600;
    color: #111827;
    margin-bottom: 1rem;
    text-align: left;
    font-family: 'Inter', sans-serif;
}

.section-subtitle {
    font-size: 1.1rem;
    color: #6b7280;
    margin-bottom: 2.5rem;
    text-align: left;
    font-weight: 400;
}

.cute-subtitle {
    position: relative;
    text-align: center;
    font-style: italic;
    padding: 0 3rem;
}

.cute-subtitle::before,
.cute-subtitle::after {
    content: '';
    position: absolute;
    top: 50%;
    width: 40px;
    height: 2px;
    background: linear-gradient(90deg, #2563eb, #8b5cf6);
    transform: translateY(-50%);
}

.cute-subtitle::before {
    left: 0;
    background: #2563eb;
}

.cute-subtitle::after {
    right: 0;
    background: #2563eb;
}

.timeline-header .cute-subtitle::before,
.timeline-header .cute-subtitle::after {
    content: '• • •';
    width: auto;
    height: auto;
    background: none;
    color: #2563eb;
    font-size: 1.2rem;
    letter-spacing: 0.3rem;
    top: 50%;
    transform: translateY(-50%);
}

.journey-title {
    font-size: 2.5rem;
    font-weight: 800;
    color: #0f172a;
    margin-bottom: 3rem;
    text-align: center;
}

/* Social Media Section */
.social-media-section {
    padding: 4rem 0;
    background: white;
    text-align: center;
    overflow: hidden;
}

.social-title {
    font-size: 2.5rem;
    font-weight: 800;
    color: #0f172a;
    margin-bottom: 1rem;
}

.social-subtitle {
    font-size: 1.1rem;
    color: #6b7280;
    margin-bottom: 3.5rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    font-weight: 400;
}

.social-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    max-width: 1000px;
    margin: 0 auto;
}

.social-card {
    background: white;
    border: 2px solid #e2e8f0;
    padding: 2rem;
    text-decoration: none;
    transition: all 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    position: relative;
    overflow: hidden;
    opacity: 0;
    transform: translateY(50px) rotateY(10deg);
}

.social-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--social-color, #2563eb);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s ease;
}

.social-card:hover::before {
    transform: scaleX(1);
}

.social-card:hover {
    transform: translateY(-10px) rotateY(0deg) scale(1.02);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
    border-color: var(--social-color, #2563eb);
}

.social-card.animate {
    opacity: 1;
    transform: translateY(0) rotateY(0deg);
}

.social-card.github { --social-color: #333; }
.social-card.linkedin { --social-color: #0077b5; }
.social-card.twitter { --social-color: #1da1f2; }
.social-card.dribbble { --social-color: #ea4c89; }
.social-card.instagram { --social-color: #e4405f; }
.social-card.email { --social-color: #2563eb; }

.social-icon {
    width: 80px;
    height: 80px;
    background: rgba(37, 99, 235, 0.1);
    color: var(--social-color, #2563eb);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    margin: 0 auto 1.5rem;
    transition: all 0.3s ease;
}

.social-card:hover .social-icon {
    background: var(--social-color, #2563eb);
    color: white;
    transform: scale(1.1);
}

.social-card h3 {
    font-size: 1.3rem;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 0.75rem;
}

.social-card p {
    color: #64748b;
    line-height: 1.6;
    margin-bottom: 1rem;
    font-size: 0.95rem;
}

.social-handle {
    font-weight: 600;
    color: var(--social-color, #2563eb);
    font-size: 0.9rem;
}

[data-theme="dark"] .bio-title,
[data-theme="dark"] .section-title {
    color: #ffffff;
}

[data-theme="dark"] .section-subtitle {
    color: #94a3b8;
}

[data-theme="dark"] .journey-title {
    color: #ffffff;
}

[data-theme="dark"] .social-media-section {
    background: #0f172a;
}

[data-theme="dark"] .social-title {
    color: #ffffff;
}

[data-theme="dark"] .social-subtitle {
    color: #94a3b8;
}

[data-theme="dark"] .social-card {
    background: #0f172a;
    border-color: #475569;
}

[data-theme="dark"] .social-card h3 {
    color: #ffffff;
}

[data-theme="dark"] .social-card p {
    color: #cbd5e1;
}

/* Bio Section */
.bio-section {
    padding: 4rem 0;
    background: white;
}

.bio-content {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 20px;
}

.bio-content p {
    font-size: 1rem;
    line-height: 1.7;
    color: #6b7280;
    margin-bottom: 1.8rem;
    text-align: left;
    font-weight: 400;
}

.bio-content p:first-child::first-letter {
    font-size: 4rem;
    font-weight: 900;
    color: #2563eb;
    float: left;
    line-height: 1;
    margin: 0.1rem 0.5rem 0 0;
}

[data-theme="dark"] .bio-section {
    background: #0f172a;
}

[data-theme="dark"] .bio-content p {
    color: #cbd5e1;
}

/* Tablet Responsive */
@media (max-width: 1024px) {
    .hero-layout {
        gap: 3rem;
    }
    
    .recommendations-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }
    
    .social-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .timeline-container {
        padding: 0 1rem;
    }
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .hero-layout {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .hero-right {
        order: -1;
        margin-bottom: 1rem;
        align-items: flex-start;
    }
    
    .hero-text {
        text-align: left;
    }
    
    #typing-hero {
        font-size: 2rem;
        letter-spacing: -0.5px;
    }
    
    .quote-bubble {
        max-width: 200px;
        padding: 1rem;
    }
    
    .quote-text {
        font-size: 0.9rem;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
        letter-spacing: 0.3px;
    }
    
    .hero-description {
        font-size: 1rem;
    }
    
    .hero-mission {
        font-size: 0.9rem;
    }
    
    .about-hero-content {
        padding: 0 1rem;
    }
    

    
    .bio-content p {
        font-size: 1rem;
        text-align: left;
    }
    
    .journey-timeline::before {
        left: 20px;
    }
    
    .timeline-item {
        flex-direction: row !important;
        padding-left: 0;
    }
    
    .timeline-marker {
        position: absolute;
        left: -40px;
        width: 60px;
        height: 60px;
    }
    
    .timeline-content {
        margin: 0;
    }
    
    .recommendations-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .social-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
    
    .bio-title {
        font-size: 2rem;
    }
    
    .social-title {
        font-size: 2rem;
    }
    
    .timeline-container {
        padding: 0 0.5rem;
    }
    
    .timeline-line {
        left: 2rem;
    }
    
    .timeline-item:nth-child(odd) .timeline-card,
    .timeline-item:nth-child(even) .timeline-card {
        margin-left: 4rem;
        margin-right: 0;
        width: calc(100% - 4rem);
    }
    
    .timeline-arrow {
        display: none;
    }
    
    .timeline-dot {
        left: 2rem;
    }
}

/* Footer Responsive */
.footer {
    background: #0f172a;
    color: white;
    padding: 4rem 0 2rem;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid #333;
}

.footer-brand h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: white;
    margin-bottom: 0.5rem;
}

.footer-brand p {
    color: #888;
    font-size: 0.9rem;
}

.footer-nav {
    display: flex;
    gap: 2rem;
}

.footer-nav a {
    color: #ccc;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
}

.footer-nav a:hover {
    color: var(--primary-color);
    transform: translateY(-2px);
}

.footer-social {
    display: flex;
    gap: 1rem;
}

.footer-social a {
    width: 40px;
    height: 40px;
    background: #333;
    color: #ccc;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: all 0.3s ease;
}

.footer-social a:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-3px);
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.875rem;
    color: #888;
}

.footer-bottom a {
    color: #888;
    text-decoration: none;
    transition: color 0.3s ease;
}

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

@media (max-width: 768px) {
    .footer-content {
        flex-direction: column;
        gap: 2rem;
        text-align: center;
    }
    
    .footer-nav {
        flex-direction: column;
        gap: 1rem;
    }
    
    .footer-bottom {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
}

/* Small Mobile */
@media (max-width: 480px) {
    .about-hero-content {
        padding: 0 0.75rem;
    }
    
    #typing-hero {
        font-size: 2rem;
        text-align: center;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .hero-description,
    .hero-mission {
        font-size: 0.9rem;
    }
    
    .quote-bubble {
        max-width: 180px;
        padding: 0.5rem;
    }
    
    .quote-text {
        font-size: 0.65rem;
    }
    
    .timeline-card {
        width: calc(100% - 3rem);
        margin-left: 3rem;
        padding: 1rem;
    }
    
    .timeline-dot {
        left: 1.5rem;
        width: 15px;
        height: 15px;
    }
    
    .timeline-line {
        left: 1.5rem;
        width: 3px;
    }
    
    .social-grid {
        grid-template-columns: 1fr;
    }
    
    #typing-hero {
        font-size: 2rem !important;
        text-align: left !important;
    }
    
    .hero-subtitle {
        font-size: 1rem !important;
    }
    
    .hero-description,
    .hero-mission {
        font-size: 0.9rem !important;
    }
    
    .hero-text {
        text-align: left !important;
    }
    
    .bio-title {
        font-size: 1.75rem !important;
    }
}

/* Timeline Section */
.timeline-section {
    padding: 6rem 0;
    background: #f8fafc;
    position: relative;
}

.timeline-header {
    text-align: center;
    margin-bottom: 4rem;
}

.timeline-header h2 {
    font-size: 2.5rem;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 1rem;
    font-family: 'Inter', sans-serif;
}

.timeline-header p {
    font-size: 1.1rem;
    color: #6b7280;
    max-width: 600px;
    margin: 0 auto;
    font-weight: 400;
}

.timeline-container {
    position: relative;
    max-width: 1000px;
    margin: 0 auto;
}

.timeline-line {
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 4px;
    background: #2563eb;
    transform: translateX(-50%);
    box-shadow: 0 0 10px rgba(37, 99, 235, 0.3);
}

.timeline-item {
    position: relative;
    margin-bottom: 4rem;
    opacity: 0;
    transform: translateX(50px);
    transition: all 0.6s ease;
}

.timeline-item.animate {
    opacity: 1;
    transform: translateX(0);
}

.timeline-item:nth-child(even) {
    transform: translateX(-50px);
}

.timeline-item:nth-child(even).animate {
    transform: translateX(0);
}

.timeline-card {
    background: white;
    padding: 2rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    position: relative;
    width: 400px;
    border: 2px solid transparent;
    transition: all 0.4s ease;
}

.timeline-card:hover {
    border-color: #2563eb;
    box-shadow: 0 15px 40px rgba(37, 99, 235, 0.2);
    transform: translateY(-5px);
}

.timeline-item:nth-child(odd) .timeline-card {
    margin-left: calc(50% + 2rem);
}

.timeline-item:nth-child(even) .timeline-card {
    margin-right: calc(50% + 2rem);
    margin-left: auto;
}

.timeline-dot {
    position: absolute;
    width: 20px;
    height: 20px;
    background: white;
    border: 4px solid #2563eb;
    border-radius: 50%;
    top: 2rem;
    left: 50%;
    transform: translateX(-50%);
    box-shadow: 0 0 15px rgba(37, 99, 235, 0.4);
    z-index: 3;
}

.timeline-arrow {
    position: absolute;
    width: 0;
    height: 0;
    top: 2rem;
}

.timeline-item:nth-child(odd) .timeline-arrow {
    left: -1rem;
    border-top: 10px solid transparent;
    border-bottom: 10px solid transparent;
    border-right: 15px solid white;
}

.timeline-item:nth-child(even) .timeline-arrow {
    right: -1rem;
    border-top: 10px solid transparent;
    border-bottom: 10px solid transparent;
    border-left: 15px solid white;
}

.timeline-year {
    display: inline-block;
    background: #2563eb;
    color: white;
    padding: 0.5rem 1rem;
    font-weight: 700;
    font-size: 1.1rem;
    margin-bottom: 1rem;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.timeline-card h3 {
    font-size: 1.3rem;
    font-weight: 600;
    color: #111827;
    margin-bottom: 0.8rem;
    font-family: 'Inter', sans-serif;
}

.timeline-card p {
    color: #6b7280;
    line-height: 1.7;
    margin: 0;
    font-size: 0.95rem;
    font-weight: 400;
}

[data-theme="dark"] .timeline-section {
    background: #0f172a;
}

body:not([data-theme="dark"]) .timeline-section {
    background: #ffffff !important;
}

[data-theme="dark"] .timeline-header h2 {
    color: #ffffff;
}

[data-theme="dark"] .timeline-header p,
[data-theme="dark"] .cute-subtitle {
    color: #ffffff !important;
}

[data-theme="dark"] .timeline-card {
    background: #1e293b;
}

[data-theme="dark"] .timeline-card h3 {
    color: #ffffff;
}

[data-theme="dark"] .timeline-arrow {
    border-right-color: #1e293b;
    border-left-color: #1e293b;
}
/* Mobile Header Styles for About Page */
@media (max-width: 768px) {
    body[data-page="about"] .nav-menu {
        position: fixed;
        left: 0;
        top: 4rem;
        flex-direction: column;
        background: var(--bg-primary);
        width: 100%;
        text-align: center;
        transition: transform 0.3s ease;
        transform: translateX(-100%);
        box-shadow: var(--shadow-lg);
        padding: 2rem;
        gap: 1.5rem;
        backdrop-filter: none;
        border: 1px solid var(--border-color);
        align-items: center;
    }
    
    body[data-page="about"] .nav-menu.active {
        transform: translateX(0);
    }
    
    body[data-page="about"] .theme-selector {
        width: 100%;
        display: flex;
        justify-content: center;
    }
    
    body[data-page="about"] .theme-btn {
        margin: 0 auto;
    }
    
    body[data-page="about"] .theme-menu {
        position: relative;
        right: auto;
        left: auto;
        top: 0.5rem;
        width: 150px;
        margin: 0.5rem auto 0;
    }
    
    body[data-page="about"] .nav-toggle {
        display: flex;
    }
}


/* Timeline Vertical Layout for Mobile */
@media (max-width: 768px) {
    .timeline-section {
        padding: 6rem 0;
    }
    
    .timeline-container {
        padding: 0;
        max-width: none;
    }
    
    .timeline-header h2 {
        font-size: 2rem;
    }
    
    .timeline-line {
        display: none;
    }
    
    .timeline-item {
        width: 100%;
        margin: 0 0 2rem 0;
        transform: none !important;
    }
    
    .timeline-item:nth-child(odd) .timeline-card {
        margin-left: 0;
        width: 100%;
    }
    
    .timeline-item:nth-child(even) .timeline-card {
        margin-right: 0;
        margin-left: 0;
        width: 100%;
    }
    
    .timeline-card {
        padding: 1.5rem;
        box-shadow: none;
        border: 1px solid #e2e8f0;
    }
    
    .timeline-card:hover {
        transform: none;
        box-shadow: none;
    }
    
    .timeline-dot {
        display: none;
    }
    
    .timeline-arrow {
        display: none;
    }
}

@media (max-width: 480px) {
    .timeline-header h2 {
        font-size: 1.75rem;
    }
}
/* Hero Description Section */
.hero-description-section {
    padding: 4rem 0;
    background: white;
}

.hero-description-content {
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
}

.hero-description-content .hero-description,
.hero-description-content .hero-mission {
    font-size: 1.1rem;
    line-height: 1.7;
    color: #6b7280;
    margin-bottom: 1.5rem;
}

.hero-description-content .fa-quote-left,
.hero-description-content .fa-quote-right {
    color: #2563eb;
    font-size: 0.9rem;
    margin: 0 0.3rem;
}

@media (max-width: 768px) {
    .about-hero {
        min-height: 60vh;
        padding-top: 6rem;
        justify-content: center;
    }
    
    .hero-background {
        top: 4rem;
        height: calc(100% - 4rem);
    }
    
    body[data-page="about"] .header {
        background: var(--bg-primary) !important;
        backdrop-filter: none !important;
    }
    
    body[data-page="about"] .header.scrolled {
        background: var(--bg-primary) !important;
    }
    
    body[data-page="about"] .nav-logo .logo-text {
        color: #2563eb !important;
    }
    
    body[data-page="about"] .nav-link {
        color: var(--text-primary) !important;
    }
    
    .hero-text {
        text-align: center !important;
    }
    
    #typing-hero {
        font-size: 1.5rem !important;
        text-align: center !important;
    }
    
    .hero-subtitle {
        font-size: 0.9rem !important;
        text-align: center !important;
        margin-top: -1rem;
    }
    
    .hero-description,
    .hero-mission {
        display: none;
    }
}

[data-theme="dark"] .hero-description-section {
    background: #0f172a;
}

[data-theme="dark"] .hero-description-content .hero-description,
[data-theme="dark"] .hero-description-content .hero-mission {
    color: #cbd5e1;
}
/* Mobile Description Section */
@media (max-width: 768px) {
    .bio-section::before {
        content: '';
        display: block;
        padding: 3rem 1rem;
        background: white;
        text-align: center;
    }
    
    .bio-section::before {
        content: '"Passionate about transforming ideas into digital reality through code and design. I bridge the gap between technical excellence and creative innovation, building solutions that inspire and empower communities." "Driven by curiosity, guided by purpose, and committed to making technology accessible to everyone. Currently pursuing Software Engineering at African Leadership University."';
        font-size: 1rem;
        line-height: 1.7;
        color: #6b7280;
        white-space: pre-line;
    }
    
    [data-theme="dark"] .bio-section::before {
        background: #0f172a;
        color: #cbd5e1;
    }
}