/* Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* General Layout */
.container {
    display: grid;
    grid-template-columns: 1fr;
    grid-template-rows: auto auto 1fr auto; /* Header, Navigation, Content, Footer */
    gap: 20px;
    min-height: 100vh;
    font-family: Arial, sans-serif;
    background-color: #f9f9f9;
    color: #333;
}

/* Header */
.header {
    text-align: center;
    background-color: #333;
    color: #fff;
    padding: 20px 10px;
}

.header h1 {
    font-size: 2.5rem;
}

/* Navigation */
.nav {
    background-color: #444;
    display: flex;
    justify-content: flex-end; /* Align to the right */
    align-items: center;
    padding: 10px 20px;
}

.nav ul {
    display: flex;
    list-style-type: none;
    gap: 20px;
}

.nav ul li a {
    text-decoration: none;
    font-size: 16px;
    font-weight: bold;
    color: white;
    transition: color 0.3s;
}

.nav ul li a:hover {
    color: #f39c12;
}

/* Hero Section */
.hero {
    background-size: cover;
    background-position: center;
    padding: 80px 20px;
    text-align: center;
    color: white;
    text-shadow: 2px 2px 6px rgba(0, 0, 0, 0.8);
}

.hero h2 {
    font-size: 3rem;
    margin-bottom: 10px;
}

.hero p {
    font-size: 1.2rem;
}

/* Content Section */
.content {
    max-width: 900px;
    margin: 0 auto;
    padding: 20px;
    background-color: white;
    border-radius: 10px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    text-align: center;
}

.content h2 {
    font-size: 2rem;
    margin-bottom: 10px;
}

.content p {
    font-size: 1rem;
    line-height: 1.6;
    color: #555;
}

/* Gallery Section */
.gallery {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    padding: 20px;
}

.gallery img {
    width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.2);
}

/* Footer */
.footer {
    text-align: center;
    padding: 20px;
    background-color: #333;
    color: white;
}

.footer p {
    margin: 5px 0;
}

.footer a {
    color: #f39c12;
    text-decoration: none;
    font-weight: bold;
}

.footer a:hover {
    text-decoration: underline;
}

/* General Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Slider Section */
.slider-section {
    position: relative;
    margin: 50px auto;
    max-width: 900px;
    height: 400px; /* Fixed height for the slider */
    background: url('Background.jpg') no-repeat center center;
    background-size: cover;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
    overflow: hidden;
}

.slider {
    width: 100%;
    height: 100%;
    position: relative;
}

.slider img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: none; /* Hide all images initially */
}

.slider img:first-child {
    display: block; /* Show the first image */
}

/* Navigation Dots */
.sss-nav {
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
}

.sss-prev,
.sss-next {
    display: inline-block;
    font-size: 1.5rem;
    color: white;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
    cursor: pointer;
}

.sss-prev:hover,
.sss-next:hover {
    color: #f39c12;
}

/* Responsive Design */
@media (max-width: 768px) {
    .gallery {
        grid-template-columns: 1fr;
    }

    .hero h2 {
        font-size: 2rem;
    }

    .hero p {
        font-size: 1rem;
    }

    .nav ul {
        flex-direction: column;
        gap: 10px;
    }
}
/* Parent grid container for the entire layout */
.container {
    display: grid;
    grid-template-columns: 1fr;
    grid-template-rows: auto auto 1fr auto; /* Header, Navigation, Content, Footer */
    gap: 0; /* Removed gap between sections */
    min-height: 100vh; /* Ensures the page takes the full height of the viewport */
}

/* Header section */
.header {
    text-align: center;
    background-color: #f0f0f0;
    padding: 40px 20px;
}

.header h1 {
    font-size: 48px;
    font-weight: bold;
}

.header h2 {
    font-size: 24px;
    color: gray;
}

/* Sky Blue Navigation bar with logo on the left */
.nav {
    background-color: #87ceeb; /* Sky blue background for navigation */
    padding: 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    z-index: 1; /* Ensures navigation is on top */
}

/* Logo positioning */
.nav .logo {
    margin-left: 20px;
}

.nav .logo img {
    height: 20px; /* Reduced size further for the logo */
}

/* Right-aligned Navigation links */
.nav ul {
    display: flex;
    list-style-type: none;
    gap: 30px;
    margin-right: 20px;
}

.nav ul li a {
    text-decoration: none;
    font-size: 18px;
    font-weight: bold;
    color: white; /* White color for the navigation links */
    padding: 10px 20px;
}

/* Hero section with background */
.hero {
    background-image: url('Background.jpg');
    background-size: cover; /* Ensures the image covers the entire section */
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed; /* Keeps the background in place while scrolling */
    padding: 100px 20px; /* Increased padding */
    text-align: center;
    position: relative;
    z-index: 0; /* Background image behind the navigation */
    min-height: 1000px; /* Ensure hero section is tall enough */
}

.hero h3 {
    font-size: 48px;
    margin-bottom: 10px;
}

.hero p {
    font-size: 20px;
    font-weight: 300;
    margin-top: 20px;
}

/* Portfolio grid for content boxes */
.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* 3 columns for portfolio items */
    grid-template-rows: repeat(2, 1fr); /* 2 rows for portfolio items */
    gap: 20px;
    padding: 20px;
    margin: 0 auto;
    max-width: 1200px; /* Limits the width of the portfolio grid */
    background-image: url('Background.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    z-index: 1;
}

.portfolio-item {
    background-color: rgba(255, 255, 255, 0.9); /* Semi-transparent background for portfolio items */
    padding: 20px;
    border: 1px solid #ddd;
    text-align: center;
    transition: transform 0.3s ease; /* Add a little hover effect */
}

.portfolio-item:hover {
    transform: scale(1.05); /* Slight zoom on hover */
}

.portfolio-item img {
    width: 100%;
    height: auto;
}

.portfolio-item h4 {
    font-size: 20px;
    margin: 10px 0;
}

.portfolio-item p {
    font-size: 16px;
    color: #666;
}

/* Footer section */
.footer {
    text-align: center;
    padding: 20px;
    background-color: #f0f0f0;
}

.footer .social-links {
    display: flex;
    justify-content: center;
    gap: 10px;
}

.footer .social-links a {
    text-decoration: none;
    font-size: 20px;
    color: #333;
}

.footer p {
    margin-top: 10px;
    font-size: 18px;
}