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

html {
    overflow-x: hidden;
    max-width: 100vw;
}

body {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: #333;
    overflow-x: hidden;
    max-width: 100vw;
    width: 100%;
}

body.menu-open {
    overflow: hidden;
}

/* Header Styles */
.header {
    position: fixed;
    top: 0;
    width: 100%;
    max-width: 100vw;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    z-index: 100;
    height: 100px;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 2rem;
    height: 100%;
    width: 100%;
    box-sizing: border-box;
}

.logo {
    font-weight: bold;
    color: #2c3e50;
    text-decoration: none;
    display: flex;
    align-items: center;
}

.logo-img {
    height: 70px;
    width: auto;
    object-fit: contain;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
    display: block;
    margin: 0 auto;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-menu a {
    text-decoration: none;
    color: #333;
    font-weight: 400;
    transition: color 0.3s ease;
    position: relative;
    font-size: 1rem;
}

/* Active nav item: bold on current page */
.nav-menu a.active {
    font-weight: 700;
}

.nav-menu a:hover {
    color: #1f5f8b;
}

.nav-menu a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 0;
    background-color: #1f5f8b;
    transition: width 0.3s ease;
}

.nav-menu a:hover::after {
    width: 100%;
}

/* Banner Styles */
.banner {
    height: 100vh;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    overflow: hidden;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.banner-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -2;
}

.banner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: -1;
}

.banner-content {
    z-index: 1;
    max-width: 800px;
    padding: 0 2rem;
}

.banner h1 {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    animation: fadeInUp 1s ease;
}

.banner h2 {
    font-size: 1.5rem;
    margin-bottom: 2rem;
    opacity: 0.9;
    animation: fadeInUp 1s ease 0.3s both;
}

.contact-btn {
    display: inline-block;
    padding: 15px 30px;
    background: linear-gradient(135deg, #3498db, #2980b9);
    color: white;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    margin: 0 10px;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 10px 30px rgba(52, 152, 219, 0.3);
}

.contact-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(52, 152, 219, 0.4);
    background: linear-gradient(135deg, #2980b9, #3498db);
}

/* YouTube Button Specific Styles */
.youtube-btn {
    background: linear-gradient(135deg, #FF0000, #CC0000) !important;
    box-shadow: 0 10px 30px rgba(255, 0, 0, 0.3) !important;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.youtube-btn:hover {
    background: linear-gradient(135deg, #CC0000, #FF0000) !important;
    box-shadow: 0 15px 40px rgba(255, 0, 0, 0.4) !important;
    transform: translateY(-3px);
}

.youtube-icon {
    transition: transform 0.3s ease;
}

.youtube-btn:hover .youtube-icon {
    transform: scale(1.1);
}

/* Cloud Animation */
.clouds {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: -1;
}

.cloud {
    position: absolute;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50px;
    opacity: 0.6;
    animation: float 20s infinite linear;
}

.cloud:nth-child(1) {
    width: 100px;
    height: 40px;
    top: 20%;
    animation-duration: 25s;
}

.cloud:nth-child(2) {
    width: 80px;
    height: 30px;
    top: 40%;
    animation-duration: 30s;
    animation-delay: -10s;
}

.cloud:nth-child(3) {
    width: 120px;
    height: 50px;
    top: 60%;
    animation-duration: 35s;
    animation-delay: -20s;
}

/* About Section */
.about-section {
    padding: 100px 0;
    background: #f8f9fa;
}

.about-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 0.8fr 2.2fr;
    gap: 5rem;
    align-items: flex-start;
    padding: 0 2rem;
}

.about-image {
    text-align: left;
    padding-left: 1rem;
}

.about-image img {
    width: 400px;
    height: 500px;
    border-radius: 15px;
    object-fit: cover;
    object-position: center top;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
    max-width: 100%;
    height: auto;
    display: block;
}

.about-image img:hover {
    transform: scale(1.05);
}

.about-title-container {
    text-align: center;
    margin-bottom: 3rem;
    padding: 0 2rem;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    overflow: hidden;
}

.about-main-title {
    font-size: 2.5rem;
    color: #004AAC;
    animation: slideInRight 1s ease;
    margin: 0;
    line-height: 1.2;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.about-text {
    padding-right: 2rem;
}

.about-text h4 {
    font-size: 1.8rem;
    margin-bottom: 2rem;
    color: #53AFE6;
    animation: slideInRight 1s ease 0.2s both;
}

.about-text p {
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 1.5rem;
    text-align: justify;
    color: #4a4a4a;
    animation: slideInRight 1s ease 0.4s both;
}

/* Boxes Section */
.boxes-section {
    padding: 80px 0;
    background: white;
}

.boxes-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.outer-box {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 3rem;
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    margin-bottom: 3rem;
}

.inner-box {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.inner-box h3 {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: #004AAC;
}

.inner-box p {
    font-size: 1.1rem;
    color: #666;
}

/* Testimonials */
.testimonials-section {
    padding: 80px 0;
    background: #f8f9fa;
}

.testimonials-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    text-align: center;
}

.testimonials-title {
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: #004AAC;
}

/* Testimonials Grid removed - using Swiper instead */
/* All testimonial styles now in home.html for Swiper carousel */

/* Use Cases Section */
.use-cases-section {
    padding: 80px 0;
    background: #ffffff; /* White background for contrast */
}

.use-cases-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    text-align: center;
}

.use-cases-title {
    font-size: 2.8rem;
    margin-bottom: 1rem;
    color: #004AAC;
    font-weight: 700;
}

.use-cases-subtitle {
    font-size: 1.2rem;
    margin-bottom: 3rem;
    color: #555;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.use-cases-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.use-case-card {
    background: #f8f9fa; /* Light grey background for cards */
    padding: 2.5rem 2rem;
    border-radius: 15px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
    text-align: left;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}

.use-case-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.12);
}

.use-case-icon {
    margin-bottom: 1.5rem;
    text-align: center; /* Center icon */
}

.use-case-icon img {
    height: 50px;
    width: 50px;
    color: #3498db; /* Change fill color if SVG is designed for it */
}

.use-case-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: #004AAC;
    font-weight: 600;
    text-align: center;
}

.use-case-card p {
    font-size: 1rem;
    line-height: 1.7;
    color: #4a4a4a;
    flex-grow: 1; /* Ensures cards in a row have same height */
    text-align: center;
}

/* Blog Preview Section */
.blog-preview-section {
    padding: 80px 0;
    background: #ffffff;
}

.blog-preview-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    text-align: center;
}

.blog-preview-title {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: #004AAC !important;
    font-weight: 700;
    text-align: center;
}

.blog-preview-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: #004AAC !important;
    font-weight: 600;
}

.use-case-portfolio-button-container {
    text-align: center;
    margin-top: 3rem; /* Add some space above the button */
}

/* Three Boxes Section */
.three-boxes-section {
    padding: 80px 0;
    background: #53AFE5;
    position: relative;
    overflow: hidden;
}

.three-boxes-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 4rem;
    padding: 0 2rem;
    align-items: center;
}

.text-box, .image-box {
    padding: 0;
    border-radius: 0;
    box-shadow: none;
    transition: none;
    background: transparent;
}

.text-box {
    color: white;
    text-align: center;
}

.text-box h3 {
    font-size: 2.5rem;
    font-weight: bold;
    margin: 0;
    line-height: 1.2;
}

.image-box {
    text-align: center;
    background: transparent;
}

.image-box img {
    width: 200px;
    height: 200px;
    object-fit: cover;
    border-radius: 50%;
    border: 4px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.image-box h3 {
    color: white;
    font-size: 1.5rem;
    margin-top: 1rem;
    font-weight: 600;
}

.text-box:hover, .image-box:hover {
    transform: none;
}

/* Footer */
.footer {
    background: #2c3e50;
    color: white;
    padding: 3rem 0 1rem;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr 1fr 1fr;
    gap: 3rem;
    padding: 0 2rem;
    align-items: start;
}

.footer-section h3 {
    margin-bottom: 1rem;
    color: #74c0fc;
    font-weight: 600;
}

.footer-logo {
    margin-bottom: 2rem;
    margin-right: 0;
    text-align: center;
    padding-right: 0;
    width: 100%;
}

.footer-logo-img {
    height: 75px;
    width: auto;
    object-fit: contain;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
    display: block;
    margin: 0 auto;
}

.footer-section p {
    color: #e0e0e0;
    line-height: 1.8;
}

.footer-section a {
    color: #74c0fc;
    text-decoration: underline;
    text-decoration-style: dotted;
    text-underline-offset: 2px;
    line-height: 1.8;
    font-weight: 500;
    transition: all 0.3s ease;
}

.footer-section a:hover {
    color: #ffffff;
    text-decoration: underline;
    text-decoration-style: solid;
    background: rgba(116, 192, 252, 0.2);
    padding: 2px 4px;
    border-radius: 3px;
}

.footer-bottom {
    text-align: center;
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid #34495e;
    color: #e0e0e0;
}

.footer-bottom a {
    color: #74c0fc !important;
    text-decoration: underline;
    text-decoration-style: dotted;
    text-underline-offset: 2px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.footer-bottom a:hover {
    color: #ffffff !important;
    text-decoration-style: solid;
    background: rgba(116, 192, 252, 0.2);
    padding: 2px 4px;
    border-radius: 3px;
}

/* Portfolio Styles */
.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    padding: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.project-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.project-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

.project-image {
    position: relative;
    width: 100%;
    height: 220px;
    overflow: hidden;
    border-radius: 15px 15px 0 0;
    background-color: #f0f0f0;
}

.project-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: transform 0.3s ease;
    display: block;
}

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

.video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.4);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    cursor: pointer;
    z-index: 2;
}

.project-card:hover .video-overlay {
    opacity: 1;
}

.play-button {
    margin-bottom: 10px;
    transition: transform 0.3s ease;
}

.video-overlay:hover .play-button {
    transform: scale(1.1);
}

.demo-text {
    color: white;
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.project-content {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.project-content h3 {
    font-size: 1.4rem;
    margin-bottom: 0.8rem;
    color: #2c3e50;
    line-height: 1.3;
}

.project-content p {
    color: #666;
    line-height: 1.6;
    margin-bottom: 1.2rem;
    flex-grow: 1;
}

/* Contact Form */
.contact-section {
    padding: 80px 0;
    background: #f8f9fa;
}

.contact-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 2rem;
}

.contact-form {
    background: white;
    padding: 3rem;
    border-radius: 15px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.form-group {
    margin-bottom: 2rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: bold;
    color: #2c3e50;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 1rem;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #3498db;
}

.submit-btn {
    background: linear-gradient(45deg, #3498db, #2980b9);
    color: white;
    padding: 1rem 2rem;
    border: none;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: bold;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.submit-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(52, 152, 219, 0.4);
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
}

.modal-content {
    position: relative;
    background-color: #000;
    margin: 5% auto;
    padding: 0;
    border-radius: 10px;
    width: 90%;
    max-width: 900px;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.5);
}

.modal video {
    width: 100%;
    height: auto;
    border-radius: 10px;
    display: block;
}

/* YouTube Player Styles */
.youtube-player {
    position: relative;
    width: 100%;
    height: 500px;
    border-radius: 10px;
    overflow: hidden;
}

.youtube-player iframe {
    border-radius: 10px;
    width: 100%;
    height: 100%;
}

.close {
    position: absolute;
    top: -40px;
    right: 0;
    color: white;
    font-size: 35px;
    font-weight: bold;
    cursor: pointer;
    z-index: 10000;
    background: rgba(0, 0, 0, 0.6);
    border-radius: 50%;
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s ease;
}

.close:hover {
    background: rgba(255, 0, 0, 0.8);
}

/* Flash Messages */
.flash-messages {
    max-width: 800px;
    margin: 0 auto;
    padding: 1rem 2rem;
}

.flash-message {
    padding: 1rem;
    margin-bottom: 1rem;
    border-radius: 5px;
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes float {
    from {
        transform: translateX(-100px);
    }
    to {
        transform: translateX(calc(100vw + 100px));
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .footer-container {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .footer-section {
        margin-bottom: 1rem;
    }
    
    .banner h1 {
        font-size: 2.5rem;
    }
    
    .about-container {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .three-boxes-container {
        grid-template-columns: 1fr;
    }
    
    .portfolio-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
        padding: 1rem;
        gap: 1.5rem;
    }

    .project-image {
        height: 320px;
    }

    .project-content {
        padding: 1.2rem;
    }

    .project-content h3 {
        font-size: 1.3rem;
    }

    .modal-content {
        margin: 10% auto;
        width: 95%;
    }

    /* YouTube Player Mobile */
    .youtube-player {
        height: 250px;
    }

    .footer-logo-img {
        height: 100px;
    }

    .video-overlay {
        opacity: 1;
        background: rgba(0, 0, 0, 0.3);
    }
    
    .play-button svg {
        width: 45px;
        height: 45px;
    }
    
    .demo-text {
        font-size: 12px;
    }
    
    .modal-content {
        width: 95%;
        margin: 10% auto;
    }
    
    .close {
        top: -35px;
        font-size: 28px;
        width: 35px;
        height: 35px;
    }
}

@media (max-width: 1200px) {
    .about-container {
        grid-template-columns: 1fr 2fr;
        gap: 3rem;
    }
    
    .about-image img {
        width: 350px;
        height: 350px;
    }
}

@media (max-width: 992px) {
    .about-container {
        grid-template-columns: 1fr 1.5fr;
        gap: 2rem;
    }
    
    .about-image img {
        width: 300px;
        height: 300px;
    }
    
    .about-text h3 {
        font-size: 2.2rem;
    }
    
    .about-text h4 {
        font-size: 1.6rem;
    }
}

@media (max-width: 768px) {
    .about-container {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 3rem;
    }
    
    .about-image {
        text-align: center;
        padding-left: 0;
    }
    
    .about-image img {
        width: 280px;
        height: 280px;
    }
    
    .about-text {
        padding-right: 0;
    }
    
    .about-text p {
        text-align: left;
    }
}

@media (max-width: 480px) {
    .about-image img {
        width: 240px;
        height: 240px;
    }
    
    .about-text h3 {
        font-size: 2rem;
    }
    
    .about-text h4 {
        font-size: 1.4rem;
    }
    
    .about-text p {
        font-size: 1rem;
    }

    .project-image {
        height: 300px;
    }

    .project-content h3 {
        font-size: 1.2rem;
    }

    .project-content p {
        font-size: 0.95rem;
    }

    .footer-logo-img {
        height: 80px;
    }
}

/* Enhanced Mobile Responsive Design */

/* Mobile Optimization - 768px and below */
@media (max-width: 768px) {
    /* Header Mobile Fix */
    .header {
        height: auto;
        min-height: 80px;
        padding: 1rem 0;
    }
    
    .nav-container {
        flex-direction: column;
        padding: 1rem;
        gap: 1rem;
    }
    
    .logo-img {
        height: 100px;
    }
    
    /* Nav menu styles removed - handled by mobile navigation section below */
    
    /* Banner Mobile Fix */
    .banner {
        padding: 0 1rem;
    }
    
    .banner-content {
        padding: 0 1rem;
        margin-top: 60px;
    }
    
    .banner h1 {
        font-size: 2rem !important;
        line-height: 1.2;
        margin-bottom: 1rem;
    }
    
    .banner h2 {
        font-size: 1.2rem !important;
    }
    
    .contact-btn {
        padding: 12px 25px;
        font-size: 1rem;
    }
    
    /* Sections Padding Fix */
    .about-section,
    .boxes-section,
    .testimonials-section,
    .three-boxes-section,
    .contact-section {
        padding: 60px 0;
    }
    
    /* Container Padding Fix */
    .about-container,
    .boxes-container,
    .testimonials-container,
    .three-boxes-container,
    .contact-container {
        padding: 0 1rem;
    }
    
    /* About Section Mobile */
    .about-image img {
        width: 100%;
        max-width: 280px;
        height: auto;
        aspect-ratio: 1;
    }
    
    .about-text h3 {
        font-size: 1.8rem !important;
    }
    
    .about-text h4 {
        font-size: 1.3rem !important;
    }
    
    /* Testimonials Mobile */
    .testimonials-title {
        font-size: 2rem !important;
        margin-bottom: 2rem;
    }
    
    /* Testimonials handled by Swiper breakpoints */
    
    /* Three Boxes Mobile */
    .text-box h3 {
        font-size: 1.8rem !important;
        line-height: 1.2;
    }
    
    .image-box img {
        width: 150px;
        height: 150px;
    }
    
    /* Boxes Section Mobile */
    .outer-box {
        padding: 2rem 1rem;
        margin-bottom: 2rem;
    }
    
    .inner-box {
        padding: 1.5rem;
    }
    
    /* Contact Form Mobile */
    .contact-form {
        padding: 2rem 1.5rem;
    }
    
    /* Footer Mobile */
    .footer {
        padding: 2rem 0 1rem;
    }
    
    .footer-container {
        padding: 0 1rem;
    }
    
    .footer-logo-img {
        height: 120px;
    }
}

/* Extra Small Mobile - 480px and below */
@media (max-width: 480px) {
    .banner h1 {
        font-size: 1.7rem !important;
    }
    
    .banner h2 {
        font-size: 1rem !important;
    }
    
    .about-text h3 {
        font-size: 1.5rem !important;
    }
    
    .text-box h3 {
        font-size: 1.4rem !important;
    }
    
    .testimonials-title {
        font-size: 1.7rem !important;
    }
    
    /* Nav menu styles removed - handled by mobile navigation section */
    
    .logo-img {
        height: 80px;
    }
}

/* Landscape Mobile Fix */
@media (max-width: 768px) and (orientation: landscape) {
    .banner {
        height: 100vh;
    }
    
    .banner-content {
        margin-top: 40px;
    }
    
    .banner h1 {
        font-size: 1.8rem !important;
    }
    
    .banner h2 {
        font-size: 1rem !important;
    }
}

/* Hamburger Menu Styles */
.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    background: none;
    border: none;
    padding: 0;
    z-index: 9999;
    position: relative;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: #333;
    margin: 3px 0;
    transition: 0.3s;
    border-radius: 2px;
}

/* Mobile Navigation */
@media (max-width: 768px) {
    .hamburger {
        display: flex !important;
        margin-left: auto;
        flex-shrink: 0;
    }
    
    .nav-container {
        flex-direction: row !important;
        justify-content: space-between;
        align-items: center;
        padding: 1rem 1rem;
        max-width: 100%;
        width: 100%;
    }
    
    .logo {
        flex-shrink: 0;
        max-width: calc(100% - 50px);
    }
    
    /* Hide nav menu on mobile by default, show with hamburger */
    .nav-menu {
        position: fixed !important;
        top: 0 !important;
        right: -280px !important;
        width: 280px !important;
        height: 100vh !important;
        background: #ffffff !important;
        flex-direction: column !important;
        justify-content: flex-start !important;
        align-items: stretch !important;
        padding: 80px 0 20px 0 !important;
        transition: right 0.3s ease-in-out !important;
        box-shadow: -2px 0 10px rgba(0, 0, 0, 0.1) !important;
        z-index: 9998 !important;
        display: none !important;
        overflow-y: auto !important;
        list-style: none !important;
        gap: 0 !important;
        margin: 0 !important;
    }

    .nav-menu.active {
        right: 0 !important;
        display: flex !important;
    }

    /* Prevent body scroll when menu is open */
    body.menu-open {
        overflow: hidden !important;
    }
    
    .nav-menu li {
        margin: 0 !important;
        width: 100% !important;
        text-align: left !important;
    }

    .nav-menu a {
        font-size: 1rem !important;
        padding: 14px 16px !important;
        display: block !important;
        width: 100% !important;
        text-align: left !important;
        background: transparent !important;
        border-bottom: 1px solid #f0f0f0 !important;
        transition: all 0.3s ease !important;
        color: #333 !important;
        text-decoration: none !important;
        border-radius: 0 !important;
    }

    .nav-menu a:hover {
        background: #f8f9fa !important;
        color: #3498db !important;
        padding-left: 24px !important;
    }

    .nav-menu a.active {
        background: #3498db !important;
        color: #ffffff !important;
    }
    
    /* Hamburger Animation */
    .hamburger.active span:nth-child(1) {
        transform: rotate(-45deg) translate(-5px, 6px);
    }
    
    .hamburger.active span:nth-child(2) {
        opacity: 0;
    }
    
    .hamburger.active span:nth-child(3) {
        transform: rotate(45deg) translate(-5px, -6px);
    }
    
    /* Override previous mobile styles */
    .logo-img {
        height: 80px;
    }
    
    .header {
        height: 100px;
        z-index: 100 !important;
    }
}

@media (max-width: 480px) {
    .nav-container {
        padding: 0.75rem 0.75rem;
        max-width: 100%;
        width: 100%;
    }

    .nav-menu {
        width: 250px;
    }

    .nav-menu a {
        font-size: 1rem;
        padding: 0.7rem 1rem;
    }
    
    .header {
        height: 80px;
        max-width: 100vw;
    }
    
    .logo-img {
        height: 60px;
        max-width: 100%;
        object-fit: contain;
    }
    
    .logo {
        max-width: calc(100% - 45px);
    }
    
    .hamburger {
        flex-shrink: 0;
        margin-left: 0.5rem;
    }
}

.project-image {
    height: 350px;
}

.project-content {
    padding: 1.2rem;
}

.project-content h3 {
    font-size: 1.3rem;
}

/* Example of a media query for mobile devices */
@media (max-width: 768px) { /* Adjust breakpoint as needed */
    .about-image {
        /* Maybe reduce padding or margins, or ensure height is flexible */
        height: auto; /* Or adjust height as needed for mobile */
    }
}

/* 
==============================================
About Section Override Styles
==============================================
*/

/* Overriding the default grid layout with a more responsive flexbox layout */
.about-section .about-container {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 2rem;
    max-width: 1100px;
}

/* Setting the order and size for text and image containers */
.about-section .about-text {
    flex: 1 1 50%;
    order: 1; /* Text appears first */
    padding-right: 0; /* Reset padding */
}

.about-section .about-image {
    flex: 1 1 40%;
    order: 2; /* Image appears second */
    text-align: center;
    padding-left: 0; /* Reset padding */
}

/* Styling for the image to prevent distortion and add a modern look */
.about-section .about-image img {
    max-width: 100%;
    height: auto;
    max-height: 500px;
    box-shadow: 0 15px 35px rgba(0,0,0,0.1), 0 5px 15px rgba(0,0,0,0.07);
    display: inline-block;
}

/* Styling for the new buttons */
.about-buttons {
    margin-top: 2rem;
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.btn {
    padding: 12px 28px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
    display: inline-block;
    text-align: center;
    border: 2px solid transparent;
}

.btn-primary {
    background: #53AFE6;
    color: white;
    border-color: #53AFE6;
}

.btn-primary:hover {
    background: #3d9ddb;
    border-color: #3d9ddb;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(83, 175, 230, 0.3);
}

.btn-secondary {
    background: transparent;
    color: #1f5f8b;
    border-color: #1f5f8b;
}

.btn-secondary:hover {
    background: #1f5f8b;
    color: white;
    transform: translateY(-2px);
}

/* Responsive override for the about section */
@media (max-width: 992px) {
    .about-section .about-container {
        flex-direction: column;
        text-align: center;
    }

    .about-section .about-text,
    .about-section .about-image {
        order: 0; /* Reset order to follow HTML */
        flex-basis: 100%;
    }

    .about-section .about-image {
        margin-bottom: 2rem;
    }

    .about-section .about-buttons {
        justify-content: center;
    }
}

@media (max-width: 768px) {
    .about-text p {
        text-align: justify; /* Ensure justify is kept on mobile */
    }
    
    .about-main-title {
        font-size: 2rem;
    }
    
    .about-title-container {
        padding: 0 1rem;
        margin-bottom: 2rem;
    }
}

@media (max-width: 480px) {
    .about-main-title {
        font-size: 1.8rem;
    }
}

/* Blog Post Images */
.blog-content img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 2rem auto;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.blog-content img:hover {
    transform: scale(1.02);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

.blog-content p em {
    display: block;
    text-align: center;
    font-style: italic;
    color: #666;
    margin-top: -1rem;
    margin-bottom: 2rem;
    font-size: 0.9rem;
}

/* Specific sizing for flow diagrams */
.blog-content img[src*="flowdiagram"] {
    max-width: 80%;
    width: 600px;
}

.blog-content img[src*="advancedRAG"] {
    max-width: 90%;
    width: 700px;
}

.blog-content img[src*="basic_rag"] {
    max-width: 85%;
    width: 550px;
}

/* Responsive Blog Images */
@media (max-width: 768px) {
    .blog-content img {
        margin: 1.5rem auto;
        border-radius: 6px;
    }
    
    .blog-content img[src*="flowdiagram"],
    .blog-content img[src*="advancedRAG"],
    .blog-content img[src*="basic_rag"] {
        max-width: 100%;
        width: auto;
    }
    
    .blog-content p em {
        font-size: 0.85rem;
        margin-top: -0.5rem;
        margin-bottom: 1.5rem;
    }
}

@media (max-width: 480px) {
    .blog-content img[src*="flowdiagram"],
    .blog-content img[src*="advancedRAG"] {
        max-width: 100%;
        width: auto;
    }
}
