/* General Body and Base Styles */
body {
    margin: 0;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f4f7f6; /* Light background for the page */
}

/* Container for Centering Content */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header Styling */
header {
    background-color: #2c3e50; /* Dark blue/grey */
    color: white;
    padding: 20px 0;
    text-align: center;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

header h1 {
    margin: 0;
    font-size: 2.5em;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1); /* Subtle separator */
}

/* Navigation Styling */
nav ul.main-nav {
    list-style-type: none;
    margin: 0;
    padding: 0;
    display: flex; /* Use Flexbox for navigation */
    justify-content: center;
    flex-wrap: wrap; /* Allow items to wrap on smaller screens */
}

nav ul.main-nav li {
    margin: 0 15px;
}

nav ul.main-nav li a {
    display: block;
    color: white;
    text-decoration: none;
    padding: 10px 15px;
    transition: background-color 0.3s ease, border-radius 0.3s ease;
    border-radius: 5px;
}

nav ul.main-nav li a:hover,
nav ul.main-nav li a:focus {
    background-color: #34495e; /* Slightly lighter dark blue/grey */
}

nav ul.main-nav li a[aria-current="page"] {
    background-color: #1a50bc; /* Teal for the current page */
    font-weight: bold;
}

/* Main Content Styling */
main {
    padding-top: 40px; /* Space from header */
}

section {
    padding: 60px 0;
    text-align: center;
}

section:nth-of-type(even) {
    background-color: #ecf0f1; /* Light grey background for alternating sections */
}

h2 {
    font-size: 2.2em;
    margin-bottom: 30px;
    color: #2c3e50;
    position: relative;
    padding-bottom: 10px;
}

h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background-color: #1a50bc; /* Teal underline */
}

/* Hero Section */
.hero {
    background: linear-gradient(rgba(44, 62, 80, 0.7), rgba(44, 62, 80, 0.7)), url('https://via.placeholder.com/1500x800?text=Web+Design+Background') no-repeat center center/cover;
    color: white;
    padding: 100px 0;
}

.hero h2 {
    font-size: 3em;
    margin-bottom: 20px;
    color: white;
}

.hero h2::after {
    background-color: white; /* White underline for hero section */
}

.hero p {
    font-size: 1.2em;
    max-width: 800px;
    margin: 0 auto 30px auto;
}

/* Buttons */
.button {
    display: inline-block;
    background-color: #1a5bbc; /* Teal */
    color: white;
    padding: 12px 25px;
    text-decoration: none;
    border-radius: 5px;
    transition: background-color 0.3s ease, transform 0.2s ease;
    font-weight: bold;
    border: none;
    cursor: pointer;
}

.button:hover,
.button:focus {
    background-color: #1a50bc; /* Darker teal on hover */
    transform: translateY(-2px);
}

.button-small {
    padding: 8px 15px;
    font-size: 0.9em;
}

/* Services Section */
.service-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.service-item {
    background-color: white;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-align: left;
}

.service-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.12);
}

.service-item h3 {
    color: #2c3e50;
    font-size: 1.5em;
    margin-bottom: 15px;
}

.service-item img {
    max-width: 100%;
    height: auto;
    margin-bottom: 15px;
    border-radius: 5px;
}

/* Portfolio Section */
.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.portfolio-item {
    background-color: white;
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.portfolio-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.12);
}

.portfolio-item img {
    max-width: 100%;
    height: 200px; /* Fixed height for consistency */
    object-fit: cover; /* Ensures images cover the area */
    border-radius: 5px;
    margin-bottom: 15px;
}

.portfolio-item h3 {
    color: #2c3e50;
    font-size: 1.3em;
    margin-bottom: 10px;
}

.portfolio-item p {
    font-size: 0.95em;
    color: #555;
    margin-bottom: 20px;
}

/* About Section */
.about-section p {
    max-width: 800px;
    margin: 20px auto;
    font-size: 1.1em;
}

/* Contact Section */
.contact-details {
    margin-bottom: 40px;
    font-size: 1.1em;
    line-height: 1.8;
}

.contact-details p {
    margin: 10px 0;
}

.contact-form {
    background-color: white;
    padding: 40px;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
    max-width: 600px;
    margin: 0 auto;
    text-align: left;
}

.contact-form h3 {
    text-align: center;
    color: #2c3e50;
    font-size: 1.8em;
    margin-bottom: 30px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: bold;
    color: #555;
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 1em;
    box-sizing: border-box; /* Include padding in element's total width/height */
}

.form-group textarea {
    resize: vertical; /* Allow vertical resizing of textarea */
}

.contact-form button.button {
    width: 100%;
    padding: 15px;
    font-size: 1.1em;
    letter-spacing: 1px;
}

/* Footer Styling */
footer {
    background-color: #34495e; /* Darker blue/grey */
    color: white;
    text-align: center;
    padding: 30px 0;
    margin-top: 50px;
    font-size: 0.9em;
}

footer .footer-links a {
    color: white;
    text-decoration: none;
    margin: 0 10px;
    transition: color 0.3s ease;
}

footer .footer-links a:hover {
    color: #1a50bc; /* Teal on hover */
}

/* Responsive Design (Media Queries) */
@media (max-width: 768px) {
    header h1 {
        font-size: 2em;
    }

    nav ul.main-nav {
        flex-direction: column; /* Stack navigation items vertically */
    }

    nav ul.main-nav li {
        margin: 5px 0;
    }

    .hero h2 {
        font-size: 2.2em;
    }

    .hero p {
        font-size: 1em;
    }

    h2 {
        font-size: 1.8em;
    }

    .service-grid,
    .portfolio-grid {
        grid-template-columns: 1fr; /* Single column layout for smaller screens */
    }

    .service-item,
    .portfolio-item,
    .contact-form {
        padding: 25px;
    }
}

@media (max-width: 480px) {
    header h1 {
        font-size: 1.8em;
    }

    .hero h2 {
        font-size: 1.8em;
    }

    .hero p {
        font-size: 0.9em;
    }

    h2 {
        font-size: 1.6em;
    }

    .contact-form {
        padding: 20px;
    }

    .form-group input,
    .form-group textarea,
    .contact-form button {
        padding: 10px;
    }
}
/* Base styles for the cookie banner. */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  padding: 1.5rem 1rem; /* Increase vertical padding for better spacing */
  background-color: #2c3e50; /* Changed to a darker, more modern color */
  color: #ecf0f1; /* Changed to a brighter text color */
  z-index: 9999;
  text-align: center;
  box-shadow: 0 -4px 10px rgba(0, 0, 0, 0.2); /* Stronger shadow for better separation */
  transition: transform 0.5s ease-in-out, visibility 0.5s ease-in-out; /* Add visibility transition */
}

/* Class applied when the banner is hidden. */
.cookie-banner-hidden {
  transform: translateY(100%);
  visibility: hidden; /* Hide the banner completely when off-screen */
}

/* Class applied when the banner is shown. */
.cookie-banner-show {
  transform: translateY(0);
  visibility: visible; /* Make the banner visible when on-screen */
}

/* Container for the banner's content. */
/* Base styles for the cookie banner. */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  padding: 1.5rem 1rem; /* Increase vertical padding for better spacing */
  background-color: #2c3e50; /* A darker, modern color */
  color: #ecf0f1; /* Brighter text color for contrast */
  z-index: 9999;
  text-align: center;
  box-shadow: 0 -4px 10px rgba(0, 0, 0, 0.2); /* Stronger shadow for better separation */
  transition: transform 0.5s ease-in-out, visibility 0.5s ease-in-out; /* Add visibility transition */
}

/* Class applied when the banner is hidden. */
.cookie-banner-hidden {
  transform: translateY(100%);
  visibility: hidden; /* Hide the banner completely when off-screen */
}

/* Class applied when the banner is shown. */
.cookie-banner-show {
  transform: translateY(0);
  visibility: visible; /* Make the banner visible when on-screen */
}

/* Container for the banner's content. */
.cookie-banner-content {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.5rem; /* Increase gap for more breathing room */
  max-width: 1200px; /* Optional: Constrain width for large screens */
  margin: 0 auto; /* Center the content for large screens */
}

.cookie-banner-content p {
  margin: 0;
  font-size: 1rem; /* Increase font size slightly */
  line-height: 1.5;
  color: #bdc3c7; /* Lighter text color for readability */
}

.cookie-banner-content a {
  color: #3498db; /* Link color for better visibility */
  text-decoration: underline;
  transition: color 0.3s ease;
}

.cookie-banner-content a:hover {
  color: #2980b9;
}

/* Actions container for buttons. */
.cookie-banner-actions {
  display: flex;
  gap: 0.5rem;
}

/* Styling for both buttons. */
.cookie-banner button {
  border: none;
  padding: 0.75rem 1.5rem; /* Larger padding for better touch targets */
  font-size: 1rem; /* Increase font size for readability */
  font-weight: bold;
  cursor: pointer;
  border-radius: 5px;
  flex-shrink: 0;
  transition: background-color 0.3s ease, transform 0.3s ease;
}

/* Styling for the accept button. */
#cookie-banner-accept {
  background-color: #3498db; /* Match link color for consistency */
  color: white;
}

#cookie-banner-accept:hover {
  background-color: #2980b9; /* Darker shade on hover */
  transform: translateY(-2px); /* Subtle lift effect */
}

/* Styling for the decline button. */
#cookie-banner-decline {
  background-color: transparent;
  color: #bdc3c7;
  border: 1px solid #bdc3c7;
}

#cookie-banner-decline:hover {
  background-color: #bdc3c7;
  color: #2c3e50;
  transform: translateY(-2px);
}

/* Media query for smaller screens. */
@media (max-width: 600px) {
  .cookie-banner-content {
    flex-direction: column;
    text-align: center;
    gap: 1rem; /* Adjust gap for smaller screens */
  }
  .cookie-banner-actions {
    flex-direction: column;
    width: 100%;
  }
}
