* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary: #1a2332;
    --secondary: #4a5568;
    --accent: #8b9dc3;
    --soft-cream: #faf8f5;
    --warm-ivory: #f4f1eb;
    --sage: #9db4a6;
    --charcoal: #2d3748;
    --muted-gold: #c6a96b;
    --deep-navy: #1e2a3a;
    --text-primary: #1a2332;
    --text-secondary: #4a5568;
    --text-muted: #718096;
    --border-subtle: rgba(138, 157, 195, 0.15);
    --shadow-soft: 0 10px 40px rgba(26, 35, 50, 0.08);
    --shadow-medium: 0 15px 60px rgba(26, 35, 50, 0.12);
}

html,body{
    width: 100%;
    overflow-x: hidden;
}

body {
    font-family: 'Source Serif Pro', Georgia, serif;
    line-height: 1.7;
    color: var(--text-primary);
    background: linear-gradient(135deg, var(--soft-cream) 0%, var(--warm-ivory) 100%);
    overflow-x: hidden;
    font-weight: 400;
}

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

/* Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: 'Playfair Display', serif;
    font-weight: 400;
}

/* Navigation */
nav {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(250, 248, 245, 0.95);
    backdrop-filter: blur(20px);
    z-index: 1000;
    transition: all 0.4s ease;
    border-bottom: 1px solid var(--border-subtle);
}

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

.logo {
    font-family: 'Playfair Display', serif;
    font-size: 2rem;
    font-weight: 600;
    color: var(--primary);
    letter-spacing: -0.5px;
    font-style: italic;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 3rem;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-secondary);
    font-weight: 400;
    font-size: 0.95rem;
    letter-spacing: 0.3px;
    transition: all 0.3s ease;
    position: relative;
    text-transform: uppercase;
    font-size: 0.85rem;
}

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

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--muted-gold);
    transition: width 0.3s ease;
}

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

/* Hero Section */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, var(--soft-cream) 0%, var(--warm-ivory) 50%, #f8f6f1 100%);
}

.hero::before {
    content: '';
    position: absolute;
    top: -10%;
    right: -15%;
    width: 35%;
    height: 120%;
    background: linear-gradient(45deg, var(--accent), var(--sage));
    opacity: 0.06;
    transform: skewX(-12deg);
    border-radius: 20px;
}

.hero-content {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 5rem;
    align-items: center;
}

.hero-text h1 {
    font-size: 4.5rem;
    font-weight: 300;
    color: var(--primary);
    margin-bottom: 1.5rem;
    letter-spacing: -2px;
    line-height: 1.1;
}

.hero-text .subtitle {
    font-size: 1.4rem;
    color: var(--text-secondary);
    margin-bottom: 2.5rem;
    font-style: italic;
    opacity: 0.9;
    font-family: 'Playfair Display', serif;
}

.hero-text .description {
    font-size: 1.15rem;
    color: var(--text-secondary);
    margin-bottom: 3rem;
    line-height: 1.8;
    max-width: 90%;
}

.hero-cta {
    display: flex;
    gap: 1.5rem;
    align-items: center;
}

.cta-button {
    display: inline-block;
    padding: 1.2rem 2.8rem;
    background: var(--primary);
    color: white;
    text-decoration: none;
    border-radius: 50px;
    transition: all 0.4s ease;
    font-weight: 400;
    letter-spacing: 0.5px;
    box-shadow: var(--shadow-soft);
    text-transform: uppercase;
    font-size: 0.9rem;
}

.cta-button:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-medium);
    background: var(--charcoal);
}

.cta-secondary {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    padding: 1.2rem 0;
    border-bottom: 2px solid var(--muted-gold);
    transition: all 0.3s ease;
}

.cta-secondary:hover {
    color: var(--primary);
    border-color: var(--primary);
}

.hero-visual {
    position: relative;
    height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-photo {
    position: relative;
    width: 320px;
    height: 400px;
    margin: 0 auto 2rem;
}

.hero-photo-frame {
    width: 100%;
    height: 100%;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow-medium);
    position: relative;
    transform: rotate(-1deg);
    transition: all 0.4s ease;
}

.hero-photo-frame:hover {
    transform: rotate(0deg) scale(1.02);
    box-shadow: 0 20px 60px rgba(26, 35, 50, 0.15);
}

.hero-photo-frame::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, transparent 0%, rgba(26, 35, 50, 0.1) 100%);
    z-index: 2;
}

.hero-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.hero-card {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: var(--shadow-medium);
    transform: rotate(2deg);
    transition: transform 0.4s ease;
    max-width: 280px;
    position: absolute;
    bottom: -20px;
    right: -30px;
}

.hero-card:hover {
    transform: rotate(0deg) scale(1.05);
}

.hero-card-title {
    font-family: 'Playfair Display', serif;
    font-size: 1.2rem;
    color: var(--primary);
    margin-bottom: 0.8rem;
    font-style: italic;
    line-height: 1.3;
}

.hero-card-text {
    color: var(--text-secondary);
    font-size: 0.85rem;
    line-height: 1.5;
}

/* Sections */
.section {
    padding: 8rem 0;
    position: relative;
}

.section-title {
    font-family: 'Playfair Display', serif;
    font-size: 3rem;
    font-weight: 400;
    color: var(--primary);
    text-align: center;
    margin-bottom: 4rem;
    position: relative;
    font-style: italic;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: var(--muted-gold);
    border-radius: 2px;
}

.section-subtitle {
    text-align: center;
    font-size: 1.2rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: -2rem auto 4rem;
    line-height: 1.6;
}

/* Portfolio Grid */
.portfolio {
    background: white;
    box-shadow: inset 0 1px 0 var(--border-subtle);
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2.5rem;
    margin-top: 3rem;
}

.portfolio-item {
    background: var(--soft-cream);
    border-radius: 15px;
    overflow: hidden;
    transition: all 0.4s ease;
    box-shadow: var(--shadow-soft);
    cursor: pointer;
}

.portfolio-item:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-medium);
}

.portfolio-image {
    height: 250px;
    background: linear-gradient(135deg, var(--accent), var(--sage));
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.1rem;
    font-style: italic;
    position: relative;
    overflow: hidden;
}

.portfolio-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    top: 0;
    left: 0;
}

.portfolio-image span {
    position: relative;
    z-index: 2;
    background: rgba(0, 0, 0, 0.7);
    padding: 0.5rem 1rem;
    border-radius: 5px;
}

.portfolio-image::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.3);
    z-index: 1;
}

.portfolio-content {
    padding: 2rem;
}

.portfolio-category {
    font-size: 0.8rem;
    color: var(--muted-gold);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.portfolio-title {
    font-family: 'Playfair Display', serif;
    font-size: 1.4rem;
    color: var(--primary);
    margin-bottom: 1rem;
    line-height: 1.3;
}

.portfolio-excerpt {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.portfolio-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.85rem;
    color: var(--text-muted);
}

.read-more {
    color: var(--primary);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.read-more:hover {
    color: var(--muted-gold);
}

/* Publications Section */
.publications {
    background: var(--deep-navy);
    color: white;
}

.publications .section-title {
    color: white;
}

.publications .section-title::after {
    background: var(--muted-gold);
}

.publications .section-subtitle {
    color: rgba(255, 255, 255, 0.8);
}

.books-showcase {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 3rem;
    margin-top: 4rem;
}

.book-item {
    text-align: center;
    transition: transform 0.4s ease;
}

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

.book-cover {
    width: 200px;
    height: 300px;
    background: linear-gradient(135deg, var(--muted-gold), #d4b76a);
    margin: 0 auto 2rem;
    border-radius: 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-medium);
    position: relative;
    overflow: hidden;
}

.book-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    top: 0;
    left: 0;
}

.book-cover::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, transparent 30%, rgba(255, 255, 255, 0.1) 50%, transparent 70%);
    z-index: 2;
}

.book-title-cover {
    font-family: 'Playfair Display', serif;
    font-size: 1.2rem;
    color: white;
    text-align: center;
    padding: 1rem;
    font-weight: 600;
    line-height: 1.3;
    position: relative;
    z-index: 3;
    background: rgba(0, 0, 0, 0.7);
    border-radius: 5px;
}

.book-info h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    color: white;
}

.book-description {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.book-status {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: var(--muted-gold);
    color: var(--deep-navy);
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* About Section */
.about {
    background: var(--soft-cream);
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 5rem;
    align-items: start;
}

.about-image-section {
    position: relative;
}

.about-image {
    width: 100%;
    height: 500px;
    background: linear-gradient(135deg, var(--accent), var(--sage));
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.2rem;
    font-style: italic;
    opacity: 0.9;
    box-shadow: var(--shadow-medium);
    position: relative;
    overflow: hidden;
}

.about-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    top: 0;
    left: 0;
}

.about-image span {
    position: relative;
    z-index: 2;
    background: rgba(0, 0, 0, 0.7);
    padding: 1rem;
    border-radius: 10px;
    text-align: center;
}

.about-image::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.3);
    z-index: 1;
}

.quote-card {
    position: absolute;
    bottom: -30px;
    right: -30px;
    background: white;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: var(--shadow-medium);
    max-width: 250px;
    transform: rotate(3deg);
}

.quote-text {
    font-family: 'Playfair Display', serif;
    font-style: italic;
    color: var(--primary);
    font-size: 1rem;
    line-height: 1.5;
}

.about-text {
    font-size: 1.1rem;
    line-height: 1.8;
}

.about-text p {
    margin-bottom: 2rem;
    color: var(--text-secondary);
}

.highlight {
    color: var(--primary);
    font-weight: 600;
    font-family: 'Playfair Display', serif;
    font-style: italic;
}

/* Blog Section */
.blog {
    background: white;
}

.blog-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 2.5rem;
    margin-top: 3rem;
}

.blog-featured {
    grid-row: span 2;
}

.blog-item {
    background: var(--soft-cream);
    border-radius: 15px;
    overflow: hidden;
    transition: all 0.4s ease;
    box-shadow: var(--shadow-soft);
    cursor: pointer;
}

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

.blog-image {
    height: 200px;
    background: linear-gradient(135deg, var(--accent), var(--sage));
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-style: italic;
    position: relative;
    overflow: hidden;
}

.blog-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    top: 0;
    left: 0;
}

.blog-image span {
    position: relative;
    z-index: 2;
    background: rgba(0, 0, 0, 0.7);
    padding: 0.5rem 1rem;
    border-radius: 5px;
}

.blog-image::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.3);
    z-index: 1;
}

.blog-featured .blog-image {
    height: 300px;
}

.blog-content {
    padding: 1.5rem;
}

.blog-featured .blog-content {
    padding: 2rem;
}

.blog-date {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-bottom: 0.5rem;
}

.blog-title {
    font-family: 'Playfair Display', serif;
    font-size: 1.3rem;
    color: var(--primary);
    margin-bottom: 1rem;
    line-height: 1.3;
}

.blog-featured .blog-title {
    font-size: 1.8rem;
}

.blog-excerpt {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.6;
}

/* Contact Section */
.contact {
    background: var(--primary);
    color: white;
}

.contact .section-title {
    color: white;
}

.contact .section-title::after {
    background: var(--muted-gold);
}

.contact-content {
    text-align: center;
    max-width: 700px;
    margin: 0 auto;
}

.contact-text {
    font-size: 1.3rem;
    margin-bottom: 3rem;
    opacity: 0.9;
    line-height: 1.7;
}

.contact-methods {
    display: flex;
    justify-content: center;
    gap: 3rem;
    flex-wrap: wrap;
}

.contact-method {
    text-align: center;
}

.contact-link {
    display: inline-block;
    font-size: 1.2rem;
    color: var(--muted-gold);
    text-decoration: none;
    border: 2px solid var(--muted-gold);
    padding: 1.2rem 2.5rem;
    border-radius: 50px;
    transition: all 0.3s ease;
    margin-bottom: 0.5rem;
}

.contact-link:hover {
    background: var(--muted-gold);
    color: var(--primary);
    transform: translateY(-3px);
}

.contact-label {
    font-size: 0.9rem;
    opacity: 0.7;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Footer */
footer {
    background: var(--charcoal);
    color: white;
    text-align: center;
    padding: 3rem 0;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
    margin-bottom: 2rem;
}

.footer-section h4 {
    font-family: 'Playfair Display', serif;
    font-size: 1.3rem;
    margin-bottom: 1rem;
    color: var(--muted-gold);
}

.footer-section p,
.footer-section a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    line-height: 1.6;
}

.footer-section a:hover {
    color: var(--muted-gold);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 2rem;
    opacity: 0.7;
}

/* Scroll Indicator */
.scroll-indicator {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--muted-gold);
    z-index: 1001;
    transform-origin: left;
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 3rem;
    }

    .hero-text h1 {
        font-size: 3rem;
    }

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

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

    .contact-methods {
        flex-direction: column;
        gap: 1.5rem;
    }

    .nav-links {
        display: none;
    }

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

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

/* Animation Classes */
.fade-in {
    opacity: 0;
    transform: translateY(50px);
    transition: all 1s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

.slide-in-left {
    opacity: 0;
    transform: translateX(-50px);
    transition: all 0.8s ease;
}

.slide-in-left.visible {
    opacity: 1;
    transform: translateX(0);
}

.slide-in-right {
    opacity: 0;
    transform: translateX(50px);
    transition: all 0.8s ease;
}

.slide-in-right.visible {
    opacity: 1;
    transform: translateX(0);
}

/* Carousel Section Styles */
.carousel-section {
    color: white;
    overflow: hidden;
    position: relative;
}

.carousel-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    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="25" cy="25" r="1" fill="white" opacity="0.05"/><circle cx="75" cy="75" r="1" fill="white" opacity="0.03"/><circle cx="50" cy="10" r="0.5" fill="white" opacity="0.07"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
    pointer-events: none;
}

.carousel-section .section-title {
    color: rgb(0, 0, 0);
}

.carousel-section .section-title::after {
    background: var(--muted-gold);
}

.carousel-section .section-subtitle {
    color: rgba(39, 29, 29, 0.8);
}

.carousel-container {
    position: relative;
    max-width: 1000px;
    margin: 0 auto;
    margin-top: 4rem;
}

.carousel-wrapper {
    position: relative;
    overflow: hidden;
    border-radius: 20px;
    box-shadow: var(--shadow-medium);
}

.carousel-track {
    display: flex;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.carousel-slide {
    min-width: 100%;
    position: relative;
    display: flex;
    align-items: center;
    min-height: 500px;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.4));
}

.carousel-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1;
}

.carousel-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.carousel-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg,
            rgba(26, 35, 50, 0.9) 0%,
            rgba(26, 35, 50, 0.7) 50%,
            rgba(26, 35, 50, 0.5) 100%);
    z-index: 2;
}

.carousel-content {
    position: relative;
    z-index: 3;
    padding: 4rem;
    max-width: 600px;
    color: white;
}

.carousel-number {
    font-family: 'Playfair Display', serif;
    font-size: 1.2rem;
    color: var(--muted-gold);
    font-weight: 600;
    margin-bottom: 1rem;
    letter-spacing: 2px;
}

.carousel-title {
    font-family: 'Playfair Display', serif;
    font-size: 3rem;
    font-weight: 400;
    margin-bottom: 1.5rem;
    line-height: 1.2;
    color: white;
    font-style: italic;
}

.carousel-description {
    font-size: 1.2rem;
    line-height: 1.7;
    margin-bottom: 2.5rem;
    color: rgba(255, 255, 255, 0.9);
    max-width: 90%;
}

.carousel-link {
    display: inline-flex;
    align-items: center;
    color: var(--muted-gold);
    text-decoration: none;
    font-weight: 500;
    font-size: 1.1rem;
    padding: 1rem 2rem;
    border: 2px solid var(--muted-gold);
    border-radius: 50px;
    transition: all 0.4s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.carousel-link:hover {
    background: var(--muted-gold);
    color: var(--deep-navy);
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(198, 169, 107, 0.3);
}

/* Navigation Controls */
.carousel-controls {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 100%;
    display: flex;
    justify-content: space-between;
    padding: 0 2rem;
    pointer-events: none;
    z-index: 4;
}

.carousel-btn {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.3);
    color: white;
    cursor: pointer;
    transition: all 0.4s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(10px);
    pointer-events: all;
}

.carousel-btn:hover {
    background: var(--muted-gold);
    border-color: var(--muted-gold);
    color: var(--deep-navy);
    transform: scale(1.1);
}

.carousel-btn:disabled {
    opacity: 0.3;
    cursor: not-allowed;
    transform: scale(1);
}

/* Pagination Dots */
.carousel-pagination {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 2rem;
}

.pagination-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.4);
    background: transparent;
    cursor: pointer;
    transition: all 0.3s ease;
}

.pagination-dot.active {
    background: var(--muted-gold);
    border-color: var(--muted-gold);
    transform: scale(1.2);
}

.pagination-dot:not(.active):hover {
    border-color: rgba(255, 255, 255, 0.8);
    background: rgba(255, 255, 255, 0.2);
}

/* Responsive Design */
@media (max-width: 768px) {
    .carousel-content {
        padding: 2rem;
    }

    .carousel-title {
        font-size: 2.2rem;
    }

    .carousel-description {
        font-size: 1rem;
    }

    .carousel-controls {
        padding: 0 1rem;
    }

    .carousel-btn {
        width: 50px;
        height: 50px;
    }

    .carousel-slide {
        min-height: 400px;
    }
}

@media (max-width: 480px) {
    .carousel-title {
        font-size: 1.8rem;
    }

    .carousel-content {
        padding: 1.5rem;
    }

    .carousel-link {
        padding: 0.8rem 1.5rem;
        font-size: 1rem;
    }
}

/* Auto-slide animation */
.carousel-slide.slide-in {
    animation: slideIn 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(100px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Enhanced hover effects */
.carousel-slide:hover .carousel-image img {
    transform: scale(1.05);
    transition: transform 0.6s ease;
}

.carousel-slide:hover .carousel-overlay {
    background: linear-gradient(135deg,
            rgba(26, 35, 50, 0.8) 0%,
            rgba(26, 35, 50, 0.6) 50%,
            rgba(26, 35, 50, 0.4) 100%);
    transition: background 0.6s ease;
}



/* Trust Section Styles */
.trust-section {
    background: linear-gradient(135deg, var(--soft-cream) 0%, #f8f6f1 50%, var(--warm-ivory) 100%);
    position: relative;
    overflow: hidden;
}

.trust-section::before {
    content: '';
    position: absolute;
    top: -20%;
    left: -10%;
    width: 40%;
    height: 140%;
    background: linear-gradient(45deg, var(--sage), var(--accent));
    opacity: 0.04;
    transform: skewX(-20deg);
    border-radius: 30px;
}

.trust-header {
    text-align: center;
    margin-bottom: 5rem;
}

.trust-content {
    display: grid;
    grid-template-columns: 0.8fr 1.2fr;
    gap: 5rem;
    align-items: start;
    margin-bottom: 6rem;
}

/* Legacy Portrait Styles */
.legacy-portrait {
    position: relative;
}

.portrait-frame {
    position: relative;
    width: 100%;
    max-width: 350px;
    margin: 0 auto 2rem;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow-medium);
    transform: rotate(-2deg);
    transition: all 0.4s ease;
}

.portrait-frame:hover {
    transform: rotate(0deg) scale(1.02);
    box-shadow: 0 20px 60px rgba(26, 35, 50, 0.15);
}

.portrait-frame img {
    width: 100%;
    height: 450px;
    object-fit: cover;
    object-position: center;
}

.portrait-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
    padding: 2rem;
    color: white;
}

.legacy-dates {
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    font-weight: 300;
    text-align: center;
    letter-spacing: 2px;
}

.legacy-quote-card {
    background: white;
    padding: 2.5rem;
    border-radius: 15px;
    box-shadow: var(--shadow-medium);
    transform: rotate(3deg);
    margin-top: -30px;
    margin-left: 30px;
    transition: transform 0.4s ease;
}

.legacy-quote-card:hover {
    transform: rotate(0deg) scale(1.05);
}

.legacy-quote {
    font-family: 'Playfair Display', serif;
    font-style: italic;
    font-size: 1.3rem;
    color: var(--primary);
    line-height: 1.5;
    margin-bottom: 1rem;
}

.quote-attribution {
    display: block;
    font-size: 0.9rem;
    color: var(--text-secondary);
    font-weight: 600;
    text-align: right;
}

/* Trust Information Styles */
.trust-info {
    padding-left: 2rem;
}

.trust-subtitle {
    font-family: 'Playfair Display', serif;
    font-size: 2rem;
    color: var(--primary);
    margin-bottom: 1.5rem;
    font-style: italic;
    position: relative;
}

.trust-subtitle::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 60px;
    height: 3px;
    background: var(--muted-gold);
    border-radius: 2px;
}

.trust-description {
    font-size: 1.15rem;
    line-height: 1.8;
    color: var(--text-secondary);
    margin-bottom: 3rem;
}

.trust-mission {
    margin-bottom: 4rem;
}

/* Initiatives Grid */
.initiatives-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.initiative-item {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: var(--shadow-soft);
    transition: all 0.4s ease;
    text-align: center;
}

.initiative-item:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-medium);
}

.initiative-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, var(--accent), var(--sage));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    color: white;
    transition: transform 0.3s ease;
}

.initiative-item:hover .initiative-icon {
    transform: scale(1.1) rotate(5deg);
}

.initiative-item h4 {
    font-family: 'Playfair Display', serif;
    font-size: 1.3rem;
    color: var(--primary);
    margin-bottom: 1rem;
    font-weight: 500;
}

.initiative-item p {
    color: var(--text-secondary);
    line-height: 1.6;
    font-size: 0.95rem;
}

/* Trust Statistics */
.trust-stats {
    background: var(--primary);
    padding: 4rem 0;
    margin: 6rem -2rem 6rem -2rem;
    border-radius: 20px;
    color: white;
}

.stats-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 3rem;
    text-align: center;
}

.stat-item {
    padding: 1rem;
}

.stat-number {
    font-family: 'Playfair Display', serif;
    font-size: 3.5rem;
    font-weight: 600;
    color: var(--muted-gold);
    margin-bottom: 0.5rem;
    line-height: 1;
}

.stat-label {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.9);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 500;
}

/* Call to Action */
.trust-cta {
    text-align: center;
    background: white;
    padding: 4rem;
    border-radius: 20px;
    box-shadow: var(--shadow-soft);
}

.cta-title {
    font-family: 'Playfair Display', serif;
    font-size: 2.5rem;
    color: var(--primary);
    margin-bottom: 1.5rem;
    font-style: italic;
}

.cta-description {
    font-size: 1.2rem;
    color: var(--text-secondary);
    line-height: 1.7;
    max-width: 600px;
    margin: 0 auto 2.5rem;
}

.cta-buttons {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    flex-wrap: wrap;
}

.trust-btn {
    display: inline-block;
    padding: 1.2rem 2.5rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 500;
    letter-spacing: 0.5px;
    transition: all 0.4s ease;
    text-transform: uppercase;
    font-size: 0.9rem;
    border: 2px solid transparent;
}

.trust-btn.primary {
    background: var(--primary);
    color: white;
    box-shadow: var(--shadow-soft);
}

.trust-btn.primary:hover {
    background: var(--charcoal);
    transform: translateY(-4px);
    box-shadow: var(--shadow-medium);
}

.trust-btn.secondary {
    background: transparent;
    color: var(--primary);
    border-color: var(--primary);
}

.trust-btn.secondary:hover {
    background: var(--primary);
    color: white;
    transform: translateY(-4px);
}

/* Responsive Design */
@media (max-width: 968px) {
    .trust-content {
        grid-template-columns: 1fr;
        gap: 3rem;
        text-align: center;
    }

    .trust-info {
        padding-left: 0;
    }

    .initiatives-grid {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    }

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

@media (max-width: 480px) {
    .trust-stats {
        margin: 4rem -1rem;
        padding: 3rem 1rem;
    }

    .stats-container {
        grid-template-columns: 1fr;
    }

    .stat-number {
        font-size: 2.5rem;
    }

    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }

    .trust-btn {
        width: 100%;
        max-width: 300px;
    }
}

/* Counter Animation */
.stat-number.counting {
    animation: countUp 2s ease-out;
}

@keyframes countUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Enhanced hover effects */
.trust-section .initiative-item:nth-child(even):hover {
    background: linear-gradient(135deg, #fdfcfa, #f9f7f4);
}

.trust-section .initiative-item:nth-child(odd):hover {
    background: linear-gradient(135deg, #f9f7f4, #fdfcfa);
}


/* Mobile & Tablet Responsive Styles for Hero Section */

/* Tablet (768px and below) */
@media (max-width: 768px) {
.hero {
height: auto;
min-height: 100vh;
padding: 6rem 0 4rem;
}

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

.hero-text h1 {
font-size: 3.5rem;
margin-bottom: 1.2rem;
}

.hero-text .subtitle {
font-size: 1.2rem;
margin-bottom: 2rem;
}

.hero-text .description {
font-size: 1.05rem;
margin-bottom: 2.5rem;
max-width: 100%;
}

.hero-cta {
justify-content: center;
flex-wrap: wrap;
gap: 1.2rem;
}

.cta-button {
padding: 1.1rem 2.5rem;
font-size: 0.85rem;
}

.cta-secondary {
padding: 1.1rem 0;
font-size: 0.95rem;
}

/* Photo arrangement for tablet */
.hero-visual {
height: 500px;
display: flex;
align-items: center;
justify-content: center;
position: relative;
order: -1;
}

.hero-photo {
width: 300px;
height: 380px;
margin: 0;
position: relative;
z-index: 2;
}

.hero-photo-frame {
width: 100%;
height: 100%;
border-radius: 20px;
overflow: hidden;
box-shadow: var(--shadow-medium);
transform: rotate(-1deg);
transition: all 0.4s ease;
}

.hero-card {
position: absolute;
bottom: -20px;
right: -40px;
background: white;
padding: 1.8rem;
border-radius: 15px;
box-shadow: var(--shadow-medium);
transform: rotate(2deg);
max-width: 260px;
z-index: 3;
}

.hero-card-title {
font-size: 1.1rem;
margin-bottom: 0.7rem;
}

.hero-card-text {
font-size: 0.8rem;
}
}

/* Mobile (480px and below) */
@media (max-width: 480px) {
.container {
padding: 0 1.5rem;
}

.hero {
padding: 5rem 0 3rem;
}

.hero-content {
gap: 3rem;
}

.hero-text h1 {
font-size: 2.8rem;
line-height: 1.2;
margin-bottom: 1rem;
}

.hero-text .subtitle {
font-size: 1.1rem;
margin-bottom: 1.8rem;
}

.hero-text .description {
font-size: 1rem;
margin-bottom: 2rem;
line-height: 1.6;
}

.hero-cta {
flex-direction: column;
align-items: center;
gap: 1rem;
}

.cta-button {
width: 100%;
max-width: 280px;
padding: 1rem 2rem;
font-size: 0.8rem;
text-align: center;
}

.cta-secondary {
width: 100%;
max-width: 280px;
text-align: center;
padding: 1rem 0;
font-size: 0.9rem;
}

/* Mobile photo arrangement - maintaining visual impact */
.hero-visual {
height: 450px;
position: relative;
margin: 0 -1rem;
}

.hero-photo {
width: 250px;
height: 320px;
margin: 0 auto;
position: relative;
z-index: 2;
}

.hero-photo-frame {
border-radius: 18px;
transform: rotate(-1.5deg);
}

.hero-photo-frame:hover {
transform: rotate(0deg) scale(1.02);
}

.hero-card {
position: absolute;
bottom: -45px;
right: 10px;
padding: 1.5rem;
border-radius: 12px;
max-width: 220px;
transform: rotate(3deg);
z-index: 3;
}

.hero-card:hover {
transform: rotate(0deg) scale(1.02);
}

.hero-card-title {
font-size: 1rem;
line-height: 1.4;
margin-bottom: 0.6rem;
}

.hero-card-text {
font-size: 0.75rem;
line-height: 1.4;
}
}

/* Small Mobile (360px and below) */
@media (max-width: 360px) {
.container {
padding: 0 1rem;
}

.hero {
padding: 4rem 0 2.5rem;
}

.hero-text h1 {
font-size: 2.4rem;
letter-spacing: -0.5px;
}

.hero-text .subtitle {
font-size: 1rem;
margin-bottom: 1.5rem;
}

.hero-text .description {
font-size: 0.95rem;
margin-bottom: 1.8rem;
}

.cta-button {
max-width: 240px;
padding: 0.9rem 1.8rem;
font-size: 0.75rem;
}

.cta-secondary {
max-width: 240px;
font-size: 0.85rem;
}

/* Compact but elegant photo arrangement */
.hero-visual {
height: 400px;
margin: 0 -0.5rem;
}

.hero-photo {
width: 220px;
height: 280px;
}

.hero-photo-frame {
border-radius: 15px;
transform: rotate(-2deg);
}

.hero-card {
bottom: -40px;
right: 5px;
padding: 1.2rem;
max-width: 200px;
transform: rotate(4deg);
}

.hero-card-title {
font-size: 0.9rem;
margin-bottom: 0.5rem;
}

.hero-card-text {
font-size: 0.7rem;
}
}



/* Mobile Responsive Navbar with Sidebar */

/* Mobile Navigation Styles */
@media (max-width: 768px) {
/* Hide desktop navigation */
.nav-links {
display: none;
}

/* Mobile navbar container */
.nav-container {
padding: 1rem 1.5rem;
}

/* Mobile menu button */
.mobile-menu-btn {
display: flex;
align-items: center;
justify-content: center;
width: 44px;
height: 44px;
background: none;
border: none;
cursor: pointer;
padding: 0;
z-index: 1001;
position: relative;
}

/* Hamburger icon */
.hamburger {
width: 24px;
height: 18px;
position: relative;
transform: rotate(0deg);
transition: 0.5s ease-in-out;
}

.hamburger span {
display: block;
position: absolute;
height: 2px;
width: 100%;
background: var(--primary);
border-radius: 2px;
opacity: 1;
left: 0;
transform: rotate(0deg);
transition: 0.25s ease-in-out;
}

.hamburger span:nth-child(1) {
top: 0px;
}

.hamburger span:nth-child(2),
.hamburger span:nth-child(3) {
top: 8px;
}

.hamburger span:nth-child(4) {
top: 16px;
}

/* Hamburger animation when active */
.mobile-menu-btn.active .hamburger span:nth-child(1) {
top: 8px;
width: 0%;
left: 50%;
}

.mobile-menu-btn.active .hamburger span:nth-child(2) {
transform: rotate(45deg);
}

.mobile-menu-btn.active .hamburger span:nth-child(3) {
transform: rotate(-45deg);
}

.mobile-menu-btn.active .hamburger span:nth-child(4) {
top: 8px;
width: 0%;
left: 50%;
}

/* Mobile sidebar overlay */
.mobile-overlay {
position: fixed;
top: 0;
left: 0;
width: 100%;
height: 100%;
background: rgba(26, 35, 50, 0.8);
backdrop-filter: blur(10px);
z-index: 999;
opacity: 0;
visibility: hidden;
transition: all 0.4s ease;
}

.mobile-overlay.active {
opacity: 1;
visibility: visible;
}

/* Mobile sidebar */
.mobile-sidebar {
position: fixed;
top: 0;
right: -350px;
width: 320px;
height: 100%;
background: linear-gradient(135deg, var(--soft-cream) 0%, var(--warm-ivory) 100%);
box-shadow: -10px 0 30px rgba(26, 35, 50, 0.2);
z-index: 1000;
transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
overflow-y: auto;
padding: 0;
}

.mobile-sidebar.active {
right: 0;
}

/* Sidebar header */
.sidebar-header {
padding: 2rem 2rem 1.5rem;
border-bottom: 1px solid var(--border-subtle);
background: white;
}

.sidebar-logo {
font-family: 'Playfair Display', serif;
font-size: 1.8rem;
font-weight: 600;
color: var(--primary);
font-style: italic;
margin-bottom: 0.5rem;
}

.sidebar-tagline {
font-size: 0.85rem;
color: var(--text-secondary);
font-style: italic;
}

/* Sidebar navigation */
.sidebar-nav {
padding: 2rem 0;
}

.sidebar-nav ul {
list-style: none;
padding: 0;
margin: 0;
}

.sidebar-nav li {
margin: 0;
}

.sidebar-nav a {
display: block;
padding: 1rem 2rem;
text-decoration: none;
color: var(--text-primary);
font-weight: 400;
font-size: 1.1rem;
letter-spacing: 0.3px;
transition: all 0.3s ease;
position: relative;
border-left: 4px solid transparent;
}

.sidebar-nav a:hover,
.sidebar-nav a.active {
color: var(--primary);
background: rgba(138, 157, 195, 0.1);
border-left-color: var(--muted-gold);
}

.sidebar-nav a::after {
content: '';
position: absolute;
right: 2rem;
top: 50%;
transform: translateY(-50%);
width: 6px;
height: 6px;
border-radius: 50%;
background: var(--muted-gold);
opacity: 0;
transition: opacity 0.3s ease;
}

.sidebar-nav a:hover::after,
.sidebar-nav a.active::after {
opacity: 1;
}

/* Sidebar footer */
.sidebar-footer {
position: absolute;
bottom: 0;
left: 0;
right: 0;
padding: 2rem;
background: white;
border-top: 1px solid var(--border-subtle);
}

.sidebar-contact {
text-align: center;
}

.sidebar-contact-title {
font-family: 'Playfair Display', serif;
font-size: 1.1rem;
color: var(--primary);
margin-bottom: 0.8rem;
font-style: italic;
}

.sidebar-contact a {
display: inline-block;
padding: 0.8rem 1.5rem;
background: var(--primary);
color: white;
text-decoration: none;
border-radius: 25px;
font-size: 0.9rem;
font-weight: 500;
transition: all 0.3s ease;
}

.sidebar-contact a:hover {
background: var(--charcoal);
transform: translateY(-2px);
}

/* Body scroll lock when sidebar is open */
body.sidebar-open {
overflow: hidden;
position: fixed;
width: 100%;
}

/* Tablet specific adjustments */
@media (max-width: 768px) and (min-width: 481px) {
.mobile-sidebar {
    width: 350px;
    right: -370px;
}

.sidebar-nav a {
    font-size: 1.2rem;
    padding: 1.2rem 2rem;
}
}

/* Small mobile adjustments */
@media (max-width: 480px) {
.nav-container {
    padding: 1rem;
}

.logo {
    font-size: 1.6rem;
}

.mobile-sidebar {
    width: 280px;
    right: -300px;
}

.sidebar-header {
    padding: 1.5rem 1.5rem 1rem;
}

.sidebar-logo {
    font-size: 1.6rem;
}

.sidebar-nav a {
    padding: 1rem 1.5rem;
    font-size: 1rem;
}

.sidebar-footer {
    padding: 1.5rem;
}
}

/* Very small screens */
@media (max-width: 360px) {
.mobile-sidebar {
    width: 260px;
    right: -280px;
}

.sidebar-nav a {
    padding: 0.9rem 1.2rem;
    font-size: 0.95rem;
}
}
}

/* Desktop styles - show normal nav, hide mobile elements */
@media (min-width: 769px) {
.mobile-menu-btn,
.mobile-overlay,
.mobile-sidebar {
display: none;
}

.nav-links {
display: flex;
}
}

/* Add smooth scroll behavior for sidebar links */
.sidebar-nav a[href^="#"] {
cursor: pointer;
}

/* Enhanced hover effects for mobile */
@media (hover: none) and (pointer: coarse) {
.sidebar-nav a:hover {
background: rgba(138, 157, 195, 0.1);
border-left-color: var(--muted-gold);
}

.sidebar-nav a:active {
background: rgba(138, 157, 195, 0.2);
transform: scale(0.98);
}

.sidebar-contact a:hover {
background: var(--primary);
}

.sidebar-contact a:active {
background: var(--charcoal);
transform: scale(0.96);
}
}

/* Sidebar entrance animation */
@keyframes slideInRight {
from {
transform: translateX(100%);
opacity: 0;
}
to {
transform: translateX(0);
opacity: 1;
}
}

@keyframes slideOutRight {
from {
transform: translateX(0);
opacity: 1;
}
to {
transform: translateX(100%);
opacity: 0;
}
}

.mobile-sidebar.active {
animation: slideInRight 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Staggered animation for sidebar links */
.sidebar-nav li {
opacity: 0;
transform: translateX(30px);
transition: all 0.3s ease;
}

.mobile-sidebar.active .sidebar-nav li {
opacity: 1;
transform: translateX(0);
}

.mobile-sidebar.active .sidebar-nav li:nth-child(1) { transition-delay: 0.1s; }
.mobile-sidebar.active .sidebar-nav li:nth-child(2) { transition-delay: 0.15s; }
.mobile-sidebar.active .sidebar-nav li:nth-child(3) { transition-delay: 0.2s; }
.mobile-sidebar.active .sidebar-nav li:nth-child(4) { transition-delay: 0.25s; }
.mobile-sidebar.active .sidebar-nav li:nth-child(5) { transition-delay: 0.3s; }
.mobile-sidebar.active .sidebar-nav li:nth-child(6) { transition-delay: 0.35s; }
.mobile-sidebar.active .sidebar-nav li:nth-child(7) { transition-delay: 0.4s; }



/* Scroll to Top Button Styles */
.scroll-to-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 60px;
    height: 60px;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    box-shadow: var(--shadow-medium);
    z-index: 998;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(10px);
    overflow: hidden;
}

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

.scroll-to-top:hover {
    transform: translateY(-4px) scale(1.05);
    box-shadow: 0 20px 40px rgba(26, 35, 50, 0.2);
    background: var(--charcoal);
}

.scroll-to-top:active {
    transform: translateY(-2px) scale(1.02);
}

/* Scroll Icon */
.scroll-icon {
    position: relative;
    z-index: 2;
    transition: transform 0.3s ease;
}

.scroll-to-top:hover .scroll-icon {
    transform: translateY(-2px);
}

/* Progress Ring */
.scroll-progress {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    transform: rotate(-90deg);
}

.progress-ring {
    width: 100%;
    height: 100%;
}

.progress-ring-circle {
    transition: stroke-dashoffset 0.1s ease;
    stroke: var(--muted-gold);
}

/* Pulsing animation when first appears */
.scroll-to-top.pulse {
    animation: pulseEffect 0.6s ease-out;
}

@keyframes pulseEffect {
    0% {
        box-shadow: 0 0 0 0 rgba(26, 35, 50, 0.7);
    }
    70% {
        box-shadow: 0 0 0 20px rgba(26, 35, 50, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(26, 35, 50, 0);
    }
}

/* Bounce animation on click */
.scroll-to-top.clicked {
    animation: bounceClick 0.3s ease;
}

@keyframes bounceClick {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(0.9);
    }
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .scroll-to-top {
        position: fixed;
        bottom: 1.5rem;
        right: 1.5rem;
        width: 50px;
        height: 50px;
    }
    
    .scroll-icon {
        width: 20px;
        height: 20px;
    }
    
    .progress-ring {
        width: 50px;
        height: 50px;
    }
    
    .progress-ring-background,
    .progress-ring-circle {
        cx: 25;
        cy: 25;
        r: 21;
        stroke-dasharray: 131.95;
    }
    
    .progress-ring-circle {
        stroke-dashoffset: 131.95;
    }
}

@media (max-width: 480px) {
    .scroll-to-top {
        bottom: 1rem;
        right: 1rem;
        width: 45px;
        height: 45px;
    }
    
    .scroll-icon {
        width: 18px;
        height: 18px;
    }
    
    .progress-ring {
        width: 45px;
        height: 45px;
    }
    
    .progress-ring-background,
    .progress-ring-circle {
        cx: 22.5;
        cy: 22.5;
        r: 19;
        stroke-dasharray: 119.38;
    }
    
    .progress-ring-circle {
        stroke-dashoffset: 119.38;
    }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .scroll-to-top {
        background: #000;
        color: #fff;
        border: 2px solid #fff;
    }
    
    .progress-ring-circle {
        stroke: #fff;
    }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    .scroll-to-top {
        transition: opacity 0.3s ease;
    }
    
    .scroll-to-top:hover {
        transform: none;
    }
    
    .scroll-icon {
        transition: none;
    }
    
    .scroll-to-top:hover .scroll-icon {
        transform: none;
    }
    
    .progress-ring-circle {
        transition: none;
    }
}

/* Dark theme support */
@media (prefers-color-scheme: dark) {
    .scroll-to-top {
        background: var(--muted-gold);
        color: var(--primary);
    }
    
    .scroll-to-top:hover {
        background: #d4b76a;
    }
    
    .progress-ring-background {
        stroke: rgba(26, 35, 50, 0.3);
    }
    
    .progress-ring-circle {
        stroke: var(--primary);
    }
}

/* Floating effect on idle */
.scroll-to-top.floating {
    animation: floatIdle 3s ease-in-out infinite;
}

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

/* Tooltip on hover */
.scroll-to-top::before {
    content: 'Back to Top';
    position: absolute;
    right: 70px;
    top: 50%;
    transform: translateY(-50%);
    background: var(--charcoal);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 25px;
    font-size: 0.8rem;
    font-weight: 500;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    pointer-events: none;
    letter-spacing: 0.3px;
}

.scroll-to-top:hover::before {
    opacity: 1;
    visibility: visible;
    transform: translateY(-50%) translateX(-10px);
}

/* Hide tooltip on mobile */
@media (max-width: 768px) {
    .scroll-to-top::before {
        display: none;
    }
}