/* ==========================================================================
 * 1. Font Import (Bitstream Vera Sans Mono)
 * ========================================================================== */
@font-face {
    font-family: 'Bitstream Vera Sans Mono';
    src: url('../../fonts/VeraMono-regular.ttf') format('truetype');
    font-weight: 400;
    font-style: normal;
}

@font-face {
    font-family: 'Bitstream Vera Sans Mono';
    src: url('../../fonts/VeraMono-Bold.ttf') format('truetype');
    font-weight: 700;
    font-style: normal;
}

/* ==========================================================================
 * 2. Base Page Setup
 * ========================================================================== */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    background-image: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url('../../Pictures/aboutBG.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    background-color: #f0f4f8;

    font-family: 'Bitstream Vera Sans Mono', monospace;
    line-height: 1.6;
    color: #333333;

    display: flex;
    flex-direction: column;
    align-items: center;
    min-height: 100vh;
    padding: 40px 20px;
}

/* ==========================================================================
 * 3. Centered Container Box & Header
 * ========================================================================== */
.container {
    width: 100%;
    max-width: 650px; /* Mobile base width */
    background-color: rgba(255, 255, 255, 0.85);
    padding: 32px;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(5px);
    margin-bottom: 24px;
    position: relative; /* Context for relative absolute elements like .lang-btn */
}

.container h1 {
    margin: 0 0 12px 0;
    font-size: 2.2rem;
    color: #1a202c;
    text-align: center;
}

/* Language Button (Kannada / English toggle) */
.lang-btn {
    /* Desktop default: absolute, top-left inside container */
    position: absolute;
    top: 16px;
    left: 16px;
    display: inline-block;
    background-color: #007bff;
    color: #ffffff;
    padding: 6px 12px;
    border-radius: 4px;
    text-decoration: none;
    font-size: 14px;
    font-weight: bold;
}

.lang-btn:hover {
    background-color: #0056b3;
}

/* Navigation Links inside Container */
.container nav {
    font-size: 1rem;
    font-weight: normal;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px 20px;
    margin-bottom: 24px;
}

.container nav a {
    color: #4a5568;
    text-decoration: none;
    font-weight: 600;
    padding: 6px 16px;
    border-radius: 6px;
    transition: all 0.2s ease-in-out;
}

.container nav a:hover {
    background-color: #e2e8f0;
    color: #2b6cb0;
}

/* ==========================================================================
 * 4. Content Layout & Images
 * ========================================================================== */
.card-layout {
    display: flex;
    align-items: flex-start;
    gap: 24px;
}

.text-block {
    flex: 1;
}

/* Profile Picture */
.profile-img {
    width: 150px;
    height: 150px;
    object-fit: cover;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
    flex-shrink: 0;
}

.contact-section {
    display: flex;
    align-items: center;       /* Vertically centers image and text */
    justify-content: space-between; /* Pushes content to opposite sides */
    gap: 24px;                 /* Spacing between text and image */
    margin-top: 16px;
}

/* LEFT SIDE: Styles for the contact links container */
.about-me-links {
    flex: 1;                   /* Allows left side to take remaining space */
    display: flex;
    flex-direction: column;
    gap: 10px;                 /* Distance between multiple links if added */
}

.about-me-links p {
    margin: 0;
    font-size: 1rem;
    line-height: 1.5;
}

/* RIGHT SIDE: Image styling */
.bike-img {
    width: 100%;
    max-width: 350px;          /* Prevents the image from becoming too large */
    height: auto;
    border-radius: 8px;        /* Smooth edges */
    object-fit: cover;
}


/* General Link & Text Styles */
p {
    color: #4a5568;
    font-size: 1.05rem;
    margin: 0;
}

a {
    color: #3182ce;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

/* ==========================================================================
 * 5. Mobile-only fixes (max-width: 699px)
 * ========================================================================== */
@media (max-width: 699px) {
    .container {
        padding-top: 20px;
    }

    .lang-btn {
        position: static;
        display: block;
        width: fit-content;
        margin: 0 auto 12px auto; /* Centered top row on small screens */
    }

    .card-layout {
        flex-direction: column;
        align-items: center;
    }

    .profile-img {
        width: 100%;
        max-width: 180px;
        height: 180px;
    }

    .bike-img {
        max-width: 100%;
    }

    .container nav a {
        padding: 6px 12px;
    }
    .contact-section {
        flex-direction: column-reverse; /* Puts image above or below on small screens */
        align-items: flex-start;
    }

}

/* ==========================================================================
 * 6. Desktop Layout: ~95% screen width
 * ========================================================================== */
@media (min-width: 700px) {
    .container,
    footer {
        width: 95%;
        max-width: 1400px;
    }
}

/* ==========================================================================
 * 7. Footer Styles
 * ========================================================================== */
footer {
    width: 100%;
    max-width: 650px; /* Mobile base width */
    margin-top: 24px;
    padding: 16px;
    background-color: rgba(255, 255, 255, 0.8);
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    text-align: center;
}

footer p {
    color: #4a5568;
    font-size: 0.9rem;
}
