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

/* Modern CSS Reset */
html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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

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

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

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

/* Modern Glassmorphism Effect */
.glass {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

/* Modern Button Hover Effects */
.btn-modern {
    position: relative;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

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

:root {
    --primary-color: #041020;
    --primary-dark: #020a15;
    --primary-light: #0a1f3a;
    --secondary-color: #D1CF2F;
    --secondary-dark: #a8a625;
    --secondary-light: #e6e44a;
    --accent-color: #D1CF2F;
    --accent-light: #e6e44a;
    --text-primary: #041020;
    --text-secondary: #374151;
    --text-light: #6b7280;
    --text-white: #ffffff;
    --bg-primary: #ffffff;
    --bg-secondary: #f9fafb;
    --bg-tertiary: #ffffff;
    --bg-dark: #041020;
    --bg-gradient: linear-gradient(135deg, #041020 0%, #0a1f3a 50%, #1a365d 100%);
    --border-color: #d1d5db;
    --border-light: #e5e7eb;
    --shadow-sm: 0 1px 2px 0 rgba(4, 16, 32, 0.1);
    --shadow-md: 0 4px 6px -1px rgba(4, 16, 32, 0.15);
    --shadow-lg: 0 10px 15px -3px rgba(4, 16, 32, 0.2);
    --shadow-xl: 0 20px 25px -5px rgba(4, 16, 32, 0.25);
    --shadow-colored: 0 10px 30px rgba(209, 207, 47, 0.4);
    --gradient-primary: linear-gradient(135deg, #041020 0%, #0a1f3a 100%);
    --gradient-secondary: linear-gradient(135deg, #D1CF2F 0%, #a8a625 100%);
    --gradient-accent: linear-gradient(135deg, #D1CF2F 0%, #e6e44a 100%);
    --gradient-hero: linear-gradient(135deg, #041020 0%, #0a1f3a 50%, #1a365d 100%);
    --gradient-card: linear-gradient(145deg, #ffffff 0%, #f9fafb 100%);
}

body {
    font-family: 'Poppins', 'Inter', 'Noto Sans Telugu', sans-serif;
    line-height: 1.6;
    color: var(--text-primary);
    overflow-x: hidden;
    background: var(--bg-primary);
    animation: fadeInUp 0.8s ease-out;
}

/* Modern Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg-secondary);
}

::-webkit-scrollbar-thumb {
    background: var(--gradient-primary);
    border-radius: 4px;
}

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

/* Telugu Text Styling */
.telugu-text {
    font-family: 'Noto Sans Telugu', 'Poppins', sans-serif;
    font-weight: 500;
    color: var(--text-secondary);
    font-size: 1.1rem;
    line-height: 1.7;
    margin-top: 0.5rem;
}

.subtitle-telugu {
    font-family: 'Noto Sans Telugu', 'Poppins', sans-serif;
    font-size: 1.4rem;
    font-weight: 600;
    color: var(--accent-color);
    margin-bottom: 1rem;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.hero-description-telugu {
    font-family: 'Noto Sans Telugu', 'Poppins', sans-serif;
    font-size: 1rem;
    margin-bottom: 1.5rem;
    opacity: 0.9;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.9);
}

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

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    z-index: 1000;
    padding: 1rem 0;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    animation: slideInLeft 0.6s ease-out;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-logo a {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.logo-img {
    height: 40px;
    width: auto;
    border-radius: 5px;
    object-fit: contain;
    max-width: 120px;
    transition: all 0.3s ease;
}

.logo-text {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 800;
    font-size: 1.8rem;
    letter-spacing: -0.02em;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2.5rem;
}

.nav-menu a {
    text-decoration: none;
    color: var(--text-primary);
    font-weight: 500;
    font-size: 0.95rem;
    position: relative;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    border-radius: 8px;
}

.nav-menu a i {
    font-size: 0.9rem;
}

.nav-cta {
    background: var(--gradient-secondary);
    color: var(--primary-color) !important;
    font-weight: 600 !important;
}

.nav-cta:hover {
    background: var(--secondary-dark);
    transform: translateY(-2px);
}

.language-switch {
    background: var(--gradient-accent);
    color: white !important;
    border-radius: 8px;
    padding: 0.5rem 1rem;
    transition: all 0.3s ease;
    font-weight: 600 !important;
}

.language-switch:hover {
    background: var(--accent-light);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 107, 53, 0.3);
}

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

.nav-menu a:hover::after {
    width: 100%;
}

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

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    padding: 5px;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: var(--text-primary);
    margin: 3px 0;
    transition: 0.3s;
    border-radius: 2px;
}

/* Hero Section */
.hero {
    padding: 120px 0 60px;
    background: var(--gradient-hero);
    color: white;
    min-height: 70vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.hero::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="1" fill="rgba(255,255,255,0.1)"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
    opacity: 0.1;
}

.hero-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
    z-index: 2;
}

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

.hero-text h1 {
    font-size: 3.2rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
    line-height: 1.1;
    letter-spacing: -0.02em;
}

.subtitle {
    font-size: 1.8rem;
    font-weight: 600;
    color: var(--secondary-color);
    margin-bottom: 1rem;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.hero-description {
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    opacity: 1;
    line-height: 1.6;
    font-weight: 500;
}

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

.btn {
    padding: 16px 32px;
    border: none;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-align: center;
    position: relative;
    overflow: hidden;
    min-height: 56px;
    animation: scaleIn 0.6s ease-out;
}

.btn-text {
    display: block;
    line-height: 1.2;
}

.btn-price {
    display: block;
    font-size: 0.9rem;
    opacity: 0.8;
    font-weight: 500;
}

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

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

.btn-primary {
    background: var(--secondary-color);
    color: var(--primary-color);
    box-shadow: var(--shadow-lg);
    opacity: 1;
    border: 2px solid var(--secondary-dark);
    font-weight: 700;
}

.btn-primary:hover {
    background: #b8b62a;
    transform: translateY(-3px);
    box-shadow: 0 20px 40px rgba(209, 207, 47, 0.4);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.5);
    backdrop-filter: blur(10px);
    opacity: 1;
    font-weight: 600;
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.3);
    border-color: rgba(255, 255, 255, 0.7);
    transform: translateY(-3px);
}

.btn-large {
    padding: 20px 40px;
    font-size: 1.1rem;
    min-height: 64px;
    flex-direction: column;
    gap: 4px;
}

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

.trust-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.9rem;
    font-weight: 500;
}

.trust-item i {
    color: var(--secondary-color);
    font-size: 1.1rem;
}

/* Sales-Focused Elements */
.hero-urgency {
    margin-bottom: 1.5rem;
    text-align: center;
}

.urgency-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: linear-gradient(135deg, #ff6b35, #ff8c5a);
    color: white;
    padding: 0.8rem 1.5rem;
    border-radius: 25px;
    font-weight: 700;
    font-size: 0.9rem;
    animation: pulse 2s infinite;
    box-shadow: 0 4px 15px rgba(255, 107, 53, 0.5);
    border: 2px solid rgba(255, 255, 255, 0.3);
    opacity: 1;
}

.urgency-badge i {
    animation: bounce 1s infinite;
}

.btn-pulse {
    animation: pulse 2s infinite;
    position: relative;
    overflow: hidden;
}

.btn-pulse::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    animation: shimmer 2s infinite;
}

.btn-subtext {
    display: block;
    font-size: 0.8rem;
    opacity: 0.9;
    font-weight: 500;
    margin-top: 0.2rem;
}

.hero-social-proof {
    margin-top: 1.5rem;
    text-align: center;
}

.social-proof-item {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.9);
    padding: 0.8rem 1.5rem;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 500;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.social-proof-item i {
    color: var(--secondary-color);
}

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

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

/* 3D Book Design */
.book-showcase {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 400px;
}

.book-3d {
    position: relative;
    transform-style: preserve-3d;
    animation: float 6s ease-in-out infinite;
}

.book-cover-real {
    width: 240px;
    height: 320px;
    border-radius: 15px;
    box-shadow: 
        0 20px 40px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.8);
    border: 3px solid var(--secondary-color);
    position: relative;
    z-index: 3;
    overflow: hidden;
}

.book-cover-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.book-title {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--primary-color);
    text-align: center;
    margin-bottom: 10px;
    line-height: 1.2;
}

.book-subtitle {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--text-primary);
    text-align: center;
    margin-bottom: 8px;
}

.book-language {
    font-size: 1rem;
    font-weight: 500;
    color: var(--accent-color);
    text-align: center;
    margin-bottom: 20px;
    background: rgba(16, 185, 129, 0.1);
    padding: 8px 16px;
    border-radius: 20px;
    display: inline-block;
    width: 100%;
}

.book-authors {
    font-size: 0.9rem;
    color: var(--text-secondary);
    text-align: center;
    margin-bottom: 20px;
    font-style: italic;
}

.book-price-tag {
    background: var(--gradient-primary);
    color: white;
    padding: 12px 20px;
    border-radius: 25px;
    text-align: center;
    font-size: 1.4rem;
    font-weight: 700;
    box-shadow: var(--shadow-md);
}

.book-pages {
    position: absolute;
    top: 5px;
    left: 5px;
    width: 230px;
    height: 310px;
    background: linear-gradient(145deg, #f8f9fa, #e9ecef);
    border-radius: 12px;
    z-index: 2;
    transform: rotateY(-5deg) translateZ(-10px);
}

.book-shadow {
    position: absolute;
    bottom: -20px;
    left: 50%;
    transform: translateX(-50%);
    width: 200px;
    height: 20px;
    background: radial-gradient(ellipse, rgba(0, 0, 0, 0.3), transparent);
    border-radius: 50%;
    z-index: 1;
}

/* Floating Elements */
.floating-elements {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
}

.floating-icon {
    position: absolute;
    width: 60px;
    height: 60px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.4);
    animation: floatIcon 4s ease-in-out infinite;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.floating-icon i {
    font-size: 1.5rem;
    color: rgba(255, 255, 255, 0.9);
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.icon-1 {
    top: 20%;
    left: 10%;
    animation-delay: 0s;
}

.icon-2 {
    top: 60%;
    right: 15%;
    animation-delay: 1.5s;
}

.icon-3 {
    bottom: 20%;
    left: 20%;
    animation-delay: 3s;
}

/* Animations */
@keyframes float {
    0%, 100% { transform: translateY(0px) rotateY(-5deg); }
    50% { transform: translateY(-20px) rotateY(-5deg); }
}

@keyframes floatIcon {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-15px) rotate(10deg); }
}

/* Section Headers */
.section-header {
    text-align: center;
    margin-bottom: 5rem;
}

.section-header h2 {
    font-size: 3rem;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 1.5rem;
    letter-spacing: -0.02em;
    position: relative;
}

.section-header h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: var(--gradient-primary);
    border-radius: 2px;
}

.section-header p {
    font-size: 1.25rem;
    color: var(--text-secondary);
    max-width: 700px;
    margin: 0 auto;
    line-height: 1.7;
}

.section-subtitle {
    font-family: 'Noto Sans Telugu', 'Poppins', sans-serif;
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--accent-color);
    margin-bottom: 1rem;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Features Section */
.features {
    padding: 100px 0;
    background: var(--bg-secondary);
    position: relative;
}

.features::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="dots" width="20" height="20" patternUnits="userSpaceOnUse"><circle cx="10" cy="10" r="1" fill="rgba(99,102,241,0.1)"/></pattern></defs><rect width="100" height="100" fill="url(%23dots)"/></svg>');
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(380px, 1fr));
    gap: 2.5rem;
    position: relative;
    z-index: 2;
}

.feature-card {
    background: var(--gradient-card);
    padding: 3rem 2.5rem;
    border-radius: 20px;
    text-align: center;
    box-shadow: var(--shadow-lg);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    border: 1px solid var(--border-light);
    animation: fadeInUp 0.8s ease-out;
    animation-fill-mode: both;
}

.feature-card:nth-child(1) { animation-delay: 0.1s; }
.feature-card:nth-child(2) { animation-delay: 0.2s; }
.feature-card:nth-child(3) { animation-delay: 0.3s; }
.feature-card:nth-child(4) { animation-delay: 0.4s; }
.feature-card:nth-child(5) { animation-delay: 0.5s; }
.feature-card:nth-child(6) { animation-delay: 0.6s; }

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient-primary);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.feature-card:hover::before {
    transform: scaleX(1);
}

.feature-card:hover {
    transform: translateY(-15px);
    box-shadow: var(--shadow-colored);
}

.feature-icon {
    width: 90px;
    height: 90px;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 2rem;
    position: relative;
    box-shadow: var(--shadow-lg);
}

.feature-icon::after {
    content: '';
    position: absolute;
    top: -5px;
    left: -5px;
    right: -5px;
    bottom: -5px;
    background: var(--gradient-primary);
    border-radius: 50%;
    opacity: 0.3;
    z-index: -1;
    animation: pulse 2s infinite;
}

.feature-icon i {
    font-size: 2.2rem;
    color: white;
}

.feature-card h3 {
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 1.5rem;
}

.feature-card p {
    color: var(--text-secondary);
    line-height: 1.8;
    font-size: 1.05rem;
    margin-bottom: 1rem;
}

.feature-badge {
    background: var(--gradient-secondary);
    color: var(--primary-color);
    padding: 0.4rem 1rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    display: inline-block;
    margin-top: 0.5rem;
}

.feature-value {
    background: var(--gradient-accent);
    color: white;
    padding: 0.3rem 0.8rem;
    border-radius: 15px;
    font-size: 0.75rem;
    font-weight: 600;
    display: inline-block;
    margin-top: 0.5rem;
    box-shadow: 0 2px 8px rgba(255, 107, 53, 0.3);
}

@keyframes pulse {
    0% { transform: scale(1); opacity: 0.6; }
    50% { transform: scale(1.1); opacity: 0.3; }
    100% { transform: scale(1); opacity: 0.6; }
}

/* Authors Section */
.authors {
    padding: 60px 0;
    background: white;
}

/* Modern Authors Grid Layout */
.authors .authors-grid {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 1.5rem !important;
    max-width: 1600px !important;
    margin: 0 auto !important;
    width: 100% !important;
    padding: 0 1rem;
}

.authors .author-card {
    display: flex !important;
    flex-direction: column !important;
    width: 100% !important;
    max-width: none !important;
    min-height: 400px !important;
    flex: 1 1 0 !important;
    box-sizing: border-box !important;
}

.authors-grid {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr) !important;
    grid-template-rows: 1fr !important;
    gap: 1rem !important;
    max-width: 1400px !important;
    margin: 0 auto !important;
    align-items: start !important;
    width: 100% !important;
    grid-auto-flow: row !important;
    overflow: visible !important;
}

.author-card {
    background: linear-gradient(145deg, #ffffff 0%, #f8fafc 100%);
    padding: 1.2rem 1rem;
    border-radius: 16px;
    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);
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(209, 207, 47, 0.15);
    animation: fadeInUp 0.8s ease-out;
    animation-fill-mode: both;
    height: auto !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: space-between !important;
    min-height: 300px !important;
    max-height: none !important;
    width: 100% !important;
    flex: 1 1 0 !important;
    box-sizing: border-box !important;
}

.author-card:nth-child(1) { animation-delay: 0.2s; }
.author-card:nth-child(2) { animation-delay: 0.4s; }
.author-card:nth-child(3) { animation-delay: 0.6s; }

.author-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient-primary);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.author-card:hover::before {
    transform: scaleX(1);
}

.author-card-header {
    background: transparent;
    padding: 0 0 1.5rem 0;
    position: relative;
    overflow: hidden;
}

.author-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.12);
    border-color: rgba(209, 207, 47, 0.4);
}

.author-card:hover .author-placeholder {
    transform: scale(1.05);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

.author-card:hover .expertise-tag {
    transform: scale(1.02);
    background: rgba(209, 207, 47, 0.18);
}

.author-description {
    color: var(--text-secondary);
    line-height: 1.4;
    font-size: 0.8rem;
    margin-bottom: 0.8rem;
    text-align: left;
    max-height: none;
    overflow: visible;
    display: block;
    flex-shrink: 0;
}

/* Ensure all 3 cards stay in single row */
.authors-grid .author-card:nth-child(1),
.authors-grid .author-card:nth-child(2),
.authors-grid .author-card:nth-child(3) {
    grid-column: auto !important;
    grid-row: 1 !important;
    max-width: calc(33.333% - 0.5rem) !important;
    flex: 0 0 calc(33.333% - 0.5rem) !important;
    min-width: 280px !important;
    overflow: visible !important;
    height: auto !important;
    min-height: 300px !important;
    align-items: stretch !important;
}

.author-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--gradient-primary);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.main-author::before {
    opacity: 1;
}

.author-card:hover::before {
    opacity: 1;
}

.author-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-colored);
}

.author-card > * {
    position: relative;
    z-index: 2;
}

.main-author {
    background: var(--gradient-primary);
    color: white;
    transform: scale(1.05);
}

.author-image {
    margin-bottom: 2rem;
}

.author-image {
    position: relative;
    width: 100px;
    height: 100px;
    margin: 0 auto 1rem;
    border-radius: 50%;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
    border: 4px solid rgba(209, 207, 47, 0.4);
    background: #f8fafc;
}

.author-photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: all 0.3s ease;
    border-radius: 50%;
}

.author-photo:hover {
    transform: scale(1.08);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.25);
}

.author-placeholder {
    width: 50px;
    height: 50px;
    background: linear-gradient(145deg, rgba(209, 207, 47, 0.15) 0%, rgba(209, 207, 47, 0.08) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 0.5rem;
    position: relative;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    border: 2px solid rgba(209, 207, 47, 0.25);
    display: none; /* Hide placeholder when image is present */
}

.author-placeholder::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 100%;
    background: rgba(209, 207, 47, 0.05);
    border-radius: 50%;
    opacity: 0.3;
    z-index: -1;
}

.author-placeholder i {
    font-size: 1.2rem;
    color: var(--secondary-color);
}

.author-card-content {
    padding: 0;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%;
}

.author-info h3 {
    font-size: 1rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 0.2rem;
    line-height: 1.2;
}

.author-info p {
    color: var(--text-secondary);
    line-height: 1.6;
    font-size: 0.95rem;
    margin-bottom: 0;
}

.author-description {
    flex-grow: 1;
    margin-bottom: 1.5rem;
    font-size: 0.85rem;
    line-height: 1.4;
    word-wrap: break-word;
    overflow-wrap: break-word;
    text-align: left;
}

.author-expertise {
    margin-top: auto;
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    justify-content: center;
    margin-bottom: 0.8rem;
    flex-shrink: 0;
}

.expertise-tag {
    background: rgba(209, 207, 47, 0.12);
    color: var(--secondary-color);
    padding: 0.25rem 0.6rem;
    border-radius: 12px;
    font-size: 0.7rem;
    font-weight: 600;
    display: inline-block;
    margin: 0.1rem;
    border: 1px solid rgba(209, 207, 47, 0.25);
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.expertise-tag:hover {
    background: rgba(209, 207, 47, 0.2);
    transform: scale(1.05);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    border-color: var(--secondary-color);
}

.author-value {
    background: linear-gradient(145deg, rgba(209, 207, 47, 0.18) 0%, rgba(209, 207, 47, 0.12) 100%);
    color: var(--secondary-color);
    padding: 0.3rem 0.8rem;
    border-radius: 15px;
    font-size: 0.7rem;
    font-weight: 700;
    display: inline-block;
    margin-top: 0.5rem;
    margin-bottom: 0;
    box-shadow: 0 3px 12px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(209, 207, 47, 0.3);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    flex-shrink: 0;
}

.author-title {
    color: var(--secondary-color);
    font-weight: 600;
    margin-bottom: 0.5rem;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.main-author .author-title {
    color: var(--secondary-color);
}

.main-author {
    background: linear-gradient(145deg, #ffffff 0%, #f8fafc 100%) !important;
}

.author-description {
    margin-bottom: 2rem;
    line-height: 1.8;
    font-size: 1.05rem;
}

.main-author .author-description {
    color: var(--text-secondary);
}

.author-expertise {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
    justify-content: center;
}

.expertise-tag {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 25px;
    font-size: 0.9rem;
    font-weight: 500;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.author-card:not(.main-author) .expertise-tag {
    background: var(--primary-color);
    color: white;
}

/* Purchase Section */
.purchase {
    padding: 80px 0;
    background: var(--bg-gradient);
    color: white;
    position: relative;
}

.purchase::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="stars" width="50" height="50" patternUnits="userSpaceOnUse"><circle cx="25" cy="25" r="1" fill="rgba(255,255,255,0.1)"/></pattern></defs><rect width="100" height="100" fill="url(%23stars)"/></svg>');
}

.purchase-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    position: relative;
    z-index: 2;
}

.purchase-info h2 {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    letter-spacing: -0.02em;
}

.purchase-description {
    font-size: 1.1rem;
    margin-bottom: 2rem;
    opacity: 0.9;
    line-height: 1.6;
}

/* Price Highlight */
.price-highlight {
    background: var(--gradient-card);
    color: var(--text-primary);
    padding: 2.5rem;
    border-radius: 20px;
    text-align: center;
    margin: 2rem 0;
    box-shadow: 0 20px 40px rgba(209, 207, 47, 0.3);
    position: relative;
    overflow: hidden;
    border: 1px solid var(--border-light);
}

.price-highlight::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient-accent);
}

.price-comparison {
    margin-bottom: 1rem;
}

.old-price {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 0.5rem;
}

.strikethrough {
    font-size: 1.2rem;
    color: var(--text-light);
    text-decoration: line-through;
    font-weight: 500;
}

.save-badge {
    background: var(--gradient-accent);
    color: white;
    padding: 0.3rem 0.8rem;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 600;
    animation: pulse 2s infinite;
}

.price-note {
    font-size: 1rem;
    color: var(--text-secondary);
    font-weight: 500;
    margin-left: 0.5rem;
}

.value-proposition {
    color: var(--accent-color);
    font-weight: 600;
    font-size: 0.9rem;
    margin-top: 0.5rem;
}

.urgency-timer {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    background: rgba(255, 107, 53, 0.1);
    color: var(--accent-color);
    padding: 0.8rem 1.5rem;
    border-radius: 15px;
    font-weight: 600;
    font-size: 0.9rem;
    margin: 1rem 0;
    border: 1px solid rgba(255, 107, 53, 0.2);
    animation: pulse 2s infinite;
}

.price-highlight::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
    animation: shimmer 3s infinite;
}

.price-main {
    display: flex;
    align-items: baseline;
    justify-content: center;
    margin-bottom: 1rem;
}

.currency {
    font-size: 2rem;
    font-weight: 600;
    margin-right: 0.5rem;
}

.amount {
    font-size: 4rem;
    font-weight: 800;
    line-height: 1;
}

.price-details {
    margin-bottom: 2rem;
}

.price-includes {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    opacity: 0.9;
}

.delivery-info {
    font-size: 1.1rem;
    font-weight: 600;
}

.payment-methods {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    flex-wrap: wrap;
}

.payment-option {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    background: rgba(255, 255, 255, 0.2);
    padding: 1rem 1.5rem;
    border-radius: 15px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    transition: all 0.3s ease;
}

.payment-option:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
}

.payment-option i {
    font-size: 1.3rem;
}

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

.purchase-features {
    margin-bottom: 2rem;
}

.purchase-feature {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
    font-size: 1rem;
}

.purchase-feature i {
    color: var(--secondary-color);
    font-size: 1.4rem;
}

.purchase-buttons {
    display: flex;
    gap: 1.2rem;
    flex-wrap: wrap;
    margin-bottom: 1.5rem;
    justify-content: center;
    width: 100%;
}

.purchase-buttons .btn {
    width: 100%;
    max-width: 400px;
    margin: 0 auto;
}

.purchase-help {
    text-align: center;
    padding: 1.2rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.purchase-help p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1rem;
    margin: 0;
}

.purchase-help i {
    color: var(--secondary-color);
    margin-right: 0.5rem;
}

.purchase-image {
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Book Gallery */
.book-gallery {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    padding: 2rem;
    max-width: 100%;
    overflow-x: auto;
}

.book-image-container {
    position: relative;
    text-align: center;
    transition: transform 0.3s ease;
}

.book-image-container:hover {
    transform: translateY(-10px);
}

.book-image {
    width: 150px;
    height: 200px;
    object-fit: cover;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    border: 3px solid rgba(209, 207, 47, 0.3);
    transition: all 0.3s ease;
}

.book-image:hover {
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
    transform: scale(1.05);
}

.book-label {
    margin-top: 1rem;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-secondary);
    background: rgba(209, 207, 47, 0.1);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    border: 1px solid rgba(209, 207, 47, 0.2);
}

.book-stack {
    position: relative;
    width: 250px;
    height: 300px;
}

.book {
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 12px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4);
    transition: all 0.3s ease;
}

.book-1 {
    background: var(--gradient-primary);
    z-index: 3;
}

.book-2 {
    background: var(--gradient-secondary);
    transform: rotate(-5deg) translate(15px, 15px);
    z-index: 2;
}

.book-3 {
    background: var(--gradient-success);
    transform: rotate(-10deg) translate(30px, 30px);
    z-index: 1;
}

.book:hover {
    transform: translateY(-10px) !important;
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    animation: fadeIn 0.3s ease;
}


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

@media (max-width: 480px) {
    .purchase-buttons .btn {
        width: 100%;
        max-width: 100%;
        padding: 1.2rem 2rem;
        font-size: 1.1rem;
    }
}

.modal-content {
    background-color: white;
    margin: 5% auto;
    padding: 0;
    border-radius: 20px;
    width: 90%;
    max-width: 500px;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.3);
    animation: slideIn 0.3s ease;
    overflow: hidden;
}

.modal-header {
    background: var(--gradient-primary);
    color: white;
    padding: 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0;
}

.close {
    color: white;
    font-size: 2rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
}

.close:hover {
    transform: scale(1.2);
}

.modal-body {
    padding: 2.5rem;
}

.payment-info {
    text-align: center;
    margin-bottom: 2rem;
}

.amount-display {
    display: flex;
    align-items: baseline;
    justify-content: center;
    margin-bottom: 1rem;
}

.amount-display .currency {
    font-size: 1.5rem;
    font-weight: 600;
    margin-right: 0.5rem;
}

.amount-display .amount {
    font-size: 3rem;
    font-weight: 800;
    color: var(--primary-color);
}

.payment-description {
    color: var(--text-secondary);
    font-size: 1.1rem;
}

.qr-section {
    text-align: center;
    margin-bottom: 2rem;
    padding: 2rem;
    background: linear-gradient(145deg, #f8fafc 0%, #e2e8f0 100%);
    border-radius: 20px;
    border: 2px solid rgba(209, 207, 47, 0.1);
}

.qr-container {
    background: white;
    padding: 2rem;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    display: inline-block;
    margin-bottom: 1.5rem;
    border: 3px solid rgba(209, 207, 47, 0.2);
    position: relative;
    overflow: hidden;
}

.qr-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--secondary-color) 0%, #b8b62a 100%);
}

.qr-container canvas,
.qr-code-image {
    border-radius: 15px;
    max-width: 100%;
    height: auto;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.qr-code-image {
    width: 220px;
    height: 220px;
    object-fit: contain;
    border: 2px solid rgba(209, 207, 47, 0.1);
}

.payment-details {
    margin-top: 1rem;
}

.upi-info {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.8rem;
    background: var(--bg-secondary);
    padding: 1rem 1.5rem;
    border-radius: 15px;
    margin-bottom: 1rem;
    font-weight: 600;
    color: var(--text-primary);
}

.upi-info i {
    color: var(--primary-color);
    font-size: 1.2rem;
}

.scan-text {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.payment-steps {
    margin-bottom: 2rem;
}

.step {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
    padding: 1rem;
    background: var(--bg-secondary);
    border-radius: 12px;
}

.step-number {
    width: 30px;
    height: 30px;
    background: var(--gradient-primary);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.9rem;
}

.step-text {
    color: var(--text-primary);
    font-weight: 500;
}

.modal-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

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

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

/* Contact Section */
.contact {
    padding: 80px 0;
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
}

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

.contact-item {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 2.5rem;
    padding: 1.5rem;
    background: var(--gradient-card);
    border-radius: 15px;
    box-shadow: var(--shadow-md);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid var(--border-light);
    animation: fadeInUp 0.6s ease-out;
    animation-fill-mode: both;
}

.contact-item:nth-child(1) { animation-delay: 0.1s; }
.contact-item:nth-child(2) { animation-delay: 0.2s; }
.contact-item:nth-child(3) { animation-delay: 0.3s; }

.contact-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.contact-icon {
    width: 70px;
    height: 70px;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: var(--shadow-md);
}

.contact-icon i {
    font-size: 1.8rem;
    color: white;
}

.contact-details h4 {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.contact-details p {
    color: var(--text-primary);
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.contact-note {
    color: var(--text-secondary);
    font-size: 0.85rem;
    font-style: italic;
    background: rgba(209, 207, 47, 0.1);
    padding: 0.3rem 0.8rem;
    border-radius: 12px;
    display: inline-block;
    border: 1px solid rgba(209, 207, 47, 0.2);
}

.contact-form {
    background: var(--gradient-card);
    padding: 3rem;
    border-radius: 20px;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border-light);
    animation: slideInRight 0.8s ease-out;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.form-group {
    margin-bottom: 2rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.8rem;
    font-weight: 600;
    color: var(--text-primary);
    font-size: 1.05rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 15px 20px;
    border: 2px solid var(--border-color);
    border-radius: 12px;
    font-size: 1rem;
    transition: all 0.3s ease;
    font-family: inherit;
    background: var(--bg-secondary);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    background: white;
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

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

/* Footer */
.footer {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: white;
    padding: 1.5rem 0;
    margin-top: 4rem;
}

.footer-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem;
}

.footer-logo {
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

.footer-logo-img {
    height: 35px;
    width: auto;
    border-radius: 5px;
    object-fit: contain;
}

.footer-links {
    display: flex;
    align-items: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.footer-links ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.footer-links ul li {
    margin: 0;
}

.footer-links a {
    color: white !important;
    text-decoration: none !important;
    transition: color 0.3s ease;
    font-size: 0.9rem;
    white-space: nowrap;
    display: block;
}

.footer-links a:link {
    color: white !important;
}

.footer-links a:visited {
    color: white !important;
}

.footer-links a:hover {
    color: var(--secondary-color) !important;
}

.footer-links a:active {
    color: white !important;
}

.footer-contact {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.footer-contact span {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.9rem;
    white-space: nowrap;
}

.footer-contact i {
    margin-right: 0.5rem;
    color: var(--secondary-color);
}

.footer-copyright {
    flex-shrink: 0;
}

.footer-copyright p {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.8rem;
    margin: 0;
    white-space: nowrap;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .logo-img {
        height: 35px;
        max-width: 100px;
    }
    
    .logo-text {
        font-size: 1.6rem;
    }
    
    .footer-logo-img {
        height: 30px;
        max-width: 80px;
    }
    
    .authors-grid {
        grid-template-columns: repeat(3, 1fr) !important;
        grid-template-rows: 1fr !important;
        gap: 1.5rem !important;
    }
    
    .authors-grid .author-card:nth-child(1),
    .authors-grid .author-card:nth-child(2),
    .authors-grid .author-card:nth-child(3) {
        grid-column: auto !important;
        grid-row: 1 !important;
        max-width: calc(33.333% - 0.5rem) !important;
        flex: 0 0 calc(33.333% - 0.5rem) !important;
        min-width: 250px !important;
    }
    
    .author-card {
        padding: 1.5rem;
        min-height: 380px;
    }
    
    .author-info h3 {
        font-size: 1.1rem;
    }
    
    .author-info p {
        font-size: 0.85rem;
    }
    
    .author-description {
        font-size: 0.8rem;
    }
    
    .author-title {
        font-size: 0.8rem;
    }
}

@media (max-width: 900px) {
    .logo-img {
        height: 32px;
        max-width: 90px;
    }
    
    .logo-text {
        font-size: 1.4rem;
    }
    
    .footer-logo-img {
        height: 28px;
        max-width: 70px;
    }
    
    .authors-grid {
        grid-template-columns: repeat(3, 1fr) !important;
        grid-template-rows: 1fr !important;
        gap: 1rem !important;
    }
    
    .authors-grid .author-card:nth-child(1),
    .authors-grid .author-card:nth-child(2),
    .authors-grid .author-card:nth-child(3) {
        grid-column: auto !important;
        grid-row: 1 !important;
        max-width: calc(33.333% - 0.33rem) !important;
        flex: 0 0 calc(33.333% - 0.33rem) !important;
        min-width: 220px !important;
    }
    
    .author-card {
        padding: 1.2rem;
        min-height: 360px;
    }
    
    .author-info h3 {
        font-size: 1rem;
    }
    
    .author-description {
        font-size: 0.75rem;
    }
    
    .author-title {
        font-size: 0.75rem;
    }
    
    .expertise-tag {
        font-size: 0.65rem;
        padding: 0.2rem 0.5rem;
    }
}

@media (max-width: 768px) {
    .logo-img {
        height: 55px;
        max-width: 140px;
    }
    
    .logo-text {
        font-size: 1.5rem;
    }
    
    .footer-logo-img {
        height: 35px;
        max-width: 90px;
    }
    
    .hamburger {
        display: flex;
    }
    
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 80px;
        flex-direction: column;
        background-color: white;
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: var(--shadow-lg);
        padding: 2rem 0;
        gap: 1rem;
    }
    
    .nav-menu.active {
        left: 0;
    }
    
    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 3rem;
    }
    
    .hero-text h1 {
        font-size: 2.5rem;
    }
    
    .subtitle {
        font-size: 1.5rem;
    }
    
    .subtitle-telugu {
        font-size: 1.2rem;
    }
    
    .hero-buttons {
        justify-content: center;
        flex-wrap: wrap;
    }
    
    .hero-trust {
        gap: 1rem;
        margin-top: 1.5rem;
    }
    
    .trust-item {
        font-size: 0.8rem;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    .authors-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .author-card {
        padding: 1.5rem;
    }
    
    .purchase-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 3rem;
    }
    
    .purchase-buttons {
        justify-content: center;
        width: 100%;
    }
    
    .purchase-buttons .btn {
        width: 100%;
        max-width: 100%;
    }
    
    .purchase-image {
        width: 100%;
        overflow: hidden;
    }
    
    .book-gallery {
        flex-direction: row;
        gap: 1rem;
        padding: 1.5rem;
        justify-content: space-around;
        flex-wrap: nowrap;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
    
    .book-image-container {
        flex: 0 0 auto;
        min-width: 120px;
    }
    
    .book-image {
        width: 100px;
        height: 130px;
    }
    
    .contact-content {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    
    .form-row {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .footer-content {
        flex-direction: column;
        text-align: center;
        gap: 1.5rem;
    }
    
    .footer-links {
        justify-content: center;
        gap: 1.5rem;
    }
    
    .footer-links ul {
        justify-content: center;
        gap: 1.5rem;
    }
    
    .footer-contact {
        justify-content: center;
        gap: 1rem;
    }
    
    .modal-content {
        width: 95%;
        margin: 10% auto;
    }
    
    .modal-body {
        padding: 2rem;
    }
    
    .payment-methods {
        flex-direction: column;
        align-items: center;
    }
    
    .modal-actions {
        flex-direction: column;
    }
}

@media (max-width: 480px) {
    .logo-img {
        height: 50px;
        max-width: 120px;
    }
    
    .logo-text {
        font-size: 1.4rem;
    }
    
    .footer-logo-img {
        height: 30px;
        max-width: 80px;
    }
    
    .hero-text h1 {
        font-size: 2.2rem;
    }
    
    .section-header h2 {
        font-size: 2.2rem;
    }
    
    .btn {
        padding: 12px 24px;
        font-size: 0.95rem;
    }
    
    .btn-large {
        padding: 15px 30px;
        font-size: 1rem;
    }
    
    .feature-card,
    .author-card,
    .contact-form {
        padding: 2rem;
    }
    
    .book-cover-real {
        width: 200px;
        height: 260px;
    }
    
    .book-pages {
        width: 190px;
        height: 250px;
    }
    
    .book-cover-image {
        width: 100%;
        height: 100%;
        object-fit: contain;
    }
    
    .amount {
        font-size: 3rem;
    }
}

@media (max-width: 320px) {
    .logo-img {
        height: 45px;
        max-width: 110px;
    }
    
    .logo-text {
        font-size: 1.3rem;
    }
    
    .footer-logo-img {
        height: 28px;
        max-width: 70px;
    }
    
    .book-gallery {
        flex-direction: column;
        gap: 1rem;
        padding: 1rem;
    }
    
    .book-image {
        width: 120px;
        height: 160px;
    }
}

/* Book Gallery Mobile Responsive Design */
@media (max-width: 768px) {
    .book-gallery {
        flex-direction: column;
        gap: 1.5rem;
        padding: 1.5rem;
        justify-content: center;
        align-items: center;
        flex-wrap: wrap;
        overflow: visible;
    }
    
    .book-image-container {
        flex: none;
        min-width: auto;
        width: 100%;
        max-width: 200px;
        text-align: center;
    }
    
    .book-image {
        width: 120px;
        height: 160px;
        margin: 0 auto;
    }
    
    .book-label {
        font-size: 0.8rem;
        padding: 0.4rem 0.8rem;
        margin-top: 0.8rem;
    }
}

@media (max-width: 480px) {
    .book-gallery {
        gap: 1rem;
        padding: 1rem;
        justify-content: center;
        align-items: center;
    }
    
    .book-image-container {
        min-width: auto;
        width: 100%;
        max-width: 180px;
        text-align: center;
    }
    
    .book-image {
        width: 100px;
        height: 130px;
        margin: 0 auto;
    }
    
    .book-label {
        font-size: 0.75rem;
        padding: 0.3rem 0.6rem;
        margin-top: 0.6rem;
    }
}

@media (max-width: 360px) {
    .book-gallery {
        gap: 0.8rem;
        padding: 0.8rem;
        justify-content: center;
        align-items: center;
    }
    
    .book-image-container {
        min-width: auto;
        width: 100%;
        max-width: 160px;
        text-align: center;
    }
    
    .book-image {
        width: 90px;
        height: 120px;
        margin: 0 auto;
    }
    
    .book-label {
        font-size: 0.7rem;
        padding: 0.25rem 0.5rem;
        margin-top: 0.5rem;
    }
    
    /* Author Images Responsive */
    .author-image {
        width: 70px;
        height: 70px;
    }
    
    .author-photo {
        border-radius: 50%;
    }
}

/* Fix for mobile book gallery overlapping */
@media (max-width: 768px) {
    .book-gallery {
        flex-direction: column !important;
        gap: 2rem !important;
        padding: 2rem 1rem !important;
        justify-content: center !important;
        align-items: center !important;
        flex-wrap: nowrap !important;
        overflow: visible !important;
        width: 100% !important;
    }
    
    .book-image-container {
        flex: none !important;
        min-width: auto !important;
        width: 100% !important;
        max-width: 250px !important;
        text-align: center !important;
        margin: 0 auto !important;
    }
    
    .book-image {
        width: 140px !important;
        height: 180px !important;
        margin: 0 auto !important;
        display: block !important;
    }
    
    .book-label {
        font-size: 0.85rem !important;
        padding: 0.5rem 1rem !important;
        margin-top: 1rem !important;
        display: block !important;
        width: 100% !important;
        text-align: center !important;
    }
}

@media (max-width: 480px) {
    .book-gallery {
        gap: 1.5rem !important;
        padding: 1.5rem 0.8rem !important;
        justify-content: center !important;
        align-items: center !important;
        flex-direction: column !important;
    }
    
    .book-image-container {
        width: 100% !important;
        max-width: 200px !important;
        text-align: center !important;
        margin: 0 auto !important;
    }
    
    .book-image {
        width: 120px !important;
        height: 160px !important;
        margin: 0 auto !important;
        display: block !important;
    }
    
    .book-label {
        font-size: 0.8rem !important;
        padding: 0.4rem 0.8rem !important;
        margin-top: 0.8rem !important;
        display: block !important;
        width: 100% !important;
        text-align: center !important;
    }
}

@media (max-width: 360px) {
    .book-gallery {
        gap: 1.2rem !important;
        padding: 1.2rem 0.5rem !important;
        justify-content: center !important;
        align-items: center !important;
        flex-direction: column !important;
    }
    
    .book-image-container {
        width: 100% !important;
        max-width: 180px !important;
        text-align: center !important;
        margin: 0 auto !important;
    }
    
    .book-image {
        width: 100px !important;
        height: 140px !important;
        margin: 0 auto !important;
        display: block !important;
    }
    
    .book-label {
        font-size: 0.75rem !important;
        padding: 0.3rem 0.6rem !important;
        margin-top: 0.6rem !important;
        display: block !important;
        width: 100% !important;
        text-align: center !important;
    }
}

/* Author Images Responsive Design */
@media (max-width: 768px) {
    .author-image {
        width: 90px;
        height: 90px;
        margin: 0 auto 0.8rem;
    }
    
    .author-photo {
        border-radius: 50%;
    }
}

@media (max-width: 480px) {
    .author-image {
        width: 80px;
        height: 80px;
        margin: 0 auto 0.6rem;
    }
    
    .author-photo {
        border-radius: 50%;
    }
}

@media (max-width: 360px) {
    .author-image {
        width: 70px;
        height: 70px;
        margin: 0 auto 0.5rem;
    }
    
    .author-photo {
        border-radius: 50%;
    }
}