/* Importing Fonts */
@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@400;700&family=Montserrat:wght@600&display=swap');

/* CSS Variables for Updated Modern Tech Blue Palette */
:root {
    --primary-color: #0274d8;       /* Deeper Blue */
    --secondary-color: #004494;     /* Darker Cobalt Blue */
    --accent-color: #e64a19;        /* Darker Vibrant Orange */
    --background-color: #ffffff;    /* White */
    --text-color: #212121;          /* Almost Black */
    --font-family-primary: 'Roboto', sans-serif;
    --font-family-secondary: 'Montserrat', sans-serif;
    --transition-speed: 0.3s;
}

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-family-primary);
    background-color: var(--background-color);
    color: var(--text-color);
    line-height: 1.6;
}

/* Container */
.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px 0;
}

/* Navbar Styles */
.navbar {
    background-color: var(--primary-color);
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.navbar .logo {
    font-family: var(--font-family-secondary);
    font-size: 24px;
    color: #fff;
    text-decoration: none;
    font-weight: 700;
}

.navbar .nav-links li a {
    color: #fff;
    text-decoration: none;
    font-weight: 500;
    transition: color var(--transition-speed);
}

.navbar .nav-links li a:hover {
    color: var(--accent-color);
}
/*
.navbar .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1200px; 
    margin: 0 auto;
    padding: 0 20px;
}

.navbar .logo {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    text-decoration: none;
}





*/

.navbar .container {
    text-align: center;
    margin: 0 auto;
    padding: 0 20px;
}

.nav-links {
    list-style: none;
    display: inline-flex;
    margin: 0;
    padding: 0;
}

.nav-links li {
    margin: 0 15px;
}

.navbar .logo h1 {
    margin: 0;
    font-size: 42px;
    /* Adjust margin-top if needed */
    /* margin-top: 5px; */
}

@media screen and (max-width: 768px) {
    .nav-links {
        display: none;
    }

    .nav-links.active {
        display: flex;
        flex-direction: column;
        width: 100%;
        background-color: #333;
    }

    .nav-links.active li {
        text-align: center;
        margin: 10px 0;
    }
}

/* Mobile Menu Toggle */
.toggle {
    display: none;
    font-size: 24px;
    cursor: pointer;
}


/* Hero Section */
.hero {
    background: var(--primary-color);
    color: #fff;
    padding: 100px 0;
    text-align: center;
    position: relative;
}

.hero h1 {
    font-family: var(--font-family-secondary);
    font-size: 48px;
    margin-bottom: 20px;
}

.hero p {
    font-size: 20px;
    margin-bottom: 30px;
}

.cta-button {
    display: inline-block;
    padding: 12px 30px;
    background-color: var(--accent-color);
    color: #fff;
    text-decoration: none;
    font-weight: 600;
    border-radius: 25px;
    transition: background-color var(--transition-speed), transform var(--transition-speed);
}

.cta-button:hover {
    background-color: #cc3c16; /* Slightly darker orange */
    transform: translateY(-3px);
}

/* Blog Post Styles */
.blog-post {
    background: #fff;
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    margin-bottom: 40px;
}

.blog-post h2 {
    font-family: var(--font-family-secondary);
    font-size: 32px;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.blog-post h3 {
    font-family: var(--font-family-secondary);
    font-size: 24px;
    color: var(--secondary-color);
    margin-top: 30px;
    margin-bottom: 15px;
}

.blog-post h4 {
    font-family: var(--font-family-secondary);
    font-size: 20px;
    color: var(--secondary-color);
    margin-top: 25px;
    margin-bottom: 10px;
}

.blog-post p {
    font-size: 18px;
    margin-bottom: 20px;
    color: #555;
}

.blog-post ul {
    list-style-type: disc;
    margin-left: 20px;
    margin-bottom: 20px;
}

.blog-post li {
    margin-bottom: 10px;
}

.blog-post .media {
    margin: 20px 0;
}

.blog-post img, 
.blog-post video {
    width: 100%;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    transition: transform var(--transition-speed), box-shadow var(--transition-speed);
}

.blog-post img:hover, 
.blog-post video:hover {
    transform: scale(1.02);
    box-shadow: 0 6px 15px rgba(0,0,0,0.15);
}

/* Embedded Video Styles */
.embedded-video {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
    padding-top: 25px;
    height: 0;
}

.embedded-video iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    transition: transform var(--transition-speed), box-shadow var(--transition-speed);
}

.embedded-video iframe:hover {
    transform: scale(1.02);
    box-shadow: 0 6px 15px rgba(0,0,0,0.15);
}

/* Tabs Styles */
.tabs {
    margin-top: 30px;
}

.tab-button {
    background-color: var(--secondary-color);
    color: #fff;
    border: none;
    padding: 10px 20px;
    cursor: pointer;
    font-size: 16px;
    margin-right: 5px;
    border-radius: 5px 5px 0 0;
    transition: background-color var(--transition-speed);
}

.tab-button:hover {
    background-color: var(--accent-color);
}

.tab-button.active {
    background-color: var(--accent-color);
}

.tab-content {
    border: 1px solid var(--secondary-color);
    border-top: none;
    padding: 20px;
    display: none;
}

.tab-content.active {
    display: block;
}

/* Demo Link Styles (if using <a> instead of embedded videos) */
.demo-link {
    display: inline-block;
    margin-bottom: 10px;
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
    transition: color var(--transition-speed);
}

.demo-link:hover {
    color: var(--accent-color);
}

/* Footer Styles */
footer {
    background-color: var(--primary-color);
    color: #fff;
    padding: 30px 0;
    text-align: center;
}

footer p {
    margin-bottom: 15px;
    font-size: 16px;
}

.social-links a {
    margin: 0 10px;
    display: inline-block;
    transition: transform var(--transition-speed);
}

.social-links a img {
    width: 24px;
    height: 24px;
}

.social-links a:hover {
    transform: translateY(-5px);
}

/* Responsive Design */
@media (max-width: 768px) {
    .navbar .nav-links {
        flex-direction: column;
        background-color: var(--primary-color);
        position: absolute;
        top: 60px;
        right: 20px;
        width: 150px;
        display: none;
    }

    .navbar .nav-links.active {
        display: flex;
    }

    .toggle {
        display: block;
    }

    .hero h1 {
        font-size: 36px;
    }

    .hero p {
        font-size: 18px;
    }

    .cta-button {
        padding: 10px 25px;
        font-size: 16px;
    }

    .blog-post h2 {
        font-size: 28px;
    }

    .blog-post h3 {
        font-size: 20px;
    }

    .blog-post h4 {
        font-size: 18px;
    }

    .blog-post p {
        font-size: 16px;
    }

    .tab-button {
        font-size: 14px;
        padding: 8px 16px;
    }
}

/* Video Row Styles */
.video-row {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 40px;
}



/* Video Item Styles */


.video-item {
    flex: 1;
    min-width: 280px; /* Ensures responsiveness on smaller screens */
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 20px; /* Space below each video item */
}

.video-row-3 .video-item {
    max-width: 30%; /* Approximately three videos per row with some spacing */
}

.video-row-2 .video-item {
    max-width: 49%; /* Approximately two videos per row with some spacing */
}

/* Embedded Video Styles */
.video-item iframe {
    width: 100%;
    aspect-ratio: 16 / 9; /* Maintains a 16:9 aspect ratio */
    /*height: 400px; /* Adjust height as needed */
    border: none;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    transition: transform 0.3s, box-shadow 0.3s;
}

.video-item iframe:hover {
    transform: scale(1.02);
    box-shadow: 0 6px 15px rgba(0,0,0,0.15);
}

/* Video Description Styles */
.video-description {
    font-size: 16px !important;
    color: #555;
    margin-top: 10px;
    font-style: italic;
    text-align: center;
    max-width: 100%;
}

/* Subtitle Styles */
#demo h4 {
    font-family: 'Montserrat', sans-serif;
    font-size: 18px;
    color: var(--primary-color);
    margin-bottom: 20px;
    text-align: center;
}



@media (max-width: 1024px) {
    /* Adjust for medium screens */
    .video-row-3 .video-item {
        max-width: 30%; /* Two videos per row on medium screens */
    }
    .video-row-2 .video-item {
        max-width: 48%; /* Two videos per row on medium screens */
    }
}

@media (max-width: 600px) {
    /* Adjust for small screens */
    .video-row-3 .video-item {
        max-width: 30%; /* Two videos per row on medium screens */
    }
    .video-row-2 .video-item {
        max-width: 100%; /* One video per row on small screens */
    }
    
    #demo h4 {
        font-size: 20px;
    }
}

.video-container {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%; /* 16:9 Aspect Ratio (9/16 = 0.5625) */
    height: 0;
    overflow: hidden;
    border-radius: 8px; /* Optional: Rounded corners */
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1); /* Optional: Subtle shadow */
    margin-bottom: 20px; /* Space below the video */
}

.video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

/* Movie Gen Capabilities Section Styles */


#demo ul {
    margin-left: auto;
    margin-right: auto;
    padding-left: 20px;
    font-size: 17px !important; /* Inherits the font size from ul */
}

#demo ul li {
    margin-bottom: 5px;
    line-height: 1.6;
    font-size: inherit !important; /* Inherits the font size from ul */
}




/* Data Tables Styling */
.data-table {
    width: 100%;
    max-width: 1200px;
    margin: 20px auto;
    border-collapse: collapse;
    font-size: 1em;
    color: #555;
}

.data-table caption {
    caption-side: top;
    text-align: center;
    margin-bottom: 10px;
    color: #333;
}

.data-table thead th {
    background-color: #f2f2f2;
    color: #333;
    padding: 12px;
    text-align: left;
    border-bottom: 2px solid #ddd;
}

.data-table tbody td {
    padding: 12px;
    border-bottom: 1px solid #ddd;
}

.data-table tbody tr:nth-child(even) {
    background-color: #fbfbfb;
}

.data-table tbody tr:hover {
    background-color: #f1f1f1;
}

.data-table tbody th {
    background-color: #e9e9e9;
    font-weight: bold;
    text-align: left;
    padding: 12px;
    border-top: 2px solid #ddd;
}

/* List Styling within Table Cells */
.data-table tbody td ul {
    list-style-type: disc;
    margin: 0;
    padding-left: 20px;
}

.data-table tbody td ul ul {
    list-style-type: circle;
    margin: 0;
    padding-left: 20px;
}

.data-table tbody td li {
    margin-bottom: 5px;
}

.data-table tbody td li strong {
    display: block;
    margin-bottom: 5px;
}

@media (max-width: 768px) {
    .data-table, .data-table thead, .data-table tbody, .data-table th, .data-table td, .data-table tr {
        display: block;
    }
    .data-table thead {
        display: none;
    }
    .data-table tbody tr {
        margin-bottom: 15px;
    }
    .data-table tbody td {
        display: flex;
        justify-content: space-between;
        padding: 10px;
    }
    .data-table tbody td::before {
        content: attr(data-label);
        font-weight: bold;
        width: 50%;
        text-align: left;
    }
}

/* Alternatively, explicitly set margin-bottom */
.image-container {
    margin: 20px auto; /* top and bottom margins */
    text-align: center;
    margin-bottom: 30px; /* Added vertical space */
}

#modeling ul {
    margin-left: auto;
    margin-right: auto;
    padding-left: 20px;
    font-size: 17px !important; /* Forces the font size */
}

#modeling ul li {
    margin-bottom: 5px;
    line-height: 1.6;
    font-size: inherit !important; /* Inherits the font size from ul */
}

#modeling h4 {
    font-family: 'Montserrat', sans-serif;
    font-size: 18px;
    color: var(--primary-color);
    margin-bottom: 20px;
}