/*
Theme Name: Thread Infotech
Theme URI: https://threadinfotech.com
Author: Thread Infotech Private Limited
Author URI: https://threadinfotech.com
Description: A premium, ultra-responsive corporate theme for Thread Infotech Private Limited.
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: thread-infotech
*/

/* --- DESIGN SYSTEM & CSS VARIABLES --- */
:root {
    --color-primary: #0a192f;       /* Deep Navy Blue */
    --color-secondary: #172a45;     /* Slate Navy */
    --color-accent: #0ea5e9;        /* Teal/Cyan Accent from Logo */
    --color-orange: #ff5e36;        /* Orange Gradient from Logo */
    --color-success: #10b981;       /* Emerald Green for CTAs */
    --color-success-hover: #059669; /* Darker Emerald for hover */
    --color-text-dark: #1e293b;     /* Slate Charcoal Text for high readability */
    --color-text-light: #f8fafc;    /* Light Text */
    --color-bg-light: #f8fafc;      /* Background Light */
    --color-bg-card: #ffffff;       /* Card White Background */
    --color-bg-dark: #0b132b;       /* Dark Section Background */
    --color-border: #e2e8f0;        /* Cool Grey Border */
    --font-primary: 'Outfit', sans-serif;
    --font-secondary: 'Inter', sans-serif;
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.1);
    --shadow-md: 0 4px 6px -1px rgba(0,0,0,0.1), 0 2px 4px -1px rgba(0,0,0,0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0,0,0,0.1), 0 4px 6px -2px rgba(0,0,0,0.05);
    --shadow-glow: 0 0 20px rgba(14, 165, 233, 0.15);
    --transition-fast: 0.2s ease;
    --transition-smooth: 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    --border-radius: 12px;
    --border-radius-sm: 6px;
    --max-width: 1280px;
}

/* --- RESET & BASE STYLES --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-secondary);
    color: var(--color-text-dark);
    background-color: var(--color-bg-light);
    line-height: 1.6;
    overflow-x: hidden;
    font-size: 1.0625rem; /* 17px Body Text */
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-primary);
    color: var(--color-primary);
    font-weight: 700;
    line-height: 1.2;
}

h1 {
    font-size: 2.75rem; /* 44px Bold Hero */
    font-weight: 800;
}

h2 {
    font-size: 1.875rem; /* 30px Bold Subheaders */
    font-weight: 700;
}

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

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

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

/* --- UTILITY CLASSES --- */
.container {
    width: 90%;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0; /* Cleared for consistent section padding */
}

section {
    padding: 6.5rem 0; /* Generous vertical white space */
}

.grid {
    display: grid;
    gap: 2rem;
}

.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

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

.section-title {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 1rem;
    position: relative;
    padding-bottom: 0.75rem;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, var(--color-accent), var(--color-orange));
    border-radius: 2px;
}

.section-subtitle {
    text-align: center;
    font-size: 1.1rem;
    color: #64748b;
    max-width: 700px;
    margin: 0 auto 3.5rem auto;
}

/* --- BUTTONS --- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.75rem;
    font-family: var(--font-primary);
    font-size: 1rem;
    font-weight: 600;
    border-radius: var(--border-radius-sm);
    border: none;
    cursor: pointer;
    transition: var(--transition-smooth);
    gap: 0.5rem;
}

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

.btn-primary:hover {
    background-color: var(--color-success-hover);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
    color: white;
}

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

.btn-secondary:hover {
    background: var(--color-accent);
    color: white;
    transform: translateY(-2px);
    box-shadow: var(--shadow-glow);
}

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

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

/* --- HEADER / NAVIGATION --- */
/* --- ANNOUNCEMENT BAR --- */
.announcement-bar {
    background-color: var(--color-primary);
    color: #f8fafc;
    padding: 8px 1.5rem;
    font-size: 0.825rem;
    font-family: var(--font-secondary);
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
    position: relative;
    z-index: 1001;
    letter-spacing: 0.02em;
}

.announcement-badge {
    background-color: var(--color-success);
    color: white;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    padding: 2px 8px;
    border-radius: 20px;
    letter-spacing: 0.05em;
}

.announcement-text {
    font-weight: 500;
}

.announcement-link {
    color: var(--color-success) !important;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    transition: var(--transition-fast);
}

.announcement-link:hover {
    color: var(--color-success-hover) !important;
    text-decoration: underline;
}

.site-header {
    background-color: rgba(250, 250, 250, 0.85);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--color-border);
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 0.5rem 0;
    transition: var(--transition-smooth);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 90%;
    max-width: var(--max-width);
    margin: 0 auto;
}

.logo-link {
    display: inline-flex;
    align-items: center;
    background-color: #ffffff;
    padding: 0.25rem 0.75rem;
    border-radius: 8px;
    box-shadow: var(--shadow-sm);
    transition: var(--transition-smooth);
}

.logo-link:hover {
    transform: translateY(-1px) scale(1.02);
    box-shadow: var(--shadow-md), var(--shadow-glow);
}

.logo-img {
    height: 42px;
    width: auto;
    object-fit: contain;
}

.main-navigation ul {
    list-style: none;
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.main-navigation a {
    color: #334155;
    font-family: var(--font-primary);
    font-size: 0.95rem;
    font-weight: 600;
    padding: 0.5rem 0;
    position: relative;
}

.main-navigation a:hover,
.main-navigation li.current-menu-item > a {
    color: var(--color-primary);
}

.main-navigation a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--color-accent);
    transition: var(--transition-fast);
}

.main-navigation a:hover::after {
    width: 100%;
}

/* Dropdown styling */
.main-navigation li {
    position: relative;
}

.main-navigation li ul {
    position: absolute;
    top: 100%;
    left: 0;
    background-color: #ffffff;
    min-width: 250px;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    padding: 0.5rem 0;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--color-border);
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: var(--transition-smooth);
}

.main-navigation li:hover > ul {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.main-navigation li ul li {
    width: 100%;
}

.main-navigation li ul a {
    display: block;
    width: 100%;
    padding: 0.75rem 1.25rem;
    font-size: 0.9rem;
    color: #475569;
    border-bottom: 1px solid var(--color-border);
}

.main-navigation li ul a:hover {
    background-color: var(--color-bg-light);
    color: var(--color-accent);
}

.main-navigation li ul a::after {
    display: none;
}

/* Mobile Nav Toggle */
.mobile-nav-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--color-primary);
    font-size: 1.5rem;
    cursor: pointer;
}

/* Button & Utility Helpers */
.btn-success {
    background-color: var(--color-success);
    color: white !important;
}

.btn-success:hover {
    background-color: var(--color-success-hover);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}

.btn-lg {
    padding: 0.875rem 2rem;
    font-size: 1.05rem;
}

/* --- HERO SECTION --- */
.hero-section {
    background-color: #fafafa;
    color: #1e293b;
    padding: 8.5rem 0 6.5rem 0;
    position: relative;
    overflow: hidden;
}

#thread-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
}

.hero-container-inner {
    position: relative;
    z-index: 1;
}

.hero-eyebrow {
    font-family: var(--font-primary);
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--color-accent);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    display: block;
    margin-bottom: 0.75rem;
}

.serif-italic {
    font-family: Georgia, serif;
    font-style: italic;
    font-weight: 500;
    color: var(--color-orange);
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    align-items: center;
    gap: 4rem;
}

.hero-title {
    font-size: clamp(2.5rem, 5.5vw, 4rem);
    line-height: 1.05;
    margin-bottom: 1.5rem;
    color: var(--color-primary);
    font-weight: 800;
}

.hero-tagline {
    font-size: 1.2rem;
    color: #475569;
    margin-bottom: 2.5rem;
    max-width: 600px;
    line-height: 1.6;
}

.hero-ctas {
    display: flex;
    gap: 1rem;
    margin-bottom: 3rem;
}

.hero-trust-strip {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    font-size: 0.85rem;
    color: #64748b;
    border-top: 1px solid var(--color-border);
    padding-top: 1.5rem;
}

.trust-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
}

.hero-visual {
    position: relative;
    display: flex;
    justify-content: center;
    z-index: 2;
}

/* --- DASHBOARD MOCKUP --- */
.dashboard-mockup {
    width: 100%;
    max-width: 480px;
    background: #0f172a;
    border-radius: var(--border-radius);
    box-shadow: 0 40px 100px rgba(15, 23, 42, 0.25), 0 0 0 1px rgba(255,255,255,0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    overflow: visible;
    position: relative;
    display: flex;
    flex-direction: column;
}

.dashboard-header {
    background: #1e293b;
    padding: 0.75rem 1rem;
    display: flex;
    align-items: center;
    border-bottom: 1px solid rgba(255,255,255,0.05);
    border-top-left-radius: var(--border-radius);
    border-top-right-radius: var(--border-radius);
}

.dots {
    display: flex;
    gap: 0.35rem;
    margin-right: 1.5rem;
}

.dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
}

.dot.red { background: #ef4444; }
.dot.yellow { background: #eab308; }
.dot.green { background: #22c55e; }

.tab {
    font-family: var(--font-primary);
    font-size: 0.75rem;
    color: #94a3b8;
    font-weight: 600;
}

.dashboard-body {
    display: grid;
    grid-template-columns: 0.35fr 0.65fr;
    min-height: 200px;
}

.dashboard-sidebar {
    background: #0b0f19;
    border-right: 1px solid rgba(255,255,255,0.05);
    padding: 1rem 0.75rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.sidebar-item {
    font-size: 0.75rem;
    color: #64748b;
    padding: 0.5rem;
    border-radius: var(--border-radius-sm);
    cursor: pointer;
    transition: var(--transition-fast);
}

.sidebar-item.active, .sidebar-item:hover {
    color: white;
    background: rgba(255,255,255,0.03);
}

.dashboard-content {
    padding: 1.25rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.mockup-chart-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-family: var(--font-primary);
    font-size: 0.8rem;
    color: #cbd5e1;
    font-weight: 600;
}

.pulse-dot-container {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    font-size: 0.7rem;
    color: #22c55e;
}

.pulse-dot {
    width: 6px;
    height: 6px;
    background: #22c55e;
    border-radius: 50%;
    animation: pulse-green-glow 2s infinite;
}

.mockup-bars {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.mockup-bar {
    height: 8px;
    background: linear-gradient(90deg, var(--color-accent), var(--color-orange));
    border-radius: 4px;
}

.mockup-code {
    font-family: monospace;
    font-size: 0.7rem;
    color: #10b981;
    margin-top: auto;
}

/* Floating Badges */
.dashboard-badge {
    position: absolute;
    background: #ffffff;
    border: 1px solid var(--color-border);
    box-shadow: 0 15px 35px rgba(0,0,0,0.1), 0 0 0 1px var(--color-border);
    padding: 0.75rem 1rem;
    border-radius: var(--border-radius);
    z-index: 10;
    font-family: var(--font-secondary);
}

.badge-top-left {
    top: 15px;
    left: -35px;
    background: #0b0f19;
    color: #ffffff;
    border: 1px solid rgba(255,255,255,0.08);
    box-shadow: 0 15px 35px rgba(0,0,0,0.3);
    font-family: monospace;
    font-size: 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.pulse-green {
    width: 7px;
    height: 7px;
    background: #22c55e;
    border-radius: 50%;
    box-shadow: 0 0 8px #22c55e;
    display: inline-block;
}

.badge-top-right {
    top: -20px;
    right: -15px;
    background: #0a192f;
    color: white;
    border-color: rgba(255,255,255,0.05);
}

.badge-bottom-left {
    bottom: -25px;
    left: -25px;
    min-width: 180px;
    background: #ffffff;
    color: var(--color-primary);
}

.badge-title {
    font-family: var(--font-primary);
    font-size: 0.6rem;
    font-weight: 700;
    color: #64748b;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.badge-val {
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--color-accent);
}

.badge-bottom-left .badge-val {
    color: var(--color-success);
}

.badge-desc {
    font-size: 0.65rem;
    color: #64748b;
}

@keyframes pulse-green-glow {
    0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.7); }
    70% { transform: scale(1); box-shadow: 0 0 0 6px rgba(34, 197, 94, 0); }
    100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(34, 197, 94, 0); }
}

/* --- THREE-HUB TRUST BAR --- */
.trust-bar {
    background-color: var(--color-secondary);
    padding: 1.5rem 0;
    border-top: 1px solid rgba(255,255,255,0.05);
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

.trust-container {
    display: flex;
    justify-content: space-around;
    align-items: center;
    flex-wrap: wrap;
    gap: 1.5rem;
    width: 90%;
    max-width: var(--max-width);
    margin: 0 auto;
}

.trust-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: white;
}

.trust-icon {
    font-size: 1.5rem;
    color: var(--color-accent);
    background: rgba(14, 165, 233, 0.1);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.trust-text h4 {
    color: white;
    font-size: 1rem;
    font-weight: 600;
}

.trust-text p {
    color: #94a3b8;
    font-size: 0.8rem;
}

/* --- SERVICES CARD GRID --- */
.services-section {
    background-color: #f1f5f9;
}

.services-grid {
    grid-template-columns: repeat(4, 1fr);
}

.service-card {
    background-color: var(--color-bg-card);
    border-radius: var(--border-radius);
    padding: 2.25rem;
    border: 1px solid var(--color-border);
    transition: var(--transition-smooth);
    display: flex;
    flex-direction: column;
    height: 100%;
    box-shadow: var(--shadow-sm);
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg), var(--shadow-glow);
    border-color: var(--color-accent);
}

.service-card-icon {
    font-size: 2rem;
    margin-bottom: 1.5rem;
    color: var(--color-accent);
    background: rgba(14, 165, 233, 0.06);
    width: 60px;
    height: 60px;
    border-radius: var(--border-radius-sm);
    display: flex;
    justify-content: center;
    align-items: center;
    transition: var(--transition-fast);
}

.service-card:hover .service-card-icon {
    background: var(--color-accent);
    color: white;
}

.service-card-title {
    font-size: 1.3rem;
    margin-bottom: 1rem;
}

.service-card-text {
    font-size: 0.95rem;
    color: #475569;
    margin-bottom: 1.5rem;
    flex-grow: 1;
}

.service-card-link {
    font-family: var(--font-primary);
    font-weight: 600;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 0.25rem;
    color: var(--color-primary);
}

.service-card:hover .service-card-link {
    color: var(--color-accent);
}

/* --- SAP ENTERPRISE MATRIX --- */
.sap-matrix-container {
    background: var(--color-primary);
    color: white;
    border-radius: var(--border-radius);
    padding: 3rem;
    box-shadow: var(--shadow-lg);
    border: 1px solid rgba(255,255,255,0.05);
}

.sap-matrix-header {
    margin-bottom: 2.5rem;
    text-align: center;
}

.sap-matrix-header h3 {
    color: white;
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
}

.sap-matrix-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.sap-matrix-cell {
    background: var(--color-secondary);
    border: 1px solid rgba(255,255,255,0.05);
    border-radius: var(--border-radius-sm);
    padding: 1.75rem;
    transition: var(--transition-fast);
}

.sap-matrix-cell:hover {
    border-color: var(--color-accent);
    background: rgba(23, 42, 69, 0.8);
    transform: scale(1.02);
}

.sap-module-badge {
    background: var(--color-accent);
    color: white;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    display: inline-block;
    margin-bottom: 1rem;
}

.sap-matrix-cell h4 {
    color: white;
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
}

.sap-matrix-cell p {
    color: #94a3b8;
    font-size: 0.85rem;
}

/* --- CORE EXPERTISE / STATS --- */
.stats-section {
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-secondary) 100%);
    color: white;
    text-align: center;
}

.stats-grid {
    grid-template-columns: repeat(4, 1fr);
}

.stat-item h3 {
    font-size: 3.5rem;
    background: linear-gradient(90deg, var(--color-accent), var(--color-orange));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 0.5rem;
}

.stat-item p {
    color: #cbd5e1;
    font-weight: 500;
}

/* --- INDUSTRIES WE SERVE --- */
.industry-card {
    background: white;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--color-border);
    transition: var(--transition-smooth);
    position: relative;
}

.industry-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
    border-color: var(--color-accent);
}

.industry-card-img {
    height: 180px;
    background-color: var(--color-secondary);
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 3rem;
}

.industry-card-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, rgba(10,25,47,0.1), rgba(10,25,47,0.8));
    z-index: 1;
}

.industry-card-img span {
    position: relative;
    z-index: 2;
}

.industry-card-content {
    padding: 1.5rem;
}

.industry-card-title {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
}

.industry-card-text {
    font-size: 0.9rem;
    color: #64748b;
}

/* --- CASE STUDIES / PORTFOLIO --- */
.portfolio-card {
    background: white;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--color-border);
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    transition: var(--transition-smooth);
}

.portfolio-card:hover {
    box-shadow: var(--shadow-lg);
    border-color: var(--color-accent);
}

.portfolio-img-container {
    background: var(--color-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 4rem;
    min-height: 300px;
}

.portfolio-content {
    padding: 2.5rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.portfolio-category {
    font-family: var(--font-primary);
    font-weight: 700;
    color: var(--color-accent);
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 0.5rem;
}

.portfolio-title {
    font-size: 1.75rem;
    margin-bottom: 1.5rem;
}

.psr-block {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

.psr-item strong {
    color: var(--color-primary);
    font-size: 0.9rem;
    text-transform: uppercase;
}

.psr-item p {
    font-size: 0.95rem;
    color: #475569;
}

/* --- TECHNOLOGIES GRID --- */
.tech-tabs {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.75rem;
    margin-bottom: 3rem;
}

.tech-tab-btn {
    background: white;
    border: 1px solid var(--color-border);
    padding: 0.5rem 1.25rem;
    border-radius: 20px;
    cursor: pointer;
    font-family: var(--font-primary);
    font-weight: 600;
    transition: var(--transition-fast);
}

.tech-tab-btn:hover,
.tech-tab-btn.active {
    background: var(--color-accent);
    color: white;
    border-color: var(--color-accent);
}

.tech-grid {
    grid-template-columns: repeat(6, 1fr);
    text-align: center;
    gap: 1.5rem;
}

.tech-item {
    background: white;
    border-radius: var(--border-radius-sm);
    padding: 1.5rem 1rem;
    border: 1px solid var(--color-border);
    transition: var(--transition-fast);
    box-shadow: var(--shadow-sm);
}

.tech-item:hover {
    transform: translateY(-5px);
    border-color: var(--color-accent);
    box-shadow: var(--shadow-md), var(--shadow-glow);
}

.tech-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, var(--color-accent), var(--color-orange));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.tech-name {
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--color-primary);
}

/* --- CAREERS --- */
.careers-info {
    text-align: center;
    margin-bottom: 4rem;
}

.job-card {
    background: white;
    border-radius: var(--border-radius);
    padding: 2rem;
    border: 1px solid var(--color-border);
    transition: var(--transition-smooth);
    box-shadow: var(--shadow-sm);
}

.job-card:hover {
    border-color: var(--color-accent);
    box-shadow: var(--shadow-lg);
}

.job-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1rem;
}

.job-title {
    font-size: 1.3rem;
}

.job-location {
    font-family: var(--font-primary);
    font-weight: 600;
    font-size: 0.8rem;
    background: rgba(14, 165, 233, 0.1);
    color: var(--color-accent);
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
}

.job-details {
    display: flex;
    gap: 1.5rem;
    font-size: 0.85rem;
    color: #64748b;
    margin-bottom: 1.5rem;
}

.job-desc {
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
}

/* --- CONTACT FORM & DETAILS --- */
.contact-grid {
    grid-template-columns: 0.8fr 1.2fr;
    gap: 3.5rem;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.contact-info-item {
    display: flex;
    gap: 1rem;
}

.contact-info-icon {
    font-size: 1.5rem;
    color: var(--color-accent);
    background: rgba(14, 165, 233, 0.06);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-shrink: 0;
}

.contact-info-text h4 {
    font-size: 1.1rem;
    margin-bottom: 0.25rem;
}

.contact-info-text p,
.contact-info-text a {
    color: #475569;
    font-size: 0.95rem;
}

.contact-form-container {
    background: white;
    border-radius: var(--border-radius);
    padding: 3rem;
    border: 1px solid var(--color-border);
    box-shadow: var(--shadow-md);
}

.form-title {
    font-size: 1.75rem;
    margin-bottom: 0.5rem;
}

.form-subtitle {
    font-size: 0.95rem;
    color: #64748b;
    margin-bottom: 2rem;
}

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

.form-group label {
    display: block;
    font-family: var(--font-primary);
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
    color: var(--color-primary);
}

.form-control {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid var(--color-border);
    border-radius: var(--border-radius-sm);
    font-family: var(--font-secondary);
    font-size: 0.95rem;
    color: var(--color-text-dark);
    transition: var(--transition-fast);
}

.form-control:focus {
    outline: none;
    border-color: var(--color-accent);
    box-shadow: 0 0 0 3px rgba(14, 165, 233, 0.15);
}

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

.form-status {
    padding: 1rem;
    border-radius: var(--border-radius-sm);
    margin-bottom: 1.25rem;
    font-size: 0.95rem;
    font-weight: 500;
    display: none;
}

.form-status.success {
    background-color: #d1fae5;
    color: #065f46;
    border: 1px solid #10b981;
    display: block;
}

.form-status.error {
    background-color: #fee2e2;
    color: #991b1b;
    border: 1px solid #ef4444;
    display: block;
}

/* Google Map styling */
.contact-maps-section {
    padding-top: 0;
}

.maps-tabs {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 2rem;
}

.map-wrapper {
    border-radius: var(--border-radius);
    overflow: hidden;
    border: 1px solid var(--color-border);
    height: 400px;
}

.map-iframe {
    width: 100%;
    height: 100%;
    border: none;
    display: none;
}

.map-iframe.active {
    display: block;
}

/* --- FOOTER & TRUST FACTORS --- */
.site-footer {
    background-color: var(--color-primary);
    color: #94a3b8;
    padding: 4rem 0 2rem 0;
    border-top: 1px solid rgba(255,255,255,0.05);
}

.footer-grid {
    grid-template-columns: 1.2fr 0.8fr 1fr 1fr;
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-col h4 {
    color: white;
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    position: relative;
    padding-bottom: 0.5rem;
}

.footer-col h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 30px;
    height: 2px;
    background-color: var(--color-accent);
}

.footer-about p {
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
}

.footer-col ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.footer-col a {
    color: #94a3b8;
    font-size: 0.9rem;
}

.footer-col a:hover {
    color: white;
    padding-left: 5px;
}

.footer-addresses {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.footer-address-item h5 {
    color: white;
    font-size: 0.9rem;
    margin-bottom: 0.25rem;
}

.footer-address-item p {
    font-size: 0.8rem;
    line-height: 1.4;
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.05);
    padding-top: 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1.5rem;
}

.footer-trust-factors {
    display: flex;
    gap: 1.5rem;
    font-size: 0.8rem;
    font-family: var(--font-primary);
}

.trust-factor-item {
    background-color: var(--color-secondary);
    border: 1px solid rgba(255,255,255,0.05);
    padding: 0.35rem 0.75rem;
    border-radius: 4px;
    color: #cbd5e1;
}

.trust-factor-item strong {
    color: var(--color-accent);
}

.footer-copy {
    font-size: 0.85rem;
}

/* --- WHATSAPP FLOATING WIDGET --- */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background-color: #25d366;
    color: white;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
    z-index: 1000;
    transition: var(--transition-smooth);
}

.whatsapp-float:hover {
    transform: scale(1.1) rotate(5deg);
    background-color: #128c7e;
    color: white;
}

.whatsapp-icon {
    font-size: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* --- MEDIA QUERIES --- */
@media (max-width: 1024px) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .sap-matrix-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .tech-grid {
        grid-template-columns: repeat(4, 1fr);
    }
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .grid-4 {
        grid-template-columns: repeat(2, 1fr) !important;
    }
}

.mobile-cta-item {
    display: none !important;
}

@media (max-width: 768px) {
    .container {
        padding: 0 1.5rem !important;
        width: 100% !important;
        max-width: 100% !important;
    }
    .grid-2, .grid-3, .grid-4 {
        grid-template-columns: 1fr !important;
    }
    .hero-grid {
        grid-template-columns: 1fr !important;
        text-align: center;
        gap: 3rem;
    }
    .hero-title {
        font-size: 2.5rem !important;
    }
    .hero-ctas {
        justify-content: center;
        flex-direction: column;
        width: 100%;
        max-width: 320px;
        margin: 0 auto 2rem auto;
    }
    .hero-ctas .btn {
        width: 100%;
    }
    .hero-trust-strip {
        justify-content: center;
        gap: 1rem;
    }
    .hero-visual {
        margin-top: 1rem;
    }
    .mobile-nav-toggle {
        display: flex !important;
        background: rgba(0,0,0,0.03);
        border: 1px solid rgba(0,0,0,0.08);
        color: var(--color-primary);
        font-size: 1.25rem;
        cursor: pointer;
        width: 44px;
        height: 44px;
        border-radius: 6px;
        justify-content: center;
        align-items: center;
        transition: var(--transition-fast);
    }
    .mobile-nav-toggle:hover {
        background: var(--color-accent);
        border-color: var(--color-accent);
        color: white;
    }
    .mobile-cta-item {
        display: block !important;
        width: 100%;
    }
    .stats-grid {
        grid-template-columns: repeat(2, 1fr) !important;
    }
    .sap-matrix-grid {
        grid-template-columns: 1fr !important;
    }
    .main-navigation {
        display: none;
        width: 100%;
        position: absolute;
        top: 100%;
        left: 0;
        background-color: #ffffff;
        padding: 1.5rem 5%;
        border-bottom: 1px solid var(--color-border);
        box-shadow: var(--shadow-lg);
    }
    .main-navigation.active {
        display: block;
    }
    .main-navigation ul {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
    .main-navigation li {
        width: 100%;
    }
    .main-navigation li a {
        color: #1e293b;
        display: block;
        padding: 0.5rem 0;
    }
    .main-navigation li ul {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        background-color: var(--color-bg-light);
        padding-left: 1rem;
        margin-top: 0.5rem;
        border: none;
    }
    .main-navigation li ul a {
        color: #475569;
        border-bottom: none;
    }
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }
    .portfolio-card {
        grid-template-columns: 1fr !important;
    }
    .portfolio-img-container {
        min-height: 200px;
    }
    .tech-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .tech-grid {
        grid-template-columns: repeat(2, 1fr) !important;
    }
    .hero-title {
        font-size: 2rem !important;
    }
    .hero-ctas {
        flex-direction: column !important;
    }
    .trust-container {
        justify-content: flex-start;
    }
    .whatsapp-float {
        bottom: 20px;
        right: 20px;
        width: 50px;
        height: 50px;
    }
    .stats-grid {
        grid-template-columns: 1fr !important;
    }
    .badge-top-left {
        left: 10px !important;
        top: -15px !important;
    }
    .badge-bottom-left {
        left: 10px !important;
        bottom: -20px !important;
        min-width: calc(100% - 20px) !important;
        box-sizing: border-box !important;
    }
    .badge-top-right {
        right: 10px !important;
        top: -30px !important;
    }
    .dashboard-mockup {
        margin: 40px auto 20px auto !important;
    }
}

/* --- FLOATING VISUAL ANCHORS --- */
.floating-graphic {
    animation: float-slow 6s ease-in-out infinite;
}

@keyframes float-slow {
    0%, 100% {
        transform: translateY(0px) rotate(0deg);
    }
    50% {
        transform: translateY(-15px) rotate(3deg);
    }
}

/* --- TECH PILLS SECTION --- */
.tech-rows-container {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.tech-row-item {
    background: #ffffff;
    border: 1px solid var(--color-border);
    border-radius: var(--border-radius);
    padding: 2rem;
    box-shadow: var(--shadow-sm);
    transition: var(--transition-smooth);
}

.tech-row-item:hover {
    box-shadow: var(--shadow-md);
    border-color: var(--color-accent);
}

.tech-row-label {
    font-family: var(--font-primary);
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--color-primary);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.tech-row-label i {
    color: var(--color-accent);
}

.tech-pills-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.tech-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background-color: var(--color-bg-light);
    border: 1px solid var(--color-border);
    padding: 0.5rem 1.25rem;
    border-radius: 30px;
    font-family: var(--font-primary);
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--color-primary);
    transition: var(--transition-fast);
}

.tech-pill:hover {
    transform: translateY(-3px);
    border-color: var(--color-accent);
    box-shadow: var(--shadow-md), var(--shadow-glow);
    color: var(--color-accent);
    background-color: #ffffff;
}

/* --- TEAM GRID SECTION --- */
.team-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2.5rem;
}

.team-card {
    background: var(--color-bg-card);
    border-radius: var(--border-radius);
    border: 1px solid var(--color-border);
    padding: 2.5rem 2rem;
    text-align: center;
    box-shadow: var(--shadow-sm);
    transition: var(--transition-smooth);
}

.team-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    border-color: var(--color-accent);
}

.team-avatar-container {
    display: flex;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.team-avatar {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--color-secondary) 0%, var(--color-primary) 100%);
    color: white;
    font-family: var(--font-primary);
    font-size: 1.75rem;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-md);
    border: 3px solid #ffffff;
    outline: 2px solid var(--color-border);
    transition: var(--transition-smooth);
}

.team-card:hover .team-avatar {
    transform: scale(1.05) rotate(5deg);
    outline-color: var(--color-accent);
}

.team-name {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--color-primary);
    margin-bottom: 0.25rem;
}

.team-title {
    font-family: var(--font-primary);
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--color-accent);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 1rem;
}

.team-bio {
    font-size: 0.9rem;
    color: #64748b;
    line-height: 1.5;
}

/* --- PROJECT CARDS SECTION --- */
.project-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2.5rem;
}

.project-card {
    background: var(--color-bg-card);
    border-radius: var(--border-radius);
    border: 1px solid var(--color-border);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition-smooth);
    display: flex;
    flex-direction: column;
    height: 100%;
}

.project-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg), var(--shadow-glow);
    border-color: var(--color-accent);
}

.project-thumbnail {
    height: 180px;
    background-color: var(--color-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 3.5rem;
    position: relative;
    overflow: hidden;
}

.project-thumbnail-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, rgba(10,25,47,0.1), rgba(10,25,47,0.8));
    z-index: 1;
}

.project-thumbnail i {
    position: relative;
    z-index: 2;
    transition: var(--transition-smooth);
}

.project-card:hover .project-thumbnail i {
    transform: scale(1.1);
}

.project-body {
    padding: 2rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.project-card-title {
    font-size: 1.35rem;
    margin-bottom: 0.75rem;
    color: var(--color-primary);
}

.project-result {
    font-size: 0.95rem;
    color: #1e293b;
    margin-top: auto;
    font-weight: 500;
}

.project-result strong {
    color: var(--color-success);
}

/* Responsiveness for new grids */
@media (max-width: 1024px) {
    .team-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .project-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .team-grid {
        grid-template-columns: 1fr;
    }
    .project-grid {
        grid-template-columns: 1fr;
    }
}

