/* ================================
   GLOBAL & BACKGROUND
   ================================ */

body {
    background-size: cover;
    background-attachment: fixed;
    background-position: center;
    background-repeat: no-repeat;
    margin: 20px;
    font-family: sans-serif;
    text-align: center;
}

html {
    scroll-behavior: smooth;
}


/* ================================
   NAVIGATION
   ================================ */

nav {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    text-decoration: none;
}

nav a {
    display: inline-block;
    margin-top: 20px;
    margin-left: 55px;
    color: burlywood;
    text-decoration: none;
    font-weight: bold;
    font-size: 25px;
    position: relative;
    text-decoration: none;
}

nav a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: burlywood;
    transition: width 0.3s;
    display: inline;
    text-decoration: none;
}

nav a:hover::after {
    width: 100%;
    text-align: center;
    justify-content: center;
    text-decoration: none;
}


/* ================================
   TYPOGRAPHY
   ================================ */

h1 {
    font-family: 'Times New Roman', serif;
    font-size: 80px;
    color: black;
    margin-top: 50px;
    margin-bottom: 20px;
}

h3 {
    font-family: Arial, Helvetica, sans-serif;
    font-size: 1.2rem;
    font-weight: normal;
    letter-spacing: 1px;
    color: black;
    margin-top: 5px;
    margin-bottom: 40px;
}

h6 {
    text-align: left;
    font-size: 20px;
    font-family: Arial, sans-serif;
    color: rgba(122, 37, 37, 0.61);
    font-weight: normal;
    letter-spacing: 1px;
    margin: 0 0 20px 0;
}

.single-box h2 {
    font-family: 'Times New Roman', serif;
    font-size: 3rem;
    font-weight: bold;
    color: black;
    margin-top: 0;
    margin-bottom: 20px;
}

.single-box p {
    font-family: Arial, sans-serif;
    font-size: 1.2rem;
    line-height: 1.6;
    margin: 0;
}


/* ================================
   LISTS, BUTTONS & FORMS
   ================================ */

ul {
    padding-left: 20px;
    font-size: 20px;
    text-align: left;
    list-style-position: outside;
}

.list-category {
    font-weight: bold;
    display: block;
    margin-top: 15px;
    margin-bottom: 5px;
    font-size: 1.1em;
}

button {
    padding: 15px 30px;
    background-color: burlywood;
    color: #5D4037;
    font-size: 20px;
    font-weight: bold;
    border: none;
    border-radius: 30px;
    cursor: pointer;
    transition: transform 0.2s;
}

button:hover {
    transform: scale(1.05);
    opacity: 0.9;
}

/* Form Styling */
.contact-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 12px;
    border-radius: 10px;
    border: 1px solid rgba(0,0,0,0.1);
    font-family: sans-serif;
    box-sizing: border-box;
}

.contact-form textarea {
    resize: vertical;
}

.contact-list {
    list-style: none;
    padding: 0;
}

.contact-form input, .contact-form textarea {
    width: 100%;
    padding: 8px;
    margin-bottom: 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 14px;
}

.footer-btn {
    padding: 8px 15px;
    cursor: pointer;
}


/* ================================
   ABOUT SECTION
   ================================ */

.about-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 50px;
    max-width: 1100px;
    margin: 50px auto;
    padding: 0 20px;
    font-size: 1.2rem;
    border-radius: 16px;
}

.about-image-wrapper {
    flex: 1;
    max-width: 450px;
}

.about-image-wrapper img {
    width: 100%;
    height: auto;
    border-radius: 30px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.single-box {
    max-width: 600px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    background-color: burlywood;
    color: black;
    padding: 20px;
    border-radius: 16px;
    text-align: left;
    box-sizing: border-box;
}


/* ================================
   CARDS
   ================================ */

.card {
    flex: 1;
    background-color: burlywood;
    display: flex;
    flex-direction: column;
    box-sizing: border-box;
    text-align: left;
    height: auto;
    max-width: 500px;
    border-radius: 16px;
    padding: 20px;
    transition: all 0.3s ease;
    text-decoration: none;
}

.card ul {
    margin: 0;
    padding-left: 20px;
    list-style-type: disc;
    font-size: 1.2rem;
}

.card ul li a {
    text-decoration: none;
    color: black;
}

.card ul li a:hover {
    color: #5D4037;
}

.card:hover {
    background-color: #925f34;
    transform: translateY(-10px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
}

.about-card {
    text-indent: 80px;
    border-radius: 16px;
    padding: 30px;
    margin: 0;
    width: 100%;
    box-sizing: border-box;
    font-size: 1.3rem;
    text-align: left;
    grid-column: 1;
    grid-row: 1;
}

.about-card p, .working p {
    margin: 0;
    padding-bottom: 10px;
}

.hobby-card {
    display: flex;
    flex-direction: column;
    box-sizing: border-box;
    text-align: left;
    height: auto;
    max-width: 800px;
    border-radius: 16px;
    padding: 20px;
    transition: all 0.3s ease;
    color: black;
}

.hobby-card:hover {
    background-color: #925f34;
    transform: translateY(-10px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
}

.quote-card {
    width: 100%;
    max-width: none;
    background: #414a37;
    border-radius: 16px;
    padding: 20px;
    box-sizing: border-box;
    color: white;
}

.learning-card {
    border-radius: 16px;
    padding: 40px 20px;
    display: flex;
    flex-direction: column;
    box-sizing: border-box;
    text-align: left;
    height: 100%;
    font-size: 1.2rem;
    margin: 80px;
}


/* ================================
   MAIN CONTAINERS
   ================================ */

.main-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
    justify-content: center;
    max-width: 1400PX;
    align-items: stretch;
    min-width: 300px;
    text-decoration: none;
}

.main-container-journey {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    grid-template-rows: auto auto;
    gap: 20px;
    max-width: 1200px;
    margin: 20px auto;
    padding: 0 20px;
}

.right-column {
    display: flex;
    flex-direction: column;
    gap: 20px;
    width: 100%;
    grid-column: 2;
    grid-row: 1;
}


/* ================================
   JOURNEY SECTION
   ================================ */

journey-image-wrapper {
    width: 100%;
}

.journey-image-wrapper img {
    width: 100%;
    height: auto;
    border-radius: 16px;
    display: block;
}

.working {
    grid-column: 1 / -1;
    grid-row: 2;
    background-color: #DBC2A6;
    padding: 30px;
    border-radius: 16px;
    text-align: left;
    margin-top: 10px;
}

.working p {
    font-size: 1.3rem;
    margin-bottom: 10px;
}

.working ul {
    margin: 0;
    padding-left: 20px;
}


/* ================================
   PROJECTS SECTION
   ================================ */

.project-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto auto;
    gap: 20px;
}

.project-card {
    background-color: #DBC2A6;
    border-radius: 20px;
    padding: 30px;
    display: flex;
    flex-direction: column;
    box-sizing: border-box;
    text-align: left;
    margin: 0 auto 30px auto;
    max-width: fit-content;
}


/* ================================
   SOCIAL LINKS
   ================================ */

.social-links {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 40px;
    padding: 40px;
}

.social-links img {
    width: 60px;
    height: 60px;
    border-radius: 50%;
}

.social-icons img {
    width: 45px;
    height: 45px;
    margin-right: 15px;
    opacity: 0.7;
    transition: 0.3s;
}

.social-icons img:hover {
    opacity: 1;
}


/* ================================
   FOOTER
   ================================ */

.copyright {
    font-size: 0.75rem;
    color: black;
}

.site-footer {
    display: grid;
    grid-template-columns: repeat(1, 3fr);
    background-color: #f9f9f9;
    padding: 40px 20px 20px 20px;
    border-top: 1px solid #ddd;
}

.footer-content {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    max-width: 1000px;
    margin: 0 auto;
    gap: 30px;
}

.footer-section {
    flex: 1;
    min-width: 250px;
}

.footer-section h3 {
    font-size: 1.1rem;
    margin-bottom: 15px;
}

.portfolio-footer {
    background: #4A4A4A;
    color: #ccc;
    padding: 4rem 2rem 2rem;
    margin-top: 5rem;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 4rem;
}

.footer-brand h3 {
    color: #fff;
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
    font-weight: 700;
}

.footer-brand p {
    color: #888;
    margin-bottom: 2rem;
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    background: rgba(255,255,255,0.1);
    border-radius: 50%;
    color: #fff;
    font-size: 1.2rem;
    transition: all 0.3s ease;
}

.social-links a:hover {
    background: #fff;
    color: #0a0a0a;
    transform: translateY(-3px);
}

.footer-links {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
}

.link-column h4 {
    color: #fff;
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
}

.link-column ul {
    list-style: none;
    padding: 0;
}

.link-column li {
    margin-bottom: 0.8rem;
}

.link-column a {
    color: #ccc;
    text-decoration: none;
    font-size: 0.95rem;
    transition: color 0.3s ease;
}

.link-column a:hover {
    color: #fff;
}

.footer-bottom {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid #333;
    text-align: center;
    color: #888;
    font-size: 0.9rem;
}


/* ================================
   JAVASCRIPT BUTTON
   ================================ */

#topBtn {
    display: none;
    position: fixed;
    bottom: 20px;
    right: 30px;
    padding: 10px 15px;
    background-color: rgb(197, 135, 54);
    color: black;
    border: none;
    cursor: pointer;
    border-radius: 5px;
    z-index: 1000;
}


/* ================================
   RESPONSIVE DESIGN
   ================================ */

@media (max-width: 768px) {

    /* Global */
    body {
        margin: 10px;
    }

    /* Navigation */
    nav {
        flex-wrap: wrap;
        gap: 8px;
        padding: 10px 0;
    }

    nav a {
        margin-left: 10px;
        font-size: 16px;
    }

    /* Typography */
    h1 {
        font-size: 42px;
    }

    .single-box h2 {
        font-size: 2rem;
    }

    /* About Section */
    .about-container {
        flex-direction: column;
        gap: 20px;
        margin: 20px auto;
    }

    .about-image-wrapper {
        max-width: 100%;
    }

    .single-box {
        max-width: 100%;
    }

    /* Main Containers */
    .main-container {
        grid-template-columns: 1fr;
        padding: 20px 10px;
        min-width: unset;
    }

    .card {
        max-width: 100%;
    }

    /* Journey Section */
    .main-container-journey {
        grid-template-columns: 1fr;
        padding: 0 10px;
    }

    .about-card {
        grid-column: 1;
        grid-row: auto;
        text-indent: 30px;
    }

    .right-column {
        grid-column: 1;
        grid-row: auto;
    }

    .hobby-card {
        max-width: 100%;
    }

    /* Projects Section */
    .project-container {
        grid-template-columns: 1fr;
    }

    .project-card {
        max-width: 100%;
    }

    /* Footer */
    .footer-container {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }

    .footer-links {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .portfolio-footer {
        padding: 3rem 1.5rem 1.5rem;
    }

    .social-links {
        justify-content: center;
        gap: 15px;
        padding: 20px;
    }
}

@media (max-width: 480px) {

    /* Navigation */
    nav a {
        font-size: 14px;
        margin-left: 8px;
    }

    /* Typography */
    h1 {
        font-size: 32px;
    }

    /* Cards */
    .card {
        padding: 15px;
    }

    .project-card {
        padding: 20px;
    }

    /* Footer */
    .footer-brand h3 {
        font-size: 1.5rem;
    }

    .social-links {
        justify-content: center;
        flex-wrap: wrap;
        gap: 10px;
        padding: 15px;
    }

    .social-links img {
        width: 45px;
        height: 45px;
    }

    /* Buttons */
    button {
        font-size: 16px;
        padding: 12px 20px;
    }
}
