/* About Me Page Styles - Modern Design */

:root {
    --bg-primary: #0f172a;
    --bg-secondary: #1e293b;
    --bg-card: #1e293b;
    --text-primary: #f8fafc;
    --text-secondary: #cbd5e1;
    --text-muted: #94a3b8;
    --accent-primary: #3b82f6;
    --accent-hover: #2563eb;
    --border-color: #334155;
    --border-radius: 12px;
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Header Styles */
header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    background: rgba(15, 23, 42, 0.98);
    backdrop-filter: blur(15px);
    border-bottom: 2px solid var(--border-color);
    z-index: 1000;
    padding: 1.5rem 0; /* More padding in navbar */
    margin-bottom: 2rem; /* Space below navbar */
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.nav-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.nav-list {
    display: flex;
    list-style: none;
    gap: 2rem;
    margin: 0;
    padding: 0;
    align-items: center;
}

.nav-list li a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 1rem;
    font-weight: 500;
    transition: var(--transition);
    padding: 0.5rem 1rem;
    border-radius: 6px;
}

.nav-list li a:hover {
    color: var(--text-primary);
    background: rgba(59, 130, 246, 0.1);
}

/* Main Content */
main {
    margin-top: 100px; /* More space from navbar */
    padding: 5rem 1rem;
    min-height: calc(100vh - 200px);
    padding-bottom: 220px; /* Extra space for fixed footer to prevent button overlap */
    background: linear-gradient(135deg, var(--bg-primary) 0%, #1a1f3a 100%);
    background-attachment: fixed;
}

.central-content {
    max-width: 900px;
    margin: 0 auto 6rem; /* More space between sections */
    padding: 3rem 2rem;
    background: rgba(30, 41, 59, 0.3);
    backdrop-filter: blur(10px);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-lg);
}

.central-myself {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.myself {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1.2;
}

.myself h2 {
    margin: 0;
    font-size: inherit;
    font-weight: inherit;
}

.second-myself {
    font-size: 1.5rem;
    font-weight: 400;
    color: var(--text-secondary);
    line-height: 1.6;
}

.second-myself h2 {
    margin: 0 0 1rem 0;
    font-size: inherit;
    font-weight: inherit;
}

.myself-details {
    font-size: 1.125rem;
    line-height: 1.8;
    color: var(--text-secondary);
    margin-top: 1rem;
}

.myself-details p {
    margin: 0;
}

/* About Me Section */
.about-me {
    max-width: 1200px;
    margin: 0 auto 7rem; /* More space between sections */
    padding: 4rem 2.5rem; /* More internal padding */
    scroll-margin-top: 120px; /* Space for fixed header when scrolling */
    background: rgba(30, 41, 59, 0.4);
    backdrop-filter: blur(10px);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-lg);
    position: relative;
}

.about-me::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--accent-primary), transparent);
    opacity: 0.5;
}

.initial-about-me {
    margin-bottom: 3rem;
    padding-top: 1rem; /* Extra padding to ensure visibility below navbar */
}

.initial-about-me h2 {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0;
    position: relative;
    z-index: 1;
}

.full-about-me {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 4rem; /* More space between text and image */
    align-items: start;
    margin-top: 2rem; /* More space from top */
    padding: 2rem 0; /* Vertical padding for breathing room */
}

.text-about-me {
    display: flex;
    flex-direction: column;
    gap: 2.5rem; /* More space between sections */
    background: rgba(30, 41, 59, 0.2);
    padding: 2rem;
    border-radius: var(--border-radius);
    border: 1px solid rgba(51, 65, 85, 0.5);
}

.second-about-me {
    font-size: 1.75rem; /* Larger font for better visibility */
    font-weight: 600;
    color: var(--text-primary);
    line-height: 1.7;
    padding: 1.5rem 0; /* More padding */
    border-bottom: 1px solid rgba(51, 65, 85, 0.3); /* Subtle separator */
    margin-bottom: 1rem;
    position: relative;
    z-index: 1;
    opacity: 1; /* Ensure it's always visible */
    visibility: visible; /* Ensure it's always visible */
}

.second-about-me p {
    margin: 0;
    color: var(--text-primary);
    font-weight: 500;
    letter-spacing: 0.01em;
    display: block; /* Ensure it's displayed */
    opacity: 1; /* Ensure it's always visible */
    visibility: visible; /* Ensure it's always visible */
}

.details-about-me {
    font-size: 1.25rem; /* Larger font for better readability */
    line-height: 1.9; /* Better line spacing */
    color: var(--text-secondary);
    padding: 1rem 0;
}

.details-paragraph {
    margin-bottom: 2rem; /* More space between paragraphs */
    color: var(--text-secondary);
    font-weight: 400;
    letter-spacing: 0.01em;
}

.details-paragraph:last-of-type {
    margin-bottom: 2.5rem; /* Extra space before button */
}

.img-about-me {
    position: sticky;
    top: 120px; /* Adjusted for better positioning */
    display: flex;
    justify-content: center;
    align-items: flex-start;
    padding: 1rem;
}

.profile-pic {
    width: 100%;
    max-width: 320px; /* Slightly larger */
    height: auto;
    border-radius: var(--border-radius);
    border: 2px solid var(--border-color);
    box-shadow: var(--shadow-lg);
    object-fit: cover;
    background: rgba(30, 41, 59, 0.3);
    padding: 0.5rem;
}

/* Contact Section */
.contact-me {
    max-width: 800px;
    margin: 0 auto 8rem; /* More space before footer */
    padding: 4rem 2.5rem; /* More internal padding */
    padding-bottom: 5rem; /* Extra padding at bottom for button */
    text-align: center;
    background: rgba(30, 41, 59, 0.3);
    backdrop-filter: blur(10px);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-lg);
    position: relative;
}

.contact-me::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--accent-primary), transparent);
    opacity: 0.5;
}

.central-contact {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
}

.title-contact h2 {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0;
}

.section-contact {
    font-size: 1.125rem;
    line-height: 1.8;
    color: var(--text-secondary);
    max-width: 600px;
}

.section-contact p {
    margin: 0;
}

/* Buttons */
.button-contact {
    margin-top: 1.5rem;
    margin-bottom: 1rem;
    padding-bottom: 1rem; /* Extra space to ensure button is visible */
}

.button {
    display: inline-block;
    padding: 0.875rem 2rem;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    color: var(--text-primary);
    background: var(--accent-primary);
    border: 1px solid var(--accent-primary);
    border-radius: 8px;
    transition: var(--transition);
    cursor: pointer;
    box-shadow: var(--shadow-md);
    position: relative;
    z-index: 10; /* Ensure button is above footer */
}

.button:hover {
    background: var(--accent-hover);
    border-color: var(--accent-hover);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.button:active {
    transform: translateY(0);
}

/* Language Buttons in Header */
header .lang-btn {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    background: transparent;
    color: var(--text-secondary);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    transition: var(--transition);
    font-family: inherit;
    margin: 0 0.25rem;
}

header .lang-btn:hover {
    background: rgba(59, 130, 246, 0.1);
    color: var(--text-primary);
    border-color: var(--accent-primary);
}

header .lang-btn.active {
    background: var(--accent-primary);
    color: var(--text-primary);
    border-color: var(--accent-primary);
}

/* Links in second-myself */
.second-myself a {
    color: var(--accent-primary);
    text-decoration: none;
    transition: var(--transition);
    font-weight: 500;
}

.second-myself a:hover {
    color: var(--accent-hover);
    text-decoration: underline;
}

/* Footer Styles for About Page */
footer {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    width: 100%;
    padding: 2rem 1rem; /* More padding in footer */
    margin-top: 2rem; /* Space above footer */
    display: flex;
    justify-content: center;
    align-items: center;
    background: rgba(15, 23, 42, 0.98);
    backdrop-filter: blur(15px);
    border-top: 2px solid var(--border-color);
    z-index: 100;
    box-shadow: 0 -4px 12px rgba(0, 0, 0, 0.2);
}

footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--accent-primary), transparent);
    opacity: 0.5;
}

.footer-main {
    width: 100%;
    max-width: 1400px;
    text-align: center;
}

.footer-main p {
    font-size: 1rem;
    color: var(--text-secondary);
    font-weight: 400;
    margin: 0;
    line-height: 1.5;
}

/* Responsive Design */
@media screen and (max-width: 968px) {
    .full-about-me {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .img-about-me {
        position: relative;
        top: 0;
        order: -1;
    }

    .profile-pic {
        max-width: 250px;
    }

    .nav-header {
        flex-direction: column;
        gap: 1rem;
        padding: 1rem;
    }

    .nav-list {
        gap: 1rem;
        flex-wrap: wrap;
        justify-content: center;
    }
}

@media screen and (max-width: 768px) {
    main {
        margin-top: 120px;
        padding: 2rem 1rem;
    }

    .central-content,
    .about-me,
    .contact-me {
        padding: 1.5rem;
    }

    .myself {
        font-size: 2rem;
    }

    .second-myself {
        font-size: 1.25rem;
    }

    .initial-about-me h2,
    .title-contact h2 {
        font-size: 2rem;
    }

    .second-about-me {
        font-size: 1.25rem;
    }

    .details-about-me,
    .section-contact {
        font-size: 1rem;
    }
}

@media screen and (max-width: 480px) {
    .nav-list {
        flex-direction: column;
        gap: 0.5rem;
    }

    .myself {
        font-size: 1.75rem;
    }

    .second-myself {
        font-size: 1.125rem;
    }

    .initial-about-me h2,
    .title-contact h2 {
        font-size: 1.75rem;
    }
}

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

.central-content,
.about-me,
.contact-me {
    animation: fadeInUp 0.6s ease-out;
}
