/* 
 * Tecxo.io — Main Stylesheet
 * 
 * Variables & Global Settings
 */

:root {
    /* Colors */
    --primary-color: #257CFF;
    --accent-color: #F45A2A;
    --dark-bg: #111B29;
    --darker-bg: #050505;
    --light-bg: #F7F9FC;
    --white: #ffffff;
    --text-color: #333333;
    --text-light: #666666;
    --border-color: #e5e7eb;

    /* Typography */
    --font-body: 'Roboto', sans-serif;
    --font-heading: 'Inter', 'Figtree', sans-serif;
    
    /* Spacing */
    --container-width: 1200px;
    --section-padding: 100px 0;
    
    /* Transitions */
    --transition-fast: 0.3s ease;
}

/* Reset & Basics */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-body);
    font-size: 17px;
    line-height: 1.7;
    color: var(--text-color);
    background-color: var(--white);
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.15;
    margin-bottom: 1rem;
    color: var(--dark-bg);
}

h1 { font-size: 56px; letter-spacing: -0.02em; }
h2 { font-size: 40px; letter-spacing: -0.01em; }
h3 { font-size: 26px; }
h4 { font-size: 20px; }

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: var(--transition-fast);
}

a:hover {
    color: var(--accent-color);
}

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

ul {
    list-style: none;
}

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 24px;
}

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

.section-subtitle {
    color: var(--accent-color);
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: 2px;
    font-size: 13px;
    margin-bottom: 12px;
    display: block;
}

.section-padding {
    padding: var(--section-padding);
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 14px 32px;
    border-radius: 8px;
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 15px;
    text-align: center;
    cursor: pointer;
    border: none;
    transition: var(--transition-fast);
    letter-spacing: 0.01em;
}

.btn-primary {
    background: var(--primary-color);
    color: var(--white);
}

.btn-primary:hover {
    background: #1a5fd4;
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(37, 124, 255, 0.25);
}

.btn-accent {
    background-color: var(--accent-color);
    color: var(--white);
    border-radius: 30px;
}

.btn-accent:hover {
    background-color: #d14920;
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(244, 90, 42, 0.3);
}

.btn-cta {
    background-color: var(--accent-color);
    color: var(--white);
    border-radius: 30px;
}

.btn-cta:hover {
    background-color: #d14920;
    color: var(--white);
    box-shadow: 0 5px 15px rgba(244, 90, 42, 0.3);
}

.btn-white {
    background-color: var(--white);
    color: var(--dark-bg);
}

.btn-white:hover {
    background-color: var(--light-bg);
    color: var(--primary-color);
    transform: translateY(-2px);
}

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

.btn-outline:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
    transform: translateY(-2px);
}

/* Header */
.site-header {
    background-color: var(--white);
    padding: 15px 0;
    box-shadow: 0 1px 0 rgba(0, 0, 0, 0.06);
    position: sticky;
    top: 0;
    z-index: 1000;
}

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

.logo img {
    max-height: 36px;
    /* Turn white PNG into blue (#257CFF) */
    filter: brightness(0) invert(37%) sepia(90%) saturate(1478%) hue-rotate(198deg) brightness(102%) contrast(105%);
}

.main-nav .nav-list {
    display: flex;
    gap: 32px;
}

.nav-link {
    color: var(--dark-bg);
    font-weight: 500;
    font-size: 15px;
    font-family: var(--font-heading);
    padding: 8px 0;
    position: relative;
}

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

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

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

.mobile-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: var(--dark-bg);
}

/* ============================================
   Hero Section — Split Layout
   ============================================ */
.hero-section {
    background: var(--primary-color);
    color: var(--white);
    padding: 100px 0;
    position: relative;
    overflow: hidden;
}

.hero-section::after {
    content: '';
    position: absolute;
    top: -10%;
    right: -8%;
    width: 38%;
    height: 120%;
    background-color: var(--accent-color);
    transform: skewX(-8deg);
    z-index: 1;
}

.hero-split {
    display: flex;
    align-items: center;
    gap: 60px;
    position: relative;
    z-index: 2;
}

.hero-text {
    flex: 1.2;
    padding-right: 20px;
}

.hero-text h1 {
    color: var(--white);
    margin-bottom: 20px;
    font-size: 48px;
}

.hero-subtitle {
    font-size: 18px;
    margin-bottom: 36px;
    opacity: 0.9;
    line-height: 1.7;
}

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

.hero-image {
    flex: 1;
    text-align: right;
}

.hero-image img {
    border-radius: 16px;
    box-shadow: 0 24px 48px rgba(0,0,0,0.25);
    max-width: 100%;
}

/* Hero variant — centered (for services, etc.) */
.hero-section.hero-centered {
    text-align: center;
    padding: 80px 0;
}

.hero-section.hero-centered::after {
    display: none;
}

.hero-section.hero-centered h1 {
    color: var(--white);
    max-width: 800px;
    margin: 0 auto 20px;
    font-size: 48px;
}

.hero-section.hero-centered .hero-subtitle {
    max-width: 650px;
    margin: 0 auto;
}

/* Desktop-only utility */
.desktop-only {
    display: block;
}

/* ============================================
   Services Grid (Homepage)
   ============================================ */
.services-section {
    padding: var(--section-padding);
    background-color: var(--light-bg);
}

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

.service-card {
    background: var(--white);
    padding: 36px 28px;
    border-radius: 12px;
    color: var(--text-color);
    text-align: left;
    transition: var(--transition-fast);
    box-shadow: 0 2px 12px rgba(0,0,0,0.04);
    border: 1px solid rgba(0,0,0,0.04);
}

.service-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.08);
    border-color: rgba(37, 124, 255, 0.15);
}

.service-icon {
    width: 56px;
    height: 56px;
    background: rgba(37, 124, 255, 0.08);
    color: var(--primary-color);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    font-size: 24px;
}

.service-icon img {
    max-width: 36px;
}

.service-card h3 {
    color: var(--dark-bg);
    font-size: 22px;
    margin-bottom: 12px;
}

.service-card p {
    color: var(--text-light);
    font-size: 15px;
    line-height: 1.6;
}

/* ============================================
   Clients Marquee
   ============================================ */
.clients-section {
    padding: var(--section-padding);
    background-color: var(--white);
}

.clients-marquee {
    width: 100%;
    overflow: hidden;
    position: relative;
    mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
    -webkit-mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
}

.clients-track {
    display: flex;
    width: fit-content;
    animation: scroll-marquee 40s linear infinite;
    align-items: center;
}

.clients-track:hover {
    animation-play-state: paused;
}

.client-logo {
    flex-shrink: 0;
    width: 250px;
    text-align: center;
    padding: 20px;
    transition: var(--transition-fast);
    filter: grayscale(100%);
    opacity: 0.5;
}

.client-logo:hover {
    filter: grayscale(0%);
    opacity: 1;
}

.client-logo img {
    max-height: 48px;
    width: auto;
    max-width: 100%;
    object-fit: contain;
    margin: 0 auto;
}

@keyframes scroll-marquee {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

/* ============================================
   Split Section (Who we work with)
   ============================================ */
.split-section {
    padding: var(--section-padding);
    background-color: var(--dark-bg);
    color: var(--white);
}

.split-container {
    display: flex;
    align-items: center;
    gap: 60px;
}

.split-content {
    flex: 1;
}

.split-content h2 {
    color: var(--white);
}

.split-content p {
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 30px;
}

.niche-grid {
    flex: 1;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

.niche-box {
    background: rgba(255, 255, 255, 0.06);
    padding: 28px;
    border-radius: 12px;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.08);
    transition: var(--transition-fast);
}

.niche-box:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.15);
}

.niche-box img {
    width: 44px;
    margin: 0 auto 12px;
    filter: brightness(0) invert(1);
    opacity: 0.8;
}

.niche-box h4 {
    color: var(--white);
    font-size: 16px;
    font-weight: 600;
    margin: 0;
}

/* ============================================
   Engagement Models
   ============================================ */
.engagement-section {
    padding: var(--section-padding);
    background-color: var(--light-bg);
}

.engagement-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    align-items: stretch;
}

.engagement-card {
    border-radius: 16px;
    overflow: hidden;
    position: relative;
    display: flex;
    flex-direction: column;
    min-height: 440px;
}

/* Text Card (first card with wave) */
.engagement-card.text-card {
    background-color: var(--white);
    box-shadow: 0 2px 12px rgba(0,0,0,0.04);
    border: 1px solid rgba(0,0,0,0.04);
}

.engagement-card-content {
    padding: 40px 36px 0;
    flex: 1;
}

.engagement-card.text-card h2 {
    font-size: 34px;
    margin-bottom: 16px;
    line-height: 1.2;
}

.engagement-card.text-card p {
    color: var(--text-light);
    font-size: 16px;
    line-height: 1.6;
}

.engagement-wave {
    margin-top: auto;
    line-height: 0;
}

.engagement-wave svg {
    width: 100%;
    height: 160px;
    display: block;
}

/* Photo Cards (blue & dark) */
.engagement-card.blue-bg,
.engagement-card.dark-bg {
    background: none;
}

.engagement-card-image {
    width: 100%;
    height: 200px;
    overflow: hidden;
}

.engagement-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.engagement-card-body {
    flex: 1;
    padding: 28px 32px 36px;
    display: flex;
    flex-direction: column;
}

.engagement-card.blue-bg .engagement-card-body {
    background-color: var(--primary-color);
    color: var(--white);
}

.engagement-card.dark-bg .engagement-card-body {
    background-color: var(--dark-bg);
    color: var(--white);
}

.engagement-card-body h3 {
    color: var(--white);
    font-size: 24px;
    margin-bottom: 12px;
}

.engagement-card-body p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 15px;
    line-height: 1.6;
}

/* ============================================
   Testimonials
   ============================================ */
.testimonials-section {
    padding: var(--section-padding);
    background-color: var(--white);
}

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

.testimonial-card {
    background: var(--light-bg);
    padding: 36px;
    border-radius: 16px;
    position: relative;
    border: 1px solid rgba(0,0,0,0.04);
}

.testimonial-text {
    font-style: italic;
    margin-bottom: 24px;
    color: var(--text-light);
    line-height: 1.7;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 14px;
}

.testimonial-author img {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
}

.testimonial-author-info h4 {
    margin: 0;
    font-size: 16px;
}

.testimonial-author-info p {
    margin: 0;
    font-size: 13px;
    color: var(--primary-color);
}

.rating {
    color: #FFD700;
    margin-bottom: 12px;
    font-size: 14px;
}

/* ============================================
   Footer
   ============================================ */
.site-footer {
    background-color: var(--dark-bg);
    color: var(--white);
    padding: 80px 0 24px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 60px;
}

.footer-col h4 {
    color: var(--white);
    margin-bottom: 24px;
    font-size: 18px;
}

.footer-logo {
    display: inline-block;
    margin-bottom: 20px;
    filter: brightness(0) invert(1);
}

.footer-contact-info {
    margin-bottom: 20px;
}

.footer-contact-item {
    display: flex;
    align-items: center;
    gap: 12px;
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 10px;
    font-size: 15px;
}

.footer-contact-item:hover {
    color: var(--white);
}

.social-links {
    display: flex;
    gap: 12px;
}

.social-link {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.08);
    color: rgba(255, 255, 255, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-fast);
    font-size: 14px;
}

.social-link:hover {
    background: var(--primary-color);
    color: var(--white);
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.6);
    font-size: 15px;
}

.footer-links a:hover {
    color: var(--white);
    padding-left: 4px;
}

.footer-bottom {
    text-align: center;
    padding-top: 24px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    color: rgba(255, 255, 255, 0.4);
    font-size: 14px;
}

/* ============================================
   Page Headers (non-hero pages)
   ============================================ */
.page-header {
    background: var(--primary-color);
    padding: 80px 0;
    text-align: center;
    color: var(--white);
    position: relative;
    overflow: hidden;
}

.page-header h1 {
    color: var(--white);
    margin-bottom: 16px;
}

.page-header p {
    font-size: 18px;
    opacity: 0.9;
    max-width: 700px;
    margin: 0 auto;
    line-height: 1.7;
}

/* ============================================
   About Us / Split Layout
   ============================================ */
.about-split {
    display: flex;
    align-items: center;
    gap: 60px;
    margin-bottom: 80px;
}

.about-split:last-child {
    margin-bottom: 0;
}

.about-split:nth-child(even) {
    flex-direction: row-reverse;
}

.about-split-content {
    flex: 1;
}

.about-split-image {
    flex: 1;
}

.about-split-image img {
    border-radius: 16px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
}

/* ============================================
   Services Page — Service Detail Blocks
   ============================================ */
.service-detail-block {
    display: flex;
    align-items: center;
    gap: 60px;
    padding: 60px 0;
    border-bottom: 1px solid var(--border-color);
}

.service-detail-block:last-child {
    border-bottom: none;
}

.service-detail-block:nth-child(even) {
    flex-direction: row-reverse;
}

.service-detail-content {
    flex: 1.2;
}

.service-detail-content h2 {
    margin-bottom: 16px;
}

.service-detail-content p {
    color: var(--text-light);
    margin-bottom: 20px;
    line-height: 1.7;
}

.service-detail-content ul {
    list-style: none;
    padding: 0;
    margin-bottom: 28px;
}

.service-detail-content ul li {
    padding: 6px 0;
    color: var(--text-light);
    display: flex;
    align-items: center;
    gap: 10px;
}

.service-detail-content ul li::before {
    content: '→';
    color: var(--accent-color);
    font-weight: 700;
}

.service-detail-visual {
    flex: 0.8;
    display: flex;
    align-items: center;
    justify-content: center;
}

.service-icon-box {
    width: 100%;
    max-width: 240px;
    aspect-ratio: 1;
    background: linear-gradient(145deg, rgba(37,124,255,0.08) 0%, rgba(244,90,42,0.05) 100%);
    border-radius: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(37,124,255,0.08);
    position: relative;
    overflow: hidden;
}

.service-icon-box::before {
    content: '';
    position: absolute;
    top: -30%;
    right: -30%;
    width: 60%;
    height: 60%;
    background: rgba(37,124,255,0.06);
    border-radius: 50%;
}

.service-icon-box::after {
    content: '';
    position: absolute;
    bottom: -20%;
    left: -20%;
    width: 50%;
    height: 50%;
    background: rgba(244,90,42,0.04);
    border-radius: 50%;
}

.service-icon-box i {
    font-size: 64px;
    color: var(--primary-color);
    position: relative;
    z-index: 1;
}

/* ============================================
   Team Section
   ============================================ */
.team-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 28px;
    margin-top: 50px;
}

.team-member {
    text-align: center;
    background: var(--white);
    padding: 32px 24px;
    border-radius: 16px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.04);
    border: 1px solid rgba(0,0,0,0.04);
}

.team-member-img {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    margin: 0 auto 20px;
    background: var(--light-bg);
    object-fit: cover;
    border: 3px solid var(--primary-color);
}

.team-member h4 {
    margin-bottom: 4px;
    font-size: 18px;
}

.team-member .role {
    color: var(--primary-color);
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* ============================================
   Utility Classes
   ============================================ */
.text-center { text-align: center; }
.mt-40 { margin-top: 40px; }
.mb-40 { margin-bottom: 40px; }
.bg-light { background-color: var(--light-bg); }

/* ============================================
   Contact Section
   ============================================ */
.contact-section {
    padding: var(--section-padding);
    background-color: var(--light-bg);
}

.contact-form-wrapper {
    max-width: 740px;
    margin: 0 auto;
    background: var(--white);
    padding: 56px;
    border-radius: 20px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.04);
    border: 1px solid rgba(0,0,0,0.04);
}

.contact-header {
    text-align: center;
    margin-bottom: 40px;
}

.contact-form .form-row {
    display: flex;
    gap: 16px;
    margin-bottom: 16px;
}

.contact-form .form-group {
    flex: 1;
    margin-bottom: 16px;
}

.contact-form input, 
.contact-form textarea {
    width: 100%;
    padding: 14px 18px;
    border: 1px solid var(--border-color);
    border-radius: 10px;
    font-family: var(--font-body);
    font-size: 15px;
    transition: var(--transition-fast);
    background: var(--light-bg);
}

.contact-form input:focus, 
.contact-form textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(37, 124, 255, 0.1);
    background: var(--white);
}

.btn-cta-submit {
    width: 100%;
    padding: 16px;
    font-size: 16px;
}

.recaptcha-group {
    display: flex;
    justify-content: center;
    margin-bottom: 20px;
}

.form-message {
    margin-top: 20px;
    padding: 15px;
    border-radius: 8px;
    text-align: center;
    display: none;
}

.form-message.success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.form-message.error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* ============================================
   FAQ Section
   ============================================ */
.faq-section {
    background-color: var(--white);
}

.faq-list {
    max-width: 760px;
    margin: 0 auto;
}

.faq-item {
    padding: 24px 0;
    border-bottom: 1px solid var(--border-color);
}

.faq-item:last-child {
    border-bottom: none;
}

.faq-item h4 {
    margin-bottom: 8px;
    color: var(--dark-bg);
    font-size: 18px;
}

.faq-item p {
    color: var(--text-light);
    line-height: 1.7;
}

/* ============================================
   CTA Banner Section
   ============================================ */
.cta-banner {
    background: var(--dark-bg);
    color: var(--white);
    text-align: center;
    padding: 80px 0;
}

.cta-banner h2 {
    color: var(--white);
    margin-bottom: 16px;
}

.cta-banner p {
    font-size: 18px;
    color: rgba(255,255,255,0.7);
    max-width: 560px;
    margin: 0 auto 36px;
    line-height: 1.7;
}

/* ============================================
   Scroll Animations
   ============================================ */
.reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}
