/* Apply box-sizing border-box to all elements */

*, *::before, *::after {
    box-sizing: border-box;
}


/* Define CSS Variables */

:root {
    --main-color: #333; /* Dark grey */
    --background-color: #f5f5f5; /* Light grey */
    --header-background: #000; /* Black */
    --header-color: #fff; /* White */
    --nav-background: #333; /* Dark grey */
    --link-color: #FF0000; /* Red */
    --link-hover-color: #39FF14; /* Fluorescent Green */
    --hero-color: #fff; /* White */
    --hero-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5); /* Shadow */
    --hero-background-image: url('hero-image.jpg'); /* Hero background image */
    --hero-background-color: #f0f0f0; /* Light grey fallback color */
    --hero-background-position: center center;
    --hero-background-size: cover;
    --content-padding: 3rem 1.25rem;
    --section-title-color: #444; /* Dark grey */
    --p-color: #333; /* Dark grey */
    --portfolio-background: #fff; /* White */
    --portfolio-shadow: 0 4px 8px rgba(0, 0, 0, 0.1); /* Shadow */
    --portfolio-hover-shadow: 0 8px 16px rgba(0, 0, 0, 0.2); /* Shadow */
    --about-background: #fff; /* White */
    --contact-link-color: #ff0000; /* Red */
    --footer-background: #000; /* Black */
    --footer-color: #fff; /* White */
    --focus-outline: 2px solid #ff0000;
    --focus-outline-offset: 4px;
}


/* Font imports */

@font-face {
    font-family: 'Playfair Display';
    src: url('https://01100100.com/fonts/PlayfairDisplay-Bold.ttf') format('truetype');
    font-display: swap;
}

@font-face {
    font-family: 'Montserrat';
    src: url('https://01100100.com/fonts/Montserrat-VariableFont_wght.ttf') format('truetype-variations');
    font-display: swap;
}


/* General Content Styling */

.content {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px;
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.content p {
    text-align: left; /* This overrides the center alignment for <p> elements */
}

.profile-image img {
    max-width: 300px;
    width: 100%;
    height: auto;
    border-radius: 50%;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.contact-container {
    width: 100%;
}


/* General Reset */

body {
    margin: 0;
    font-family: 'Montserrat', sans-serif;
    color: var(--main-color);
    background-color: var(--background-color);
}

a {
    color: var(--link-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: var(--link-hover-color);
    text-decoration: underline;
}

a:focus, button:focus {
    outline: var(--focus-outline);
    outline-offset: var(--focus-outline-offset);
}

/* Hero Section */
.hero {
    min-height: 80vh;
    background: var(--hero-background-color) var(--hero-background-image) no-repeat;
    background-position: var(--hero-background-position);
    background-size: var(--hero-background-size);
    display: flex;
    justify-content: flex-start;
    align-items: center;
    color: var(--hero-color);
    text-align: left;
    padding: 1.25rem;
    margin-top: 4.375rem;
}

.hero-content {
    max-width: 50rem;
}

.hero h2 {
    font-size: 2.2rem;
    margin: 0;
    color: #000;
    text-shadow: var(--hero-shadow);
}

.hero p {
    font-family: 'Montserrat', serif;
    font-size: 1rem;
    color: #000;
    line-height: 1.4;
    padding: 0 0.625rem;
}


/* Header and Navigation */

header {
    background: var(--header-background);
    color: var(--header-color);
    text-align: center;
    padding: 1.25rem 0;
}

header img {
    width: 11.25rem;
    height: 11.25rem;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 1.5rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

header img:hover {
    transform: scale(1.1);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

header h1 {
    margin: 0;
    font-size: 5.7rem;
    font-weight: 700;
    letter-spacing: 2px;
}

header h2 {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.5rem;
    margin-top: 0.5rem;
    font-weight: 300;
    text-transform: uppercase;
    letter-spacing: 1px;
}

nav {
    background: var(--nav-background);
    display: flex;
    justify-content: center;
    padding: 0.625rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    flex-wrap: wrap;
}

nav a {
    margin: 0 0.9375rem;
    font-weight: 400;
}


/* Content Section */

.content {
    padding: var(--content-padding);
    max-width: 75rem;
    margin: 0 auto;
}

.section-title {
    text-align: center;
    margin: 1.25rem 0;
    font-size: 3.5rem;
    font-weight: 900;
    color: var(--section-title-color);
}

p {
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 1.25rem;
    color: var(--p-color);
}


/* Styling for the portfolio section */

.portfolio-grid {
    display: flex;
    flex-direction: column;
    gap: 20px; /* Add space between rows */
}

.portfolio-row {
    display: flex;
    gap: 20px; /* Add space between columns */
    justify-content: center; /* Centre align the items in each row */
}

.portfolio-item {
    flex: 1 1 calc(33.333% - 20px); /* Each item takes up 1/3 of the row minus the gap */
    max-width: calc(33.333% - 20px);
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.portfolio-item img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 8px;
}


/* Hover Effects */

.portfolio-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}



/* Contact Wrapper */

.contact-wrapper {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 20px;
    max-width: 1200px;
    margin: 0 auto;
}



/* Contact Container */

.contact-container {
    flex: 1;
    max-width: 600px;
}

/* Contact Form */
form {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-top: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
    text-align: left;
}

label {
    font-weight: bold;
    margin-bottom: 5px;
}

input, textarea {
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 16px;
}

textarea {
    resize: vertical;
    min-height: 100px;
}

button.submit-button {
    padding: 10px 20px;
    background-color: #007BFF;
    color: #fff;
    border: none;
    border-radius: 5px;
    font-size: 16px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

button.submit-button:hover {
    background-color: #0056b3;
}

/* Feedback */
#formFeedback {
    margin-top: 10px;
    color: #28a745; /* Success green */
}

/* Contact Info */
.contact-info {
    margin-top: 20px;
    font-size: 16px;
    line-height: 1.5;
}

.contact-info a {
    color: #007BFF;
    text-decoration: none;
}

.contact-info a:hover {
    text-decoration: underline;
}

/* Responsive Design */
@media (max-width: 768px) {
    .contact-wrapper {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .profile-image img {
        max-width: 200px;
    }

    .contact-container {
        max-width: 100%;
    }
}



/* Responsive Design */
@media (max-width: 768px) {
    .content {
        padding: 10px;
    }

    form {
        gap: 10px;
    }

    input, textarea {
        font-size: 14px;
    }
}



/* Footer Section */

footer {
    background: var(--footer-background);
    color: var(--footer-color);
    text-align: center;
    padding: 1.875rem 0;
    font-size: 0.9rem;
}

footer p {
    margin: 0;
    color: var(--footer-color) !important;
}

footer a {
    color: var(--footer-color);
}

footer a:hover {
    color: #ff6f61;
}

footer .social-icons {
    display: flex;
    justify-content: center;
    gap: 0.625rem;
    margin-top: 0.625rem;
}

footer .social-icons a {
    font-size: 1.2rem;
}

footer .social-icons a:hover {
    color: #ff6f61;
}


/* Responsive design for smaller screens */

@media (max-width: 768px) {
    .portfolio-item {
        flex: 1 1 calc(50% - 20px); /* Adjust to 2 items per row on medium screens */
    }
}



    .hero h2 {
        font-size: 2rem;
    }

    .section-title {
        font-size: 2.5rem;
    }

    nav a {
        margin: 0 0.625rem;
    }
}

@media (max-width: 480px) {
    .portfolio-item {
        flex: 1 1 100%; /* Full width for each item on small screens */
    }
}

    .hero h2 {
        font-size: 1.8rem;
        text-align: center;
    }

    header h1 {
        font-size: 3rem;
    }
}
