/* Navbar Styling */
body {
    margin: 0;
    font-family: Arial, sans-serif;
}

:root {
    --primary-color: #a855f7;
    --primary-color-dark: #9333ea;
    --secondary-color: #ca8a04;
    --text-dark: #1f2937;
    --text-light: #6b7280;
    --extra-light: #faf5ff;
    --max-width: 1200px;
}

/* Remove underline from links */
a {
    text-decoration: none;
}

/* Navbar */
nav.navbar {
    width: 100%;
    position: fixed;
    top: 0;
    left: 0;
    background-color: #333;
    z-index: 99;
}

/* Navbar content wrapper */
.nav__content {
    max-width: var(--max-width);
    margin: auto;
    padding: 1rem 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* Brand logo/name */
.brand a {
    font-size: 1.8rem;
    font-weight: 700;
    transition: 0.3s;
}

/* My = white */
.brand a .my {
    color: white;
}

/* Portfolio = orange */
.brand a .portfolio {
    color: rgb(255, 123, 0);
}


/* Navbar Links (Desktop) */
.navbar-links {
    display: flex;
    align-items: center;
    gap: 10px;
}

.navbar-links a {
    padding: 0.5rem 0.8rem;
    border: 2px solid transparent;
    font-weight: 600;
    font-size: 1.1rem;
    color: white;
    transition: 0.3s;
}

.navbar-links a:hover {
    border-top-color: rgb(255, 123, 0);
    border-bottom-color: rgb(255, 123, 0);
    color: rgb(255, 123, 0);
}

/* Hamburger icon (hidden on Desktop) */
.menu-icon {
    display: none;
    font-size: 1.8rem;
    cursor: pointer;
    color: white;
}

/* Responsive (Mobile) */
@media (max-width: 768px) {
    .navbar-links {
        display: none;
        flex-direction: column;
        background: #333;
        padding: 10px;
        width: 100%;
        position: absolute;
        top: 100%;
        right: 0;
    }

    .navbar-links.active {
        display: flex;
    }

    .navbar-links a {
        color: white;
        border: none;
        padding: 0.6rem 0;
        text-align: center;
    }

    .navbar-links a:hover {
        background: rgb(255, 123, 0);
        color: white;
    }

    .menu-icon {
        display: block;
    }
}

/* Home section */

.home-section {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    min-height: 100vh;
    background-color: black;
    text-align: center;
    padding: 20px;
}

.owner-picture {
    width: 300px;
    height: 300px;
    border-radius: 50%;
    /* Makes the image circular */
    border: 2px solid orange;
    margin-bottom: 20px;
}

.owner-name {
    font-size: 3.5rem;
    font-weight: bold;
    color: #ffffff;
    margin-bottom: 10px;
}

h1 span {
    color: rgb(255, 123, 0);
}

.owner-description,
h3 {
    font-size: 1.5rem;
    color: azure;
    font-weight: lighter;
    margin-top: 0%;
}

/* About Section */

.about-section {
    display: flex;
    flex-wrap: wrap;
    /* Allows wrapping for responsiveness */
    min-height: 100vh;
    padding: 10px;
    align-items: center;
    justify-content: center;
    background-color: #404142;
}

.about-left {
    flex: 1.2;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 20px;
}

.about-left img {
    width: 80%;
    /* Responsive width */
    max-width: 400px;
    height: 500px;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgb(255, 123, 0);

}

.about-right {
    flex: 2;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    /* Align content at the top */
    gap: 10px;
    padding: 20px;

}

/* About heading */
.about-heading {
    font-size: 2.5rem;
    color: rgb(255, 123, 0);
    font-weight: bold;
    text-align: left;
    margin-bottom: 10px;
    text-transform: uppercase;
}

.about-heading span {
    color: whitesmoke;
}

/* About Description Styling */
.about-description {
    font-size: 1.1rem;
    color: whitesmoke;
    line-height: 1.6;
    margin-bottom: 20px;
    text-align: left;
}

/* Card Styling */
.card {
    background-color: rgb(255, 123, 0);
    color: black;
    padding: 20px;
    border-radius: 10px;
    /* box-shadow: 0 4px 10px orange; */
    text-align: left;
    width: 100%;
    /* Full width for responsiveness */
    max-width: 600px;
    line-height: 0.5rem;
}

.card h2 {
    margin-bottom: 10px;
}

.card p {
    font-size: 0.9rem;
    line-height: 0.5rem;
}

/* Portfolio Section */

.portfolio-section {
    padding: 80px 20px;
    text-align: center;
    background-color: black;
    min-height: 85vh;
    /* Ensure full viewport height */
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: whitesmoke;
}

.portfolio-heading {
    font-size: 2.5rem;
    color: rgb(255, 123, 0);
    margin-bottom: 20px;
    text-transform: uppercase;
}

.portfolio-subheading {
    font-size: 1.2rem;
    color: whitesmoke;
    margin-bottom: 40px;
}

/* Portfolio Grid */
.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    /* 3 images per row */
    gap: 20px;
    /* Space between images */
    justify-items: center;
}

.portfolio-item {
    width: 100%;
    max-width: 300px;
    border-radius: 10px;
    transition: transform 0.3s, box-shadow 0.3s;
    /*Transition effect */
}

.portfolio-item:hover {
    transform: scale(1.1);
    box-shadow: 0 2px 10px orange;
}

.portfolio-item img {
    width: 100%;
    /*Ensure image fills the container */
    height: auto;
    /* Maintain aspect ratio */
    display: block;
    /* Remove unwanted spacing */
}

/* Contact Section */

.contact-section {
    padding: 30px 20px;
    background-color: #404142;
    text-align: center;
    min-height: 100vh;
    /* Ensure full viewport height */
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;

}

.contact-heading {
    font-size: 2.5rem;
    color: whitesmoke;
    margin-bottom: 20px;
    text-transform: uppercase;
}

.contact-form {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    max-width: 500px;
    margin: 0 auto 40px;
}

.contact-form input,
.contact-form textarea,
.contact-form button {
    width: 100%;
    padding: 10px 30px;
    border-radius: 5px;
    border: 1px solid #ccc;
    font-size: 1rem;
    outline: none;
    transition: all 0.3s ease-in-out;
}


.contact-form textarea {
    /* resize: none; */
    height: 120px;
}

.contact-form button {
    background-color: rgb(255, 115, 0);
    color: black;
    font-weight: bold;
    cursor: pointer;
    border: none;
}

.contact-form button:hover {
    background-color: orange;
}

/* Social Links Styling */

.social-links {
    display: flex;
    justify-content: center;
    gap: 25px;
    margin-top: 20px;
}

.social-links a {
    text-decoration: none;
    color: rgb(255, 145, 0);
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: 1px solid green;
    transition: all 0.3s ease-in-out;
}

.social-links a:hover {
    background-color: orange;
    color: white;
}

.social-links i {
    font-size: 1.5rem;
}


/* Responsive Design */

@media (max-width: 768px) {
    .navbar {
        flex-direction: column;
        /* Stack items vertically */

    }

    .navbar-links {
        flex-direction: column;
        /* Stack links vertically */
        width: 100%;
    }

    .navbar a {
        text-align: center;
        /* Center links */
    }

    /* About Section */

    .about-section {
        flex-direction: column;
        /* Stack image and cards */
        align-items: center;
    }

    .about-left {
        margin-bottom: 20px;
    }

    .about-right {
        align-items: center;
        /* Center heading, description, and cards */
    }

    .card {
        max-width: 90%;
        /* Adjust card width for smaller screens */
    }

    /* Portfolio section */

    .portfolio-grid {
        grid-template-columns: repeat(2, 1fr);
        /* 2 images per row */
    }

    /* contact section */
    .contact-form {
        max-width: 90%;
    }

}

/* Mobile view fix for second card with less line gap */
@media (max-width: 768px) {
    .about-right .card:nth-of-type(2) {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        text-align: left;
        padding: 15px;
        gap: 4px;
        /* less gap between elements */
        word-break: break-word;
        line-height: 1.1rem;
        /* less space between lines */
    }

    .about-right .card:nth-of-type(2) h2 {
        margin-bottom: 4px;
        /* less margin */
    }

    .about-right .card:nth-of-type(2) h4 {
        margin-bottom: 2px;
        /* less margin */
    }

    .about-right .card:nth-of-type(2) p {
        font-size: 0.9rem;
        line-height: 0.1rem;
        /* even tighter line spacing */
    }
}


/* portfolio */
@media (max-width: 480px) {
    .portfolio-grid {
        grid-template-columns: 1fr;
        /* 1 image per row */
    }
}