/* -------------------------
   Global Styles
-------------------------- */
/* Limit sections to max 2 rows */
.section-limited {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 2rem;
    max-height: calc(2 * 260px + 2rem); /* 2 rows x card height + gap */
    overflow: hidden;
    position: relative;
    transition: max-height 0.3s ease;
}

/* Expanded state shows all items */
.section-limited.expanded {
    max-height: 2000px; /* enough for all items */
}

/* More button */
.more-btn {
    margin-top: 1.5rem;
    padding: 0.7rem 1.5rem;
    background-color: #3e4f4e;
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-weight: bold;
    transition: background-color 0.3s ease;
}

.more-btn:hover {
    background-color: #2c3c3b;
}

/* -------------------------
   Global Styles
-------------------------- */
body {
    margin: 0;
    font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
}

section {
    padding: 4rem 2rem;
    text-align: center;
}
#portfolio h2,
#services h2,
#gallery h2,
#contact h2 {
    font-size: 2.5rem;
    margin-bottom: 40px;
    font-weight: 800;
    color: #3e4f4e;
}

/* -------------------------
     Header & Navigation
  -------------------------- */
header {
    position: sticky;
    top: 0;
    width: 100%;
    height: 4rem;
    background-color: rgba(62, 79, 78, 0.8);
    backdrop-filter: blur(10px);
    z-index: 1000;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 2rem;
    box-sizing: border-box;
}

header .logo img {
    height: 2.5rem;
    width: auto;
    display: block;
}

nav a {
    color: white;
    margin: 0 1rem;
    text-decoration: none;
}
nav a:hover {
    text-decoration: underline;
}

/* Hamburger Menu */
.hamburger {
    display: none;
    font-size: 2rem;
    cursor: pointer;
    color: white;
}

/* -------------------------
     Slideshow
  -------------------------- */
.slideshow-container {
    position: relative;
    height: 100vh;
    overflow: hidden;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    height: 100vh;
    width: 100vw;
    opacity: 0;
    transition: all 0.8s ease;
}

.slide img {
    height: 100vh;
    width: 100vw !important;
    object-fit: cover;
}

/* Active Slides */
.slide.active.center {
    opacity: 1;
    transform: scale(1);
    z-index: 1;
}
.slide.active.top {
    opacity: 1;
    transform: translateY(0);
    z-index: 1;
}
.slide.active.left {
    opacity: 1;
    transform: translateX(0);
    z-index: 1;
}
.slide.active.right {
    opacity: 1;
    transform: translateX(0);
    z-index: 1;
}
.slide.active.bottom {
    opacity: 1;
    transform: translateY(0);
    z-index: 1;
}

/* Slide Animations */
.slide.top-enter {
    transform: translateY(-100%);
}
.slide.left-enter {
    transform: translateX(-100%);
}
.slide.right-enter {
    transform: translateX(100%);
}
.slide.bottom-enter {
    transform: translateY(100%);
}

/* Controls */
.prev,
.next {
    cursor: pointer;
    position: absolute;
    top: 50%;
    padding: 16px;
    font-weight: bold;
    font-size: 18px;
    color: white;
    transform: translateY(-50%);
    user-select: none;
    transition: 0.3s ease;
    z-index: 10;
}
.prev {
    left: 0;
}
.next {
    right: 0;
}

/* Dots */
.dot {
    height: 15px;
    width: 15px;
    margin: 0 4px;
    background-color: #bbb;
    border-radius: 50%;
    display: inline-block;
    cursor: pointer;
    transition: 0.3s ease;
}
.dot.active,
.dot:hover {
    background-color: #717171;
}

/* -------------------------------
Photography Section
---------------------------*/
.photo-category {
    text-align: center;
    padding: 1rem;
    border: 1px solid #ccc;
    border-radius: 10px;
    background-color: #f8f8f8;
}

.photo-category img {
    width: 20rem;
    height: 20rem;
    object-fit: cover;
    border-radius: 50%;
    display: block;
    margin: 0 auto 1rem auto;
}

.photo-category p {
    width: 100%;
    font-weight: bold;
    margin-bottom: 1rem;
    color: #333;
}

.photo-category a {
    display: inline-block;
    padding: 0.5rem 1rem;
    background-color: #3e4f4e;
    color: white;
    text-decoration: none;
    border-radius: 5px;
    transition: background-color 0.3s ease;
}
.photo-category a:hover {
    background-color: #2c3c3b;
}

/* -------------------------
     Portfolio & Gallery
  -------------------------- */
.portfolio,
.gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(22rem, 1fr));
    gap: 1rem;
}
.gallery img {
    width: 100%;
    border-radius: 10px;
}
#portfolio h2 {
    font-size: 2rem;
    font-weight: 800;
    font-style: italic;
}

/* -------------------------
     Services
  -------------------------- */
.service-card {
    background-color: #f8f8f8;
    padding: 1rem;
    border-radius: 10px;
    font-weight: bold;
    color: #3e4f4e;
    width: 200px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}
.service-card i {
    font-size: 2.5rem;
    margin-bottom: 0.8rem;
    color: #3e4f4e;
}
.service-card span {
    font-size: 1.1rem;
    margin-bottom: 0.8rem;
}
.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.2);
}
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 4rem;
    justify-items: center;
    margin-top: 2rem;
}

/* -------------------------
     Video Services
  -------------------------- */

.video-category {
    position: relative;
    display: flex;
    flex-direction: column;
    border: 1px solid #ccc;
    border-radius: 10px;
    overflow: hidden;
    background-color: #f8f8f8;
    text-decoration: none;
    color: white;
    transition: transform 0.3s ease;
}

.video-category:hover {
    transform: scale(1.02);
}

.video-category img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-top-left-radius: 10px;
    border-top-right-radius: 10px;
    display: block;
    transition: transform 0.4s ease;
}

.video-category:hover img {
    transform: scale(1.05);
}

.video-text {
    background-color: #3e4f4e;
    padding: 1rem;
    text-align: center;
    font-weight: bold;
    border-bottom-left-radius: 10px;
    border-bottom-right-radius: 10px;
}

.video-category:hover .video-text {
    background-color: #2c3c3b;
}

.play-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60px;
    height: 60px;
    background-color: rgba(0, 0, 0, 0.5);
    color: white;
    font-size: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
    transition: all 0.3s ease;
    opacity: 0;
    box-shadow: 0 0 0 transparent;
}

.video-category:hover .play-icon {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1.2);
    background-color: rgba(0, 0, 0, 0.8);
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.4);
}

/* -------------------------
     About Section
  -------------------------- */
.about-section {
    padding: 60px 20px;
    background: #f9f9f9;
    text-align: center;
}

.about-title {
    font-size: 2.2rem;
    margin-bottom: 40px;
    font-weight: 800;
    color: #3e4f4e;
}

.about-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 2%;
    max-width: 1100px;
    margin: 0 auto;
    flex-wrap: wrap;
}

.about-image {
    flex: 0 0 49%;
    display: flex;
    justify-content: center;
    max-width: 90%;
}

.about-image img {
    width: 100%;
    max-width: 400px; /* controls image size */
    height: auto;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.about-content {
    flex: 0 0 49%;
    text-align: left;
}

.about-content p {
    font-size: 1.1rem;
    margin-bottom: 20px;
    line-height: 1.6;
}

.about-highlights {
    list-style: none;
    padding: 0;
    margin: 0 0 20px 0;
}

.about-highlights li {
    margin-bottom: 10px;
    font-size: 1rem;
}

.btn {
    display: inline-block;
    padding: 10px 20px;
    background: #3e4f4e;
    color: #fff;
    border-radius: 8px;
    text-decoration: none;
    transition: 0.3s;
}

.btn:hover {
    background: #2c3c3b;
}
/* -------------------------
     Contact us
  -------------------------- */
.contact-section {
    padding: 4rem 2rem;
    text-align: center;
    /* background-color: #f9f9f9; */
}

.contact-container {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    gap: 3rem;
    flex-wrap: wrap;
    max-width: 1000px;
    margin: 0 auto;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    flex: 1;
    min-width: 280px;
}

.contact-form input,
.contact-form textarea {
    padding: 0.8rem;
    border-radius: 8px;
    border: 1px solid #ccc;
    font-size: 1rem;
    width: 100%;
    box-sizing: border-box;
}

.contact-form button {
    background-color: #3e4f4e;
    color: white;
    padding: 0.8rem;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    cursor: pointer;
    transition: 0.3s;
}

.contact-form button:hover {
    background-color: #2c3c3b;
}

.contact-info {
    flex: 1;
    min-width: 280px;
    text-align: left;
}

.contact-info p {
    margin: 0.5rem 0;
    font-weight: bold;
}

.social-icons {
    margin-top: 1rem;
}

.social-icons a {
    margin-right: 10px;
    font-size: 1.5rem;
    transition: color 0.3s;
    text-decoration: none;
}

.social-icons a:hover {
    color: #ff9800;
}

/* Mobile */
@media (max-width: 768px) {
    .contact-container {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .contact-info {
        text-align: center;
    }

    .social-icons a {
        margin: 0 8px;
    }
}

/* -------------------------
     Footer
  -------------------------- */
footer {
    background: #3e4f4e;
    color: white;
    padding: 2rem;
    text-align: center;
}
.social-icons {
    margin-top: 10px;
}
.social-icons a {
    margin: 0 10px;
    color: #fff;
    font-size: 1.5rem;
    transition: color 0.3s ease;
}
.social-icons a:hover {
    color: #ff9800;
}

/* -------------------------
     Responsive
  -------------------------- */
@media screen and (max-width: 768px) {
    /* Header */
    header {
        justify-content: flex-start;
        align-items: stretch;
        padding: 0 1rem;
    }
    header .logo {
        display: flex;
        align-items: stretch;
    }
    header .logo img {
        height: 100%;
    }
    .hamburger {
        display: block;
        margin-left: auto;
        align-self: center;
    }

    /* Nav */
    nav.main-nav {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 4rem;
        left: 0;
        width: 100%;
        background-color: rgba(62, 79, 78, 0.95);
        padding: 1rem 0;
        text-align: center;
    }
    nav.main-nav.active {
        display: flex;
    }
    nav.main-nav a {
        margin: 1rem 0;
        display: block;
    }

    /* About */
    .about-container {
        flex-direction: column;
        text-align: center;
    }

    .about-content {
        flex: 1 1 100%;
        margin-top: 20px;
    }

    /* Social Icons */
    .social-icons a {
        margin: 0 6px;
        font-size: 1.2rem;
    }
}
