/**
 * DESIGN SYSTEM & MODERN ARCHITECTURE
 * Dr. Nilesh Narayan - Academic, Author, Global Educator & Director
 * Premium Editorial & Academic Design System
 */

:root {
    /* Color Palette - Deep Academic Navy, Gold / Warm Bronze, Pure White, Slate */
    --primary: #0f1e36;
    --primary-light: #1a2f52;
    --primary-dark: #091222;
    
    --accent: #c89b3c;
    --accent-hover: #b3882e;
    --accent-light: #f9f4ea;
    --accent-glow: rgba(200, 155, 60, 0.25);

    --emerald: #0d9488;
    --emerald-light: #f0fdfa;

    --bg-main: #f8fafc;
    --bg-surface: #ffffff;
    --bg-surface-elevated: #ffffff;
    --bg-muted: #f1f5f9;
    --bg-dark: #0b1526;
    --bg-darker: #060c17;

    --text-primary: #0f172a;
    --text-secondary: #475569;
    --text-muted: #64748b;
    --text-inverse: #ffffff;
    --text-inverse-muted: #94a3b8;

    --border-subtle: #e2e8f0;
    --border-light: #edf2f7;
    --border-dark: #1e293b;

    /* Typography */
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    --font-serif: 'Playfair Display', Georgia, serif;
    --font-heading: 'Plus Jakarta Sans', var(--font-sans);

    /* Shadows */
    --shadow-xs: 0 1px 2px 0 rgba(15, 23, 42, 0.05);
    --shadow-sm: 0 2px 4px -1px rgba(15, 23, 42, 0.06), 0 1px 2px -1px rgba(15, 23, 42, 0.04);
    --shadow-md: 0 8px 20px -4px rgba(15, 23, 42, 0.08), 0 4px 8px -2px rgba(15, 23, 42, 0.04);
    --shadow-lg: 0 16px 32px -6px rgba(15, 23, 42, 0.1), 0 8px 16px -4px rgba(15, 23, 42, 0.06);
    --shadow-xl: 0 25px 50px -12px rgba(15, 23, 42, 0.18);
    --shadow-glow: 0 0 30px var(--accent-glow);

    /* Radii */
    --radius-sm: 6px;
    --radius-md: 12px;
    --radius-lg: 18px;
    --radius-xl: 24px;
    --radius-full: 9999px;

    /* Transitions */
    --transition-fast: 0.18s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-base: 0.28s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-smooth: 0.45s cubic-bezier(0.16, 1, 0.3, 1);

    /* Spacing & Sizes */
    --header-height: 80px;
    --container-max: 1240px;
}

/* Base Reset & Core Styles */
*, *::before, *::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--font-sans);
    color: var(--text-secondary);
    background-color: var(--bg-main);
    line-height: 1.65;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    color: var(--text-primary);
    font-weight: 700;
    line-height: 1.25;
    margin-top: 0;
    letter-spacing: -0.02em;
}

p {
    margin-top: 0;
    margin-bottom: 1rem;
}

a {
    color: var(--primary);
    text-decoration: none;
    transition: color var(--transition-fast);
}

a:hover {
    color: var(--accent);
}

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

/* Spinner / Minimal Preloader */
#spinner {
    position: fixed;
    inset: 0;
    background: var(--bg-dark);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 99999;
    opacity: 1;
    visibility: visible;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

#spinner.fade-out {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.spinner-circle {
    width: 48px;
    height: 48px;
    border: 3px solid rgba(200, 155, 60, 0.2);
    border-top-color: var(--accent);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

.spinner-text {
    margin-top: 14px;
    font-size: 0.82rem;
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--accent);
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* TOP ANNOUNCEMENT BAR */
.top-notice-bar {
    background: var(--bg-darker);
    color: var(--text-inverse-muted);
    font-size: 0.8rem;
    padding: 8px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.top-notice-bar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 20px;
}

.top-notice-bar a {
    color: var(--text-inverse-muted);
}
.top-notice-bar a:hover {
    color: var(--accent);
}

.top-notice-info {
    display: flex;
    gap: 20px;
    align-items: center;
}

.top-notice-info span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.top-notice-socials {
    display: flex;
    gap: 14px;
    align-items: center;
}

/* STICKY HEADER & NAVBAR */
.site-header {
    position: sticky;
    top: 0;
    left: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.94);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-bottom: 1px solid rgba(226, 232, 240, 0.8);
    z-index: 1000;
    transition: all var(--transition-base);
}

.site-header.scrolled {
    background: rgba(255, 255, 255, 0.98);
    box-shadow: var(--shadow-sm);
    border-bottom-color: var(--border-subtle);
}

.header-container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 20px;
    height: var(--header-height);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.brand-wrapper {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
}

.brand-crest {
    width: 44px;
    height: 44px;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    border: 2px solid var(--accent);
    color: var(--accent);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 1.15rem;
    font-family: var(--font-heading);
    box-shadow: 0 4px 10px rgba(15, 30, 54, 0.15);
}

.brand-avatar {
    width: 46px;
    height: 46px;
    border-radius: 50%;
    border: 2px solid var(--accent);
    object-fit: cover;
    object-position: top center;
    box-shadow: 0 4px 12px rgba(15, 30, 54, 0.18);
    flex-shrink: 0;
    transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}

.brand-wrapper:hover .brand-avatar {
    transform: scale(1.05);
    box-shadow: 0 6px 16px var(--accent-glow);
}

.brand-details {
    display: flex;
    flex-direction: column;
}

.brand-name {
    font-family: var(--font-heading);
    font-size: 1.18rem;
    font-weight: 800;
    color: var(--primary);
    letter-spacing: -0.01em;
    line-height: 1.2;
}

.brand-tagline {
    font-size: 0.72rem;
    color: var(--text-muted);
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

/* Nav Links */
.main-nav {
    display: flex;
    align-items: center;
    gap: 8px;
}

.nav-link-item {
    font-size: 0.92rem;
    font-weight: 600;
    color: var(--text-secondary);
    padding: 8px 14px;
    border-radius: var(--radius-sm);
    position: relative;
    transition: all var(--transition-fast);
}

.nav-link-item:hover,
.nav-link-item.active {
    color: var(--primary);
    background: rgba(15, 30, 54, 0.04);
}

.nav-link-item.active::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 14px;
    right: 14px;
    height: 2px;
    background: var(--accent);
    border-radius: 2px;
}

.header-cta-group {
    display: flex;
    align-items: center;
    gap: 12px;
}

/* Mobile Toggle */
.mobile-nav-toggle {
    display: none;
    background: transparent;
    border: 1px solid var(--border-subtle);
    padding: 8px 10px;
    border-radius: var(--radius-sm);
    color: var(--primary);
    font-size: 1.25rem;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.mobile-nav-toggle:hover {
    background: var(--bg-muted);
}

/* BUTTONS */
.btn-premium {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 11px 22px;
    font-size: 0.92rem;
    font-weight: 600;
    border-radius: var(--radius-md);
    transition: all var(--transition-fast);
    cursor: pointer;
    border: 1px solid transparent;
    text-decoration: none;
    line-height: 1.4;
}

.btn-premium.primary {
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    color: #ffffff;
    box-shadow: 0 4px 14px rgba(15, 30, 54, 0.2);
}

.btn-premium.primary:hover {
    background: linear-gradient(135deg, var(--primary-light), var(--primary));
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(15, 30, 54, 0.25);
    color: #ffffff;
}

.btn-premium.accent {
    background: linear-gradient(135deg, #c89b3c, #b3882e);
    color: #ffffff;
    box-shadow: 0 4px 14px rgba(200, 155, 60, 0.3);
}

.btn-premium.accent:hover {
    background: linear-gradient(135deg, #d8aa47, #c89b3c);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(200, 155, 60, 0.4);
    color: #ffffff;
}

.btn-premium.outline {
    background: transparent;
    color: var(--primary);
    border-color: var(--border-subtle);
}

.btn-premium.outline:hover {
    background: #ffffff;
    border-color: var(--primary);
    transform: translateY(-2px);
    box-shadow: var(--shadow-sm);
    color: var(--primary);
}

.btn-premium.sm {
    padding: 8px 16px;
    font-size: 0.85rem;
    border-radius: var(--radius-sm);
}

.btn-premium.lg {
    padding: 14px 28px;
    font-size: 1rem;
    border-radius: var(--radius-md);
}

/* SECTION STRUCTURE */
.section {
    padding: 90px 0;
    position: relative;
}

.section-alt {
    background-color: var(--bg-surface);
}

.section-dark {
    background-color: var(--bg-dark);
    color: var(--text-inverse-muted);
}

.section-dark h1,
.section-dark h2,
.section-dark h3,
.section-dark h4 {
    color: var(--text-inverse);
}

.section-header {
    text-align: center;
    max-width: 720px;
    margin: 0 auto 55px auto;
}

.section-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--accent);
    background: var(--accent-light);
    padding: 5px 14px;
    border-radius: var(--radius-full);
    margin-bottom: 14px;
}

.section-dark .section-eyebrow {
    background: rgba(200, 155, 60, 0.15);
    color: #e5b95c;
    border: 1px solid rgba(200, 155, 60, 0.3);
}

.section-title {
    font-size: 2.35rem;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 14px;
    letter-spacing: -0.025em;
}

.section-subtitle {
    font-size: 1.05rem;
    color: var(--text-muted);
    line-height: 1.6;
}

.section-dark .section-subtitle {
    color: var(--text-inverse-muted);
}

/* HERO SECTION */
.hero-section {
    padding: 60px 0 80px 0;
    background: linear-gradient(180deg, #f8fafc 0%, #edf2f7 100%);
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: -200px;
    right: -100px;
    width: 600px;
    height: 600px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(200, 155, 60, 0.08) 0%, rgba(200, 155, 60, 0) 70%);
    pointer-events: none;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: 48px;
    align-items: center;
}

.hero-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #ffffff;
    border: 1px solid var(--border-subtle);
    padding: 6px 14px;
    border-radius: var(--radius-full);
    font-size: 0.84rem;
    font-weight: 600;
    color: var(--primary);
    box-shadow: var(--shadow-xs);
    margin-bottom: 20px;
}

.hero-pill .dot {
    width: 8px;
    height: 8px;
    background: #10b981;
    border-radius: 50%;
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.2);
}

.hero-title {
    font-size: 3.2rem;
    font-weight: 800;
    color: var(--primary);
    line-height: 1.15;
    margin-bottom: 20px;
    letter-spacing: -0.03em;
}

.hero-title .highlight {
    background: linear-gradient(135deg, var(--accent) 0%, #d89614 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-lead {
    font-size: 1.15rem;
    color: var(--text-secondary);
    line-height: 1.65;
    margin-bottom: 28px;
    font-weight: 400;
}

.hero-quick-roles {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 32px;
}

.role-tag {
    background: #ffffff;
    border: 1px solid var(--border-subtle);
    padding: 6px 14px;
    border-radius: var(--radius-sm);
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--text-secondary);
    display: inline-flex;
    align-items: center;
    gap: 6px;
    box-shadow: var(--shadow-xs);
}

.role-tag i {
    color: var(--accent);
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-bottom: 36px;
}

.hero-contact-strip {
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
    padding-top: 24px;
    border-top: 1px solid var(--border-subtle);
}

.hero-contact-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.88rem;
    color: var(--text-muted);
}

.hero-contact-item i {
    color: var(--accent);
    font-size: 1rem;
}

/* Hero Visual Box */
.hero-visual-card {
    position: relative;
    max-width: 440px;
    margin: 0 auto;
}

.hero-img-frame {
    position: relative;
    border-radius: var(--radius-xl);
    overflow: hidden;
    background: #ffffff;
    padding: 10px;
    box-shadow: var(--shadow-xl);
    border: 1px solid rgba(226, 232, 240, 0.8);
}

.hero-img-frame img {
    border-radius: calc(var(--radius-xl) - 8px);
    width: 100%;
    height: 480px;
    object-fit: cover;
    object-position: top center;
    transition: transform var(--transition-smooth);
}

.hero-img-frame:hover img {
    transform: scale(1.02);
}

.hero-badge-float {
    position: absolute;
    bottom: -20px;
    left: -20px;
    background: #ffffff;
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    padding: 14px 18px;
    box-shadow: var(--shadow-lg);
    display: flex;
    align-items: center;
    gap: 14px;
    z-index: 2;
    animation: floatSlow 4s ease-in-out infinite;
}

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

.badge-icon {
    width: 44px;
    height: 44px;
    border-radius: var(--radius-md);
    background: var(--accent-light);
    color: var(--accent);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
}

.badge-info-title {
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--text-muted);
    letter-spacing: 0.05em;
}

.badge-info-val {
    font-size: 0.95rem;
    font-weight: 800;
    color: var(--primary);
}

/* STATS COUNTER STRIP */
.stats-strip {
    background: #ffffff;
    padding: 40px 0;
    border-bottom: 1px solid var(--border-subtle);
    border-top: 1px solid var(--border-subtle);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    text-align: center;
}

.stat-item {
    padding: 10px 20px;
    border-right: 1px solid var(--border-subtle);
}

.stat-item:last-child {
    border-right: none;
}

.stat-number-wrapper {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--primary);
    line-height: 1.1;
    margin-bottom: 6px;
    display: inline-flex;
    align-items: baseline;
    gap: 2px;
}

.stat-number-wrapper .stat-plus {
    color: var(--accent);
    font-size: 1.8rem;
}

.stat-label {
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* ABOUT SECTION */
.about-grid {
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    gap: 50px;
    align-items: start;
}

.about-card-sticky {
    background: #ffffff;
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-xl);
    padding: 30px;
    box-shadow: var(--shadow-md);
    position: sticky;
    top: 100px;
}

.about-avatar-wrapper {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    margin-bottom: 22px;
}

.about-avatar-wrapper img {
    width: 100%;
    height: 380px;
    object-fit: cover;
    object-position: top;
    border-radius: var(--radius-lg);
}

.about-quick-specs {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid var(--border-subtle);
}

.spec-line {
    display: flex;
    justify-content: space-between;
    font-size: 0.88rem;
    padding: 6px 0;
}

.spec-label {
    color: var(--text-muted);
    font-weight: 500;
}

.spec-value {
    color: var(--text-primary);
    font-weight: 600;
    text-align: right;
}

.about-social-links {
    display: flex;
    gap: 10px;
    margin-top: 20px;
    justify-content: center;
}

.social-circle-btn {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: var(--bg-muted);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    transition: all var(--transition-fast);
}

.social-circle-btn:hover {
    background: var(--primary);
    color: #ffffff;
    transform: translateY(-2px);
}

/* About Narrative */
.about-narrative-box {
    background: #ffffff;
    border-radius: var(--radius-xl);
    border: 1px solid var(--border-subtle);
    padding: 40px;
    box-shadow: var(--shadow-sm);
}

.about-bio-lead {
    font-size: 1.15rem;
    line-height: 1.7;
    color: var(--text-primary);
    margin-bottom: 24px;
    font-weight: 500;
}

.about-roles-group {
    margin-top: 30px;
}

.roles-group-title {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.roles-group-title i {
    color: var(--accent);
}

.leadership-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
}

.leadership-item {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    background: var(--bg-main);
    padding: 14px 18px;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-light);
    transition: all var(--transition-fast);
}

.leadership-item:hover {
    background: #ffffff;
    border-color: var(--accent);
    transform: translateX(4px);
    box-shadow: var(--shadow-xs);
}

.leadership-item i {
    color: var(--accent);
    margin-top: 4px;
    font-size: 0.95rem;
}

.leadership-item-text {
    font-size: 0.92rem;
    color: var(--text-primary);
    line-height: 1.5;
}

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

/* TIMELINE / WORK EXPERIENCE */
.timeline-container {
    max-width: 900px;
    margin: 0 auto;
    position: relative;
}

.timeline-container::before {
    content: '';
    position: absolute;
    left: 28px;
    top: 20px;
    bottom: 20px;
    width: 2px;
    background: linear-gradient(180deg, var(--accent) 0%, rgba(200, 155, 60, 0.2) 100%);
}

.timeline-card {
    position: relative;
    padding-left: 70px;
    margin-bottom: 32px;
}

.timeline-dot {
    position: absolute;
    left: 17px;
    top: 24px;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: #ffffff;
    border: 4px solid var(--accent);
    box-shadow: 0 0 0 4px rgba(200, 155, 60, 0.2);
    z-index: 2;
    transition: all var(--transition-fast);
}

.timeline-card:hover .timeline-dot {
    background: var(--accent);
    transform: scale(1.15);
}

.timeline-content-card {
    background: #ffffff;
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    padding: 24px 28px;
    box-shadow: var(--shadow-sm);
    transition: all var(--transition-base);
}

.timeline-content-card:hover {
    border-color: rgba(200, 155, 60, 0.4);
    box-shadow: var(--shadow-md);
    transform: translateY(-3px);
}

.timeline-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 10px;
}

.timeline-role {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--primary);
    margin: 0;
}

.timeline-badge {
    background: var(--accent-light);
    color: var(--accent-hover);
    font-weight: 700;
    font-size: 0.78rem;
    padding: 4px 10px;
    border-radius: var(--radius-full);
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.timeline-org {
    font-size: 0.98rem;
    font-weight: 600;
    color: var(--accent);
    margin-bottom: 8px;
}

.timeline-desc {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin: 0;
}

/* BOOKS / PUBLICATIONS */
.books-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 30px;
}

.book-card {
    background: #ffffff;
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    display: flex;
    flex-direction: column;
    transition: all var(--transition-base);
    height: 100%;
}

.book-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
    border-color: rgba(200, 155, 60, 0.4);
}

.book-cover-wrapper {
    background: linear-gradient(135deg, #0b1526 0%, #1e293b 100%);
    padding: 30px 24px;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    overflow: hidden;
    height: 280px;
}

.book-cover-wrapper::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 50% 30%, rgba(200, 155, 60, 0.15), transparent 70%);
}

.book-cover-img {
    height: 220px;
    width: auto;
    max-width: 160px;
    object-fit: cover;
    box-shadow: 0 14px 28px rgba(0, 0, 0, 0.35), 0 10px 10px rgba(0, 0, 0, 0.22);
    border-radius: 4px;
    transition: transform var(--transition-smooth);
}

.book-card:hover .book-cover-img {
    transform: scale(1.05) rotate(-1deg);
}

.book-store-badge {
    position: absolute;
    top: 14px;
    right: 14px;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #ffffff;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    padding: 4px 10px;
    border-radius: var(--radius-full);
}

.book-card-body {
    padding: 24px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.book-author-tag {
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--accent);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 6px;
}

.book-title {
    font-size: 1.22rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 12px;
    line-height: 1.35;
}

.book-synopsis {
    font-size: 0.88rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 20px;
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
    flex-grow: 1;
}

.book-footer-action {
    padding-top: 16px;
    border-top: 1px solid var(--border-subtle);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* FILTER TABS FOR AWARDS & CERTIFICATES */
.filter-tabs-wrapper {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 40px;
}

.filter-tab-btn {
    background: #ffffff;
    border: 1px solid var(--border-subtle);
    color: var(--text-secondary);
    font-weight: 600;
    font-size: 0.88rem;
    padding: 9px 20px;
    border-radius: var(--radius-full);
    cursor: pointer;
    transition: all var(--transition-fast);
}

.filter-tab-btn:hover {
    border-color: var(--primary);
    color: var(--primary);
}

.filter-tab-btn.active {
    background: var(--primary);
    color: #ffffff;
    border-color: var(--primary);
    box-shadow: 0 4px 12px rgba(15, 30, 54, 0.2);
}

/* AWARDS & RECOGNITION GALLERY */
.awards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
    gap: 24px;
}

.award-card {
    background: #ffffff;
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: all var(--transition-base);
    display: flex;
    flex-direction: column;
}

.award-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-color: rgba(200, 155, 60, 0.4);
}

.award-img-box {
    position: relative;
    height: 220px;
    background: var(--bg-muted);
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.award-img-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
    transition: transform var(--transition-smooth);
}

.award-card:hover .award-img-box img {
    transform: scale(1.06);
}

.award-zoom-overlay {
    position: absolute;
    inset: 0;
    background: rgba(15, 30, 54, 0.6);
    backdrop-filter: blur(3px);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity var(--transition-fast);
}

.award-card:hover .award-zoom-overlay {
    opacity: 1;
}

.zoom-icon-btn {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: #ffffff;
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    box-shadow: var(--shadow-md);
    transform: scale(0.85);
    transition: transform var(--transition-fast);
}

.award-card:hover .zoom-icon-btn {
    transform: scale(1);
}

.award-content {
    padding: 18px 20px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.award-tag {
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--accent);
    margin-bottom: 4px;
}

.award-title {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 6px;
    line-height: 1.35;
}

.award-org {
    font-size: 0.82rem;
    color: var(--text-muted);
    margin-bottom: 0;
}

/* CONTACT SECTION */
.contact-grid {
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    gap: 40px;
    align-items: start;
}

.contact-info-card {
    background: #ffffff;
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-xl);
    padding: 36px;
    box-shadow: var(--shadow-md);
}

.contact-info-title {
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--primary);
    margin-bottom: 12px;
}

.contact-info-desc {
    font-size: 0.92rem;
    color: var(--text-muted);
    margin-bottom: 28px;
    line-height: 1.6;
}

.contact-channel-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-bottom: 30px;
}

.contact-channel-item {
    display: flex;
    align-items: flex-start;
    gap: 16px;
}

.channel-icon {
    width: 44px;
    height: 44px;
    border-radius: var(--radius-md);
    background: var(--accent-light);
    color: var(--accent-hover);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.15rem;
    flex-shrink: 0;
}

.channel-content-title {
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--text-muted);
    letter-spacing: 0.05em;
    margin-bottom: 2px;
}

.channel-content-val {
    font-size: 0.96rem;
    font-weight: 600;
    color: var(--primary);
    line-height: 1.4;
}

.contact-form-card {
    background: #ffffff;
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-xl);
    padding: 36px;
    box-shadow: var(--shadow-md);
}

.form-group-floating {
    position: relative;
    margin-bottom: 20px;
}

.form-input-control {
    width: 100%;
    padding: 14px 16px;
    font-size: 0.92rem;
    font-family: var(--font-sans);
    color: var(--text-primary);
    background: var(--bg-main);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    outline: none;
    transition: all var(--transition-fast);
}

.form-input-control:focus {
    background: #ffffff;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px var(--accent-glow);
}

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

.form-label-custom {
    display: block;
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 6px;
}

/* Map wrapper */
.map-embed-wrapper {
    margin-top: 40px;
    border-radius: var(--radius-xl);
    overflow: hidden;
    border: 1px solid var(--border-subtle);
    box-shadow: var(--shadow-sm);
    height: 380px;
}

.map-embed-wrapper iframe {
    width: 100%;
    height: 100%;
    border: 0;
}

/* FOOTER */
.site-footer {
    background: var(--bg-dark);
    color: var(--text-inverse-muted);
    padding: 70px 0 30px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.4fr 0.8fr 0.8fr;
    gap: 40px;
    margin-bottom: 50px;
}

.footer-brand-title {
    font-size: 1.4rem;
    font-weight: 800;
    color: #ffffff;
    margin-bottom: 8px;
}

.footer-brand-desc {
    font-size: 0.9rem;
    color: var(--text-inverse-muted);
    line-height: 1.6;
    max-width: 400px;
    margin-bottom: 20px;
}

.footer-heading {
    font-size: 0.95rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #ffffff;
    margin-bottom: 20px;
}

.footer-nav-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-nav-list a {
    color: var(--text-inverse-muted);
    font-size: 0.9rem;
    transition: color var(--transition-fast);
}

.footer-nav-list a:hover {
    color: var(--accent);
    padding-left: 4px;
}

.footer-bottom-bar {
    padding-top: 24px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 14px;
    font-size: 0.84rem;
}

/* BACK TO TOP & QUICK ACTIONS */
.back-to-top {
    position: fixed;
    bottom: 28px;
    right: 28px;
    width: 46px;
    height: 46px;
    border-radius: 50%;
    background: var(--primary);
    color: #ffffff;
    border: 2px solid var(--accent);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    box-shadow: var(--shadow-lg);
    cursor: pointer;
    z-index: 99;
    opacity: 0;
    visibility: hidden;
    transform: translateY(12px);
    transition: all var(--transition-base);
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:hover {
    background: var(--accent);
    color: #ffffff;
    transform: translateY(-3px);
}

/* SCROLL REVEAL UTILITIES */
.reveal-on-scroll {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity 0.65s cubic-bezier(0.16, 1, 0.3, 1), transform 0.65s cubic-bezier(0.16, 1, 0.3, 1);
    will-change: opacity, transform;
}

.reveal-on-scroll.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* RESPONSIVE DESIGN - ALL DEVICES & BREAKPOINTS */

/* 1. Large Laptops & Desktops (1200px+) */
@media (min-width: 1200px) {
    .container {
        max-width: var(--container-max);
    }
}

/* 2. Tablets & iPads (769px to 1024px) */
@media (max-width: 1024px) {
    :root {
        --header-height: 72px;
    }

    .hero-grid {
        grid-template-columns: 1fr;
        gap: 40px;
        text-align: center;
    }

    .hero-pill {
        margin: 0 auto 16px auto;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .hero-lead {
        margin-left: auto;
        margin-right: auto;
        max-width: 640px;
    }

    .hero-quick-roles {
        justify-content: center;
    }

    .hero-actions {
        justify-content: center;
    }

    .hero-contact-strip {
        justify-content: center;
        gap: 16px 24px;
    }

    .hero-visual-card {
        max-width: 440px;
        margin: 0 auto;
    }

    .about-grid {
        grid-template-columns: 1fr;
        gap: 36px;
    }

    .about-card-sticky {
        position: static;
        max-width: 520px;
        margin: 0 auto;
    }

    .about-avatar-wrapper img {
        height: 340px;
    }

    .contact-grid {
        grid-template-columns: 1fr;
        gap: 36px;
    }

    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 36px;
    }

    .footer-brand {
        grid-column: 1 / -1;
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }

    .stat-item:nth-child(2) {
        border-right: none;
    }

    .books-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 24px;
    }

    .awards-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
}

/* 3. Small Tablets & Large Phones (577px to 768px) */
@media (max-width: 768px) {
    .top-notice-bar {
        display: none;
    }

    .site-header {
        height: auto;
    }

    .header-container {
        height: 68px;
        padding: 0 16px;
    }

    .brand-name {
        font-size: 1.05rem;
    }

    .brand-tagline {
        font-size: 0.65rem;
    }

    .brand-avatar {
        width: 40px;
        height: 40px;
    }

    .mobile-nav-toggle {
        display: block;
    }

    .main-nav {
        position: fixed;
        top: 68px;
        left: 0;
        width: 100%;
        max-height: calc(100vh - 68px);
        overflow-y: auto;
        background: #ffffff;
        flex-direction: column;
        padding: 20px 16px 28px 16px;
        gap: 10px;
        border-bottom: 1px solid var(--border-subtle);
        box-shadow: var(--shadow-xl);
        transform: translateY(-130%);
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
        z-index: 999;
    }

    .main-nav.open {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }

    .nav-link-item {
        width: 100%;
        text-align: left;
        padding: 12px 16px;
        font-size: 1rem;
        background: var(--bg-main);
        border: 1px solid var(--border-light);
        border-radius: var(--radius-md);
    }

    .nav-link-item.active {
        background: rgba(200, 155, 60, 0.1);
        border-color: var(--accent);
        color: var(--primary);
    }

    .nav-link-item.active::after {
        display: none;
    }

    .header-cta-group .btn-premium {
        display: none;
    }

    .hero-section {
        padding: 40px 0 60px 0;
    }

    .hero-title {
        font-size: 2.1rem;
        line-height: 1.2;
    }

    .hero-actions {
        flex-direction: column;
        width: 100%;
    }

    .hero-actions .btn-premium {
        width: 100%;
    }

    .hero-img-frame img {
        height: 380px;
    }

    .hero-badge-float {
        left: 50%;
        transform: translateX(-50%);
        bottom: -20px;
        width: 90%;
        justify-content: center;
        animation: none;
    }

    .section {
        padding: 55px 0;
    }

    .section-header {
        margin-bottom: 35px;
    }

    .section-title {
        font-size: 1.75rem;
    }

    .section-subtitle {
        font-size: 0.95rem;
    }

    .stats-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .stat-item {
        border-right: none;
        border-bottom: 1px solid var(--border-subtle);
        padding-bottom: 16px;
    }

    .stat-item:last-child {
        border-bottom: none;
        padding-bottom: 0;
    }

    .about-narrative-box {
        padding: 24px 18px;
    }

    .timeline-container::before {
        left: 14px;
    }

    .timeline-card {
        padding-left: 42px;
        margin-bottom: 24px;
    }

    .timeline-dot {
        left: 4px;
        top: 20px;
        width: 20px;
        height: 20px;
    }

    .timeline-content-card {
        padding: 18px 20px;
    }

    .books-grid {
        grid-template-columns: 1fr;
    }

    .awards-grid {
        grid-template-columns: 1fr;
    }

    .contact-info-card,
    .contact-form-card {
        padding: 24px 18px;
    }

    .map-embed-wrapper {
        height: 300px;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .footer-bottom-bar {
        flex-direction: column;
        text-align: center;
        gap: 10px;
    }

    .back-to-top {
        bottom: 20px;
        right: 20px;
        width: 42px;
        height: 42px;
    }
}

/* 4. Small Mobile Devices (<= 480px, iPhone SE, Galaxy, etc.) */
@media (max-width: 480px) {
    .hero-title {
        font-size: 1.75rem;
    }

    .hero-lead {
        font-size: 0.95rem;
    }

    .hero-pill {
        font-size: 0.75rem;
        padding: 4px 10px;
    }

    .hero-quick-roles {
        gap: 6px;
    }

    .role-tag {
        font-size: 0.74rem;
        padding: 4px 10px;
        width: 100%;
        justify-content: center;
    }

    .hero-contact-strip {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 10px;
    }

    .hero-img-frame img {
        height: 300px;
    }

    .hero-badge-float {
        padding: 8px 12px;
        gap: 10px;
    }

    .badge-icon {
        width: 36px;
        height: 36px;
        font-size: 1rem;
    }

    .badge-info-title {
        font-size: 0.7rem;
    }

    .badge-info-val {
        font-size: 0.82rem;
    }

    .section-title {
        font-size: 1.5rem;
    }

    .filter-tabs-wrapper {
        gap: 6px;
    }

    .filter-tab-btn {
        width: 100%;
        text-align: center;
        font-size: 0.82rem;
        padding: 8px 14px;
    }

    .book-cover-wrapper {
        height: 240px;
    }

    .book-cover-img {
        height: 180px;
    }

    .award-img-box {
        height: 200px;
    }
}

/* ACCESSIBILITY & PREFERS-REDUCED-MOTION */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }

    .reveal-on-scroll {
        opacity: 1 !important;
        transform: none !important;
    }
}
