/* Global Styles */
:root {
    --primary-color: #3498DB;
    --secondary-color: #A9D6F5;
    --dark-bg: #1A2638;
    --dark-bg-lighter: #0C4F91;
    --text-color: #f0f0f0;
    --text-muted: #A9D6F5;
    --border-color: #0C4F91;
    --section-border: 1px solid #0C4F91;
    --shadow-color: rgba(0, 0, 0, 0.5);
    --gradient-primary: linear-gradient(120deg, #3498DB, #A9D6F5);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Poppins', sans-serif;
    background-color: var(--dark-bg);
    color: var(--text-color);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Adding a wrapper for the hero to ensure full-width background */
.hero-wrapper {
    background-color: #003366; /* Same color as hero background */
    width: 100%;
    position: relative;
}

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

h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    line-height: 1.3;
    margin-bottom: 20px;
}

a {
    text-decoration: none;
    color: var(--text-color);
    transition: all 0.3s ease;
}

ul {
    list-style: none;
}

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

section {
    padding: 80px 0;
    border-bottom: var(--section-border);
    position: relative;
}

section::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 1px;
    background: var(--gradient-primary);
    opacity: 0.2;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-header h2 {
    font-size: 2.5rem;
    margin-bottom: 15px;
    position: relative;
    display: inline-block;
}

.underline {
    height: 3px;
    width: 80px;
    background: var(--gradient-primary);
    margin: 0 auto 20px;
    border-radius: 10px;
}

.section-intro {
    max-width: 800px;
    margin: 0 auto;
    font-size: 1.1rem;
    color: var(--text-muted);
}

.btn {
    display: inline-block;
    padding: 12px 25px;
    background: var(--primary-color);
    color: white;
    border-radius: 8px;
    text-align: center;
    font-weight: 600;
    text-decoration: none;
    box-shadow: 0 4px 10px rgba(52, 152, 219, 0.3);
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.btn:hover {
    background: var(--secondary-color);
    color: #1A2638;
    transform: translateY(-3px);
    box-shadow: 0 6px 15px rgba(52, 152, 219, 0.4);
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
}

.btn-outline:hover {
    background: rgba(52, 152, 219, 0.2);
    color: var(--secondary-color);
}

/* Add specific styling for the Get in Touch button */
.hero-buttons .btn-outline {
    background-color: rgba(255, 255, 255, 0.15);
    border: 2px solid #fff;
    color: #fff;
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.3);
    font-weight: 700;
}

.hero-buttons .btn-outline:hover {
    background-color: rgba(255, 255, 255, 0.25);
    transform: translateY(-3px);
    box-shadow: 0 0 25px rgba(255, 255, 255, 0.4);
}

/* Header Styles */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background-color: rgba(26, 38, 56, 0.95);
    backdrop-filter: blur(8px);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
    border-bottom: var(--section-border);
}

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

.logo {
    display: flex;
    align-items: center;
}

.logo a {
    display: flex;
    align-items: center;
}

.logo img {
    height: 45px;
    margin-right: 12px;
}

.logo-text {
    font-size: 1.6rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.nav-menu {
    display: flex;
}

.nav-menu li {
    margin-left: 30px;
}

.nav-link {
    position: relative;
    font-weight: 500;
    color: var(--text-color);
}

.nav-link:hover {
    color: var(--primary-color);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: width 0.3s ease;
}

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

.menu-toggle {
    display: none;
    font-size: 24px;
    cursor: pointer;
}

/* Hero Section */
.hero {
    position: relative;
    height: 100vh;
    min-height: 600px;
    background-color: #003366; /* Dark blue background to match the image */
    /* background: url('images/AI agents image.png') no-repeat center center/cover; */
    background-image: url('images/minions2.png');
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
    display: flex;
    align-items: center;
    text-align: center;
    margin-bottom: -80px;
    border-bottom: none;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, rgba(0, 51, 102, 0.3), rgba(12, 79, 145, 0.3));
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    margin: 0 auto;
    padding: 0 20px;
}

.hero-content h1 {
    font-size: 3.5rem;
    margin-bottom: 20px;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    background-clip: text;
    color: #e0e0e0;
    text-shadow: 0 20px 5px rgba(0,0,0, 0.3);
    display: inline-block;
    position: relative;
    white-space: normal;
    overflow: hidden;
    border-right: 4px solid var(--primary-color);
    animation: typing 3.5s steps(40) 1s 1 normal both,
               blink-caret 0.75s step-end infinite;
    margin: 0 auto 20px;
    width: 0;
    max-width: 100%;
    line-height: 1.2;
}

@keyframes typing {
    from { width: 0 }
    to { width: 100% }
}

@keyframes blink-caret {
    from, to { border-color: transparent }
    50% { border-color: var(--primary-color) }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.fade-in-after-typing {
    opacity: 0;
    animation: fadeIn 1s ease forwards;
    animation-delay: 5s;
}

.hero-content p {
    font-size: 1.3rem;
    margin-bottom: 40px;
    color: var(--text-color);
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

.hero-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
}

.hero-buttons .btn {
    font-weight: 700;
    padding: 14px 28px;
    box-shadow: 0 0 20px rgba(52, 152, 219, 0.5);
}

.hero-buttons .btn:hover {
    box-shadow: 0 0 30px rgba(52, 152, 219, 0.7);
}

/* Shared Image-Text Layout */
.image-text-grid {
    display: grid;
    grid-template-columns: 0.8fr 1.2fr;
    gap: 40px;
    max-width: 1000px;
    margin: 0 auto 40px;
    align-items: center;
}

.section-image {
    position: relative;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 25px var(--shadow-color);
    border: var(--section-border);
    aspect-ratio: 4/3;
    width: 100%;
    transform: perspective(1000px) rotateY(0deg);
    transition: transform 0.5s ease;
}

.section-image::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.3), rgba(0,0,0,0));
    z-index: 1;
    pointer-events: none;
}

.section-image::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 15px;
    box-shadow: inset 0 0 20px rgba(0,0,0,0.6);
    z-index: 2;
    pointer-events: none;
}

.image-text-grid:hover .section-image {
    transform: perspective(1000px) rotateY(-2deg);
}

.image-text-grid.reverse:hover .section-image {
    transform: perspective(1000px) rotateY(2deg);
}

.section-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
    display: block;
    transition: transform 0.5s ease;
    padding: 0;
    background-color: transparent;
    z-index: 0;
}

.image-text-grid:hover .section-image img {
    transform: scale(1.03);
}

.section-text {
    text-align: left;
}

.section-text p {
    margin-bottom: 20px;
    font-size: 1.1rem;
}

.section-text h3 {
    font-size: 1.8rem;
    margin-bottom: 15px;
    color: var(--secondary-color);
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    display: inline-block;
}

/* Reverse layout (image on right) */
.image-text-grid.reverse {
    grid-template-columns: 1.2fr 0.8fr;
    direction: rtl;
}

.image-text-grid.reverse .section-text {
    direction: ltr;
}

/* About Section */
.about {
    background-color: var(--dark-bg-lighter);
    background-image: url('images/network.png'), linear-gradient(to bottom right, var(--dark-bg-lighter), #3498DB);
    background-size: cover;
    background-position: center;
    background-blend-mode: overlay;
    position: relative;
    z-index: 2;
    border-radius: 20px 20px 0 0;
    padding: 80px 0;
    position: relative;
}

.about::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(12, 79, 145, 0.8), rgba(52, 152, 219, 0.6));
    z-index: -1;
}

.about .container {
    position: relative;
    z-index: 2;
}

.about .section-header {
    margin-bottom: 50px;
}

.about .section-header h2 {
    color: white;
    text-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
}

.about .image-text-grid {
    display: block;
    max-width: 900px;
    margin: 0 auto;
}

.about .section-text {
    background-color: rgba(26, 38, 56, 0.8);
    padding: 40px;
    border-radius: 15px;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(169, 214, 245, 0.3);
    backdrop-filter: blur(10px);
}

.about .section-text p {
    margin-bottom: 20px;
    font-size: 1.05rem;
    line-height: 1.7;
    color: var(--text-color);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.about .section-text p:last-child {
    margin-bottom: 0;
}

/* Services Section */
.services {
    background-color: var(--dark-bg);
    background-image: linear-gradient(to bottom, var(--dark-bg), #0E1623);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.service-card {
    background-color: rgba(12, 79, 145, 0.7);
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 5px 15px var(--shadow-color);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    border: var(--section-border);
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.4);
    background-color: rgba(12, 79, 145, 0.9);
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 5px;
    height: 0;
    background: var(--gradient-primary);
    transition: all 0.3s ease;
}

.service-card:hover::before {
    height: 100%;
}

.service-icon {
    font-size: 2.5rem;
    margin-bottom: 20px;
    color: var(--secondary-color);
}

.service-card h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
}

/* Success Stories Section */
.success-stories {
    background-color: var(--dark-bg-lighter);
    background-image: linear-gradient(to bottom left, var(--dark-bg-lighter), #3498DB);
}

.success-stories .image-text-grid {
    align-items: center;
    gap: 50px;
}

.success-stories .image-text-grid.reverse {
    grid-template-columns: 1.1fr 0.9fr;
}

.success-stories .section-image {
    height: 100%;
    min-height: unset;
    display: flex;
    align-items: center;
    padding: 0;
    border-radius: 15px;
    overflow: hidden;
    margin-top: 0;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.4);
}

.success-stories .section-image img {
    object-fit: cover;
    width: 100%;
    height: 100%;
    border-radius: 12px;
    transition: transform 0.5s ease, box-shadow 0.5s ease;
    display: block;
}

.success-stories .section-image:hover img {
    transform: scale(1.02);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3);
}

.success-stories .section-text {
    padding-top: 0;
}

.success-stories .section-text h3 {
    font-size: 2.2rem;
    margin-bottom: 20px;
    color: var(--secondary-color);
    margin-top: 0;
}

.success-metrics {
    list-style: none;
    margin-top: 20px;
}

.success-metrics li {
    margin-bottom: 15px;
    padding-left: 30px;
    position: relative;
    font-size: 1.05rem;
}

.success-metrics li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--secondary-color);
    font-weight: bold;
    font-size: 1.2rem;
}

.success-metrics li strong {
    display: block;
    margin-bottom: 5px;
    font-size: 1.1rem;
    color: var(--secondary-color);
}

/* Case Study Section */
.case-study {
    background-color: var(--dark-bg);
    background-image: linear-gradient(to bottom, var(--dark-bg), #0E1623);
}

.case-study .image-text-grid {
    grid-template-columns: 0.9fr 1.1fr;
    align-items: center;
    gap: 50px;
}

.case-study .section-image {
    height: 100%;
    min-height: unset;
    display: flex;
    align-items: center;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.4);
}

.case-study .section-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.case-section {
    margin-bottom: 40px;
    max-width: 1000px;
    margin: 0 auto 40px;
}

.case-section h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: var(--secondary-color);
}

.case-section ul {
    padding-left: 20px;
    margin-bottom: 20px;
}

.case-section li {
    margin-bottom: 10px;
    position: relative;
    padding-left: 25px;
}

.case-section li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: var(--primary-color);
    font-size: 1.5rem;
    line-height: 1;
}

.results-list li {
    display: flex;
    flex-direction: column;
    margin-bottom: 20px;
}

.result-metric {
    font-weight: 600;
    color: var(--secondary-color);
    margin-bottom: 5px;
}

/* AI Journey Section */
.ai-journey {
    background-color: var(--dark-bg-lighter);
    background-image: linear-gradient(to bottom right, var(--dark-bg-lighter), #3498DB);
    position: relative;
}

.journey-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
}

.journey-card {
    background-color: rgba(26, 38, 56, 0.8);
    padding: 30px;
    border-radius: 15px;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px var(--shadow-color);
    height: 100%;
    border: var(--section-border);
}

.journey-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.4);
    background-color: rgba(12, 79, 145, 0.8);
}

.journey-icon {
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(52, 152, 219, 0.2);
    color: var(--primary-color);
    font-size: 1.5rem;
    border-radius: 50%;
    margin-bottom: 20px;
}

.journey-card:hover .journey-icon {
    background: var(--primary-color);
    color: white;
}

.journey-card h3 {
    font-size: 1.3rem;
    margin-bottom: 15px;
}

/* Contact Section */
.contact {
    background-color: var(--dark-bg);
    background-image: linear-gradient(to bottom, var(--dark-bg), #0E1623);
    position: relative;
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 50px;
    max-width: 1000px;
    margin: 0 auto;
}

.contact-info {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 30px;
    background-color: rgba(12, 79, 145, 0.7);
    border-radius: 15px;
    border: var(--section-border);
}

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

.contact-item i {
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-right: 15px;
}

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

.social-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(52, 152, 219, 0.2);
    color: var(--primary-color);
    border-radius: 50%;
    font-size: 1.2rem;
    transition: all 0.3s ease;
}

.social-icon:hover {
    background-color: var(--primary-color);
    color: white;
    transform: translateY(-3px);
}

.contact-form {
    padding: 30px;
    background-color: rgba(12, 79, 145, 0.7);
    border-radius: 15px;
    border: var(--section-border);
}

.contact-form form {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

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

.form-group:nth-child(3),
.form-group:nth-child(4) {
    grid-column: 1 / 3;
}

input, textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid var(--border-color);
    background-color: rgba(26, 38, 56, 0.7);
    color: var(--text-color);
    border-radius: 8px;
    font-family: 'Poppins', sans-serif;
    transition: all 0.3s ease;
}

input:focus, textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px rgba(120, 81, 169, 0.2);
}

textarea {
    height: 150px;
    resize: vertical;
}

.contact-form button {
    grid-column: 1 / 3;
    justify-self: start;
}

/* Footer */
footer {
    background-color: rgba(26, 38, 56, 0.95);
    padding: 30px 0;
    border-top: var(--section-border);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.footer-logo {
    display: flex;
    align-items: center;
    justify-content: center;
}

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

.footer-links {
    display: flex;
    gap: 20px;
}

.footer-links a {
    color: var(--text-muted);
    transition: all 0.3s ease;
}

.footer-links a:hover {
    color: var(--primary-color);
}

.footer-bottom {
    margin-top: 20px;
    text-align: center;
    font-size: 0.85rem;
    opacity: 0.7;
}

/* Responsive Styles */
@media screen and (max-width: 991px) {
    .hero-content h1 {
        font-size: 3rem;
    }
    
    .contact-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .contact-info {
        order: 2;
    }
    
    .contact-form {
        order: 1;
    }
}

@media screen and (max-width: 768px) {
    .menu-toggle {
        display: block;
    }
    
    .nav-menu {
        position: fixed;
        top: 80px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 80px);
        background-color: var(--dark-bg);
        flex-direction: column;
        align-items: center;
        justify-content: flex-start;
        padding-top: 40px;
        transition: all 0.3s ease;
    }
    
    .nav-menu.active {
        left: 0;
    }
    
    .nav-menu li {
        margin: 0 0 30px 0;
    }
    
    .hero-content h1 {
        font-size: 2.2rem;
        white-space: normal;
        display: block;
        animation: none;
        width: 100%;
        border-right: none;
    }
    
    .fade-in-after-typing {
        opacity: 1;
        animation: none;
    }
    
    .hero-content p {
        font-size: 1.1rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        gap: 15px;
    }
    
    .image-text-grid, .image-text-grid.reverse {
        grid-template-columns: 1fr;
        gap: 30px;
        direction: ltr;
    }
    
    .section-text {
        text-align: center;
    }
    
    .section-image {
        aspect-ratio: 16/9;
        max-width: 100%;
        margin: 0 auto;
        transform: none !important;
    }
    
    .image-text-grid:hover .section-image,
    .image-text-grid.reverse:hover .section-image {
        transform: none !important;
    }
    
    .about {
        padding: 60px 0;
    }
    
    .about .section-text {
        padding: 30px;
    }
    
    .case-section {
        padding: 0 10px;
        text-align: left;
    }
    
    .case-study-image {
        width: 100%;
        height: 350px;
        margin-bottom: 40px;
        border-radius: 15px;
        overflow: hidden;
        box-shadow: 0 10px 25px var(--shadow-color);
        border: var(--section-border);
        position: relative;
        display: flex;
        align-items: flex-end;
    }
    
    .contact-form form {
        grid-template-columns: 1fr;
    }
    
    .form-group:nth-child(3),
    .form-group:nth-child(4) {
        grid-column: 1;
    }
    
    .contact-form button {
        grid-column: 1;
    }
    
    section {
        padding: 60px 0;
    }
    
    .section-header {
        margin-bottom: 40px;
    }
    
    .section-header h2 {
        font-size: 2rem;
    }
    
    .success-stories .section-image {
        min-height: unset;
        margin-top: 0;
        margin-bottom: 25px;
    }
    
    .success-stories .section-text {
        text-align: left;
        padding: 0;
    }
    
    .success-stories .success-metrics li {
        text-align: left;
        padding-left: 25px;
    }
}

@media screen and (max-width: 480px) {
    .hero-content h1 {
        font-size: 2rem;
    }
    
    .btn {
        padding: 10px 20px;
        font-size: 0.9rem;
    }
    
    .service-card, 
    .journey-card {
        padding: 20px;
    }
    
    .case-study-image {
        height: 200px;
    }
    
    .success-stories .section-image {
        min-height: unset;
    }
}

/* For people images specifically */
.image-text-grid:nth-child(2) .section-image {
    aspect-ratio: 16/9;
}

#case-study .section-image,
#success .section-image {
    aspect-ratio: 16/9;
}

#case-study .section-image img,
#success .section-image img {
    object-position: 50% 15%;
} 