/* CSS Custom Properties */
:root {
    --primary: #FF6F61;
    --secondary: #FFF8E1;
    --accent: #E0E0E0;
    --text: #2D2D2D;
    --gradient: linear-gradient(135deg, #FF6F61, #FF9A8B);
}

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Lora', serif;
    line-height: 1.7;
    color: var(--text);
    background: var(--secondary);
    padding-top: 60px;
    overflow-x: hidden;
    -webkit-tap-highlight-color: transparent;
}

html {
    scroll-behavior: smooth;
}

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 16px;
}

/* Preloader */
.preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--text);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    transition: opacity 0.5s ease;
}

.preloader.fade-out {
    opacity: 0;
    pointer-events: none;
}

.spinner {
    width: 50px;
    height: 50px;
    border: 4px solid var(--primary);
    border-top: 4px solid transparent;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}


/* Header Styles */
.parallax-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(45, 45, 45, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    transition: transform 0.3s ease;
    padding: 0.3rem 0;
}

.navbar {
    padding: 0;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    padding: 0 16px;
    box-sizing: border-box;
}

.logo {
    display: flex;
    align-items: center;
    gap: 8px;
}

.logo-icon {
    background: url('images/vathanibuilderslogo.webp') center/cover no-repeat;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    box-shadow: 0 4px 15px rgba(255, 111, 97, 0.3);
}

.logo-text h2 {
    font-family: 'Cinzel', serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--secondary);
    margin-bottom: -2px;
}

.logo-text span {
    font-size: 0.7rem;
    color: var(--primary);
    font-weight: 500;
    letter-spacing: 1px;
}

.nav-list {
    display: flex;
    align-items: center;
    list-style: none;
    gap: 1.5rem;
}

.nav-link {
    text-decoration: none;
    color: var(--secondary);
    font-family: 'Lora', serif;
    font-weight: 500;
    font-size: 0.9rem;
    transition: color 0.3s ease, transform 0.3s ease;
    position: relative;
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary);
    transform: translateY(-2px);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -3px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary);
    transition: width 0.3s ease;
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.nav-dropdown {
    position: relative;
}

.nav-dropdown-content {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: var(--text);
    padding: 0.8rem;
    border-radius: 10px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
    z-index: 1000;
}

.nav-dropdown:hover .nav-dropdown-content {
    display: block;
}

.nav-dropdown-content a {
    display: block;
    color: var(--secondary);
    padding: 0.4rem 0.8rem;
    text-decoration: none;
    font-size: 0.8rem;
    transition: color 0.3s ease;
}

.nav-dropdown-content a:hover {
    color: var(--primary);
}

.nav-dropdown-content.active {
    display: block;
}

.dropdown-arrow {
    font-size: 0.7rem;
    margin-left: 2px;
}

.hamburger {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    width: 40px;
    height: 40px;
    padding: 6px;
    background: transparent;
    border-radius: 6px;
    transition: background 0.3s ease;
}

.hamburger:hover {
    background: rgba(255, 111, 97, 0.2);
}

.hamburger span {
    width: 20px;
    height: 2px;
    background: var(--secondary);
    margin: 2px 0;
    transition: all 0.3s ease;
    border-radius: 1px;
}

.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* Hero Section */
.hero {
    position: relative;
    height: 100vh;
    overflow: hidden;
    padding-top: 0;
    margin-top: -60px;
}

.hero-slideshow {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 1s ease, transform 8s ease;
    transform: scale(1.1);
}

.hero-slide.active {
    opacity: 1;
    transform: scale(1);
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(45, 45, 45, 0.6);
    z-index: 2;
}

.hero-content {
    position: relative;
    z-index: 3;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    text-align: center;
    color: var(--secondary);
    padding: 0 10px;
}

.hero-title {
    font-family: 'Cinzel', serif;
    font-size: 4rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    text-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    animation: fadeInUp 0.8s ease;
}

.hero-subtitle {
    font-family: 'Lora', serif;
    font-size: 1.5rem;
    max-width: 600px;
    margin-bottom: 1.2rem;
}

.hero-stats {
    display: flex;
    gap: 2rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
    justify-content: center;
}

.stat-item {
    text-align: center;
    transition: transform 0.3s ease;
}

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

.stat-number {
    display: block;
    font-family: 'Cinzel', serif;
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary);
}

.stat-label {
    font-family: 'Lora', serif;
    font-size: 1rem;
    color: var(--accent);
}

.hero-buttons {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
    justify-content: center;
}

.btn {
    padding: 1rem 2rem;
    border: none;
    border-radius: 40px;
    cursor: pointer;
    font-family: 'Lora', serif;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
    min-width: 140px;
    touch-action: manipulation;
}

.btn-primary {
    background: var(--gradient);
    color: var(--text);
    box-shadow: 0 4px 15px rgba(255, 111, 97, 0.3);
}

.btn-primary:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 20px rgba(255, 111, 97, 0.4);
}

.btn-secondary {
    background: transparent;
    border: 2px solid var(--primary);
    color: var(--secondary);
}

.btn-secondary:hover {
    background: var(--primary);
    color: var(--text);
}

.scroll-indicator {
    position: absolute;
    bottom: 2rem;
    animation: bounce 2s infinite;
}

.scroll-arrow {
    width: 40px;
    height: 40px;
    border-right: 2px solid var(--primary);
    border-bottom: 2px solid var(--primary);
    transform: rotate(45deg);
}

/* Particles */
.particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2;
}

/* Parallax Sections */
.parallax-section {
    position: relative;
    background-attachment: fixed;
    background-position: center;
    background-size: cover;
}

/* About Section */
.about {
    padding: 4rem 0;
    background: linear-gradient(135deg, var(--secondary) 0%, #f5f0e5 100%);
    position: relative;
    overflow: hidden;
}

.section-header {
    text-align: center;
    margin-bottom: 2rem;
}

.section-header h2 {
    font-family: 'Cinzel', serif;
    font-size: 3rem;
    color: var(--text);
    position: relative;
    margin-bottom: 0.8rem;
}

.section-header h2::after {
    content: '';
    position: absolute;
    bottom: -6px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: var(--gradient);
    border-radius: 4px;
    transition: width 0.3s ease;
}

.section-header h2:hover::after {
    width: 120px;
}

.section-header p {
    font-family: 'Lora', serif;
    font-size: 1.2rem;
    color: #555;
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    align-items: center;
}

.about-text h3 {
    font-family: 'Cinzel', serif;
    font-size: 1.8rem;
    color: var(--text);
    margin-bottom: 0.8rem;
}

.about-text p {
    color: #555;
    line-height: 1.5;
    margin-bottom: 1.5rem;
}

.about-features {
    display: grid;
    gap: 1.5rem;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    transition: transform 0.3s ease;
}

.feature-item:hover {
    transform: scale(1.02);
}

.feature-item i {
    font-size: 2rem;
    color: var(--primary);
    background: linear-gradient(45deg, #FF6F61, #FF9A85);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    padding: 0.4rem;
    border-radius: 50%;
}

.feature-item h4 {
    font-family: 'Cinzel', serif;
    font-size: 1.2rem;
    color: var(--text);
    margin-bottom: 0.3rem;
}

.feature-item p {
    font-size: 0.9rem;
    color: #666;
    line-height: 1.4;
}

.about-image img {
    width: 100%;
    height: 350px;
    object-fit: cover;
    border-radius: 15px;
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.about-image img:hover {
    transform: scale(1.03);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

/* Services Section */
.services {
    padding: 6rem 0;
    background: #F5F0E1;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.service-card {
    background: var(--secondary);
    border-radius: 20px;
    padding: 2rem;
    text-align: center;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 25px rgba(255, 111, 97, 0.2);
}

.service-icon {
    font-size: 2.5rem;
    color: var(--primary);
    margin-bottom: 1rem;
}

.service-card h3 {
    font-family: 'Cinzel', serif;
    font-size: 1.6rem;
    color: var(--text);
    margin-bottom: 0.8rem;
}

.service-card p {
    color: #666;
    font-size: 1rem;
}

/* Completed Projects Section */
.completed-projects {
    padding: 6rem 0;
    background: url('images/floor.jpg') center/cover fixed;
}

.filter-tabs {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 0.8rem 1.5rem;
    border: 2px solid var(--primary);
    background: transparent;
    color: var(--text);
    border-radius: 40px;
    cursor: pointer;
    font-family: 'Lora', serif;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.filter-btn.active,
.filter-btn:hover {
    background: var(--gradient);
    color: var(--text);
    box-shadow: 0 4px 15px rgba(255, 111, 97, 0.3);
}

.completed-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
}

.completed-card {
    background: var(--secondary);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.completed-image {
    width: 100%;
    position: relative;
    overflow: hidden;
}

.completed-img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.completed-card:hover .completed-img {
    transform: scale(1.1);
}

.completed-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(45, 45, 45, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.completed-card:hover .completed-overlay {
    opacity: 1;
}

.view-btn {
    background: var(--gradient);
    color: var(--text);
    padding: 0.8rem 1.5rem;
    border: none;
    border-radius: 40px;
    cursor: pointer;
    font-family: 'Lora', serif;
    font-weight: 600;
    font-size: 1rem;
    transition: transform 0.3s ease;
}

.view-btn:hover {
    transform: scale(1.05);
}

.completed-content {
    padding: 1.5rem;
}

.completed-content h3 {
    font-family: 'Cinzel', serif;
    font-size: 1.5rem;
    color: var(--text);
    margin-bottom: 0.8rem;
}

.completed-content p {
    color: #666;
    line-height: 1.6;
}

.show-more-container {
    text-align: center;
    margin-top: 2rem;
}

.btn-show-more {
    display: inline-block;
    padding: 0.8rem 1.5rem;
    background: var(--gradient);
    color: var(--text);
    text-decoration: none;
    border-radius: 40px;
    font-family: 'Lora', serif;
    font-weight: 600;
    transition: transform 0.3s ease;
}

.btn-show-more:hover {
    transform: scale(1.05);
}

/* Projects Section */
.projects {
    padding: 6rem 0 6rem 0; /* Increased bottom padding for indicator */
    background: #F5F0E1;
    position: relative; /* Positioning context for absolute children */
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
}

.project-card {
    background: var(--secondary);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.project-image {
    position: relative;
    overflow: hidden;
}

.project-img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.project-card:hover .project-img {
    transform: scale(1.1);
}

.project-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(45, 45, 45, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.project-card:hover .project-overlay {
    opacity: 1;
}

.project-status {
    background: var(--primary);
    color: var(--text);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.9rem;
}

.project-content {
    padding: 1.5rem;
}

.project-content h3 {
    font-family: 'Cinzel', serif;
    font-size: 1.5rem;
    color: var(--text);
    margin-bottom: 0.8rem;
}

.project-location {
    color: var(--primary);
    font-size: 1rem;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.project-content p {
    color: #666;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.project-progress {
    margin-top: 1rem;
}
/*scroll indication above view all projects*/
.scroll-indicator {
    margin: 2rem 0 1rem;
    display: flex;
    justify-content: center;
    animation: bounce 2s infinite;
    position: static; /* Important: remove absolute positioning */
}

.scroll-arrow {
    width: 40px;
    height: 40px;
    border-right: 2px solid var(--primary);
    border-bottom: 2px solid var(--primary);
    transform: rotate(45deg);
}

/* Bounce Animation */
@keyframes bounce {
    0%, 100% {
        transform: translateY(0) rotate(45deg);
    }
    50% {
        transform: translateY(-10px) rotate(45deg);
    }
}

.show-more-container {
    text-align: center;
    margin-top: 2rem;
}
/*-------------------------*/

.progress-bar {
    background: var(--accent);
    border-radius: 10px;
    height: 10px;
    overflow: hidden;
}

.progress-fill {
    background: var(--gradient);
    height: 100%;
    transition: width 1s ease;
}

/* Testimonials Section */
.testimonials {
    padding: 6rem 0;
    background: url('https://images.unsplash.com/photo-1512917774080-9991f7c4c300?ixlib=rb-4.0.3&auto=format&fit=crop&w=1920&q=80') center/cover fixed;
}

.testimonials-carousel {
    position: relative;
    overflow: hidden;
}

.testimonial-card {
    background: var(--secondary);
    border-radius: 20px;
    padding: 1.5rem;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
    text-align: center;
    margin: 0 0.5rem;
    display: none;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.testimonial-card.active {
    display: block;
}

.stars-container {
    margin-bottom: 1rem;
    display: flex;
    justify-content: center;
    gap: 0.2rem;
}

.star {
    font-size: 1rem;
    color: #FFD700;
}

.testimonial-text {
    font-family: 'Lora', serif;
    font-size: 1rem;
    color: #666;
    line-height: 1.5;
    margin-bottom: 1rem;
    font-style: italic;
}

.testimonial-text::before {
    content: '"';
    font-size: 2.5rem;
    color: var(--primary);
    position: absolute;
    top: -6px;
    left: -10px;
}

.testimonial-text::after {
    content: '"';
    font-size: 2.5rem;
    color: var(--primary);
    position: absolute;
    bottom: -15px;
    right: -5px;
}

.testimonial-author {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.8rem;
}

.author-image {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    overflow: hidden;
    border: 2px solid var(--primary);
}

.author-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.author-info h4 {
    font-family: 'Cinzel', serif;
    font-size: 0.9rem;
    color: var(--text);
    margin-bottom: 0.2rem;
}

.author-info span {
    font-family: 'Lora', serif;
    font-size: 0.7rem;
    color: #666;
}

.testimonial-navigation {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 1rem;
}

.nav-btn {
    width: 35px;
    height: 35px;
    border: none;
    border-radius: 50%;
    background: var(--gradient);
    color: var(--text);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    box-shadow: 0 3px 10px rgba(255, 111, 97, 0.2);
    transition: all 0.3s ease;
}

.nav-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 15px rgba(255, 111, 97, 0.3);
}

/* Gallery Section */
.gallery {
    padding: 4rem 0;
    background: var(--secondary);
    overflow: hidden;
}

.gallery .container {
    max-width: 100%;
    padding: 0;
}

.gallery-filter {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.gallery-filter-btn {
    padding: 0.6rem 1.2rem;
    border: 2px solid var(--primary);
    background: transparent;
    color: var(--primary);
    border-radius: 40px;
    cursor: pointer;
    font-family: 'Lora', serif;
    font-weight: 600;
    font-size: 0.8rem;
    transition: all 0.3s ease;
}

.gallery-filter-btn:hover::before {
    left: 100%;
}

.gallery-filter-btn:hover,
.gallery-filter-btn.active {
    background: var(--gradient);
    color: var(--text);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 111, 97, 0.2);
}

.moving-gallery-container {
    width: 100%;
    overflow: hidden;
    position: relative;
    margin: 1.5rem 0;
    padding: 1.5rem 0;
}

.gallery-row {
    display: flex;
    width: max-content;
    gap: 10px;
    animation-duration: 40s;
    animation-timing-function: linear;
    animation-iteration-count: infinite;
    margin-bottom: 10px;
}

.gallery-row:last-child {
    margin-bottom: 0;
}

.gallery-row.row-1 {
    animation-name: moveLeftToRight;
}

.gallery-row.row-2 {
    animation-name: moveRightToLeft;
}

@keyframes moveLeftToRight {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(0%); }
}

@keyframes moveRightToLeft {
    0% { transform: translateX(0%); }
    100% { transform: translateX(-100%); }
}

.gallery-item {
    position: relative;
    width: 160px;
    height: 100px;
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
    background: var(--primary);
    flex-shrink: 0;
}

.gallery-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, rgba(255, 111, 97, 0.1), rgba(255, 111, 97, 0.1));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.gallery-item:hover::before {
    opacity: 1;
}

.gallery-item:hover {
    transform: scale(1.1) translateY(-10px);
    z-index: 100;
    box-shadow: 0 20px 50px rgba(255, 111, 97, 0.3);
    height: 120px;
}

.gallery-image {
    width: 100%;
    height: 100%;
    position: relative;
    overflow: hidden;
}

.gallery-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: all 0.3s ease;
    filter: brightness(0.9) contrast(1.1);
}

.gallery-img.loaded {
    animation: fadeInImage 0.5s forwards;
}

@keyframes fadeInImage {
    from { opacity: 0; }
    to { opacity: 1; }
}

.gallery-item:hover .gallery-img {
    transform: scale(1.05);
    filter: brightness(1.1) contrast(1.2) saturate(1.3);
}

.gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, rgba(255, 111, 97, 0.1), rgba(255, 111, 97, 0.1));
    display: none;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: all 0.3s ease;
}

.gallery-item.touch-active .gallery-overlay,
.gallery-item:hover .gallery-overlay {
    display: flex;
    opacity: 1;
}

.gallery-info {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.7));
    padding: 8px;
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

.gallery-item:hover .gallery-info,
.gallery-item.touch-active .gallery-info {
    transform: translateY(0);
}

.gallery-info h3 {
    font-family: 'Cinzel', serif;
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 2px;
    color: var(--secondary);
}

.gallery-info p {
    font-family: 'Lora', serif;
    font-size: 0.6rem;
    color: var(--accent);
    line-height: 1.3;
}

.zoom-btn {
    background: rgba(255, 111, 97, 0.2);
    border: 2px solid rgba(255, 111, 97, 0.3);
    color: var(--secondary);
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.zoom-btn:hover {
    background: rgba(255, 111, 97, 0.3);
    transform: scale(1.1);
    border-color: rgba(255, 111, 97, 0.5);
}

.category-tag {
    position: absolute;
    top: 6px;
    left: 6px;
    background: var(--gradient);
    color: var(--text);
    padding: 2px 5px;
    border-radius: 10px;
    font-family: 'Lora', serif;
    font-size: 0.5rem;
    font-weight: 600;
    opacity: 0;
    transform: translateY(-8px);
    transition: all 0.3s ease;
}

.gallery-item:hover .category-tag,
.gallery-item.touch-active .category-tag {
    opacity: 1;
    transform: translateY(0);
}

/* Image Modal */
#imageModal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    z-index: 9999;
    display: none;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.3s ease;
}

#imageModal.loading #modalImage {
    opacity: 0;
}
#imageModal img:not(.loaded) {
    display: none;
}

#modalImage {
    max-width: 90%;
    max-height: 90%;
    border-radius: 10px;
    object-fit: contain;
    transition: opacity 0.3s ease;
}

#modalImage.loaded {
    opacity: 1;
}

.close-modal {
  position: absolute;
  top: 20px;         /* Adjust as needed */
  right: 20px;       /* Adjust as needed */
  width: 40px;       /* Size */
  height: 40px;
  background: coral; /* ✅ Coral red background */
  border: none;
  border-radius: 50%; /* Makes it circular */
  color: #fff;        /* Icon color */
  font-size: 1.5rem;  /* Size of X */
  cursor: pointer;
  display: flex;      /* Center X inside circle */
  align-items: center;
  justify-content: center;
  transition: transform 0.3s ease, background 0.3s ease;
}

.close-modal:hover {
  transform: rotate(90deg);
  background: #e74c3c; /* ✅ Slightly darker coral for hover */
}

/* Contact Section */
.contact {
    padding: 4rem 0;
    background: url('images/whiteandsky.jpg') center/cover fixed;
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

.contact-info h3 {
    font-family: 'Cinzel', serif;
    font-size: 2rem;
    color: var(--text);
    margin-bottom: 1rem;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    margin-bottom: 1rem;
}

.contact-item i {
    font-size: 1.5rem;
    color: var(--primary);
}

.contact-item h4 {
    font-family: 'Cinzel', serif;
    font-size: 1rem;
    color: var(--text);
    margin-bottom: 0.3rem;
}

.contact-item p {
    font-family: 'Lora', serif;
    font-size: 0.9rem;
    color: #666;
}

.contact-item a {
    color: #666;
    text-decoration: none;
}

.contact-item a:hover {
    color: var(--primary);
}

.contact-form h3 {
    font-family: 'Cinzel', serif;
    font-size: 2rem;
    color: var(--text);
    margin-bottom: 1rem;
}

#successMessage,
#errorMessage {
    display: none;
    padding: 0.8rem;
    border-radius: 8px;
    margin-bottom: 1rem;
    text-align: center;
    font-family: 'Lora', serif;
}

#successMessage {
    background: #d4edda;
    color: #155724;
}

#errorMessage {
    background: #f8d7da;
    color: #721c24;
}

#contactForm {
    display: grid;
    gap: 1rem;
}

.form-group {
    position: relative;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 0.8rem;
    border: 2px solid var(--accent);
    border-radius: 8px;
    font-family: 'Lora', serif;
    font-size: 0.9rem;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    border-color: var(--primary);
    outline: none;
}

.form-group textarea {
    resize: vertical;
    min-height: 100px;
}

#submitBtn {
    background: var(--gradient);
    color: var(--text);
    padding: 0.8rem 1.5rem;
    border: none;
    border-radius: 40px;
    cursor: pointer;
    font-family: 'Lora', serif;
    font-weight: 600;
    transition: transform 0.3s ease;
}

#submitBtn:hover {
    transform: scale(1.05);
}

/* Location Section */
.location {
    padding: 4rem 0;
    background: #F5F0E1;
}

.location-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

.location-info h3 {
    font-family: 'Cinzel', serif;
    font-size: 2rem;
    color: var(--text);
    margin-bottom: 1rem;
}

.location-item {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    margin-bottom: 1rem;
}

.location-item i {
    font-size: 1.5rem;
    color: var(--primary);
}

.location-item h4 {
    font-family: 'Cinzel', serif;
    font-size: 1rem;
    color: var(--text);
    margin-bottom: 0.3rem;
}

.location-item p {
    font-family: 'Lora', serif;
    font-size: 0.9rem;
    color: #666;
}

.map-container {
    position: relative;
}

.map-container img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    border-radius: 15px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.map-container img:hover {
    transform: scale(1.03);
}

/* Footer */
.footer {
  background: var(--text);
  color: var(--secondary);
  padding: 2rem 0;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem;
  margin-bottom: 1.5rem;
}

.footer-logo {
  display: flex;
  align-items: flex-start;
  gap: 8px;
}

.footer-logo .logo-icon {
  background: url('images/vathanibuilderslogo.webp') center/cover no-repeat;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  box-shadow: 0 4px 15px rgba(255, 111, 97, 0.3);
}

.footer-logo .footer-text {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.footer-logo h3 {
  font-family: 'Cinzel', serif;
  font-size: 1.5rem;
  margin: 0;
  color: var(--secondary);
}

.footer-logo p {
  color: var(--accent);
  font-family: 'Lora', serif;
  font-size: 0.9rem;
  margin: 0.2rem 0 0.8rem;
}

.social-links {
  display: flex;
  gap: 0.5rem;
  margin-top: 0.5rem;
}

.social-links a {
  color: var(--accent);
  font-size: 1rem;
  transition: color 0.3s ease, transform 0.3s ease;
}

.social-links a:hover {
  color: var(--primary);
  transform: scale(1.1);
}

.footer-section {
  flex: 1;
}

.footer-section h4 {
  color: var(--primary);
  font-family: 'Cinzel', serif;
  font-size: 1.2rem;
  margin-bottom: 0.8rem;
}

.footer-section ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-section li {
  margin-bottom: 0.6rem;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.footer-section li a {
  color: var(--accent);
  text-decoration: none;
  font-family: 'Lora', serif;
  transition: color 0.3s ease;
}

.footer-section li a:hover {
  color: var(--primary);
}

.footer-section li i {
  color: var(--primary);
  font-size: 1rem;
}

.footer-bottom {
  border-top: 1px solid var(--accent);
  padding-top: 1rem;
  text-align: center;
  color: var(--accent);
  font-family: 'Lora', serif;
  font-size: 0.8rem;
}

/* ✅ Responsive for Mobile */
@media (max-width: 768px) {
  .footer {
    padding: 1.5rem 1rem;
    text-align: center;
  }

  .footer-content {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .footer-logo {
    flex-direction: column;
    align-items: center;
  }

  .footer-logo .footer-text {
    align-items: center;
    text-align: center;
  }

  .social-links {
    justify-content: center;
  }

  .footer-section {
    text-align: center;
  }

  .footer-section li {
    justify-content: center;
  }

  .footer-bottom {
    font-size: 0.75rem;
    line-height: 1.4;
  }
}


/* WhatsApp Button */
.whatsapp-float {
    position: fixed;
    bottom: 15px;
    right: 15px;
    background: #25D366;
    color: var(--secondary);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    z-index: 1000;
    transition: transform 0.3s ease;
    text-decoration: none;
}
.whatsapp-float i {
  text-decoration: none; /* ✅ Remove underline from icon */
}
.whatsapp-float:hover {
    transform: scale(1.1);
}

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

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.5s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
    40% { transform: translateY(-20px); }
    60% { transform: translateY(-10px); }
}

/* Responsive Design */
@media (max-width: 1280px) {
    .hero-title {
        font-size: 3.5rem;
    }

    .section-header h2 {
        font-size: 2.8rem;
    }

    .gallery-item {
        width: 140px;
        height: 90px;
    }

    .gallery-item:hover {
        height: 108px;
    }
}

@media (max-width: 1024px) {
    .hero-title {
        font-size: 3rem;
    }

    .about-content,
    .contact-content,
    .location-content {
        grid-template-columns: 1fr;
    }

    .about-image img,
    .map-container img {
        height: 250px;
    }

    .services-grid,
    .projects-grid,
    .completed-grid {
        grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    }

    .project-img,
    .completed-img {
        height: 180px;
    }
}

@media (max-width: 768px) {
    /* Show hamburger icon on mobile */
    .hamburger {
        display: flex;
    }

    /* Hide nav list by default and slide in on .active */
    .nav-list {
        position: fixed;
        top: 60px;
        left: 0;
        right: 0;
        background: var(--text);
        flex-direction: column;
        padding: 1.5rem;
        transform: translateY(-100%);
        opacity: 0;
        transition: all 0.3s ease;
        z-index: 999;
        display: none;
    }

    .nav-list.active {
        transform: translateY(0);
        opacity: 1;
        display: flex; /* ✅ fixed typo here */
    }

    /* Dropdown content inside nav on mobile */
    .nav-dropdown-content {
        position: static;
        background: transparent;
        box-shadow: none;
        padding: 0;
        display: none;
    }

    .nav-dropdown-content.active {
        display: block;
    }

    /* Typography adjustments for small screens */
    .hero-title {
        font-size: 2rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .section-header h2 {
        font-size: 2rem;
    }

    /* Image height adjustments */
    .about-image img,
    .map-container img {
        height: 200px;
    }

    /* Layout: single-column grids */
    .services-grid,
    .projects-grid,
    .completed-grid {
        grid-template-columns: 1fr;
    }

    .project-img,
    .completed-img {
        height: 160px;
    }

    /* Gallery card size on mobile */
    .gallery-item {
        width: 120px;
        height: 80px;
    }

    .gallery-item.touch-active {
        height: 96px;
        transform: scale(1.05) translateY(-5px);
    }

    .gallery-filter {
        gap: 6px;
    }

    .moving-gallery-container {
        padding: 1rem 0;
    }

    /* Contact and location layout adjustments */
    .contact-content,
    .location-content {
        gap: 1.5rem;
    }

    /* Footer stacked and centered on mobile */
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .footer-section ul {
        margin: 0 auto;
        max-width: 180px;
    }

    /* WhatsApp icon positioning */
    .whatsapp-float {
        bottom: 10px;
        right: 10px;
    }
}


@media (max-width: 480px) {
    .hero-title {
        font-size: 1.8rem;
    }

    .hero-subtitle {
        font-size: 0.9rem;
    }

    .section-header h2 {
        font-size: 1.6rem;
    }

    .btn,
    .filter-btn,
    .view-btn,
    .btn-show-more,
    #submitBtn {
        padding: 0.6rem 1.2rem;
        font-size: 0.8rem;
        min-width: 110px;
    }

    .about-image img,
    .map-container img {
        height: 180px;
    }

    .project-img,
    .completed-img {
        height: 140px;
    }

    .gallery-item {
        width: 100px;
        height: 70px;
    }

    .gallery-item.touch-active {
        height: 84px;
        transform: scale(1.05) translateY(-3px);
    }

    .gallery-filter-btn {
        padding: 0.5rem 1rem;
        font-size: 0.7rem;
    }

    .testimonial-card {
        margin: 0 0.3rem;
    }

    .nav-btn {
        width: 30px;
        height: 30px;
        font-size: 0.8rem;
    }

    .footer-logo h3 {
        font-size: 1.3rem;
    }

    .footer-section h4 {
        font-size: 1.1rem;
    }

    .footer-section li {
        margin-bottom: 0.5rem;
    }
}
