@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Montserrat:wght@400;500;600;700;800&family=Roboto+Slab:wght@300;400;500;600;700&display=swap');

:root {
    --bg-primary: #070708;
    --bg-secondary: #0f0f11;
    --bg-card: rgba(18, 18, 22, 0.65);
    --bg-card-hover: rgba(26, 26, 32, 0.85);
    --accent-red: #e50914;
    --accent-red-light: #ff2a35;
    --accent-red-glow: rgba(229, 9, 20, 0.4);
    --text-primary: #ffffff;
    --text-secondary: #a0a0ab;
    --text-muted: #6f6f78;
    --border-color: rgba(255, 255, 255, 0.06);
    --border-hover: rgba(229, 9, 20, 0.35);
    --font-heading: 'Montserrat', sans-serif;
    --font-serif: 'Roboto Slab', serif;
    --font-body: 'Inter', sans-serif;
    --transition-smooth: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    --max-width: 1280px;
}

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

body {
    background-color: var(--bg-primary);
    color: var(--text-primary);
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.6;
    overflow-x: hidden;
}

/* Scrollbar Styling */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: var(--bg-primary);
}
::-webkit-scrollbar-thumb {
    background: #25252b;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: var(--accent-red);
}

/* Utility Classes */
.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 2rem;
}

.text-gradient {
    background: linear-gradient(135deg, #ffffff 30%, var(--accent-red-light) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.text-red {
    color: var(--accent-red);
}

/* Header & Navigation */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(7, 7, 8, 0.85);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border-color);
}

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

.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
    color: var(--text-primary);
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 1.5rem;
    letter-spacing: -0.5px;
}

.logo-icon {
    width: 36px;
    height: 36px;
    background: var(--accent-red);
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    box-shadow: 0 0 15px var(--accent-red-glow);
}

.logo-icon::before {
    content: 'A';
    font-size: 1.25rem;
    font-weight: 900;
    color: #fff;
}

.logo-text span {
    color: var(--accent-red);
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 0.5rem;
    position: relative;
}

.nav-item {
    position: relative;
}

.nav-link {
    display: block;
    padding: 0.75rem 1.25rem;
    color: var(--text-secondary);
    text-decoration: none;
    font-family: var(--font-heading);
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-radius: 4px;
    transition: var(--transition-smooth);
}

.nav-link:hover, .nav-link.active {
    color: var(--text-primary);
    background: rgba(229, 9, 20, 0.08);
}

.nav-link.active {
    box-shadow: inset 0 -2px 0 var(--accent-red);
}

.cta-btn {
    background: var(--accent-red);
    color: #fff;
    border: none;
    padding: 0.75rem 1.5rem;
    font-family: var(--font-heading);
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 0.5px;
    border-radius: 4px;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(229, 9, 20, 0.3);
    transition: var(--transition-smooth);
}

.cta-btn:hover {
    background: var(--accent-red-light);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(229, 9, 20, 0.5);
}

/* Sections Base */
section {
    padding: 8rem 0 6rem 0;
    min-height: 100vh;
    display: none;
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
}

section.active-section {
    display: block;
    opacity: 1;
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.section-tag {
    color: var(--accent-red);
    text-transform: uppercase;
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 2px;
    margin-bottom: 0.75rem;
    display: inline-block;
}

.section-title {
    font-family: var(--font-serif);
    font-size: 3rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1.25rem;
}

.section-desc {
    color: var(--text-secondary);
    font-size: 1.1rem;
}

/* ------------------- HOME SECTION ------------------- */
.hero-content {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 4rem;
    align-items: center;
    padding-top: 2rem;
}

.hero-text h1 {
    font-family: var(--font-serif);
    font-size: 4.5rem;
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 1.5rem;
}

.hero-text p {
    color: var(--text-secondary);
    font-size: 1.2rem;
    margin-bottom: 2.5rem;
    max-width: 550px;
}

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

.secondary-btn {
    background: transparent;
    color: var(--text-primary);
    border: 1px solid var(--border-color);
    padding: 0.75rem 1.5rem;
    font-family: var(--font-heading);
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.85rem;
    border-radius: 4px;
    cursor: pointer;
    transition: var(--transition-smooth);
}

.secondary-btn:hover {
    border-color: var(--text-primary);
    background: rgba(255, 255, 255, 0.04);
}

/* Hero Interactive Visualizer */
.hero-visual {
    position: relative;
    height: 480px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.visual-globe {
    width: 320px;
    height: 320px;
    border-radius: 50%;
    border: 1px solid rgba(229, 9, 20, 0.15);
    position: relative;
    animation: rotateGlobe 20s linear infinite;
    display: flex;
    align-items: center;
    justify-content: center;
}

.visual-orbit {
    position: absolute;
    border: 1px dashed rgba(255, 255, 255, 0.08);
    border-radius: 50%;
}

.orbit-1 { width: 420px; height: 420px; animation: rotateOrbit 12s linear infinite reverse; }
.orbit-2 { width: 520px; height: 520px; animation: rotateOrbit 18s linear infinite; }

.visual-node {
    position: absolute;
    width: 8px;
    height: 8px;
    background: var(--accent-red);
    border-radius: 50%;
    box-shadow: 0 0 10px var(--accent-red);
}

.node-1 { top: 0; left: 50%; transform: translateX(-50%); }
.node-2 { bottom: 20%; right: 5%; }
.node-3 { top: 30%; left: 3%; }

.visual-core {
    width: 140px;
    height: 140px;
    background: radial-gradient(circle, rgba(229, 9, 20, 0.2) 0%, rgba(7, 7, 8, 0) 70%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.visual-core::after {
    content: '';
    width: 80px;
    height: 80px;
    border: 2px solid var(--accent-red);
    border-radius: 50%;
    box-shadow: inset 0 0 20px var(--accent-red-glow), 0 0 30px var(--accent-red-glow);
    animation: pulseCore 3s ease-in-out infinite alternate;
}

@keyframes rotateGlobe {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

@keyframes rotateOrbit {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

@keyframes pulseCore {
    from { transform: scale(0.95); opacity: 0.6; }
    to { transform: scale(1.1); opacity: 1; }
}

/* Home Stats Banner */
.stats-banner {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    margin-top: 6rem;
    padding: 3rem 2rem;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.stat-item {
    text-align: center;
}

.stat-num {
    font-family: var(--font-heading);
    font-size: 3.5rem;
    font-weight: 800;
    color: #fff;
    margin-bottom: 0.5rem;
    display: block;
}

.stat-label {
    color: var(--text-secondary);
    font-size: 0.95rem;
    text-transform: uppercase;
    font-weight: 600;
    letter-spacing: 1px;
}

/* ------------------- WHY US SECTION ------------------- */
.pillars-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-bottom: 4rem;
}

.pillar-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 3rem 2rem;
    position: relative;
    overflow: hidden;
    transition: var(--transition-smooth);
}

.pillar-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: var(--accent-red);
    transform: scaleX(0);
    transform-origin: left;
    transition: var(--transition-smooth);
}

.pillar-card:hover {
    background: var(--bg-card-hover);
    border-color: var(--border-hover);
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5), 0 0 20px rgba(229, 9, 20, 0.05);
}

.pillar-card:hover::before {
    transform: scaleX(1);
}

.pillar-num {
    font-family: var(--font-heading);
    font-size: 4rem;
    font-weight: 800;
    color: rgba(255, 255, 255, 0.02);
    position: absolute;
    top: 1rem;
    right: 1.5rem;
    transition: var(--transition-smooth);
}

.pillar-card:hover .pillar-num {
    color: rgba(229, 9, 20, 0.06);
}

.pillar-icon {
    font-size: 2.25rem;
    color: var(--accent-red);
    margin-bottom: 1.5rem;
    display: inline-block;
}

.pillar-card h3 {
    font-family: var(--font-heading);
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.pillar-card p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.7;
}

/* Why us info section */
.why-info {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    margin-top: 6rem;
}

.why-info-text h3 {
    font-family: var(--font-serif);
    font-size: 2.25rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
}

.why-info-text p {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
}

.why-features {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.why-feature-item {
    display: flex;
    gap: 1rem;
}

.feature-check {
    color: var(--accent-red);
    font-weight: 900;
    font-size: 1.2rem;
}

.feature-detail h4 {
    font-family: var(--font-heading);
    font-weight: 700;
    margin-bottom: 0.25rem;
}

.feature-detail p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin: 0;
}

/* ------------------- ABOUT US SECTION ------------------- */
.about-story {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 5rem;
    align-items: center;
    margin-bottom: 6rem;
}

.story-text h3 {
    font-family: var(--font-serif);
    font-size: 2.25rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
}

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

.timeline {
    border-left: 1px solid var(--border-color);
    padding-left: 2rem;
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.timeline-item {
    position: relative;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: calc(-2rem - 6px);
    top: 6px;
    width: 11px;
    height: 11px;
    background: var(--bg-primary);
    border: 2px solid var(--accent-red);
    border-radius: 50%;
}

.timeline-year {
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 1.2rem;
    color: var(--accent-red);
    display: block;
    margin-bottom: 0.25rem;
}

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

/* Team Grid styling */
.team-container {
    margin-top: 6rem;
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
}

.team-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    overflow: hidden;
    transition: var(--transition-smooth);
    display: flex;
    flex-direction: column;
}

.team-card:hover {
    border-color: var(--border-hover);
    box-shadow: 0 10px 30px rgba(229, 9, 20, 0.05);
    transform: translateY(-3px);
}

.team-img-wrapper {
    width: 100%;
    padding-top: 115%; /* aspect ratio for portraits */
    position: relative;
    background: #111115;
}

.team-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(100%);
    transition: var(--transition-smooth);
}

.team-card:hover .team-img {
    filter: grayscale(0%);
    transform: scale(1.03);
}

.team-info {
    padding: 1.5rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.team-name {
    font-family: var(--font-heading);
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
}

.team-role {
    color: var(--accent-red);
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 1rem;
}

.team-ex {
    font-size: 0.8rem;
    color: var(--text-secondary);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: 0.75rem;
    margin-top: auto;
    line-height: 1.5;
}

.team-ex strong {
    color: var(--text-muted);
    display: block;
    margin-bottom: 0.25rem;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* ------------------- TYPES OF TESTING SECTION ------------------- */
.testing-nav {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 4rem;
    flex-wrap: wrap;
}

.test-tab-btn {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    padding: 0.75rem 1.5rem;
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-radius: 30px;
    cursor: pointer;
    transition: var(--transition-smooth);
}

.test-tab-btn:hover, .test-tab-btn.active {
    color: #fff;
    border-color: var(--accent-red);
    background: rgba(229, 9, 20, 0.1);
}

.test-group-content {
    display: none;
}

.test-group-content.active-group {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    animation: fadeIn 0.4s ease-in-out;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.test-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 2.5rem 2rem;
    position: relative;
    overflow: hidden;
    cursor: pointer;
    transition: var(--transition-smooth);
    display: flex;
    flex-direction: column;
}

.test-card:hover {
    background: var(--bg-card-hover);
    border-color: var(--border-hover);
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.6);
}

/* Test Physics Animation Background */
.test-anim-bg {
    position: absolute;
    inset: 0;
    z-index: 1;
    opacity: 0.02;
    pointer-events: none;
    transition: var(--transition-smooth);
    overflow: hidden;
}

.test-card:hover .test-anim-bg {
    opacity: 0.15;
}

.test-card-content {
    position: relative;
    z-index: 2;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.test-standard {
    font-family: var(--font-heading);
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--accent-red);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 0.75rem;
}

.test-card h3 {
    font-family: var(--font-heading);
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 1rem;
    line-height: 1.3;
}

.test-card p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.test-explore {
    color: var(--text-primary);
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-top: auto;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: var(--transition-smooth);
}

.test-explore span {
    transition: var(--transition-smooth);
}

.test-card:hover .test-explore {
    color: var(--accent-red-light);
}

.test-card:hover .test-explore span {
    transform: translateX(4px);
}

/* Specific SVG animations for testing card backgrounds */
/* Tensile Strength (Stretching lines) */
.anim-tensile svg line {
    stroke: var(--accent-red);
    stroke-dasharray: 8;
    animation: stretchLine 2s linear infinite;
}
@keyframes stretchLine {
    to { stroke-dashoffset: -16; }
}

/* Hardness (Pressing dot) */
.anim-hardness svg circle {
    fill: var(--accent-red);
    animation: pressCircle 2.5s ease-in-out infinite;
}
@keyframes pressCircle {
    0%, 100% { transform: scale(0.5); opacity: 0.3; }
    50% { transform: scale(1.5); opacity: 1; }
}

/* Mooney (Rotating rings) */
.anim-mooney svg circle {
    stroke: var(--accent-red);
    transform-origin: center;
    animation: rotateMooney 8s linear infinite;
}
@keyframes rotateMooney {
    to { transform: rotate(360deg); }
}

/* Dielectric Strength (Electricity sparks) */
.anim-dielectric svg path {
    stroke: var(--accent-red);
    stroke-dasharray: 40;
    stroke-dashoffset: 40;
    animation: sparkDielectric 1.5s ease-in-out infinite;
}
@keyframes sparkDielectric {
    0%, 100% { stroke-dashoffset: 40; opacity: 0; }
    50% { stroke-dashoffset: 0; opacity: 1; }
}

/* Flammability (Rising fire particles) */
.anim-flammability svg circle {
    fill: var(--accent-red);
    animation: floatFire 2s ease-in infinite;
}
.anim-flammability svg circle:nth-child(2) { animation-delay: 0.4s; }
.anim-flammability svg circle:nth-child(3) { animation-delay: 0.8s; }
@keyframes floatFire {
    0% { transform: translateY(100px) scale(0.5); opacity: 0; }
    50% { opacity: 0.8; }
    100% { transform: translateY(0px) scale(1.5); opacity: 0; }
}

/* Silicon TGA (Weight curve) */
.anim-tga svg path {
    stroke: var(--accent-red);
    stroke-dasharray: 200;
    stroke-dashoffset: 200;
    animation: drawTga 4s cubic-bezier(0.25, 1, 0.5, 1) infinite;
}
@keyframes drawTga {
    to { stroke-dashoffset: 0; }
}

/* ------------------- TEST (DETAILED CATALOG) SECTION ------------------- */
.catalog-layout {
    display: grid;
    grid-template-columns: 320px 1fr;
    gap: 3rem;
    align-items: start;
}

.catalog-sidebar {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 1.5rem;
    position: sticky;
    top: 110px;
}

.catalog-search {
    width: 100%;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid var(--border-color);
    border-radius: 4px;
    padding: 0.75rem 1rem;
    color: #fff;
    font-family: var(--font-body);
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
    transition: var(--transition-smooth);
}

.catalog-search:focus {
    border-color: var(--accent-red);
    outline: none;
    box-shadow: 0 0 10px rgba(229, 9, 20, 0.15);
}

.catalog-menu {
    list-style: none;
}

.catalog-group-title {
    font-family: var(--font-heading);
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-top: 1.5rem;
    margin-bottom: 0.5rem;
    padding-left: 0.5rem;
}

.catalog-group-title:first-child {
    margin-top: 0;
}

.catalog-menu-btn {
    width: 100%;
    text-align: left;
    background: transparent;
    border: none;
    color: var(--text-secondary);
    padding: 0.5rem 0.75rem;
    font-family: var(--font-body);
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    border-radius: 4px;
    transition: var(--transition-smooth);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.catalog-menu-btn:hover, .catalog-menu-btn.active {
    color: #fff;
    background: rgba(229, 9, 20, 0.08);
}

.catalog-menu-btn.active {
    color: var(--accent-red-light);
    font-weight: 600;
    border-left: 2px solid var(--accent-red);
    border-radius: 0 4px 4px 0;
}

.catalog-menu-btn span {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.catalog-content-panel {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 4rem;
    position: relative;
    overflow: hidden;
    min-height: 520px;
}

.detail-header {
    margin-bottom: 2rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    padding-bottom: 2rem;
}

.detail-standard {
    color: var(--accent-red);
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 0.5rem;
    display: block;
}

.detail-title {
    font-family: var(--font-serif);
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.detail-category {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-color);
    border-radius: 4px;
    padding: 0.25rem 0.75rem;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-secondary);
}

.detail-body h4 {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 700;
    margin-top: 2rem;
    margin-bottom: 0.75rem;
}

.detail-body p {
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 1.5rem;
}

/* Physics visualizer canvas area in panel */
.detail-visualizer {
    background: #09090b;
    border: 1px solid rgba(255,255,255,0.03);
    border-radius: 6px;
    height: 240px;
    margin-top: 2rem;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.viz-canvas-wrapper {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.viz-title {
    position: absolute;
    top: 1rem;
    left: 1rem;
    font-size: 0.75rem;
    font-family: var(--font-heading);
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Dynamic CSS anims inside visualizer */
.viz-active-graphics {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ------------------- CAREERS SECTION ------------------- */
.careers-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: start;
}

.career-info h3 {
    font-family: var(--font-serif);
    font-size: 2.25rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
}

.career-info p {
    color: var(--text-secondary);
    margin-bottom: 3rem;
}

.jobs-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.job-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    padding: 2rem;
    transition: var(--transition-smooth);
}

.job-card:hover {
    border-color: var(--border-hover);
    background: var(--bg-card-hover);
}

.job-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.75rem;
}

.job-title {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    font-weight: 700;
}

.job-type {
    background: rgba(229, 9, 20, 0.1);
    color: var(--accent-red-light);
    border: 1px solid rgba(229, 9, 20, 0.2);
    border-radius: 4px;
    padding: 0.15rem 0.5rem;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
}

.job-meta {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 1rem;
    display: flex;
    gap: 1rem;
}

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

/* Careers form styling */
.career-form-container {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 3rem;
}

.career-form-container h3 {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.career-form-container p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 2rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.form-label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.form-input {
    width: 100%;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid var(--border-color);
    border-radius: 4px;
    padding: 0.75rem 1rem;
    color: #fff;
    font-family: var(--font-body);
    font-size: 0.95rem;
    transition: var(--transition-smooth);
}

.form-input:focus {
    border-color: var(--accent-red);
    outline: none;
    box-shadow: 0 0 10px rgba(229, 9, 20, 0.15);
}

select.form-input {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='%23a0a0ab' viewBox='0 0 16 16'%3E%3Cpath d='M7.247 11.14 2.451 5.658C1.885 5.013 2.345 4 3.204 4h9.592a1 1 0 0 1 .753 1.659l-4.796 5.48a1 1 0 0 1-1.506 0z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    padding-right: 2.5rem;
}

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

.form-submit {
    width: 100%;
    margin-top: 1rem;
}

.form-success-msg {
    display: none;
    background: rgba(46, 204, 113, 0.1);
    border: 1px solid rgba(46, 204, 113, 0.2);
    color: #2ecc71;
    border-radius: 4px;
    padding: 1rem;
    font-size: 0.95rem;
    font-weight: 500;
    text-align: center;
    margin-top: 1.5rem;
    animation: fadeIn 0.3s ease-in-out;
}

/* ------------------- CERTIFICATES SECTION ------------------- */
.certificates-section {
    padding: 6rem 0;
    background: var(--bg-secondary);
}

.cert-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.cert-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 3rem 2rem;
    text-align: center;
    position: relative;
    overflow: hidden;
    transition: var(--transition-smooth);
}

.cert-card:hover {
    border-color: var(--border-hover);
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.5);
}

.cert-icon {
    font-size: 3rem;
    color: var(--accent-red);
    margin-bottom: 1.5rem;
}

.cert-card h3 {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
}

.cert-card p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.6;
}

.cert-powergrid-tag {
    position: absolute;
    top: 1rem;
    right: -2rem;
    background: var(--accent-red);
    color: #fff;
    font-size: 0.65rem;
    font-weight: 700;
    padding: 0.25rem 2rem;
    transform: rotate(45deg);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* ------------------- FOOTER SECTION ------------------- */
footer {
    background: #030304;
    border-top: 1px solid var(--border-color);
    padding: 5rem 0 2rem 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr 1fr;
    gap: 4rem;
    margin-bottom: 4rem;
}

.footer-logo-desc p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin-top: 1rem;
    line-height: 1.7;
    max-width: 320px;
}

.footer-title {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 1.5rem;
    position: relative;
    padding-bottom: 0.5rem;
}

.footer-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 30px;
    height: 2px;
    background: var(--accent-red);
}

.footer-links {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.footer-link-item a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.9rem;
    transition: var(--transition-smooth);
}

.footer-link-item a:hover {
    color: #fff;
    padding-left: 4px;
}

.footer-address {
    font-style: normal;
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.8;
}

.footer-address-title {
    color: #fff;
    font-weight: 700;
    display: block;
    margin-bottom: 0.5rem;
}

.footer-contact-info {
    margin-top: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.footer-contact-item {
    display: flex;
    gap: 0.75rem;
    color: var(--text-secondary);
    text-decoration: none;
    transition: var(--transition-smooth);
}

.footer-contact-item:hover {
    color: #fff;
}

.footer-contact-icon {
    color: var(--accent-red);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--text-muted);
    font-size: 0.85rem;
}

.footer-bottom-links {
    display: flex;
    gap: 1.5rem;
}

.footer-bottom-links a {
    color: var(--text-muted);
    text-decoration: none;
    transition: var(--transition-smooth);
}

.footer-bottom-links a:hover {
    color: var(--text-secondary);
}

/* ------------------- RESPONSIVE DESIGN ------------------- */
@media (max-width: 1024px) {
    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 3rem;
    }
    .hero-text h1 {
        font-size: 3.5rem;
    }
    .hero-text p {
        margin-left: auto;
        margin-right: auto;
    }
    .hero-actions {
        justify-content: center;
    }
    .hero-visual {
        height: 380px;
    }
    .pillars-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .about-story {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    .team-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    .test-group-content.active-group {
        grid-template-columns: repeat(2, 1fr);
    }
    .catalog-layout {
        grid-template-columns: 1fr;
    }
    .catalog-sidebar {
        position: static;
        margin-bottom: 2rem;
    }
    .careers-layout {
        grid-template-columns: 1fr;
    }
    .cert-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .nav-menu {
        display: none; /* simple mobile fallback, menu buttons can wrap */
    }
    .stats-banner {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }
    .pillars-grid {
        grid-template-columns: 1fr;
    }
    .why-info {
        grid-template-columns: 1fr;
    }
    .team-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .test-group-content.active-group {
        grid-template-columns: 1fr;
    }
    .cert-grid {
        grid-template-columns: 1fr;
    }
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    .footer-bottom {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
    .section-title {
        font-size: 2.25rem;
    }
}

@media (max-width: 480px) {
    .team-grid {
        grid-template-columns: 1fr;
    }
    .stats-banner {
        grid-template-columns: 1fr;
    }
}
