
@import url('global-header-styles.css');

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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    color: #323031;
    background-color: #fff;
}

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

/* Header - Global styling to match home page exactly */
.header {
    background: rgba(255, 255, 255, 0.95) !important;
    backdrop-filter: blur(10px) !important;
    box-shadow: 0 2px 20px rgba(0,0,0,0.1) !important;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 100;
    transition: all 0.3s ease !important;
}

.navbar {
    padding: 1rem 0;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding-left: 30px !important;
    padding-right: 20px !important;
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-left: 0 !important;
    padding-left: 0 !important;
}

.nav-logo a {
    margin-left: 0 !important;
    padding-left: 0 !important;
}

.logo {
    width: auto !important;
    height: 80px !important;
    background: transparent !important;
    display: flex;
    align-items: center;
    justify-content: flex-start !important;
}

.company-name {
    background: linear-gradient(135deg, #177e89, #084c61);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-family: 'Poppins', -apple-system, BlinkMacSystemFont, sans-serif;
    font-weight: 700;
    letter-spacing: -0.5px;
    font-size: 1.9rem;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
    margin-right: 0 !important;
    padding-right: 0 !important;
    margin-left: auto;
    position: absolute;
    right: 20px !important;
}

/* Dropdown Styles */
.nav-item {
    position: relative;
}

.dropdown {
    position: relative;
}

.dropdown-content {
    display: none;
    position: absolute;
    top: calc(100% + 10px);
    left: 0;
    background: white;
    min-width: 280px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.1);
    border-radius: 8px;
    padding: 1rem 0;
    z-index: 1001;
    border: 1px solid rgba(23, 126, 137, 0.1);
    pointer-events: auto;
}

/* Create a bridge between dropdown trigger and content */
.dropdown-content::before {
    content: '';
    position: absolute;
    top: -10px;
    left: 0;
    right: 0;
    height: 10px;
    background: transparent;
}

.nav-item.dropdown:hover .dropdown-content,
.nav-item.dropdown.active .dropdown-content,
.dropdown:hover .dropdown-content,
.dropdown.active .dropdown-content,
.dropdown-content:hover {
    display: block;
    animation: fadeInDown 0.3s ease;
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.dropdown-content a {
    display: block;
    padding: 0.75rem 1.5rem;
    text-decoration: none;
    color: #323031;
    font-weight: 500;
    transition: all 0.3s ease;
    border-left: 3px solid transparent;
    cursor: pointer;
    position: relative;
}

.dropdown-content a:hover {
    background: linear-gradient(135deg, rgba(23, 126, 137, 0.1) 0%, rgba(255, 200, 87, 0.1) 100%);
    color: #177e89;
    border-left-color: #ffc857;
}

.dropdown-arrow {
    margin-left: 0.5rem;
    font-size: 0.8rem;
    transition: transform 0.3s ease;
}

.nav-item.dropdown:hover .dropdown-arrow,
.nav-item.dropdown.active .dropdown-arrow,
.dropdown:hover .dropdown-arrow,
.dropdown.active .dropdown-arrow {
    transform: rotate(180deg);
}

/* Service Page Styles */
.service-overview {
    margin-bottom: 4rem;
}

.overview-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 3rem;
    align-items: center;
}

.overview-content h2 {
    color: #084c61;
    margin-bottom: 1.5rem;
    font-size: 2rem;
}

.key-benefits {
    margin-top: 2rem;
}

.key-benefits ul {
    list-style: none;
    padding: 0;
}

.key-benefits li {
    padding: 0.5rem 0;
    color: #323031;
}

.process-section {
    margin: 4rem 0;
}

.process-steps {
    display: grid;
    gap: 2rem;
    margin-top: 2rem;
}

.step {
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;
    padding: 1.5rem;
    background: #f8f9fa;
    border-radius: 12px;
    border-left: 4px solid #177e89;
}

.step-number {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
    font-size: 1.2rem;
    flex-shrink: 0;
}

.step-content h4 {
    color: #084c61;
    margin-bottom: 0.5rem;
    font-size: 1.2rem;
}

.step-content p {
    color: #666;
    line-height: 1.6;
}

@media (max-width: 768px) {
    .overview-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .step {
        flex-direction: column;
        text-align: center;
    }
}

.nav-link {
    text-decoration: none;
    color: #323031;
    font-weight: 500;
    transition: color 0.3s ease;
    position: relative;
}

.nav-link:hover {
    color: #db3a34;
}

.nav-link.active {
    color: #177e89;
}

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, #ffc857 0%, #db3a34 100%);
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    padding: 5px;
    border-radius: 4px;
    transition: background 0.3s ease;
}

.hamburger:hover {
    background: rgba(219, 58, 52, 0.1);
}

.bar {
    width: 25px;
    height: 3px;
    background: linear-gradient(90deg, #323031 0%, #db3a34 100%);
    margin: 3px 0;
    transition: 0.3s;
}

/* Main Content */
.main-content {
    margin-top: 80px;
}

/* Hero Section */
.hero {
    padding: 4rem 0;
    background: linear-gradient(135deg, #177e89 0%, #084c61 100%);
    display: flex;
    align-items: center;
    min-height: 600px;
    border-top: 4px solid #db3a34;
    border-bottom: 4px solid #db3a34;
    box-shadow: 
        inset 0 4px 0 rgba(219, 58, 52, 0.3),
        inset 0 -4px 0 rgba(219, 58, 52, 0.3);
}

.hero-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.hero-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: white;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 2rem;
    line-height: 1.6;
}

.hero-actions {
    display: flex;
    gap: 1rem;
}

.btn-primary,
.btn-secondary {
    padding: 12px 24px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    display: inline-block;
}

.btn-primary {
    background: linear-gradient(135deg, #db3a34 0%, #ffc857 100%);
    color: white;
    border: 2px solid #db3a34;
}

.btn-primary:hover {
    background: linear-gradient(135deg, #ffc857 0%, #db3a34 100%);
    transform: translateY(-2px);
    color: white;
    box-shadow: 0 8px 20px rgba(219, 58, 52, 0.4);
}

.btn-secondary {
    background: transparent;
    color: #db3a34;
    border: 2px solid #db3a34;
}

.btn-secondary:hover {
    background: linear-gradient(135deg, #db3a34 0%, #ffc857 100%);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(219, 58, 52, 0.3);
}

.hero-img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    border-radius: 12px;
    background: linear-gradient(135deg, #177e89 0%, #084c61 100%);
}

.hero-img:not([src]),
.hero-img[src=""],
.hero-img[src="ai-hero.jpg"] {
    background: linear-gradient(135deg, #177e89 0%, #084c61 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 4rem;
}

.hero-img:not([src]):after,
.hero-img[src=""]:after,
.hero-img[src="ai-hero.jpg"]:after {
    content: "🤖";
}

/* Features Section */
.features {
    padding: 6rem 0;
    background: linear-gradient(135deg, #fff 0%, #f8f9fa 100%);
    position: relative;
}

.features::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, #db3a34 0%, #ffc857 25%, #177e89 50%, #084c61 75%, #323031 100%);
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    font-weight: 700;
    background: linear-gradient(135deg, #177e89 0%, #db3a34 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 3rem;
}

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

.feature-card {
    text-align: center;
    padding: 2rem;
    border-radius: 12px;
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-left: 4px solid #db3a34;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(219, 58, 52, 0.2);
    border-left: 4px solid #ffc857;
}

.feature-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.feature-card:nth-child(1) .feature-icon { color: #db3a34; }
.feature-card:nth-child(2) .feature-icon { color: #ffc857; }
.feature-card:nth-child(3) .feature-icon { color: #177e89; }
.feature-card:nth-child(4) .feature-icon { color: #084c61; }
.feature-card:nth-child(5) .feature-icon { color: #323031; }

.feature-card h3 {
    font-size: 1.5rem;
    font-weight: 600;
    color: #084c61;
    margin-bottom: 1rem;
}

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

/* AI Branches Widget */
.ai-branches-widget {
    padding: 6rem 0;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-top: 1px solid #ffc857;
    border-bottom: 1px solid #db3a34;
}

.ai-branches-card {
    background: white;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    overflow: hidden;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
    transition: all 0.3s ease;
}

.ai-branches-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 50px rgba(0,0,0,0.15);
}

.ai-branches-content {
    padding: 3rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.ai-branches-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
    display: block;
}

.ai-branches-content h3 {
    font-size: 2rem;
    color: #084c61;
    margin-bottom: 1rem;
    font-weight: 700;
}

.ai-branches-content p {
    color: #666;
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 2rem;
}

.ai-branches-btn {
    background: linear-gradient(135deg, #db3a34 0%, #177e89 100%);
    color: white;
    padding: 12px 24px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    display: inline-block;
    align-self: flex-start;
}

.ai-branches-btn:hover {
    background: linear-gradient(135deg, #177e89 0%, #db3a34 100%);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(219, 58, 52, 0.3);
}

.ai-branches-preview {
    background: linear-gradient(135deg, #177e89 0%, #084c61 100%);
    padding: 3rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.preview-items {
    display: grid;
    gap: 1.5rem;
}

.preview-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    color: white;
    font-weight: 500;
    padding: 0.5rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    border-left: 3px solid transparent;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.preview-item:nth-child(1) { border-left-color: #ffc857; }
.preview-item:nth-child(2) { border-left-color: #db3a34; }
.preview-item:nth-child(3) { border-left-color: #177e89; }
.preview-item:nth-child(4) { border-left-color: #084c61; }
.preview-item:nth-child(5) { border-left-color: #323031; }

.preview-item:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateX(5px);
}

.preview-icon {
    font-size: 1.5rem;
    width: 40px;
    display: flex;
    justify-content: center;
}

/* CTA Section */
.cta-section {
    padding: 4rem 0;
    background: linear-gradient(135deg, #177e89 0%, #084c61 100%);
    color: white;
    text-align: center;
}

.cta-section h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.cta-section p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.cta-section .btn-primary {
    background: linear-gradient(135deg, #db3a34 0%, #ffc857 100%);
    color: white;
    border-color: #db3a34;
}

.cta-section .btn-primary:hover {
    background: linear-gradient(135deg, #ffc857 0%, #db3a34 100%);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(219, 58, 52, 0.4);
}

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

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h3,
.footer-section h4 {
    margin-bottom: 1rem;
    color: #ecf0f1;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-section a {
    color: #bdc3c7;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section a:hover {
    color: #ffc857;
}

.footer-section p {
    color: #bdc3c7;
    line-height: 1.6;
}

.footer-bottom {
    border-top: 1px solid #177e89;
    padding-top: 1rem;
    text-align: center;
    color: #bdc3c7;
}

/* Page Styles */
.page-header {
    background: linear-gradient(135deg, #177e89 0%, #084c61 100%);
    color: white;
    text-align: center;
    padding: 1.5rem 0 1rem;
    position: relative;
    overflow: hidden;
    border-top: 4px solid #db3a34;
    border-bottom: 4px solid #db3a34;
    box-shadow: 
        inset 0 4px 0 rgba(219, 58, 52, 0.3),
        inset 0 -4px 0 rgba(219, 58, 52, 0.3);
}

/* Gradient Waves Animation */
.page-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 200%;
    height: 200%;
    background: 
        linear-gradient(45deg, transparent 30%, rgba(255, 200, 87, 0.15) 50%, transparent 70%),
        linear-gradient(-45deg, transparent 40%, rgba(255, 255, 255, 0.1) 60%, transparent 80%),
        linear-gradient(135deg, transparent 20%, rgba(255, 200, 87, 0.12) 40%, transparent 60%);
    background-size: 800px 600px, 1000px 700px, 900px 650px;
    animation: waveFlow1 12s ease-in-out infinite;
    pointer-events: none;
    z-index: 1;
}

.page-header::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 200%;
    height: 200%;
    background: 
        linear-gradient(60deg, transparent 25%, rgba(255, 255, 255, 0.08) 45%, transparent 65%),
        linear-gradient(-60deg, transparent 35%, rgba(255, 200, 87, 0.1) 55%, transparent 75%),
        linear-gradient(120deg, transparent 15%, rgba(255, 255, 255, 0.12) 35%, transparent 55%);
    background-size: 1200px 800px, 700px 500px, 1100px 750px;
    animation: waveFlow2 15s ease-in-out infinite;
    pointer-events: none;
    z-index: 0;
}

@keyframes waveFlow1 {
    0%, 100% {
        transform: translateX(-25%) translateY(-25%) rotate(0deg);
        opacity: 0.7;
    }
    25% {
        transform: translateX(-20%) translateY(-30%) rotate(1deg);
        opacity: 1;
    }
    50% {
        transform: translateX(-15%) translateY(-25%) rotate(0deg);
        opacity: 0.8;
    }
    75% {
        transform: translateX(-10%) translateY(-20%) rotate(-1deg);
        opacity: 0.9;
    }
}

@keyframes waveFlow2 {
    0%, 100% {
        transform: translateX(-30%) translateY(-20%) rotate(0deg);
        opacity: 0.6;
    }
    33% {
        transform: translateX(-25%) translateY(-25%) rotate(-1deg);
        opacity: 0.9;
    }
    66% {
        transform: translateX(-20%) translateY(-30%) rotate(1deg);
        opacity: 0.7;
    }
}

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

.page-title {
    font-size: 2.2rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.page-subtitle {
    font-size: 1.25rem;
    opacity: 0.9;
    max-width: 600px;
    margin: 0 auto;
}

.content-section {
    padding: 4rem 0;
}

.grid-2 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

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

.card {
    background: #f8f9fa;
    padding: 2rem;
    border-radius: 12px;
    border: 1px solid #e9ecef;
    position: relative;
    overflow: hidden;
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, #ffc857 0%, #db3a34 50%, #177e89 100%);
}

.card h3 {
    color: #084c61;
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.card p {
    color: #666;
    line-height: 1.6;
}

/* Form Styles */
.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: #084c61;
}

.form-control {
    width: 100%;
    padding: 12px;
    border: 2px solid #e9ecef;
    border-radius: 6px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.form-control:focus {
    outline: none;
    border-color: #ffc857;
    box-shadow: 0 0 0 3px rgba(255, 200, 87, 0.2);
}

textarea.form-control {
    resize: vertical;
    min-height: 120px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 80px;
        flex-direction: column;
        background: white;
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: 0 10px 27px rgba(0,0,0,0.05);
        padding: 2rem 0;
        z-index: 999;
    }
    
    .dropdown-content {
        position: static;
        display: none;
        box-shadow: none;
        border: none;
        background: #f8f9fa;
        margin: 0.5rem 0;
        border-radius: 8px;
        width: 90%;
        margin-left: auto;
        margin-right: auto;
    }
    
    .dropdown:hover .dropdown-content,
    .dropdown.active .dropdown-content,
    .nav-item.dropdown.active .dropdown-content {
        display: block;
    }

    .nav-menu.active {
        left: 0;
    }

    .hamburger {
        display: flex;
    }

    .hamburger.active .bar:nth-child(2) {
        opacity: 0;
    }

    .hamburger.active .bar:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }

    .hamburger.active .bar:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }

    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 2rem;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .hero-actions {
        flex-direction: column;
        align-items: center;
    }

    .features-grid {
        grid-template-columns: 1fr;
    }

    .page-title {
        font-size: 2.5rem;
    }

    .grid-2,
    .grid-3 {
        grid-template-columns: 1fr;
    }

    .ai-branches-card {
        grid-template-columns: 1fr;
    }

    .ai-branches-content,
    .ai-branches-preview {
        padding: 2rem;
    }

    .ai-branches-content h3 {
        font-size: 1.5rem;
    }

    .preview-items {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .cta-section h2 {
        font-size: 2rem;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2rem;
    }

    .page-title {
        font-size: 2rem;
    }

    .section-title {
        font-size: 2rem;
    }

    .hero-actions {
        flex-direction: column;
        width: 100%;
    }

    .btn-primary,
    .btn-secondary {
        width: 100%;
        text-align: center;
    }
}