:root {
    --primary-color: #2D3436;
    --accent-color: #00A8FF;
    --text-color: #2D3436;
    --light-bg: #F5F6FA;
    --gradient: linear-gradient(135deg, #00A8FF, #4B7BEC);
}

/* Top Banner */
.top-banner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 10%;
    background: var(--gradient);
    color: white;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1001;
}

.top-banner .banner-content {
    flex-grow: 1;
    text-align: center;
}

.top-banner a {
    color: white;
    text-decoration: none;
    font-weight: 500;
}

.top-banner a:hover {
    text-decoration: underline;
}

.close-banner {
    background: none;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0 0.5rem;
}

.close-banner:hover {
    opacity: 0.8;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

html {
    scroll-behavior: smooth;
}

body {
    line-height: 1.6;
    color: var(--text-color);
}

/* Navigation */
nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 10%;
    background: white;
    position: fixed;
    width: 100%;
    /* top position is now set dynamically in header.js */
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.logo {
    font-size: 1.8rem;
    font-weight: bold;
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.nav-links a {
    margin-left: 2rem;
    text-decoration: none;
    color: var(--text-color);
    font-weight: 500;
    transition: color 0.3s;
}

.nav-links a:hover {
    color: var(--accent-color);
}

/* Hero Section */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 10%;
    background: var(--light-bg);
    position: relative;
    /* margin-top is now set inline in the HTML */
}

.hero-content {
    max-width: 600px;
    z-index: 1;
}

.hero-graphic {
    position: relative;
    width: 500px;
    height: 500px;
}

.hero-graphic img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 0 auto;
}

.geometric-shapes {
    position: absolute;
    width: 100%;
    height: 100%;
}

.geometric-shapes::before {
    content: '';
    position: absolute;
    width: 300px;
    height: 300px;
    background: linear-gradient(135deg, var(--accent-color) 0%, #4B7BEC 100%);
    border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
    filter: blur(2px);
    opacity: 0.1;
    animation: morphShape 15s ease-in-out infinite;
}

.geometric-shapes::after {
    content: '';
    position: absolute;
    width: 250px;
    height: 250px;
    top: 100px;
    left: 100px;
    background: linear-gradient(225deg, #4B7BEC 0%, var(--accent-color) 100%);
    border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%;
    filter: blur(2px);
    opacity: 0.1;
    animation: morphShape 12s ease-in-out infinite reverse;
}

@keyframes morphShape {
    0% {
        border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
        transform: rotate(0deg);
    }
    50% {
        border-radius: 70% 30% 30% 70% / 70% 70% 30% 30%;
        transform: rotate(180deg);
    }
    100% {
        border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
        transform: rotate(360deg);
    }
}

.hero h1 {
    font-size: 3.5rem;
    line-height: 1.2;
    margin-bottom: 1.5rem;
}

.highlight {
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    color: #636e72;
}

.cta-button {
    padding: 1rem 2rem;
    font-size: 1.1rem;
    background: var(--gradient);
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: transform 0.3s;
}

.cta-button:hover {
    transform: translateY(-2px);
}

/* Case Studies Section */
.case-studies {
    padding: 6rem 10%;
    background: var(--light-bg);
}

.case-studies h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: var(--primary-color);
}

.case-studies-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

/* Force 5 columns on large screens */
@media (min-width: 1400px) {
    .case-studies-grid {
        grid-template-columns: repeat(5, 1fr);
    }
}

.case-study-card {
    background: white;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: transform 0.3s;
}

.case-study-card:hover {
    transform: translateY(-5px);
}

.case-study-image {
    width: 100%;
    height: 200px;
    overflow: hidden;
}

.case-study-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.case-study-card:hover .case-study-image img {
    transform: scale(1.05);
}

.case-study-card h3 {
    padding: 1.5rem 1.5rem 0.5rem;
    color: var(--primary-color);
}

.case-study-card p {
    padding: 0 1.5rem 1.5rem;
    color: #636e72;
}

.case-study-link {
    display: inline-block;
    margin: 0 1.5rem 1.5rem;
    color: var(--accent-color);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
}

.case-study-link:hover {
    color: #4B7BEC;
}

/* Services Section */
.services {
    padding: 6rem 10%;
    background: white;
}

.services h2, .about h2, .contact h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: var(--primary-color);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.service-card {
    padding: 2rem;
    background: white;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s;
    text-align: center;
}

.service-card:hover {
    transform: translateY(-5px);
}

.service-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.service-card h3 {
    margin-bottom: 1rem;
    color: var(--primary-color);
}

/* About Section */
.about {
    padding: 6rem 10%;
    background: var(--light-bg);
}

.about-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: justify;
}

.about-content p {
    margin-bottom: 3rem;
    font-size: 1.1rem;
}

.stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.stat {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: bold;
    color: var(--accent-color);
}

.stat-label {
    color: #636e72;
}

/* Contact Section */
.contact {
    padding: 6rem 10%;
    background: white;
}

.contact-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    max-width: 1000px;
    margin: 0 auto;
    gap: 4rem;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    width: 100%;
    max-width: 500px;
}

.contact-form input,
.contact-form textarea {
    padding: 1rem;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 1rem;
}

.contact-form textarea {
    height: 150px;
    resize: vertical;
}

.submit-button {
    padding: 1rem;
    background: var(--gradient);
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1rem;
    transition: transform 0.3s;
}

.submit-button:hover {
    transform: translateY(-2px);
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    padding: 2rem;
    background: var(--light-bg);
    border-radius: 10px;
    width: 100%;
    max-width: 500px;
    text-align: center;
}

.info-item {
    display: flex;
    flex-direction: column;
}

.info-label {
    font-weight: bold;
    color: var(--accent-color);
}

/* Contact Form Status Messages */
.status-message {
    padding: 1rem;
    border-radius: 5px;
    margin-bottom: 1rem;
    font-weight: 500;
    text-align: center;
}

.status-message.success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.status-message.error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* Footer */
footer {
    background: var(--primary-color);
    color: white;
    padding: 4rem 10% 2rem;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.footer-logo {
    font-size: 1.5rem;
    font-weight: bold;
}

.footer-links {
    display: flex;
    gap: 2rem;
}

.footer-links a, .social-link {
    color: white;
    text-decoration: none;
    transition: color 0.3s;
}

.footer-links a:hover, .social-link:hover {
    color: var(--accent-color);
}

.footer-social {
    display: flex;
    gap: 1.5rem;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}


/* Responsive Design */
@media (max-width: 768px) {
    .top-banner {
        padding: 0.75rem 5%;
    }
    
    .top-banner .banner-content {
        font-size: 0.9rem;
    }
    
    nav {
        padding: 1rem 5%;
        /* top position is now set dynamically in header.js */
    }
    
    .hero {
        flex-direction: column;
        text-align: center;
        padding: 2rem 5%;
        margin-top: 100px;
    }

    .hero h1 {
        font-size: 2.5rem;
    }

    .contact-container {
        grid-template-columns: 1fr;
    }

    .footer-content {
        flex-direction: column;
        gap: 2rem;
        text-align: center;
    }

    .footer-links, .footer-social {
        flex-direction: column;
        gap: 1rem;
    }

    .neural-network {
        display: none;
    }
}

/* Layout styles */
.container {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.main-content {
    display: flex;
    flex: 1;
    margin-top: 20px;
}

/* Blog content styles */
.blog-content {
    flex: 1;
    margin-left: 9%;
    margin-right: 20px;
    padding: 20px;
    background-color: #fff;
    /* box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1); */
}

/* Right sidebar styles */
.right-sidebar {
    width: 40%;
    padding: 20px;
    /* background-color: #F5F6FA; */
    /* box-shadow: -2px 0 5px rgba(0, 0, 0, 0.1); */
}

/* Navigation link styles */
.sidebar-nav a {
    display: block;
    margin: 10px 0;
    text-decoration: none;
    color: #333;
}

.sidebar-nav a:hover {
    color: #007BFF;
}

/* Table of contents styles */
.toc {
    position: sticky;
    top: 20px;
    padding-top: 100px; /* Adjusted value */
    margin-top: -100px; /* Adjusted value */              
}

.toc a {
    display: block;
    margin: 5px 0;
    text-decoration: none;
    color: #333;
    font-size: 0.9em;
}

.toc a:hover {
    color: #007BFF;
}

/* Additional styles */
.section-padding {
    padding-top: 100px; /* Adjusted value */
    margin-top: -100px; /* Adjusted value */
}

/* Video grid styles */
.video-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    margin: 20px 0;
}

@media (max-width: 768px) {
    .video-grid {
        grid-template-columns: 1fr;
    }
}

.video-card {
    background-color: white;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    padding: 15px;
    transition: transform 0.3s;
}

.video-card:hover {
    transform: translateY(-5px);
}

.video-card h3 {
    margin-bottom: 15px;
    color: var(--primary-color);
    text-align: center;
}

/* Video container styles */
.video-container {
    padding: 10px;
    background-color: var(--light-bg);
    border-radius: 10px;
}

.video-container video {
    display: block;
    margin: 0 auto;
    max-width: 100%;
    height: auto;
    border-radius: 5px;
    max-height: 350px;
}

.video-container p {
    margin-top: 10px;
    font-size: 0.9rem;
    color: var(--text-color);
    text-align: center;
}

/* Placeholder video styles */
.placeholder-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.placeholder-video {
    width: 100%;
    height: 350px;
    background-color: #e0e0e0;
    border-radius: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.placeholder-icon {
    font-size: 4rem;
    color: var(--accent-color);
    opacity: 0.7;
}

.case-study-detail {
    max-width: 900px;
    margin: 6rem auto;
    padding: 2rem;
    background: white;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    line-height: 1.8;
    color: var(--text-color);
}

.case-study-detail h1 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    color: var(--primary-color);
    text-align: center;
}

.case-study-detail p {
    font-size: 1.1rem;
    margin-bottom: 1rem;
    color: #636e72;
}

.case-study-detail ul {
    margin: 1.5rem 0;
    padding-left: 1.5rem;
    list-style-type: disc;
}

.case-study-detail ul li {
    margin-bottom: 0.75rem;
    font-size: 1.05rem;
    color: #2d3436;
}

@media (max-width: 768px) {
    .case-study-detail {
        margin: 4rem 1rem;
        padding: 1.5rem;
    }

    .case-study-detail h1 {
        font-size: 2rem;
    }
}

.training-table-container {
    overflow-x: auto;
    margin-top: 1em;
}

.training-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.95em;
}

.training-table th,
.training-table td {
    padding: 12px 16px;
    border: 1px solid #ccc;
    vertical-align: top;
    text-align: left;
}

.training-table th {
    background-color: #f4f4f4;
}

.training-table a {
    display: inline-block;
    margin-top: 4px;
    font-weight: bold;
    color: #007bff;
    text-decoration: none;
    margin-left: 0px;    
}

.training-table a:hover {
    text-decoration: underline;
}

.course-title {
    font-weight: bold;
}

