﻿* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
}

.container {
    max-width: 1200px !important;
    margin: 0 auto !important;
    padding: 0 20px !important;
}

/* Header */
header {
    background: linear-gradient(135deg, #ff6b35 0%, #f7931e 100%);
    color: white;
    padding: 1rem 0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 2rem;
    font-weight: bold;
    text-decoration: none;
    color: white;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2rem;
}

    .nav-links a {
        color: white;
        text-decoration: none;
        transition: opacity 0.3s;
      
        font-weight: 500;
    }

        .nav-links a:hover {
            opacity: 0.8;
        }

/* Hero Section */
/*.hero {*/
    /*background: linear-gradient(rgba(0,0,0,0.4), rgba(0,0,0,0.4)), 
        url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1200 600"><rect fill="%23ff6b35" width="1200" height="600"/><circle fill="%23f7931e" cx="200" cy="100" r="50" opacity="0.3"/><circle fill="%23ff8c42" cx="800" cy="200" r="80" opacity="0.2"/><circle fill="%23ffad42" cx="1000" cy="400" r="60" opacity="0.3"/></svg>');*/
    /*background: url(images/bg.jpeg);
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    background-size: cover;
    background-position: center;
}*/
.hero {
    background: url(images/bg.jpeg);
    height: 100vh; /* Full viewport height on desktop */
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    background-size: cover;
    background-position: center;
    padding: 0 1rem; /* Add horizontal padding for small screens */
}

/* Tablets (landscape & portrait) */
@media (max-width: 1024px) {
    .hero {
        height: 80vh; /* Slightly shorter */
        padding: 0 2rem;
    }
}

/* Mobile devices */
@media (max-width: 768px) {
    .hero {
        height: auto; /* Let content define height */
        min-height: 70vh; /* Still keep a strong hero presence */
        padding: 4rem 1.5rem; /* More breathing room */
        background-position: top; /* Focus top area of image */
    }

        .hero h1 {
            font-size: 1.8rem; /* Scale down headline */
            line-height: 1.3;
        }

        .hero p {
            font-size: 1rem;
        }
}

/* Small phones */
@media (max-width: 480px) {
    .hero {
        min-height: 60vh;
        padding: 3rem 1rem;
    }

        .hero h1 {
            font-size: 1.5rem;
        }

        .hero p {
            font-size: 0.9rem;
        }
}
.hero-content h1 {
    font-size: 4rem;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
    animation: fadeInUp 1s ease-out;
}

.hero-content p {
    font-size: 1.3rem;
    margin-bottom: 2rem;
    max-width: 600px;
    animation: fadeInUp 1s ease-out 0.3s both;
}

.cta-button {
    display: inline-block;
    background: #fff;
    color: #ff6b35;
    padding: 15px 30px;
    text-decoration: none;
    border-radius: 50px;
    font-weight: bold;
    transition: transform 0.3s, box-shadow 0.3s;
    animation: fadeInUp 1s ease-out 0.6s both;
}

    .cta-button:hover {
        transform: translateY(-3px);
        box-shadow: 0 10px 20px rgba(0,0,0,0.2);
    }

/* Sections */
section {
    padding: 5rem 0;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: #ff6b35;
    position: relative;
}

    .section-title::after {
        content: '';
        display: block;
        width: 80px;
        height: 3px;
        background: #ff6b35;
        margin: 1rem auto;
    }

/* About Section */
.about {
    background: #f8f9fa;
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

.about-text {
    font-size: 1.1rem;
    line-height: 1.8;
}

.about-image {
    text-align: center;
    padding: 2rem;
    background: linear-gradient(135deg, #ff6b35, #f7931e);
    border-radius: 20px;
    color: white;
    font-size: 1.2rem;
}

/* Name Story Section */
.name-story {
    background: linear-gradient(135deg, #ff6b35 0%, #f7931e 100%);
    color: white;
    text-align: center;
}

    .name-story .section-title {
        color: white;
    }

        .name-story .section-title::after {
            background: white;
        }

.story-content {
    max-width: 800px;
    margin: 0 auto;
    font-size: 1.2rem;
    line-height: 1.8;
}

/* Mission Section */
.mission-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.mission-card {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s, box-shadow 0.3s;
    border-top: 4px solid #ff6b35;
}

    .mission-card:hover {
        transform: translateY(-10px);
        box-shadow: 0 15px 30px rgba(0,0,0,0.2);
    }

    .mission-card h3 {
        color: #ff6b35;
        margin-bottom: 1rem;
        font-size: 1.3rem;
    }

/* Cities Section */
.cities {
    background: #f8f9fa;
}

.cities-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

.city-card {
    background: white;
    padding: 1.5rem;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
    transition: all 0.3s;
}

    .city-card:hover {
        background: #ff6b35;
        color: white;
        transform: scale(1.05);
    }

/* Contact Section */
.contact {
    background: linear-gradient(135deg, #333 0%, #666 100%);
    color: white;
    text-align: center;
}

    .contact .section-title {
        color: white;
    }

        .contact .section-title::after {
            background: white;
        }

.contact-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.contact-card {
    background: rgba(255, 255, 255, 0.1);
    padding: 2rem;
    border-radius: 10px;
    backdrop-filter: blur(10px);
}

/* Footer */
footer {
    background: #222;
    color: white;
    text-align: center;
    padding: 2rem 0;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .hero-content h1 {
        font-size: 2.5rem;
    }

    .about-content {
        grid-template-columns: 1fr;
    }

    .nav-links {
        display: none;
    }

    .section-title {
        font-size: 2rem;
    }
}

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

/* Add some interactive elements */
.highlight {
    background: linear-gradient(120deg, #ff6b35 0%, #f7931e 100%);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: bold;
}
.logo-wrapper {
    position: relative;
    min-width: 80px; /* mobile default */
    height: 48px; /* keeps header height fixed */
    flex-shrink: 0;
    overflow: visible; /* allow logo to overflow */
}

/* Logo image base */
.logo-img {
    position: absolute;
    top: -5px;
    left: 0;
    /*width: 80px;  mobile default */
    height: 80px;
    object-fit: contain;
   /* border: 2px solid rgb(217, 119, 6);
    border-bottom-left-radius: 90px;
    border-bottom-right-radius: 90px;
    background-color: rgb(255, 255, 255);
    padding-bottom: 10px;
    padding-top: 5px;
    box-shadow: 0 4px 8px rgba(75, 75, 75, 0.6);*/
    transform: translateY(-10%); /* overflow upward */
    /*box-shadow: 0 10px 20px rgba(255, 200, 0, 0.6),*/ /* soft golden glow */
    /*0 20px 40px rgba(255, 150, 0, 0.4),*/ /* extended glow */
    /*0 30px 60px rgba(255, 100, 0, 0.2);*/ /* fading tail */
    /*transition: box-shadow 0.3s ease-in-out;*/
     filter: drop-shadow(0 10px 15px rgba(255, 200, 0, 0.5));
}

.logo {
    width: 150px; /* default */
}

@media (max-width: 768px) {
    .logo {
        width: 140px;
    }
}

@media (max-width: 480px) {
    .logo {
        width: 130px;
    }
}

/* Ancient Rishikas Section */
.rishikas {
    background: linear-gradient(135deg, #4a148c 0%, #7b1fa2 100%);
    color: white;
}

    .rishikas .section-title {
        color: white;
    }

        .rishikas .section-title::after {
            background: white;
        }

.rishikas-content {
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
}

.rishikas-intro {
    font-size: 1.3rem;
    line-height: 1.8;
    margin-bottom: 3rem;
}

.rishikas-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.rishika-card {
    background: rgba(255, 255, 255, 0.1);
    padding: 2rem;
    border-radius: 15px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s;
}

    .rishika-card:hover {
        transform: translateY(-5px);
        background: rgba(255, 255, 255, 0.15);
    }

    .rishika-card h4 {
        color: #fff;
        margin-bottom: 1rem;
        font-size: 1.2rem;
    }
    .bold
    {
                font-weight: bold;
    }
.card-top-border {
    border-top: 4px solid #ff6b35;
}


.button {
    display: inline-block;
    background: #ff6b35;
    color: #fff;
    padding: 15px 30px;
    text-decoration: none;
    border-radius: 50px;
    font-weight: bold;
    transition: transform 0.3s, box-shadow 0.3s;
    animation: fadeInUp 1s ease-out 0.6s both;
    transition: all 0.3s;
}

    .button:hover {
        transform: scale(1.05);
        background: white;
        color: #ff6b35;
        box-shadow: 0 10px 20px rgba(0,0,0,0.2);
    }
    
@keyframes fade-in {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}
@keyframes fade-out {
    from {
        opacity: 1;
        transform: scale(1);
    }

    to {
        opacity: 0;
        transform: scale(0.95);
    }
}

.animate-fade-in {
    animation: fade-in 0.8s ease-out forwards;
}
.animate-fade-out {
    animation: fade-out 0.25s ease-in forwards;
}


.hamburger-line {
    display: block;
    height: 3px;
    width: 24px;
    background-color: white;
    border-radius: 2px;
    margin: 4px 0;
    transition: all 0.3s ease;
}

/* Unequal widths for a stylish look */
#menuToggle .hamburger-line:nth-child(1) {
    width: 28px;
}

#menuToggle .hamburger-line:nth-child(2) {
    width: 20px;
}

#menuToggle .hamburger-line:nth-child(3) {
    width: 24px;
}

/* When active (turn into X) */
#menuToggle.active .hamburger-line:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
    width: 28px;
}

#menuToggle.active .hamburger-line:nth-child(2) {
    opacity: 0;
}

#menuToggle.active .hamburger-line:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
    width: 28px;
}
/* Base button styling */
/* Base button styling */
#scrollTopBtn {
  background: linear-gradient(135deg, #FC782D, #FF9A3D, #FFB347);
  background-size: 300% 300%;
  color: white;
  box-shadow: 0 0 0 rgba(252, 120, 45, 0.6);
  transition: opacity 0.4s ease, transform 0.4s ease;
  transform: translateY(40px);
  animation: gradientShift 6s ease infinite;
}

/* Show state */
#scrollTopBtn.show {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

/* Gradient background animation */
@keyframes gradientShift {
  0%   { background-position: 0% 50%; }
  50%  { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

/* Glow pulse on hover */
@keyframes glowPulse {
  0%   { box-shadow: 0 0 0 rgba(252, 120, 45, 0.0); }
  50%  { box-shadow: 0 0 20px rgba(252, 120, 45, 0.6); }
  100% { box-shadow: 0 0 0 rgba(252, 120, 45, 0.0); }
}

/* Arrow hover animation */
@keyframes rotatePulse {
  0%   { transform: rotate(0deg) scale(1); }
  50%  { transform: rotate(-15deg) scale(1.1); }
  100% { transform: rotate(0deg) scale(1); }
}

/* Hover effects */
#scrollTopBtn:hover {
  animation: gradientShift 6s ease infinite, glowPulse 1.5s infinite;
}
#scrollTopBtn:hover .arrow-icon {
  animation: rotatePulse 0.6s ease-in-out;
}