/* ========== BASE & GLOBAL ========== */
* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body{
    margin: 0;
    font-family: 'Segoe UI', system-ui, sans-serif;
    background: linear-gradient(-45deg, #e8eef3, #d4dce6, #c5d0de, #b8c9dc, #d0dce8);
    background-size: 400% 400%;
    animation: gradientShift 12s ease infinite;
    color: #1a4d6b;
    min-height: 100vh;
}

/* ========== KEYFRAME ANIMATIONS ========== */
@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

@keyframes btnShine {
    0% { background-position: -200% center; }
    100% { background-position: 200% center; }
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}

/* ----- Colour / gradient animations ----- */
@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

@keyframes gradientFlow {
    0%, 100% { background-position: 0% 0%; }
    50% { background-position: 100% 100%; }
}

@keyframes glowPulse {
    0%, 100% { box-shadow: 0 0 20px rgba(12, 139, 92, 0.3); }
    50% { box-shadow: 0 0 35px rgba(12, 139, 92, 0.5); }
}

@keyframes textShine {
    0% { background-position: -200% center; }
    100% { background-position: 200% center; }
}

@keyframes borderGlow {
    0%, 100% { border-color: rgba(26, 95, 122, 0.5); box-shadow: 0 0 15px rgba(26, 95, 122, 0.2); }
    50% { border-color: rgba(21, 144, 184, 0.8); box-shadow: 0 0 25px rgba(21, 144, 184, 0.35); }
}

@keyframes fadeInScale {
    from { opacity: 0; transform: scale(0.92); }
    to { opacity: 1; transform: scale(1); }
}

/* ========== HEADER ========== */
header{
    position: relative;
    background: linear-gradient(rgba(0,0,0,0.5), rgba(0,0,0,0.65)),
        url('images/mountains.jpg');
    background-size: cover;
    background-position: center;
    color: #f0f4f8;
    height: 280px;
    text-align: center;
    padding: 30px 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: fadeInDown 0.8s ease-out;
    box-shadow: 0 4px 25px rgba(0,0,0,0.25);
    overflow: hidden;
}

header::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 60%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255,255,255,0.06),
        transparent
    );
    animation: headerShine 8s ease-in-out infinite;
}

@keyframes headerShine {
    0% { left: -100%; }
    50%, 100% { left: 150%; }
}

header h1 {
    position: relative;
    z-index: 1;
    text-shadow: 2px 2px 12px rgba(0,0,0,0.6);
    font-size: clamp(1.8rem, 4vw, 2.6rem);
    letter-spacing: 0.03em;
}

/* ========== NAVBAR ========== */
nav{
    text-align: center;
    padding: 16px 0;
    background: linear-gradient(90deg, #1a5f7a, #1c739e, #1590b8, #1c739e);
    background-size: 200% 100%;
    box-shadow: 0 4px 20px rgba(0,0,0,0.2);
    animation: fadeInDown 0.6s ease-out 0.1s both, gradientShift 8s ease infinite 0.6s;
    position: sticky;
    top: 0;
    z-index: 100;
}

nav a{
    color: white;
    margin: 0 18px;
    text-decoration: none;
    font-weight: 500;
    padding: 8px 16px;
    border-radius: 8px;
    transition: all 0.35s ease;
    display: inline-block;
}

nav a:hover {
    background: rgba(255,255,255,0.25);
    transform: translateY(-3px);
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

nav a:active {
    transform: translateY(0);
}

/* ========== SLIDER ========== */
.slider{
    position: relative;
    width: 90%;
    max-width: 1100px;
    margin: 50px auto;
    overflow: hidden;
    border-radius: 20px;
    box-shadow: 0 15px 40px rgba(0,0,0,0.25);
    animation: scaleIn 0.8s ease-out 0.2s both;
}

.slides{
    display: flex;
    transition: 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.slide{
    min-width: 100%;
    position: relative;
}

.slide img{
    width: 100%;
    height: 500px;
    object-fit: cover;
}

.slide-content{
    position: absolute;
    color: #fff;
    bottom: 50px;
    left: 50px;
    right: 50px;
    padding: 16px 20px;
    border-radius: 12px;
    background: linear-gradient(135deg, rgba(0,0,0,0.4), rgba(26, 79, 122, 0.35));
    text-shadow: 2px 2px 10px rgba(0,0,0,0.8);
    animation: fadeInUp 0.6s ease-out;
    border: 1px solid rgba(255,255,255,0.15);
}

.slide-content h2{
    font-size: clamp(1.8rem, 4vw, 2.5rem);
    margin: 0 0 4px;
}

.slide-content p {
    margin: 0;
    opacity: 0.95;
    font-size: 1.05rem;
}

.prev, .next{
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0,0,0,0.5);
    color: white;
    border: none;
    padding: 16px 18px;
    cursor: pointer;
    font-size: 22px;
    border-radius: 10px;
    transition: all 0.3s ease;
}

.prev { left: 20px; }
262: .next { right: 20px; }

.prev:hover, .next:hover {
    background: rgba(0,0,0,0.8);
    transform: translateY(-50%) scale(1.1);
}

/* Slider dots container - for optional JS-filled indicators */
.slider-dots {
    position: absolute;
    bottom: 18px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 5;
}

/* ========== HOME PAGE - HERO TAGLINE ========== */
.home-hero {
    text-align: center;
    padding: 36px 20px 28px;
    animation: fadeInUp 0.7s ease-out 0.15s both;
}

.hero-tagline {
    font-size: clamp(1.3rem, 3vw, 1.65rem);
    font-weight: 600;
    color: #1a4d6b;
    margin: 0 0 8px;
    letter-spacing: 0.02em;
    background: linear-gradient(90deg, #1a4d6b, #1590b8, #0c8b5c, #1a4d6b);
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: textShine 6s linear infinite;
}

.hero-sub {
    font-size: 1rem;
    color: #4a6b7c;
    margin: 0;
}

/* ========== HOME PAGE - CTA SECTION ========== */
.home-cta {
    text-align: center;
    padding: 50px 20px 55px;
    animation: fadeInUp 0.7s ease-out 0.25s both;
}

.home-cta h2 {
    margin: 0 0 10px;
    font-size: clamp(1.5rem, 3.5vw, 2rem);
    color: #1a4d6b;
}

.home-cta p {
    margin: 0 0 24px;
    color: #4a6b7c;
    font-size: 1.05rem;
}

.cta-btn {
    display: inline-block;
    padding: 16px 36px;
    background: linear-gradient(135deg, #0c8b5c 0%, #0a7049 50%, #067a42 100%);
    background-size: 200% 200%;
    color: white !important;
    text-decoration: none;
    border-radius: 14px;
    font-weight: 700;
    font-size: 1.1rem;
    transition: all 0.4s ease;
    box-shadow: 0 6px 25px rgba(12, 139, 92, 0.4);
    position: relative;
    overflow: hidden;
    animation: glowPulse 3s ease-in-out infinite;
}

.cta-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255,255,255,0.3),
        transparent
    );
    transition: left 0.5s ease;
}

.cta-btn:hover {
    transform: translateY(-4px) scale(1.03);
    box-shadow: 0 12px 35px rgba(12, 139, 92, 0.5);
    background-position: 100% 50%;
}

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

.cta-btn:active {
    transform: translateY(0) scale(0.98);
}

/* ========== HOME PAGE - FEATURES STRIP ========== */
.home-features {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 40px 50px;
    padding: 40px 20px 50px;
    background: linear-gradient(90deg, rgba(26, 79, 122, 0.06), rgba(12, 139, 92, 0.08), rgba(26, 79, 122, 0.06));
    border-radius: 20px;
    margin: 0 20px 40px;
    border: 1px solid rgba(26, 95, 122, 0.15);
    animation: fadeInUp 0.7s ease-out 0.35s both, borderGlow 4s ease-in-out infinite 1s;
}

.feature-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    color: #1a4d6b;
    transition: transform 0.35s ease, color 0.35s ease;
}

.feature-item:hover {
    transform: translateY(-5px);
    color: #0c8b5c;
}

.feature-icon {
    font-size: 2.2rem;
    display: block;
    animation: float 3s ease-in-out infinite;
}

.feature-item:nth-child(1) .feature-icon { animation-delay: 0s; }
.feature-item:nth-child(2) .feature-icon { animation-delay: 0.3s; }
.feature-item:nth-child(3) .feature-icon { animation-delay: 0.6s; }

/* Temples page intro line */
.temple-intro {
    text-align: center;
    padding: 28px 20px 0;
    color: #1a4d6b;
    font-size: 1.1rem;
    animation: fadeInUp 0.6s ease-out 0.05s both;
}

/* ========== TEMPLES PAGE - GRID & CARDS ========== */
.temple-grid{
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 32px;
    width: 90%;
    max-width: 1200px;
    margin: 50px auto;
    padding: 20px 0;
}

.temple-card{
    background: linear-gradient(180deg, #fff 0%, #f0f5fa 100%);
    border-radius: 16px;
    overflow: hidden;
    text-align: center;
    box-shadow: 0 8px 25px rgba(0,0,0,0.08);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    animation: fadeInUp 0.6s ease-out both;
}

/* Staggered animation for each card - delay set via inline/style in HTML or nth-child */
.temple-card:nth-child(1) { animation-delay: 0.1s; }
.temple-card:nth-child(2) { animation-delay: 0.15s; }
.temple-card:nth-child(3) { animation-delay: 0.2s; }
.temple-card:nth-child(4) { animation-delay: 0.25s; }
.temple-card:nth-child(5) { animation-delay: 0.3s; }
.temple-card:nth-child(6) { animation-delay: 0.35s; }
.temple-card:nth-child(7) { animation-delay: 0.4s; }
.temple-card:nth-child(8) { animation-delay: 0.45s; }

.temple-card:hover {
    transform: translateY(-12px);
    box-shadow: 0 20px 45px rgba(0,0,0,0.15);
}

.temple-card img{
    width: 100%;
    height: 220px;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.temple-card:hover img {
    transform: scale(1.08);
}

.temple-card h3 {
    margin: 0;
    padding: 18px 15px 12px;
    font-size: 1.1rem;
    color: #1a4d6b;
}

.temple-card h3 a {
    color: inherit;
    text-decoration: none;
    transition: color 0.3s ease;
}

.temple-card h3 a:hover {
    color: #0c8b5c;
}

/* ----- Temple page CTA button (View Temple) ----- */
.temple-btn {
    display: inline-block;
    margin: 0 0 20px;
    padding: 12px 24px;
    background: linear-gradient(135deg, #0c8b5c 0%, #0a7049 100%);
    color: white !important;
    text-decoration: none;
    border-radius: 12px;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.35s ease;
    box-shadow: 0 4px 15px rgba(12, 139, 92, 0.4);
    border: none;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.temple-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255,255,255,0.25),
        transparent
    );
    transition: left 0.6s ease;
}

.temple-btn:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 8px 25px rgba(12, 139, 92, 0.5);
}

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

.temple-btn:active {
    transform: translateY(0) scale(0.98);
}

/* ========== FOOTER ========== */
footer{
    text-align: center;
    padding: 28px 20px;
    background: linear-gradient(180deg, #021426 0%, #032a42 100%);
    color: rgba(255,255,255,0.85);
    margin-top: 50px;
    font-size: 0.95rem;
}

/* CONTACT PAGE UPDATED */

.contact-section{
    padding:50px 0;
}

.contact-wrapper{
    width:85%;
    margin:auto;
    display:flex;
    flex-wrap:wrap;
    gap:40px;
}

.owner-info{
    flex:1;
    background:white;
    padding:25px;
    border-radius:8px;
    box-shadow:0 5px 15px rgba(0,0,0,0.1);
}

.owner-info h2{
    color:#0c8b5c;
    margin-bottom:15px;
}

.owner-info h3{
    margin-top:20px;
    color:#333;
}

.contact-form-box{
    flex:1;
    background:white;
    padding:25px;
    border-radius:8px;
    box-shadow:0 5px 15px rgba(0,0,0,0.1);
}

.contact-form-box form{
    display:flex;
    flex-direction:column;
}

.contact-form-box input,
.contact-form-box textarea{
    margin-top:8px;
    padding:10px;
    border:1px solid #ccc;
    border-radius:5px;
}

.contact-form-box button{
    margin-top:15px;
    padding:14px 24px;
    background: linear-gradient(135deg, #0c8b5c 0%, #0a7049 100%);
    color: white;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.35s ease;
    font-weight: 600;
    box-shadow: 0 4px 15px rgba(12, 139, 92, 0.35);
}

.contact-form-box button:hover{
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(12, 139, 92, 0.45);
}

.contact-form-box button:active{
    transform: translateY(0);
}


/* DETAIL PAGE */

.detail-section{
    padding:50px 0;
}

.detail-container{
    width:85%;
    margin:auto;
    display:flex;
    flex-wrap:wrap;
    gap:40px;
    align-items:center;
}

.detail-container img{
    width:450px;
    max-width:100%;
    border-radius:8px;
    box-shadow:0 5px 15px rgba(0,0,0,0.2);
}

.detail-content{
    flex:1;
}

.back-btn{
    display: inline-block;
    margin-top: 30px;
    padding: 12px 24px;
    background: linear-gradient(135deg, #0c8b5c 0%, #0a7049 100%);
    color: white;
    text-decoration: none;
    border-radius: 10px;
    font-weight: 600;
    transition: all 0.35s ease;
    box-shadow: 0 4px 15px rgba(12, 139, 92, 0.35);
}

.back-btn:hover{
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(12, 139, 92, 0.45);
}

.map-section{
    margin-top:30px;
}

.map-section iframe{
    width:100%;
    height:350px;
    border-radius:8px;
    box-shadow:0 5px 15px rgba(0,0,0,0.2);
}

.reach-btn{
    display: inline-block;
    margin-top: 15px;
    padding: 12px 22px;
    background: linear-gradient(135deg, #0c8b5c 0%, #0a7049 100%);
    color: white;
    text-decoration: none;
    border-radius: 10px;
    font-weight: 600;
    transition: all 0.35s ease;
    box-shadow: 0 4px 15px rgba(12, 139, 92, 0.35);
}

.reach-btn:hover{
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(12, 139, 92, 0.45);
}

/* ABOUT PAGE STYLING */

.about-section{
    padding:50px 0;
}

.about-row{
    width:85%;
    margin:40px auto;
    display:flex;
    align-items:center;
    gap:40px;
    flex-wrap:wrap;
}

.about-row img{
    width:450px;
    max-width:100%;
    border-radius:8px;
    box-shadow:0 5px 15px rgba(0,0,0,0.2);
}

.about-content{
    flex:1;
}

.about-content h2{
    margin-top:20px;
    color:#0c8b5c;
}

.about-content p{
    margin-top:10px;
    line-height:1.6;
}

.about-content ul{
    margin-top:10px;
    padding-left:20px;
}

.about-content li{
    margin:5px 0;
}

/* Reverse Layout */
.reverse{
    flex-direction: row-reverse;
}
/* ========== FAMOUS ATTRACTIONS - READ MORE LINK ========== */

.famous ul li {
    margin-bottom: 10px;
}

.famous .read-more {
    margin-left: 6px;
    font-size: 13px;
    color: #666;          /* removes blue hyperlink */
    text-decoration: none;
    font-weight: 500;
}

.famous .read-more:hover {
    color: #000;
    text-decoration: underline;
}
