/* TAYLOR RYAN PREMIUM DARK THEME */
:root {
    --bg-dark: #0a0f16;
    --bg-card: #111827;
    --bg-card-hover: #1f2937;
    --accent: #10B981; /* Premium Teal/Green */
    --accent-hover: #059669;
    --text-main: #FFFFFF;
    --text-body: #9CA3AF;
    --border-color: #374151;
    --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --radius-md: 0.5rem;
    --radius-lg: 1rem;
    --radius-xl: 1.5rem;
    --shadow-lg: 0 10px 25px -5px rgba(0, 0, 0, 0.5);
    --shadow-xl: 0 25px 50px -12px rgba(0, 0, 0, 0.7);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
    font-family: var(--font-primary);
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-body);
    background-color: var(--bg-dark);
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

a { color: var(--accent); text-decoration: none; transition: color 0.2s ease; font-weight: 600; }
a:hover { color: var(--accent-hover); }

h1, h2, h3, h4, h5, h6 { font-weight: 800; line-height: 1.2; color: var(--text-main); letter-spacing: -0.02em; }
h1 { font-size: clamp(2.5rem, 5vw, 4rem); }
h2 { font-size: clamp(2rem, 4vw, 3rem); }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.25rem; }

p { margin-bottom: 1.5rem; color: var(--text-body); font-size: 1.125rem; }
ul, ol { padding-left: 1.5rem; margin-bottom: 1.5rem; color: var(--text-body); }
li { margin-bottom: 0.75rem; }
strong { color: var(--text-main); font-weight: 700; }

.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 1.5rem; }
.container-narrow { max-width: 800px; margin: 0 auto; padding: 0 1.5rem; }
.text-center { text-align: center; }
.text-white { color: var(--text-main); }
.text-accent { color: var(--accent); }

/* Animations */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}
.fade-in { animation: fadeInUp 0.8s ease-out forwards; }

/* Navigation */
.navbar { position: fixed; top: 0; left: 0; right: 0; z-index: 100; background: rgba(10, 15, 22, 0.95); backdrop-filter: blur(10px); border-bottom: 1px solid var(--border-color); }
.nav-container { display: flex; align-items: center; justify-content: space-between; height: 80px; }
.nav-brand { font-size: 1.5rem; font-weight: 800; color: var(--text-main); text-transform: uppercase; letter-spacing: 1px; }
.nav-brand span { color: var(--accent); }
.nav-links { display: flex; align-items: center; gap: 1.5rem; list-style: none; padding: 0; margin: 0; }
.nav-links a { font-size: 0.875rem; font-weight: 600; color: var(--text-body); text-transform: uppercase; letter-spacing: 0.05em; }
.nav-links a:hover, .nav-links a.active { color: var(--text-main); }
.nav-links a.active { border-bottom: 2px solid var(--accent); padding-bottom: 4px; }
.nav-cta { background: var(--accent); color: var(--bg-dark) !important; padding: 0.75rem 1.5rem !important; border-radius: 999px; font-weight: 800 !important; }
.nav-cta:hover { background: var(--accent-hover); }
.nav-toggle { display: none; background: none; border: none; cursor: pointer; padding: 0.5rem; flex-direction: column; gap: 5px; }
.nav-toggle span { display: block; width: 25px; height: 3px; background: var(--text-main); transition: 0.3s; }

/* Hero Section */
.hero { position: relative; min-height: 100vh; display: flex; align-items: center; justify-content: center; text-align: center; padding: 120px 0 80px; background: linear-gradient(rgba(10, 15, 22, 0.9), rgba(10, 15, 22, 0.95)), url('https://images.unsplash.com/photo-1481627834876-b7833e8f5570?q=80&w=2000&auto=format&fit=crop') center/cover; }
.hero-content { max-width: 900px; padding: 0 1.5rem; position: relative; z-index: 2; }
.hero h1 { color: var(--text-main); margin-bottom: 1.5rem; line-height: 1.1; }
.hero h1 span { color: var(--accent); }
.hero p.lead { font-size: 1.25rem; color: #D1D5DB; margin-bottom: 2rem; line-height: 1.8; }
.hero-audience { font-size: 1rem; color: var(--accent); text-transform: uppercase; letter-spacing: 2px; font-weight: 700; margin-bottom: 1rem; display: block; }
.hero-actions { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; margin-top: 2rem; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; padding: 1rem 2.5rem; font-size: 1.125rem; font-weight: 700; border-radius: 999px; border: 2px solid transparent; cursor: pointer; transition: all 0.3s ease; text-decoration: none; }
.btn-primary { background: var(--accent); color: var(--bg-dark); }
.btn-primary:hover { background: var(--accent-hover); transform: translateY(-3px); box-shadow: 0 10px 20px rgba(16, 185, 129, 0.3); }
.btn-outline { background: transparent; color: var(--text-main); border-color: var(--border-color); }
.btn-outline:hover { border-color: var(--accent); color: var(--accent); transform: translateY(-3px); }

/* Sections */
.section-padding { padding: 100px 0; }
.section-header { text-align: center; margin-bottom: 4rem; }
.section-header h2 { margin-bottom: 1rem; }
.section-header p { font-size: 1.25rem; max-width: 700px; margin: 0 auto; color: var(--text-body); }

/* About Section (Unique Layout) */
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: center; }
.about-text h2 { margin-bottom: 1.5rem; }
.about-text p { font-size: 1.125rem; }
.about-image { width: 100%; height: 100%; min-height: 400px; border-radius: var(--radius-xl); background: url('https://images.unsplash.com/photo-1524995997946-a1c2e315a42f?q=80&w=1000&auto=format&fit=crop') center/cover; border: 2px solid var(--border-color); box-shadow: var(--shadow-xl); }

/* How I Work Section */
.process-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; }
.process-card { background: var(--bg-card); border-radius: var(--radius-lg); border: 1px solid var(--border-color); overflow: hidden; transition: all 0.3s ease; }
.process-card:hover { transform: translateY(-10px); border-color: var(--accent); box-shadow: var(--shadow-xl); }
.process-img { height: 200px; background-size: cover; background-position: center; border-bottom: 2px solid var(--border-color); }
.process-content { padding: 2rem; }
.process-content h4 { color: var(--text-main); margin-bottom: 1rem; font-size: 1.25rem; }
.process-content p { font-size: 1rem; margin-bottom: 0; }

/* Services / Explore My Work Section */
.services-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 2rem; }
.service-card { display: flex; flex-direction: column; background: var(--bg-card); border-radius: var(--radius-lg); border: 1px solid var(--border-color); overflow: hidden; transition: all 0.3s ease; text-decoration: none; }
.service-card:hover { transform: translateY(-10px); border-color: var(--accent); box-shadow: var(--shadow-xl); }
.service-img { height: 220px; background-size: cover; background-position: center; border-bottom: 2px solid var(--border-color); position: relative; }
.service-img::after { content: ''; position: absolute; inset: 0; background: linear-gradient(to top, rgba(17, 24, 39, 0.9), transparent); }
.service-content { padding: 2rem; flex-grow: 1; display: flex; flex-direction: column; }
.service-content h3 { color: var(--text-main); margin-bottom: 1rem; font-size: 1.5rem; }
.service-content p { color: var(--text-body); font-size: 1rem; margin-bottom: 1.5rem; flex-grow: 1; }
.service-link { color: var(--accent); font-weight: 700; text-transform: uppercase; font-size: 0.875rem; letter-spacing: 1px; display: flex; align-items: center; gap: 0.5rem; }
.service-link:hover { gap: 1rem; }

/* Footer */
.footer { background: #05080c; padding: 80px 0 30px; border-top: 1px solid var(--border-color); }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 4rem; margin-bottom: 4rem; }
.footer-brand { font-size: 1.5rem; font-weight: 800; color: var(--text-main); text-transform: uppercase; margin-bottom: 1.5rem; }
.footer-brand span { color: var(--accent); }
.footer p { color: var(--text-body); font-size: 1rem; }
.footer h4 { color: var(--text-main); font-size: 1.125rem; font-weight: 700; margin-bottom: 1.5rem; text-transform: uppercase; letter-spacing: 1px; }
.footer-links { list-style: none; padding: 0; margin: 0; }
.footer-links li { margin-bottom: 1rem; }
.footer-links a { color: var(--text-body); font-size: 1rem; font-weight: 400; }
.footer-links a:hover { color: var(--accent); }
.footer-bottom { padding-top: 2rem; border-top: 1px solid var(--border-color); text-align: center; font-size: 0.875rem; color: var(--text-body); }

/* Responsive */
@media (max-width: 1024px) {
    .about-grid { grid-template-columns: 1fr; }
    .process-grid { grid-template-columns: repeat(2, 1fr); }
    .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 768px) {
    .nav-links { display: none; position: absolute; top: 80px; left: 0; right: 0; background: var(--bg-card); flex-direction: column; padding: 2rem; gap: 1.5rem; border-bottom: 1px solid var(--border-color); }
    .nav-links.show { display: flex; }
    .nav-toggle { display: flex; }
    .process-grid { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
    .hero-actions { flex-direction: column; }
    .btn { width: 100%; }
}

/* Inner Page Headers with Background Images */
.page-header {
    padding: 150px 0 80px;
    text-align: center;
    background-size: cover;
    background-position: center;
    position: relative;
    border-bottom: 2px solid var(--border-color);
}
.page-header::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(10, 15, 22, 0.88);
}
.page-header-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    margin: 0 auto;
    padding: 0 1.5rem;
}
.page-header h1 {
    margin-bottom: 1rem;
    color: var(--text-main);
}
.page-header p {
    font-size: 1.25rem;
    color: var(--text-body);
}


/* Animated Subheading Boxes for Inner Pages */
@keyframes slideInLeft {
    from { opacity: 0; transform: translateX(-50px); }
    to { opacity: 1; transform: translateX(0); }
}

.sub-heading-box {
    background: var(--bg-card);
    border-left: 5px solid var(--accent);
    padding: 1rem 1.5rem;
    margin: 3rem 0 1.5rem 0;
    border-radius: var(--radius-md);
    animation: slideInLeft 0.8s ease-out forwards;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.sub-heading-box h2, 
.sub-heading-box h3 {
    margin: 0;
    color: var(--text-main);
    text-transform: uppercase;
    font-size: 1.5rem;
    letter-spacing: 1px;
}

/* Full Page Background Image with Dark Overlay */
body.page-bg {
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    background-repeat: no-repeat;
    position: relative;
    z-index: 0;
}

body.page-bg::before {
    content: '';
    position: fixed;
    inset: 0;
    background: rgba(10, 15, 22, 0.75); /* Dark overlay so text is readable */
    z-index: -1;
}

/* Hide the header background image if the whole page has one */
body.page-bg .page-header {
    background-image: none !important;
    background-color: transparent;
}

/* Wide Transparent Glass Box for About Page */
.glass-box-wide {
    width: 100%;
    max-width: 1000px; /* Much wider than before */
    margin: 0 auto;
    background: rgba(17, 24, 39, 0.65); /* Transparent dark background */
    backdrop-filter: blur(16px); /* Frosted glass blur effect */
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.1); /* Very subtle border */
    border-radius: 20px;
    padding: 4rem 3rem; /* Plenty of breathing room */
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
}

@media (max-width: 768px) {
    .glass-box-wide {
        padding: 2rem 1.5rem;
        border-radius: 0;
        border-left: none;
        border-right: none;
    }
}

/* Technical Page Specific Layouts */
.tech-intro-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    margin-bottom: 5rem;
}

.tech-intro-img {
    width: 100%;
    height: 400px;
    border-radius: var(--radius-xl);
    background-size: cover;
    background-position: center;
    border: 2px solid var(--border-color);
    box-shadow: var(--shadow-xl);
}

.layer-card {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-color);
    padding: 2rem;
    text-align: center;
    transition: transform 0.3s ease;
}

.layer-card:hover {
    transform: translateY(-5px);
    border-color: var(--accent);
}

.layer-img {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    border-radius: 50%;
    background-size: cover;
    background-position: center;
    border: 3px solid var(--accent);
}

.tech-service-box {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 2.5rem;
    margin-bottom: 2rem;
    transition: all 0.3s ease;
}

.tech-service-box:hover {
    border-color: var(--accent);
    box-shadow: var(--shadow-lg);
}

.tech-service-box h4 {
    color: var(--accent);
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.tech-service-box ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.tech-service-box li {
    position: relative;
    padding-left: 1.5rem;
    color: var(--text-body);
}

.tech-service-box li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--accent);
    font-weight: bold;
}

.value-section {
    background: rgba(16, 185, 129, 0.05); /* Very subtle green tint */
    border: 1px solid rgba(16, 185, 129, 0.2);
    border-radius: var(--radius-xl);
    padding: 4rem;
    margin-top: 4rem;
    text-align: center;
}

@media (max-width: 768px) {
    .tech-intro-grid { grid-template-columns: 1fr; gap: 2rem; }
    .tech-service-box ul { grid-template-columns: 1fr; }
    .tech-intro-img { height: 250px; }
    .value-section { padding: 2rem; }
}

/* Visibility Page Specific Layout */
.vis-intro-centered {
    max-width: 900px;
    margin: 0 auto 5rem;
    text-align: center;
}

.vis-number-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 5rem;
}

.vis-number-card {
    background: rgba(17, 24, 39, 0.8);
    backdrop-filter: blur(10px);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 2rem;
    position: relative;
    transition: all 0.3s ease;
}

.vis-number-card:hover {
    border-color: var(--accent);
    transform: translateY(-5px);
}

.vis-number {
    font-size: 3rem;
    font-weight: 900;
    color: rgba(16, 185, 129, 0.2); /* Faded green number in background */
    position: absolute;
    top: 1rem;
    right: 1.5rem;
}

.vis-number-card h3 {
    color: var(--text-main);
    margin-bottom: 1rem;
    position: relative;
    z-index: 2;
}

.vis-service-row {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 3rem;
    margin-bottom: 2rem;
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 3rem;
    align-items: start;
}

.vis-service-row h4 {
    color: var(--accent);
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.vis-service-list {
    list-style: none;
    padding: 0;
    margin: 0;
    columns: 2;
    column-gap: 2rem;
}

.vis-service-list li {
    position: relative;
    padding-left: 1.5rem;
    margin-bottom: 0.75rem;
    color: var(--text-body);
    break-inside: avoid;
}

.vis-service-list li::before {
    content: '→';
    position: absolute;
    left: 0;
    color: var(--accent);
}

@media (max-width: 768px) {
    .vis-service-row { grid-template-columns: 1fr; gap: 1.5rem; padding: 2rem; }
    .vis-service-list { columns: 1; }
}


/* Discovery Page Specific Layout */
.discovery-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
    margin-bottom: 4rem;
}

.discovery-tag {
    background: rgba(16, 185, 129, 0.15);
    border: 1px solid var(--accent);
    color: var(--text-main);
    padding: 0.75rem 1.5rem;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1.125rem;
    transition: all 0.3s ease;
}

.discovery-tag:hover {
    background: var(--accent);
    color: var(--bg-dark);
    transform: translateY(-3px);
}

.discovery-timeline {
    position: relative;
    max-width: 900px;
    margin: 0 auto;
    padding-left: 3rem;
    border-left: 3px solid var(--border-color);
}

.discovery-timeline-item {
    position: relative;
    margin-bottom: 3rem;
    padding-left: 2rem;
}

.discovery-timeline-item::before {
    content: '';
    position: absolute;
    left: -3.45rem;
    top: 0.5rem;
    width: 1.25rem;
    height: 1.25rem;
    background: var(--accent);
    border-radius: 50%;
    border: 4px solid var(--bg-dark);
}

.discovery-timeline-item h4 {
    color: var(--accent);
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.discovery-service-list {
    list-style: none;
    padding: 0;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
}

.discovery-service-list li {
    position: relative;
    padding-left: 1.5rem;
    color: var(--text-body);
}

.discovery-service-list li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: var(--accent);
    font-size: 1.5rem;
    line-height: 1;
}

@media (max-width: 768px) {
    .discovery-service-list { grid-template-columns: 1fr; }
    .discovery-timeline { padding-left: 1.5rem; }
    .discovery-timeline-item { padding-left: 1rem; }
    .discovery-timeline-item::before { left: -1.95rem; }
}

/* Recognition Page Specific Layout */
.recognition-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-bottom: 5rem;
}

.recognition-item {
    background: rgba(17, 24, 39, 0.8);
    backdrop-filter: blur(10px);
    border: 1px solid var(--border-color);
    padding: 2rem;
    border-radius: var(--radius-lg);
    text-align: center;
    transition: all 0.3s ease;
}

.recognition-item:hover {
    border-color: var(--accent);
    transform: scale(1.05);
    background: var(--bg-card);
}

.recognition-item h4 {
    color: var(--text-main);
    font-size: 1.125rem;
    margin: 0;
}

.recognition-service-wrapper {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    margin-bottom: 5rem;
}

.recognition-service-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-xl);
    padding: 3rem;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.recognition-service-card::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 6px;
    background: var(--accent);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.recognition-service-card:hover {
    border-color: var(--accent);
    box-shadow: var(--shadow-lg);
    transform: translateX(10px);
}

.recognition-service-card:hover::before {
    opacity: 1;
}

.recognition-service-card h4 {
    color: var(--accent);
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
}

.recognition-service-list {
    list-style: none;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
}

.recognition-service-list li {
    position: relative;
    padding-left: 1.5rem;
    color: var(--text-body);
}

.recognition-service-list li::before {
    content: '★';
    position: absolute;
    left: 0;
    color: var(--accent);
    font-size: 1rem;
}

@media (max-width: 1024px) {
    .recognition-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
    .recognition-grid { grid-template-columns: 1fr; }
    .recognition-service-card { padding: 2rem; }
    .recognition-service-card:hover { transform: translateY(-5px); }
}

/* Creative Page Specific Layout */
.creative-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
    margin-bottom: 5rem;
}

.creative-card {
    background: rgba(17, 24, 39, 0.85);
    backdrop-filter: blur(10px);
    border: 1px solid var(--border-color);
    border-top: 4px solid var(--accent);
    border-radius: var(--radius-lg);
    padding: 2.5rem;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
}

.creative-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.5);
    background: var(--bg-card);
}

.creative-card h4 {
    color: var(--text-main);
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.creative-list {
    list-style: none;
    padding: 0;
    margin: 0;
    flex-grow: 1;
}

.creative-list li {
    position: relative;
    padding-left: 1.5rem;
    margin-bottom: 0.75rem;
    color: var(--text-body);
    font-size: 0.95rem;
}

.creative-list li::before {
    content: '▹';
    position: absolute;
    left: 0;
    color: var(--accent);
    font-size: 1.2rem;
    line-height: 1;
}

@media (max-width: 768px) {
    .creative-card { padding: 1.5rem; }
}


/* Themes Page Specific Layout */
.theme-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-bottom: 5rem;
}

.theme-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: all 0.3s ease;
    text-align: center;
}

.theme-card:hover {
    transform: translateY(-8px);
    border-color: var(--accent);
    box-shadow: var(--shadow-lg);
}

.theme-thumb {
    height: 160px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 1.25rem;
    color: white;
    text-shadow: 0 2px 4px rgba(0,0,0,0.5);
}

.theme-info {
    padding: 1.5rem;
}

.theme-info h4 {
    color: var(--text-main);
    margin-bottom: 0.5rem;
}

.theme-info p {
    font-size: 0.875rem;
    margin-bottom: 1.5rem;
}

.amazon-compare {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-bottom: 5rem;
}

.compare-box {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 2.5rem;
}

.compare-box.bad {
    border-top: 4px solid #EF4444; /* Red for bad */
}

.compare-box.good {
    border-top: 4px solid var(--accent); /* Green for good */
    background: rgba(16, 185, 129, 0.05); /* Subtle green tint */
}

.compare-box h4 {
    margin-bottom: 1rem;
    font-size: 1.25rem;
}

@media (max-width: 768px) {
    .amazon-compare { grid-template-columns: 1fr; }
}

/* --- Themes Page Visual Previews --- */
.theme-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 5rem;
}

.theme-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: all 0.3s ease;
}

.theme-card:hover {
    transform: translateY(-8px);
    border-color: var(--accent);
    box-shadow: var(--shadow-lg);
}

.theme-preview-img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-bottom: 2px solid var(--border-color);
}

.theme-info {
    padding: 1.5rem;
    text-align: center;
}

.theme-info h4 {
    color: var(--text-main);
    margin-bottom: 0.5rem;
}

/* --- Amazon & Google Mockup Layouts --- */
.mockup-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-bottom: 3rem;
}

.mockup-box {
    background: #fff; /* White background for realistic mockup */
    border-radius: var(--radius-md);
    padding: 1.5rem;
    color: #333;
    box-shadow: var(--shadow-md);
    font-family: Arial, sans-serif;
}

.mockup-box.bad {
    border-top: 6px solid #EF4444;
}

.mockup-box.good {
    border-top: 6px solid #10B981;
}

.mockup-label {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: bold;
    margin-bottom: 1rem;
    text-transform: uppercase;
}

.mockup-label.bad-label {
    background: #FEE2E2;
    color: #EF4444;
}

.mockup-label.good-label {
    background: #D1FAE5;
    color: #10B981;
}

/* Amazon Mockup Specifics */
.amazon-title {
    font-size: 1.5rem;
    font-weight: bold;
    line-height: 1.2;
    margin-bottom: 0.5rem;
}
.amazon-author {
    color: #0066C0;
    font-size: 0.9rem;
    margin-bottom: 1rem;
}
.amazon-bullets {
    font-size: 0.9rem;
    line-height: 1.5;
    margin-left: 1rem;
}
.amazon-bullets li {
    margin-bottom: 0.5rem;
    color: #333;
}
.amazon-badge {
    background: #F0C14B;
    color: #111;
    padding: 2px 6px;
    font-size: 0.7rem;
    font-weight: bold;
    border-radius: 3px;
    display: inline-block;
    margin-bottom: 0.5rem;
}

/* Google Mockup Specifics */
.google-url {
    font-size: 0.85rem;
    color: #202124;
    margin-bottom: 0.25rem;
}
.google-title {
    font-size: 1.25rem;
    color: #1A0DAB;
    margin-bottom: 0.25rem;
    cursor: pointer;
}
.google-desc {
    font-size: 0.9rem;
    color: #4D5156;
    line-height: 1.4;
}
.google-stars {
    color: #FABB05;
    font-size: 0.9rem;
    margin-bottom: 0.25rem;
}
.google-sitelinks {
    display: flex;
    gap: 1rem;
    margin-top: 0.5rem;
    font-size: 0.9rem;
    color: #1A0DAB;
}

@media (max-width: 768px) {
    .mockup-grid { grid-template-columns: 1fr; }
}

/* --- Theme Showcase Layout --- */
.theme-showcase {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 5rem;
}

.theme-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: all 0.3s ease;
}

.theme-card:hover {
    transform: translateY(-8px);
    border-color: var(--accent);
    box-shadow: var(--shadow-lg);
}

.theme-card img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    border-bottom: 2px solid var(--border-color);
}

.theme-card-info {
    padding: 1.5rem;
    text-align: center;
}

.theme-card-info h4 {
    color: var(--text-main);
    margin-bottom: 0.5rem;
}

/* --- Visual Mockup Frames (Amazon & Goodreads) --- */
.mockup-frame {
    background: #fff;
    border-radius: var(--radius-md);
    padding: 2rem;
    color: #333;
    font-family: Arial, sans-serif;
    box-shadow: var(--shadow-md);
    margin-bottom: 2rem;
}

.mockup-header {
    border-bottom: 1px solid #ddd;
    padding-bottom: 1rem;
    margin-bottom: 1.5rem;
    font-weight: bold;
    color: #555;
    text-transform: uppercase;
    font-size: 0.875rem;
}

.amazon-mockup-grid {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 2rem;
}

.amazon-cover img {
    width: 100%;
    max-width: 200px;
    display: block;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.amazon-details h1 {
    font-size: 1.5rem;
    color: #111;
    margin-bottom: 0.5rem;
    line-height: 1.2;
}

.amazon-details h2 {
    font-size: 1rem;
    color: #0066C0;
    margin-bottom: 1rem;
}

.amazon-aplus {
    margin-top: 2rem;
    border-top: 1px solid #ddd;
    padding-top: 1.5rem;
}

.aplus-banner {
    width: 100%;
    height: 200px;
    background-size: cover;
    background-position: center;
    border-radius: 4px;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
    font-weight: bold;
    text-shadow: 0 2px 4px rgba(0,0,0,0.8);
}

.goodreads-mockup {
    display: flex;
    gap: 2rem;
    align-items: flex-start;
}

.goodreads-avatar img {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid #ddd;
}

.goodreads-info h1 {
    font-size: 1.5rem;
    color: #333;
    margin-bottom: 0.5rem;
}

.goodreads-stats {
    display: flex;
    gap: 2rem;
    font-size: 0.9rem;
    color: #555;
    margin-bottom: 1rem;
    border-bottom: 1px solid #ddd;
    padding-bottom: 1rem;
}


/* How I Work Page - Fixed Zig-Zag Timeline */
.timeline-container {
    position: relative;
    max-width: 1000px;
    margin: 4rem auto;
    padding: 2rem 0;
    display: flex;
    flex-direction: column;
}

.timeline-container::before {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%;
    width: 4px;
    background: var(--border-color);
    transform: translateX(-50%);
    border-radius: 2px;
}

.timeline-step {
    position: relative;
    width: 50%;
    padding-right: 3rem;
    margin-bottom: 3rem;
    align-self: flex-start;
}

.timeline-step:nth-child(even) {
    align-self: flex-end;
    padding-right: 0;
    padding-left: 3rem;
}

.timeline-content {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    padding: 2rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    position: relative;
    transition: all 0.3s ease;
}

.timeline-content:hover {
    transform: translateY(-5px);
    border-color: var(--accent);
    box-shadow: var(--shadow-lg);
}

/* The connecting dots */
.timeline-step::after {
    content: '';
    position: absolute;
    top: 2rem;
    right: -12px;
    width: 24px;
    height: 24px;
    background: var(--accent);
    border: 4px solid var(--bg-dark);
    border-radius: 50%;
    z-index: 10;
}

.timeline-step:nth-child(even)::after {
    right: auto;
    left: -12px;
}

.timeline-number {
    font-size: 3rem;
    font-weight: 900;
    color: rgba(16, 185, 129, 0.2);
    position: absolute;
    top: 1rem;
    right: 1.5rem;
    line-height: 1;
}

.timeline-step:nth-child(even) .timeline-number {
    right: auto;
    left: 1.5rem;
}

.timeline-content h3 {
    color: var(--text-main);
    font-size: 1.5rem;
    margin-bottom: 1rem;
    position: relative;
    z-index: 2;
}

.timeline-content p {
    color: var(--text-body);
    margin: 0;
    position: relative;
    z-index: 2;
}

@media (max-width: 768px) {
    .timeline-container::before { left: 20px; }
    .timeline-step, .timeline-step:nth-child(even) {
        width: 100%;
        align-self: flex-start;
        padding-left: 3rem;
        padding-right: 0;
    }
    .timeline-step::after, .timeline-step:nth-child(even)::after {
        left: 8px;
        right: auto;
    }
    .timeline-number, .timeline-step:nth-child(even) .timeline-number {
        right: 1.5rem;
        left: auto;
    }
}

/* Insights Page Specific Layout */
.insights-intro {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    margin-bottom: 5rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.insight-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
    margin-bottom: 5rem;
}

.insight-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 2.5rem;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.insight-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: var(--accent);
    transition: width 0.3s ease;
    opacity: 0.5;
}

.insight-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
    border-color: var(--accent);
}

.insight-card:hover::before {
    width: 100%;
    opacity: 0.1;
}

.insight-category {
    font-size: 0.75rem;
    font-weight: 800;
    color: var(--accent);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 1rem;
    display: block;
}

.insight-card h3 {
    color: var(--text-main);
    font-size: 1.25rem;
    margin-bottom: 1rem;
    line-height: 1.4;
    position: relative;
    z-index: 2;
}

.insight-card p {
    color: var(--text-body);
    font-size: 0.95rem;
    line-height: 1.6;
    margin: 0;
    position: relative;
    z-index: 2;
}

/* --- Homepage Visual Enhancements --- */
.hero {
    /* Brighter overlay so the background image shows clearly */
    background: linear-gradient(rgba(10, 22, 40, 0.7), rgba(10, 22, 40, 0.8)), url('https://images.unsplash.com/photo-1507842217343-583bb7270b66?q=80&w=2000&auto=format&fit=crop') center/cover !important;
}

.section-with-bg {
    position: relative;
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    padding: 100px 0;
}

.section-with-bg::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(10, 15, 22, 0.85); /* Dark overlay for text readability */
    z-index: 1;
}

.section-with-bg .container {
    position: relative;
    z-index: 2;
}

.image-card {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-color);
    overflow: hidden;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.image-card:hover {
    transform: translateY(-8px);
    border-color: var(--accent);
    box-shadow: var(--shadow-xl);
}

.image-card-img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-bottom: 2px solid var(--border-color);
}

.image-card-content {
    padding: 2rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.image-card-content h3 {
    color: var(--text-main);
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.image-card-content p {
    color: var(--text-body);
    font-size: 1rem;
    margin-bottom: 1.5rem;
    flex-grow: 1;
}

.btn-full {
    width: 100%;
    text-align: center;
}

/* --- FIXING GRIDS --- */
.grid-3 {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 2rem !important;
}

@media (max-width: 1024px) {
    .grid-3 { grid-template-columns: repeat(2, 1fr) !important; }
}
@media (max-width: 768px) {
    .grid-3 { grid-template-columns: 1fr !important; }
}

/* --- ABOUT IMAGE PLACEHOLDER --- */
.image-placeholder-box {
    width: 100%;
    height: 400px;
    background: rgba(255, 255, 255, 0.05);
    border: 2px dashed var(--accent);
    border-radius: var(--radius-xl);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 2rem;
    color: var(--text-body);
}

.image-placeholder-box h3 {
    color: var(--accent);
    margin-bottom: 0.5rem;
}

/* --- TESTIMONIALS SECTION --- */
.testimonial-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 2.5rem;
    text-align: center;
    transition: all 0.3s ease;
}

.testimonial-card:hover {
    transform: translateY(-5px);
    border-color: var(--accent);
}

.testimonial-card img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    margin: 0 auto 1.5rem;
    border: 3px solid var(--accent);
}

.testimonial-text {
    font-style: italic;
    color: var(--text-body);
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
}

.testimonial-author {
    font-weight: 700;
    color: var(--text-main);
}

/* --- REVIEW SUBMISSION FORM --- */
.review-form-container {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 3rem;
    max-width: 800px;
    margin: 4rem auto 0;
}

.review-form-container input,
.review-form-container textarea,
.review-form-container select {
    width: 100%;
    padding: 1rem;
    margin-bottom: 1.5rem;
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    color: var(--text-main);
    font-family: var(--font-primary);
}

.review-form-container input:focus,
.review-form-container textarea:focus {
    border-color: var(--accent);
    outline: none;
}

/* --- POPUP MODAL --- */
.modal-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(10, 15, 22, 0.9);
    backdrop-filter: blur(5px);
    z-index: 1000;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}
.modal-overlay.show {
    display: flex;
    opacity: 1;
}
.modal {
    background: var(--bg-card);
    border: 1px solid var(--accent);
    border-radius: var(--radius-xl);
    padding: 3rem;
    max-width: 500px;
    text-align: center;
    position: relative;
    box-shadow: var(--shadow-xl);
}
.modal h3 { color: var(--text-main); margin-bottom: 1rem; }
.modal p { margin-bottom: 2rem; }
.modal input {
    width: 100%;
    padding: 1rem;
    margin-bottom: 1rem;
    background: rgba(0,0,0,0.2);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    color: white;
}
.close-modal {
    position: absolute;
    top: 1rem;
    right: 1.5rem;
    background: none;
    border: none;
    font-size: 2rem;
    color: var(--text-body);
    cursor: pointer;
}

/* Force Contact Page to Stack on Mobile */
@media (max-width: 900px) {
    /* This targets the inline grid style we used */
    div[style*="grid-template-columns: 1.2fr 1fr;"] {
        grid-template-columns: 1fr !important;
        gap: 2rem !important;
    }
}

/* --- Contact Page Mobile Fixes --- */
.contact-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 4rem;
    align-items: start;
}

.contact-form-box {
    background: rgba(17, 24, 39, 0.95);
    padding: 2.5rem;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-xl);
    border: 1px solid var(--border-color);
}

.contact-form-box input, 
.contact-form-box textarea {
    width: 100%;
    padding: 1rem;
    margin-bottom: 1.2rem;
    background: rgba(0,0,0,0.4);
    color: white;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-family: inherit;
}

@media (max-width: 768px) {
    .contact-grid {
        grid-template-columns: 1fr; /* Stacks form and text on mobile */
        gap: 2rem;
    }
    .contact-form-box {
        padding: 1.5rem; /* Smaller box on mobile */
    }
    .contact-form-box input, 
    .contact-form-box textarea {
        padding: 0.8rem; /* Smaller inputs on mobile */
        margin-bottom: 1rem;
        font-size: 1rem;
    }
}