/* ==========================================
   CSS Variables & Theme Setup
========================================== */
:root {
    /* Soft Calming Palette */
    --clr-white: #ffffff;
    --clr-beige: #7daf9c;
    --clr-lavender: #e6e6fa;
    --clr-soft-lavender: #f0e6ff;
    --clr-light-blue: #e0f2fe;
    --clr-pastel-green: #e8f5e9;

    /* Text Colors */
    --text-main: #333333;
    --text-muted: #666666;
    --text-light: #888888;

    /* Brand Colors */
    --brand-primary: #0f7173;
    --brand-secondary: #7bafb1;
    /* Assuming '7pafb1' was a typo for '7cafb1' */

    /* UI Elements */
    --bg-main: var(--clr-beige);
    --bg-alt: #f1eee6;
    --bg-card: rgba(255, 255, 255, 0.7);
    --bg-card-solid: #ffffff;
    --card-border: rgba(15, 80, 82, 0.08);
    --border-color: rgba(255, 255, 255, 0.4);
    --glass-shadow: 0 8px 32px 0 rgba(142, 124, 195, 0.15);

    /* Typography */
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;

    /* Transitions */
    --transition-fast: 0.2s ease;
    --transition-smooth: 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    --transition-slow: 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}


/* Dark Mode Palette */
[data-theme="dark"] {
    --clr-white: #121212;
    --clr-beige: #1a1a2e;
    --clr-lavender: #16213e;
    --clr-soft-lavender: #232946;
    --clr-light-blue: #0f3460;
    --clr-pastel-green: #1a3c34;

    --text-main: #f0f0f0;
    --text-muted: #b0b0b0;
    --text-light: #888888;

    --brand-primary: #0f7173;
    --brand-secondary: #7bafb1;

    --bg-main: #0f101a;
    --bg-alt: #151824;
    --bg-card: rgba(24, 26, 40, 0.72);
    --bg-card-solid: #1b2234;
    --card-border: rgba(255, 255, 255, 0.06);
    --border-color: rgba(255, 255, 255, 0.05);
    --glass-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.45);
}

/* ==========================================
   Reset & Global Styles
========================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-padding-top: 80px;
}

body {
    font-family: var(--font-body);
    background-color: var(--bg-main);
    background-image:
        radial-gradient(1200px 620px at 100% -8%, rgba(79, 157, 143, 0.12), transparent 60%),
        radial-gradient(1000px 520px at -12% 38%, rgba(15, 113, 115, 0.07), transparent 55%),
        radial-gradient(900px 520px at 60% 108%, rgba(79, 157, 143, 0.08), transparent 60%);
    background-attachment: fixed;
    background-repeat: no-repeat;
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
    transition: background-color var(--transition-smooth), color var(--transition-smooth);
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    font-weight: 600;
    line-height: 1.2;
    color: var(--text-main);
}

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

ul {
    list-style: none;
}

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

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

.section-padding {
    padding: 6rem 0;
}

.alt-bg {
    background-color: var(--bg-alt);
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}

.mt-4 {
    margin-top: 1.5rem;
}

/* ==========================================
   Typography & Utilities
========================================== */
.highlight {
    color: var(--brand-primary);
}

.highlight-text {
    background: linear-gradient(135deg, var(--brand-primary), var(--brand-secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
    text-align: center;
}

.section-subtitle {
    text-align: center;
    color: var(--text-muted);
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto 3rem;
}

.title-underline {
    height: 4px;
    width: 60px;
    background: linear-gradient(90deg, var(--brand-primary), transparent);
    margin: 0 auto 3rem;
    border-radius: 2px;
}

/* Glassmorphism Classes */
.glass-card {
    background: var(--bg-card-solid);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--border-color);
    border-radius: 24px;
    padding: 2.5rem;
    box-shadow: var(--glass-shadow);
    transition: transform var(--transition-smooth), box-shadow var(--transition-smooth);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.8rem;
    padding: 0.8rem 1.8rem;
    border-radius: 50px;
    font-family: var(--font-heading);
    font-weight: 500;
    font-size: 1rem;
    cursor: pointer;
    transition: all var(--transition-fast);
    border: none;
    outline: none;
}

.btn-primary {
    background: linear-gradient(135deg, var(--brand-primary), var(--brand-secondary));
    color: white;
    box-shadow: 0 4px 15px rgba(15, 80, 82, 0.3);
}

.btn-primary:hover {
    box-shadow: 0 6px 20px rgba(15, 80, 82, 0.5);
    transform: translateY(-2px);
    color: white;
}

.btn-secondary {
    background: var(--btn-secondary-bg);
    color: var(--brand-primary);
    border: 1.5px solid var(--btn-secondary-border);
    backdrop-filter: blur(5px);
}

.btn-secondary:hover {
    border-color: var(--brand-primary);
    color: var(--brand-primary);
    background: var(--btn-secondary-hover);
    transform: translateY(-2px);
}

.btn-large {
    padding: 1rem 2.5rem;
    font-size: 1.1rem;
}

/* ==========================================
   Background 3D Shapes (Blobs)
========================================== */
.bg-shape {
    position: fixed;
    border-radius: 50%;
    filter: blur(60px);
    z-index: -1;
    opacity: 0;
    animation: float 15s ease-in-out infinite;
}

.shape-1 {
    width: 400px;
    height: 400px;
    background: var(--clr-soft-lavender);
    top: -10%;
    left: -10%;
    animation-delay: 0s;
}

.shape-2 {
    width: 300px;
    height: 300px;
    background: var(--clr-light-blue);
    bottom: 20%;
    right: -5%;
    animation-duration: 18s;
    animation-delay: -5s;
}

.shape-3 {
    width: 200px;
    height: 200px;
    background: var(--clr-pastel-green);
    top: 40%;
    left: 40%;
    animation-duration: 22s;
    animation-delay: -10s;
}

@keyframes float {

    0%,
    100% {
        transform: translate(0, 0) scale(1);
    }

    33% {
        transform: translate(30px, -50px) scale(1.1);
    }

    66% {
        transform: translate(-20px, 20px) scale(0.9);
    }
}

@keyframes float-small {

    0%,
    100% {
        transform: translate(0, 0) scale(1);
    }

    25% {
        transform: translate(4px, -4px) scale(1.01);
    }

    50% {
        transform: translate(-3px, 3px) scale(0.99);
    }

    75% {
        transform: translate(2px, -2px) scale(1.0);
    }
}

/* ==========================================
   Header & Navigation
========================================== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    transition: all var(--transition-smooth);
    padding: 1.5rem 0;
}

.header.scrolled {
    background: var(--bg-card);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    padding: 1rem 0;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    border-bottom: 1px solid var(--border-color);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    font-weight: 700;
    margin-right: 0.75rem;
    padding: 0 0.25rem;
}

.nav-menu {
    display: flex;
    align-items: center;
    flex: 1;
    justify-content: flex-end;
}

.nav-controls {
    display: flex;
    align-items: center;
    margin-left: 1rem;
}

.nav-list {
    display: flex;
    gap: 2rem;
    align-items: center;
    width: auto;
    justify-content: flex-end;
}

.nav-link {
    font-family: var(--font-heading);
    font-weight: 500;
    position: relative;
    padding: 0.5rem 0;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--brand-primary);
    transition: width var(--transition-fast);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.btn-nav {
    background: var(--brand-primary);
    color: white !important;
    padding: 0.6rem 1.2rem;
    border-radius: 50px;
}

.nav-list .btn-nav {
    margin-left: 0;
    margin-right: 0;
}

.btn-nav::after {
    display: none;
}

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

.footer-book-link {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    padding: 0.65rem 1rem;
    margin-top: 0.5rem;
    border-radius: 50px;
    text-align: center;
}


.theme-toggle,
.mobile-toggle {
    background: transparent;
    border: none;
    font-size: 1.2rem;
    color: var(--text-main);
    cursor: pointer;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background var(--transition-fast);
}

.theme-toggle:hover {
    background: rgba(15, 80, 82, 0.1);
}

.mobile-toggle {
    display: none;
}

/* ==========================================
   Home Hero Section
========================================== */
.hero-section {
    min-height: auto;
    display: flex;
    align-items: center;
    padding-top: 9.5rem;
    padding-bottom: 5rem;
}

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

.hero-subtitle {
    font-size: 1.2rem;
    color: var(--brand-primary);
    margin-bottom: 1rem;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.hero-title {
    font-size: 4rem;
    margin-bottom: 1.5rem;
}

.hero-desc {
    font-size: 1.1rem;
    color: var(--text-muted);
    margin-bottom: 2.5rem;
    max-width: 90%;
}

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

.hero-image-wrapper {
    position: relative;
    perspective: 1000px;
    max-width: 420px;
    width: 100%;
    margin: 0 auto;
}

.hero-image {
    width: 100%;
    aspect-ratio: 4/5;
    background: var(--bg-card);
    backdrop-filter: blur(10px);
    border-radius: 30px;
    border: 1px solid var(--border-color);
    box-shadow: var(--glass-shadow);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    transform-style: preserve-3d;
}

.hero-image img.hero-photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transform: none;
    display: block;
}

.image-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    color: var(--text-light);
    gap: 1rem;
}

.image-placeholder i {
    font-size: 3rem;
    color: var(--brand-primary);
    opacity: 0.5;
}

.floating-badge {
    position: absolute;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(15px);
    padding: 0.85rem 1.1rem;
    border-radius: 18px;
    border: 1px solid rgba(255, 255, 255, 0.7);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-weight: 500;
    transform: translateZ(20px);
    animation: float-small 8s ease-in-out infinite;
    z-index: 2;
    color: var(--brand-primary);
}

.floating-badge i {
    color: var(--brand-primary);
    font-size: 1.1rem;
}

.badge-1 {
    top: 1.2rem;
    left: 1.2rem;
    animation-delay: -1.5s;
}

.badge-2 {
    bottom: 1.2rem;
    right: 1.2rem;
    animation-delay: -3.5s;
}

/* ==========================================
   About Section
========================================== */
.about-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
    max-width: 900px;
    margin: 0 auto;
}

.card-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--clr-soft-lavender), var(--clr-light-blue));
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    margin-bottom: 1.5rem;
}

.card-icon img.icon-photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
}

.about-card h3 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
}

.about-card p {
    color: var(--text-muted);
    margin-bottom: 1rem;
}

.modality-list {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.8rem;
    margin-top: 1rem;
}

.modality-list li {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    color: var(--text-muted);
}

.modality-list i {
    color: var(--brand-primary);
    font-size: 0.9rem;
    background: rgba(15, 80, 82, 0.1);
    padding: 5px;
    border-radius: 50%;
}

/* ==========================================
   Additional Experience
========================================== */
.experience-card {
    display: grid;
    grid-template-columns: 3fr 2fr;
    gap: 3rem;
    align-items: center;
}

.exp-text {
    font-size: 1.1rem;
    color: var(--text-muted);
    margin-bottom: 2rem;
}

.exp-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.exp-tag {
    background: var(--bg-main);
    border: 1px solid var(--border-color);
    padding: 0.6rem 1.2rem;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: all var(--transition-fast);
}

.exp-tag:hover {
    background: var(--brand-primary);
    color: white;
    transform: translateY(-2px);
}

.exp-illustration {
    position: relative;
    height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.abstract-shape {
    position: absolute;
    width: 250px;
    height: 250px;
    background: linear-gradient(135deg, var(--clr-soft-lavender), var(--clr-pastel-green));
    border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%;
    animation: morph 8s ease-in-out infinite;
    z-index: 1;
}

.large-icon {
    font-size: 5rem;
    color: var(--brand-primary);
    z-index: 2;
}

@keyframes morph {
    0% {
        border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%;
    }

    50% {
        border-radius: 30% 60% 70% 40% / 50% 60% 30% 60%;
    }

    100% {
        border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%;
    }
}

/* ==========================================
   Blogs Section
========================================== */
.blog-controls {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-bottom: 3rem;
    align-items: center;
}

.search-bar {
    position: relative;
    width: 100%;
    max-width: 500px;
}

.search-bar i {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-light);
}

.search-bar input {
    width: 100%;
    padding: 1rem 1rem 1rem 3rem;
    border-radius: 50px;
    border: 1px solid var(--border-color);
    background: var(--bg-card);
    backdrop-filter: blur(10px);
    color: var(--text-main);
    font-family: var(--font-body);
    font-size: 1rem;
    outline: none;
    transition: all var(--transition-fast);
}

.search-bar input:focus {
    border-color: var(--brand-primary);
    box-shadow: 0 0 0 3px rgba(15, 80, 82, 0.2);
}

.category-filters {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    justify-content: center;
}

.filter-btn {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    padding: 0.5rem 1.5rem;
    border-radius: 50px;
    cursor: pointer;
    font-family: var(--font-heading);
    color: var(--text-main);
    transition: all var(--transition-fast);
}

.filter-btn:hover,
.filter-btn.active {
    background: var(--brand-primary);
    color: white;
    border-color: var(--brand-primary);
}

.blogs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 360px));
    gap: 2.5rem;
    justify-content: flex-start;
    max-width: 1160px;
    margin: 0 auto;
}

.blog-card {
    background: var(--bg-card);
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid var(--border-color);
    box-shadow: var(--glass-shadow);
    transition: transform var(--transition-smooth), box-shadow var(--transition-smooth);
    display: flex;
    flex-direction: column;
    height: 100%;
}

.blog-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(15, 80, 82, 0.2);
}

.blog-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-bottom: 1px solid var(--border-color);
}

.blog-content {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.blog-meta {
    display: flex;
    justify-content: space-between;
    font-size: 0.85rem;
    color: var(--brand-primary);
    margin-bottom: 1rem;
    font-weight: 500;
}

.blog-title {
    font-size: 1.3rem;
    margin-bottom: 1rem;
    line-height: 1.4;
}

.blog-excerpt {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
    flex-grow: 1;
}

.read-more {
    color: var(--brand-primary);
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-family: var(--font-heading);
}

.read-more:hover {
    color: var(--brand-secondary);
}

/* ==========================================
   Book a Session Section
========================================== */
.book-section {
    text-align: center;
}

/* Premium teal feature band (overrides .alt-bg for this section) */
.book-section.alt-bg {
    position: relative;
    background-color: var(--bg-alt);
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}

.booking-card {
    max-width: 800px;
    margin: 0 auto;
    padding: 4rem 2rem;
    position: relative;
    overflow: hidden;
    background: var(--bg-card);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--border-color);
    box-shadow: var(--glass-shadow);
}

/* Removed .booking-card::before to remove purple gradient corner */

.booking-content {
    position: relative;
    z-index: 1;
}

.booking-icon-wrapper {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--brand-primary), var(--brand-secondary));
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    margin: 0 auto 1.5rem;
    box-shadow: 0 10px 20px rgba(15, 80, 82, 0.3);
}

.booking-title {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.booking-desc {
    font-size: 1.1rem;
    color: var(--text-muted);
    margin-bottom: 2.5rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* Booking actions: two buttons side-by-side on desktop, stacked on mobile */
.booking-actions {
    display: flex;
    gap: 1.25rem;
    justify-content: center;
    align-items: stretch;
    max-width: 600px;
    margin: 1.5rem auto 0;
}

.booking-actions .btn {
    flex: 1 1 0;
    text-align: center;
    gap: 1rem;
}

@media (max-width: 768px) {
    .booking-actions {
        flex-direction: column;
        gap: 0.75rem;
        align-items: stretch;
        width: 100%;
        margin: 1rem 0 0;
    }

    .booking-actions .btn {
        width: 100%;
        white-space: nowrap;
        font-size: 0.85rem;
        padding: 0.8rem 1rem;
    }
}

.pulse-animation {
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(15, 80, 82, 0.4);
    }

    70% {
        box-shadow: 0 0 0 15px rgba(15, 80, 82, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(15, 80, 82, 0);
    }
}

.booking-note {
    margin-top: 1.5rem;
    font-size: 0.9rem;
    color: var(--text-light);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

/* ==========================================
   Contact Section
========================================== */
.contact-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(300px, 1fr));
    grid-template-rows: auto auto;
    gap: 2.5rem;
    max-width: 1100px;
    margin: 0 auto;
    align-items: stretch;
    justify-content: center;
    justify-items: stretch;
}

.contact-card {
    text-align: center;
    padding: 3rem 2.5rem;
    /* increase horizontal padding so logo/icon doesn't touch heading */
}

/* Ensure contact cards align their action buttons on the same axis */
.contact-card {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 360px;
    height: 100%;
    width: 100%;
    box-sizing: border-box;
    align-items: center;
}

/* Align action buttons to the same bottom axis on desktop */
.contact-card .mt-4 {
    display: flex;
    gap: 1rem;
    justify-content: center;
    align-items: center;
    margin-top: auto;
}

.contact-icon {
    width: 56px;
    height: 56px;
    background: linear-gradient(135deg, var(--brand-primary), var(--brand-secondary));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    color: white;
    margin: 0 auto 1.5rem;
    box-shadow: 0 10px 20px rgba(15, 80, 82, 0.3);
}

/* Force icons to a fixed vertical position on larger screens so both cards align */
@media (min-width: 769px) {
    .contact-card {
        position: relative;
        padding-top: 4.25rem;
    }

    .contact-icon {
        position: absolute;
        top: 1.25rem;
        left: 50%;
        transform: translateX(-50%);
        margin: 0;
    }
}

.contact-card h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    margin-top: 1rem;
    /* ensure heading doesn't touch the icon above */
}

.contact-card p {
    color: var(--text-muted);
    margin-bottom: 1.5rem;
}

.contact-text {
    font-size: 1.2rem;
    font-weight: 500;
    color: var(--brand-primary);
    font-family: var(--font-heading);
    display: block;
}

.contact-text {
    margin: 0.4rem 0;
}

.contact-text:hover {
    color: var(--brand-secondary);
}

/* Contact details inline row */
.contact-details {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    margin-bottom: 1rem;
}

.contact-details .contact-text {
    display: inline-block;
    white-space: nowrap;
}

@media (min-width: 769px) {
    .contact-card {
        position: relative;
        padding-top: 5rem;
    }

    .contact-details .contact-text {
        white-space: normal;
    }
}

/* Contact disclaimer under contact cards */
.contact-disclaimer {
    max-width: 900px;
    margin: 1rem auto 0;
    color: var(--text-muted);
    text-align: center;
    font-size: 0.95rem;
    line-height: 1.5;
    padding: 0 1rem;
}

/* When disclaimer is inside the contact grid, span both columns and center */
.contact-grid>.contact-disclaimer {
    grid-column: 1 / -1;
    justify-self: center;
}

@media (max-width: 768px) {
    .contact-disclaimer {
        font-size: 0.9rem;
        margin-top: 1.25rem;
    }
}

/* ==========================================
   Footer
========================================== */
.contact-section,
.section-padding.contact-section {
    padding-bottom: 1.5rem;
    /* tight gap between disclaimer and footer */
}

.footer {
    background-color: var(--bg-alt);
    color: var(--text-main);
    border-top: none;
    padding: 4.5rem 0 1.75rem;
}

.footer .logo-text,
.footer-brand .logo {
    color: var(--text-main);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 3rem;
    margin-bottom: 2rem;
}

.footer-brand .logo {
    display: inline-block;
    margin-bottom: 1rem;
}

.footer-desc {
    color: var(--text-on-dark-muted);
    max-width: 300px;
}

.footer-links h3,
.footer-social h3 {
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
    color: var(--text-main);
}

.footer-links {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.footer-links ul {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
    align-items: center;
    padding: 0;
}

.footer-links a {
    color: var(--text-main);
    text-align: center;
    transition: color var(--transition-fast);
}

.footer-links a:hover {
    color: var(--brand-primary);
}

.footer-book-link {
    background: #ffffff;
    color: var(--brand-primary) !important;
    padding: 0.7rem 1rem;
    border-radius: 50px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: fit-content;
    font-weight: 600;
    transition: background var(--transition-fast), transform var(--transition-fast), box-shadow var(--transition-fast);
    margin: 0.25rem auto 0;
}

.footer-book-link:hover {
    background: #ffffff;
    color: var(--brand-deep) !important;
    transform: translateY(-2px);
    box-shadow: 0 10px 24px -8px rgba(0, 0, 0, 0.35);
}

.footer-book-link::after {
    display: none;
}

.footer-links li:last-child .footer-book-link {
    margin-top: 0.5rem;
}

.social-icons {
    display: flex;
    gap: 1rem;
}

.social-icons a {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: rgba(15, 80, 82, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--brand-primary);
    border: 2px solid rgba(15, 80, 82, 0.25);
    box-shadow: 0 2px 8px rgba(15, 80, 82, 0.10);
    transition: all var(--transition-fast);
}

/* Dark mode: revert to subtle styling (nighttime is already good) */
[data-theme="dark"] .social-icons a {
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: none;
}

@keyframes bounce-icon {

    0%,
    100% {
        transform: translateY(0) scale(1);
    }

    30% {
        transform: translateY(-10px) scale(1.1);
    }

    50% {
        transform: translateY(3px) scale(0.95);
    }

    70% {
        transform: translateY(-4px) scale(1.05);
    }

    85% {
        transform: translateY(1px) scale(0.98);
    }
}

.social-icons a:hover {
    background: #ffffff;
    color: var(--brand-primary);
    border-color: #ffffff;
    animation: bounce-icon 0.6s ease-in-out forwards;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid var(--border-color);
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* ==========================================
   Animations & 3D Effects
========================================== */
.reveal-up {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity var(--transition-slow), transform var(--transition-slow);
    will-change: opacity, transform;
}

.reveal-left {
    opacity: 0;
    transform: translateX(-40px);
    transition: opacity var(--transition-slow), transform var(--transition-slow);
    will-change: opacity, transform;
}

.reveal-right {
    opacity: 0;
    transform: translateX(40px);
    transition: opacity var(--transition-slow), transform var(--transition-slow);
    will-change: opacity, transform;
}

.reveal-up.active,
.reveal-left.active,
.reveal-right.active {
    opacity: 1;
    transform: translate(0);
}

.delay-1 {
    transition-delay: 0.2s;
}

/* 3D Card Hover */
/* 3D Card Hover — removed to disable tilt animations */

/* ==========================================
   Responsive Design
========================================== */
@media (max-width: 992px) {
    .hero-title {
        font-size: 3rem;
    }

    .hero-container {
        gap: 2rem;
    }

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

    .experience-card {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .exp-tags {
        justify-content: center;
    }

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

/* Tablet & below: switch nav to slide-in drawer (prevents cramped/wrapping nav) */
@media (max-width: 991px) {
    .nav-menu {
        position: fixed;
        top: 0;
        right: -145px;
        width: 125px;
        height: 100vh;
        height: 100dvh;
        background: var(--bg-card-solid);
        flex-direction: column;
        justify-content: flex-start;
        align-items: center;
        transition: right var(--transition-smooth);
        padding: 5.5rem 0.5rem 2rem;
        overflow-y: auto;
        box-shadow: -12px 0 44px rgba(15, 80, 82, 0.18);
        border-left: 1px solid var(--border-color);
        z-index: 2000;
    }

    .nav-menu.active {
        right: 0;
    }

    .nav-controls {
        margin-left: 0;
    }

    .nav-list {
        width: 100%;
        flex-direction: column;
        gap: 0.35rem;
        align-items: center;
    }

    .nav-list .nav-link {
        width: auto;
        text-align: center;
        padding: 0.6rem 0.5rem;
        font-size: 0.85rem;
        border-radius: 12px;
        white-space: nowrap;
        transition: background var(--transition-fast), color var(--transition-fast);
    }

    .nav-list .nav-link::after {
        display: none;
    }

    .nav-list .nav-link:hover,
    .nav-list .nav-link.active {
        background: rgba(15, 113, 115, 0.08);
        color: var(--brand-primary);
    }

    .nav-list .btn-nav {
        width: auto;
        text-align: center;
        justify-content: center;
        padding: 0.6rem 0.75rem;
        font-size: 0.8rem;
        margin: 0.5rem 0 0;
        color: #ffffff !important;
    }

    .nav-list .btn-nav:hover {
        background: var(--brand-secondary);
    }

    .mobile-toggle {
        display: flex;
        z-index: 1001;
    }

    .mobile-toggle i {
        font-size: 1.25rem;
    }
}

@media (max-width: 768px) {
    .container {
        padding: 0 1rem;
    }

    .logo {
        font-size: 1.1rem;
    }

    .header {
        padding: 1rem 0;
    }

    /* Hero Section */
    .hero-section {
        min-height: auto;
        padding-top: 100px;
        padding-bottom: 2rem;
    }

    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 2rem;
    }

    .hero-subtitle {
        font-size: 0.8rem;
        margin-bottom: 0.5rem;
        letter-spacing: 0.5px;
        text-transform: uppercase;
    }

    .hero-title {
        font-size: 1.6rem;
        margin-bottom: 1rem;
        line-height: 1.3;
        font-weight: 600;
    }

    .hero-desc {
        font-size: 0.9rem;
        color: var(--text-muted);
        margin-bottom: 1.5rem;
        line-height: 1.5;
    }

    .hero-actions {
        display: flex;
        flex-direction: column;
        gap: 0.8rem;
        align-items: stretch;
    }

    .hero-image-wrapper {
        max-width: 100%;
        margin: 0 auto;
        order: -1;
    }

    .hero-image {
        aspect-ratio: 4/5;
    }

    .floating-badge {
        display: flex;
        font-size: 0.9rem;
        padding: 0.7rem 0.95rem;
        gap: 0.5rem;
    }

    .btn {
        padding: 0.7rem 1.5rem;
        font-size: 0.9rem;
        width: auto;
    }

    .btn-large {
        padding: 0.7rem 1.5rem;
    }

    /* About Section */
    .about-grid {
        grid-template-columns: 1fr;
    }

    .section-padding {
        padding: 3rem 0;
    }

    .section-title {
        font-size: 1.6rem;
        margin-bottom: 1rem;
    }

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

    .title-underline {
        width: 40px;
        margin: 0 auto 2rem;
    }

    /* Blogs Section */
    .blogs-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .search-bar {
        max-width: 100%;
    }

    .category-filters {
        gap: 0.5rem;
    }

    .filter-btn {
        padding: 0.4rem 1rem;
        font-size: 0.85rem;
    }

    .blog-card {
        flex-direction: column;
    }

    .blog-image {
        height: auto;
        aspect-ratio: 4 / 3;
    }

    .blog-content {
        padding: 1.2rem;
    }

    .blog-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }

    .blog-title {
        font-size: 1.2rem;
    }

    .blog-excerpt {
        font-size: 0.95rem;
        margin-bottom: 1rem;
    }

    .read-more {
        align-self: flex-start;
    }

    /* Contact Section */
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        max-width: 100%;
        padding: 0;
    }

    .contact-card {
        min-height: auto;
        padding: 1.5rem;
    }

    .contact-icon {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
    }

    .contact-card h3 {
        font-size: 1.3rem;
        margin-bottom: 0.75rem;
    }

    .contact-card p {
        font-size: 0.9rem;
    }

    .contact-text {
        font-size: 1rem;
        margin: 0.4rem 0;
    }

    .contact-card .mt-4 {
        gap: 0.5rem;
    }

    .contact-card .btn {
        width: 100%;
        padding: 0.65rem 1rem;
        font-size: 0.85rem;
    }

    /* Footer */
    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 2rem;
    }

    .social-icons {
        justify-content: center;
    }

    .footer-desc {
        max-width: 100%;
    }

    /* Experience Section */
    .experience-card {
        grid-template-columns: 1fr;
    }

    .exp-tags {
        justify-content: center;
    }
}

/* Mobile-specific contact card adjustments */
@media (max-width: 768px) {
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 1.25rem;
        max-width: 640px;
        padding: 0 1rem;
    }

    .contact-card {
        min-height: auto;
        padding: 2rem 1.25rem;
    }

    .contact-card .mt-4 {
        display: flex;
        gap: 0.75rem;
        flex-direction: column;
        align-items: center;
        margin-top: auto;
    }

    .contact-card .btn {
        width: 100%;
        padding: 0.9rem 1rem;
        font-size: 0.98rem;
    }

    .contact-text {
        font-size: 1rem;
        margin: 0.25rem 0;
    }
}

/* touch-device overrides removed as 3D behavior is disabled globally */

/* ==========================================
   Blogs Section
========================================== */
.blogs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.blog-card {
    background: var(--bg-card);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--glass-shadow);
    border: 1px solid var(--card-border);
    transition: transform var(--transition-fast);
    display: flex;
    flex-direction: column;
    height: 100%;
}

.blog-card:hover {
    transform: translateY(-5px);
}

.blog-image {
    width: 100%;
    height: 220px;
    object-fit: cover;
}

.blog-content {
    padding: 1.5rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.blog-meta {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 0.75rem;
    display: flex;
    justify-content: space-between;
}

.blog-title {
    font-size: 1.25rem;
    margin-bottom: 1rem;
    color: var(--text-main);
    line-height: 1.4;
}

.blog-excerpt {
    font-size: 0.95rem;
    color: var(--text-muted);
    margin-bottom: 1.5rem;
    flex: 1;
}

.read-more {
    font-weight: 600;
    color: var(--brand-primary);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: auto;
}

.read-more:hover {
    color: var(--brand-secondary);
}

@media (max-width: 768px) {
    .blogs-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
}