/* ===== CSS VARIABLES ===== */
:root {
    /* Colors */
    --primary-blue: #2563eb;
    --primary-maroon: #9B1B30;
    --primary-west: #9B1B30; /* slightly different shade for contrast */
    --primary-decode: #3a2e30; /* dark grayish for "decode" text */
    --primary-purple: #7c3aed;
    --primary-gray: #6b7280;
    --text-dark: #1a1a1a;
    --text-light: #6b7280;
    --text-muted: #9ca3af;
    --bg-light: #f8fafc;
    --bg-white: #ffffff;
    --border-light: #e5e7eb;
    --border-muted: rgba(0, 0, 0, 0.05);
    
    /* Gradients */
    --gradient-primary: linear-gradient(135deg, var(--primary-decode), var(--primary-west));
    --gradient-text: linear-gradient(135deg, var(--text-dark), #4b5563);
    --gradient-hero: linear-gradient(135deg, #1e293b, #334155);
    
    /* Typography */
    --font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
    --font-size-xs: 0.75rem;
    --font-size-sm: 0.875rem;
    --font-size-base: 1rem;
    --font-size-lg: 1.125rem;
    --font-size-xl: 1.25rem;
    --font-size-2xl: 1.5rem;
    --font-size-3xl: 1.875rem;
    --font-size-4xl: 2.25rem;
    --font-size-5xl: 3rem;
    --font-size-6xl: 3.75rem;
    
    /* Spacing */
    --spacing-xs: 0.25rem;
    --spacing-sm: 0.5rem;
    --spacing-md: 1rem;
    --spacing-lg: 1.5rem;
    --spacing-xl: 2rem;
    --spacing-2xl: 3rem;
    --spacing-3xl: 4rem;
    --spacing-4xl: 5rem;
    
    /* Layout */
    --max-width: 1400px;
    --container-padding: 5%;
    --border-radius: 0.5rem;
    --border-radius-lg: 1rem;
    --border-radius-xl: 1.5rem;
    --border-radius-full: 50px;
    
    /* Shadows */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
    --shadow-2xl: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    
    /* Transitions */
    --transition-fast: 0.15s ease;
    --transition-base: 0.3s ease;
    --transition-slow: 0.5s ease;
    /* Layout helpers */
    --site-header-height: 80px; /* used to keep hero content below fixed header */
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-family);
    font-size: var(--font-size-base);
    line-height: 1.6;
    color: var(--text-dark);
    background: var(--bg-white);
    overflow-x: hidden;
}

/* ===== TYPOGRAPHY ===== */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: var(--spacing-md);
}

h1 { font-size: var(--font-size-5xl); }
h2 { font-size: var(--font-size-4xl); }
h3 { font-size: var(--font-size-2xl); }
h4 { font-size: var(--font-size-xl); }
h5 { font-size: var(--font-size-lg); }
h6 { font-size: var(--font-size-base); }

p {
    margin-bottom: var(--spacing-md);
    line-height: 1.7;
}

a {
    color: var(--primary-blue);
    text-decoration: none;
    transition: all var(--transition-base);
}

a:hover {
    color: var(--primary-purple);
}

ul, ol {
    margin-bottom: var(--spacing-md);
}

li {
    margin-bottom: var(--spacing-sm);
}

/* ===== LAYOUT ===== */
.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 var(--container-padding);
}

.section-header {
    text-align: center;
    margin-bottom: var(--spacing-4xl);
}

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

.section-title {
    font-size: var(--font-size-4xl);
    font-weight: 800;
    color: var(--text-dark);
    margin-bottom: var(--spacing-md);
}

.section-subtitle {
    font-size: var(--font-size-xl);
    color: var(--text-light);
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.7;
}

.section-header.left .section-subtitle {
    margin: 0;
}

.content-split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-4xl);
    align-items: center;
}

.content-left, .content-right {
    padding: var(--spacing-lg);
}

/* ===== HEADER ===== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-muted);
    transition: all var(--transition-base);
}

.header.scrolled {
    background: rgba(255, 255, 255, 0.98);
    box-shadow: var(--shadow-lg);
}

.nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--spacing-md) 0;
    max-width: var(--max-width);
    margin: 0 auto;
    padding-left: var(--container-padding);
    padding-right: var(--container-padding);
}

.logo {
    display: flex;
    align-items: flex-end; /* align brand text to bottom of logo image */
    gap: 10px;
    font-size: var(--font-size-2xl);
    font-weight: 700;
    color: var(--primary-blue);
    text-decoration: none;
}

/* Logo image + two-tone brand text (Courier-style) */
.logo-image { height: 48px; width: auto; display: block; }
.brand { display: inline-flex; align-items: flex-end; gap: 4px; font-family: 'Courier New', Courier, monospace; font-weight: 700; line-height: 1; }
.brand-decode { color: #3a2e30; font-size: 2rem; text-transform: lowercase; display: inline-block; }
.brand-west { color: #9B1B30; font-size: 2rem; text-transform: lowercase; display: inline-block; }

/* Footer: use brand-like monospace/weight but keep colors white on dark backgrounds */
.footer .copyright-brand {
    font-family: 'Courier New', Courier, monospace;
    font-weight: 700;
    line-height: 1;
    color: #797979cb; /* ensure visibility on dark footer */
    display: inline-block;
    font-size: 1rem; /* slightly smaller than main brand */
    letter-spacing: 0.2px;
}

.footer .copyright-brand small {
    font-weight: 600;
    color: rgba(255,255,255,0.85);
}

.nav-links {
    display: flex;
    gap: var(--spacing-xl);
    list-style: none;
    margin: 0;
}

.nav-link {
    color: var(--text-light);
    font-weight: 500;
    font-size: var(--font-size-base);
    transition: all var(--transition-base);
    position: relative;
    padding: var(--spacing-sm) 0;
}

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

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

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

.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    background: none;
    border: none;
    cursor: pointer;
    padding: var(--spacing-sm);
}

.mobile-menu-toggle span {
    display: block;
    width: 25px;
    height: 2px;
    background: var(--text-dark);
    margin: 3px 0;
    transition: all var(--transition-base);
}

/* ===== BUTTONS ===== */
.btn {
    display: inline-flex;
    align-items: center;
    gap: var(--spacing-sm);
    padding: var(--spacing-md) var(--spacing-xl);
    border-radius: var(--border-radius-full);
    font-weight: 600;
    font-size: var(--font-size-base);
    text-decoration: none;
    transition: all var(--transition-base);
    cursor: pointer;
    border: none;
    text-align: center;
    justify-content: center;
}

.btn-primary {
    background: var(--gradient-primary);
    color: white;
    box-shadow: 0 4px 15px rgba(37, 99, 235, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(37, 99, 235, 0.4);
    color: white;
}

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

.btn-secondary:hover {
    border-color: var(--primary-blue);
    color: var(--primary-blue);
    background: rgba(37, 99, 235, 0.05);
}

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

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

.btn-white {
    background: white;
    color: var(--primary-blue);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.btn-white:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.15);
    color: var(--primary-blue);
}

.btn-outline-white {
    background: transparent;
    color: white;
    border: 2px solid white;
}

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

.cta-button {
    background: var(--gradient-primary);
    color: white;
    padding: 0.75rem 1.5rem;
    text-decoration: none;
    border-radius: var(--border-radius-full);
    font-weight: 600;
    transition: all var(--transition-base);
    box-shadow: 0 4px 15px rgba(37, 99, 235, 0.3);
}

.cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(37, 99, 235, 0.4);
    color: white;
}

/* ===== HERO SECTION ===== */
.hero {
    margin-top: var(--site-header-height);
    padding: 90px var(--container-padding) 100px;
    max-width: var(--max-width);
    margin-left: auto;
    margin-right: auto;
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: var(--spacing-4xl);
    align-items: center;
    min-height: 80vh;
}

.hero-content h1 {
    font-size: clamp(3rem, 8vw, 4.5rem);
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: var(--spacing-lg);
    background: var(--gradient-text);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-content .highlight {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: var(--font-size-xl);
    color: var(--text-light);
    margin-bottom: 2.5rem;
    line-height: 1.7;
    max-width: 500px;
}

.hero-buttons {
    display: flex;
    gap: var(--spacing-md);
    flex-wrap: wrap;
}

.hero-visual {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.floating-cards {
    position: relative;
    width: 100%;
    height: 500px;
}

.floating-card {
    position: absolute;
    background: white;
    border-radius: 20px;
    box-shadow: var(--shadow-xl);
    padding: var(--spacing-lg);
    animation: float 6s ease-in-out infinite;
    border: 1px solid var(--border-muted);
    min-width: 160px;
}

.floating-card[data-delay="0"] {
    top: 20px;
    left: 20px;
    width: 200px;
    animation-delay: 0s;
    background: linear-gradient(135deg, #f0f9ff, #e0f2fe);
}

.floating-card[data-delay="2"] {
    top: 60px;
    right: 30px;
    width: 180px;
    animation-delay: 2s;
    background: linear-gradient(135deg, #faf5ff, #f3e8ff);
}

.floating-card[data-delay="4"] {
    bottom: 40px;
    left: 50px;
    width: 160px;
    animation-delay: 4s;
    background: linear-gradient(135deg, #f0fdf4, #dcfce7);
}

.floating-card[data-delay="6"] {
    bottom: 100px;
    left: 170px;
    width: 170px;
    animation-delay: 0s;
    background: linear-gradient(135deg, #f7c8c8, #f8dede);
}


@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-20px); }
}

.card-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    margin-bottom: var(--spacing-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: var(--font-size-xl);
    color: white;
}

.card-icon.blue { 
    background: linear-gradient(135deg, var(--primary-blue), #1d4ed8); 
}

.card-icon.purple { 
    background: linear-gradient(135deg, var(--primary-purple), #6d28d9); 
}

.card-icon.green { 
    background: linear-gradient(135deg, #059669, #047857); 
}

.card-icon.maroon { 
    background: linear-gradient(135deg, #dc2626, #b91c1c); 
}

.card-title {
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: var(--spacing-sm);
    font-size: var(--font-size-base);
}

.card-desc {
    font-size: var(--font-size-sm);
    color: var(--text-light);
}

/* ===== STATS SECTION ===== */
.stats {
    background: var(--gradient-hero);
    color: white;
    padding: 80px var(--container-padding);
    text-align: center;
}

.stats-title {
    font-size: var(--font-size-4xl);
    font-weight: 800;
    margin-bottom: var(--spacing-2xl);
    color: white;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: var(--spacing-2xl);
    margin-top: var(--spacing-2xl);
}

.stat-item {
    padding: var(--spacing-xl);
}

.stat-number {
    font-size: 3.5rem;
    font-weight: 900;
    background: linear-gradient(135deg, #60a5fa, #a78bfa);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: block;
    margin-bottom: var(--spacing-sm);
    line-height: 1;
}

.stat-label {
    font-size: var(--font-size-lg);
    color: #cbd5e1;
    font-weight: 500;
}

/* ===== SERVICES OVERVIEW ===== */
.services-overview {
    padding: 120px var(--container-padding);
    background: var(--bg-light);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--spacing-xl);
}

.service-card {
    background: white;
    border-radius: 24px;
    padding: var(--spacing-2xl);
    box-shadow: var(--shadow-lg);
    transition: all var(--transition-base);
    border: 1px solid var(--border-muted);
    text-align: left;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-2xl);
}

.service-icon {
    width: 60px;
    height: 60px;
    border-radius: 16px;
    margin-bottom: var(--spacing-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: var(--font-size-2xl);
    color: white;
}

.service-icon.cloud {
    background: linear-gradient(135deg, var(--primary-blue), #1d4ed8);
}

.service-icon.ai {
    background: linear-gradient(135deg, var(--primary-purple), #6d28d9);
}

.service-icon.mobile {
    background: linear-gradient(135deg, #059669, #047857);
}

.service-icon.enterprise {
    background: linear-gradient(135deg, #dc2626, #b91c1c);
}

.service-title {
    font-size: var(--font-size-xl);
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: var(--spacing-md);
}

.service-desc {
    color: var(--text-light);
    line-height: 1.7;
    margin-bottom: var(--spacing-lg);
}

.service-features {
    list-style: none;
    margin-bottom: var(--spacing-lg);
}

.service-features li {
    color: var(--text-dark);
    margin-bottom: var(--spacing-sm);
    position: relative;
    padding-left: var(--spacing-lg);
    font-size: var(--font-size-sm);
}

.service-features li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: #10b981;
    font-weight: bold;
}

.service-link {
    color: var(--primary-blue);
    font-weight: 600;
    font-size: var(--font-size-sm);
    text-decoration: none;
    transition: all var(--transition-base);
}

.service-link:hover {
    color: var(--primary-purple);
    transform: translateX(5px);
}

/* ===== WHY CHOOSE US ===== */
.why-choose-us {
    padding: 120px var(--container-padding);
    background: white;
}

.benefits-list {
    margin: var(--spacing-2xl) 0;
}

.benefit-item {
    display: flex;
    gap: var(--spacing-md);
    margin-bottom: var(--spacing-xl);
    align-items: flex-start;
}

.benefit-icon {
    width: 40px;
    height: 40px;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: var(--font-size-lg);
    flex-shrink: 0;
}

.benefit-content h4 {
    font-size: var(--font-size-lg);
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: var(--spacing-sm);
}

.benefit-content p {
    color: var(--text-light);
    font-size: var(--font-size-base);
    line-height: 1.6;
    margin: 0;
}

.experience-showcase {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-xl);
}

.experience-item {
    background: var(--bg-light);
    padding: var(--spacing-xl);
    border-radius: var(--border-radius-xl);
    text-align: center;
    border: 1px solid var(--border-light);
}

.exp-number {
    font-size: var(--font-size-3xl);
    font-weight: 900;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: block;
    margin-bottom: var(--spacing-sm);
}

.exp-text {
    color: var(--text-light);
    font-size: var(--font-size-base);
    font-weight: 500;
}

/* ===== PORTFOLIO TEASER ===== */
.portfolio-teaser {
    padding: 120px var(--container-padding);
    background: var(--bg-light);
}

.portfolio-preview {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: var(--spacing-xl);
    margin-bottom: var(--spacing-3xl);
}

.portfolio-item {
    background: white;
    border-radius: var(--border-radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    transition: all var(--transition-base);
}

.portfolio-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-xl);
}

.portfolio-image {
    height: 200px;
    background: var(--gradient-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 700;
    font-size: var(--font-size-lg);
}

.placeholder-image {
    padding: var(--spacing-md);
    text-align: center;
}

.portfolio-content {
    padding: var(--spacing-xl);
}

.portfolio-content h3 {
    font-size: var(--font-size-xl);
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: var(--spacing-md);
}

.portfolio-content p {
    color: var(--text-light);
    line-height: 1.6;
    margin-bottom: var(--spacing-lg);
}

.portfolio-tags {
    display: flex;
    gap: var(--spacing-sm);
    flex-wrap: wrap;
}

.tag {
    background: var(--bg-light);
    color: var(--text-dark);
    padding: var(--spacing-xs) var(--spacing-md);
    border-radius: var(--border-radius-full);
    font-size: var(--font-size-xs);
    font-weight: 500;
    border: 1px solid var(--border-light);
}

.portfolio-cta {
    text-align: center;
}

/* ===== CTA SECTION ===== */
.cta-section {
    background: var(--gradient-primary);
    color: white;
    padding: 100px var(--container-padding);
    text-align: center;
}

.cta-content h2 {
    font-size: var(--font-size-5xl);
    font-weight: 800;
    margin-bottom: var(--spacing-lg);
    color: white;
}

.cta-content p {
    font-size: var(--font-size-xl);
    margin-bottom: var(--spacing-2xl);
    opacity: 0.9;
    line-height: 1.7;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.cta-buttons {
    display: flex;
    gap: var(--spacing-md);
    justify-content: center;
    flex-wrap: wrap;
}

/* ===== FOOTER ===== */
.footer {
    background: var(--text-dark);
    color: white;
    padding: 60px var(--container-padding) 30px;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: var(--spacing-2xl);
    margin-bottom: var(--spacing-2xl);
}

.footer-section h3 {
    font-size: var(--font-size-xl);
    font-weight: 700;
    margin-bottom: var(--spacing-lg);
    color: white;
}

.footer-section p {
    color: var(--text-muted);
    line-height: 1.7;
    margin-bottom: var(--spacing-md);
    font-size: var(--font-size-base);
}

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

.footer-section ul li {
    margin-bottom: var(--spacing-md);
}

.footer-section ul li a {
    color: var(--text-muted);
    text-decoration: none;
    transition: color var(--transition-base);
    font-size: var(--font-size-base);
}

.footer-section ul li a:hover {
    color: #60a5fa;
}

.footer-bottom {
    border-top: 1px solid #374151;
    padding-top: var(--spacing-xl);
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--text-muted);
    font-size: var(--font-size-sm);
}

.footer-links {
    display: flex;
    gap: var(--spacing-xl);
}

.footer-links a {
    color: var(--text-muted);
    text-decoration: none;
    transition: color var(--transition-base);
}

.footer-links a:hover {
    color: white;
}