:root {
    /* Premium Light Theme Palette */
    --primary-color: #4338ca;
    /* Indigo 700 - Deep and professional */
    --primary-hover: #3730a3;
    /* Indigo 800 */
    --accent-color: #7c3aed;
    /* Violet 600 - Creative accent */

    --bg-color: #f8fafc;
    /* Slate 50 - Soft off-white */
    --bg-pattern: #f1f5f9;
    /* Slate 100 - Subtle texture */

    --card-bg: #ffffff;
    --card-border: rgba(226, 232, 240, 0.6);
    /* Slate 200 */

    --text-main: #0f172a;
    /* Slate 900 - High contrast */
    --text-muted: #64748b;
    /* Slate 500 */

    --border-color: #e2e8f0;

    --font-family: 'Inter', system-ui, -apple-system, sans-serif;

    /* Soft, diffused shadows for "floating" effect */
    --shadow-sm: 0 2px 4px rgba(148, 163, 184, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(148, 163, 184, 0.1), 0 2px 4px -1px rgba(148, 163, 184, 0.06);
    --shadow-lg: 0 20px 25px -5px rgba(148, 163, 184, 0.1), 0 10px 10px -5px rgba(148, 163, 184, 0.04);
    --shadow-hover: 0 25px 50px -12px rgba(148, 163, 184, 0.25);

    --radius-lg: 24px;
    --radius-md: 16px;
    --radius-sm: 8px;
}

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

body {
    font-family: var(--font-family);
    background-color: var(--bg-color);
    /* Subtle mesh gradient background */
    background-image:
        radial-gradient(at 0% 0%, rgba(99, 102, 241, 0.05) 0px, transparent 50%),
        radial-gradient(at 100% 0%, rgba(139, 92, 246, 0.05) 0px, transparent 50%),
        radial-gradient(at 100% 100%, rgba(56, 189, 248, 0.05) 0px, transparent 50%),
        radial-gradient(at 0% 100%, rgba(236, 72, 153, 0.05) 0px, transparent 50%);
    background-attachment: fixed;
    color: var(--text-main);
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Hero Section */
.hero {
    padding: 5rem 2rem 4rem;
    position: relative;
    overflow: hidden;
}

.hero-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
    gap: 3.5rem;
    align-items: center;
}

.hero-left {
    position: relative;
    z-index: 1;
    animation: fadeInDown 0.8s ease-out;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.4rem 0.9rem 0.4rem 0.4rem;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 999px;
    box-shadow: var(--shadow-md);
    border: 1px solid rgba(226, 232, 240, 0.9);
    margin-bottom: 1.75rem;
}

.hero-badge-icon {
    width: 32px;
    height: 32px;
    border-radius: 999px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #eef2ff;
    color: var(--primary-color);
}

.hero-badge-text {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-muted);
}

.hero-title {
    font-size: 3.75rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    letter-spacing: -0.05em;
    line-height: 1.05;
    color: var(--primary-color);
}

.hero-title span {
    display: block;
    color: #0f172a;
}

.hero-subtitle {
    font-size: 1.1rem;
    color: var(--text-muted);
    max-width: 520px;
}

.hero-actions {
    margin-top: 2.25rem;
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    align-items: center;
}

.hero-primary {
    padding-inline: 1.75rem;
    padding-block: 0.95rem;
    font-size: 0.98rem;
}

.hero-primary-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.15);
}

/* initial secondary button tweaks (overridden later by .btn) */
.hero-secondary {}

.hero-right {
    position: relative;
    display: flex;
    justify-content: center;
}

.hero-card-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

.hero-card {
    background: white;
    border-radius: 10px;
    padding: 1.5rem 1.5rem 1.75rem;
    box-shadow: var(--shadow-lg);
    border: 1px solid rgba(226, 232, 240, 0.9);
    width: 100%;
    max-width: 420px;
    transition: transform 0.35s ease, box-shadow 0.35s ease, border-color 0.35s ease;
}

.hero-card-header {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 0.75rem;
}

.hero-card-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.4rem 0.9rem;
    border-radius: 999px;
    background: #eef2ff;
    color: var(--primary-color);
    font-size: 0.85rem;
    font-weight: 600;
}

.hero-card-body {
    background: #f8fafc;
    border-radius: 1.5rem;
    padding: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-illustration {
    width: 100%;
    max-width: 360px;
    max-height: 320px;
    height: auto;
    display: block;
    object-fit: contain;
    cursor: pointer;
    animation: heroFloat 6s ease-in-out infinite;
}

.hero-card-link:hover .hero-card {
    transform: translateY(-8px) scale(1.01);
    box-shadow: var(--shadow-hover);
    border-color: rgba(129, 140, 248, 0.6);
}

@keyframes heroFloat {

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

    50% {
        transform: translateY(-6px);
    }
}

/* Footer */
.site-footer {
    margin-top: auto;
    padding: 2.25rem 2rem 2.5rem;
    border-top: 1px solid rgba(226, 232, 240, 0.9);
    background: radial-gradient(circle at top left, rgba(129, 140, 248, 0.08), transparent 55%),
        radial-gradient(circle at top right, rgba(56, 189, 248, 0.06), transparent 55%),
        rgba(248, 250, 252, 0.9);
    backdrop-filter: blur(10px);
}

.footer-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    flex-wrap: wrap;
}

.owner-avatar-wrapper {
    width: 64px;
    height: 64px;
    border-radius: 999px;
    padding: 3px;
    background: conic-gradient(from 180deg at 50% 50%, #6366f1, #a855f7, #22c55e, #6366f1);
    box-shadow: 0 10px 25px rgba(15, 23, 42, 0.18);
}

.owner-avatar {
    width: 100%;
    height: 100%;
    border-radius: inherit;
    object-fit: cover;
    display: block;
    border: 2px solid #f8fafc;
}

.owner-name {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--text-main);
    margin-top: 0.15rem;
}

.owner-role {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-top: 0.15rem;
}

.footer-left {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.owner-text {
    display: flex;
    flex-direction: column;
}

.footer-linkedin-text {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    font-size: 0.9rem;
    font-weight: 600;
    color: #2563eb;
    text-decoration: none;
}

.footer-linkedin-text i {
    font-size: 1.1rem;
}

.footer-linkedin-text:hover {
    color: #1d4ed8;
    text-decoration: underline;
}

.footer-right {
    text-align: left;
    max-width: 520px;
    color: var(--text-muted);
}

.footer-meta-title {
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin-bottom: 0.35rem;
    color: var(--text-main);
}

.footer-meta-subtitle {
    font-size: 0.95rem;
}

@media (max-width: 640px) {
    .footer-inner {
        align-items: flex-start;
        flex-direction: column;
    }

    .footer-right {
        text-align: left;
        max-width: 100%;
    }

}

@media (max-width: 900px) {
    .hero {
        padding-top: 3.5rem;
    }

    .hero-inner {
        grid-template-columns: minmax(0, 1fr);
        gap: 2.5rem;
    }

    .hero-right {
        order: -1;
    }

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

@media (max-width: 640px) {
    .hero {
        padding-inline: 1.25rem;
    }

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

    .hero-subtitle {
        font-size: 1rem;
    }

    .hero-card {
        padding: 1.2rem 1.2rem 1.5rem;
    }
}

/* Main Grid */
.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 2rem 6rem;
    flex: 1;
}

.options-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2.5rem;
    padding: 1rem;
}

@media (max-width: 1024px) {
    .options-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .options-grid {
        grid-template-columns: 1fr;
    }
}

/* Cards */
.card {
    background: var(--card-bg);
    border-radius: 10px;
    padding: 3rem;
    text-decoration: none;
    color: var(--text-main);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    border: 1px solid var(--card-border);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
    height: 100%;
    position: relative;
    overflow: hidden;
}

.card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-hover);
    border-color: rgba(99, 102, 241, 0.2);
}

.card-icon {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    color: var(--primary-color);
    background: #eff6ff;
    /* Blue 50 */
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-md);
    transition: all 0.4s ease;
}

.card:hover .card-icon {
    transform: scale(1.1) rotate(5deg);
    background: var(--primary-color);
    color: white;
    box-shadow: 0 10px 20px -5px rgba(67, 56, 202, 0.3);
}

.card h2 {
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 1rem;
    letter-spacing: -0.02em;
    color: var(--text-main);
}

.card p {
    color: var(--text-muted);
    font-size: 1.1rem;
    line-height: 1.6;
}

/* Modal */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 23, 42, 0.2);
    /* Lighter backdrop */
    backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 1000;
}

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

.modal {
    background: white;
    padding: 3rem;
    border-radius: var(--radius-lg);
    width: 90%;
    max-width: 450px;
    box-shadow: var(--shadow-hover);
    text-align: center;
    transform: scale(0.95);
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    border: 1px solid var(--border-color);
}

.modal-overlay.active .modal {
    transform: scale(1);
}

.modal h2 {
    margin-bottom: 2rem;
    color: var(--text-main);
    font-weight: 700;
    font-size: 1.5rem;
}

.modal-options {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    padding: 1rem 2rem;
    background: var(--primary-color);
    color: white;
    text-decoration: none;
    border-radius: var(--radius-md);
    font-weight: 600;
    transition: all 0.2s ease;
    border: 1px solid transparent;
    box-shadow: var(--shadow-sm);
}

.btn:hover {
    background: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

/* Hero primary / secondary button pair */
.btn.hero-primary {
    background: var(--primary-color);
    color: #ffffff;
}

.btn.hero-secondary {
    background: #ffffff;
    color: var(--primary-color);
    border-color: var(--primary-color);
    box-shadow: var(--shadow-sm);
}

.btn.hero-secondary:hover {
    background: #eef2ff;
    color: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-outline {
    background: white;
    border: 1px solid var(--border-color);
    color: var(--text-main);
}

.btn-outline:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
    background: #f8fafc;
}

.close-modal {
    margin-top: 2rem;
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 500;
    transition: color 0.2s;
}

.close-modal:hover {
    color: var(--text-main);
    text-decoration: underline;
}

/* FAQ Page Specific Styles */
.faq-header {
    text-align: center;
    margin-bottom: 4rem;
    padding-top: 2rem;
}

.faq-header h1 {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 1rem;
    background: linear-gradient(to right, #4338ca, #7c3aed);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.faq-container {
    max-width: 800px;
    margin: 0 auto;
    display: grid;
    gap: 1.5rem;
}

.faq-item {
    background: white;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-sm);
}

.faq-item:hover {
    border-color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.faq-item.active {
    border-color: var(--primary-color);
    box-shadow: var(--shadow-md);
}

.faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 2rem;
    cursor: pointer;
    font-weight: 600;
    font-size: 1.1rem;
    color: var(--text-main);
}

.faq-question h3 {
    margin: 0;
    font-size: 1.1rem;
    font-weight: 600;
}

.faq-answer {
    padding: 0 2rem;
    max-height: 0;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    color: var(--text-muted);
    line-height: 1.7;
}

.faq-item.active .faq-answer {
    padding-bottom: 2rem;
    max-height: 500px;
}

.arrow {
    transition: transform 0.3s ease;
    color: var(--primary-color);
}

.faq-item.active .arrow {
    transform: rotate(180deg);
}

.back-btn-container {
    margin-bottom: 2rem;
}

.back-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-muted);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s;
}

.back-btn:hover {
    color: var(--primary-color);
}

/* Animations */
@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }

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

/* Professional Back to Home Button */
.home-btn {
    position: fixed;
    top: 20px;
    left: 20px;
    z-index: 1000;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1.5rem;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    color: var(--text-main);
    text-decoration: none;
    font-weight: 600;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
    font-family: var(--font-family);
}

.home-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
    border-color: var(--primary-color);
    color: var(--primary-color);
}

/* Transformer Evolution Page */
.evolution-hero {
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
    gap: 2.5rem;
    align-items: center;
    padding: 4rem 0 3rem;
}

.evolution-hero-text h1 {
    font-size: 2.6rem;
    font-weight: 800;
    letter-spacing: -0.03em;
    color: var(--text-main);
    margin-bottom: 1rem;
}

.evolution-tag {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.25rem 0.75rem;
    border-radius: 999px;
    background: #eef2ff;
    color: var(--primary-color);
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    margin-bottom: 1rem;
}

.evolution-subtitle {
    font-size: 1.02rem;
    color: var(--text-muted);
    max-width: 560px;
}

.evolution-summary-card {
    background: var(--card-bg);
    border-radius: var(--radius-lg);
    border: 1px solid var(--card-border);
    box-shadow: var(--shadow-md);
    padding: 1.75rem 1.9rem;
}

.evolution-summary-title {
    font-size: 0.95rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    color: var(--text-main);
}

.evolution-summary-card ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: 0.5rem;
    font-size: 0.95rem;
    color: var(--text-muted);
}

.evolution-summary-card li::before {
    content: "•";
    color: var(--primary-color);
    margin-right: 0.5rem;
}

.evolution-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
    gap: 2.5rem;
    padding-bottom: 4rem;
}

.evolution-timeline h2,
.evolution-resources h2 {
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: var(--text-main);
}

.evolution-steps {
    border-left: 2px solid rgba(148, 163, 184, 0.4);
    padding-left: 1.5rem;
    display: grid;
    gap: 1.5rem;
}

.evolution-step {
    position: relative;
}

.evolution-step::before {
    content: "";
    position: absolute;
    left: -1.6rem;
    top: 0.35rem;
    width: 10px;
    height: 10px;
    border-radius: 999px;
    background: var(--primary-color);
    box-shadow: 0 0 0 4px rgba(129, 140, 248, 0.2);
}

.evolution-year {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--primary-color);
    text-transform: uppercase;
    letter-spacing: 0.12em;
    margin-bottom: 0.35rem;
}

.evolution-content h3 {
    font-size: 1.05rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
    color: var(--text-main);
}

.evolution-content p {
    font-size: 0.95rem;
    color: var(--text-muted);
}

.evolution-resources {
    background: rgba(255, 255, 255, 0.9);
    border-radius: var(--radius-lg);
    border: 1px solid var(--card-border);
    box-shadow: var(--shadow-md);
    padding: 1.8rem 1.9rem;
    height: fit-content;
}

.evolution-resource-list {
    display: grid;
    gap: 0.9rem;
}

.evolution-resource {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 0.8rem;
    padding: 0.85rem 0.9rem;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
    text-decoration: none;
    color: inherit;
    transition: all 0.2s ease;
}

.evolution-resource:hover {
    border-color: var(--primary-color);
    box-shadow: var(--shadow-md);
    transform: translateY(-1px);
}

.resource-icon {
    width: 40px;
    height: 40px;
    border-radius: 999px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #eff6ff;
    color: var(--primary-color);
}

.resource-title {
    font-size: 0.98rem;
    font-weight: 600;
    color: var(--text-main);
}

.resource-meta {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.resource-pill {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--primary-color);
    padding: 0.25rem 0.6rem;
    border-radius: 999px;
    background: #eef2ff;
}

.evolution-note {
    margin-top: 1.4rem;
    padding-top: 1rem;
    border-top: 1px dashed var(--border-color);
    font-size: 0.9rem;
    color: var(--text-muted);
}

@media (max-width: 900px) {
    .evolution-hero {
        grid-template-columns: minmax(0, 1fr);
    }

    .evolution-layout {
        grid-template-columns: minmax(0, 1fr);
    }

    .evolution-resources {
        order: -1;
    }
}