/* Theme variables */
:root {
    --primary-color: #2c3e50;
    --accent-color: #e74c3c;
    --text-color: #333333;
    --light-bg: #f8f8f8;
    --font-heading: 'Montserrat', sans-serif;
    --font-body: 'Open Sans', sans-serif;
    --kamzy-color: #e67e22; /* Kamzy's brand color */
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: var(--font-body);
    /* Pastel gradient background for the entire page */
    background: linear-gradient(to bottom, #fdf5ff 0%, #f1f5ff 100%);
    color: var(--text-color);
    line-height: 1.6;
}

/* Navigation */
header {
    position: fixed;
    top: 0;
    left: 0;
    height: 7.75%;
    width: 100%;
    background: rgb(40, 40, 40);
    color: #ffffff;
    z-index: 1000;
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.logo {
    /* Use Cinzel for a professional yet artistic logotype */
    font-family: 'Cinzel', var(--font-heading);
    font-size: 2rem;
    font-weight: 700;
    letter-spacing: 0.05rem;
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 1.5rem;
}

.nav-links a {
    color: #ffffff;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.nav-links a:hover {
    color: var(--accent-color);
}

/* Highlight the "Kamzy" part of the logo with an accent colour and slight italic */
.logo-accent {
    color: var(--kamzy-color);
    font-style: italic;
}

/* Hero Section */
.hero {
    /* Updated path for hero background image to match images folder. Because this
       CSS file lives in the styles/ directory, we need to go up one level. */
    background-image: url('../images/hero.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    height: 100vh;
    width: 100%;
    position: relative;
    will-change: transform, opacity;
    transform: translateZ(0);
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #ffffff;
    padding-top: 60px; /* to compensate fixed header */
    max-width: 100%; /* Full width for background */
    margin: 0;
}

.hero-overlay {
    background: rgba(0, 0, 0, 0.6);
    padding: 2rem;
    border-radius: 0.5rem;
    max-width: 80%;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
}

.hero h1 {
    font-family: var(--font-heading);
    font-size: 3rem;
    margin-bottom: 1rem;
}

.hero p {
    font-size: 1.25rem;
    margin-bottom: 2rem;
}

.btn {
    display: inline-block;
    background: var(--accent-color);
    color: #ffffff;
    padding: 0.75rem 2rem;
    border-radius: 0.25rem;
    text-decoration: none;
    font-weight: 600;
    transition: background 0.3s ease;
}

.btn:hover {
    background: #c0392b;
}

/* Base section styling for consistent width */
section {
    max-width: 1500px;
    width: 100%;
    margin: 0 auto;
    padding: 3rem 1rem;
    box-sizing: border-box;
}

section h2 {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 0.5rem;
}

/* Carousel */
.carousel {
    position: relative;
    overflow: hidden;
    width: 100%;
    max-width: 1500px;
    margin: 0.5rem auto;
    background: transparent;
    border-radius: 1rem;
    box-shadow: 
        0 20px 40px rgba(0, 0, 0, 0.15),
        0 5px 15px rgba(0, 0, 0, 0.08);
    padding: 1rem;
    perspective: 1000px;
}

.slides {
    display: flex;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    height: 650px;
    transform-style: preserve-3d;
}

.slide {
    min-width: 100%;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    transform-style: preserve-3d;
    opacity: 1; /* Ensure full opacity */
    background: transparent; /* Remove any background color */
}

.slide img {
    width: auto;
    height: 100%;
    max-height: 680px;
    object-fit: contain;
    border-radius: 0.8rem;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease;
    opacity: 1; /* Ensure full opacity */
    filter: none; /* Remove any filters that might cause fading */
    -webkit-touch-callout: none; /* iOS Safari */
    -webkit-user-select: none; /* Safari */
    user-select: none; /* Standard syntax */
    pointer-events: none; /* Disable pointer events */
}

/* Prevent force touch on iOS */
@media (hover: none) and (pointer: coarse) {
    .slide img {
        pointer-events: none;
        -webkit-touch-callout: none !important;
        touch-action: none;
    }
}

/* Remove any opacity changes on active/inactive slides */
.slide.active {
    opacity: 1;
}

.slide:not(.active) {
    opacity: 1;
}

/* Copyright section base styles */
.copyright {
    position: absolute;
    bottom: 1rem;
    right: 1rem;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 2rem;
    font-size: 0.8rem;
}


/* Navigation buttons */
.nav button {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.9);
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.5rem;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
    z-index: 10;
}

.nav button:hover {
    background: white;
    transform: translateY(-50%) scale(1.1);
}

.nav .prev {
    left: 1rem;
}

.nav .next {
    right: 1rem;
}

/* Add smooth transitions when slides change */
.slide.active {
    opacity: 1;
    transform: translateZ(50px);
}

.slide:not(.active) {
    opacity: 1;
}

/* About and Contact */
.about p {
    margin: 0 auto;
    font-size: 1rem;
    font-family: 'Calibri', sans-serif;
    font-style: italic;
    line-height: 1.7;
    text-align: center;
    width: 100%;
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 1rem;
}

.contact form {
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
    padding: 1rem;
}

.contact input,
.contact textarea {
    width: 100%;
    padding: 1rem;
    border: 1px solid #cccccc;
    border-radius: 0.25rem;
    font-size: 0.8rem;
    font-family: var(--font-body);
    resize: vertical;
}

.contact button {
    width: 200px;
    padding: 0.75rem;
    background: var(--accent-color);
    color: #ffffff;
    border: none;
    border-radius: 0.25rem;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    align-self: center;
    transition: background 0.3s ease;
}

.contact button:hover {
    background: #c0392b;
}

/* Footer */
footer {
    background: rgb(40, 40, 40);
    color: #ffffff;
    text-align: center;
    padding: 1rem 0;
    font-size: 0.9rem;
}

/* Services & Pricing */
.services {
    background-color: #ffffff;
    /* subtle shadow to separate section */
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
    border-radius: 0.5rem;
}

.services-container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    gap: 2rem;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.service {
    background: var(--light-bg);
    border: 1px solid #e0e0e0;
    border-radius: 0.5rem;
    padding: 1.5rem;
    text-align: center;
    transition: transform 0.3s ease;
    will-change: transform, opacity;
    transform: translateZ(0);
    backface-visibility: hidden;
}

/* Service card images */
.service img {
    width: 100%;
    height: 150px;
    object-fit: cover;
    border-radius: 0.5rem 0.5rem 0 0;
    margin-bottom: 0.75rem;
}

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

.service h3 {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
}

.service p {
    font-size: 0.95rem;
    margin-bottom: 0.5rem;
}

.service .price-range {
    font-weight: 600;
    color: var(--accent-color);
}

/* Input styles for forms */
input[type="tel"] {
    font-family: monospace; /* Makes it easier to read numbers */
}

input[type="tel"]:invalid {
    border-color: #ff6b6b;
}

input[type="tel"]:valid {
    border-color: #51cf66;
}

/* Size the Instagram icon */
.instagram-icon img {
    width: 24px;
    height: 24px;
}



/* Responsive Styles */
@media (max-width: 768px) {
    .hero h1 {
        font-size: 2.25rem;
    }
    .hero p {
        font-size: 1rem;
    }
    .carousel .slide img {
        height: 400px;
    }
    .slides {
        height: 500px;
    }
    
    .slide img {
        max-height: 480px;
    }
    
    section {
        padding: 3rem 1rem;
    }

     /* Stack the logo and navigation vertically on mobile */
    .navbar {
        background: rgb(40, 40, 40);
        flex-direction: column;
        align-items: flex-start;
        height: auto;
    }
    .logo {
        font-size: 1.5rem;       /* reduce logo size on small screens */
        margin-bottom: 0.5rem;   /* space between the logo and links */
    }
    .nav-links {
        background: rgb(40, 40, 40);
        flex-direction: row;
        width: 100%;
    }
    .nav-links li {
        margin: 0.25rem 0;       /* small vertical spacing between links */
    }
     .instagram-icon {
        display: inline-block;
        margin-left: 0.5rem;
    }
    /* Size the Instagram icon */
.instagram-icon img {
    width: 24px;
    height: 24px;
}
    .nav-links .instagram {
        display: none;
    }
     .copyright {
        padding: 0.1rem 0.9rem; /* Reduced vertical padding by 80% */
        bottom: 0.5rem; /* Adjust bottom position for smaller size */
        right: 1rem; /* Adjust right position for smaller size */
        border-radius: 1rem; /* Smaller radius for smaller element */
    }
}

/* On larger screens, hide the icon and show the text link */
@media (min-width: 769px) {
    .instagram-icon {
        display: none;
    }
}