/* Home Karigar - Modern Interior Design Website */

/* CSS Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Color Palette */
    --primary-color: #570513;
    --secondary-color: #570513;
    --accent-color: #570513;
    --light-background: #F8F8F8;
    --dark-background: #570513;
    --text-dark: #34495e;
    --text-light: #7f8c8d;
    --white: #ffffff; /* Ensure this is fully opaque */
    
    /* Typography */
    --font-primary: 'Segoe UI', 'Arial', sans-serif;
    --font-secondary: 'Georgia', serif;
    
    /* Spacing */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 2rem;
    --spacing-lg: 3rem;
    --spacing-xl: 4rem;
    
    /* Border Radius */
    --border-radius: 8px;
    --border-radius-lg: 12px;
    
    /* Shadows */
    --shadow-sm: 0 2px 4px rgba(0,0,0,0.1);
    --shadow-md: 0 4px 8px rgba(0,0,0,0.15);
    --shadow-lg: 0 8px 16px rgba(0,0,0,0.2);
    
    /* Transitions */
    --transition: all 0.3s ease;
}

body {
    font-family: var(--font-primary);
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--light-background);
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-secondary);
    font-weight: 600;
    line-height: 1.2;
    margin-bottom: var(--spacing-sm);
    color: var(--primary-color);
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.25rem; }

p {
    margin-bottom: var(--spacing-sm);
    color: var(--text-light);
}

a {
    color: var(--secondary-color);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    color: var(--primary-color);
}

/* Utility Classes */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-sm);
}

.section {
    padding: var(--spacing-xl) 0;
}

.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.btn {
    display: inline-block;
    padding: var(--spacing-sm) var(--spacing-md);
    background: var(--secondary-color);
    color: var(--white);
    border: none;
    border-radius: var(--border-radius);
    cursor: pointer;
    transition: var(--transition);
    font-size: 1rem;
    font-weight: 500;
    text-decoration: none;
}

.btn:hover {
    background: var(--white);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
    color: #570513;
}

.btn-outline {
    background: transparent;
    color: white;
    border: 2px solid white;
}

.btn-outline:hover {
    background: var(--primary-color);
    color: var(--white);
}

.btn-large {
    padding: var(--spacing-md) var(--spacing-lg);
    font-size: 1.1rem;
}
.sociallink {
    width: 50px;
    height: 150px;
    background-color: #fff;
    position: fixed;
    right: 0px;
    top: 45%;
    z-index:200;
}
.img1{
    background-image: url("../images/outgoing_5535705.png");
}
.img2{
    background-image: url("../images/2460207_chat_instagram_photos_social_icon.png");
}
.img3{
    background-image: url("../images/2460226_app_chat_friends_message_social_icon.png");
}
.commsocimg{
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;    
    cursor: pointer;
    height:50px;
    margin:0px 0 0 0px;
    transition: width 2s;
}
.commsocimg:hover {
    scale: 1.3;
}
/* Header & Navigation */
.header {
    background: var(--white);
    box-shadow: var(--shadow-sm);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000; /* Header z-index */
    transition: var(--transition);
}

.nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--spacing-sm) 0;
    position: relative; /* Essential for mobile-menu-toggle absolute positioning */
}

.logo {
    display: flex;
    align-items: center;
    box-shadow: none;
    padding: 0;
    z-index: 1001; /* Ensure logo is above default nav-menu on mobile when not active */
}

.logo img {
    height: 100px; /* Original size */
    width: auto;
    margin-right: 0;
    filter: none;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: var(--spacing-md);
}

.nav-link {
    color: var(--text-dark);
    font-weight: 500;
    transition: var(--transition);
    position: relative;
}

.nav-link:hover,
.nav-link.active {
    color: var(--secondary-color);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--secondary-color);
    transition: var(--transition);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

/* --- Mobile Menu Toggle Animation --- */
.mobile-menu-toggle {
    display: none; /* Hidden by default for desktop views */
    flex-direction: column;
    justify-content: space-between; /* Spacing between bars */
    align-items: center;
    width: 30px;
    height: 25px; /* Height for the 3 bars + 2 gaps (e.g., 3*3px bars + 2*8px gaps = 25px) */
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1002; /* Higher than logo and header elements */
    position: relative; /* For bar transformations */
    box-sizing: content-box;
}

.mobile-menu-toggle .bar {
    width: 100%;
    height: 3px;
    background-color: var(--primary-color);
    border-radius: 2px;
    transition: all 0.3s ease-in-out;
    display: block;
}

/* State when menu is active (shows 'X') */
.mobile-menu-toggle.is-active .bar:nth-child(1) {
    transform: translateY(11px) rotate(45deg); /* Moves top bar to center and rotates */
}

.mobile-menu-toggle.is-active .bar:nth-child(2) {
    opacity: 0; /* Middle bar disappears */
}

.mobile-menu-toggle.is-active .bar:nth-child(3) {
    transform: translateY(-11px) rotate(-45deg); /* Moves bottom bar to center and rotates */
}

/* Hero Section */
.hero {
    background: url('../images/double height hall-4.webp') no-repeat center center/cover;
    background-attachment: fixed;
    color: var(--white);
    min-height: 85vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}
.abouthero{
    background: url('../images/double height hall-19.webp') no-repeat center center/cover;
    background-attachment: fixed;
    color: var(--white);
    min-height: 60vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    padding-top:250px;
}
.abouthero1{
    background: url('../images/double height hall-1.webp') no-repeat center center/cover;
    background-attachment: fixed;
    color: var(--white);
    min-height: 60vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    padding-top:250px;
}
.abouthero2{
    background: url('../images/double height hall-9.webp') no-repeat center center/cover;
    background-attachment: fixed;
    color: var(--white);
    min-height: 60vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    padding-top:250px;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(46, 64, 83, 0.35);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.hero h1 {
    font-size: 3rem;
    margin-bottom: var(--spacing-md);
    color: var(--white);
    animation: fadeInUp 1s ease-out;
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: var(--spacing-lg);
    color: rgba(255, 255, 255, 0.9);
    animation: fadeInUp 1.3s ease-out 0.3s both;
}

.hero-cta {
    animation: fadeInUp 1.3s ease-out 0.6s both;
}

/*------------bottom right----------------*/
.socialicon{
    width: 50px;
    height: 50px;
    margin: 18px;
    border-radius: 50%;
    float: left;
}
.sociconpos{
    background-position: center;
    background-size: contain;
    background-repeat: no-repeat;
    width:50px;
    height:50px;

}
.faceimg{
    background-image: url("../images/Asset 17_1.png");
}
.whatsimg{
    background-image: url("../images/Asset 19_1.png");
}
.youtuimg{
    background-image: url("../images/Asset 18_1.png");    
}
.twitimg{
    background-image: url("../images/Asset 20_1.png");    
}

.faceimg:hover {
    background-color: #004cff;
    border-radius:50%;
    -webkit-transform: scale(1.1);
    transform: scale(1.1);
    transform: rotate(360deg)scale(1.2);
    transition-duration: 0.5s;
    -webkit-transform: rotate(360deg)scale(1.2);
    -webkit-transition-duration: 0.5s;
    background-blend-mode: hard-light;
    background-size: 108%;
    
}
.whatsimg:hover {
    background-color: #73fb40e5;
    border-radius:50%;
    -webkit-transform: scale(1.1);
    transform: scale(1.1);
    transform: rotate(360deg)scale(1.2);
    transition-duration: 0.5s;
    -webkit-transform: rotate(360deg)scale(1.2);
    -webkit-transition-duration: 0.5s;
    background-blend-mode: luminosity;
    background-size: 108%;
    
}
.youtuimg:hover {
    background-color: red;
    border-radius:50%;
    -webkit-transform: scale(1.1);
    transform: scale(1.1);
    transform: rotate(360deg)scale(1.2);
    transition-duration: 0.5s;
    -webkit-transform: rotate(360deg)scale(1.2);
    -webkit-transition-duration: 0.5s;
    background-blend-mode: hard-light;
    background-size: 108%;
    
}
.twitimg:hover {
    background-color: #0087ff;
    border-radius:50%;
    -webkit-transform: scale(1.1);
    transform: scale(1.1);
    transform: rotate(360deg)scale(1.2);
    transition-duration: 0.5s;
    -webkit-transform: rotate(360deg)scale(1.2);
    -webkit-transition-duration: 0.5s;
    background-blend-mode: hard-light;
    background-size: 108%;
    
}
/* About Section */
.about {
    background: var(--light-background);
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-xl);
    align-items: center;
}

.about-text h2 {
    color: var(--primary-color);
    margin-bottom: var(--spacing-md);
}

.about-image {
    position: relative;
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.about-image img {
    width: 100%;
    height: auto;
    display: block;
}

/* Services Section */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--spacing-lg);
    margin-top: var(--spacing-lg);
}

.service-card {
    background: var(--white);
    padding: var(--spacing-lg);
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-md);
    transition: var(--transition);
    text-align: center;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
}

.service-icon {
    width: 80px;
    height: 80px;
    background: var(--accent-color);
    border-radius: 50%;
    margin: 0 auto var(--spacing-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: var(--white);
}

.service-icon svg {
    stroke: #570513;
    fill: #570513;
}

.service-card h3 {
    color: var(--primary-color);
    margin-bottom: var(--spacing-sm);
}

/* Portfolio/Projects Section */
.portfolio {
    background: var(--light-background);
}

.portfolio-filters {
    display: flex;
    justify-content: center;
    gap: var(--spacing-sm);
    margin-bottom: var(--spacing-lg);
    flex-wrap: wrap;
}

.filter-btn {
    padding: var(--spacing-sm) var(--spacing-md);
    background: var(--white);
    color: var(--text-dark);
    border: 2px solid var(--primary-color);
    border-radius: var(--border-radius);
    cursor: pointer;
    transition: var(--transition);
}

.filter-btn:hover,
.filter-btn.active {
    background: var(--primary-color);
    color: var(--white);
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--spacing-md);
}

.portfolio-item {
    position: relative;
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
}

.portfolio-item:hover {
    transform: scale(1.05);
    box-shadow: var(--shadow-lg);
}

.portfolio-item img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    display: block;
}

.portfolio-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(87, 5, 19, 0.7); /* Using direct RGBA of primary-color */
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    align-items: flex-start;
    padding: var(--spacing-md);
    color: var(--white);
    opacity: 0;
    transition: var(--transition);
}

.portfolio-item:hover .portfolio-overlay {
    opacity: 1;
    background: var(--secondary-color);
    display: flex;
}

.portfolio-overlay h4 {
    color: var(--white);
    margin-bottom: var(--spacing-xs);
}

.portfolio-overlay p {
    color: rgba(255, 255, 255, 0.9);
}


/* --- Lightbox Styles --- */
.lightbox {
    display: none;
    position: fixed;
    z-index: 2000;
    padding-top: 60px;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.9);
    animation: fadeIn 0.3s forwards;
}

.lightbox.active {
    display: block;
}

.lightbox-content {
    margin: auto;
    display: block;
    max-width: 80%;
    max-height: 80vh;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.5);
    transform: scale(0.9);
    opacity: 0;
    animation: zoomIn 0.3s forwards cubic-bezier(0.68, -0.55, 0.265, 1.55);
    touch-action: pan-zoom;
}
.lightbox-caption {
    margin: 15px auto;
    display: block;
    width: 80%;
    max-width: 700px;
    text-align: center;
    color: #ccc;
    padding: 10px 0;
    font-size: 1.1rem;
}

.close-btn {
    position: absolute;
    top: 15px;
    right: 35px;
    color: #f1f1f1;
    font-size: 40px;
    font-weight: bold;
    transition: 0.3s;
    cursor: pointer;
}

.close-btn:hover,
.close-btn:focus {
    color: #bbb;
    text-decoration: none;
    cursor: pointer;
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes zoomIn {
    from { transform: scale(0.9); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

/* Responsive adjustments for lightbox */
@media (max-width: 768px) {
    .lightbox-content {
        max-width: 95%;
        max-height: 70vh;
    }
    .lightbox-caption {
        width: 90%;
        font-size: 1rem;
    }
    .close-btn {
        top: 10px;
        right: 20px;
        font-size: 30px;
    }
}


/* Testimonials Section */
.section.testimonials {
    background: var(--light-background);
}

.testimonials .text-center + div {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.testimonial-card {
    background: var(--white);
    padding: var(--spacing-md);
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-md);
}

.testimonial-card p {
    font-style: italic;
    margin-bottom: var(--spacing-sm);
    color: var(--text-dark);
}

.testimonial-author {
    display: flex;
    align-items: center;
}

.testimonial-avatar {
    width: 50px;
    height: 50px;
    background: var(--secondary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-weight: bold;
    margin-right: var(--spacing-sm);
}

.testimonial-details {
    margin: 0;
    color: var(--text-light);
    font-size: 0.9rem;
}

/* Contact Section */
.contact {
    background: var(--primary-color);
    color: var(--white);
}

.contact h2 {
    color: var(--white);
    text-align: center;
    margin-bottom: var(--spacing-lg);
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-xl);
}

.contact-form {
    background: var(--white);
    padding: var(--spacing-lg);
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-lg);
}

.form-group {
    margin-bottom: var(--spacing-md);
}

.form-group label {
    display: block;
    margin-bottom: var(--spacing-xs);
    color: var(--text-dark);
    font-weight: 500;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: var(--spacing-sm);
    border: 2px solid #ddd;
    border-radius: var(--border-radius);
    font-size: 1rem;
    transition: var(--transition);
    font-family: var(--font-primary);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--secondary-color);
    box-shadow: 0 0 0 3px rgba(231, 76, 60, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.contact-info h3 {
    color: var(--white);
    margin-bottom: var(--spacing-md);
}

.contact-details {
    margin-bottom: var(--spacing-lg);
}

.contact-details p {
    margin-bottom: var(--spacing-sm);
    color: rgba(255, 255, 255, 0.9);
}

.contact-details strong {
    color: var(--white);
}

/* Checkbox Container Styles */
.checkbox-container{
  display:flex !important;
  align-items:center !important;
  gap:1.9rem !important;           /* space between box and text */
  justify-content:flex-start !important;
}

/* Critical fix: stop the checkbox from being full-width */
.consent-checkbox{
  width:auto !important;
  height:auto !important;
  flex:0 0 auto !important;
  margin:0 !important;
  display:inline-block !important;
  vertical-align:middle !important;
}

/* Clean label */
.consent-label{
  margin:0 !important;
  line-height:1.2;
}

.consent-label:hover {
    color: var(--primary-color);
}

/* Footer */
.footer {
    background: var(--dark-background);
    color: rgba(255, 255, 255, 0.8);
    padding: var(--spacing-xl) 0 var(--spacing-md);
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: var(--spacing-lg);
    margin-bottom: var(--spacing-lg);
}

.footer-section h3 {
    color: var(--white);
    margin-bottom: var(--spacing-md);
}

.footer-section p {
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: var(--spacing-sm);
}

.footer-section a {
    display: block;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 0.5rem;
}

.footer-section a:hover {
    color: white;
}

.footer-section div[style="margin-top: 1rem;"] a {
    margin-right: var(--spacing-sm);
}

.footer-bottom {
    text-align: center;
    padding-top: var(--spacing-md);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.5);
}
/* Responsive Map Embed */
.map-responsive {
    overflow: hidden;
    padding-bottom: 56.25%;
    position: relative;
    height: 0;
    margin-top: 2rem;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-md);
}

.map-responsive iframe {
    left: 0;
    top: 0;
    height: 100%;
    width: 100%;
    position: absolute;
    border: 0;
}

/* Media Queries for Responsiveness */
@media (max-width: 768px) {
    .btn-large {
        margin: 0 0 30px 0;
    }
    .contact-content {
        grid-template-columns: auto;
        margin:0 0 0 10px;
    }
    
    h1 { font-size: 2rem; }
    h2 { font-size: 1.75rem; }
    
    .nav .container {
        /* Set padding on the container to control spacing from edges */
        /* This padding will apply to the logo on the left and effectively to the toggle on the right */
        padding: 0 5px; /* 5px from left and right edge */
        position: relative; /* Essential for absolute positioning of toggle */
    }

    /* Adjust logo position/size on mobile if needed */
    .logo img {
        height: 80px; /* Slightly smaller logo on mobile */
    }
    /* Ensure the logo div's content is aligned properly if it has any effect on positioning */
    .logo {
        position: relative; /* Ensure the logo is part of the normal flow on the left */
        z-index: 1001; /* Keep this here to ensure it's above the default nav-menu */
    }

    .nav-menu {
        display: none; /* Hidden by default on mobile */
        flex-direction: column;
        width: 100%;
        background-color: var(--white);
        position: fixed; /* Use fixed to cover entire viewport */
        top: 0; /* Start from the very top */
        left: 0;
        height: 100vh; /* Full viewport height */
        overflow-y: auto; /* Enable scrolling if content overflows */
        box-shadow: var(--shadow-md);
        padding-top: 100px; /* Adjust based on your header's actual height to clear logo/toggle */
        padding-bottom: var(--spacing-md); /* Add some padding at the bottom */
        z-index: 3000; /* Extremely high z-index to cover everything */
        transition: transform 0.3s ease-out; /* Add transition for slide effect */
        transform: translateX(100%); /* Start off-screen to the right */
        /* To make sure the background covers completely */
        will-change: transform; /* Hint to browser for smoother animation */
    }

    .nav-menu.active {
        display: flex; /* Show navigation menu when active */
        transform: translateX(0); /* Slide into view */
    }
    
    .nav-menu li {
        text-align: center;
        margin: 0;
    }
    
    .nav-menu a.nav-link {
        display: block;
        padding: var(--spacing-sm) var(--spacing-md);
        color: var(--primary-color);
        border-bottom: 1px solid #eee;
    }

    .nav-menu a.nav-link:hover {
        background-color: var(--light-background);
    }

    .mobile-menu-toggle {
        display: flex; /* Make the toggle visible on mobile */
        /* Position it absolutely relative to the .nav .container */
        position: absolute;
        right: 20px; /* Keep it 5px from the right edge of its parent (.nav .container) */
        top: 50%;
        transform: translateY(-50%); /* Vertically center */
        z-index: 3001; /* Higher than the menu itself to be clickable */
    }

    /* Ensure body doesn't scroll when menu is open (requires JS) */
    body.no-scroll {
        overflow: hidden;
    }

    .hero {
        min-height: 110vh;
    }
    .hero h1 {
        font-size: 2.2rem;
    }
    .hero p {
        font-size: 1rem;
    }

    .about-content {
        grid-template-columns: 1fr;
        gap: var(--spacing-md);
    }
    .about-image {
        order: -1;
    }
}

/* Form Message Styles */
#message-container {
    display: none;
    margin: 2rem 0;
}

.form-message {
    padding: 1rem 1.5rem;
    border-radius: var(--border-radius);
    margin-bottom: 1rem;
    font-weight: 500;
    text-align: center;
    animation: slideIn 0.3s ease-out;
}

.form-message.success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.form-message.error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}