/* TechFlow Solutions - Main Styles */

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

:root {
    /* Color Palette */
    --tf-primary: #2563eb;
    --tf-primary-dark: #1d4ed8;
    --tf-primary-light: #3b82f6;
    --tf-secondary: #64748b;
    --tf-secondary-dark: #475569;
    --tf-secondary-light: #94a3b8;
    --tf-accent: #06b6d4;
    --tf-accent-dark: #0891b2;
    --tf-success: #10b981;
    --tf-warning: #f59e0b;
    --tf-error: #ef4444;

    /* Neutral Colors */
    --tf-white: #ffffff;
    --tf-gray-50: #f8fafc;
    --tf-gray-100: #f1f5f9;
    --tf-gray-200: #e2e8f0;
    --tf-gray-300: #cbd5e1;
    --tf-gray-400: #94a3b8;
    --tf-gray-500: #64748b;
    --tf-gray-600: #475569;
    --tf-gray-700: #334155;
    --tf-gray-800: #1e293b;
    --tf-gray-900: #0f172a;

    /* Typography */
    --tf-font-primary: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --tf-font-secondary: 'Poppins', sans-serif;

    /* Font Sizes */
    --tf-text-xs: 0.75rem;
    --tf-text-sm: 0.875rem;
    --tf-text-base: 1rem;
    --tf-text-lg: 1.125rem;
    --tf-text-xl: 1.25rem;
    --tf-text-2xl: 1.5rem;
    --tf-text-3xl: 1.875rem;
    --tf-text-4xl: 2.25rem;
    --tf-text-5xl: 3rem;
    --tf-text-6xl: 3.75rem;

    /* Spacing */
    --tf-space-1: 0.25rem;
    --tf-space-2: 0.5rem;
    --tf-space-3: 0.75rem;
    --tf-space-4: 1rem;
    --tf-space-5: 1.25rem;
    --tf-space-6: 1.5rem;
    --tf-space-8: 2rem;
    --tf-space-10: 2.5rem;
    --tf-space-12: 3rem;
    --tf-space-16: 4rem;
    --tf-space-20: 5rem;
    --tf-space-24: 6rem;

    /* Border Radius */
    --tf-radius-sm: 0.125rem;
    --tf-radius: 0.25rem;
    --tf-radius-md: 0.375rem;
    --tf-radius-lg: 0.5rem;
    --tf-radius-xl: 0.75rem;
    --tf-radius-2xl: 1rem;
    --tf-radius-full: 9999px;

    /* Shadows */
    --tf-shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --tf-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
    --tf-shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --tf-shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --tf-shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);

    /* Transitions */
    --tf-transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --tf-transition-fast: all 0.15s ease-in-out;
}

html {
    scroll-behavior: smooth;
}

body.tf-body {
    font-family: var(--tf-font-primary);
    font-size: var(--tf-text-base);
    line-height: 1.6;
    color: var(--tf-gray-800);
    background-color: var(--tf-white);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Container System */
.tf-container {
    max-width: 1200px;
    margin: 0 auto;
    padding-left: var(--tf-space-6);
    padding-right: var(--tf-space-6);
}

@media (max-width: 768px) {
    .tf-container {
        padding-left: var(--tf-space-4);
        padding-right: var(--tf-space-4);
    }
}

/* Header Styles */
.tf-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--tf-gray-200);
    transition: var(--tf-transition);
}

.tf-primary-bg {
    background: linear-gradient(135deg, var(--tf-primary) 0%, var(--tf-primary-dark) 100%);
}

.tf-header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--tf-space-4) 0;
}

.tf-brand-title {
    font-family: var(--tf-font-secondary);
    font-size: var(--tf-text-2xl);
    font-weight: 700;
    margin: 0;
}

.tf-brand-link {
    color: var(--tf-white);
    text-decoration: none;
    transition: var(--tf-transition);
}

.tf-brand-link:hover {
    color: var(--tf-accent);
}

.tf-no-decoration {
    text-decoration: none;
}

/* Navigation Styles */
.tf-navigation {
    display: flex;
    align-items: center;
}

.tf-nav-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: var(--tf-space-1);
}

.tf-hamburger {
    width: 25px;
    height: 3px;
    background: var(--tf-white);
    border-radius: var(--tf-radius-full);
    transition: var(--tf-transition);
}

.tf-nav-menu {
    display: flex;
    list-style: none;
    gap: var(--tf-space-8);
    margin: 0;
}

.tf-nav-link {
    color: var(--tf-white);
    text-decoration: none;
    font-weight: 500;
    padding: var(--tf-space-2) var(--tf-space-4);
    border-radius: var(--tf-radius-md);
    transition: var(--tf-transition);
    position: relative;
}

.tf-nav-link:hover,
.tf-nav-link.tf-active {
    color: var(--tf-accent);
    background: rgba(255, 255, 255, 0.1);
}

/* Hero Section */
.tf-hero-section {
    padding: var(--tf-space-20) 0;
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    position: relative;
    overflow: hidden;
}

.tf-hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grid" width="10" height="10" patternUnits="userSpaceOnUse"><path d="M 10 0 L 0 0 0 10" fill="none" stroke="%23e2e8f0" stroke-width="0.5"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
    opacity: 0.3;
}

.tf-hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--tf-space-16);
    align-items: center;
    position: relative;
    z-index: 1;
}

.tf-hero-content {
    max-width: 600px;
}

.tf-hero-title {
    font-family: var(--tf-font-secondary);
    font-size: var(--tf-text-5xl);
    font-weight: 700;
    line-height: 1.2;
    color: var(--tf-gray-900);
    margin-bottom: var(--tf-space-6);
}

.tf-highlight-text {
    color: var(--tf-primary);
    background: linear-gradient(135deg, var(--tf-primary) 0%, var(--tf-accent) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.tf-hero-description {
    font-size: var(--tf-text-lg);
    color: var(--tf-gray-600);
    margin-bottom: var(--tf-space-8);
    line-height: 1.7;
}

.tf-cta-buttons {
    display: flex;
    gap: var(--tf-space-4);
    flex-wrap: wrap;
}

/* Button Styles */
.tf-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: var(--tf-space-3) var(--tf-space-6);
    border-radius: var(--tf-radius-lg);
    font-weight: 500;
    font-size: var(--tf-text-base);
    text-decoration: none;
    transition: var(--tf-transition);
    cursor: pointer;
    border: 2px solid transparent;
    position: relative;
    overflow: hidden;
}

.tf-btn-primary {
    background: linear-gradient(135deg, var(--tf-primary) 0%, var(--tf-primary-dark) 100%);
    color: var(--tf-white);
    box-shadow: var(--tf-shadow-md);
}

.tf-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--tf-shadow-lg);
    background: linear-gradient(135deg, var(--tf-primary-dark) 0%, var(--tf-primary) 100%);
}

.tf-btn-outline {
    background: transparent;
    color: var(--tf-primary);
    border-color: var(--tf-primary);
}

.tf-btn-outline:hover {
    background: var(--tf-primary);
    color: var(--tf-white);
    transform: translateY(-2px);
    box-shadow: var(--tf-shadow-md);
}

/* Visual Elements */
.tf-hero-visual {
    position: relative;
    height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.tf-tech-illustration {
    position: relative;
    width: 100%;
    height: 100%;
}

.tf-floating-card {
    position: absolute;
    background: var(--tf-white);
    border-radius: var(--tf-radius-xl);
    padding: var(--tf-space-4) var(--tf-space-6);
    box-shadow: var(--tf-shadow-lg);
    display: flex;
    align-items: center;
    gap: var(--tf-space-3);
    font-weight: 600;
    color: var(--tf-gray-700);
    animation: tf-float 6s ease-in-out infinite;
}

.tf-card-1 {
    top: 20%;
    left: 10%;
    animation-delay: 0s;
}

.tf-card-2 {
    top: 50%;
    right: 15%;
    animation-delay: 2s;
}

.tf-card-3 {
    bottom: 25%;
    left: 20%;
    animation-delay: 4s;
}

.tf-card-icon {
    font-size: var(--tf-text-2xl);
}

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

/* Services Section */
.tf-services-preview {
    padding: var(--tf-space-20) 0;
    background: var(--tf-white);
}

.tf-section-header {
    text-align: center;
    margin-bottom: var(--tf-space-16);
}

.tf-section-title {
    font-family: var(--tf-font-secondary);
    font-size: var(--tf-text-4xl);
    font-weight: 700;
    color: var(--tf-gray-900);
    margin-bottom: var(--tf-space-4);
}

.tf-section-subtitle {
    font-size: var(--tf-text-lg);
    color: var(--tf-gray-600);
    max-width: 600px;
    margin: 0 auto;
}

.tf-services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: var(--tf-space-8);
}

.tf-service-card {
    background: var(--tf-white);
    border-radius: var(--tf-radius-2xl);
    padding: var(--tf-space-8);
    border: 1px solid var(--tf-gray-200);
    transition: var(--tf-transition);
    position: relative;
    overflow: hidden;
}

.tf-service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--tf-primary) 0%, var(--tf-accent) 100%);
    transform: scaleX(0);
    transition: var(--tf-transition);
}

.tf-service-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--tf-shadow-xl);
    border-color: var(--tf-primary);
}

.tf-service-card:hover::before {
    transform: scaleX(1);
}

.tf-service-icon {
    font-size: var(--tf-text-4xl);
    margin-bottom: var(--tf-space-4);
}

.tf-service-title {
    font-family: var(--tf-font-secondary);
    font-size: var(--tf-text-xl);
    font-weight: 600;
    color: var(--tf-gray-900);
    margin-bottom: var(--tf-space-3);
}

.tf-service-desc {
    color: var(--tf-gray-600);
    line-height: 1.7;
}

/* Footer Styles */
.tf-footer {
    background: var(--tf-gray-900);
    color: var(--tf-gray-300);
    padding: var(--tf-space-16) 0 var(--tf-space-8) 0;
}

.tf-secondary-bg {
    background: linear-gradient(135deg, var(--tf-gray-800) 0%, var(--tf-gray-900) 100%);
}

.tf-footer-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--tf-space-12);
    margin-bottom: var(--tf-space-12);
}

.tf-footer-brand h4 {
    font-family: var(--tf-font-secondary);
    font-size: var(--tf-text-xl);
    font-weight: 700;
    color: var(--tf-white);
    margin-bottom: var(--tf-space-2);
}

.tf-footer-links {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--tf-space-8);
}

.tf-link-column h5 {
    font-weight: 600;
    color: var(--tf-white);
    margin-bottom: var(--tf-space-4);
}

.tf-link-column ul {
    list-style: none;
}

.tf-link-column ul li {
    margin-bottom: var(--tf-space-2);
}

.tf-link-column ul li a {
    color: var(--tf-gray-400);
    text-decoration: none;
    transition: var(--tf-transition);
}

.tf-link-column ul li a:hover {
    color: var(--tf-accent);
}

.tf-footer-bottom {
    border-top: 1px solid var(--tf-gray-700);
    padding-top: var(--tf-space-6);
    text-align: center;
    color: var(--tf-gray-500);
}

/* Responsive Design */
@media (max-width: 1024px) {
    .tf-hero-grid {
        grid-template-columns: 1fr;
        gap: var(--tf-space-12);
        text-align: center;
    }

    .tf-hero-title {
        font-size: var(--tf-text-4xl);
    }
}

@media (max-width: 768px) {
    .tf-nav-toggle {
        display: flex;
    }

    .tf-nav-menu {
        display: none;
    }

    .tf-hero-section {
        padding: var(--tf-space-16) 0;
    }

    .tf-hero-title {
        font-size: var(--tf-text-3xl);
    }

    .tf-services-grid {
        grid-template-columns: 1fr;
    }

    .tf-footer-content {
        grid-template-columns: 1fr;
        gap: var(--tf-space-8);
    }

    .tf-cta-buttons {
        flex-direction: column;
        align-items: center;
    }

    .tf-btn {
        width: 100%;
        max-width: 300px;
    }
}
