/* style.css */
body, html {
    margin: 0;
    padding: 0;
    font-family: 'Arial', sans-serif;
    color: #333;
    background-color: #f1f0f8; /* Light overall background */
}

header {
    background-color: #727272; /* Deep blue */
    color: #ffffff;
    padding: 20px 0;
    text-align: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3); /* Dropdown shadow for depth */
}

.navbar nav a {
    color: #ffffff; /* Gold */
    text-decoration: none;
    margin: 0 15px;
    font-weight: bold;
    position: relative; /* Required for pseudo-element positioning */
    display: inline-block; /* Allows us to properly position the pseudo-element */
}

/* Adding pseudo-element for shadow line */
.navbar nav a::after {
    content: '';
    position: absolute;
    bottom: -5px; /* Adjust based on your specific navbar height */
    left: 0;
    width: 100%;
    height: 3px; /* Height of the shadow line */
    background-color: #ffd700; /* Gold color for consistency with the text */
    box-shadow: 0 2px 3px rgba(0, 0, 0, 0.5); /* Dropdown shadow effect */
    opacity: 0; /* Hide initially */
    transition: opacity 0.3s; /* Smooth transition for hover effect */
}

/* Show the shadow line on hover */
.navbar nav a:hover::after, .navbar nav a:focus::after {
    opacity: 1; /* Make the shadow line visible on hover/focus */
}

.content-area {
    width: 60%; /* Adjusted width for varied lengths */
    margin: 40px auto; /* Increased margin for spacing and center alignment */
    padding: 30px; /* Increased padding for space between text and edges */
    background-color: #f0f0f0; /* Light gray for odd sections */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2); /* Dropdown shadow for depth */
    border-radius: 8px; /* Rounded corners for content boxes */
    border: 1px solid #d9d9d9; /* 1px outline in a slightly darker shade of gray */
    position: relative;
    z-index: 1;
}

/* Targeting even and odd numbered sections for varied alignment and lengths */
.content-area:nth-child(odd) {
    /* Left-adjusted sections */
    margin-right: auto;
    margin-left: 5%;
    background-color: #f0f9ff; /* Lightly different background color for contrast */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2); /* Dropdown shadow for depth */
    border-radius: 8px; /* Rounded corners for content boxes */
    border: 1px solid #d9d9d9; /* 1px outline in a slightly darker shade of gray */
    position: relative;
    z-index: 1;
}

.content-area:nth-child(even) {
    /* Right-adjusted sections */
    margin-left: auto;
    margin-right: 5%;
    background-color: #fff0f0; /* Lightly different background color for contrast */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2); /* Dropdown shadow for depth */
    border-radius: 8px; /* Rounded corners for content boxes */
    border: 1px solid #d9d9d9; /* 1px outline in a slightly darker shade of gray */
    position: relative;
    z-index: 1;
}

/* Further customization for specific sections if desired for more variety */
.content-area:nth-child(4n + 1) {
    width: 60%; /* Making every 4th section starting from the first one narrower */
}

.content-area:nth-child(4n + 3) {
    width: 40%; /* Making every 4th section starting from the third one wider */
}

.content-area:nth-child(4n + 2) {
    width: 50%; /* Making every 4th section starting from the third one wider */
}


footer {
    background-color: #727272;
    color: #ffffff;
    text-align: center;
    padding: 10px 0;
}

/* Adding general background shapes */
body::before, body::after {
    content: '';
    position: fixed;
    z-index: 0; /* Ensuring shapes are in the background */
    opacity: 0.5; /* Light opacity for a subtle effect */
}

body::before {
    top: 10%;
    left: 5%;
    width: 200px;
    height: 200px;
    background-color: #dae8ff; /* Light blue */
    border-radius: 50%; /* Circular shape */
    transform: scale(1.5);
}

body::after {
    bottom: 15%;
    right: 5%;
    width: 300px;
    height: 300px;
    background-color: #fbd9d9; /* Light red */
    transform: rotate(45deg); /* Rotated square */
}


/* Change section headers to a deep green color */
.content-area h2 {
    color: #007600; /* Deep green */
}

/* Change section background colors to shades of gray */
.content-area:nth-child(odd) {
    background-color: #f0f0f0; /* Light gray for odd sections */
}

.content-area:nth-child(even) {
    background-color: #dddbdb; /* Slightly darker gray for even sections */
}

/* New shapes */
body::before:nth-child(3n) {
    top: 20%;
    right: 10%;
    width: 150px;
    height: 150px;
    background-color: #cccccc; /* Adding medium gray shapes */
    border-radius: 0; /* Square shape */
    transform: scale(1.2);
}

body::after:nth-child(3n) {
    bottom: 20%;
    left: 10%;
    width: 100px;
    height: 100px;
    background-color: #bfbfbf; /* Darker gray for contrast */
    border-radius: 50%; /* Circular shape */
}

/* Form styling within .content-area */
.content-area form {
    display: grid;
    grid-gap: 15px; /* Space between form elements */
    max-width: 500px; /* Restrict form width for better aesthetics */
    margin: 0 auto; /* Center form in the section */
}

.content-area input[type="text"],
.content-area input[type="email"],
.content-area textarea {
    width: 100%; /* Full width of the form area */
    padding: 10px; /* Padding inside text fields for better readability */
    border: 1px solid #ccc; /* Subtle border for inputs */
    border-radius: 5px; /* Slightly rounded corners for inputs */
    box-sizing: border-box; /* Ensures padding does not increase the size */
    font-family: 'Arial', sans-serif; /* Consistent font with the rest of the page */
}

.content-area textarea {
    height: 120px; /* Larger text area for message input */
    resize: vertical; /* Allows the user to vertically resize the textarea */
}

.content-area button {
    background-color: #007bff; /* Deep blue, matching the header */
    color: white; /* Text color */
    padding: 10px 20px; /* Button padding for a larger click area */
    border: none; /* Remove default border */
    border-radius: 5px; /* Slightly rounded corners for the button */
    cursor: pointer; /* Change mouse cursor to indicate clickable */
    transition: background-color 0.3s; /* Smooth transition for hover effect */
}

.content-area button:hover {
    background-color: #0056b3; /* Slightly darker blue on hover for interaction feedback */
}
