/* General Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-user-select: none; /* Safari */
    -ms-user-select: none; /* IE 10 and IE 11 */
    user-select: none;
    -webkit-user-drag: none;
    transition: background-color 0.3s, color 0.3s, box-shadow 0.3s;
}

/* Themes */
:root[data-theme="light"] {
    --bg-color: #f0f0f0;
    --section-color: #f9f9f9;
    --section-color-secondary: #e2e2e2;
    --container-color: #fff;
    --text-color: #000;
    --secondary-text-color: #3b3b3b;
    --tertiary-text-color: #494949;
    --glow-color: rgba(0, 0, 0, 0.1);
}

:root[data-theme="dark"] {
    --bg-color: #2c2c2c;
    --section-color: #303030;
    --section-color-secondary: #202020;
    --container-color: #616161;
    --text-color: #fff;
    --secondary-text-color: #d4d4d4;
    --tertiary-text-color: #e9e9e9;
    --glow-color: rgba(216, 216, 216, 0.192);
}

body {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--bg-color);
}

/* Container */
.container {
    max-width: 1400px;
    display: flex;
    margin: 0 auto;
    flex-direction: column;
    padding: 20px;
}

/* Navbar */
nav {
    background-color: rgba(0, 0, 0, 0.8);
    padding: 15px 0;
    top: 0;
    z-index: 1000;
    position: fixed;
    width: 100%;
    display: flex;
    justify-content: space-between;
    flex-direction: row;
    align-items: center;
}

.navov {
    flex-direction: row;
    margin: 0;
    width: 100%;
}

nav ul {
    list-style: none;
    display: flex;
    width: 100%;
    justify-content: space-around;
}

nav ul li a {
    color: white;
    text-decoration: none;
    font-size: 1.1rem;
    font-weight: bold;
    transition: color 0.3s;
}

nav ul li a:hover {
    color: #f39c12;
}

.right-nav-buttons {
    width: 7rem;
    justify-self: center;
}

.logo-link {
    width: 55px;
    cursor: pointer;
    transition: transform 0.1s;
}

.logo-link:hover {
    transform: scale(1.1);
}

.left-nav-buttons {
    width: 55px;
    justify-self: left;
}

.toggle-container {
    border-radius: 20px;
    display: block;
    left: 10px;
    width: 3.5rem;
    height: 1.75rem;
    background: rgb(255, 255, 255);
    border: 5px solid rgb(255, 255, 255);
    position: relative;
    transform: scale(1);
    transition: transform 0.3s;
}

.toggle-container:hover {
    transform: scale(1.1);
}

.toggle-container:active {
    transform: scale(1);
}

.toggle-check {
    appearance: none;
}

.toggle-container::before {
    content: '';
    position: absolute;
    height: 18px;
    width: 18px;
    right: 0px;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="black" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-sun"><circle cx="12" cy="12" r="4"/><path d="M12 2v2"/><path d="M12 20v2"/><path d="m4.93 4.93 1.41 1.41"/><path d="m17.66 17.66 1.41 1.41"/><path d="M2 12h2"/><path d="M20 12h2"/><path d="m6.34 17.66-1.41 1.41"/><path d="m19.07 4.93-1.41 1.41"/></svg>') no-repeat center center;
    border-radius: 50%;
}

.toggle-container::after {
    content: '';
    position: absolute;
    height: 18px;
    width: 18px;
    left: 0px;
    background-color: rgb(0, 0, 0);
    border-radius: 50%;
}

.toggle-container.checked {
    background-color: gray;
    border-color: gray;
}

/* When toggle is checked */
.toggle-container.checked::before {
    background-color: white;
    background: white;
}

.toggle-container.checked::after {
    background-color: white;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="white" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-moon"><path d="M12 3a6 6 0 0 0 9 9 9 9 0 1 1-9-9Z"/></svg>') no-repeat center center;
}

/* Hero Section */
.hero {
    background: url('../images/PaulAndBaby.jpg') no-repeat center center/cover;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.hero .overlay {
    background-color: rgba(0, 0, 0, 0.5);
    position: absolute;
    justify-content: center;
    align-items: center;
    display: flex;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.hero .hero-text {
    color: white;
    text-align: center;
    z-index: 1;
    animation: fadeInUp 1.5s ease;
}

.hero .hero-text h1 {
    font-size: 3rem;
    margin-bottom: 20px;
}

.hero .hero-text p {
    font-size: 1.2rem;
}

/* What We Do Section */
#about {
    padding: 60px 0;
    background-color: var(--section-color);
    text-align: center;
}

#about h2 {
    font-size: 2.5rem;
    margin-bottom: 30px;
    animation: fadeIn 1s ease-in;
}

.services-grid {
    display: flex;
    justify-content: space-around;
}

.service-item {
    background-color: var(--container-color);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 8px var(--glow-color);
    text-align: center;
    padding: 0px;
    box-sizing: content-box;
    margin-left: 20px;
    margin-right: 20px;
    transition: transform 0.3s;
}

.service-item img {
    width: 100%;
    height: 30%;
    border-radius: 10px 10px 0 0;
    object-fit: cover;
    display: block;
}

.service-item div {
    box-sizing: border-box;
    padding: 20px !important;
}

.service-item h3 {
    margin: 20px 0;
}

.service-item:hover {
    transform: translateY(-10px);
}

/* Blog Section */
#blog {
    padding: 60px 0;
    background-color: var(--section-color-secondary);
    text-align: center;
}

#blog h2 {
    font-size: 2.5rem;
    margin-bottom: 30px;
}

.blog-posts {
    display: flex;
    justify-content: space-around;
}

.blog-item {
    background-color: var(--container-color);
    padding: 20px;
    border-radius: 10px;
    width: 45%;
    box-shadow: 0 4px 8px var(--glow-color);
    transition: transform 0.3s;
}

.blog-item:hover {
    transform: scale(1.05);
}

.blog-item h3 {
    margin-bottom: 15px;
}

.read-more {
    display: inline-block;
    margin-top: 10px;
    color: #f39c12;
    text-decoration: none;
    font-weight: bold;
    transition: color 0.3s;
}

.read-more:hover {
    color: #e67e22;
}

/* Contact Section */
.contact-section {
    padding: 50px 20px;
    background-color: var(--section-color);
    text-align: center;
}

.contact-section .container {
    max-width: 800px;
    margin: 0 auto;
    background-color: var(--container-color);
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 4px 8px var(--glow-color);
}

.contact-section h2 {
    font-size: 2.2rem;
    color: var(--text-color);
    margin-bottom: 10px;
}

.contact-section p {
    font-size: 1.1rem;
    color: var(--secondary-text-color);
    margin-bottom: 30px;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.contact-form label {
    text-align: left;
    font-size: 1rem;
    font-weight: bold;
    color: var(--tertiary-text-color);
}

.contact-form input,
.contact-form textarea {
    padding: 12px;
    border-radius: 6px;
    border: 1px solid #ccc;
    font-size: 1rem;
    width: 100%;
    box-sizing: border-box;
}

.contact-form input:focus,
.contact-form textarea:focus {
    border-color: #4CAF50;
    outline: none;
    box-shadow: 0 0 5px var(--glow-color);
}

.contact-form button {
    padding: 12px 20px;
    background-color: #4CAF50;
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 1rem;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.contact-form button:hover {
    background-color: #45a049;
}

/* Footer */
footer {
    background-color: #333;
    color: white;
    padding: 20px 0;
    text-align: center;
    border-top-left-radius: 50px;
    border-top-right-radius: 50px;
}

.social-links {
    margin-bottom: 10px;
}

.social-links a {
    margin: 0 10px;
    display: inline-block;
    transition: transform 0.3s;
}

.social-links a:hover {
    transform: scale(1.2);
}

footer p {
    margin-top: 10px;
    font-size: 0.9rem;
}

@media (max-width: 750px) {
    .services-grid {
        flex-direction: column; /* On mobile, change to a column layout */
        gap: 10px; /* Adjust the gap for mobile */
    }

    .navov {
        flex-direction: column;
        z-index: 2;
    }
}

/* Animations */
@keyframes fadeInUp {
    0% {
        opacity: 0;
        transform: translateY(30px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    0% {
        opacity: 0;
    }
    100% {
        opacity: 1;
    }
}
