/* 
   ThinkinCode Color Palette:
   - #002147 (dark blue)
   - #0d151e (dark background)
   - #26c3af (teal/mint)
   - #1e51a4 (medium blue)
   - #FFFFFF (white)
*/

/* Base Styles & Resets */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    scroll-behavior: smooth;
    height: 100%;
}

body {
    font-family: 'Poppins', sans-serif;
    line-height: 1.6;
    color: #0d151e;
    background-color: #FFFFFF;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    margin-bottom: 1rem;
    color: #0d151e;
}

h1 {
    font-size: 3.5rem;
    line-height: 1.2;
}

h2 {
    font-size: 2.5rem;
    line-height: 1.3;
    margin-bottom: 1.5rem;
    position: relative;
}

h2:after {
    content: "";
    position: absolute;
    width: 60px;
    height: 3px;
    background-color: #26c3af;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
}

h3 {
    font-size: 1.75rem;
}

h4 {
    font-size: 1.25rem;
}

p {
    margin-bottom: 1rem;
    color: #333;
}

a {
    color: #1e51a4;
    text-decoration: none;
    transition: all 0.3s ease;
}

a:hover {
    color: #26c3af;
}

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

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

section {
    padding: 100px 0;
}

.section-header {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 60px;
}

.section-header p {
    color: #555;
    font-size: 1.1rem;
}

/* Button Styles */
.btn-primary, .btn-secondary, .btn-outline {
    display: inline-block;
    padding: 12px 28px;
    border-radius: 4px;
    font-weight: 500;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Poppins', sans-serif;
}

.btn-primary {
    background: linear-gradient(90deg, #002147 0%, #1e51a4 50%, #26c3af 100%);
    color: white;
    border: none;
}

.btn-primary:hover {
    background: linear-gradient(90deg, #26c3af 0%, #1e51a4 50%, #002147 100%);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.btn-secondary {
    background-color: #002147;
    color: white;
    border: none;
}

.btn-secondary:hover {
    background-color: #26c3af;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.btn-outline {
    background-color: transparent;
    color: #1e51a4;
    border: 2px solid #1e51a4;
}

.btn-outline:hover {
    background-color: #26c3af;
    color: white;
    border-color: #26c3af;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

/* Header & Navigation */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background-color: rgba(255, 255, 255, 0.95);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

header.scrolled {
    padding: 10px 0;
    background-color: white;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
}

.logo h2 {
    color: #0d151e;
    margin: 0;
    font-size: 1.8rem;
    font-weight: 700;
}

.logo h2:after {
    display: none;
}

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

.nav-links a {
    color: #0d151e;
    font-weight: 500;
}

.nav-links a:hover {
    color: #26c3af;
}

/* Add style for contact button in navigation */
.nav-links a:last-child {
    background-color: #002147;
    color: white;
    padding: 8px 16px;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.nav-links a:last-child:hover {
    background-color: #26c3af;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.menu-toggle {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
}

/* Hero Section */
.hero-section {
    padding: 180px 0 100px;
    background: linear-gradient(135deg, #f8f8f5 0%, #fff 100%);
    position: relative;
    overflow: hidden;
}

.hero-section .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.hero-content {
    flex: 1;
    max-width: 600px;
}

.hero-content h1 {
    margin-bottom: 20px;
    color: #0d151e;
    position: relative;
}

.hero-content h1:after {
    content: "";
    position: absolute;
    width: 80px;
    height: 3px;
    background-color: #26c3af;
    bottom: -10px;
    left: 0;
}

.hero-content p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    color: #666;
    margin-top: 20px;
}

.hero-buttons {
    display: flex;
    gap: 15px;
}

.hero-image {
    flex: 1;
    text-align: right;
    position: relative;
    display: flex;
    justify-content: flex-end;
    align-items: center;
}

.hero-image img {
    max-width: 90%;
    border-radius: 15px;
    box-shadow: 0 20px 40px rgba(0, 33, 71, 0.15);
    transition: transform 0.5s ease, box-shadow 0.5s ease;
}

.hero-image img:hover {
    transform: translateY(-10px);
    box-shadow: 0 30px 50px rgba(0, 33, 71, 0.2);
}

.floating {
    animation: float 6s ease-in-out infinite;
}

@keyframes float {
    0% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-20px);
    }
    100% {
        transform: translateY(0px);
    }
}

/* Features Section */
.features-section {
    background-color: #fff;
    position: relative;
}

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

.feature-card {
    background-color: #fff;
    padding: 40px 30px;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    text-align: center;
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
    border-bottom: 3px solid #26c3af;
}

.feature-icon {
    font-size: 2.5rem;
    margin-bottom: 20px;
    color: #26c3af;
}

.feature-card h3 {
    color: #0d151e;
    margin-bottom: 15px;
    font-weight: 600;
}

.feature-card p {
    color: #666;
}

/* Use Cases Section */
.use-cases-section {
    background-color: #f8f8f5;
    position: relative;
}

.use-cases-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

.use-case-card {
    background-color: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.use-case-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.use-case-image {
    height: 200px;
    overflow: hidden;
}

.use-case-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.use-case-card:hover .use-case-image img {
    transform: scale(1.1);
}

.use-case-card h3 {
    padding: 20px 20px 10px;
    margin-bottom: 0;
}

.use-case-card p {
    padding: 0 20px 20px;
    color: #666;
}

/* Demo Section */
.demo-section {
    background-color: #f9f9f9;
    position: relative;
    overflow: hidden;
    padding-bottom: 120px;
}

.demo-section:before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 10% 20%, rgba(38, 195, 175, 0.03) 0%, rgba(0, 33, 71, 0.01) 90%);
    z-index: 0;
}

.demo-carousel {
    margin-top: 50px;
    position: relative;
    padding: 20px 0;
}

.carousel-container {
    max-width: 1000px;
    width: 100%;
    margin: 0 auto;
    position: relative;
    overflow: hidden;
    border-radius: 15px;
    background-color: #fff;
    padding: 30px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
    z-index: 1;
}

.carousel-track {
    display: flex;
    transition: transform 0.5s ease;
}

.carousel-slide {
    flex: 0 0 100%;
    min-width: 100%;
    padding: 10px;
}

.carousel-slide img {
    width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    transition: transform 0.4s ease, box-shadow 0.4s ease;
    object-fit: contain;
    max-height: 500px;
    border: 1px solid rgba(0, 33, 71, 0.05);
}

.carousel-slide:hover img {
    transform: scale(1.03);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);
}

.carousel-nav {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 30px;
}

.prev-btn, .next-btn {
    background: linear-gradient(135deg, #002147 0%, #1e51a4 100%);
    color: white;
    border: none;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.prev-btn:hover, .next-btn:hover {
    background: linear-gradient(135deg, #1e51a4 0%, #26c3af 100%);
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.carousel-dots {
    display: flex;
    gap: 12px;
    margin: 0 25px;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: #ddd;
    cursor: pointer;
    transition: all 0.3s ease;
}

.dot.active {
    background-color: #26c3af;
    transform: scale(1.3);
}

/* Contact Section */
.contact-section {
    background-color: #fff;
    position: relative;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: flex-start;
}

.contact-info {
    background-color: #fff;
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
}

.contact-info > p {
    margin-bottom: 30px;
    color: #666;
}

.contact-details {
    margin-top: 20px;
}

.contact-item {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
}

.contact-item i {
    font-size: 1.5rem;
    color: #26c3af;
    margin-right: 15px;
    width: 30px;
}

.contact-item p {
    margin-bottom: 0;
    color: #666;
}

.contact-social {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.contact-social a {
    color: #0d151e;
    font-size: 1.5rem;
    transition: all 0.3s ease;
    width: 40px;
    height: 40px;
    background-color: #f8f8f8;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.contact-social a:hover {
    color: #fff;
    background-color: #26c3af;
    transform: translateY(-3px);
}

.contact-form {
    background-color: #fff;
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: #0d151e;
    font-weight: 500;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-family: 'Poppins', sans-serif;
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: #26c3af;
    outline: none;
    box-shadow: 0 0 0 2px rgba(38, 195, 175, 0.2);
}

.form-group textarea {
    height: 150px;
    resize: vertical;
}

#submitBtn {
    width: 100%;
    background: linear-gradient(90deg, #002147 0%, #1e51a4 50%, #26c3af 100%);
    color: white;
    border: none;
    padding: 12px;
    border-radius: 4px;
    font-weight: 500;
    cursor: pointer;
    font-family: 'Poppins', sans-serif;
    transition: all 0.3s ease;
}

#submitBtn:hover {
    background: linear-gradient(90deg, #26c3af 0%, #1e51a4 50%, #002147 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

/* Footer */
footer {
    background-color: #0d151e;
    color: #fff;
    padding: 30px 0;
    text-align: center;
}

.footer-bottom p {
    color: #ccc;
    margin-bottom: 10px;
    font-size: 0.9rem;
}

/* Chatbot Widget */
.chatbot-widget {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 1000;
}

.chatbot-toggle-btn {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, #002147 0%, #1e51a4 50%, #26c3af 100%);
    color: white;
    border: none;
    font-size: 1.8rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
}

.chatbot-toggle-btn:hover {
    background: linear-gradient(135deg, #26c3af 0%, #1e51a4 50%, #002147 100%);
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.25);
}

.chatbot-container {
    position: absolute;
    bottom: 80px;
    right: 0;
    width: 350px;
    height: 500px;
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    overflow: hidden;
    display: none;
    transition: all 0.3s ease;
    opacity: 0;
    transform: translateY(20px) scale(0.9);
    z-index: 1000;
}

.chatbot-container.active {
    display: block;
    opacity: 1;
    transform: translateY(0) scale(1);
    z-index: 1050;
}

.chatbot-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: linear-gradient(90deg, #002147 0%, #1e51a4 80%, #26c3af 100%);
    color: white;
    padding: 15px 20px;
}

.chatbot-header h4 {
    margin: 0;
    color: white;
}

.chatbot-close-btn {
    background: none;
    border: none;
    color: white;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.chatbot-close-btn:hover {
    color: #26c3af;
}

.iframe-container {
    width: 100%;
    height: calc(100% - 50px);
    overflow: auto;
    -webkit-overflow-scrolling: touch;
    position: relative;
    isolation: isolate;
    z-index: 1;
}

.iframe-container:hover,
.iframe-container:focus {
    pointer-events: auto;
    outline: none;
}

.chatbot-container iframe {
    width: 100%;
    height: 100%;
    border: none;
    display: block;
    position: absolute;
    top: 0;
    left: 0;
    overflow-y: scroll !important;
    pointer-events: auto;
    z-index: 2;
}

/* Animation Classes */
.animate-fade-in {
    opacity: 0;
    animation: fadeIn 1s ease forwards;
}

.animate-on-scroll {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.animate-on-scroll.visible {
    opacity: 1;
    transform: translateY(0);
}

@keyframes fadeIn {
    0% {
        opacity: 0;
        transform: translateY(20px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Success message styling */
.form-success {
    text-align: center;
    padding: 30px;
    background-color: #f8f8f8;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    animation: fadeIn 0.5s ease-in-out;
}

.form-success i {
    font-size: 4rem;
    color: #26c3af;
    margin-bottom: 20px;
    display: block;
}

.form-success h3 {
    margin-bottom: 15px;
    color: #0d151e;
}

.form-success p {
    color: #666;
}

/* Error message styling */
.form-error {
    text-align: center;
    padding: 15px;
    background-color: #fff3f3;
    border-left: 4px solid #ff3860;
    border-radius: 5px;
    margin-bottom: 20px;
    animation: fadeIn 0.5s ease-in-out;
}

.form-error i {
    font-size: 1.5rem;
    color: #ff3860;
    margin-bottom: 8px;
    display: block;
}

.form-error p {
    color: #666;
    margin: 0;
}

.newsletter-success {
    color: #26c3af;
    font-weight: 500;
    margin-top: 10px;
}

/* Form validation styles */
.form-group input.error,
.form-group textarea.error {
    border-color: #ff3860;
    box-shadow: 0 0 0 1px #ff3860;
}

.error-message {
    color: #ff3860;
    font-size: 0.85rem;
    margin-top: 5px;
}

/* Responsive Styles */
@media (max-width: 1200px) {
    h1 {
        font-size: 3rem;
    }
    
    h2 {
        font-size: 2.2rem;
    }
    
    .features-grid, 
    .use-cases-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 992px) {
    section {
        padding: 80px 0;
    }
    
    .hero-section {
        padding: 150px 0 80px;
    }
    
    .hero-section .container {
        flex-direction: column;
        text-align: center;
    }
    
    .hero-content {
        margin-bottom: 40px;
    }

    .hero-content h1:after {
        left: 50%;
        transform: translateX(-50%);
    }
    
    .hero-buttons {
        justify-content: center;
    }
    
    .contact-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    h1 {
        font-size: 2.5rem;
    }
    
    h2 {
        font-size: 1.8rem;
    }
    
    .nav-links {
        display: none;
    }
    
    .menu-toggle {
        display: block;
    }
    
    .nav-links.active {
        display: flex;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: white;
        padding: 20px;
        box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
    }
    
    .features-grid,
    .use-cases-grid {
        grid-template-columns: 1fr;
    }
    
    .chatbot-container {
        width: 300px;
        height: 450px;
        right: 0;
    }
}

@media (max-width: 576px) {
    .section-header {
        margin-bottom: 40px;
    }
    
    .hero-buttons {
        flex-direction: column;
        gap: 15px;
    }
    
    .hero-buttons a {
        width: 100%;
    }
    
    .chatbot-container {
        width: 300px;
        height: 450px;
        right: 0;
        bottom: 70px;
    }
    
    .iframe-container {
        -webkit-overflow-scrolling: touch;
        overflow-y: scroll;
    }
    
    .chatbot-container iframe {
        height: 100%;
        overflow: visible;
    }
}

/* Ensure main page doesn't scroll when hovering over chatbot */
body.chatbot-active {
    overflow: auto !important;
} 