@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Noto+Serif+Malayalam:wght@300;400;600;700&display=swap');
@import url('https://fonts.smc.org.in/rachana.css');

:root {
    --primary-color: #a8ed2a;
    /* Updated to user's requested shade */
    --primary-dark: #8bc224;
    --primary-light: #c1f365;
    --primary-btn: #7cb518;
    /* Darker green for buttons */
    --secondary-color: #455a64;
    --text-color: #333333;
    --bg-light: #f9fbf9;
    --white: #ffffff;
    --gray-light: #eeeeee;
    --gray-dark: #263238;
    --transition: all 0.3s ease;
    --shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    --border-radius: 12px;
}

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

body {
    font-family: 'Inter', 'Noto Serif Malayalam', sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--bg-light);
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    display: block;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header Styles */
.main-header {
    background: var(--white);
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 10px 0;
}

.header-content-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 30px;
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 15px;
    flex-shrink: 0;
}

.logo-text {
    display: flex;
    flex-direction: column;
}

.logo-text .main-title {
    font-size: 1.6rem;
    font-weight: 800;
    color: #2e7d32;
    line-height: 1.1;
    letter-spacing: -0.5px;
}

.logo-text .sub-title {
    font-size: 0.9rem;
    color: #1976d2;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.header-right {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 15px;
}

.contact-info-header {
    display: flex;
    gap: 30px;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 12px;
}

.icon-box {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
}

.phone-box {
    background: #e3f2fd;
    color: #1976d2;
}

.email-box {
    background: #e8f5e9;
    color: #2e7d32;
}

.contact-details span {
    font-weight: 700;
    color: #37474f;
    font-size: 0.95rem;
}

.email-text {
    word-break: break-all;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 30px;
}

.gallery-item {
    background: #fff;
    border-radius: 15px;
    overflow: hidden;
    position: relative;
    transition: 0.3s ease;

    /* Reserve space always */
    border-bottom: 5px solid transparent;
}

/* Hover effect */
.gallery-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
    border-bottom: 5px solid #a8ed2a;
}

.gallery-item img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    display: block;
}

.folder-title {
    display: block;
    text-align: center;
    padding: 15px;
    font-weight: 600;
    color: #333;
    background: #fff;
}




.header-accent-bar {
    height: 40px;
    background: #1e88e5;
    /* Primary accent blue from image */
    width: 100%;
}

.nav-links {
    display: flex;
    gap: 30px;
}

.nav-links li a {
    font-weight: 700;
    color: #546e7a;
    font-size: 1rem;
    padding: 5px 0;
    transition: var(--transition);
    border-bottom: 3px solid transparent;
}

.nav-links li a:hover,
.nav-links li a.active {
    color: #1976d2;
    border-bottom-color: #1976d2;
}

.mobile-menu-btn {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    z-index: 1001;
}

.mobile-menu-btn span {
    width: 25px;
    height: 3px;
    background: var(--primary-color);
    transition: var(--transition);
}

/* Hero Section */
.hero {
    min-height: 80vh;
    background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)), #a8ed2a;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    color: var(--white);
    text-align: center;
    padding: 100px 0;
}

.hero-content h1 {
    font-size: clamp(1.8rem, 6vw, 3.5rem);
    margin-bottom: 15px;
    line-height: 1.3;
    max-width: 100%;
    word-wrap: break-word;
}

.hero-content p {
    font-size: clamp(1rem, 3vw, 1.2rem);
    margin-bottom: 30px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.btn {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 30px;
    font-weight: 600;
    transition: var(--transition);
    cursor: pointer;
    border: none;
}

.btn-primary {
    background: var(--primary-color);
    color: var(--white);
}

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-3px);
}

/* Sections */
section {
    padding: 80px 0;
}

.section-title {
    text-align: center;
    margin-bottom: 50px;
}

.section-title h2 {
    font-size: 2.5rem;
    color: var(--primary-dark);
    margin-bottom: 15px;
}

.section-title .underline {
    width: 80px;
    height: 4px;
    background: var(--primary-color);
    margin: 0 auto;
}

/* Services Cards */
.services-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
}

.service-card {
    background: var(--white);
    padding: 30px;
    border-radius: var(--border-radius);
    text-align: center;
    box-shadow: var(--shadow);
    transition: var(--transition);
    border-bottom: 4px solid transparent;
    min-height: 400px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.service-card:hover {
    transform: translateY(-10px);
    border-color: var(--primary-color);
}

.service-card h3 {
    margin: 15px 0 10px;
    font-size: 1.4rem;
    color: var(--primary-dark);
}

.service-card p {
    margin-bottom: 20px;
    color: #666;
    flex-grow: 1;
}

.service-card .btn-more {
    background: var(--primary-btn);
    color: white;
    border: 2px solid var(--primary-btn);
    padding: 10px 25px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    align-self: center;
    border-radius: 50px;
    display: inline-block;
    margin-top: 15px;
}

.service-card .btn-more:hover {
    background: var(--primary-dark);
    border-color: var(--primary-dark);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    color: white;
}

.service-card i {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.text-primary {
    color: var(--primary-color);
}

.text-link {
    color: var(--primary-color);
    font-weight: 600;
    margin-top: 15px;
    display: inline-block;
}

.logo-img {
    height: 60px;
    width: auto;
    object-fit: contain;
    flex-shrink: 0;
}

.footer-logo-img {
    height: 50px;
}

.logo-icon {
    width: 60px;
    height: 60px;
    fill: var(--primary-color);
    flex-shrink: 0;
}

/* Testimonials */
.testimonials {
    background: var(--gray-light);
}

.testimonial-slider {
    display: flex;
    gap: 30px;
    overflow-x: auto;
    padding: 20px 0;
    scrollbar-width: none;
}

.testimonial-card {
    min-width: 350px;
    background: var(--white);
    padding: 30px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
}

.testimonial-text {
    font-style: italic;
    margin-bottom: 20px;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 15px;
}

.testimonial-author img {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
}

/* Footer */
.main-footer {
    background: #1a232e;
    /* Deeper professional blue-dark */
    color: var(--white);
    padding: 80px 0 0;
    position: relative;
    overflow: hidden;
}

.footer-pattern {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: radial-gradient(rgba(168, 237, 42, 0.05) 1px, transparent 1px);
    background-size: 20px 20px;
    pointer-events: none;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
    gap: 40px;
    margin-bottom: 60px;
    position: relative;
    z-index: 1;
}

.branding-col .logo-text-footer {
    display: flex;
    flex-direction: column;
}

.branding-col .main-title {
    font-size: 1.3rem;
    font-weight: 800;
    color: var(--white);
    line-height: 1.1;
}

.branding-col .sub-title {
    font-size: 0.8rem;
    color: var(--primary-color);
    font-weight: 600;
    text-transform: uppercase;
}

.footer-desc {
    margin-top: 20px;
    color: #b0bec5 !important;
    line-height: 1.6;
    font-size: 0.95rem;
}

.social-links {
    margin-top: 25px;
    display: flex;
    gap: 15px;
}

.social-links a {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    transition: var(--transition);
}

.social-links a:hover {
    background: var(--primary-color);
    color: var(--gray-dark);
    transform: translateY(-3px);
}

.footer-col h4 {
    margin-bottom: 30px;
    font-size: 1.2rem;
    color: var(--white);
    font-weight: 700;
    position: relative;
}

.footer-col h4::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 40px;
    height: 3px;
    background: var(--primary-color);
}

.footer-links li {
    margin-bottom: 15px;
}

.footer-links li a {
    color: #b0bec5;
    transition: var(--transition);
    font-size: 0.95rem;
}

.footer-links li a:hover {
    color: var(--primary-color);
    padding-left: 8px;
}

.contact-list li {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
    color: #b0bec5;
}

.contact-list i {
    color: var(--primary-color);
    margin-top: 5px;
}

.footer-bottom {
    background: rgba(0, 0, 0, 0.2);
    padding: 25px 0;
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-bottom p {
    font-size: 0.9rem;
    color: #90a4ae;
}

.footer-bottom p a {
    color: inherit;
    transition: var(--transition);
}

.footer-bottom p a:hover {
    color: var(--primary-color);
}

/* Detail Sections */
.service-detail {
    padding: 60px 0;
}

.detail-img {
    transition: var(--transition);
}

.detail-img:hover {
    transform: scale(1.05);
}

/* Animations & Scroll Reveal */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.8s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.reveal.visible {
    opacity: 1 !important;
    transform: translateY(0) !important;
}

/* Staggered entrance for cards */
.service-card.reveal,
.footer-col.reveal {
    transition-delay: 0.1s;
}

.gallery-item.reveal {
    transform: scale(0.95) translateY(30px) !important;
}

.gallery-item.reveal.visible {
    transform: scale(1) translateY(0) !important;
}

/* Hero Entrance Animation */
.hero-content {
    opacity: 0;
    transform: translateY(50px);
    animation: heroEntrance 1.5s forwards 0.5s cubic-bezier(0.165, 0.84, 0.44, 1);
}

@keyframes heroEntrance {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Hero Parallax Support */
.hero {
    background-attachment: fixed;
    /* Fallback */
    transition: background-position 0.1s ease-out;
}

/* 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);
}

.lightbox-content {
    margin: auto;
    display: block;
    width: 80%;
    max-width: 900px;
    max-height: 70vh;
    /* Reduced from 80vh to make room for thumbnails */
    object-fit: contain;
    animation: zoomIn 0.3s;
}

@keyframes zoomIn {
    from {
        transform: scale(0)
    }

    to {
        transform: scale(1)
    }
}

.close-lightbox {
    position: absolute;
    top: 15px;
    right: 35px;
    color: #f1f1f1;
    font-size: 40px;
    font-weight: bold;
    transition: 0.3s;
    cursor: pointer;
    z-index: 2001;
}

.close-lightbox:hover,
.close-lightbox:focus {
    color: #bbb;
    text-decoration: none;
    cursor: pointer;
}

.prev,
.next {
    cursor: pointer;
    position: absolute;
    top: 50%;
    width: auto;
    padding: 16px;
    margin-top: -50px;
    color: white;
    font-weight: bold;
    font-size: 20px;
    transition: 0.6s ease;
    border-radius: 0 3px 3px 0;
    user-select: none;
    -webkit-user-select: none;
    background-color: rgba(0, 0, 0, 0.3);
}

.next {
    right: 0;
    border-radius: 3px 0 0 3px;
}

.prev:hover,
.next:hover {
    background-color: rgba(0, 0, 0, 0.8);
}

.back-link {
    display: inline-block;
    margin-bottom: 20px;
    color: var(--primary-dark);
    font-weight: 600;
    transition: var(--transition);
}

.back-link:hover {
    color: var(--primary-color);
    transform: translateX(-5px);
}

/* Video Play Icon Overlay */
.video-play-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 3rem;
    color: rgba(255, 255, 255, 0.8);
    pointer-events: none;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
    transition: 0.3s;
}

.gallery-item:hover .video-play-icon {
    color: #fff;
    transform: translate(-50%, -50%) scale(1.1);
}

/* Lightbox Video Sizing */
.lightbox-video {
    width: 80%;
    height: 70vh;
    max-width: 900px;
}

/* Video Placeholder Thumbnail */
.video-placeholder-thumb {
    width: 100%;
    height: 220px;
    /* Match gallery item image height */
    background-color: var(--gray-dark);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 3rem;
    color: var(--white);
    font-size: 3rem;
    opacity: 0.8;
}

/* Lightbox Thumbnails Strip */
.lightbox-thumbnails {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    max-width: 90%;
    overflow-x: auto;
    padding: 10px;
    background: rgba(0, 0, 0, 0.5);
    border-radius: 10px;
    /* scrollbar-width: thin; Firefox */
    scrollbar-color: var(--primary-color) rgba(255, 255, 255, 0.1);
}

/* Custom Scrollbar */
.lightbox-thumbnails::-webkit-scrollbar {
    height: 6px;
}

.lightbox-thumbnails::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
}

.lightbox-thumbnails::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 3px;
}

.lightbox-thumbnails::-webkit-scrollbar-thumb:hover {
    background: var(--primary-dark);
}

.lightbox-thumb {
    width: 60px;
    height: 60px;
    flex-shrink: 0;
    cursor: pointer;
    border: 2px solid transparent;
    border-radius: 6px;
    overflow: hidden;
    opacity: 0.6;
    transition: 0.3s;
}

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

.lightbox-thumb.active {
    border-color: var(--primary-color);
    opacity: 1;
    transform: scale(1.1);
}

.lightbox-thumb:hover {
    opacity: 1;
}

.lightbox-thumb.placeholder-thumb {
    background: #444;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #444;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1.2rem;
}

/* Zoom Controls */
.zoom-controls {
    position: absolute;
    top: 20px;
    left: 20px;
    /* Moved to top-left */
    display: flex;
    gap: 10px;
    z-index: 2002;
}

.zoom-controls button {
    background: rgba(0, 0, 0, 0.6);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 5px;
    width: 40px;
    height: 40px;
    font-size: 1.2rem;
    cursor: pointer;
    transition: 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.zoom-controls button:hover {
    background: var(--primary-color);
    border-color: var(--primary-color);
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 3000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(5px);
    opacity: 0;
    transition: opacity 0.3s ease;
    align-items: center;
    justify-content: center;
}

.modal.active {
    display: flex;
    opacity: 1;
}

.modal-content {
    background-color: #fff;
    margin: auto;
    padding: 40px;
    border-radius: 20px;
    width: 90%;
    max-width: 600px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.2);
    position: relative;
    transform: scale(0.7);
    transition: transform 0.3s ease;
}

.modal.active .modal-content {
    transform: scale(1);
}

.close-modal {
    position: absolute;
    top: 20px;
    right: 25px;
    color: #aaa;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    transition: 0.3s;
}

.close-modal:hover {
    color: var(--primary-dark);
}

.modal-header h2 {
    color: var(--primary-dark);
    margin-bottom: 15px;
    font-size: 1.8rem;
    border-bottom: 2px solid var(--primary-color);
    padding-bottom: 10px;
    display: inline-block;
}

.modal-body {
    margin-top: 20px;
}

.modal-body p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #444;
}

@media (max-width: 600px) {
    .modal-content {
        padding: 25px;
        width: 95%;
    }

    .modal-header h2 {
        font-size: 1.4rem;
    }

    .modal-body p {
        font-size: 1rem;
    }
}