/* ==========================================================================
   DESIGN SYSTEM & VARIABLES
   ========================================================================== */
:root {
    --bg-base: #0b0f19;
    --bg-surface: #121826;
    --bg-surface-elevated: #1a2236;
    --border-color: rgba(255, 255, 255, 0.08);
    --border-glow: rgba(0, 242, 254, 0.15);
    
    --color-primary: #00f2fe;     /* Neon Cyan */
    --color-primary-hover: #4facfe;
    --color-secondary: #ff9f43;   /* Accent Amber */
    --color-text-main: #f8fafc;
    --color-text-muted: #94a3b8;
    --color-text-dark: #64748b;
    
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --radius-sm: 6px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --shadow-glow: 0 0 20px rgba(0, 242, 254, 0.2);
}

/* ==========================================================================
   RESET & BASE STYLES
   ========================================================================== */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    background-color: var(--bg-base);
    color: var(--color-text-main);
    font-family: var(--font-sans);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

a {
    color: inherit;
    text-decoration: none;
}

button, input, select, textarea {
    font-family: inherit;
    color: inherit;
}

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

/* ==========================================================================
   HEADER NAVIGATION
   ========================================================================== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(11, 15, 25, 0.75);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-color);
    transition: var(--transition-smooth);
}

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

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 800;
    font-size: 1.15rem;
    letter-spacing: -0.025em;
    color: var(--color-text-main);
}

.logo-icon {
    width: 28px;
    height: 28px;
    color: var(--color-primary);
}

.logo span span {
    background: linear-gradient(90deg, var(--color-primary), var(--color-primary-hover));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.nav {
    display: flex;
    align-items: center;
    gap: 24px;
}

.nav-link {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--color-text-muted);
    transition: var(--transition-smooth);
    position: relative;
    padding: 6px 0;
}

.nav-link:hover, .nav-link.active {
    color: var(--color-primary);
}

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

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

.btn-contact-nav {
    background: rgba(0, 242, 254, 0.08);
    border: 1px solid rgba(0, 242, 254, 0.3);
    padding: 8px 16px;
    border-radius: var(--radius-sm);
    color: var(--color-primary);
    font-weight: 600;
    transition: var(--transition-smooth);
}

.btn-contact-nav:hover, .btn-contact-nav.active {
    background: var(--color-primary);
    color: var(--bg-base);
    box-shadow: var(--shadow-glow);
    border-color: var(--color-primary);
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    flex-direction: column;
    gap: 6px;
}

.menu-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background-color: var(--color-text-main);
    transition: var(--transition-smooth);
}

/* Mobile Nav overlay */
.mobile-nav {
    position: fixed;
    top: 72px;
    left: 0;
    width: 100%;
    height: 0;
    background: var(--bg-surface);
    z-index: 999;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 24px;
    transition: height 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border-bottom: 0 solid var(--border-color);
}

.mobile-nav.active {
    height: calc(100vh - 72px);
    border-bottom: 1px solid var(--border-color);
}

.mobile-link {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--color-text-muted);
}

.mobile-link:hover, .mobile-link.active {
    color: var(--color-primary);
}

/* ==========================================================================
   HERO & SUB-HERO PAGE HEADERS
   ========================================================================== */
.hero {
    position: relative;
    padding-top: 140px;
    padding-bottom: 80px;
    background: radial-gradient(circle at 80% 20%, rgba(0, 242, 254, 0.05), transparent 45%);
    overflow: hidden;
}

.hero-bg-grid {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        linear-gradient(rgba(255, 255, 255, 0.015) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.015) 1px, transparent 1px);
    background-size: 40px 40px;
    z-index: 1;
    pointer-events: none;
}

.hero-container {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: 1fr;
    gap: 48px;
    align-items: center;
    text-align: center;
}

.hero-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    max-width: 800px;
    margin: 0 auto;
}

.badge {
    display: inline-block;
    padding: 6px 12px;
    background: rgba(0, 242, 254, 0.08);
    border: 1px solid rgba(0, 242, 254, 0.2);
    border-radius: 50px;
    color: var(--color-primary);
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    margin-bottom: 24px;
    box-shadow: 0 2px 10px rgba(0, 242, 254, 0.05);
}

.hero h1 {
    font-size: 3.25rem;
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -0.02em;
    margin-bottom: 20px;
    background: linear-gradient(135deg, #ffffff 60%, var(--color-text-muted));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-lead {
    font-size: 1.15rem;
    color: var(--color-text-muted);
    margin-bottom: 36px;
    max-width: 720px;
}

.hero-actions {
    display: flex;
    gap: 16px;
    justify-content: center;
    width: 100%;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 28px;
    border-radius: var(--radius-sm);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition-smooth);
    border: 1px solid transparent;
}

.btn-primary {
    background: var(--color-primary);
    color: var(--bg-base);
    box-shadow: var(--shadow-glow);
}

.btn-primary:hover {
    background: var(--color-primary-hover);
    box-shadow: 0 0 30px rgba(0, 242, 254, 0.35);
    transform: translateY(-2px);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.03);
    border-color: var(--border-color);
    color: var(--color-text-main);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

/* Page Headers for Inner Pages */
.page-header {
    background: radial-gradient(circle at 50% 100%, rgba(0, 242, 254, 0.04), transparent 60%);
    padding-top: 140px;
    padding-bottom: 48px;
    border-bottom: 1px solid var(--border-color);
    text-align: center;
}

.page-header h1 {
    font-size: 2.75rem;
    font-weight: 800;
    margin-bottom: 16px;
    letter-spacing: -0.02em;
}

.page-header p {
    color: var(--color-text-muted);
    font-size: 1.1rem;
    max-width: 700px;
    margin: 0 auto;
}

/* Visual Card Mockup */
.hero-visual {
    display: flex;
    justify-content: center;
    position: relative;
}

.hero-visual::after {
    content: '';
    position: absolute;
    width: 250px;
    height: 250px;
    background: radial-gradient(circle, rgba(0, 242, 254, 0.15) 0%, transparent 70%);
    z-index: 1;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    pointer-events: none;
}

.visual-card {
    width: 100%;
    max-width: 460px;
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
    z-index: 2;
    overflow: hidden;
    backdrop-filter: blur(10px);
}

.visual-card-header {
    background: rgba(255, 255, 255, 0.02);
    border-bottom: 1px solid var(--border-color);
    padding: 12px 16px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.visual-card-header .dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    display: inline-block;
}

.visual-card-header .dot:nth-child(1) { background-color: #ff5f56; }
.visual-card-header .dot:nth-child(2) { background-color: #ffbd2e; }
.visual-card-header .dot:nth-child(3) { background-color: #27c93f; }

.visual-title {
    font-size: 0.75rem;
    font-family: monospace;
    color: var(--color-text-dark);
    margin-left: auto;
}

.visual-code-window {
    padding: 20px;
    font-family: 'Courier New', Courier, monospace;
    font-size: 0.85rem;
    line-height: 1.5;
    color: #e2e8f0;
    overflow-x: auto;
    background: #090d16;
}

.code-keyword { color: #f43f5e; }
.code-comment { color: #64748b; }
.code-string { color: #10b981; }

/* ==========================================================================
   STATS BAR (Used on Index)
   ========================================================================== */
.stats-bar {
    background: rgba(25, 34, 54, 0.3);
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
    padding: 32px 0;
}

.stats-container {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    text-align: center;
}

.stat-item {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.stat-number {
    font-size: 2.25rem;
    font-weight: 800;
    color: var(--color-primary);
    line-height: 1;
}

.stat-label {
    font-size: 0.9rem;
    color: var(--color-text-muted);
}

/* ==========================================================================
   SECTION COMMON STYLES
   ========================================================================== */
.section {
    padding: 80px 0;
    border-bottom: 1px solid var(--border-color);
}

.section-header {
    margin-bottom: 60px;
}

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

.section h2 {
    font-size: 2.25rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    margin-bottom: 16px;
}

.section-underline {
    width: 60px;
    height: 4px;
    background: var(--color-primary);
    margin: 0 auto 20px auto;
    border-radius: 2px;
}

.section-desc {
    max-width: 700px;
    margin: 0 auto;
    color: var(--color-text-muted);
    font-size: 1.1rem;
}

/* ==========================================================================
   SOFTWARE CATALOG / PRODUCTS
   ========================================================================== */
.software-section {
    background: radial-gradient(circle at 10% 80%, rgba(255, 159, 67, 0.03), transparent 35%);
}

.software-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.software-card {
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 36px 30px;
    transition: var(--transition-smooth);
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.software-card:hover {
    border-color: var(--color-primary);
    box-shadow: var(--border-glow) 0px 4px 20px;
    transform: translateY(-5px);
}

.card-icon-wrapper {
    background: rgba(0, 242, 254, 0.05);
    border: 1px solid rgba(0, 242, 254, 0.15);
    width: 54px;
    height: 54px;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-primary);
    margin-bottom: 24px;
}

.card-icon {
    width: 26px;
    height: 26px;
}

.software-card h3 {
    font-size: 1.35rem;
    font-weight: 700;
    margin-bottom: 8px;
}

.software-tag {
    color: var(--color-secondary);
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 16px;
}

.software-desc {
    color: var(--color-text-muted);
    font-size: 0.95rem;
    margin-bottom: 24px;
    flex-grow: 1;
}

.software-features {
    list-style: none;
    width: 100%;
    margin-bottom: 30px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.software-features li {
    font-size: 0.9rem;
    color: var(--color-text-main);
    display: flex;
    gap: 10px;
    align-items: flex-start;
}

.software-features li span {
    color: var(--color-primary);
    font-weight: bold;
}

.btn-card {
    width: 100%;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-color);
    color: var(--color-text-main);
    padding: 10px 0;
}

.btn-card:hover {
    background: rgba(0, 242, 254, 0.05);
    border-color: var(--color-primary);
    color: var(--color-primary);
}

/* ==========================================================================
   ENGINEERING TOOLS PAGE LAYOUT & TABS
   ========================================================================== */
.tools-container-grid {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 36px;
    align-items: start;
}

.tabs-nav {
    display: flex;
    flex-direction: column;
    gap: 8px;
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    padding: 16px;
    border-radius: var(--radius-md);
}

.tab-btn {
    background: none;
    border: 1px solid transparent;
    padding: 14px 18px;
    text-align: left;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--color-text-muted);
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: var(--transition-smooth);
    display: flex;
    align-items: center;
    gap: 12px;
}

.tab-btn:hover {
    color: var(--color-primary);
    background: rgba(0, 242, 254, 0.03);
}

.tab-btn.active {
    color: var(--color-primary);
    background: rgba(0, 242, 254, 0.08);
    border-color: rgba(0, 242, 254, 0.25);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.tab-icon {
    width: 18px;
    height: 18px;
}

.calc-panel {
    display: none;
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 40px;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
    animation: fadeIn 0.3s ease;
}

.calc-panel.active {
    display: block;
}

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

.panel-header-desc {
    color: var(--color-text-muted);
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border-color);
    font-size: 0.95rem;
}

/* Two-column form layout inside calculation panels */
.calc-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}

/* ==========================================================================
   METALLURGICAL DIRECTORY SPECIFIC STYLES
   ========================================================================== */
.profile-table-wrapper {
    margin-top: 24px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    overflow: hidden;
}

.profile-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
    text-align: left;
}

.profile-table th, .profile-table td {
    padding: 10px 14px;
    border-bottom: 1px solid var(--border-color);
}

.profile-table th {
    background-color: var(--bg-surface-elevated);
    color: var(--color-text-muted);
    font-weight: 600;
}

.profile-table tr:last-child td {
    border-bottom: none;
}

.profile-table td.highlight {
    color: var(--color-primary);
    font-weight: 600;
}

/* Profile Preview Dimensions box */
.profile-dimensions {
    font-family: monospace;
    font-size: 0.85rem;
    color: var(--color-text-muted);
    display: flex;
    flex-direction: column;
    gap: 6px;
    background: rgba(255, 255, 255, 0.02);
    padding: 16px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border-color);
}

.profile-dimensions span span {
    color: var(--color-text-main);
    font-weight: bold;
}

/* ==========================================================================
   CALCULATORS RESULTS LAYOUTS
   ========================================================================== */
.calc-side-results {
    background: var(--bg-surface-elevated);
    border-radius: var(--radius-md);
    padding: 30px;
    border: 1px solid rgba(255, 255, 255, 0.03);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.formula-display {
    background: rgba(0, 0, 0, 0.2);
    border-radius: var(--radius-sm);
    padding: 14px;
    text-align: center;
    font-family: monospace;
    font-size: 0.9rem;
    color: var(--color-secondary);
    border: 1px solid var(--border-color);
    margin-bottom: 24px;
}

/* Visual gauges for calculation results (Ok vs Danger) */
.validation-gauge {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 16px;
    background: rgba(255, 255, 255, 0.02);
    padding: 16px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border-color);
}

.gauge-header {
    display: flex;
    justify-content: space-between;
    font-weight: 600;
    font-size: 0.9rem;
}

.gauge-bar-outer {
    height: 10px;
    width: 100%;
    background-color: var(--bg-base);
    border-radius: 50px;
    overflow: hidden;
    position: relative;
    border: 1px solid var(--border-color);
}

.gauge-bar-inner {
    height: 100%;
    width: 0%;
    background-color: #10b981; /* Green by default */
    border-radius: 50px;
    transition: width 0.3s ease, background-color 0.3s ease;
}

.gauge-bar-inner.danger {
    background-color: #ef4444;
}

.gauge-bar-inner.warning {
    background-color: #ff9f43;
}

.validation-text {
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.02em;
    text-align: center;
}

.validation-text.ok {
    color: #10b981;
}

.validation-text.danger {
    color: #ef4444;
}

/* ==========================================================================
   TEAM PAGE SPECIFIC STYLES
   ========================================================================== */
.team-section {
    background: radial-gradient(circle at 90% 90%, rgba(0, 242, 254, 0.02), transparent 40%);
}

.team-grid {
    display: grid;
    grid-template-columns: 1.3fr 0.7fr;
    gap: 40px;
}

.team-card {
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    overflow: hidden;
    display: grid;
    grid-template-columns: 280px 1.5fr 1.1fr;
    transition: var(--transition-smooth);
}

.team-card:hover {
    border-color: rgba(255, 255, 255, 0.15);
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

.team-photo-wrapper {
    width: 100%;
    background: var(--bg-surface-elevated);
    position: relative;
    border-right: 1px solid var(--border-color);
    overflow: hidden;
}

.team-photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.badge-founder {
    position: absolute;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--color-primary);
    color: var(--bg-base);
    font-size: 0.75rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 6px 16px;
    border-radius: 50px;
    box-shadow: var(--shadow-glow);
    white-space: nowrap;
}

.team-card-content {
    padding: 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.team-card h3 {
    font-size: 1.6rem;
    font-weight: 800;
    margin-bottom: 8px;
}

.member-role {
    color: var(--color-primary);
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 20px;
}

.member-bio {
    color: var(--color-text-muted);
    font-size: 0.95rem;
    margin-bottom: 24px;
}

.member-skills {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.skill-tag {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-color);
    padding: 4px 10px;
    border-radius: var(--radius-sm);
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--color-text-muted);
}

/* Collaborative Model Card */
.collab-model {
    flex-direction: column;
    padding: 40px;
    background: linear-gradient(135deg, var(--bg-surface) 0%, rgba(25, 34, 54, 0.3) 100%);
    justify-content: center;
    align-items: center;
}

.collab-icon-wrapper {
    background: rgba(255, 159, 67, 0.05);
    border: 1px solid rgba(255, 159, 67, 0.2);
    width: 68px;
    height: 68px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-secondary);
    margin-bottom: 24px;
}

.collab-svg-icon {
    width: 32px;
    height: 32px;
}

.collab-model h3 {
    text-align: center;
}

.collab-model .member-role {
    color: var(--color-secondary);
    text-align: center;
    margin-bottom: 16px;
}

.collab-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 12px;
    width: 100%;
}

.collab-list li {
    font-size: 0.85rem;
    color: var(--color-text-main);
    display: flex;
    gap: 8px;
    align-items: flex-start;
}

.collab-list li span {
    color: var(--color-secondary);
    font-weight: bold;
}

/* Placeholder for additional team members */
.future-members {
    margin-top: 48px;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
}

.placeholder-card {
    background: rgba(255, 255, 255, 0.01);
    border: 2px dashed var(--border-color);
    border-radius: var(--radius-lg);
    padding: 40px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    min-height: 250px;
    color: var(--color-text-dark);
}

.placeholder-card svg {
    width: 48px;
    height: 48px;
    margin-bottom: 16px;
}

.placeholder-card h4 {
    color: var(--color-text-muted);
    font-size: 1.1rem;
    margin-bottom: 8px;
}

.placeholder-card p {
    font-size: 0.85rem;
    max-width: 280px;
}

/* ==========================================================================
   REVIEWS & AWARDS (Used on index and team)
   ========================================================================== */
.reviews-section {
    background: radial-gradient(circle at 10% 10%, rgba(0, 242, 254, 0.02), transparent 45%);
}

.reviews-awards-grid {
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: 48px;
}

.reviews-wrapper h3, .certs-wrapper h3 {
    font-size: 1.35rem;
    font-weight: 700;
    margin-bottom: 24px;
    color: var(--color-text-main);
    border-left: 3px solid var(--color-primary);
    padding-left: 12px;
}

/* Carousel */
.carousel-container {
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 40px;
    position: relative;
    overflow: hidden;
}

.carousel-slides {
    position: relative;
    min-height: 220px;
}

.carousel-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.5s ease, visibility 0.5s ease;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.carousel-slide.active {
    opacity: 1;
    visibility: visible;
    position: relative;
}

.quote-icon {
    font-size: 4rem;
    color: rgba(0, 242, 254, 0.1);
    font-family: Georgia, serif;
    position: absolute;
    top: -20px;
    left: -10px;
    line-height: 1;
    z-index: 1;
}

.review-text {
    font-size: 1rem;
    color: var(--color-text-muted);
    font-style: italic;
    line-height: 1.7;
    position: relative;
    z-index: 2;
    margin-bottom: 24px;
}

.review-author {
    border-top: 1px solid var(--border-color);
    padding-top: 16px;
}

.author-name {
    display: block;
    font-weight: 600;
    color: var(--color-text-main);
    font-size: 0.95rem;
}

.author-role {
    display: block;
    color: var(--color-primary);
    font-size: 0.8rem;
    font-weight: 600;
    margin-top: 2px;
}

.carousel-controls {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 24px;
    border-top: 1px solid var(--border-color);
    padding-top: 16px;
}

.carousel-btn {
    background: none;
    border: none;
    color: var(--color-text-muted);
    font-size: 1.25rem;
    cursor: pointer;
    transition: var(--transition-smooth);
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    border: 1px solid var(--border-color);
}

.carousel-btn:hover {
    color: var(--color-primary);
    border-color: var(--color-primary);
    background: rgba(0, 242, 254, 0.05);
}

.carousel-dots {
    display: flex;
    gap: 8px;
}

.carousel-dots .dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: var(--bg-surface-elevated);
    cursor: pointer;
    transition: var(--transition-smooth);
}

.carousel-dots .dot.active {
    background-color: var(--color-primary);
    transform: scale(1.2);
}

/* Certificate Card */
.certs-wrapper {
    display: flex;
    flex-direction: column;
}

.cert-card {
    position: relative;
    border-radius: var(--radius-md);
    overflow: hidden;
    border: 1px solid var(--border-color);
    box-shadow: 0 10px 20px rgba(0,0,0,0.3);
    cursor: pointer;
    aspect-ratio: 4 / 3;
    background: var(--bg-surface);
}

.cert-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
    transition: var(--transition-smooth);
}

.cert-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(11, 15, 25, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: var(--transition-smooth);
    backdrop-filter: blur(4px);
}

.cert-overlay span {
    background: var(--color-primary);
    color: var(--bg-base);
    padding: 10px 20px;
    border-radius: var(--radius-sm);
    font-weight: 700;
    font-size: 0.9rem;
    box-shadow: var(--shadow-glow);
    transform: translateY(10px);
    transition: var(--transition-smooth);
}

.cert-card:hover .cert-image {
    transform: scale(1.05);
}

.cert-card:hover .cert-overlay {
    opacity: 1;
}

.cert-card:hover .cert-overlay span {
    transform: translateY(0);
}

.cert-caption {
    font-size: 0.85rem;
    color: var(--color-text-muted);
    margin-top: 14px;
    line-height: 1.5;
}

/* Modal */
.cert-modal {
    display: none;
    position: fixed;
    z-index: 1010;
    padding-top: 60px;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(11, 15, 25, 0.95);
    backdrop-filter: blur(8px);
}

.modal-content {
    margin: auto;
    display: block;
    max-width: 90%;
    max-height: 80vh;
    object-fit: contain;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    animation-name: zoom;
    animation-duration: 0.3s;
}

@keyframes zoom {
    from {transform: scale(0.9); opacity: 0;}
    to {transform: scale(1); opacity: 1;}
}

.modal-close {
    position: absolute;
    top: 20px;
    right: 35px;
    color: #f1f1f1;
    font-size: 40px;
    font-weight: bold;
    transition: var(--transition-smooth);
    cursor: pointer;
}

.modal-close:hover,
.modal-close:focus {
    color: var(--color-primary);
}

.modal-caption {
    margin: auto;
    display: block;
    width: 80%;
    max-width: 700px;
    text-align: center;
    color: #ccc;
    padding: 10px 0;
    height: 150px;
    font-size: 0.95rem;
}

/* Modal Navigation Arrows */
.modal-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    color: #fff;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    user-select: none;
    z-index: 1012;
    padding: 16px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 50%;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s, transform 0.2s, color 0.2s;
}

.modal-nav:hover {
    background: rgba(0, 242, 254, 0.4);
    color: var(--color-primary);
}

.modal-prev {
    left: 40px;
}

.modal-next {
    right: 40px;
}

@media (max-width: 768px) {
    .modal-nav {
        font-size: 30px;
        width: 44px;
        height: 44px;
        padding: 10px;
    }
    .modal-prev {
        left: 10px;
    }
    .modal-next {
        right: 10px;
    }
}

/* ==========================================================================
   CONTACTS SECTION / PAGE
   ========================================================================== */
.contacts-section {
    background: radial-gradient(circle at 50% 90%, rgba(0, 242, 254, 0.05), transparent 45%);
}

.contacts-grid {
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    gap: 48px;
}

.contacts-info h3, .contacts-form-wrapper h3 {
    font-size: 1.35rem;
    font-weight: 700;
    margin-bottom: 20px;
}

.contacts-intro {
    color: var(--color-text-muted);
    font-size: 0.95rem;
    margin-bottom: 30px;
}

.contact-links {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-bottom: 36px;
}

.contact-item-link {
    display: flex;
    align-items: center;
    gap: 16px;
    color: var(--color-text-muted);
    font-size: 1rem;
    transition: var(--transition-smooth);
    padding: 12px 16px;
    border-radius: var(--radius-sm);
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
}

.contact-item-link:not(.static-item):hover {
    color: var(--color-primary);
    border-color: var(--color-primary);
    background: rgba(0, 242, 254, 0.02);
    transform: translateX(5px);
}

.contact-icon {
    width: 20px;
    height: 20px;
    color: var(--color-primary);
}

.contact-item-link.static-item .contact-icon {
    color: var(--color-secondary);
}

.requisites {
    background: rgba(255, 255, 255, 0.01);
    border: 1px dashed var(--border-color);
    padding: 24px;
    border-radius: var(--radius-md);
}

.requisites h4 {
    font-size: 0.95rem;
    margin-bottom: 12px;
    color: var(--color-text-main);
}

.requisites p {
    font-size: 0.85rem;
    color: var(--color-text-muted);
    margin-bottom: 6px;
}

.requisites p strong {
    color: var(--color-text-main);
}

.contacts-form-wrapper {
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    padding: 40px;
    border-radius: var(--radius-lg);
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.btn-block {
    width: 100%;
}

.form-status {
    font-size: 0.9rem;
    text-align: center;
    margin-top: 8px;
    transition: var(--transition-smooth);
    min-height: 20px;
}

.form-status.success {
    color: #10b981;
}

.form-status.error {
    color: #ef4444;
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
.footer {
    background: #060910;
    border-top: 1px solid var(--border-color);
    padding: 40px 0;
    color: var(--color-text-dark);
    font-size: 0.85rem;
}

.footer-container {
    display: flex;
    flex-direction: column;
    gap: 12px;
    align-items: center;
    text-align: center;
}

.footer-subtext {
    max-width: 800px;
    font-size: 0.75rem;
    line-height: 1.5;
}

/* ==========================================================================
   RESPONSIVE DESIGN (MEDIA QUERIES)
   ========================================================================== */
@media (max-width: 1024px) {
    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 40px;
    }
    
    .hero-content {
        align-items: center;
    }
    
    .hero-actions {
        justify-content: center;
    }
    
    .hero h1 {
        font-size: 2.75rem;
    }
    
    .software-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .tools-container-grid {
        grid-template-columns: 1fr;
    }
    
    .tabs-nav {
        flex-direction: row;
        overflow-x: auto;
        padding: 12px;
    }
    
    .tab-btn {
        padding: 10px 14px;
        font-size: 0.85rem;
        white-space: nowrap;
    }
    
    .calc-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }
    
    .team-grid {
        grid-template-columns: 1fr;
    }
    
    .future-members {
        grid-template-columns: 1fr;
    }
    
    .reviews-awards-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .contacts-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
}

@media (max-width: 768px) {
    .nav {
        display: none;
    }
    
    .menu-toggle {
        display: flex;
    }
    
    .stats-container {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
    
    .software-grid {
        grid-template-columns: 1fr;
    }
    
    .main-member {
        flex-direction: column;
    }
    
    .team-photo-wrapper {
        width: 100%;
        height: 320px;
        border-right: none;
        border-bottom: 1px solid var(--border-color);
    }
    
    .team-card-content {
        padding: 30px;
    }
    
    .carousel-container {
        padding: 30px 20px;
    }
    
    .carousel-slides {
        min-height: 280px;
    }
    
    .contacts-form-wrapper {
        padding: 30px 20px;
    }
}

@media (max-width: 480px) {
    .hero h1 {
        font-size: 2.25rem;
    }
    
    .hero-actions {
        flex-direction: column;
        width: 100%;
    }
    
    .btn {
        width: 100%;
    }
    
    .stats-container {
        grid-template-columns: 1fr;
    }
    
    .calc-panel {
        padding: 24px 16px;
    }
    
    .calc-side-results {
        padding: 20px 16px;
    }
    
    .profile-preview-wrapper {
        flex-direction: column;
        gap: 16px;
    }
    
    .result-highlight-row {
        flex-direction: column;
        gap: 8px;
        text-align: center;
    }
}

/* ==========================================================================
   PFG CARD GALLERY & DOWNLOAD BUTTONS
   ========================================================================== */
.pfg-gallery {
    display: flex;
    gap: 8px;
    margin-bottom: 20px;
    width: 100%;
}

.pfg-thumb {
    width: calc(33.333% - 5px);
    aspect-ratio: 4 / 3;
    object-fit: cover;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border-color);
    cursor: pointer;
    transition: var(--transition-smooth);
}

.pfg-thumb:hover {
    transform: scale(1.05);
    border-color: var(--color-primary);
    box-shadow: 0 0 10px rgba(0, 242, 254, 0.2);
}

.download-buttons {
    display: flex;
    flex-direction: column;
    gap: 8px;
    width: 100%;
    margin-bottom: 12px;
}

.btn-download {
    background: rgba(0, 242, 254, 0.05);
    border: 1px dashed rgba(0, 242, 254, 0.3);
    color: var(--color-primary);
    font-size: 0.85rem;
    padding: 10px 14px;
    width: 100%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: var(--transition-smooth);
}

.btn-download:hover {
    background: var(--color-primary);
    color: var(--bg-base);
    border-style: solid;
    box-shadow: var(--shadow-glow);
}

.dl-icon {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}

/* ==========================================================================
   WIDE PRODUCT CARDS
   ========================================================================== */
.software-list {
    display: flex;
    flex-direction: column;
    gap: 40px;
    width: 100%;
}

.software-wide-card {
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 40px;
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 48px;
    transition: var(--transition-smooth);
    align-items: center;
}

.software-wide-card:hover {
    border-color: var(--color-primary);
    box-shadow: var(--border-glow) 0px 10px 30px;
}

/* Card Visual Column */
.card-visual-column {
    width: 100%;
    position: relative;
}

.card-carousel {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    border-radius: var(--radius-md);
    overflow: hidden;
    border: 1px solid var(--border-color);
    background: #090d16;
}

.card-carousel-slides {
    position: relative;
    width: 100%;
    height: 100%;
}

.card-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.5s ease, visibility 0.5s ease;
    cursor: pointer;
}

.card-slide.active {
    opacity: 1;
    visibility: visible;
}

.card-carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(11, 15, 25, 0.85);
    border: 1px solid var(--border-color);
    color: var(--color-text-main);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    transition: var(--transition-smooth);
    z-index: 10;
}

.card-carousel-btn:hover {
    background: var(--color-primary);
    color: var(--bg-base);
    border-color: var(--color-primary);
    box-shadow: var(--shadow-glow);
}

.card-carousel-prev {
    left: 16px;
}

.card-carousel-next {
    right: 16px;
}

.card-carousel-dots {
    position: absolute;
    bottom: 16px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 10;
}

.card-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    cursor: pointer;
    transition: var(--transition-smooth);
}

.card-dot.active {
    background: var(--color-primary);
    transform: scale(1.2);
}

/* Card Info Column */
.card-info-column {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    width: 100%;
}

.card-info-column h3 {
    font-size: 1.85rem;
    font-weight: 800;
    margin-bottom: 8px;
}

.card-info-column .software-tag {
    color: var(--color-secondary);
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 0.05em;
    margin-bottom: 16px;
}

.card-info-column .software-desc {
    font-size: 0.95rem;
    color: var(--color-text-muted);
    margin-bottom: 24px;
    line-height: 1.6;
}

.card-info-column .software-features {
    margin-bottom: 24px;
}

.card-info-column .download-buttons {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 12px;
    width: 100%;
    margin-bottom: 20px;
}

.card-info-column .download-buttons .btn-download {
    width: auto;
    flex-grow: 1;
    min-width: 220px;
}

@media (max-width: 1024px) {
    .software-wide-card {
        grid-template-columns: 1fr;
        gap: 32px;
        padding: 30px;
    }
}

/* ==========================================================================
   TEAM CARDS RESPONSIVE GRID LAYOUT
   ========================================================================== */
.team-list {
    display: flex;
    flex-direction: column;
    gap: 40px;
    width: 100%;
}

.team-awards-wrapper {
    padding: 30px;
    border-left: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    justify-content: center;
    background: rgba(0, 0, 0, 0.05);
}

@media (max-width: 1024px) {
    .team-card {
        grid-template-columns: 240px 1fr;
    }
    .team-awards-wrapper {
        grid-column: span 2;
        border-left: none;
        border-top: 1px solid var(--border-color);
    }
}

@media (max-width: 768px) {
    .team-card {
        grid-template-columns: 1fr;
    }
    .team-photo-wrapper {
        border-right: none;
        border-bottom: 1px solid var(--border-color);
        height: 280px;
    }
    .team-awards-wrapper {
        grid-column: span 1;
    }
}




