/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    color: #333;
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Typography */
h1, h2, h3 {
    font-family: 'Playfair Display', serif;
    font-weight: 700;
}

@font-face {
    font-family: 'Ananda Namaste';
    src: url('../fonts/Ananda Namaste Regular/Ananda Namaste Regular.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

.signature {
    font-family: Poppins;
    letter-spacing: 0.05px;
    font-weight: 700;
    font-size: 1.7rem;
    color: white;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.1);
}

.highlight {
    color: #00B4D8;
    position: relative;
}

.highlight::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, #00B4D8, #0077B6);
    border-radius: 2px;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 30px;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    cursor: pointer;
    font-size: 16px;
}

.btn.primary {
    background: linear-gradient(135deg, #00B4D8, #0077B6);
    color: white;
    box-shadow: 0 4px 15px rgba(0, 180, 216, 0.3);
}

.btn.primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 180, 216, 0.4);
}

.btn.secondary {
    background: transparent;
    color: #333;
    border: 2px solid #333;
}

.btn.secondary:hover {
    background: #333;
    color: white;
    transform: translateY(-2px);
}

/* Hero section secondary button override */
.hero .btn.secondary {
    color: white;
    border: 2px solid white;
}

.hero .btn.secondary:hover {
    background: white;
    color: #333;
    transform: translateY(-2px);
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    box-shadow: 
        0 8px 32px rgba(0, 0, 0, 0.5),
        inset 0 1px 0 rgba(255, 255, 255, 0.05);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    z-index: 1000;
    padding: 20px 0;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 0 0 20px 20px;
    margin: 0 10px;
    width: calc(100% - 20px);
}

.navbar.scrolled {
    padding: 10px 0;
    background: rgba(0, 0, 0, 0.95);
    box-shadow: 
        0 4px 20px rgba(0, 0, 0, 0.7),
        inset 0 1px 0 rgba(255, 255, 255, 0.03);
}

.navbar::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, 
        rgba(255, 255, 255, 0.03) 0%, 
        rgba(255, 255, 255, 0.01) 50%, 
        rgba(255, 255, 255, 0.005) 100%);
    border-radius: 0 0 20px 20px;
    pointer-events: none;
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    text-decoration: none;
    color: #ffffff;
    font-weight: 700;
    font-size: 1.5rem;
    letter-spacing: 1.5px;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
    transition: all 0.3s ease;
}

.logo:hover {
    text-shadow: 0 0 15px rgba(255, 255, 255, 0.8);
    transform: translateY(-1px);
}

.nav-links {
    display: flex;
    gap: 40px;
}

.nav-links a {
    text-decoration: none;
    color: #f0f0f0;
    font-weight: 500;
    letter-spacing: 0.5px;
    padding: 5px 0;
    position: relative;
    transition: all 0.3s ease;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #00B4D8, #0077B6);
    transition: width 0.3s ease;
}

.nav-links a:hover {
    color: #ffffff;
    text-shadow: 0 0 10px rgba(0, 180, 216, 0.5);
}

.nav-links a:hover::after {
    width: 100%;
}

.mobile-menu-btn {
    display: none;
    flex-direction: column;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    border-radius: 5px;
    transition: all 0.3s ease;
}

    .mobile-menu-btn:hover {
        background: rgba(0, 180, 216, 0.1);
    }

    .mobile-menu-btn.active span {
        transition: transform 0.3s ease, opacity 0.3s ease;
    }

    .mobile-menu-btn.active:hover {
        transform: scale(1.1);
    }

.mobile-menu-btn span {
    width: 28px;
    height: 2px;
    background: #f0f0f0;
    margin: 4px 0;
    transition: 0.3s;
    border-radius: 2px;
    box-shadow: 0 0 5px rgba(255, 255, 255, 0.2);
}

.mobile-menu-btn:hover span {
    background: #00B4D8;
    box-shadow: 0 0 8px rgba(0, 180, 216, 0.5);
}

/* Hero Section */
.hero {
    position: relative;
    min-height: 100vh;
    min-height: 100svh;
    display: flex;
    align-items: center;
    color: white;
    overflow: hidden;
    background: #1a1a1a;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1;
    overflow: hidden;
}

.bg-carousel-slides {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.bg-carousel-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1.5s ease-in-out;
    z-index: 0;
    overflow: hidden;
}

.bg-carousel-slide.active {
    opacity: 1;
    z-index: 1;
}

.bg-carousel-slide img {
    width: 100%;
    height: auto;
    max-height: 100vh;
    object-fit: cover;
    object-position: center;
    display: block;
    aspect-ratio: 16 / 9;
}

.hero .carousel-indicators {
    position: absolute;
    bottom: 30px;
    left: 0;
    right: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    z-index: 3;
}

.indicator {
    width: 15px;
    height: 15px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.7);
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 0 5px rgba(0, 0, 0, 0.3);
}

.indicator.active {
    background: #00B4D8;
    transform: scale(1.2);
    box-shadow: 0 0 8px rgba(0, 180, 216, 0.8);
}

.carousel-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    font-size: 18px;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 3;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(10px);
}

.carousel-nav:hover {
    background: rgba(0, 180, 216, 0.8);
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 0 15px rgba(0, 180, 216, 0.5);
}

.carousel-nav.prev {
    left: 20px;
}

.carousel-nav.next {
    right: 20px;
}

.hero .container {
    position: relative;
    z-index: 3;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    min-height: 100vh;
    padding: 180px 20px 60px;
}

.hero-content {
    flex: 1;
    max-width: 800px;
    position: relative;
    text-align: center;
    margin-top: 160px;
    display: flex;
    flex-direction: column;
    gap: 40px;
    padding: 0 20px;
}

.hero-content h1 {
    font-size: 3rem;
    line-height: 1.1;
    margin-bottom: 30px;
    color: white;
    font-weight: 300;
    text-transform: lowercase;
}

.hero-content p {
    font-size: 1.4rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 40px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* Featured Section */
.featured {
    padding: 60px 0;
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    text-align: center;
}

.featured h2 {
    font-size: 1.2rem;
    color: #666;
    margin-bottom: 40px;
    text-transform: uppercase;
    letter-spacing: 3px;
    font-weight: 500;
}

.bg-carousel-slide {
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Carousel Styles */
.carousel-container {
    overflow: hidden;
    width: 100%;
    position: relative;
    padding: 20px 0;
    background: linear-gradient(90deg, 
        rgba(248, 249, 250, 1) 0%, 
        rgba(248, 249, 250, 0) 10%, 
        rgba(248, 249, 250, 0) 90%, 
        rgba(248, 249, 250, 1) 100%);
    margin: 0 auto;
}

.carousel-track {
    display: flex;
    align-items: center;
    animation: scroll 30s linear infinite;
    width: max-content;
    gap: 10px;
}

.carousel-track:hover {
    animation-play-state: paused;
}

.logo-item {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px 20px;
    transition: all 0.3s ease;
    flex-shrink: 0;
    min-width: 200px;
}

.logo-item img {
    max-width: 100%;
    max-height: 80px;
    width: auto;
    height: auto;
    object-fit: contain;
    filter: grayscale(100%) opacity(0.6);
    transition: all 0.3s ease;
}

.logo-item:hover img {
    filter: grayscale(0%) opacity(1);
    transform: scale(1.05);
}

/* Associated With Section */
.associated {
    padding: 40px 0;
    background: #ffffff;
    text-align: center;
}

.associated h2 {
    font-size: 1.2rem;
    color: #666;
    margin-bottom: 30px;
    text-transform: uppercase;
    letter-spacing: 3px;
    font-weight: 500;
}

.associated .carousel-container {
    background: linear-gradient(90deg, 
        rgba(255, 255, 255, 1) 0%, 
        rgba(255, 255, 255, 0) 10%, 
        rgba(255, 255, 255, 0) 90%, 
        rgba(255, 255, 255, 1) 100%);
    margin: 0 auto;
}

.associated .carousel-track {
    animation: scroll-reverse 25s linear infinite;
    gap: 10px;
}

.associated .carousel-track:hover {
    animation-play-state: paused;
}

.associated .logo-item img {
    max-width: 100%;
    max-height: 90px;
}

/* Carousel Animation */
@keyframes scroll {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

@keyframes scroll-reverse {
    0% {
        transform: translateX(-50%);
    }
    100% {
        transform: translateX(0);
    }
}

/* About Section */
.about {
    padding: 100px 0;
    background: #f8f9fa;
}

.about-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.about h2 {
    font-size: 2.5rem;
    margin-bottom: 30px;
    color: #000;
}

.about p {
    font-size: 1.1rem;
    color: #666;
    margin-bottom: 20px;
    line-height: 1.8;
}

/* Book Section */
.book {
    padding: 100px 0;
    background: white;
}

.book-content {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
    padding: 0 20px;
}

.book-image {
    display: flex;
    justify-content: center;
}

.book-image img {
    max-width: 250px;
    width: 100%;
    height: auto;
    border-radius: 15px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.book-info h2 {
    font-size: 2.5rem;
    margin-bottom: 10px;
    color: #000;
}

.book-info h3 {
    font-size: 1.3rem;
    color: #00B4D8;
    margin-bottom: 20px;
    font-weight: 500;
}

.book-info p {
    font-size: 1.1rem;
    color: #666;
    margin-bottom: 30px;
    line-height: 1.8;
}

/* Testimonials Section */
.testimonials {
    padding: 5rem 0;
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    position: relative;
    overflow: hidden;
}

.testimonials::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="50" cy="50" r="0.5" fill="%23000" opacity="0.02"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
    pointer-events: none;
}

.testimonials h2 {
    text-align: center;
    font-family: 'Playfair Display', serif;
    font-size: 3rem;
    font-weight: 700;
    color: #000;
    margin-bottom: 3rem;
    position: relative;
    z-index: 1;
}

.testimonials h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, #00B4D8, #0077B6);
    border-radius: 2px;
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    position: relative;
    z-index: 1;
}

.testimonial-card {
    background: white;
    padding: 2.5rem;
    border-radius: 20px;
    box-shadow: 
        0 10px 30px rgba(0, 0, 0, 0.1),
        0 1px 8px rgba(0, 0, 0, 0.06);
    position: relative;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 1px solid rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    overflow: hidden;
}

.testimonial-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #00B4D8, #0077B6);
    transform: scaleX(0);
    transition: transform 0.4s ease;
}

.testimonial-card:hover::before {
    transform: scaleX(1);
}

.testimonial-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 
        0 20px 40px rgba(0, 0, 0, 0.15),
        0 5px 15px rgba(0, 0, 0, 0.1);
}

.quote-icon {
    font-size: 4rem;
    color: #00B4D8;
    opacity: 0.3;
    line-height: 1;
    margin-bottom: 1rem;
    font-family: serif;
}

.quote {
    font-size: 1.1rem;
    line-height: 1.7;
    color: #333;
    margin-bottom: 2rem;
    font-style: italic;
    position: relative;
}

.author {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.author-img {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid #00B4D8;
    transition: transform 0.3s ease;
}

.testimonial-card:hover .author-img {
    transform: scale(1.1);
}

.author-info h4 {
    font-size: 1.1rem;
    font-weight: 600;
    color: #000;
    margin-bottom: 0.25rem;
}

.author-info p {
    font-size: 0.9rem;
    color: #00B4D8;
    font-weight: 500;
}

/* Floating animation for testimonial cards */
@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}

.testimonial-card:nth-child(1) {
    animation: float 6s ease-in-out infinite;
    animation-delay: 0s;
}

.testimonial-card:nth-child(2) {
    animation: float 6s ease-in-out infinite;
    animation-delay: 2s;
}

.testimonial-card:nth-child(3) {
    animation: float 6s ease-in-out infinite;
    animation-delay: 4s;
}

/* Contact Section */
.contact {
    padding: 100px 0;
    background: linear-gradient(135deg, #000 0%, #333 100%);
    color: white;
}

.contact h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 50px;
}

.contact-content {
    max-width: 600px;
    margin: 0 auto;
}

#contact-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

#contact-form input,
#contact-form textarea {
    padding: 15px;
    border: none;
    border-radius: 10px;
    font-size: 16px;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    backdrop-filter: blur(10px);
}

#contact-form input::placeholder,
#contact-form textarea::placeholder {
    color: rgba(255, 255, 255, 0.7);
}

#contact-form textarea {
    min-height: 120px;
    resize: vertical;
}

/* Footer */
.footer {
    background: #000;
    color: white;
    padding: 40px 0 20px;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.footer-brand p {
    color: #999;
    margin-top: 5px;
}

.footer-links {
    display: flex;
    gap: 30px;
}

.footer-links a {
    color: #999;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: #00B4D8;
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid #333;
    color: #999;
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 10px;
        right: 10px;
        background: rgba(0, 0, 0, 0.8);
        backdrop-filter: blur(20px) saturate(180%);
        -webkit-backdrop-filter: blur(20px) saturate(180%);
        padding: 20px;
        border-radius: 0 0 20px 20px;
        flex-direction: column;
        gap: 20px;
        transform: translateY(-20px);
        opacity: 0;
        transition: all 0.3s ease;
        box-shadow: 
            0 8px 32px rgba(0, 0, 0, 0.3),
            inset 0 1px 0 rgba(255, 255, 255, 0.1);
        border: 1px solid rgba(255, 255, 255, 0.1);
    }

    .nav-links a {
        padding: 10px;
        width: 100%;
        text-align: center;
        font-size: 1.1rem;
    }

    .nav-links a::after {
        height: 1px;
        background: linear-gradient(90deg, transparent, #00B4D8, transparent);
    }
    
    .mobile-menu-btn {
        display: flex;
    }
    
    .hero {
        padding-top: 60px;
    }
    
    .bg-carousel-slides {
        top: 60px;
        height: calc(100% - 60px);
    }
    
    .bg-carousel-slide img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        object-position: center;
    }
    
    .hero .carousel-indicators {
        bottom: 20px;
    }
    
    .indicator {
        width: 12px;
        height: 12px;
    }
    
    .carousel-nav {
        width: 40px;
        height: 40px;
        font-size: 16px;
    }
    
    .carousel-nav.prev {
        left: 15px;
    }
    
    .carousel-nav.next {
        right: 15px;
    }
    
    .hero .container {
        flex-direction: column;
        gap: 30px;
        text-align: center;
        padding-top: 120px;
    }
    
    .hero-content {
        margin-top: 80px;
        padding: 0 10px;
    }
    
    .hero-content h1 {
        font-size: 2.5rem;
    }
    
    .book-content {
        grid-template-columns: 1fr;
        gap: 40px;
        text-align: center;
    }
    
    .footer-content {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }
    
    .logo-item {
        padding: 10px;
        min-width: 150px;
    }
    
    .logo-item img {
        max-height: 60px;
    }
    
    .associated .logo-item img {
        max-height: 70px;
    }
    
    .carousel-container {
        width: 90%;
    }
    
    .carousel-track, 
    .associated .carousel-track {
        animation-duration: 20s;
    }
    
    .testimonials h2 {
        font-size: 2.5rem;
    }
    
    .testimonials-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .testimonial-card {
        padding: 2rem;
    }
}

@media (max-width: 480px) {
    .hero {
        padding-top: 0px;
    }
    
    .hero .container {
        padding: 60px 10px 30px;
        min-height: auto;
    }
    
    .hero-content {
        margin-top: 20px;
        padding: 0 10px;
    }
    
    .hero-content p {
        font-size: 1rem;
        margin-bottom: 20px;
    }
    
    .hero-content h1 {
        font-size: 2rem;
    }
    
    .bg-carousel-slides {
        top: 60px;
        height: calc(100% - 60px);
    }
    
    .bg-carousel-slide img {
        width: 100%;
        height: auto;
        object-fit: cover;
        object-position: center;
        aspect-ratio: 4 / 3;
    }
    
    .hero .carousel-indicators {
        bottom: 15px;
        gap: 10px;
    }
    
    .indicator {
        width: 10px;
        height: 10px;
    }
    
    .carousel-nav {
        width: 35px;
        height: 35px;
        font-size: 14px;
    }
    
    .carousel-nav.prev {
        left: 10px;
    }
    
    .carousel-nav.next {
        right: 10px;
    }
    
    .logo-item {
        padding: 8px;
        min-width: 120px;
    }
    
    .logo-item img {
        max-height: 50px;
    }
    
    .associated .logo-item img {
        max-height: 60px;
    }
    
    .featured h2,
    .associated h2 {
        font-size: 1rem;
        margin-bottom: 30px;
    }
    
    .about h2,
    .book-info h2,
    .contact h2 {
        font-size: 2rem;
    }
    
    .container {
        padding: 0 15px;
    }
    
    .carousel-container {
        width: 85%;
    }
    
    .carousel-track,
    .associated .carousel-track {
        animation-duration: 15s;
    }
    
    .testimonials h2 {
        font-size: 2rem;
    }
    
    .testimonial-card {
        padding: 1.5rem;
    }
    
    .quote-icon {
        font-size: 3rem;
    }
    
    .author-img {
        width: 50px;
        height: 50px;
    }
}

@media (max-width: 1024px) {
    .carousel-container {
        width: 95%;
    }
    
    .logo-item {
        min-width: 180px;
    }
    
    .logo-item img {
        max-height: 70px;
    }
    
    .associated .logo-item img {
        max-height: 80px;
    }
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-content,
.about-content,
.book-content,
.contact-content {
    animation: fadeInUp 0.8s ease-out;
}

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

/* Loading animation for images */
img {
    transition: opacity 0.3s ease;
}

img:not([src]) {
    opacity: 0;
}

/* Fix for mobile browsers that ignore the overflow-x: hidden on body */
html, body {
    overflow-x: hidden;
    width: 100%;
    position: relative;
}
