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

body {
    font-family: 'Roboto', sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #ffffff;
}

/* Ensure all titles use Raleway and are normal weight */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Raleway', sans-serif;
    font-weight: normal !important;
}

/* Ensure all other text uses Roboto and is plain weight */
p, span, div, a, li, button, input, select, textarea {
    font-family: inherit;
    font-weight: normal;
}

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

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    padding: 1rem 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-image {
    height: 40px;
    width: auto;
    margin-bottom: 0.25rem;
}

.nav-logo .tagline {
    color: #64748b;
    font-size: 0.9rem;
    font-weight: 400;
    margin: 0;
    text-align: center;
}

.nav-menu {
    display: flex;
    gap: 2rem;
    align-items: center;
}

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

.nav-link:hover {
    color: #102ce5;
}

.dropdown-arrow {
    font-size: 0.7rem;
    margin-left: 0.25rem;
}

.btn-nav-cta {
    background: #7DF9FF;
    color: #035096;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    transition: all 0.3s ease;
}

.btn-nav-cta:hover {
    background: #5DE5F0;
    color: #374151;
    transform: scale(1.05);
}

/* Hero Section */
.hero {
    padding: 120px 0 80px;
    background: #ffffff;
    min-height: 85vh;
    display: flex;
    align-items: center;
}

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

.hero-content {
    display: flex;
    gap: 4rem;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
}

.hero-text {
    flex: 0 0 60%;
    text-align: left;
}

.hero-visual {
    flex: 0 0 40%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.hero-title {
    font-family: 'Raleway', sans-serif;
    font-size: 3rem;
    font-weight: normal;
    line-height: 1.1;
    margin-bottom: 1rem;
    color: #1e293b;
}

.hero-title strong {
    font-weight: 800;
}

.ai-text {
    color: #AF10DA;
}

.cycling-text {
    transition: opacity 0.5s ease-in-out;
    display: inline-block;
    font-weight: 800;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: #64748b;
    margin-bottom: 2rem;
    line-height: 1.6;
}

.hero-cta {
    margin-top: 2rem;
}

/* Circle Button (no border, no shadow) */
.btn-liquid {
    --size: 200px;           /* diameter */
    --aqua-alpha: 0.8;       /* strength of aqua under-layer (0–1) */

    position: relative;
    display: grid;
    place-items: center;

    width: var(--size);
    aspect-ratio: 1 / 1;
    border-radius: 50%;
    overflow: hidden;

    text-decoration: none;
    color: #fff;
    background: transparent;

    /* explicitly no shadow/border */
    box-shadow: none;
    border: none;
}

/* text block */
.btn-liquid .inner {
    position: relative;
    z-index: 2;
    pointer-events: none;
    display: grid;
    place-items: center;
    text-align: center;
    padding: 0 1.25rem;
    gap: 0.25rem;
}

.btn-liquid .title {
    font-weight: normal;
    font-size: clamp(18px, 4.8vw, 28px);
    line-height: 1.15;
}

.btn-liquid .subtitle {
    font-weight: normal;
    opacity: 0.9;
    font-size: clamp(12px, 3.2vw, 16px);
    line-height: 1.2;
}

/* canvas under the text */
.btn-liquid canvas {
    position: absolute;
    inset: 0;
    z-index: 1;
}

.btn-primary {
    background: #7DF9FF;
    color: #035096;
    padding: 1rem 2rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    transition: all 0.3s ease;
    display: inline-block;
    border: none;
    cursor: pointer;
    font-size: 1rem;
}

.btn-primary:hover {
    background: #5DE5F0;
    color: #374151;
    transform: scale(1.05);
}

/* Xtolia Container */
.xtolia-container {
    display: flex;
    align-items: center;
    gap: 1rem;
}


.xtolia-tagline {
    color: #8b5cf6;
    font-size: 0.9rem;
    font-weight: 500;
    margin: 0;
}

/* What We Do Section */
.what-we-do {
    padding: 0;
    background: #E8E8E8;
    margin-bottom: 0;
}

.what-we-do-text {
    background: #E8E8E8;
    padding: 40px 20px 10px 20px;
    width: 100vw;
    margin-left: calc(-50vw + 50%);
    box-sizing: border-box;
}

.what-we-do-text .section-title {
    font-family: 'Raleway', sans-serif;
    font-size: 2.5rem;
    font-weight: normal;
    color: #1e293b;
    margin-bottom: 1rem;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

.what-we-do-text .section-description {
    font-size: 1.1rem;
    color: #64748b;
    line-height: 1.6;
    margin: 0;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

.network-diagram-container {
    position: relative;
    height: 700px;
    background: transparent;
    width: 100%;
    margin: -20px 0 0 0;
}

#network-diagram {
    width: 100%;
    height: 100%;
}

/* Mobile Accordion Styles */
.mobile-accordion-container {
    display: none;
    padding: 20px 0;
}

.accordion-section {
    margin-bottom: 3rem;
}

.accordion-main-title {
    font-family: 'Raleway', sans-serif;
    font-size: 2rem;
    font-weight: normal;
    color: #1e293b;
    margin-bottom: 1.5rem;
}

.accordion-wrapper {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.accordion-item {
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    overflow: hidden;
    background: #ffffff;
}

.accordion-header {
    width: 100%;
    padding: 1.25rem 1.5rem;
    background: #ffffff;
    border: none;
    text-align: left;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-family: 'Raleway', sans-serif;
    font-size: 1.1rem;
    color: #1e293b;
    transition: background-color 0.3s ease;
    user-select: none;
    -webkit-user-select: none;
}

.accordion-header * {
    pointer-events: none;
}

.accordion-header:hover {
    background: #f8fafc;
}

.accordion-header span:first-child {
    flex: 1;
    text-align: left;
}

.accordion-icon {
    font-size: 1.5rem;
    font-weight: 300;
    color: #6366f1;
    transition: transform 0.3s ease;
    flex-shrink: 0;
    margin-left: 1rem;
}

.accordion-item.active .accordion-icon {
    transform: rotate(45deg);
}

.accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
    padding: 0 1.5rem;
}

.accordion-item.active .accordion-content {
    max-height: 2000px;
    padding: 0 1.5rem 1.5rem 1.5rem;
    display: block;
}

.accordion-content p {
    color: #64748b;
    line-height: 1.6;
    margin: 0;
    font-size: 1rem;
}

.cta-section {
    text-align: left;
    margin-top: 20px;
    margin-bottom: 0;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

.cta-link {
    color: #6366f1;
    font-size: 1.1rem;
    font-weight: normal;
    text-decoration: none;
    transition: color 0.3s ease;
}

.cta-link:hover {
    color: #4f46e5;
}

/* Network Diagram Styles */
.node {
    cursor: grab;
    transition: transform 0.3s ease;
    transform-origin: center;
}

.node:active {
    cursor: grabbing;
}

.node:hover {
    transform: scale(1.1);
}

.analytics-main circle {
    fill: #6366f1;
    stroke: none;
    filter: drop-shadow(0 4px 12px rgba(99, 102, 241, 0.3));
}

.analytics-sub rect {
    fill: #8b5cf6;
    stroke: none;
    filter: drop-shadow(0 3px 8px rgba(139, 92, 246, 0.25));
}

.analytics-sub:hover rect {
    fill: #7c3aed;
}

.creative-main circle {
    fill: #4cc9f0;
    stroke: none;
    filter: drop-shadow(0 4px 12px rgba(76, 201, 240, 0.4));
}

.creative-sub rect {
    fill: #c084fc;
    stroke: none;
    filter: drop-shadow(0 3px 8px rgba(192, 132, 252, 0.3));
}

.creative-sub:hover rect {
    fill: #a855f7;
}

.node-text {
    fill: #fff;
    font-size: 13px;
    font-weight: 600;
    text-anchor: middle;
    pointer-events: none;
    user-select: none;
}

.creative-sub .node-text {
    fill: #1f2937;
}

.main-node .node-text {
    font-size: 22px;
    font-weight: 700;
    letter-spacing: 0.3px;
}

.connection-line {
    stroke-width: 2;
    fill: none;
}

.analytics-line {
    stroke: rgba(99, 102, 241, 0.25);
}

.creative-line {
    stroke: rgba(76, 201, 240, 0.3);
}

.center-connection {
    stroke-width: 10;
    fill: none;
    stroke-linecap: round;
    opacity: 1;
}

.tooltip {
    position: absolute;
    background: white;
    border-radius: 10px;
    padding: 20px;
    max-width: 380px;
    box-shadow: 0 8px 30px rgba(0,0,0,0.12);
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 1000;
    font-size: 13px;
    line-height: 1.6;
    color: #1f2937;
    border: 1px solid rgba(99, 102, 241, 0.2);
}

.tooltip.active {
    opacity: 1;
}

.tooltip h3 {
    color: #6366f1;
    margin-bottom: 10px;
    font-size: 16px;
    font-weight: 700;
    border-bottom: 2px solid #e0e7ff;
    padding-bottom: 8px;
}

.tooltip p {
    margin: 0;
    color: #4b5563;
}

.section-title {
    font-family: 'Raleway', sans-serif;
    font-size: 2.5rem;
    font-weight: normal;
    text-align: left;
    margin-bottom: 1.5rem;
    color: #1e293b;
}

.section-description {
    font-size: 1.25rem;
    color: #64748b;
    text-align: left;
    max-width: 600px;
    margin-bottom: 3rem;
    line-height: 1.6;
}

.services-cards {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

.service-card {
    background: #ffffff;
    padding: 2.5rem;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    border: 1px solid #e2e8f0;
}

.service-card h3 {
    font-family: 'Raleway', sans-serif;
    font-size: 1.5rem;
    font-weight: normal;
    margin-bottom: 1rem;
    color: #1e293b;
}

.service-card p {
    color: #64748b;
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.service-card ul {
    list-style: none;
    margin-bottom: 2rem;
}

.service-card li {
    color: #64748b;
    margin-bottom: 0.5rem;
    padding-left: 1.5rem;
    position: relative;
}

.service-card li:before {
    content: "•";
    color: #102ce5;
    font-weight: bold;
    position: absolute;
    left: 0;
}

.card-link {
    color: #8b5cf6;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.card-link:hover {
    color: #7c3aed;
}

/* Why XTedium Section */
.why-xtedium {
    padding: 80px 0;
    background: #035096;
    color: white;
    margin-top: 0;
}

.why-content {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 4rem;
    align-items: start;
}

.why-text h2 {
    font-family: 'Raleway', sans-serif;
    font-size: 2.5rem;
    font-weight: normal;
    margin-bottom: 1rem;
    color: white;
}

.why-text p {
    font-size: 1.25rem;
    color: #cbd5e1;
    line-height: 1.6;
}

.why-cards {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.why-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 2rem;
    padding: 2rem;
}

.card-image {
    width: 300px;
    height: 200px;
    overflow: hidden;
    border-radius: 8px;
    flex-shrink: 0;
}

.card-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 8px;
}

.placeholder-image {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 600;
}

.creative-image {
    background: linear-gradient(135deg, #ec4899 0%, #be185d 100%);
}

.analytics-image {
    background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
}

.card-content {
    flex: 1;
    color: #1e293b;
}

.card-content h3 {
    font-size: 1.25rem;
    font-weight: normal;
    color: #1e293b;
    margin-bottom: 1rem;
    font-family: 'Raleway', sans-serif;
}

.card-content p {
    color: #64748b;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.btn-card {
    background: #7DF9FF;
    color: #035096;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    transition: all 0.3s ease;
    display: inline-block;
}

.btn-card:hover {
    background: #5DE5F0;
    color: #1e293b;
    transform: scale(1.05);
}

/* Contact Section */
.contact {
    padding: 80px 0;
    background: #ffffff;
}

.contact-form-container {
    width: 100%;
    display: flex;
    justify-content: center;
    padding: 0 20px;
}

.contact-form-wrapper {
    max-width: 600px;
    width: 100%;
    text-align: center;
}

.contact-title {
    font-family: 'Raleway', sans-serif;
    font-size: 2.5rem;
    font-weight: bold;
    color: #1a1a1a;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.contact-subtitle {
    font-size: 1.1rem;
    color: #1a1a1a;
    margin-bottom: 2.5rem;
    line-height: 1.5;
}

.custom-contact-form {
    text-align: left;
}

.form-row {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.form-group {
    flex: 1;
    margin-bottom: 1.5rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 1rem;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    font-size: 1rem;
    font-family: 'Roboto', sans-serif;
    background: #ffffff;
    transition: border-color 0.3s ease;
    box-sizing: border-box;
}

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

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

.form-actions {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
}

.btn-send {
    flex: 1;
    padding: 1rem 2rem;
    background: linear-gradient(135deg, #7DF9FF 0%, #5DE5F0 100%);
    color: #1a1a1a;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: bold;
    font-family: 'Roboto', sans-serif;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-send:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(125, 249, 255, 0.3);
}

.btn-xtolia {
    flex: 1;
    padding: 1rem 2rem;
    background: linear-gradient(135deg, #AF10DA 0%, #E63AAE 100%);
    color: #ffffff;
    text-decoration: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: bold;
    font-family: 'Roboto', sans-serif;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.btn-xtolia:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(175, 16, 218, 0.3);
    color: #ffffff;
    text-decoration: none;
}

.contact-info-below {
    display: flex;
    gap: 4rem;
    padding: 3rem 0;
    justify-content: center;
}

.contact-info-below .contact-item {
    background: none;
    padding: 0;
    box-shadow: none;
    text-align: left;
}

.contact-info-below .contact-item h4 {
    font-family: 'Raleway', sans-serif;
    font-size: 1.25rem;
    font-weight: normal;
    margin-bottom: 1rem;
    color: #1e293b;
}

.contact-info-below .contact-item p {
    color: #64748b;
    margin-bottom: 0.5rem;
}

.contact-info-below .contact-item a {
    color: #6366f1;
    text-decoration: none;
    transition: color 0.3s ease;
}

.contact-info-below .contact-item a:hover {
    color: #4f46e5;
    text-decoration: underline;
}

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

.footer-content {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 2rem;
}

.footer-logo h3 {
    font-family: 'Raleway', sans-serif;
    color: #1CE2D8;
    font-size: 1.5rem;
    font-weight: normal;
    margin-bottom: 0.5rem;
}

.footer-logo p {
    color: #94a3b8;
    font-size: 0.9rem;
}

.footer-contact {
    display: flex;
    gap: 3rem;
}

.footer-contact .contact-item {
    background: none;
    padding: 0;
    box-shadow: none;
}

.footer-contact .contact-item h4 {
    font-family: 'Raleway', sans-serif;
    color: #1CE2D8;
    font-size: 1.1rem;
    font-weight: normal;
    margin-bottom: 0.75rem;
}

.footer-contact .contact-item p {
    color: #94a3b8;
    margin-bottom: 0.25rem;
    font-size: 0.9rem;
}

.footer-contact .contact-item a {
    color: #1CE2D8;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-contact .contact-item a:hover {
    color: #7DF9FF;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid #334155;
    color: #94a3b8;
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-menu {
        display: none;
    }
    
    .hero-container {
        padding: 0 20px;
    }
    
    .hero-content {
        flex-direction: column;
        gap: 3rem;
        text-align: center;
        align-items: center;
    }
    
    .hero-text {
        flex: 1;
        text-align: center;
        width: 100%;
    }
    
    .hero-visual {
        flex: 0 0 auto;
        width: 100%;
        display: flex;
        justify-content: center;
        padding: 1rem;
    }
    
    .hero-title {
        font-size: 2.8rem;
    }
    
    /* Hide network diagram on mobile */
    .network-diagram-container {
        display: none;
    }
    
    /* Show accordion on mobile */
    .mobile-accordion-container {
        display: block;
    }
    
    /* Update CTA text on mobile */
    .cta-section .cta-link {
        display: none;
    }
    
    .services-cards {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .why-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .why-cards {
        grid-template-columns: 1fr;
    }
    
    .why-card {
        flex-direction: column;
        padding: 1.5rem;
        gap: 1.5rem;
    }
    
    .card-image {
        width: 100%;
        height: auto;
        max-height: 250px;
        flex-shrink: 0;
    }
    
    .card-img {
        width: 100%;
        height: auto;
        object-fit: cover;
    }
    
    .card-content {
        width: 100%;
    }
    
    .card-content h3 {
        margin-bottom: 0.75rem;
    }
    
    .card-content p {
        margin-bottom: 0;
    }
    
    .contact-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .footer-content {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
    
    .contact-info-below {
        flex-direction: column;
        gap: 2rem;
        padding: 2rem 0;
        text-align: center;
    }
    
    .contact-title {
        font-size: 2rem;
    }
    
    .form-row {
        flex-direction: column;
        gap: 0;
    }
    
    .form-actions {
        flex-direction: column;
        gap: 1rem;
    }
    
    .footer-links {
        justify-content: center;
    }
}

/* Network Diagram Modal */
.network-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.network-modal.active {
    opacity: 1;
    visibility: visible;
}

.modal-content {
    background: white;
    border-radius: 12px;
    max-width: 600px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    transform: scale(0.8);
    transition: transform 0.3s ease;
}

.network-modal.active .modal-content {
    transform: scale(1);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 2rem;
    border-bottom: 1px solid #e2e8f0;
}

.modal-header h3 {
    font-family: 'Raleway', sans-serif;
    font-size: 1.5rem;
    font-weight: normal;
    color: #1e293b;
    margin: 0;
}

.modal-close {
    background: none;
    border: none;
    font-size: 2rem;
    color: #64748b;
    cursor: pointer;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.modal-close:hover {
    background: #f1f5f9;
    color: #1e293b;
}

.modal-body {
    padding: 2rem;
}

.modal-body p {
    font-family: 'Roboto', sans-serif;
    font-size: 1rem;
    line-height: 1.6;
    color: #64748b;
    margin: 0;
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }
    
    .hero-title {
        font-size: 2.2rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
}