/* General Reset: Clears default browser styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    background-color: #000000;
    color: #ffffff;

    /* The Background Image Magic */
    background-image: url('bg.jpg'); /* Make sure this matches your file name! */
    background-size: cover; /* Stretches image to fill the screen */
    background-position: center; /* Centers the image */
    background-repeat: no-repeat; /* Prevents tiling */
    background-attachment: fixed; /* Keeps image still while you scroll */

    /* ADD THESE 3 LINES: */
    min-height: 100vh; /* Forces the body to be at least 100% of the screen height */
    display: flex; /* Turns on the "Flexbox" layout engine */
    flex-direction: column; /* Stacks everything vertically (Header -> Content -> Footer) */
}

/* Header Styling */
header {
    background: #00000000;
    color: #7c1717;
    padding: 1rem 0;
}

nav {
    display: flex;
    flex-direction: column; /* Stacks the Logo on top of the Links */
    align-items: center; /* Centers everything perfectly */
    width: 90%;
    margin: auto;
}

.logo {
    font-size: 2.5rem; /* Increases the text size */
    font-weight: bold; /* Makes it thick and bold */
    letter-spacing: 2px; /* Adds a tiny bit of space between letters for a pro look */
    margin-bottom: 10px; /* Ensures it doesn't touch the links below it */
}

nav ul {
    list-style: none;
    display: flex;
    margin-top: 15px;
}

nav ul li {
    margin-left: 20px;
}

nav a {
    color: #ffffff;
    text-decoration: none;
    font-weight: bold;
}
.top-contact {
    position: absolute; /* Takes the text out of the normal flow */
    top: 15px; /* 15 pixels from the top edge */
    right: 20px; /* 20 pixels from the right edge */
    text-align: right; /* Aligns the text to the right side */
    font-size: 0.85rem; /* Makes it slightly smaller so it's not distracting */
    line-height: 1.4; /* Tightens the spacing between lines */
    color: #bdc3c7; /* A light grey color (so it's readable but subtle) */
}

.top-contact strong {
    color: white; /* Makes your name bright white */
    font-size: 1rem;
}

/* Hero Section Styling */
.hero {
    background: #02020200;
    text-align: center;
    padding: 300 20px;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.hero h1 {
    font-size: 2.5rem;
    margin-bottom: 10px;
    color: #7c1717;
    /* You can also add these if you want it to stand out more: */
    text-transform: uppercase;
    font-weight: 800;
}
/* General Button Styling */
.btn {
    display: inline-block; /* Allows the button to have size and padding */
    background-color: #000000fb; /* Professional Blue */
    color: #7c1717; /* White text */
    padding: 12px 25px; /* Makes the button nice and chunky */
    text-decoration: none; /* Removes the underline from the link */
    border-radius: 5px; /* Rounds the corners */
    font-weight: bold;
    margin-top: 20px;
    transition: background 0.3s; /* Makes the color fade smoothly when you hover */
    text-align: center;
    border-radius: 10px; /* Rounds the corners */
    margin-top: 10px;
    margin-bottom: 20px;
}

/* Hover Effect - What happens when mouse goes over it */
.btn:hover {
    background-color: #1c5980; /* Darker blue when hovering */
    transform: translateY(
        -2px
    ); /* Moves the button up slightly (optional cool effect) */
}

/* Services Grid */
.services-container {
    width: 90%;
    margin: auto;
    padding: 20px;
    text-align: center;
    background-color: rgba(0, 0, 0, 0.897);
    color: #ffffff;
    border-radius: 10px; /* Rounds the corners */
    margin-top: 10px;
    margin-bottom: 20px;
}
.services-container h2 {
    color: #7c1717;
    /* You can also add these if you want it to stand out more: */
    text-transform: uppercase;
    font-weight: 800;
}
/* Unique styling for the Contact Section */
.contact-container {
    width: 100%; /* This one goes full width across the screen */
    background-color: #00000000;
    color: rgb(255, 255, 255);
    text-align: center;
    padding: 60px 20px;
    margin-top: 90px;
    margin-bottom: 0; /* Connects smoothly to the footer */
    background-color: rgba(0, 0, 0, 0.952);
    border-radius: 10px; /* Rounds the corners */
    margin-top: 200px;
    margin-bottom: 20px;
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
}

.service-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 30px;
}

.card {
    background: #000000f3;
    padding: 20px;
    border: 2px solid #2c0808;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.5);
}

footer {
    background: #00000000;
    color: #fff;
    text-align: center;
    padding: 1rem 0;

    /* ADD THIS LINE: */
    margin-top: auto; /* This magically pushes the footer to the bottom */
}
/* About Me Page Styling */

.profile-container {
    margin-bottom: 30px;
    text-align: center; /* Centers the image */
}

.profile-pic {
    margin-top: 50px;
    width: 200px; /* Sets the size of the image */
    height: 200px; /* Keeps it square so it becomes a perfect circle */
    border-radius: 50%; /* This turns the square image into a circle */
    object-fit: cover; /* Ensures the photo doesn't get squished if it's not square */
    border: 5px solid #7c1717; /* Adds a nice professional border */
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2); /* Adds a shadow for depth */
}

.bio-text {
    max-width: 900px; /* Keeps the reading line from getting too long */
    margin: auto; /* Centers the text block */
    font-size: 1.1rem; /* Makes the text slightly larger and easier to read */
    line-height: 1.8; /* Adds breathing room between lines */
    color: #ffffff;
    background-color: rgba(0, 0, 0, 0.973);
    border-radius: 10px; /* Rounds the corners */
    margin-top: 10px;
    margin-bottom: 10px;
    text-align: left;
    padding: 10px 30px;
}

.bio-text h2 {
    margin: auto; /* Centers the text block */
    font-size: 1.8rem; /* Makes the text slightly larger and easier to read */
    line-height: 1.8; /* Adds breathing room between lines */
    color: #ffffff;
    text-align: center;
    margin-top: 10px;
    margin-bottom: 40px;
}
/* Contact Form Styling */
.contact-form {
    max-width: 500px;
    margin: 20px auto; /* Centers the form */
    text-align: left; /* Aligns text labels to the left */
    margin: auto; /* Centers the text block */
    font-size: 1.1rem; /* Makes the text slightly larger and easier to read */
    line-height: 1.8; /* Adds breathing room between lines */
    color: #ffffff;
    background-color: rgba(0, 0, 0, 0.973);
    border-radius: 10px; /* Rounds the corners */
    padding: 10px 30px;
    margin-top: 20px;
    margin-bottom: 30px;
}

.contact-form label {
    display: block; /* Puts each label on its own line */
    margin-bottom: 10px;
    font-weight: bold;
}

.contact-form input,
.contact-form textarea {
    width: 100%; /* Stretches box to fill the space */
    padding: 10px;
    margin-top: 5px;
    border: none;
    border-radius: 5px;
    font-family: inherit; /* Uses your website font */
}

.contact-form textarea {
    height: 100px; /* Makes the message box taller */
    resize: vertical; /* Allows user to resize if needed */
}

.contact-form button {
    background-color: #e74c3c; /* A nice red button */
    color: white;
    border: none;
    padding: 10px 20px;
    font-size: 1rem;
    cursor: pointer;
    margin-top: 15px;
    border-radius: 5px;
    width: 100%;
}

.contact-form button:hover {
    background-color: #c0392b; /* Darker red when hovering */
}
/* Force the Contact Title and Text to be centered */
.contact-box h2,
.contact-box p {
    text-align: center; /* This forces the text to the middle */
    width: 100%; /* Ensures it spans the full width so it can find the center */
    margin: auto; /* Centers the text block */
    font-size: 1.1rem; /* Makes the text slightly larger and easier to read */
    line-height: 1.8; /* Adds breathing room between lines */
    color: #ffffff;
    background-color: rgba(0, 0, 0, 0.979);
    border-radius: 10px; /* Rounds the corners */
    padding: 10px 30px;
}
