/* CSS/style.css - COMPLETE CORRECTED VERSION */

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #003366;
    --secondary-color: #d4af37;
    --dark-color: #001a33;
    --light-color: #f8f9fa;
    --text-color: #333;
    --text-light: #666;
    --white: #fff;
    --font-heading: 'Forum', serif;
    --font-body: 'Montserrat', sans-serif;
    --transition: all 0.3s ease;
    --shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    --shadow-heavy: 0 10px 30px rgba(0, 0, 0, 0.15);
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-color);
    overflow-x: hidden;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: normal;
    line-height: 1.2;
    margin-bottom: 1rem;
}

p {
    margin-bottom: 1rem;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

.btn {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 4px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: var(--transition);
    border: none;
    cursor: pointer;
    font-size: 14px;
}

.btn-primary {
    background-color: var(--primary-color);
    color: var(--white);
}

.btn-primary:hover {
    background-color: var(--dark-color);
    transform: translateY(-3px);
    box-shadow: var(--shadow);
}

.btn-secondary {
    background-color: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.btn-secondary:hover {
    background-color: var(--primary-color);
    color: var(--white);
    transform: translateY(-3px);
    box-shadow: var(--shadow);
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-title {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.section-subtitle {
    font-size: 1.2rem;
    color: var(--text-light);
    max-width: 700px;
    margin: 0 auto;
}

/* Header Styles */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: rgba(255, 255, 255, 0.95);
    box-shadow: var(--shadow);
    z-index: 1000;
    transition: var(--transition);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
}

.logo img {
    height: 50px;
    transition: var(--transition);
}

.nav-list {
    display: flex;
    list-style: none;
}

.nav-list li {
    margin-left: 30px;
}

.nav-list a {
    font-weight: 500;
    position: relative;
    padding: 5px 0;
}

.nav-list a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--secondary-color);
    transition: var(--transition);
}

.nav-list a:hover::after,
.nav-list a.active::after {
    width: 100%;
}

.nav-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.nav-toggle span {
    width: 25px;
    height: 3px;
    background-color: var(--primary-color);
    margin: 3px 0;
    transition: var(--transition);
}

/* Hero Section */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    overflow: hidden;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--dark-color) 100%);
    color: var(--white);
    padding-top: 80px;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

#particles-js {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.3);
}

.hero .container {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.hero-content {
    flex: 1;
    max-width: 600px;
}

.hero-title {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 1s ease forwards 0.5s;
}

.hero-subtitle {
    font-size: 1.3rem;
    margin-bottom: 2.5rem;
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 1s ease forwards 0.7s;
}

.hero-buttons {
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 1s ease forwards 0.9s;
}

.hero-buttons .btn {
    margin-right: 15px;
    margin-bottom: 10px;
}

.hero-visual {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    height: 500px;
}

.floating-elements {
    position: relative;
    width: 100%;
    height: 100%;
}

.element {
    position: absolute;
    width: 160px;
    height: 60px;
    border-radius: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    animation: float 6s ease-in-out infinite;
    padding: 0 20px;
}

.service-title {
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-weight: 600;
    font-size: 1rem;
    white-space: nowrap;
}

.star-icon {
    width: 20px;
    height: 20px;
    margin-right: 8px;
    filter: brightness(0) saturate(100%) invert(82%) sepia(39%) saturate(527%) hue-rotate(3deg) brightness(92%) contrast(91%);
}

.element-1 {
    top: 20%;
    left: 10%;
    animation-delay: 0s;
}

.element-2 {
    top: 60%;
    left: 15%;
    animation-delay: 1.5s;
}

.element-3 {
    top: 35%;
    right: 10%;
    animation-delay: 3s;
}

.element-4 {
    top: 75%;
    right: 15%;
    animation-delay: 4.5s;
}

/* About Section */
.about {
    padding: 100px 0;
    background-color: var(--light-color);
}

.about-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 60px;
}

.about-text {
    flex: 1;
    max-width: 500px;
}

.about-text p {
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
}

.founder-info {
    display: flex;
    align-items: center;
    margin-top: 30px;
    padding: 20px;
    background: var(--white);
    border-radius: 8px;
    box-shadow: var(--shadow);
}

.founder-avatar {
    margin-right: 20px;
    flex-shrink: 0;
}

.founder-avatar img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--secondary-color);
}

.founder-details h4 {
    margin-bottom: 5px;
    color: var(--primary-color);
}

.founder-details p {
    margin-bottom: 5px;
    font-size: 0.9rem;
    color: var(--text-light);
}

.founder-details a {
    color: var(--primary-color);
    font-size: 0.9rem;
    display: block;
    margin-bottom: 5px;
}

.linkedin-link {
    color: #0077b5 !important;
    font-weight: 600;
}

.about-visual {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    height: 400px;
}

.globe-container {
    position: relative;
    width: 300px;
    height: 300px;
}

.globe {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: radial-gradient(circle at 30% 30%, var(--primary-color), var(--dark-color));
    box-shadow: inset 0 0 50px rgba(0, 0, 0, 0.5), 0 0 50px rgba(0, 51, 102, 0.3);
    position: relative;
    overflow: hidden;
    animation: rotate 20s linear infinite;
}

.globe::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 20% 30%, transparent 60%, rgba(255,255,255,0.1) 100%),
        linear-gradient(90deg, transparent 48%, rgba(255,255,255,0.1) 50%, transparent 52%);
}

.location-pin {
    position: absolute;
    width: 12px;
    height: 12px;
    background-color: var(--secondary-color);
    border-radius: 50%;
    animation: pulse 2s infinite;
}

.location-pin::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background-color: rgba(212, 175, 55, 0.3);
    animation: pulse 2s infinite 0.5s;
}

.location-pin span {
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    white-space: nowrap;
    font-size: 0.8rem;
    background: var(--white);
    padding: 5px 10px;
    border-radius: 4px;
    box-shadow: var(--shadow);
    opacity: 0;
    transition: var(--transition);
    color: var(--text-color);
}

.location-pin:hover span {
    opacity: 1;
}

.pin-1 {
    top: 40%;
    left: 25%;
}

.pin-2 {
    top: 55%;
    left: 50%;
}

.pin-3 {
    top: 30%;
    right: 20%;
}

/* Services Preview */
.services-preview {
    padding: 100px 0;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.service-card {
    background: var(--white);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    text-align: center;
    padding: 40px 30px;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-heavy);
}

.service-logo {
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

.service-logo img {
    max-height: 100%;
    max-width: 100%;
}

.service-content h3 {
    color: var(--primary-color);
    margin-bottom: 15px;
}

.service-content p {
    margin-bottom: 20px;
    color: var(--text-light);
}

.service-link {
    color: var(--primary-color);
    font-weight: 600;
    position: relative;
}

.service-link::after {
    content: '→';
    margin-left: 5px;
    transition: var(--transition);
}

.service-link:hover::after {
    margin-left: 10px;
}

/* Innovation Section */
.innovation {
    padding: 100px 0;
    background-color: var(--light-color);
}

.innovation-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 60px;
}

.innovation-text {
    flex: 1;
    max-width: 500px;
}

.innovation-features {
    margin-top: 40px;
}

.feature {
    display: flex;
    margin-bottom: 30px;
    align-items: flex-start;
}

.feature-icon {
    margin-right: 20px;
    flex-shrink: 0;
}

.feature-icon img {
    width: 40px;
    height: 40px;
}

.feature-content h3 {
    color: var(--primary-color);
    margin-bottom: 10px;
}

.feature-content p {
    color: var(--text-light);
}

.innovation-visual {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    height: 400px;
}

.ai-visualization {
    position: relative;
    width: 300px;
    height: 300px;
}

.neural-network {
    position: relative;
    width: 100%;
    height: 100%;
}

.node {
    position: absolute;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background-color: var(--primary-color);
    animation: glow 2s infinite alternate;
}

.node-1 {
    top: 20%;
    left: 20%;
    animation-delay: 0s;
}

.node-2 {
    top: 20%;
    right: 20%;
    animation-delay: 0.3s;
}

.node-3 {
    bottom: 20%;
    left: 20%;
    animation-delay: 0.6s;
}

.node-4 {
    bottom: 20%;
    right: 20%;
    animation-delay: 0.9s;
}

.node-5 {
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 30px;
    height: 30px;
    background-color: var(--secondary-color);
    animation-delay: 1.2s;
}

.connection {
    position: absolute;
    height: 2px;
    background: linear-gradient(to right, var(--primary-color), var(--secondary-color));
    transform-origin: 0 0;
    animation: pulse 3s infinite;
}

.connection:nth-child(6) {
    top: 20%;
    left: 20%;
    width: 60%;
    transform: rotate(45deg);
    animation-delay: 0s;
}

.connection:nth-child(7) {
    top: 20%;
    right: 20%;
    width: 60%;
    transform: rotate(-45deg);
    animation-delay: 0.5s;
}

.connection:nth-child(8) {
    bottom: 20%;
    left: 20%;
    width: 60%;
    transform: rotate(-45deg);
    animation-delay: 1s;
}

.connection:nth-child(9) {
    bottom: 20%;
    right: 20%;
    width: 60%;
    transform: rotate(45deg);
    animation-delay: 1.5s;
}

/* CTA Section */
.cta {
    padding: 100px 0;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--dark-color) 100%);
    color: var(--white);
    text-align: center;
}

.cta-content h2 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
}

.cta-content p {
    font-size: 1.2rem;
    max-width: 700px;
    margin: 0 auto 2.5rem;
}

.cta-buttons .btn {
    margin: 0 10px 10px;
}

/* Footer */
.footer {
    background-color: var(--dark-color);
    color: var(--white);
    padding: 70px 0 0;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    margin-bottom: 50px;
}

.footer-logo img {
    height: 50px;
    margin-bottom: 20px;
}

.footer-section h4 {
    color: var(--secondary-color);
    margin-bottom: 20px;
    font-size: 1.2rem;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a:hover {
    color: var(--secondary-color);
}

.footer-contact li {
    margin-bottom: 10px;
}

.footer-contact a:hover {
    color: var(--secondary-color);
}

.social-links {
    display: flex;
    margin-top: 20px;
    gap: 10px;
}

.social-link {
    padding: 8px 15px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    font-size: 0.9rem;
}

.social-link:hover {
    background: var(--secondary-color);
    color: var(--dark-color);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 20px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.footer-legal a {
    margin-left: 20px;
}

.footer-legal a:hover {
    color: var(--secondary-color);
}

/* Page Header for Inner Pages */
.page-header {
    padding: 140px 0 60px;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--dark-color) 100%);
    color: var(--white);
    text-align: center;
}

.page-title {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.page-subtitle {
    font-size: 1.3rem;
    max-width: 600px;
    margin: 0 auto;
    opacity: 0.9;
}

/* Services Details Page */
.services-details {
    padding: 80px 0;
}

.service-detail {
    display: flex;
    margin-bottom: 100px;
    padding: 60px 0;
    border-bottom: 1px solid #eee;
    gap: 60px;
    align-items: flex-start;
}

.service-detail:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.service-detail-content {
    flex: 1;
    min-width: 0;
}

.service-header {
    display: flex;
    align-items: center;
    margin-bottom: 30px;
    flex-wrap: wrap;
    gap: 20px;
}

.service-logo {
    margin-right: 0;
}

.service-logo img {
    height: 80px;
    width: auto;
}

.service-title-content {
    flex: 1;
    min-width: 200px;
}

.service-title-content h2 {
    color: var(--primary-color);
    margin-bottom: 8px;
    font-size: 2.2rem;
}

.service-title-content p {
    color: var(--text-light);
    font-size: 1.1rem;
    margin-bottom: 0;
}

.service-description {
    margin-bottom: 30px;
}

.service-description p {
    font-size: 1.1rem;
    line-height: 1.7;
    margin-bottom: 20px;
    color: var(--text-color);
}

.service-features {
    margin-top: 30px;
}

.service-features h3 {
    color: var(--primary-color);
    margin-bottom: 25px;
    font-size: 1.5rem;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
}

.feature-item {
    display: flex;
    align-items: flex-start;
    padding: 15px;
    background: var(--light-color);
    border-radius: 8px;
    transition: var(--transition);
}

.feature-item:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow);
}

.feature-icon {
    margin-right: 15px;
    flex-shrink: 0;
}

.feature-icon img {
    width: 24px;
    height: 24px;
}

.feature-text {
    flex: 1;
}

.feature-text h4 {
    margin-bottom: 8px;
    color: var(--dark-color);
    font-size: 1.1rem;
}

.feature-text p {
    margin-bottom: 0;
    color: var(--text-light);
    font-size: 0.95rem;
    line-height: 1.5;
}

.service-visual {
    flex: 0 0 400px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.visual-placeholder {
    width: 100%;
    height: 300px;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--dark-color) 100%);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-heavy);
    position: relative;
    overflow: hidden;
}

/* Process Flow Visualization */
.process-flow {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 90%;
    padding: 20px;
}

.flow-step {
    text-align: center;
    flex: 1;
}

.step-number {
    width: 50px;
    height: 50px;
    background: var(--white);
    color: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 12px;
    font-weight: bold;
    font-size: 1.2rem;
    border: 2px solid var(--secondary-color);
}

.step-text {
    color: var(--white);
    font-weight: 600;
    font-size: 0.9rem;
}

.flow-arrow {
    color: var(--secondary-color);
    font-size: 1.8rem;
    font-weight: bold;
}

/* Audit Cycle Visualization */
.audit-cycle {
    display: flex;
    justify-content: space-around;
    width: 100%;
    padding: 20px;
}

.cycle-step {
    text-align: center;
    flex: 1;
}

.step-icon {
    font-size: 2.5rem;
    margin-bottom: 12px;
    display: block;
}

.step-label {
    color: var(--white);
    font-weight: 600;
    font-size: 0.9rem;
}

/* Training Modules Visualization */
.training-modules {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    width: 90%;
    padding: 20px;
}

.module {
    text-align: center;
    padding: 25px 15px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.module-icon {
    font-size: 2.2rem;
    margin-bottom: 12px;
    display: block;
}

.module-title {
    color: var(--white);
    font-weight: 600;
    font-size: 0.9rem;
}

/* AI Dashboard Visualization */
.ai-dashboard {
    width: 90%;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 12px;
    padding: 25px;
    box-shadow: var(--shadow-heavy);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.dashboard-header {
    text-align: center;
    font-weight: bold;
    margin-bottom: 25px;
    color: var(--primary-color);
    font-size: 1.2rem;
    border-bottom: 2px solid var(--secondary-color);
    padding-bottom: 10px;
}

.dashboard-metrics {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
}

.metric {
    text-align: center;
    padding: 15px;
    background: var(--light-color);
    border-radius: 8px;
}

.metric-value {
    font-size: 2rem;
    font-weight: bold;
    color: var(--primary-color);
    margin-bottom: 5px;
}

.metric-label {
    font-size: 0.8rem;
    color: var(--text-light);
    font-weight: 600;
}

/* About Us Page Styles */
.mission-vision {
    padding: 80px 0;
    background: var(--light-color);
}

.mv-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
}

.mv-card {
    background: var(--white);
    padding: 40px 30px;
    border-radius: 12px;
    text-align: center;
    box-shadow: var(--shadow);
    transition: var(--transition);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.mv-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-heavy);
}

.mv-icon {
    margin-bottom: 25px;
}

.mv-icon img {
    width: 50px;
    height: 50px;
}

.mv-card h2 {
    color: var(--primary-color);
    margin-bottom: 20px;
    font-size: 1.5rem;
}

.mv-card p {
    color: var(--text-light);
    line-height: 1.6;
    margin-bottom: 0;
}

/* Our Story Section */
.our-story {
    padding: 80px 0;
    background: var(--white);
}

.story-content {
    display: flex;
    align-items: flex-start;
    gap: 60px;
}

.story-text {
    flex: 1;
}

.story-text p {
    font-size: 1.1rem;
    line-height: 1.7;
    margin-bottom: 25px;
    color: var(--text-color);
}

.story-visual {
    flex: 1;
    min-width: 0;
}

.timeline {
    position: relative;
    padding-left: 40px;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background: linear-gradient(to bottom, var(--secondary-color), var(--primary-color));
    border-radius: 2px;
}

.timeline-item {
    position: relative;
    margin-bottom: 40px;
    padding: 20px;
    background: var(--light-color);
    border-radius: 8px;
    border-left: 4px solid var(--primary-color);
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: -44px;
    top: 30px;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: var(--secondary-color);
    border: 4px solid var(--white);
    box-shadow: 0 0 0 3px var(--primary-color);
}

.timeline-date {
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 8px;
    font-size: 1.1rem;
}

.timeline-content h3 {
    margin-bottom: 10px;
    color: var(--dark-color);
    font-size: 1.3rem;
}

.timeline-content p {
    margin-bottom: 0;
    color: var(--text-light);
    line-height: 1.6;
}

/* Founder Section - EDITED: Smaller image */
.founder-section {
    padding: 80px 0;
    background: var(--light-color);
}

.founder-content {
    display: flex;
    align-items: flex-start;
    gap: 60px;
}

.founder-image {
    flex: 0 0 280px; /* CHANGED: Reduced from 350px to 280px */
}

.founder-image img {
    width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: var(--shadow-heavy);
    border: 5px solid var(--white);
}

.founder-details {
    flex: 1;
    min-width: 0;
}

.founder-details h2 {
    color: var(--primary-color);
    margin-bottom: 10px;
    font-size: 2.2rem;
}

.founder-title {
    font-size: 1.3rem;
    color: var(--secondary-color);
    margin-bottom: 25px;
    font-weight: 600;
}

.founder-bio {
    font-size: 1.1rem;
    line-height: 1.7;
    margin-bottom: 20px;
    color: var(--text-color);
}

.founder-contact {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 2px solid var(--secondary-color);
}

.contact-link, .linkedin-link {
    display: inline-flex;
    align-items: center;
    margin-right: 25px;
    margin-bottom: 10px;
    color: var(--primary-color);
    font-weight: 600;
    padding: 8px 16px;
    background: var(--white);
    border-radius: 6px;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.contact-link:hover, .linkedin-link:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-heavy);
    color: var(--primary-color);
}

.linkedin-link {
    color: #0077b5 !important;
}

/* Global Presence Section */
.global-presence {
    padding: 80px 0;
    background: var(--white);
}

.presence-content {
    display: flex;
    gap: 60px;
    align-items: flex-start;
}

.presence-map {
    flex: 1;
}

.map-visual {
    height: 400px;
    background: var(--light-color);
    border-radius: 12px;
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(0, 0, 0, 0.1);
}

.world-map {
    position: relative;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #e6f2ff 0%, #cce5ff 100%);
    border-radius: 12px;
}

.location-marker {
    position: absolute;
    cursor: pointer;
}

.marker-dot {
    width: 16px;
    height: 16px;
    background: var(--secondary-color);
    border-radius: 50%;
    animation: pulse 2s infinite;
    border: 3px solid var(--white);
    box-shadow: 0 0 0 3px var(--primary-color);
}

.marker-label {
    position: absolute;
    top: -40px;
    left: 50%;
    transform: translateX(-50%);
    white-space: nowrap;
    background: var(--white);
    padding: 8px 15px;
    border-radius: 6px;
    box-shadow: var(--shadow);
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--primary-color);
    border: 1px solid rgba(0, 0, 0, 0.1);
    opacity: 0;
    transition: var(--transition);
}

.location-marker:hover .marker-label {
    opacity: 1;
    transform: translateX(-50%) translateY(-5px);
}

.us-marker {
    top: 35%;
    left: 20%;
}

.morocco-marker {
    top: 50%;
    left: 48%;
}

.global-marker {
    top: 25%;
    right: 25%;
}

.presence-details {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.location-card {
    background: var(--light-color);
    padding: 25px;
    border-radius: 8px;
    border-left: 4px solid var(--primary-color);
    transition: var(--transition);
}

.location-card:hover {
    transform: translateX(5px);
    box-shadow: var(--shadow);
}

.location-card h3 {
    color: var(--primary-color);
    margin-bottom: 12px;
    font-size: 1.3rem;
}

.location-card p {
    color: var(--text-light);
    line-height: 1.6;
    margin-bottom: 0;
}

/* Quality Policy Section */
.quality-policy {
    padding: 80px 0;
    background: var(--light-color);
}

.policy-content {
    display: flex;
    gap: 60px;
    align-items: center;
}

.policy-text {
    flex: 1;
}

.policy-text p {
    font-size: 1.1rem;
    margin-bottom: 30px;
    color: var(--text-color);
    line-height: 1.7;
}

.policy-points {
    list-style: none;
    margin-bottom: 35px;
}

.policy-points li {
    display: flex;
    align-items: flex-start;
    margin-bottom: 20px;
    padding: 15px;
    background: var(--white);
    border-radius: 8px;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.policy-points li:hover {
    transform: translateX(5px);
    box-shadow: var(--shadow-heavy);
}

.point-icon {
    margin-right: 15px;
    flex-shrink: 0;
}

.point-icon img {
    width: 24px;
    height: 24px;
}

.point-text {
    flex: 1;
    color: var(--text-color);
    font-weight: 500;
    line-height: 1.5;
}

.policy-visual {
    flex: 1;
    display: flex;
    justify-content: center;
}

.certificate-visual {
    width: 100%;
    max-width: 400px;
}

.certificate-border {
    width: 100%;
    height: 300px;
    border: 3px solid var(--secondary-color);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    background: linear-gradient(135deg, var(--white) 0%, #f8f9fa 100%);
    box-shadow: var(--shadow-heavy);
}

.certificate-content {
    text-align: center;
    padding: 30px;
}

.certificate-content h3 {
    color: var(--primary-color);
    margin-bottom: 15px;
    font-size: 1.5rem;
}

.certificate-content p {
    color: var(--text-light);
    margin-bottom: 25px;
    font-weight: 600;
}

.certificate-seal {
    margin-top: 20px;
}

.seal-circle {
    width: 100px;
    height: 100px;
    border: 3px solid var(--secondary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    font-weight: bold;
    color: var(--primary-color);
    font-size: 1.2rem;
    background: var(--white);
    box-shadow: var(--shadow);
}

/* Contact Page Styles */
.contact-section {
    padding: 80px 0;
}

.contact-content {
    display: flex;
    gap: 60px;
}

.contact-info {
    flex: 1;
}

.contact-info h2 {
    color: var(--primary-color);
    margin-bottom: 15px;
}

.contact-info > p {
    font-size: 1.1rem;
    margin-bottom: 40px;
}

.contact-methods {
    margin-bottom: 40px;
}

.contact-method {
    display: flex;
    margin-bottom: 30px;
    align-items: flex-start;
}

.method-icon {
    margin-right: 15px;
    flex-shrink: 0;
}

.method-icon img {
    width: 24px;
    height: 24px;
}

.method-details h3 {
    color: var(--primary-color);
    margin-bottom: 5px;
}

.method-details p {
    margin-bottom: 5px;
}

.method-details a {
    color: var(--dark-color);
    font-weight: 600;
}

.method-note {
    font-size: 0.9rem;
    color: var(--text-light);
}

.social-contact {
    display: flex;
    gap: 10px;
}

.social-contact .social-link {
    background: var(--light-color);
    padding: 5px 10px;
    border-radius: 4px;
    font-size: 0.9rem;
}

.office-locations h3 {
    color: var(--primary-color);
    margin-bottom: 20px;
}

.location-cards {
    display: grid;
    grid-template-columns: 1fr;
    gap: 15px;
}

.location-card {
    background: var(--light-color);
    padding: 20px;
    border-radius: 8px;
}

.location-card h4 {
    color: var(--primary-color);
    margin-bottom: 10px;
}

.contact-form-container {
    flex: 1;
    background: var(--white);
    padding: 40px;
    border-radius: 8px;
    box-shadow: var(--shadow-heavy);
}

.form-header {
    margin-bottom: 30px;
}

.form-header h2 {
    color: var(--primary-color);
    margin-bottom: 10px;
}

.contact-form .form-group {
    margin-bottom: 20px;
}

.contact-form label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--dark-color);
}

.contact-form input,
.contact-form select,
.contact-form textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-family: var(--font-body);
    font-size: 1rem;
    transition: var(--transition);
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px rgba(0, 51, 102, 0.1);
}

.btn-full {
    width: 100%;
}

.faq-section {
    padding: 80px 0;
    background: var(--light-color);
}

.faq-content {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    background: var(--white);
    border-radius: 8px;
    margin-bottom: 20px;
    box-shadow: var(--shadow);
    overflow: hidden;
}

.faq-question {
    padding: 20px;
    display: flex;
    align-items: center;
    cursor: pointer;
}

.question-icon {
    margin-right: 15px;
    flex-shrink: 0;
}

.question-icon img {
    width: 20px;
    height: 20px;
}

.faq-question h3 {
    margin: 0;
    color: var(--primary-color);
}

.faq-answer {
    padding: 0 20px 20px 55px;
    display: none;
}

.faq-item.active .faq-answer {
    display: block;
}

/* Legal Pages */
.legal-content {
    padding: 80px 0;
    max-width: 800px;
    margin: 0 auto;
}

.legal-content h1 {
    color: var(--primary-color);
    margin-bottom: 20px;
}

.legal-content h2 {
    color: var(--primary-color);
    margin: 30px 0 15px;
}

.legal-content p {
    margin-bottom: 15px;
    line-height: 1.7;
}

.legal-content ul {
    margin-bottom: 20px;
    padding-left: 20px;
}

.legal-content li {
    margin-bottom: 10px;
    line-height: 1.6;
}

/* Animations */
@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes float {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-20px);
    }
}

@keyframes rotate {
    from {
        transform: rotate(0);
    }
    to {
        transform: rotate(360deg);
    }
}

@keyframes pulse {
    0% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.1);
        opacity: 0.7;
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

@keyframes glow {
    from {
        box-shadow: 0 0 5px var(--primary-color);
    }
    to {
        box-shadow: 0 0 20px var(--secondary-color);
    }
}

/* Responsive Styles */
@media (max-width: 992px) {
    .hero .container {
        flex-direction: column;
        text-align: center;
    }
    
    .hero-content {
        margin-bottom: 50px;
    }
    
    .about-content {
        flex-direction: column;
    }
    
    .about-text {
        margin-bottom: 50px;
        max-width: 100%;
    }
    
    .innovation-content {
        flex-direction: column;
    }
    
    .innovation-text {
        margin-bottom: 50px;
        max-width: 100%;
    }
    
    .service-detail {
        flex-direction: column;
    }
    
    .service-visual {
        margin-top: 40px;
        flex: 0 0 100%;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    .story-content {
        flex-direction: column;
    }
    
    .story-text {
        margin-bottom: 40px;
    }
    
    .founder-content {
        flex-direction: column;
    }
    
    .founder-image {
        flex: none;
        margin-bottom: 30px;
        max-width: 280px;
    }
    
    .presence-content {
        flex-direction: column;
    }
    
    .presence-map {
        margin-bottom: 40px;
    }
    
    .policy-content {
        flex-direction: column;
    }
    
    .certificate-visual {
        max-width: 100%;
    }
    
    .contact-content {
        flex-direction: column;
    }
    
    .contact-info {
        margin-bottom: 40px;
    }
    
    .section-title {
        font-size: 2rem;
    }
}

/* ===== iOS 26 LIQUID GLASS MOBILE THEME ===== */
@media (max-width: 768px) {
  
  /* Reset mobile styles */
  body {
    background: linear-gradient(135deg, #003366 0%, #001a33 100%);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    min-height: 100vh;
    overflow-x: hidden;
  }

  /* Liquid Glass Header with Scroll Animation */
  .header {
    background: rgba(255, 255, 255, 0.08) !important;
    backdrop-filter: blur(30px) saturate(180%);
    -webkit-backdrop-filter: blur(30px) saturate(180%);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    height: 70px;
    transition: all 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    position: fixed;
    width: 100%;
    z-index: 1000;
  }

  .header.scrolled {
    height: 60px;
    background: rgba(255, 255, 255, 0.12) !important;
    backdrop-filter: blur(40px) saturate(200%);
    -webkit-backdrop-filter: blur(40px) saturate(200%);
  }

  .nav-container {
    padding: 15px 0;
    transition: all 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
  }

  .header.scrolled .nav-container {
    padding: 10px 0;
  }

  /* Fixed Logo and Title Container */
  .logo {
    position: relative;
    transition: all 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    display: flex;
    align-items: center;
    height: 100%;
    flex-shrink: 0;
  }

  .logo img {
    height: 40px;
    transition: all 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    filter: brightness(0) invert(1);
    flex-shrink: 0;
  }

  .header.scrolled .logo img {
    height: 35px;
  }

  /* Title Text - Always Visible */
  .logo::after {
    content: "INTERNATIONAL QUALITY ORGANIZATION";
    position: static;
    margin-left: 12px;
    color: white;
    font-family: var(--font-body);
    font-size: 14px;
    font-weight: 600;
    white-space: nowrap;
    opacity: 1;
    transition: all 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 200px;
    display: block;
  }

  .header.scrolled .logo::after {
    content: "IQO";
    font-size: 18px;
    font-weight: 700;
    max-width: 60px;
    margin-left: 10px;
  }

  /* Navigation Toggle Position */
  .nav-toggle {
    margin-left: auto;
    flex-shrink: 0;
    display: flex;
  }

  /* Hero Section Padding Adjustment */
  .hero {
    padding-top: 70px;
    background: transparent !important;
    min-height: 100vh;
    position: relative;
    overflow: hidden;
  }

  .header.scrolled + .hero {
    padding-top: 60px;
  }

  .hero-background {
    display: none;
  }

  .hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 30% 30%, rgba(212, 175, 55, 0.1) 0%, transparent 50%),
                radial-gradient(circle at 70% 70%, rgba(0, 51, 102, 0.1) 0%, transparent 50%);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    z-index: -1;
  }

  .hero .container {
    flex-direction: column;
    text-align: center;
    padding: 0 20px;
  }

  .hero-content {
    max-width: 100%;
    padding: 40px 0;
  }

  .hero-title {
    font-size: 2.5rem;
    color: white;
    margin-bottom: 20px;
    opacity: 1;
    transform: translateY(0);
    animation: liquidAppear 1s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
  }

  .hero-subtitle {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 40px;
    opacity: 1;
    transform: translateY(0);
    animation: liquidAppear 1s 0.2s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
  }

  /* Liquid Glass Buttons */
  .hero-buttons {
    opacity: 1;
    transform: translateY(0);
    animation: liquidAppear 1s 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
  }

  .btn {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    border-radius: 25px;
    padding: 15px 30px;
    margin: 10px;
    font-weight: 600;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    position: relative;
    overflow: hidden;
  }

  .btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.6s ease;
  }

  .btn:hover::before {
    left: 100%;
  }

  .btn:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
  }

  .btn-primary {
    background: rgba(212, 175, 55, 0.2);
    border: 1px solid rgba(212, 175, 55, 0.3);
  }

  .btn-primary:hover {
    background: rgba(212, 175, 55, 0.3);
  }

  /* Liquid Glass Navigation */
  .nav-list {
    position: fixed;
    top: 70px;
    left: 0;
    width: 100%;
    height: calc(100vh - 70px);
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(40px) saturate(180%);
    -webkit-backdrop-filter: blur(40px) saturate(180%);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    flex-direction: column;
    justify-content: flex-start;
    padding-top: 40px;
    transform: translateY(-100%);
    opacity: 0;
    transition: all 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  }

  .nav-list.active {
    transform: translateY(0);
    opacity: 1;
  }

  .nav-list li {
    margin: 0;
    width: 100%;
    text-align: center;
  }

  .nav-list a {
    display: block;
    padding: 20px;
    color: white;
    font-size: 18px;
    font-weight: 500;
    position: relative;
    overflow: hidden;
  }

  .nav-list a::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transition: left 0.6s ease;
  }

  .nav-list a:hover::before {
    left: 100%;
  }

  .nav-list a::after {
    display: none;
  }

  /* Liquid Glass Hamburger Menu */
  .nav-toggle span {
    width: 25px;
    height: 3px;
    background: white;
    margin: 3px 0;
    border-radius: 3px;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    transform-origin: center;
  }

  .nav-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
    background: var(--secondary-color);
  }

  .nav-toggle.active span:nth-child(2) {
    opacity: 0;
    transform: scale(0);
  }

  .nav-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
    background: var(--secondary-color);
  }

  /* Liquid Glass Floating Elements */
  .hero-visual {
    height: 300px;
    position: relative;
  }

  .floating-elements {
    position: relative;
    width: 100%;
    height: 100%;
  }

  .element {
    position: absolute;
    width: 120px;
    height: 120px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    animation: liquidFloat 8s ease-in-out infinite;
    padding: 0;
  }

  .service-title {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 600;
    font-size: 0.8rem;
    text-align: center;
    padding: 10px;
  }

  .star-icon {
    width: 20px;
    height: 20px;
    margin-bottom: 5px;
    filter: brightness(0) invert(1);
  }

  .element-1 {
    top: 10%;
    left: 5%;
    animation-delay: 0s;
  }

  .element-2 {
    top: 60%;
    left: 10%;
    animation-delay: 2s;
  }

  .element-3 {
    top: 30%;
    right: 5%;
    animation-delay: 4s;
  }

  .element-4 {
    top: 70%;
    right: 10%;
    animation-delay: 6s;
  }

  /* Liquid Glass Sections */
  .about, .services-preview, .innovation, .cta {
    background: rgba(255, 255, 255, 0.03) !important;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    margin: 20px 0;
    border-radius: 20px;
    padding: 40px 20px;
  }

  .section-header {
    margin-bottom: 40px;
  }

  .section-title {
    font-size: 2rem;
    color: white;
    text-align: center;
    margin-bottom: 15px;
  }

  .section-subtitle {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.7);
    text-align: center;
  }

  /* Liquid Glass Cards */
  .service-card, .mv-card, .location-card, .faq-item {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 25px;
    margin-bottom: 20px;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
  }

  .service-card:hover, .mv-card:hover, .location-card:hover {
    transform: translateY(-10px);
    background: rgba(255, 255, 255, 0.08);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);
  }

  .service-content h3, .mv-card h2, .location-card h3, .faq-question h3 {
    color: white;
    margin-bottom: 15px;
  }

  .service-content p, .mv-card p, .location-card p {
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 20px;
  }

  /* Liquid Glass Footer */
  .footer {
    background: rgba(255, 255, 255, 0.03) !important;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    margin-top: 40px;
  }

  .footer-section h4 {
    color: var(--secondary-color);
  }

  .footer-links a, .footer-contact a {
    color: rgba(255, 255, 255, 0.7);
  }

  .footer-links a:hover, .footer-contact a:hover {
    color: var(--secondary-color);
  }

  .social-link {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
  }

  .social-link:hover {
    background: rgba(212, 175, 55, 0.2);
    border-color: rgba(212, 175, 55, 0.3);
  }

  /* Liquid Glass Form Elements */
  .contact-form-container {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
  }

  .contact-form input,
  .contact-form select,
  .contact-form textarea {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: white;
    border-radius: 15px;
  }

  .contact-form input:focus,
  .contact-form select:focus,
  .contact-form textarea:focus {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(212, 175, 55, 0.5);
    box-shadow: 0 0 0 2px rgba(212, 175, 55, 0.2);
  }

  .contact-form label {
    color: white;
  }

  /* Liquid Glass Animations */
  @keyframes liquidAppear {
    0% {
      opacity: 0;
      transform: translateY(30px) scale(0.95);
    }
    100% {
      opacity: 1;
      transform: translateY(0) scale(1);
    }
  }

  @keyframes liquidFloat {
    0%, 100% {
      transform: translateY(0) rotate(0deg);
      border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%;
    }
    25% {
      transform: translateY(-20px) rotate(5deg);
      border-radius: 50% 60% 70% 40% / 50% 60% 30% 60%;
    }
    50% {
      transform: translateY(-10px) rotate(0deg);
      border-radius: 40% 60% 70% 30% / 40% 50% 60% 50%;
    }
    75% {
      transform: translateY(-15px) rotate(-5deg);
      border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%;
    }
  }

  /* Liquid Glass Scrollbar */
  ::-webkit-scrollbar {
    width: 8px;
  }

  ::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
  }

  ::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 10px;
  }

  ::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.3);
  }

  /* Liquid Glass Selection */
  ::selection {
    background: rgba(212, 175, 55, 0.3);
    color: white;
  }

  /* Liquid Glass Focus States */
  button:focus, a:focus, input:focus, textarea:focus, select:focus {
    outline: 2px solid rgba(212, 175, 55, 0.5);
    outline-offset: 2px;
  }

  /* Liquid Glass Page Transitions */
  .page-header {
    background: transparent !important;
    padding: 100px 0 40px;
  }

  .page-title {
    color: white;
    font-size: 2.5rem;
  }

  .page-subtitle {
    color: rgba(255, 255, 255, 0.7);
  }

  /* Liquid Glass Service Detail Pages */
  .service-detail {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 30px;
    margin-bottom: 30px;
  }

  .service-header {
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 20px;
    margin-bottom: 20px;
  }

  .service-title-content h2 {
    color: white;
  }

  .service-title-content p {
    color: rgba(255, 255, 255, 0.7);
  }

  .feature-item {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    padding: 15px;
    margin-bottom: 15px;
  }

  .feature-text h4 {
    color: white;
  }

  .feature-text p {
    color: rgba(255, 255, 255, 0.7);
  }

  /* Liquid Glass Visual Placeholders */
  .visual-placeholder {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
  }

  /* Liquid Glass Timeline */
  .timeline::before {
    background: linear-gradient(to bottom, rgba(212, 175, 55, 0.3), rgba(0, 51, 102, 0.3));
  }

  .timeline-item::before {
    background: var(--secondary-color);
    border: 3px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.3);
  }

  .timeline-date {
    color: var(--secondary-color);
  }

  .timeline-content h3 {
    color: white;
  }

  .timeline-content p {
    color: rgba(255, 255, 255, 0.7);
  }

  /* Liquid Glass Founder Section */
  .founder-image img {
    border: 3px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
  }

  .founder-details h2 {
    color: white;
  }

  .founder-title {
    color: var(--secondary-color);
  }

  .founder-bio {
    color: rgba(255, 255, 255, 0.7);
  }

  /* Liquid Glass Policy Points */
  .policy-points li {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 15px;
  }

  .point-text {
    color: rgba(255, 255, 255, 0.8);
  }

  /* Liquid Glass Certificate */
  .certificate-border {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 2px solid rgba(212, 175, 55, 0.3);
  }

  .certificate-content h3 {
    color: white;
  }

  .certificate-content p {
    color: rgba(255, 255, 255, 0.7);
  }

  .seal-circle {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 2px solid rgba(212, 175, 55, 0.3);
    color: white;
  }

  /* Liquid Glass FAQ */
  .faq-question {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  }

  .faq-answer {
    background: rgba(255, 255, 255, 0.03);
    color: rgba(255, 255, 255, 0.7);
  }

  /* Liquid Glass Legal Content */
  .legal-content h1, .legal-content h2 {
    color: white;
  }

  .legal-content p, .legal-content li {
    color: rgba(255, 255, 255, 0.7);
  }

}

@media (max-width: 576px) {
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .section-title {
        font-size: 1.8rem;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
    }
    
    .cta-content h2 {
        font-size: 2rem;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
    }
    
    .page-title {
        font-size: 2rem;
    }
    
    .page-subtitle {
        font-size: 1.1rem;
    }
    
    .contact-form-container {
        padding: 20px;
    }
    
    .faq-question {
        padding: 15px;
    }
    
    .faq-answer {
        padding: 0 15px 15px 45px;
    }
    
    .hero-visual {
        height: 300px;
    }
    
    .element {
        width: 120px;
        height: 40px;
    }
    
    .service-title {
        font-size: 0.8rem;
    }
    
    .star-icon {
        width: 16px;
        height: 16px;
        margin-right: 5px;
    }
    
    .founder-image {
        max-width: 250px;
    }
    
    .service-detail {
        padding: 40px 0;
        gap: 30px;
    }
    
    .service-header {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }
    
    .service-title-content h2 {
        font-size: 1.8rem;
    }
    
    .founder-details h2 {
        font-size: 1.8rem;
    }
    
    .timeline {
        padding-left: 25px;
    }
    
    .timeline-item::before {
        left: -32px;
        width: 14px;
        height: 14px;
    }
}

/* ===== QMS TEMPLATES STYLES ===== */

/* Template Info Section */
.template-info {
    padding: 60px 0;
    background: var(--light-color);
}

.info-card {
    background: var(--white);
    border-radius: 12px;
    padding: 40px;
    box-shadow: var(--shadow-heavy);
    display: flex;
    align-items: flex-start;
    gap: 30px;
}

.info-icon {
    flex-shrink: 0;
}

.info-icon img {
    width: 50px;
    height: 50px;
}

.info-content h2 {
    color: var(--primary-color);
    margin-bottom: 15px;
}

.info-content p {
    color: var(--text-light);
    margin-bottom: 20px;
    line-height: 1.6;
}

.template-features {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-top: 20px;
}

.feature {
    display: flex;
    align-items: center;
    gap: 8px;
    background: var(--light-color);
    padding: 8px 15px;
    border-radius: 20px;
    font-size: 0.9rem;
}

.feature-icon {
    color: var(--secondary-color);
    font-weight: bold;
}

/* Template Form Section */
.template-form-section {
    padding: 60px 0;
}

.form-container {
    background: var(--white);
    border-radius: 12px;
    box-shadow: var(--shadow-heavy);
    overflow: hidden;
}

.form-header {
    padding: 30px;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--dark-color) 100%);
    color: var(--white);
}

.form-header h2 {
    margin-bottom: 10px;
    color: var(--white);
}

.form-header p {
    opacity: 0.9;
    margin-bottom: 0;
}

.template-form {
    padding: 30px;
}

.form-section {
    margin-bottom: 40px;
    padding-bottom: 30px;
    border-bottom: 2px solid var(--light-color);
}

.form-section:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.section-title {
    color: var(--primary-color);
    margin-bottom: 25px;
    font-size: 1.3rem;
    display: flex;
    align-items: center;
}

.section-title::before {
    content: '';
    display: inline-block;
    width: 8px;
    height: 8px;
    background: var(--secondary-color);
    border-radius: 50%;
    margin-right: 10px;
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 20px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--dark-color);
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-family: var(--font-body);
    font-size: 1rem;
    transition: var(--transition);
    background: var(--white);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(0, 51, 102, 0.1);
}

.form-group textarea {
    min-height: 100px;
    resize: vertical;
}

.checkbox-group {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-top: 10px;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    padding: 8px 12px;
    background: var(--light-color);
    border-radius: 6px;
    transition: var(--transition);
}

.checkbox-label:hover {
    background: #e6f2ff;
}

.checkbox-label input[type="checkbox"] {
    width: auto;
    margin: 0;
}

.form-actions {
    display: flex;
    gap: 15px;
    margin-top: 40px;
    padding-top: 30px;
    border-top: 2px solid var(--light-color);
    flex-wrap: wrap;
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 2000;
    backdrop-filter: blur(5px);
}

.modal-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: var(--white);
    border-radius: 12px;
    width: 90%;
    max-width: 800px;
    max-height: 90vh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.modal-header {
    padding: 20px 30px;
    background: var(--primary-color);
    color: var(--white);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h3 {
    margin: 0;
    color: var(--white);
}

.modal-close {
    background: none;
    border: none;
    color: var(--white);
    font-size: 2rem;
    cursor: pointer;
    line-height: 1;
}

.modal-body {
    padding: 30px;
    overflow-y: auto;
    flex: 1;
}

.modal-footer {
    padding: 20px 30px;
    background: var(--light-color);
    display: flex;
    justify-content: flex-end;
    gap: 15px;
}

/* PDF Preview Styles */
.pdf-preview-content {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
}

.pdf-header {
    text-align: center;
    margin-bottom: 40px;
    padding-bottom: 20px;
    border-bottom: 2px solid var(--primary-color);
}

.pdf-header h2 {
    color: var(--primary-color);
    margin: 20px 0 10px;
}

.pdf-subtitle {
    color: var(--text-light);
    font-size: 1.1rem;
}

.pdf-section {
    margin-bottom: 30px;
}

.pdf-section h3 {
    color: var(--primary-color);
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid #eee;
}

.pdf-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 20px;
}

.pdf-table td {
    padding: 10px 15px;
    border: 1px solid #eee;
}

.pdf-table tr td:first-child {
    width: 200px;
    background: var(--light-color);
    font-weight: 600;
}

.pdf-text-block {
    background: var(--light-color);
    padding: 15px;
    border-radius: 8px;
    border-left: 4px solid var(--secondary-color);
    white-space: pre-wrap;
}

.pdf-footer {
    margin-top: 50px;
    padding-top: 20px;
    border-top: 2px solid #eee;
    text-align: center;
    color: var(--text-light);
    font-size: 0.9rem;
}

/* Template Instructions */
.template-instructions {
    padding: 60px 0;
    background: var(--light-color);
}

.instructions-card {
    background: var(--white);
    border-radius: 12px;
    padding: 40px;
    box-shadow: var(--shadow-heavy);
}

.instructions-card h3 {
    color: var(--primary-color);
    margin-bottom: 30px;
    text-align: center;
}

.instructions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.instruction {
    display: flex;
    gap: 20px;
    align-items: flex-start;
}

.instruction-number {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    background: var(--primary-color);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 1.2rem;
}

.instruction-content h4 {
    color: var(--dark-color);
    margin-bottom: 8px;
}

.instruction-content p {
    color: var(--text-light);
    font-size: 0.95rem;
    line-height: 1.5;
}

/* Dropdown Menu */
.dropdown {
    position: relative;
}

.dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: var(--white);
    min-width: 200px;
    box-shadow: var(--shadow-heavy);
    border-radius: 8px;
    z-index: 1000;
    padding: 10px 0;
}

.dropdown-menu li {
    margin: 0;
}

.dropdown-menu a {
    display: block;
    padding: 10px 20px;
    color: var(--text-color);
}

.dropdown-menu a:hover,
.dropdown-menu a.active {
    background: var(--light-color);
    color: var(--primary-color);
}

/* Responsive Styles for Templates */
@media (max-width: 768px) {
    .info-card {
        flex-direction: column;
        text-align: center;
        padding: 30px 20px;
    }
    
    .form-header {
        padding: 20px;
    }
    
    .template-form {
        padding: 20px;
    }
    
    .form-actions {
        flex-direction: column;
    }
    
    .form-actions .btn {
        width: 100%;
    }
    
    .modal-content {
        width: 95%;
        height: 95vh;
    }
    
    .instructions-grid {
        grid-template-columns: 1fr;
    }
    
    .dropdown-menu {
        position: static;
        box-shadow: none;
        border: 1px solid #eee;
        margin-top: 10px;
    }
}

/* Liquid Glass Mobile Theme for Templates */
@media (max-width: 768px) {
    .template-info {
        background: rgba(255, 255, 255, 0.03);
    }
    
    .info-card {
        background: rgba(255, 255, 255, 0.05);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        border: 1px solid rgba(255, 255, 255, 0.1);
    }
    
    .info-content h2 {
        color: white;
    }
    
    .info-content p {
        color: rgba(255, 255, 255, 0.7);
    }
    
    .feature {
        background: rgba(255, 255, 255, 0.1);
        color: white;
    }
    
    .form-container {
        background: rgba(255, 255, 255, 0.05);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        border: 1px solid rgba(255, 255, 255, 0.1);
    }
    
    .form-header {
        background: rgba(0, 51, 102, 0.3);
        border: 1px solid rgba(255, 255, 255, 0.1);
    }
    
    .section-title {
        color: white;
    }
    
    .form-group label {
        color: white;
    }
    
    .form-group input,
    .form-group select,
    .form-group textarea {
        background: rgba(255, 255, 255, 0.05);
        border: 1px solid rgba(255, 255, 255, 0.1);
        color: white;
    }
    
    .form-group input::placeholder,
    .form-group textarea::placeholder {
        color: rgba(255, 255, 255, 0.5);
    }
    
    .checkbox-label {
        background: rgba(255, 255, 255, 0.1);
        color: white;
    }
    
    .checkbox-label:hover {
        background: rgba(255, 255, 255, 0.15);
    }
    
    .template-instructions {
        background: rgba(255, 255, 255, 0.03);
    }
    
    .instructions-card {
        background: rgba(255, 255, 255, 0.05);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        border: 1px solid rgba(255, 255, 255, 0.1);
    }
    
    .instructions-card h3 {
        color: white;
    }
    
    .instruction-content h4 {
        color: white;
    }
    
    .instruction-content p {
        color: rgba(255, 255, 255, 0.7);
    }
    
    .modal-content {
        background: rgba(255, 255, 255, 0.1);
        backdrop-filter: blur(30px);
        -webkit-backdrop-filter: blur(30px);
        border: 1px solid rgba(255, 255, 255, 0.2);
    }
    
    .modal-header {
        background: rgba(0, 51, 102, 0.5);
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }
    
    .modal-body {
        color: white;
    }
    
    .modal-footer {
        background: rgba(255, 255, 255, 0.05);
        border-top: 1px solid rgba(255, 255, 255, 0.1);
    }
    
    .pdf-header h2 {
        color: white;
    }
    
    .pdf-subtitle {
        color: rgba(255, 255, 255, 0.7);
    }
    
    .pdf-section h3 {
        color: white;
        border-bottom-color: rgba(255, 255, 255, 0.1);
    }
    
    .pdf-table td {
        border-color: rgba(255, 255, 255, 0.1);
        color: white;
    }
    
    .pdf-table tr td:first-child {
        background: rgba(255, 255, 255, 0.05);
    }
    
    .pdf-text-block {
        background: rgba(255, 255, 255, 0.05);
        border-left-color: var(--secondary-color);
        color: white;
    }
    
    .pdf-footer {
        border-top-color: rgba(255, 255, 255, 0.1);
        color: rgba(255, 255, 255, 0.5);
    }
}

/* ===== 404 ERROR PAGE STYLES ===== */

.error-hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--dark-color) 100%);
    color: var(--white);
    padding: 140px 0 80px;
    position: relative;
    overflow: hidden;
}

.error-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 200 200"><path d="M100,50 C120,30 150,40 150,60 C150,80 120,90 100,70 C80,90 50,80 50,60 C50,40 80,30 100,50 Z" fill="none" stroke="rgba(255,255,255,0.1)" stroke-width="2"/></svg>') repeat;
    opacity: 0.1;
}

.error-content {
    text-align: center;
    position: relative;
    z-index: 2;
    max-width: 800px;
    margin: 0 auto;
}

.error-code {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 40px;
}

.code-digit {
    font-family: var(--font-heading);
    font-size: 8rem;
    font-weight: bold;
    color: var(--secondary-color);
    text-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    animation: floatDigit 3s ease-in-out infinite;
}

.code-digit:nth-child(1) { animation-delay: 0s; }
.code-digit:nth-child(2) { animation-delay: 0.2s; }
.code-digit:nth-child(3) { animation-delay: 0.4s; }

@keyframes floatDigit {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-20px); }
}

.error-title {
    font-size: 3rem;
    margin-bottom: 20px;
    color: var(--white);
}

.error-message {
    font-size: 1.3rem;
    margin-bottom: 40px;
    opacity: 0.9;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.error-search {
    margin-bottom: 40px;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

.search-container {
    position: relative;
    display: flex;
}

.search-container input {
    width: 100%;
    padding: 15px 20px;
    border: none;
    border-radius: 50px;
    font-size: 1rem;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    color: var(--white);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.search-container input::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

.search-container input:focus {
    outline: none;
    background: rgba(255, 255, 255, 0.15);
    border-color: var(--secondary-color);
}

.search-btn {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    background: var(--secondary-color);
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
}

.search-btn:hover {
    background: var(--white);
    color: var(--primary-color);
    transform: translateY(-50%) scale(1.1);
}

.error-actions {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.error-actions .btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 25px;
    font-weight: 600;
}

.error-help {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.error-help a {
    color: var(--secondary-color);
    font-weight: 600;
}

.error-help a:hover {
    text-decoration: underline;
}

.error-visual {
    position: absolute;
    top: 50%;
    right: 5%;
    transform: translateY(-50%);
    width: 300px;
    height: 300px;
    opacity: 0.3;
}

.floating-error {
    position: relative;
    width: 100%;
    height: 100%;
}

.error-element {
    position: absolute;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    animation: floatError 6s ease-in-out infinite;
    color: var(--white);
}

.error-element svg {
    width: 24px;
    height: 24px;
}

.error-element-1 {
    top: 20%;
    left: 10%;
    animation-delay: 0s;
}

.error-element-2 {
    top: 60%;
    left: 15%;
    animation-delay: 1.5s;
}

.error-element-3 {
    top: 35%;
    right: 10%;
    animation-delay: 3s;
}

.error-element-4 {
    top: 75%;
    right: 15%;
    animation-delay: 4.5s;
}

@keyframes floatError {
    0%, 100% {
        transform: translateY(0) rotate(0deg);
    }
    25% {
        transform: translateY(-20px) rotate(5deg);
    }
    50% {
        transform: translateY(-10px) rotate(0deg);
    }
    75% {
        transform: translateY(-15px) rotate(-5deg);
    }
}

/* Popular Links Section */
.popular-links {
    padding: 80px 0;
    background: var(--light-color);
}

.links-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.link-card {
    background: var(--white);
    padding: 30px;
    border-radius: 12px;
    box-shadow: var(--shadow);
    transition: var(--transition);
    text-align: center;
}

.link-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-heavy);
}

.link-icon {
    width: 60px;
    height: 60px;
    background: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    color: var(--white);
}

.link-card h3 {
    color: var(--primary-color);
    margin-bottom: 15px;
}

.link-card p {
    color: var(--text-light);
    margin-bottom: 20px;
    font-size: 0.95rem;
}

.link-arrow {
    color: var(--primary-color);
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.link-arrow:hover {
    gap: 10px;
}

/* Error Tips Section */
.error-tips {
    padding: 80px 0;
    background: var(--white);
}

.tips-content {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.tips-content h2 {
    color: var(--primary-color);
    margin-bottom: 40px;
    font-size: 2.5rem;
}

.tips-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
}

.tip {
    text-align: center;
    padding: 25px;
    background: var(--light-color);
    border-radius: 12px;
    position: relative;
}

.tip-number {
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 30px;
    height: 30px;
    background: var(--secondary-color);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
}

.tip h3 {
    color: var(--primary-color);
    margin-bottom: 10px;
    font-size: 1.2rem;
}

.tip p {
    color: var(--text-light);
    font-size: 0.9rem;
    line-height: 1.5;
}

/* ===== SERVER CONFIGURATION GUIDE ===== */

/* For Apache (.htaccess) */
/*
ErrorDocument 404 /404.html
ErrorDocument 500 /404.html
ErrorDocument 403 /404.html

RewriteEngine On
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ /404.html [L]
*/

/* For Nginx */
/*
error_page 404 /404.html;
error_page 500 502 503 504 /404.html;

location / {
    try_files $uri $uri/ =404;
}
*/

/* For IIS (web.config) */
/*
<configuration>
    <system.webServer>
        <httpErrors errorMode="Custom" existingResponse="Replace">
            <remove statusCode="404" />
            <error statusCode="404" responseMode="ExecuteURL" path="/404.html" />
            <remove statusCode="500" />
            <error statusCode="500" responseMode="ExecuteURL" path="/404.html" />
        </httpErrors>
    </system.webServer>
</configuration>
*/

/* ===== MOBILE RESPONSIVE STYLES ===== */
@media (max-width: 768px) {
    .error-hero {
        padding: 100px 0 40px;
    }
    
    .error-code {
        gap: 10px;
    }
    
    .code-digit {
        font-size: 5rem;
    }
    
    .error-title {
        font-size: 2rem;
    }
    
    .error-message {
        font-size: 1.1rem;
        padding: 0 20px;
    }
    
    .error-visual {
        display: none;
    }
    
    .error-actions {
        flex-direction: column;
        align-items: center;
    }
    
    .error-actions .btn {
        width: 250px;
        justify-content: center;
    }
    
    .links-grid {
        grid-template-columns: 1fr;
    }
    
    .tips-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .tip {
        padding: 30px 20px;
    }
}

@media (max-width: 480px) {
    .code-digit {
        font-size: 4rem;
    }
    
    .error-title {
        font-size: 1.8rem;
    }
    
    .error-message {
        font-size: 1rem;
    }
    
    .error-actions .btn {
        width: 100%;
        max-width: 300px;
    }
}

/* ===== TEMPLATES HUB PAGE STYLES ===== */

/* Template Introduction */
.template-intro {
    padding: 60px 0;
    background: var(--light-color);
}

.intro-card {
    background: var(--white);
    border-radius: 12px;
    padding: 40px;
    box-shadow: var(--shadow-heavy);
    display: flex;
    align-items: flex-start;
    gap: 30px;
}

.intro-icon {
    flex-shrink: 0;
}

.intro-icon img {
    width: 50px;
    height: 50px;
}

.intro-content h2 {
    color: var(--primary-color);
    margin-bottom: 15px;
}

.intro-content p {
    color: var(--text-light);
    margin-bottom: 25px;
    line-height: 1.6;
}

.intro-features {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-top: 20px;
}

.intro-features .feature {
    display: flex;
    align-items: center;
    gap: 8px;
    background: var(--light-color);
    padding: 8px 15px;
    border-radius: 20px;
    font-size: 0.9rem;
}

.intro-features .feature-icon {
    color: var(--secondary-color);
    font-weight: bold;
}

/* Templates Grid */
.templates-grid-section {
    padding: 80px 0;
}

.templates-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.template-card {
    background: var(--white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.template-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-heavy);
}

.template-card.coming-soon {
    opacity: 0.8;
    position: relative;
}

.template-card.coming-soon::before {
    content: 'Coming Soon';
    position: absolute;
    top: 10px;
    right: -30px;
    background: var(--secondary-color);
    color: var(--white);
    padding: 5px 30px;
    transform: rotate(45deg);
    font-size: 0.8rem;
    font-weight: 600;
    z-index: 1;
}

.template-header {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--dark-color) 100%);
    padding: 25px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.template-icon {
    color: var(--white);
}

.template-badge {
    background: rgba(255, 255, 255, 0.2);
    color: var(--white);
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    backdrop-filter: blur(10px);
}

.template-content {
    padding: 25px;
}

.template-content h3 {
    color: var(--primary-color);
    margin-bottom: 15px;
    font-size: 1.4rem;
}

.template-content p {
    color: var(--text-light);
    margin-bottom: 20px;
    line-height: 1.6;
}

.template-features {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 25px;
}

.feature-tag {
    background: var(--light-color);
    color: var(--text-color);
    padding: 5px 12px;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 500;
}

.template-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.template-actions .btn {
    padding: 10px 20px;
    font-size: 0.9rem;
}

.btn-link {
    color: var(--primary-color);
    font-weight: 600;
    font-size: 0.9rem;
    transition: var(--transition);
}

.btn-link:hover {
    color: var(--dark-color);
}

/* How It Works */
.how-it-works {
    padding: 80px 0;
    background: var(--light-color);
}

.steps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
    margin-top: 40px;
}

.step {
    text-align: center;
    padding: 30px;
    background: var(--white);
    border-radius: 12px;
    box-shadow: var(--shadow);
    transition: var(--transition);
    position: relative;
}

.step:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-heavy);
}

.step-number {
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 30px;
    height: 30px;
    background: var(--secondary-color);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 1.1rem;
}

.step-icon {
    margin-bottom: 20px;
    color: var(--primary-color);
}

.step h3 {
    color: var(--primary-color);
    margin-bottom: 15px;
    font-size: 1.3rem;
}

.step p {
    color: var(--text-light);
    line-height: 1.6;
}

/* Benefits Section */
.benefits-section {
    padding: 80px 0;
}

.benefits-content {
    display: flex;
    gap: 60px;
    align-items: flex-start;
}

.benefits-text {
    flex: 1;
}

.benefits-text h2 {
    color: var(--primary-color);
    margin-bottom: 15px;
}

.benefits-text > p {
    color: var(--text-light);
    margin-bottom: 40px;
    font-size: 1.1rem;
}

.benefits-list {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.benefit {
    display: flex;
    gap: 15px;
    align-items: flex-start;
}

.benefit-icon {
    flex-shrink: 0;
    width: 50px;
    height: 50px;
    background: var(--light-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
}

.benefit-content h3 {
    color: var(--primary-color);
    margin-bottom: 8px;
    font-size: 1.1rem;
}

.benefit-content p {
    color: var(--text-light);
    font-size: 0.95rem;
    line-height: 1.5;
}

.benefits-visual {
    flex: 1;
}

.visual-card {
    background: var(--white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow-heavy);
}

.visual-header {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--dark-color) 100%);
    padding: 20px;
    text-align: center;
}

.visual-header h3 {
    color: var(--white);
    margin: 0;
    font-size: 1.2rem;
}

.visual-content {
    padding: 30px;
}

.template-preview {
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    overflow: hidden;
}

.preview-header {
    background: var(--light-color);
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 20px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.preview-title h4 {
    color: var(--primary-color);
    margin: 0 0 5px 0;
    font-size: 1.1rem;
}

.preview-title p {
    color: var(--text-light);
    margin: 0;
    font-size: 0.8rem;
}

.preview-body {
    padding: 20px;
}

.preview-field {
    display: flex;
    justify-content: space-between;
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.preview-field:last-child {
    border-bottom: none;
}

.field-label {
    color: var(--text-color);
    font-weight: 600;
    font-size: 0.9rem;
}

.field-value {
    color: var(--text-light);
    font-size: 0.9rem;
}

.preview-section {
    margin-top: 20px;
}

.preview-section h5 {
    color: var(--primary-color);
    margin-bottom: 10px;
    font-size: 1rem;
}

.preview-section p {
    color: var(--text-light);
    font-size: 0.9rem;
    line-height: 1.5;
    margin: 0;
}

.preview-footer {
    background: var(--light-color);
    padding: 15px 20px;
    text-align: center;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
}

.preview-footer p {
    color: var(--text-light);
    margin: 0;
    font-size: 0.8rem;
}

/* Responsive Styles for Templates Page */
@media (max-width: 992px) {
    .intro-card {
        flex-direction: column;
        text-align: center;
    }
    
    .benefits-content {
        flex-direction: column;
    }
    
    .benefits-visual {
        margin-top: 40px;
    }
    
    .templates-grid {
        grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    }
}

@media (max-width: 768px) {
    .templates-grid {
        grid-template-columns: 1fr;
    }
    
    .steps-grid {
        grid-template-columns: 1fr;
    }
    
    .intro-card,
    .template-card,
    .step,
    .visual-card {
        padding: 25px 20px;
    }
    
    .template-actions {
        flex-direction: column;
        gap: 15px;
        align-items: stretch;
    }
    
    .template-actions .btn {
        width: 100%;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .template-features {
        justify-content: center;
    }
    
    .preview-field {
        flex-direction: column;
        gap: 5px;
    }
    
    .field-label,
    .field-value {
        width: 100%;
    }
}

/* ===== SSF TRAINING NEEDS PROCEDURE PAGE STYLES ===== */

.procedure-metadata {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 20px;
    margin-top: 30px;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.1);
    padding: 8px 15px;
    border-radius: 20px;
    font-size: 0.9rem;
}

.meta-item i {
    color: var(--secondary-color);
}

.quick-nav {
    background: var(--light-color);
    padding: 20px 0;
    position: sticky;
    top: 80px;
    z-index: 100;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.quick-nav-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.phase-links {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.phase-link {
    padding: 8px 15px;
    background: var(--white);
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--primary-color);
    border: 2px solid transparent;
    transition: all 0.3s ease;
}

.phase-link:hover,
.phase-link.active {
    background: var(--primary-color);
    color: var(--white);
    border-color: var(--primary-color);
}

.utility-actions {
    display: flex;
    gap: 10px;
}

.procedure-intro {
    padding: 80px 0;
}

.highlight-box {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--dark-color) 100%);
    color: var(--white);
    padding: 30px;
    border-radius: 12px;
    margin: 40px 0;
}

.highlight-box h3 {
    color: var(--secondary-color);
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.applications-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.application-card {
    background: var(--white);
    padding: 25px;
    border-radius: 12px;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.application-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-heavy);
}

.app-icon {
    width: 60px;
    height: 60px;
    background: var(--light-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    color: var(--primary-color);
    font-size: 1.5rem;
}

.procedure-phase {
    padding: 80px 0;
}

.procedure-phase.alt-bg {
    background: var(--light-color);
}

.phase-header {
    text-align: center;
    margin-bottom: 50px;
}

.phase-marker {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: var(--primary-color);
    color: var(--white);
    padding: 8px 20px;
    border-radius: 25px;
    margin-bottom: 20px;
}

.phase-number {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--secondary-color);
}

.phase-title {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 10px;
}

.phase-subtitle {
    font-size: 1.2rem;
    color: var(--text-light);
    max-width: 600px;
    margin: 0 auto;
}

.phase-steps {
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.step-card {
    background: var(--white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.procedure-phase.alt-bg .step-card {
    background: var(--white);
}

.step-card:hover {
    box-shadow: var(--shadow-heavy);
}

.step-header {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--dark-color) 100%);
    color: var(--white);
    padding: 25px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
}

.step-title {
    font-size: 1.5rem;
    margin: 0;
}

.step-duration {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.2);
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.9rem;
}

.step-content {
    padding: 30px;
}

.matrix-container {
    background: var(--light-color);
    padding: 25px;
    border-radius: 8px;
    margin-bottom: 20px;
}

.matrix-container h4 {
    color: var(--primary-color);
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.nested-structure {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.structure-item {
    display: flex;
    gap: 20px;
    align-items: flex-start;
}

.structure-icon {
    flex-shrink: 0;
    width: 50px;
    height: 50px;
    background: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
    font-size: 1.2rem;
}

.tools-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.tool-card {
    background: var(--light-color);
    padding: 20px;
    border-radius: 8px;
    text-align: center;
    transition: var(--transition);
}

.tool-card:hover {
    transform: translateY(-3px);
}

.tool-icon {
    width: 50px;
    height: 50px;
    background: var(--primary-color);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 15px;
    font-size: 1.2rem;
}

.analysis-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

.analysis-card {
    background: var(--light-color);
    padding: 20px;
    border-radius: 8px;
}

.analysis-icon {
    width: 50px;
    height: 50px;
    background: var(--primary-color);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 15px;
    font-size: 1.2rem;
}

.table-container {
    overflow-x: auto;
    margin: 20px 0;
}

.audit-table,
.systems-table,
.assessment-table,
.taxonomy-table,
.reporting-table {
    width: 100%;
    border-collapse: collapse;
    background: var(--white);
}

.audit-table th,
.systems-table th,
.assessment-table th,
.taxonomy-table th,
.reporting-table th {
    background: var(--primary-color);
    color: var(--white);
    padding: 15px;
    text-align: left;
    font-weight: 600;
}

.audit-table td,
.systems-table td,
.assessment-table td,
.taxonomy-table td,
.reporting-table td {
    padding: 15px;
    border-bottom: 1px solid var(--light-color);
}

.audit-table tr:hover,
.systems-table tr:hover,
.assessment-table tr:hover,
.taxonomy-table tr:hover,
.reporting-table tr:hover {
    background: var(--light-color);
}

.stakeholder-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.stakeholder-card {
    background: var(--light-color);
    padding: 20px;
    border-radius: 8px;
    text-align: center;
}

.stakeholder-icon {
    width: 50px;
    height: 50px;
    background: var(--primary-color);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 15px;
    font-size: 1.2rem;
}

.protocol-box {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--dark-color) 100%);
    color: var(--white);
    padding: 25px;
    border-radius: 8px;
}

.protocol-box h4 {
    color: var(--secondary-color);
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.observation-matrix {
    background: var(--light-color);
    padding: 25px;
    border-radius: 8px;
    margin-bottom: 20px;
}

.matrix-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.matrix-column {
    background: var(--white);
    padding: 20px;
    border-radius: 8px;
}

.matrix-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
    color: var(--primary-color);
}

.tools-box {
    background: var(--light-color);
    padding: 20px;
    border-radius: 8px;
}

.tool-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 15px;
}

.tool-tag {
    background: var(--primary-color);
    color: var(--white);
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.9rem;
}

.risk-matrix {
    background: var(--light-color);
    padding: 25px;
    border-radius: 8px;
    margin-bottom: 20px;
}

.risk-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.risk-column {
    background: var(--white);
    padding: 20px;
    border-radius: 8px;
}

.risk-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
    color: var(--primary-color);
}

.priority-box {
    background: var(--light-color);
    padding: 25px;
    border-radius: 8px;
}

.priority-factors {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.factor {
    background: var(--white);
    padding: 20px;
    border-radius: 8px;
    text-align: center;
}

.design-principles {
    margin-top: 40px;
}

.principles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.principle {
    background: var(--light-color);
    padding: 20px;
    border-radius: 8px;
    text-align: center;
}

.principle-icon {
    width: 50px;
    height: 50px;
    background: var(--primary-color);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 15px;
    font-size: 1.2rem;
}

.training-framework {
    background: var(--light-color);
    padding: 25px;
    border-radius: 8px;
}

.framework-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.dimension {
    background: var(--white);
    padding: 20px;
    border-radius: 8px;
    display: flex;
    gap: 15px;
    align-items: flex-start;
}

.dimension-number {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    background: var(--primary-color);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 1.2rem;
}

.layer-model {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.layer {
    background: var(--light-color);
    padding: 25px;
    border-radius: 8px;
}

.layer-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
}

.layer-number {
    background: var(--primary-color);
    color: var(--white);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 1.2rem;
}

.tier-framework {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.tier {
    background: var(--light-color);
    border-radius: 8px;
    overflow: hidden;
}

.tier-header {
    padding: 20px;
    color: var(--white);
}

.tier-1 { background: linear-gradient(135deg, #003366 0%, #001a33 100%); }
.tier-2 { background: linear-gradient(135deg, #004080 0%, #00264d 100%); }
.tier-3 { background: linear-gradient(135deg, #005099 0%, #003366 100%); }
.tier-4 { background: linear-gradient(135deg, #0066b3 0%, #004080 100%); }

.tier ul {
    padding: 20px;
    margin: 0;
}

.horizon-approach {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.horizon {
    background: var(--light-color);
    border-radius: 8px;
    overflow: hidden;
}

.horizon-header {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--dark-color) 100%);
    color: var(--white);
    padding: 20px;
}

.horizon-title {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.horizon-time {
    background: rgba(255, 255, 255, 0.2);
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.9rem;
}

.horizon-content {
    padding: 20px;
}

.deliverables-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.deliverable {
    background: var(--light-color);
    padding: 25px;
    border-radius: 8px;
    text-align: center;
    transition: var(--transition);
}

.deliverable:hover {
    transform: translateY(-5px);
}

.deliverable-icon {
    width: 60px;
    height: 60px;
    background: var(--primary-color);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 1.5rem;
}

.qa-section {
    padding: 80px 0;
    background: var(--white);
}

.qa-content {
    max-width: 1000px;
    margin: 0 auto;
}

.qa-methods {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.qa-method {
    background: var(--light-color);
    padding: 20px;
    border-radius: 8px;
    text-align: center;
}

.validation-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.validation-item {
    background: var(--light-color);
    padding: 20px;
    border-radius: 8px;
    text-align: center;
}

.validation-icon {
    width: 50px;
    height: 50px;
    background: var(--primary-color);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 15px;
    font-size: 1.2rem;
}

.ethical-section {
    padding: 80px 0;
}

.ethical-categories {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 40px;
    max-width: 1000px;
    margin: 0 auto;
}

.ethical-category {
    background: var(--white);
    padding: 30px;
    border-radius: 12px;
    box-shadow: var(--shadow);
}

.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: var(--primary-color);
    color: var(--white);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: none;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    z-index: 1000;
    transition: var(--transition);
}

.back-to-top:hover {
    background: var(--dark-color);
    transform: translateY(-3px);
}

.download-options {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-top: 20px;
}

/* Responsive Design for Procedure Page */
@media (max-width: 768px) {
    .quick-nav-content {
        flex-direction: column;
        align-items: stretch;
    }
    
    .phase-links {
        justify-content: center;
    }
    
    .utility-actions {
        justify-content: center;
    }
    
    .phase-title {
        font-size: 2rem;
    }
    
    .step-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .ethical-categories {
        grid-template-columns: 1fr;
    }
    
    .matrix-grid,
    .risk-grid {
        grid-template-columns: 1fr;
    }
    
    .structure-item {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    
    .dimension {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .phase-title {
        font-size: 1.8rem;
    }
    
    .step-title {
        font-size: 1.3rem;
    }
    
    .phase-links {
        gap: 5px;
    }
    
    .phase-link {
        padding: 6px 12px;
        font-size: 0.8rem;
    }
}

/* Liquid Glass Mobile Theme for Procedure Page */
@media (max-width: 768px) {
    .procedure-phase {
        background: rgba(255, 255, 255, 0.03) !important;
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        border-top: 1px solid rgba(255, 255, 255, 0.05);
        border-bottom: 1px solid rgba(255, 255, 255, 0.05);
        margin: 20px 0;
        border-radius: 20px;
        padding: 40px 20px;
    }
    
    .procedure-phase.alt-bg {
        background: rgba(255, 255, 255, 0.05) !important;
    }
    
    .step-card {
        background: rgba(255, 255, 255, 0.05);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        border: 1px solid rgba(255, 255, 255, 0.1);
    }
    
    .step-header {
        background: rgba(0, 51, 102, 0.3);
        border: 1px solid rgba(255, 255, 255, 0.1);
    }
    
    .matrix-container,
    .analysis-card,
    .tool-card,
    .stakeholder-card,
    .protocol-box,
    .observation-matrix,
    .tools-box,
    .risk-matrix,
    .priority-box,
    .principle,
    .training-framework,
    .dimension,
    .layer,
    .tier,
    .horizon,
    .deliverable,
    .qa-method,
    .validation-item,
    .ethical-category {
        background: rgba(255, 255, 255, 0.05);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        border: 1px solid rgba(255, 255, 255, 0.1);
    }
    
    .matrix-column,
    .risk-column,
    .factor {
        background: rgba(255, 255, 255, 0.03);
        border: 1px solid rgba(255, 255, 255, 0.1);
    }
    
    .protocol-box,
    .highlight-box {
        background: rgba(0, 51, 102, 0.3);
        border: 1px solid rgba(255, 255, 255, 0.1);
    }
    
    .tier-header {
        background: rgba(0, 51, 102, 0.4);
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }
    
    .horizon-header {
        background: rgba(0, 51, 102, 0.4);
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }
    
    .audit-table th,
    .systems-table th,
    .assessment-table th,
    .taxonomy-table th,
    .reporting-table th {
        background: rgba(0, 51, 102, 0.5);
        border: 1px solid rgba(255, 255, 255, 0.1);
    }
    
    .audit-table td,
    .systems-table td,
    .assessment-table td,
    .taxonomy-table td,
    .reporting-table td {
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        color: white;
    }
    
    .audit-table tr:hover,
    .systems-table tr:hover,
    .assessment-table tr:hover,
    .taxonomy-table tr:hover,
    .reporting-table tr:hover {
        background: rgba(255, 255, 255, 0.05);
    }
    
    .tool-tag {
        background: rgba(212, 175, 55, 0.3);
        border: 1px solid rgba(212, 175, 55, 0.5);
    }
    
    .phase-title,
    .step-title,
    .structure-content h5,
    .tool-card h4,
    .analysis-content h4,
    .stakeholder-card h4,
    .protocol-box h4,
    .matrix-header h5,
    .tools-box h4,
    .risk-header h5,
    .priority-box h4,
    .factor h5,
    .design-principles h4,
    .principle h5,
    .training-framework h4,
    .dimension-content h5,
    .layer-header h4,
    .tier-header h4,
    .horizon-title h4,
    .deliverable h4,
    .qa-method h4,
    .validation-item h4,
    .ethical-category h3 {
        color: white;
    }
    
    .phase-subtitle,
    .tool-card p,
    .analysis-content li,
    .stakeholder-card p,
    .protocol-box li,
    .matrix-column li,
    .tool-list,
    .risk-column li,
    .factor p,
    .principle p,
    .dimension-content li,
    .layer li,
    .tier li,
    .horizon-content p,
    .deliverable p,
    .qa-method p,
    .validation-item p,
    .ethical-category li {
        color: rgba(255, 255, 255, 0.7);
    }
    
    .structure-icon,
    .tool-icon,
    .analysis-icon,
    .stakeholder-icon,
    .principle-icon,
    .dimension-number,
    .layer-number,
    .deliverable-icon,
    .validation-icon {
        background: rgba(212, 175, 55, 0.3);
        border: 1px solid rgba(212, 175, 55, 0.5);
        color: var(--secondary-color);
    }
    
    .phase-number {
        color: var(--secondary-color);
    }
    
    .phase-marker {
        background: rgba(0, 51, 102, 0.5);
        border: 1px solid rgba(255, 255, 255, 0.1);
    }
    
    .step-duration {
        background: rgba(255, 255, 255, 0.1);
    }
    
    .horizon-time {
        background: rgba(255, 255, 255, 0.1);
    }
    
    .meta-item {
        background: rgba(255, 255, 255, 0.05);
        border: 1px solid rgba(255, 255, 255, 0.1);
    }
    
    .phase-link {
        background: rgba(255, 255, 255, 0.05);
        border: 1px solid rgba(255, 255, 255, 0.1);
        color: white;
    }
    
    .phase-link:hover,
    .phase-link.active {
        background: rgba(0, 51, 102, 0.5);
        border-color: var(--secondary-color);
    }
    
    .quick-nav {
        background: rgba(255, 255, 255, 0.03);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }
    
    .quick-nav-content h3 {
        color: white;
    }
    
    .application-card {
        background: rgba(255, 255, 255, 0.05);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        border: 1px solid rgba(255, 255, 255, 0.1);
    }
    
    .application-card h4 {
        color: white;
    }
    
    .application-card ul li {
        color: rgba(255, 255, 255, 0.7);
    }
    
    .app-icon {
        background: rgba(212, 175, 55, 0.3);
        border: 1px solid rgba(212, 175, 55, 0.5);
        color: var(--secondary-color);
    }
}

/* Additional PDCA Styles */

.adaptation-examples {
    margin-top: 40px;
}

.examples-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.example {
    background: var(--light-color);
    padding: 20px;
    border-radius: 8px;
    border-left: 4px solid var(--secondary-color);
}

.example h5 {
    color: var(--primary-color);
    margin-bottom: 10px;
}

.example p {
    margin: 0;
    color: var(--text-light);
    font-size: 0.95rem;
    line-height: 1.5;
}

.implementation-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin: 30px 0;
}

.implementation-area {
    background: var(--light-color);
    padding: 25px;
    border-radius: 8px;
}

.area-icon {
    width: 50px;
    height: 50px;
    background: var(--primary-color);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 15px;
    font-size: 1.2rem;
}

.monitoring-framework {
    background: var(--light-color);
    padding: 25px;
    border-radius: 8px;
    margin: 30px 0;
}

.framework-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.framework-item {
    display: flex;
    gap: 15px;
    align-items: flex-start;
}

.item-number {
    flex-shrink: 0;
    width: 50px;
    height: 50px;
    background: var(--primary-color);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 1.2rem;
}

.item-content h5 {
    color: var(--primary-color);
    margin-bottom: 10px;
    font-size: 1.1rem;
}

.item-content ul {
    margin: 0;
    padding-left: 20px;
}

.item-content li {
    color: var(--text-light);
    margin-bottom: 5px;
    font-size: 0.95rem;
    line-height: 1.4;
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.benefit-card {
    background: var(--white);
    padding: 30px;
    border-radius: 8px;
    text-align: center;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.benefit-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-heavy);
}

.benefit-icon {
    width: 60px;
    height: 60px;
    background: var(--light-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    color: var(--primary-color);
    font-size: 1.5rem;
}

/* ===== PROCESSES PAGE STYLES ===== */

/* Category Section */
.processes-category {
    padding: 80px 0;
}

.category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.category-card {
    background: var(--white);
    border-radius: 12px;
    padding: 30px;
    text-align: center;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
    border: 2px solid transparent;
    cursor: pointer;
}

.category-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-heavy);
    border-color: var(--secondary-color);
}

#trainings-category:hover { border-color: #4CAF50; }
#iso-category:hover { border-color: #2196F3; }
#startup-category:hover { border-color: #FF9800; }
#operations-category:hover { border-color: #9C27B0; }

.category-icon {
    width: 70px;
    height: 70px;
    background: var(--light-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 1.8rem;
    color: var(--primary-color);
}

#trainings-category .category-icon { background: #E8F5E9; color: #4CAF50; }
#iso-category .category-icon { background: #E3F2FD; color: #2196F3; }
#startup-category .category-icon { background: #FFF3E0; color: #FF9800; }
#operations-category .category-icon { background: #F3E5F5; color: #9C27B0; }

.category-content h3 {
    color: var(--primary-color);
    margin-bottom: 15px;
}

.category-content p {
    color: var(--text-light);
    margin-bottom: 20px;
    font-size: 0.95rem;
    line-height: 1.5;
}

.category-link {
    color: var(--primary-color);
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
}

.category-link:hover {
    gap: 12px;
}

/* Processes Section */
.processes-section {
    padding: 80px 0;
}

.processes-section.alt-bg {
    background: var(--light-color);
}

.process-hierarchy {
    margin-top: 40px;
}

.hierarchy-level {
    background: var(--white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow);
}

.level-title {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--dark-color) 100%);
    color: var(--white);
    padding: 20px 30px;
    margin: 0;
    font-size: 1.5rem;
}

.hierarchy-content {
    padding: 30px;
}

.main-process {
    display: flex;
    gap: 20px;
    align-items: flex-start;
    padding-bottom: 30px;
    border-bottom: 2px solid var(--light-color);
    margin-bottom: 30px;
}

.main-process .process-icon {
    flex-shrink: 0;
    width: 60px;
    height: 60px;
    background: var(--primary-color);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}

.main-process .process-content h4 {
    color: var(--primary-color);
    margin-bottom: 10px;
    font-size: 1.3rem;
}

.main-process .process-content p {
    color: var(--text-light);
    margin-bottom: 15px;
}

.process-meta {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.meta-tag {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: var(--light-color);
    padding: 5px 12px;
    border-radius: 15px;
    font-size: 0.85rem;
    color: var(--text-light);
}

.sub-processes {
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.sub-process-category {
    border-left: 3px solid var(--secondary-color);
    padding-left: 20px;
}

.category-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--light-color);
}

.category-header h5 {
    color: var(--primary-color);
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0;
}

.process-count {
    background: var(--secondary-color);
    color: var(--white);
    padding: 3px 10px;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 600;
}

.sub-process {
    background: var(--white);
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 15px;
    border: 1px solid var(--light-color);
    position: relative;
}

.sub-process:hover {
    box-shadow: var(--shadow);
}

.process-badge {
    position: absolute;
    top: -10px;
    right: 20px;
    background: var(--secondary-color);
    color: var(--white);
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
    z-index: 1;
}

.sub-process .process-icon {
    width: 50px;
    height: 50px;
    background: var(--light-color);
    color: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 15px;
    font-size: 1.2rem;
}

.sub-process .process-content h4 {
    color: var(--dark-color);
    margin-bottom: 10px;
    font-size: 1.1rem;
}

.sub-process .process-content p {
    color: var(--text-light);
    margin-bottom: 15px;
    font-size: 0.95rem;
    line-height: 1.5;
}

.process-actions {
    display: flex;
    gap: 15px;
    align-items: center;
    margin-top: 15px;
}

.process-actions .btn {
    padding: 8px 20px;
    font-size: 0.9rem;
}

/* Startup Features */
.startup-features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin: 40px 0;
}

.feature-highlight {
    display: flex;
    gap: 20px;
    align-items: flex-start;
}

.highlight-icon {
    flex-shrink: 0;
    width: 50px;
    height: 50px;
    background: var(--secondary-color);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
}

.highlight-content h3 {
    color: var(--primary-color);
    margin-bottom: 8px;
    font-size: 1.2rem;
}

.highlight-content p {
    color: var(--text-light);
    font-size: 0.95rem;
    line-height: 1.5;
    margin: 0;
}

/* Process Grid */
.process-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin: 40px 0;
}

.startup-card {
    border: 2px solid var(--light-color);
    transition: all 0.3s ease;
}

.startup-card:hover {
    border-color: var(--secondary-color);
    transform: translateY(-5px);
}

/* CTA Box */
.cta-box {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--dark-color) 100%);
    color: var(--white);
    padding: 40px;
    border-radius: 12px;
    text-align: center;
    margin-top: 40px;
}

.cta-box h3 {
    color: var(--white);
    margin-bottom: 15px;
}

.cta-box p {
    opacity: 0.9;
    margin-bottom: 25px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* Coming Soon Message */
.coming-soon-message {
    display: flex;
    gap: 30px;
    align-items: center;
    background: var(--white);
    padding: 40px;
    border-radius: 12px;
    box-shadow: var(--shadow);
}

.message-icon {
    flex-shrink: 0;
    width: 80px;
    height: 80px;
    background: var(--light-color);
    color: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
}

.message-content h3 {
    color: var(--primary-color);
    margin-bottom: 15px;
}

.message-content p {
    color: var(--text-light);
    margin-bottom: 0;
}

.message-content a {
    color: var(--secondary-color);
    font-weight: 600;
}

/* Timeline Visual */
.timeline-visual {
    position: relative;
    padding-left: 30px;
}

.timeline-visual::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background: linear-gradient(to bottom, var(--secondary-color), var(--primary-color));
    border-radius: 2px;
}

.timeline-item {
    position: relative;
    margin-bottom: 25px;
    padding-left: 20px;
}

.timeline-item:last-child {
    margin-bottom: 0;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: -34px;
    top: 5px;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: var(--secondary-color);
    border: 4px solid var(--white);
    box-shadow: 0 0 0 3px var(--primary-color);
    z-index: 1;
}

.timeline-marker {
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 5px;
    font-size: 0.9rem;
}

.timeline-content h4 {
    color: var(--dark-color);
    margin-bottom: 5px;
    font-size: 1.1rem;
}

.timeline-content p {
    color: var(--text-light);
    font-size: 0.9rem;
    margin: 0;
}

/* Back to Top Button */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: var(--primary-color);
    color: var(--white);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: none;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    z-index: 1000;
    transition: var(--transition);
    box-shadow: var(--shadow);
}

.back-to-top:hover {
    background: var(--dark-color);
    transform: translateY(-3px);
    box-shadow: var(--shadow-heavy);
}

/* Responsive Styles */
@media (max-width: 992px) {
    .category-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .main-process {
        flex-direction: column;
        text-align: center;
    }
    
    .main-process .process-icon {
        margin: 0 auto 15px;
    }
    
    .coming-soon-message {
        flex-direction: column;
        text-align: center;
    }
}

@media (max-width: 768px) {
    .category-grid {
        grid-template-columns: 1fr;
    }
    
    .startup-features {
        grid-template-columns: 1fr;
    }
    
    .process-grid {
        grid-template-columns: 1fr;
    }
    
    .feature-highlight {
        flex-direction: column;
        text-align: center;
    }
    
    .highlight-icon {
        margin: 0 auto 15px;
    }
    
    .sub-process-category {
        padding-left: 15px;
    }
    
    .category-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .process-actions {
        flex-direction: column;
        align-items: stretch;
    }
    
    .process-actions .btn {
        width: 100%;
        text-align: center;
    }
    
    .back-to-top {
        bottom: 20px;
        right: 20px;
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .process-meta {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .cta-box {
        padding: 30px 20px;
    }
    
    .coming-soon-message {
        padding: 30px 20px;
    }
}

/* Liquid Glass Mobile Theme for Processes Page */
@media (max-width: 768px) {
    .processes-category,
    .processes-section {
        background: rgba(255, 255, 255, 0.03) !important;
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        border-top: 1px solid rgba(255, 255, 255, 0.05);
        border-bottom: 1px solid rgba(255, 255, 255, 0.05);
        margin: 20px 0;
        border-radius: 20px;
        padding: 40px 20px;
    }
    
    .processes-section.alt-bg {
        background: rgba(255, 255, 255, 0.05) !important;
    }
    
    .category-card,
    .hierarchy-level,
    .sub-process,
    .startup-card,
    .coming-soon-message {
        background: rgba(255, 255, 255, 0.05);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        border: 1px solid rgba(255, 255, 255, 0.1);
    }
    
    .level-title,
    .cta-box {
        background: rgba(0, 51, 102, 0.3);
        border: 1px solid rgba(255, 255, 255, 0.1);
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }
    
    .process-badge {
        background: rgba(212, 175, 55, 0.5);
        border: 1px solid rgba(212, 175, 55, 0.7);
    }
    
    .process-count {
        background: rgba(212, 175, 55, 0.5);
        border: 1px solid rgba(212, 175, 55, 0.7);
    }
    
    .category-icon,
    .main-process .process-icon,
    .sub-process .process-icon,
    .highlight-icon,
    .message-icon {
        background: rgba(212, 175, 55, 0.2);
        border: 1px solid rgba(212, 175, 55, 0.3);
        color: var(--secondary-color);
    }
    
    .category-content h3,
    .main-process .process-content h4,
    .sub-process .process-content h4,
    .highlight-content h3,
    .message-content h3,
    .level-title,
    .category-header h5,
    .cta-box h3 {
        color: white;
    }
    
    .category-content p,
    .main-process .process-content p,
    .sub-process .process-content p,
    .highlight-content p,
    .message-content p,
    .cta-box p {
        color: rgba(255, 255, 255, 0.7);
    }
    
    .meta-tag {
        background: rgba(255, 255, 255, 0.1);
        color: rgba(255, 255, 255, 0.7);
    }
    
    #trainings-category .category-icon {
        background: rgba(76, 175, 80, 0.2);
        border: 1px solid rgba(76, 175, 80, 0.3);
        color: #4CAF50;
    }
    
    #iso-category .category-icon {
        background: rgba(33, 150, 243, 0.2);
        border: 1px solid rgba(33, 150, 243, 0.3);
        color: #2196F3;
    }
    
    #startup-category .category-icon {
        background: rgba(255, 152, 0, 0.2);
        border: 1px solid rgba(255, 152, 0, 0.3);
        color: #FF9800;
    }
    
    #operations-category .category-icon {
        background: rgba(156, 39, 176, 0.2);
        border: 1px solid rgba(156, 39, 176, 0.3);
        color: #9C27B0;
    }
    
    .category-link,
    .message-content a {
        color: var(--secondary-color);
    }
    
    .category-link:hover {
        color: white;
    }
    
    .timeline-visual::before {
        background: linear-gradient(to bottom, rgba(212, 175, 55, 0.5), rgba(0, 51, 102, 0.5));
    }
    
    .timeline-item::before {
        background: var(--secondary-color);
        border: 3px solid rgba(255, 255, 255, 0.1);
        box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.3);
    }
    
    .timeline-marker {
        color: var(--secondary-color);
    }
    
    .timeline-content h4 {
        color: white;
    }
    
    .timeline-content p {
        color: rgba(255, 255, 255, 0.7);
    }
    
    .back-to-top {
        background: rgba(0, 51, 102, 0.5);
        border: 1px solid rgba(255, 255, 255, 0.1);
    }
    
    .back-to-top:hover {
        background: rgba(0, 51, 102, 0.7);
    }
}
/* ===== TEMPLATES PAGE STYLES ===== */

/* Template Introduction */
.template-intro {
    padding: 60px 0;
    background: var(--light-color);
}

.intro-card {
    background: var(--white);
    border-radius: 12px;
    padding: 40px;
    box-shadow: var(--shadow-heavy);
    display: flex;
    align-items: flex-start;
    gap: 30px;
}

.intro-icon {
    flex-shrink: 0;
    font-size: 3rem;
    color: var(--secondary-color);
}

.intro-content h2 {
    color: var(--primary-color);
    margin-bottom: 15px;
}

.intro-content p {
    color: var(--text-light);
    margin-bottom: 25px;
    line-height: 1.6;
}

.intro-features {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-top: 20px;
}

.feature {
    display: flex;
    align-items: center;
    gap: 8px;
    background: var(--light-color);
    padding: 8px 15px;
    border-radius: 20px;
    font-size: 0.9rem;
}

.feature-icon {
    color: var(--secondary-color);
}

/* Templates Grid */
.templates-grid-section {
    padding: 80px 0;
}

.templates-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.template-card {
    background: var(--white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.template-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-heavy);
}

.template-card.coming-soon {
    opacity: 0.8;
    position: relative;
}

.template-card.coming-soon::before {
    content: 'Coming Soon';
    position: absolute;
    top: 10px;
    right: -30px;
    background: var(--secondary-color);
    color: var(--white);
    padding: 5px 30px;
    transform: rotate(45deg);
    font-size: 0.8rem;
    font-weight: 600;
    z-index: 1;
}

.template-header {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--dark-color) 100%);
    padding: 25px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.template-icon {
    color: var(--white);
    font-size: 1.5rem;
}

.template-badge {
    background: rgba(255, 255, 255, 0.2);
    color: var(--white);
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    backdrop-filter: blur(10px);
}

.template-content {
    padding: 25px;
}

.template-content h3 {
    color: var(--primary-color);
    margin-bottom: 15px;
    font-size: 1.4rem;
}

.template-content p {
    color: var(--text-light);
    margin-bottom: 20px;
    line-height: 1.6;
}

.template-features {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 25px;
}

.feature-tag {
    background: var(--light-color);
    color: var(--text-color);
    padding: 5px 12px;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 500;
}

.template-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.template-actions .btn {
    padding: 10px 20px;
    font-size: 0.9rem;
}

.btn-link {
    color: var(--primary-color);
    font-weight: 600;
    font-size: 0.9rem;
    transition: var(--transition);
}

.btn-link:hover {
    color: var(--dark-color);
    gap: 10px;
}

.btn-link::after {
    content: '→';
    margin-left: 5px;
    transition: var(--transition);
}

.btn-link:hover::after {
    margin-left: 10px;
}

/* Template Embed Section */
.template-embed-section {
    padding: 60px 0;
    background: var(--white);
}

.embed-header {
    background: var(--white);
    border-radius: 12px;
    padding: 25px 30px;
    margin-bottom: 30px;
    box-shadow: var(--shadow);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.header-left h2 {
    margin: 0 0 10px 0;
    color: var(--primary-color);
    font-size: 24px;
    font-family: var(--font-heading);
}

.header-left p {
    margin: 0;
    color: var(--text-light);
    font-size: 14px;
}

.header-controls {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.template-selector {
    display: flex;
    gap: 10px;
    align-items: center;
}

.template-selector label {
    font-weight: 600;
    color: var(--primary-color);
}

.template-selector select {
    padding: 10px 15px;
    border: 1px solid #ddd;
    border-radius: 6px;
    background: var(--white);
    font-family: var(--font-body);
    font-size: 14px;
    min-width: 200px;
    color: var(--text-color);
    border: 1px solid var(--primary-color);
}

.template-selector select:focus {
    outline: none;
    border-color: var(--secondary-color);
    box-shadow: 0 0 0 2px rgba(212, 175, 55, 0.2);
}

.embed-actions {
    display: flex;
    gap: 10px;
}

.btn {
    padding: 10px 20px;
    border: none;
    border-radius: 6px;
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: var(--transition);
}

.btn-primary {
    background: var(--primary-color);
    color: var(--white);
}

.btn-primary:hover {
    background: var(--dark-color);
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

.btn-secondary {
    background: var(--light-color);
    color: var(--primary-color);
    border: 1px solid var(--primary-color);
}

.btn-secondary:hover {
    background: var(--primary-color);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

.btn-success {
    background: #28a745;
    color: var(--white);
}

.btn-success:hover {
    background: #218838;
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

.btn-warning {
    background: #ffc107;
    color: #212529;
}

.btn-warning:hover {
    background: #e0a800;
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

.embed-frame-container {
    position: relative;
    margin-bottom: 30px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow-heavy);
}

.embed-frame {
    width: 100%;
    height: 700px;
    border: none;
    background: var(--white);
}

.loading-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.95);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 10;
    border-radius: 12px;
}

.spinner {
    width: 50px;
    height: 50px;
    border: 5px solid var(--light-color);
    border-top: 5px solid var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 20px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.loading-overlay p {
    color: var(--primary-color);
    font-weight: 600;
}

/* Template Status */
.template-status {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
    margin-left: 10px;
}

.status-loaded { 
    background: #d4edda; 
    color: #155724; 
}

.status-loading { 
    background: #fff3cd; 
    color: #856404; 
}

.status-error { 
    background: #f8d7da; 
    color: #721c24; 
}

/* How It Works Section */
.how-it-works {
    padding: 80px 0;
    background: var(--light-color);
}

.steps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.step {
    text-align: center;
    padding: 30px;
    background: var(--white);
    border-radius: 12px;
    box-shadow: var(--shadow);
    transition: var(--transition);
    position: relative;
}

.step:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-heavy);
}

.step-number {
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 30px;
    height: 30px;
    background: var(--secondary-color);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 1.1rem;
}

.step-icon {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.step h3 {
    color: var(--primary-color);
    margin-bottom: 15px;
    font-size: 1.3rem;
}

.step p {
    color: var(--text-light);
    line-height: 1.6;
    margin: 0;
}

/* Benefits Section */
.benefits-section {
    padding: 80px 0;
}

.benefits-content {
    display: flex;
    gap: 60px;
    align-items: flex-start;
}

.benefits-text {
    flex: 1;
}

.benefits-text h2 {
    color: var(--primary-color);
    margin-bottom: 15px;
}

.benefits-text > p {
    color: var(--text-light);
    margin-bottom: 40px;
    font-size: 1.1rem;
}

.benefits-list {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.benefit {
    display: flex;
    gap: 15px;
    align-items: flex-start;
}

.benefit-icon {
    flex-shrink: 0;
    width: 50px;
    height: 50px;
    background: var(--light-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
    font-size: 1.2rem;
}

.benefit-content h3 {
    color: var(--primary-color);
    margin-bottom: 8px;
    font-size: 1.1rem;
}

.benefit-content p {
    color: var(--text-light);
    font-size: 0.95rem;
    line-height: 1.5;
}

.benefits-visual {
    flex: 1;
}

.visual-card {
    background: var(--white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow-heavy);
}

.visual-header {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--dark-color) 100%);
    padding: 20px;
    text-align: center;
}

.visual-header h3 {
    color: var(--white);
    margin: 0;
    font-size: 1.2rem;
}

.visual-content {
    padding: 30px;
}

.template-preview {
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    overflow: hidden;
}

.preview-header {
    background: var(--light-color);
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 20px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.preview-icon {
    font-size: 1.5rem;
    color: var(--primary-color);
}

.preview-title h4 {
    color: var(--primary-color);
    margin: 0 0 5px 0;
    font-size: 1.1rem;
}

.preview-title p {
    color: var(--text-light);
    margin: 0;
    font-size: 0.8rem;
}

.preview-body {
    padding: 20px;
}

.preview-field {
    display: flex;
    justify-content: space-between;
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.preview-field:last-child {
    border-bottom: none;
}

.field-label {
    color: var(--text-color);
    font-weight: 600;
    font-size: 0.9rem;
}

.field-value {
    color: var(--text-light);
    font-size: 0.9rem;
}

.preview-section {
    margin-top: 20px;
}

.preview-section h5 {
    color: var(--primary-color);
    margin-bottom: 10px;
    font-size: 1rem;
}

.preview-section p {
    color: var(--text-light);
    font-size: 0.9rem;
    line-height: 1.5;
    margin: 0;
}

.preview-footer {
    background: var(--light-color);
    padding: 15px 20px;
    text-align: center;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
}

.preview-footer p {
    color: var(--text-light);
    margin: 0;
    font-size: 0.8rem;
}

/* Notification */
.notification {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 15px 20px;
    background: #28a745;
    color: white;
    border-radius: 6px;
    z-index: 1000;
    animation: slideIn 0.3s ease;
    display: none;
    box-shadow: var(--shadow-heavy);
}

@keyframes slideIn {
    from { transform: translateX(100%); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 1000;
    backdrop-filter: blur(5px);
}

.modal-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: var(--white);
    border-radius: 12px;
    width: 90%;
    max-width: 800px;
    max-height: 90vh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: var(--shadow-heavy);
}

.modal-header {
    padding: 20px 30px;
    background: var(--primary-color);
    color: var(--white);
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.modal-header h3 {
    margin: 0;
    color: var(--white);
    font-size: 1.5rem;
}

.modal-close {
    background: none;
    border: none;
    font-size: 28px;
    cursor: pointer;
    color: var(--white);
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.modal-close:hover {
    color: var(--secondary-color);
    transform: rotate(90deg);
}

.modal-body {
    padding: 30px;
    overflow-y: auto;
    flex: 1;
}

.modal-footer {
    padding: 20px 30px;
    background: var(--light-color);
    display: flex;
    gap: 10px;
    justify-content: flex-end;
    border-top: 1px solid #ddd;
}

/* Embed Code Styling */
.embed-code-container {
    background: #f8f9fa;
    padding: 15px;
    border-radius: 6px;
    border: 1px solid #ddd;
    margin-bottom: 20px;
}

.embed-code {
    margin: 0;
    overflow-x: auto;
    font-family: 'Courier New', monospace;
    font-size: 13px;
    white-space: pre-wrap;
    word-wrap: break-word;
    color: var(--text-color);
}

.embed-info-box {
    background: #e8f4fc;
    padding: 15px;
    border-radius: 6px;
    border-left: 3px solid var(--primary-color);
    color: var(--text-color);
}

/* CTA Section */
.cta {
    padding: 80px 0;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--dark-color) 100%);
    color: var(--white);
    text-align: center;
}

.cta-content h2 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    color: var(--white);
}

.cta-content p {
    font-size: 1.2rem;
    max-width: 700px;
    margin: 0 auto 2.5rem;
    opacity: 0.9;
}

.cta-buttons .btn {
    margin: 0 10px 10px;
}

/* Responsive Styles */
@media (max-width: 992px) {
    .embed-header {
        flex-direction: column;
        text-align: center;
    }
    
    .header-left, .header-controls {
        width: 100%;
    }
    
    .template-selector {
        justify-content: center;
        flex-wrap: wrap;
    }
    
    .embed-actions {
        justify-content: center;
    }
    
    .embed-frame {
        height: 600px;
    }
    
    .templates-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .steps-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .benefits-content {
        flex-direction: column;
    }
    
    .benefits-visual {
        margin-top: 40px;
    }
}

@media (max-width: 768px) {
    .intro-card {
        flex-direction: column;
        text-align: center;
    }
    
    .embed-header {
        padding: 20px;
    }
    
    .template-selector {
        flex-direction: column;
        align-items: center;
    }
    
    .template-selector select {
        width: 100%;
        max-width: 300px;
    }
    
    .embed-actions {
        flex-wrap: wrap;
    }
    
    .embed-frame {
        height: 500px;
    }
    
    .templates-grid {
        grid-template-columns: 1fr;
    }
    
    .steps-grid {
        grid-template-columns: 1fr;
    }
    
    .modal-content {
        width: 95%;
        height: 95vh;
    }
    
    .cta-content h2 {
        font-size: 2rem;
    }
    
    .cta-content p {
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .embed-frame {
        height: 400px;
    }
    
    .header-controls {
        flex-direction: column;
    }
    
    .embed-actions {
        flex-direction: column;
        align-items: stretch;
    }
    
    .embed-actions .btn {
        width: 100%;
        margin-bottom: 10px;
    }
    
    .modal-body {
        padding: 20px;
    }
    
    .modal-footer {
        flex-direction: column;
    }
    
    .modal-footer .btn {
        width: 100%;
        margin-bottom: 10px;
    }
    
    .template-actions {
        flex-direction: column;
        gap: 15px;
        align-items: stretch;
    }
    
    .template-actions .btn {
        width: 100%;
        text-align: center;
    }
}

/* Liquid Glass Mobile Theme for Templates Page */
@media (max-width: 768px) {
    .template-intro,
    .templates-grid-section,
    .template-embed-section,
    .how-it-works,
    .benefits-section {
        background: rgba(255, 255, 255, 0.03) !important;
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        border-top: 1px solid rgba(255, 255, 255, 0.05);
        border-bottom: 1px solid rgba(255, 255, 255, 0.05);
        margin: 20px 0;
        border-radius: 20px;
        padding: 40px 20px;
    }
    
    .intro-card,
    .template-card,
    .embed-header,
    .step,
    .visual-card,
    .modal-content {
        background: rgba(255, 255, 255, 0.05);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        border: 1px solid rgba(255, 255, 255, 0.1);
    }
    
    .intro-content h2,
    .template-content h3,
    .header-left h2,
    .step h3,
    .benefits-text h2,
    .benefit-content h3,
    .visual-header h3,
    .preview-title h4,
    .preview-section h5,
    .modal-header h3 {
        color: white;
    }
    
    .intro-content p,
    .template-content p,
    .header-left p,
    .step p,
    .benefits-text > p,
    .benefit-content p,
    .preview-title p,
    .preview-section p,
    .preview-footer p {
        color: rgba(255, 255, 255, 0.7);
    }
    
    .template-header {
        background: rgba(0, 51, 102, 0.4);
        border: 1px solid rgba(255, 255, 255, 0.1);
    }
    
    .template-badge {
        background: rgba(255, 255, 255, 0.1);
        border: 1px solid rgba(255, 255, 255, 0.2);
    }
    
    .feature-tag {
        background: rgba(255, 255, 255, 0.1);
        color: white;
    }
    
    .btn-link {
        color: var(--secondary-color);
    }
    
    .feature {
        background: rgba(255, 255, 255, 0.1);
        color: white;
    }
    
    .template-selector label {
        color: white;
    }
    
    .template-selector select {
        background: rgba(255, 255, 255, 0.05);
        border: 1px solid rgba(255, 255, 255, 0.1);
        color: white;
    }
    
    .template-selector select option {
        background: rgba(0, 51, 102, 0.8);
        color: white;
    }
    
    .embed-frame-container {
        background: rgba(255, 255, 255, 0.05);
        border: 1px solid rgba(255, 255, 255, 0.1);
    }
    
    .loading-overlay {
        background: rgba(0, 0, 0, 0.7);
        backdrop-filter: blur(10px);
        -webkit-backdrop-filter: blur(10px);
    }
    
    .loading-overlay p {
        color: white;
    }
    
    .spinner {
        border-color: rgba(255, 255, 255, 0.1);
        border-top-color: var(--secondary-color);
    }
    
    .intro-icon,
    .template-icon,
    .step-icon,
    .benefit-icon,
    .preview-icon {
        color: var(--secondary-color);
    }
    
    .step-number {
        background: rgba(212, 175, 55, 0.5);
        border: 1px solid rgba(212, 175, 55, 0.7);
    }
    
    .feature-icon {
        color: var(--secondary-color);
    }
    
    .modal-header {
        background: rgba(0, 51, 102, 0.5);
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }
    
    .embed-code-container {
        background: rgba(255, 255, 255, 0.05);
        border: 1px solid rgba(255, 255, 255, 0.1);
    }
    
    .embed-code {
        color: white;
    }
    
    .embed-info-box {
        background: rgba(0, 51, 102, 0.2);
        border-left: 3px solid var(--secondary-color);
        color: white;
    }
    
    .notification {
        background: rgba(40, 167, 69, 0.8);
        backdrop-filter: blur(10px);
        -webkit-backdrop-filter: blur(10px);
        border: 1px solid rgba(255, 255, 255, 0.1);
    }
    
    .template-preview {
        border: 1px solid rgba(255, 255, 255, 0.1);
    }
    
    .preview-header,
    .preview-footer {
        background: rgba(255, 255, 255, 0.05);
        border-color: rgba(255, 255, 255, 0.1);
    }
    
    .field-label {
        color: white;
    }
    
    .field-value {
        color: rgba(255, 255, 255, 0.7);
    }
    
    .preview-field {
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }
}
/* Local Processing Info */
.local-processing-info {
    margin: 60px 0;
}

.info-card {
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.1) 0%, rgba(0, 51, 102, 0.05) 100%);
    border: 2px solid var(--secondary-color);
    border-radius: 12px;
    padding: 40px;
    display: flex;
    align-items: center;
    gap: 30px;
}

.info-icon {
    font-size: 3rem;
    color: var(--secondary-color);
    flex-shrink: 0;
}

.info-content h3 {
    color: var(--primary-color);
    margin-bottom: 15px;
}

.info-content p {
    color: var(--text-color);
    margin-bottom: 25px;
    line-height: 1.6;
}

.capabilities-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 15px;
}

.capability {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 8px;
}

.capability i {
    color: var(--secondary-color);
}

.result-note {
    font-size: 0.8rem;
    color: var(--text-light);
    margin-top: 5px;
    font-style: italic;
    display: flex;
    align-items: flex-start;
    gap: 5px;
}

.result-note i {
    color: var(--secondary-color);
    margin-top: 2px;
}

/* ===== DOCUMENT CONVERTER STYLES ===== */

/* Converter Section */
.converter-section {
    padding: 80px 0;
    background: var(--white);
}

.converter-intro {
    margin-bottom: 60px;
}

.converter-card {
    background: var(--white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow-heavy);
    margin-bottom: 60px;
}

.converter-header {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--dark-color) 100%);
    color: var(--white);
    padding: 25px 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.converter-header h2 {
    margin: 0;
    color: var(--white);
    display: flex;
    align-items: center;
    gap: 15px;
}

.converter-header p {
    margin: 5px 0 0 0;
    opacity: 0.9;
    font-size: 0.95rem;
}

.conversion-stats {
    display: flex;
    gap: 20px;
}

.stat {
    text-align: center;
    background: rgba(255, 255, 255, 0.1);
    padding: 10px 20px;
    border-radius: 8px;
    backdrop-filter: blur(10px);
}

.stat-number {
    display: block;
    font-size: 1.8rem;
    font-weight: bold;
    color: var(--secondary-color);
}

.stat-label {
    font-size: 0.8rem;
    opacity: 0.9;
}

.converter-body {
    padding: 30px;
}

/* Conversion Type Selector */
.conversion-type-selector {
    margin-bottom: 40px;
}

.conversion-type-selector h3 {
    color: var(--primary-color);
    margin-bottom: 25px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.conversion-types {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.conversion-type {
    background: var(--light-color);
    border: 2px solid transparent;
    border-radius: 12px;
    padding: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
}

.conversion-type:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow);
    border-color: var(--secondary-color);
}

.conversion-type.active {
    border-color: var(--primary-color);
    background: var(--white);
    box-shadow: var(--shadow);
}

.type-icon {
    font-size: 1.8rem;
    margin-bottom: 15px;
    color: var(--primary-color);
    display: flex;
    justify-content: center;
    gap: 10px;
    align-items: center;
}

.type-icon .fa-arrow-right {
    font-size: 1rem;
    opacity: 0.7;
}

.type-info h4 {
    color: var(--primary-color);
    margin-bottom: 8px;
}

.type-info p {
    color: var(--text-light);
    font-size: 0.9rem;
    margin: 0;
    line-height: 1.4;
}

/* File Upload Area */
.file-upload-area {
    margin-bottom: 40px;
}

.upload-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    flex-wrap: wrap;
    gap: 15px;
}

.upload-header h3 {
    color: var(--primary-color);
    margin: 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.file-info {
    background: var(--light-color);
    padding: 8px 15px;
    border-radius: 20px;
    font-size: 0.9rem;
    color: var(--text-light);
}

.upload-zone {
    border: 3px dashed var(--light-color);
    border-radius: 12px;
    padding: 60px 20px;
    text-align: center;
    transition: all 0.3s ease;
    background: var(--white);
    position: relative;
    overflow: hidden;
    cursor: pointer;
}

.upload-zone:hover {
    border-color: var(--primary-color);
    background: rgba(0, 51, 102, 0.02);
}

.upload-zone.dragover {
    border-color: var(--secondary-color);
    background: rgba(212, 175, 55, 0.05);
}

.zone-content {
    pointer-events: none;
}

.zone-content i {
    font-size: 3.5rem;
    color: var(--primary-color);
    margin-bottom: 20px;
    opacity: 0.7;
}

.zone-content h4 {
    color: var(--primary-color);
    margin-bottom: 10px;
}

.zone-content p {
    color: var(--text-light);
    margin-bottom: 5px;
}

.file-requirements {
    font-size: 0.85rem;
    color: var(--text-light);
    margin-top: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
}

#file-input {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
}

/* Conversion Options */
.conversion-options {
    background: var(--light-color);
    border-radius: 12px;
    padding: 25px;
    margin-top: 25px;
}

.conversion-options h4 {
    color: var(--primary-color);
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.options-group {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.option {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.option label {
    color: var(--dark-color);
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
}

.option select,
.option input[type="text"] {
    padding: 10px 15px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-family: var(--font-body);
    font-size: 0.95rem;
    transition: var(--transition);
    background: var(--white);
}

.option select:focus,
.option input[type="text"]:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px rgba(0, 51, 102, 0.1);
}

.option input[type="checkbox"] {
    width: auto;
    margin-right: 5px;
}

/* Conversion Actions */
.conversion-actions {
    display: flex;
    gap: 15px;
    margin-top: 30px;
    justify-content: flex-end;
}

.conversion-actions .btn {
    padding: 12px 25px;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Progress and Results */
.conversion-results {
    background: var(--light-color);
    border-radius: 12px;
    padding: 25px;
    margin-top: 40px;
}

.results-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    flex-wrap: wrap;
    gap: 15px;
}

.results-header h3 {
    color: var(--primary-color);
    margin: 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.progress-container {
    margin-bottom: 30px;
}

.progress-info {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
    font-size: 0.9rem;
}

#progress-text {
    color: var(--primary-color);
    font-weight: 600;
}

#progress-percent {
    color: var(--secondary-color);
    font-weight: 600;
}

.progress-bar {
    height: 10px;
    background: #e9ecef;
    border-radius: 5px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    width: 0%;
    transition: width 0.3s ease;
    border-radius: 5px;
}

.results-container {
    min-height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.empty-state {
    text-align: center;
    color: var(--text-light);
}

.empty-state i {
    font-size: 3rem;
    color: var(--light-color);
    margin-bottom: 15px;
}

.empty-state h4 {
    color: var(--text-light);
    margin-bottom: 10px;
}

.empty-state p {
    margin: 0;
}

/* Result Items */
.result-item {
    background: var(--white);
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.result-item:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-heavy);
}

.result-info {
    display: flex;
    align-items: center;
    gap: 15px;
    flex: 1;
}

.result-icon {
    width: 50px;
    height: 50px;
    background: var(--light-color);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: var(--primary-color);
}

.result-details {
    flex: 1;
}

.result-name {
    color: var(--primary-color);
    font-weight: 600;
    margin-bottom: 5px;
    word-break: break-all;
}

.result-meta {
    display: flex;
    gap: 15px;
    font-size: 0.85rem;
    color: var(--text-light);
}

.result-actions {
    display: flex;
    gap: 10px;
}

.result-actions .btn {
    padding: 8px 15px;
    font-size: 0.85rem;
}

/* Security Section */
.security-section {
    margin: 80px 0;
}

.security-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.security-card {
    background: var(--white);
    border-radius: 12px;
    padding: 30px;
    text-align: center;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.security-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-heavy);
}

.security-icon {
    width: 70px;
    height: 70px;
    background: var(--light-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 1.8rem;
    color: var(--primary-color);
}

.security-card h3 {
    color: var(--primary-color);
    margin-bottom: 15px;
}

.security-card p {
    color: var(--text-light);
    margin: 0;
    font-size: 0.95rem;
    line-height: 1.5;
}

/* Integration Section */
.integration-section {
    margin: 80px 0;
}

.integration-card {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--dark-color) 100%);
    color: var(--white);
    border-radius: 12px;
    padding: 40px;
    display: flex;
    align-items: center;
    gap: 30px;
}

.integration-icon {
    font-size: 3rem;
    color: var(--secondary-color);
    flex-shrink: 0;
}

.integration-content {
    flex: 1;
}

.integration-content h2 {
    color: var(--white);
    margin-bottom: 15px;
}

.integration-content p {
    opacity: 0.9;
    margin-bottom: 25px;
}

.integration-features {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 25px;
}

.integration-features .feature {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: var(--white);
}

.integration-actions {
    display: flex;
    gap: 15px;
}

/* API Config */
.api-config {
    color: var(--text-color);
}

.api-service {
    background: var(--light-color);
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 20px;
}

.api-service h4 {
    color: var(--primary-color);
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.api-input {
    display: flex;
    gap: 10px;
    margin-top: 15px;
}

.api-input input {
    flex: 1;
    padding: 10px 15px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-family: var(--font-body);
}

.security-note {
    display: flex;
    gap: 15px;
    background: #e8f4fc;
    padding: 15px;
    border-radius: 8px;
    border-left: 3px solid var(--primary-color);
    margin-top: 20px;
}

.security-note i {
    color: var(--primary-color);
    font-size: 1.2rem;
    flex-shrink: 0;
}

.security-note p {
    margin: 0;
    font-size: 0.95rem;
    line-height: 1.5;
}

/* Notification */
.notification {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 15px 20px;
    background: var(--primary-color);
    color: var(--white);
    border-radius: 8px;
    z-index: 1000;
    display: none;
    align-items: center;
    gap: 10px;
    box-shadow: var(--shadow-heavy);
    max-width: 400px;
    animation: slideIn 0.3s ease;
}

.notification.success {
    background: #28a745;
}

.notification.error {
    background: #dc3545;
}

.notification.warning {
    background: #ffc107;
    color: #212529;
}

@keyframes slideIn {
    from { transform: translateX(100%); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

/* Responsive Styles */
@media (max-width: 768px) {
    .converter-header {
        flex-direction: column;
        text-align: center;
    }
    
    .conversion-stats {
        justify-content: center;
    }
    
    .upload-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .conversion-actions {
        flex-direction: column;
    }
    
    .conversion-actions .btn {
        width: 100%;
        justify-content: center;
    }
    
    .integration-card {
        flex-direction: column;
        text-align: center;
    }
    
    .integration-actions {
        flex-direction: column;
    }
    
    .result-item {
        flex-direction: column;
        text-align: center;
    }
    
    .result-info {
        flex-direction: column;
    }
}

@media (max-width: 480px) {
    .conversion-types {
        grid-template-columns: 1fr;
    }
    
    .options-group {
        grid-template-columns: 1fr;
    }
    
    .api-input {
        flex-direction: column;
    }
}

/* ===== AFK MODE STYLES ===== */

.afk-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(10px);
    z-index: 9999;
    display: none;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.afk-overlay.active {
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 1;
}

.afk-container {
    position: relative;
    width: 90%;
    max-width: 1200px;
    height: 90%;
    max-height: 800px;
    border-radius: 20px;
    overflow: hidden;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--dark-color) 100%);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.5);
}

.afk-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.afk-particles {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
}

.afk-overlay-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
}

.afk-content {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    padding: 40px;
    text-align: center;
    color: var(--white);
}

.afk-title {
    font-size: 3.5rem;
    margin-bottom: 20px;
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 0.8s ease forwards 0.3s;
}

.afk-subtitle {
    font-size: 1.3rem;
    max-width: 600px;
    margin-bottom: 50px;
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 0.8s ease forwards 0.5s;
    opacity: 0.9;
}

.afk-visual {
    width: 100%;
    height: 300px;
    position: relative;
    margin-bottom: 50px;
}

.afk-floating-elements {
    position: relative;
    width: 100%;
    height: 100%;
}

.afk-element {
    position: absolute;
    width: 180px;
    height: 60px;
    border-radius: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
    animation: afkFloat 8s ease-in-out infinite;
    padding: 0 20px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    opacity: 0;
}

.afk-element-1 {
    top: 10%;
    left: 10%;
    animation-delay: 0.8s;
    animation: fadeInUp 0.8s ease forwards 0.8s, afkFloat 8s ease-in-out infinite 1s;
}

.afk-element-2 {
    top: 70%;
    left: 15%;
    animation-delay: 1s;
    animation: fadeInUp 0.8s ease forwards 1s, afkFloat 8s ease-in-out infinite 1.2s;
}

.afk-element-3 {
    top: 20%;
    right: 10%;
    animation-delay: 1.2s;
    animation: fadeInUp 0.8s ease forwards 1.2s, afkFloat 8s ease-in-out infinite 1.4s;
}

.afk-element-4 {
    top: 75%;
    right: 15%;
    animation-delay: 1.4s;
    animation: fadeInUp 0.8s ease forwards 1.4s, afkFloat 8s ease-in-out infinite 1.6s;
}

.afk-service-title {
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-weight: 600;
    font-size: 1rem;
    white-space: nowrap;
}

.afk-star-icon {
    width: 20px;
    height: 20px;
    margin-right: 10px;
    filter: brightness(0) saturate(100%) invert(82%) sepia(39%) saturate(527%) hue-rotate(3deg) brightness(92%) contrast(91%);
}

@keyframes afkFloat {
    0%, 100% {
        transform: translateY(0) rotate(0deg);
        border-radius: 30px;
    }
    25% {
        transform: translateY(-15px) rotate(2deg);
        border-radius: 40% 60% 70% 30% / 40% 50% 60% 50%;
    }
    50% {
        transform: translateY(-10px) rotate(0deg);
        border-radius: 30px 40% 30% 70% / 30% 40% 60% 40%;
    }
    75% {
        transform: translateY(-12px) rotate(-2deg);
        border-radius: 40% 30% 70% 40% / 50% 60% 30% 60%;
    }
}

.afk-countdown {
    margin-bottom: 40px;
    opacity: 0;
    animation: fadeInUp 0.8s ease forwards 1.6s;
}

.countdown-circle {
    position: relative;
    width: 120px;
    height: 120px;
    margin: 0 auto 20px;
}

.countdown-svg {
    transform: rotate(-90deg);
}

.countdown-circle-bg {
    stroke: rgba(255, 255, 255, 0.2);
    stroke-linecap: round;
}

.countdown-circle-fill {
    stroke: var(--secondary-color);
    stroke-linecap: round;
    transition: stroke-dashoffset 1s linear;
}

.countdown-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
}

.countdown-text span {
    display: block;
    font-size: 2.5rem;
    font-weight: bold;
    color: var(--white);
    margin-bottom: 5px;
}

.countdown-text small {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.7);
}

.countdown-message {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.8);
    margin-top: 10px;
}

#afk-continue {
    opacity: 0;
    animation: fadeInUp 0.8s ease forwards 1.8s;
    padding: 15px 40px;
    font-size: 1.1rem;
    background: rgba(212, 175, 55, 0.2);
    border: 1px solid rgba(212, 175, 55, 0.3);
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

#afk-continue:hover {
    background: rgba(212, 175, 55, 0.3);
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
}

#afk-continue::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.6s ease;
}

#afk-continue:hover::before {
    left: 100%;
}

/* AFK Mode Responsive */
@media (max-width: 992px) {
    .afk-title {
        font-size: 2.8rem;
    }
    
    .afk-subtitle {
        font-size: 1.1rem;
    }
    
    .afk-visual {
        height: 250px;
    }
    
    .afk-element {
        width: 150px;
        height: 50px;
    }
}

@media (max-width: 768px) {
    .afk-container {
        width: 95%;
        height: 95%;
    }
    
    .afk-title {
        font-size: 2.2rem;
    }
    
    .afk-subtitle {
        font-size: 1rem;
        padding: 0 20px;
    }
    
    .afk-visual {
        height: 200px;
        margin-bottom: 30px;
    }
    
    .afk-element {
        width: 130px;
        height: 45px;
        font-size: 0.9rem;
    }
    
    .afk-element-1 {
        top: 15%;
        left: 5%;
    }
    
    .afk-element-2 {
        top: 65%;
        left: 8%;
    }
    
    .afk-element-3 {
        top: 25%;
        right: 5%;
    }
    
    .afk-element-4 {
        top: 70%;
        right: 8%;
    }
    
    .countdown-circle {
        width: 100px;
        height: 100px;
    }
    
    .countdown-text span {
        font-size: 2rem;
    }
}

@media (max-width: 480px) {
    .afk-title {
        font-size: 1.8rem;
    }
    
    .afk-subtitle {
        font-size: 0.95rem;
    }
    
    .afk-element {
        width: 110px;
        height: 40px;
        font-size: 0.8rem;
    }
    
    .afk-star-icon {
        width: 16px;
        height: 16px;
        margin-right: 6px;
    }
}