* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: #fff;
    color: #333;
    overflow-x: hidden;
}

section {
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.5s ease-in-out, visibility 0s 0.5s;
}

section.visible {
    opacity: 1;
    visibility: visible;
    transition: opacity 0.5s ease-in-out;
}

/* Header and Logo */
.header {
    position: relative;
    background-color: #fff;
}

.logo-container {
    text-align: center;
    padding: 20px 0;
    background-color: #fff;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
}

.logo {
    max-width: 200px;
    height: auto;
}

/* Gallery container styles */
.gallery-container {
    width: 95%;
    max-width: 1200px;
    height: 80vh;
    margin: 50px auto 0;
    position: relative;
    background-color: #fff;
    overflow: hidden;
    touch-action: pan-y;
    padding: 0;
}

.gallery {
    width: 100%;
    height: 100%;
    position: relative;
    background-color: #fff;
    overflow: hidden;
    margin: 0;
    padding: 0;
}

.image-wrapper {
    width: 100%;
    height: 100%;
    margin: 0;
    position: relative;
    overflow: hidden;
    padding: 0;
}

.slider {
    display: flex;
    height: 100%;
    transition: transform 0.6s cubic-bezier(0.25, 0.1, 0.25, 1);
    will-change: transform;
    position: absolute;
    width: 100%;
    margin: 0;
    padding: 0;
}

.slide {
    flex: 0 0 100%;
    height: 100%;
    position: relative;
    background-color: #fff;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0;
    padding: 0;
}

.slide img,
.slide img.original,
.slide img.clone {
    max-width: 100%;
    max-height: 100%;
    width: 100%;
    height: auto;
    object-fit: contain;
    display: block;
    transition: opacity 0.5s ease;
    margin: 0;
    padding: 0;
}

/* Navigation buttons */
.nav-left,
.nav-right {
    position: absolute;
    top: 50%;
    background: rgba(255, 255, 255, 0.5);
    transform: translateY(-50%);
    border: none;
    color: rgb(0, 0, 0);
    font-size: 2rem;
    padding: 10px;
    cursor: pointer;
    z-index: 1;
    transition: transform 0.3s ease, background 0.3s ease;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.nav-left:hover,
.nav-right:hover {
    background: rgba(255, 255, 255, 0.8);
}

.nav-left {
    left: 20px;
}

.nav-right {
    right: 20px;
}

/* Loading spinner */
.loading-spinner {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: none;
    z-index: 100;
}

.spinner {
    border: 8px solid #f3f3f3;
    border-top: 8px solid #d3c8a7;
    border-radius: 50%;
    width: 60px;
    height: 60px;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* For portrait and landscape images */
.slide img[src*="sakumimg"] {
    max-height: 95%;
    width: auto;
}

.slide img[src*="sakumimgB"] {
    max-width: 95%;
    height: auto;
}

/* About Me Section */
.about-me {
    width: 100%;
    padding: 120px 0; /* Increased padding for breathing room */
    text-align: center;
    background-color: #ffffff; /* Light background for distinction */
}

.about-container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px; /* Side padding for smaller screens */
}

.about-container h2 {
    font-family: 'Playfair Display', serif;
    font-weight: 400;
    font-size: clamp(2.2rem, 5vw, 2.8rem); /* Responsive font size */
    color: #7d6e5d;
    letter-spacing: 1px;
    position: relative;
    margin-bottom: 40px; /* More space below title */
}

.about-container h2::after {
    content: '';
    position: absolute;
    width: 60px;
    height: 3px;
    background-color: #d3c8a7;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
}

.about-content {
    display: flex; /* Switch to flex for better control */
    flex-wrap: wrap; /* Allow wrapping on smaller screens */
    gap: 40px;
    align-items: center;
    justify-content: center;
    margin-top: 60px; /* Increased top margin */
}

.about-image-container {
    flex: 1;
    min-width: 300px; /* Minimum width for image */
    max-width: 450px; /* Cap width */
    position: relative;
    overflow: hidden;
    border-radius: 8px; /* Subtle rounding */
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1); /* Soft shadow */
    transition: transform 0.3s ease; /* Hover effect */
}

.about-image-container:hover {
    transform: scale(1.02); /* Slight zoom on hover */
}

.about-image {
    width: 100%;
    height: auto;
    object-fit: cover;
    display: block;
    border-radius: 8px;
}

.about-text {
    flex: 1.2;
    min-width: 300px; /* Minimum width for text */
    text-align: left;
    padding: 20px;
    font-family: 'Lora', serif;
    font-weight: 400;
    position: relative;
    background: #fff; /* White background for text block */
    border-left: 2px solid #7d6e5d; /* Replace ::before with border */
    border-radius: 4px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05); /* Subtle shadow */
}

.about-text p {
    font-size: clamp(1rem, 2.5vw, 1.2rem); /* Responsive font size */
    line-height: 1.8;
    margin-bottom: 20px;
    color: #5a5245;
}

.about-text p:last-child {
    margin-bottom: 0;
}

.about-text .highlight {
    font-family: 'Lora', serif;
    font-weight: 400;
    font-style: italic;
    color: #7d6e5d;
}


.portfolio-link {
    color: #7d6e5d;
    text-decoration: none;
    display: inline-block;
    margin-bottom: 50px;
}

h4 {
    font-family: 'Playfair Display', serif;
    font-weight: 400;
    font-size: 2.8rem;
    color: #7d6e5d;
    letter-spacing: 1px;
    position: relative;
}


.portfolio-link:hover {
    color: #5a5245;
}

/* Card Container */
.card-container {
    display: grid;
    grid-template-columns: repeat(4, minmax(250px, 1fr));
    width: 90%;
    max-width: 1600px;
    margin: 0 auto;
    margin-top: 100px;
    margin-bottom: 2rem;
    gap: 2rem;
}

/* Card Styling */


.card:hover {
    transform: translateY(-10px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

/* Card Main Section */
.card-main {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 100%;
    position: relative;
}

.card-main img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: filter 0.3s ease;
}

.card:hover .card-main img {
    filter: grayscale(0%) brightness(1);
}

/* Portfolio Category */
.card-main .portfolio-category {
    position: absolute;
    bottom: 1rem;
    left: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    border-radius: 4px;
}

.card-main .portfolio-category h3 {
    font-family: 'Playfair Display', serif;
    font-weight: 400;
    font-size: 1.5rem;
    color: #ffffff;
    margin: 0;
}

.card-main .portfolio-category i {
    font-size: 1rem;
    color: #ffffff;
    transition: color 0.3s ease;
}

.card:hover .card-main .portfolio-category h3,
.card:hover .card-main .portfolio-category i {
    color: #d3c8a7;
}

/* Card Hover Section */
.card-hover {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 2rem;
    text-align: center;
    background: rgba(211, 200, 167, 0.9);
    gap: 1rem;
    opacity: 0;
    transform: translateY(100%);
    transition: opacity 0.6s cubic-bezier(0.25, 0.1, 0.25, 1), transform 0.6s cubic-bezier(0.25, 0.1, 0.25, 1);
    font-family: 'Lora', serif;
    color: #5a5245;
    text-decoration: none;
}

/* Description Text */
.card-hover p {
    font-family: 'Lora', serif;
    font-size: 2rem;
    color: #5a5245;
    margin: 0.5rem 0;
}

.card-hover p a {
    padding: 50px;
}

/* Card Hover Effect */
.card:hover .card-hover {
    opacity: 1;
    transform: translateY(0);
    cursor: pointer;
}


/* Portfolio Section Styling */
.portfolio-section {
    background-color: white;
    width: 100%;
    padding: 0; /* Keep padding minimal */
    text-align: center;
    overflow-x: hidden; /* Prevent horizontal overflow */
}

/* Card Container */
.card-container {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr)); /* Change minmax(250px, 1fr) to minmax(0, 1fr) for better flexibility */
    width: 100%; /* Change to 100% to fill container */
    max-width: 1600px; /* Keep max-width constraint */
    margin: 0 auto; /* Center the container */
    margin-top: 100px;
    margin-bottom: 2rem;
    gap: 2rem;
    padding: 0 15px; /* Add slight padding to prevent edge clipping */
    box-sizing: border-box; /* Ensure padding doesn’t increase width */
}

/* Card Styling */
.card {
    aspect-ratio: 1 / 1;
    background: #fff;
    overflow: hidden;
    position: relative;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    width: 100%; /* Ensure cards take full available width */
    max-width: 400px; /* Cap individual card width */
    margin: 0 auto; /* Center within grid cell */
}

/* Wedding Banner Section */
.wedding-banner-section {
    background-color: #fff;
    width: 100%;
    padding: 0 0 40px 0; /* Original padding for desktop */
    text-align: center;
    overflow-x: hidden; /* Prevent horizontal overflow */
}

.wedding-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 30px;
    width: 100%;
    max-width: 1600px;
    margin: 0 auto;
    padding: 0 15px;
    box-sizing: border-box;
}

.wedding-card {
    position: relative;
    width: 100%;
    height: 400px; /* Fixed height for banner effect in desktop */
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    max-width: 1600px;
    margin: 0 auto;
}

.wedding-card img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Ensure image covers the container */
    object-position: center; /* Center the image */
    transition: transform 0.5s ease;
    display: block; /* Remove any inline spacing */
}

.wedding-card:hover img {
    transform: scale(1.05);
}

.wedding-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(rgba(0, 0, 0, 0.1), rgba(0, 0, 0, 0.5));
    z-index: 1; /* Ensure overlay is above image but below text */
}

.wedding-text {
    position: absolute;
    z-index: 2; /* Ensure text is above overlay */
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 90%;
    text-align: center;
    color: white;
    padding: 20px; /* Add padding to prevent text from touching edges */
    box-sizing: border-box;
}

.wedding-card h2 {
    margin: 0;
    font-size: 32px;
    letter-spacing: 2px;
    font-family: "Playfair Display", serif;
    font-weight: 500;
    text-transform: uppercase;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
}

.btn {
    letter-spacing: 2px;
    display: inline-block;
    margin-top: 20px;
    padding: 16px 38px;
    background: transparent;
    color: rgb(255, 255, 255);
    text-decoration: none;
    border: 1px solid rgb(255, 255, 255);
    transition: 0.3s;
    font-family: "Lora", serif;
    font-size: 1rem; /* Ensure font size is visible */
}

.btn:hover {
    color: white;
    background: rgba(0, 0, 0, 0.7);
    border-color: transparent;
}

/* Responsive Styles for Wedding Banner */
/* Tablet Media Queries */
@media (max-width: 992px) {
    .wedding-container {
        gap: 40px;
        padding: 0 15px;
    }

    .wedding-card {
        height: 300px; /* Reduced height for tablet */
    }

    .wedding-card h2 {
        font-size: 24px;
    }

    .btn {
        padding: 12px 24px;
        font-size: 14px;
    }
}

/* Mobile Media Queries */
@media (max-width: 768px) {
    .wedding-banner-section {
        padding: 0;
    }

    .wedding-container {
        display: grid;
        grid-template-columns: 1fr;
        gap: 2rem; /* Match card-container gap */
        margin-top: 0;
        margin-bottom: 50px;
        padding: 0 15px;
    }

    .wedding-card {
        height: auto;
        aspect-ratio: 1 / 1; /* Match card aspect ratio */
        background: #fff;
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
        transition: transform 0.3s ease, box-shadow 0.3s ease;
        max-width: 400px;
        margin: 0 auto;
    }

    .wedding-card:hover {
        transform: translateY(-10px);
        box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
    }

    .wedding-card h2 {
        font-size: 1.5rem; /* Match portfolio card h3 */
    }

    .btn {
        padding: 12px 24px;
        font-size: 1rem;
    }
}

/* Small Mobile Media Query */
@media (max-width: 480px) {
    .wedding-container {
        gap: 2rem;
        margin-bottom: 50px;
        padding: 0 15px;
    }

    .wedding-card {
        max-width: 400px;
        margin: 0 auto;
    }

    .wedding-card h2 {
        font-size: 1.5rem;
    }

    .btn {
        padding: 10px 20px;
        font-size: 0.9rem;
    }
}
/* Scrollbar Styling */
::-webkit-scrollbar {
    width: 5px;
    height: 5px;
}

::-webkit-scrollbar-track {
    background: hsla(0, 0%, 100%);
}

::-webkit-scrollbar-thumb {
    background: hsl(0, 0%, 50%);
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: #555;
}

img {
    max-width: 100%;
    display: block;
}

/* Responsive Styles */

/* Tablet Media Queries */
@media (max-width: 992px) {
    .about-me {
        padding: 80px 0; /* Reduced padding */
    }
    
    .about-container h2 {
        font-size: 2.4rem; /* Slightly smaller */
    }
    
    .about-content {
        box-shadow: none;
        background: none;
        flex-direction: column; /* Stack vertically */
        gap: 30px;
        margin-top: 40px;
    }
    
    .about-image-container {
        max-width: 500px; /* Slightly larger for tablets */
        margin: 0 auto;
    }
    
    .about-text {
        padding: 15px;
        border-left: none; /* Remove border for cleaner look */
        box-shadow: none; /* Remove shadow for simplicity */
        background-color: none;
        
    }
    
    .card-container {
        grid-template-columns: repeat(2, minmax(250px, 1fr));
        gap: 1.5rem;
    }
    
    .portfolio-link h4 {
        font-size: 2.2rem;
    }
    
    .card-main .portfolio-category h3 {
        font-size: 1.3rem;
    }
    
    .nav-left, .nav-right {
        width: 40px;
        height: 40px;
        font-size: 1.5rem;
    }
}

/* Existing styles remain unchanged until mobile media query */

/* Mobile Media Queries */
@media (max-width: 768px) {
    body {
        padding: 0;
        margin: 0;
    }
    
    .gallery-container {
        width: 100%;
        height: 80vh;
        margin: 0;
        padding: 0;
        overflow: hidden;
    }
    
    .gallery {
        width: 100%;
        height: 100%;
        margin: 0;
        padding: 0;
    }
    
    .image-wrapper {
        width: 100%;
        height: 100%;
        margin: 0;
        padding: 0;
    }
    
    .slider {
        width: 100%;
        height: 100%;
        margin: 0;
        padding: 0;
    }
    
    .slide {
        flex: 0 0 100%;
        width: 100%;
        height: 100%;
        margin: 0;
        padding: 0;
    }
    
    .slide img,
    .slide img.original,
    .slide img.clone {
        max-width: 100%;
        max-height: 90%;
        width: 100%;
        height: auto;
        object-fit: contain;
        margin: 0;
        padding: 0;
        border: 0;
    }
    
    .nav-left,
    .nav-right {
        width: 35px;
        height: 35px;
        font-size: 1.2rem;
        background: rgba(255, 255, 255, 0.7);
        transform: translateY(-50%);
    }
    
    .nav-left {
        left: 10px;
    }
    
    .nav-right {
        right: 10px;
    }
    
    .about-me {
        padding: 60px 0; /* Adjusted padding */
    }
    
    .about-container {
        width: 100%;
        padding: 0 15px;
    }
    
    .about-container h2 {
        font-size: 2rem;
    }
    
    .about-content {
        flex-direction: column;
        gap: 25px;
        margin-top: 30px;
    }
    
    .about-image-container {
        max-width: 350px; /* Adjusted for mobile */
        margin: 0 auto;
    }
    
    .about-text {
        padding: 20px; /* Consistent padding for box effect */
      
    
        border-radius: 8px; /* Slight rounding for softness */
      
        max-width: 90%; /* Limit width for centering */
        margin: 0 auto; /* Center the box */
      
    }
    
    .about-text p {
        font-size: 1rem;
        line-height: 1.6;
        margin-bottom: 20px;
        color: #5a5245;
    }
    
    .about-text p:last-child {
        margin-bottom: 0;
    }
    
    
    
    .portfolio-link h4 {
        font-size: 2rem;
        margin-bottom: 30px;
    }
    
    .card-container {
        grid-template-columns: 1fr;
        gap: 2rem;
        margin-top: 50px;
       
    }
    
    .card {
        max-width: 400px;
        margin: 0 auto;
    }
    
    .card-hover p {
        font-size: 1.5rem;
    }
}

/* Small Mobile Media Query */
@media (max-width: 480px) {
    .gallery-container {
        height: 70vh;
        width: 100%;
        margin: 0;
        padding: 0;
    }
    
    .slide img,
    .slide img.original,
    .slide img.clone {
        max-width: 100%;
        max-height: 90%;
        width: 100%;
        height: auto;
        margin: 0;
        padding: 0;
    }
    
    .nav-left,
    .nav-right {
        width: 30px;
        height: 30px;
        font-size: 1rem;
    }
    
    .nav-left {
        left: 5px;
    }
    
    .nav-right {
        right: 5px;
    }
    
    .about-me {
        padding: 40px 0; /* Reduced padding */
    }
    
    .about-container h2 {
        font-size: 1.8rem;
    }
    
    .about-content {
        gap: 20px;
        margin-top: 20px;
    }
    
    .about-image-container {
        max-width: 280px; /* Smaller for small screens */
    }
    
    .about-text {
        padding: 15px; /* Slightly reduced padding */
        max-width: 95%; /* Slightly wider for smaller screens */
    }
    
    .about-text p {
        font-size: 0.95rem;
        line-height: 1.5;
    }
    
    .card-hover p {
        font-size: 1.2rem;
    }
}