/*
Theme Name: Complete Tech Solutions
Theme URI: https://completetechsolutions.biz
Author: Complete Tech Solutions
Description: Custom WordPress theme for Complete Tech Solutions
Version: 1.0
*/

* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: 'DM Sans', sans-serif; color: #1C2B3A; overflow-x: hidden; }
h1, h2, h3, h4, h5, h6 { font-family: 'Urbanist', sans-serif; }

/* Circuit board SVG pattern */
.circuit-pattern {
    position: absolute;
    inset: 0;
    opacity: 0.06;
    background-image: url("data:image/svg+xml,%3Csvg width='200' height='200' viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M20 20h40v0M60 20v40M60 60h40M100 60v40M100 100h-40M60 100v40M60 140h80M140 140v-40M140 100h40M180 100v-60M180 40h-40M140 40v-20' stroke='%234EB030' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3Ccircle cx='20' cy='20' r='3' fill='%234EB030'/%3E%3Ccircle cx='60' cy='20' r='2' fill='%234EB030'/%3E%3Ccircle cx='60' cy='60' r='3' fill='%234EB030'/%3E%3Ccircle cx='100' cy='60' r='2' fill='%234EB030'/%3E%3Ccircle cx='100' cy='100' r='3' fill='%234EB030'/%3E%3Ccircle cx='60' cy='100' r='2' fill='%234EB030'/%3E%3Ccircle cx='60' cy='140' r='3' fill='%234EB030'/%3E%3Ccircle cx='140' cy='140' r='2' fill='%234EB030'/%3E%3Ccircle cx='140' cy='100' r='3' fill='%234EB030'/%3E%3Ccircle cx='180' cy='100' r='2' fill='%234EB030'/%3E%3Ccircle cx='180' cy='40' r='3' fill='%234EB030'/%3E%3Ccircle cx='140' cy='40' r='2' fill='%234EB030'/%3E%3Ccircle cx='140' cy='20' r='3' fill='%234EB030'/%3E%3C/svg%3E");
    background-repeat: repeat;
    pointer-events: none;
}

.circuit-pattern-light {
    position: absolute;
    inset: 0;
    opacity: 0.03;
    background-image: url("data:image/svg+xml,%3Csvg width='200' height='200' viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M20 20h40v0M60 20v40M60 60h40M100 60v40M100 100h-40M60 100v40M60 140h80M140 140v-40M140 100h40M180 100v-60M180 40h-40M140 40v-20' stroke='%230A1F3D' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3Ccircle cx='20' cy='20' r='3' fill='%230A1F3D'/%3E%3Ccircle cx='60' cy='20' r='2' fill='%230A1F3D'/%3E%3Ccircle cx='60' cy='60' r='3' fill='%230A1F3D'/%3E%3Ccircle cx='100' cy='60' r='2' fill='%230A1F3D'/%3E%3Ccircle cx='100' cy='100' r='3' fill='%230A1F3D'/%3E%3Ccircle cx='60' cy='100' r='2' fill='%230A1F3D'/%3E%3Ccircle cx='60' cy='140' r='3' fill='%230A1F3D'/%3E%3Ccircle cx='140' cy='140' r='2' fill='%230A1F3D'/%3E%3Ccircle cx='140' cy='100' r='3' fill='%230A1F3D'/%3E%3Ccircle cx='180' cy='100' r='2' fill='%230A1F3D'/%3E%3Ccircle cx='180' cy='40' r='3' fill='%230A1F3D'/%3E%3Ccircle cx='140' cy='40' r='2' fill='%230A1F3D'/%3E%3Ccircle cx='140' cy='20' r='3' fill='%230A1F3D'/%3E%3C/svg%3E");
    background-repeat: repeat;
    pointer-events: none;
}

/* Grain texture overlay */
.grain::before {
    content: '';
    position: absolute;
    inset: 0;
    opacity: 0.4;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.04'/%3E%3C/svg%3E");
    pointer-events: none;
    z-index: 1;
}

/* Animated gradient line */
.gradient-line {
    height: 3px;
    background: linear-gradient(90deg, #4EB030, #3ABFCF, #4EB030);
    background-size: 200% 100%;
    animation: shimmer 3s ease-in-out infinite;
}

@keyframes shimmer {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

/* Fade in animations */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.animate-fade-in-up {
    animation: fadeInUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    opacity: 0;
}

.animate-fade-in {
    animation: fadeIn 0.6s ease-out forwards;
    opacity: 0;
}

.delay-100 { animation-delay: 0.1s; }
.delay-200 { animation-delay: 0.2s; }
.delay-300 { animation-delay: 0.3s; }
.delay-400 { animation-delay: 0.4s; }
.delay-500 { animation-delay: 0.5s; }
.delay-600 { animation-delay: 0.6s; }
.delay-700 { animation-delay: 0.7s; }
.delay-800 { animation-delay: 0.8s; }

/* Service card hover */
.service-card {
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s ease;
}
.service-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 40px -12px rgba(10, 31, 61, 0.15), 0 0 0 1px rgba(78, 176, 48, 0.1);
}
.service-card:hover .service-icon {
    background-color: #4EB030;
    color: white;
}
.service-card .service-icon {
    transition: background-color 0.3s ease, color 0.3s ease;
}

/* CTA button styles */
.btn-primary {
    background: linear-gradient(135deg, #4EB030 0%, #3D8C26 100%);
    color: white;
    padding: 14px 32px;
    border-radius: 8px;
    font-weight: 600;
    font-family: 'Urbanist', sans-serif;
    letter-spacing: -0.01em;
    transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    border: none;
    cursor: pointer;
    font-size: 16px;
}
.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px -4px rgba(78, 176, 48, 0.4);
}
.btn-primary:active { transform: translateY(0); }
.btn-primary:focus-visible {
    outline: 2px solid #4EB030;
    outline-offset: 3px;
}

.btn-secondary {
    background: transparent;
    color: white;
    padding: 14px 32px;
    border-radius: 8px;
    font-weight: 600;
    font-family: 'Urbanist', sans-serif;
    letter-spacing: -0.01em;
    border: 2px solid rgba(255,255,255,0.3);
    transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.2s ease, background 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    cursor: pointer;
    font-size: 16px;
}
.btn-secondary:hover {
    border-color: rgba(255,255,255,0.7);
    background: rgba(255,255,255,0.05);
    transform: translateY(-2px);
}
.btn-secondary:active { transform: translateY(0); }
.btn-secondary:focus-visible {
    outline: 2px solid white;
    outline-offset: 3px;
}

.btn-outline {
    background: transparent;
    color: #0A1F3D;
    padding: 14px 32px;
    border-radius: 8px;
    font-weight: 600;
    font-family: 'Urbanist', sans-serif;
    letter-spacing: -0.01em;
    border: 2px solid #0A1F3D;
    transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), background 0.2s ease, color 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    cursor: pointer;
    font-size: 16px;
}
.btn-outline:hover {
    background: #0A1F3D;
    color: white;
    transform: translateY(-2px);
}
.btn-outline:active { transform: translateY(0); }
.btn-outline:focus-visible {
    outline: 2px solid #4EB030;
    outline-offset: 3px;
}

/* Stat counter */
.stat-number {
    font-family: 'Urbanist', sans-serif;
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1;
}

/* Nav link hover */
.nav-link {
    position: relative;
    transition: color 0.2s ease;
}
.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: #4EB030;
    transition: width 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
.nav-link:hover::after { width: 100%; }
.nav-link:hover { color: #4EB030; }
.nav-link.active { color: #4EB030; }
.nav-link.active::after { width: 100%; }

/* Scrollbar */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: #0A1F3D; }
::-webkit-scrollbar-thumb { background: #4EB030; border-radius: 4px; }

/* Mobile menu */
.mobile-menu {
    transform: translateX(100%);
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
.mobile-menu.open { transform: translateX(0); }

/* Blog card */
.blog-card {
    background: white;
    border-radius: 16px;
    border: 1px solid #E8EDF5;
    overflow: hidden;
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s ease;
}
.blog-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px -8px rgba(10, 31, 61, 0.12);
}
.blog-card:hover img { transform: scale(1.05); }
.blog-card img { transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1); }

/* Blog card image overlay */
.blog-card-img {
    position: relative;
    overflow: hidden;
}
.blog-card-img::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(10,31,61,0.6) 0%, transparent 60%);
    mix-blend-mode: multiply;
}
.blog-card-img img {
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}
.blog-card:hover .blog-card-img img { transform: scale(1.05); }

/* AI section pulse effect */
@keyframes pulse-ring {
    0% { transform: scale(0.9); opacity: 0.6; }
    50% { transform: scale(1.1); opacity: 0; }
    100% { transform: scale(0.9); opacity: 0; }
}
.pulse-ring { animation: pulse-ring 2.5s cubic-bezier(0.16, 1, 0.3, 1) infinite; }

/* Newsletter input */
.newsletter-input:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(78, 176, 48, 0.3);
    border-color: #4EB030;
}

/* Section label */
.section-label {
    font-family: 'JetBrains Mono', monospace;
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: #4EB030;
}

/* Smooth scroll */
html { scroll-behavior: smooth; }

/* Form focus states */
input:focus, textarea:focus, select:focus {
    outline: none;
    border-color: #4EB030;
    box-shadow: 0 0 0 3px rgba(78, 176, 48, 0.15);
}

/* Marquee */
.marquee-wrapper {
    overflow: hidden;
    -webkit-mask-image: linear-gradient(to right, transparent 0%, black 8%, black 92%, transparent 100%);
    mask-image: linear-gradient(to right, transparent 0%, black 8%, black 92%, transparent 100%);
}
.marquee-track {
    display: flex;
    width: max-content;
    gap: 3rem;
    will-change: transform;
}
.marquee-item {
    font-family: 'Urbanist', sans-serif;
    font-weight: 700;
    font-size: 1.05rem;
    color: #9BAFD0;
    letter-spacing: -0.01em;
    white-space: nowrap;
    flex-shrink: 0;
    transition: color 0.2s ease;
}
.marquee-item:hover { color: #4A73AA; }
@keyframes marquee-left {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}
@keyframes marquee-right {
    0% { transform: translateX(-50%); }
    100% { transform: translateX(0); }
}
.marquee-wrapper:hover .marquee-track { animation-play-state: paused; }

/* Scroll reveal */
[data-reveal] {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1), transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}
[data-reveal].revealed {
    opacity: 1;
    transform: translateY(0);
}
[data-reveal="delay-1"] { transition-delay: 0.1s; }
[data-reveal="delay-2"] { transition-delay: 0.2s; }

/* WordPress blog post content styles */
.wp-post-content h1, .wp-post-content h2, .wp-post-content h3,
.wp-post-content h4, .wp-post-content h5, .wp-post-content h6 {
    font-family: 'Urbanist', sans-serif;
    color: #0A1F3D;
    margin-top: 1.5em;
    margin-bottom: 0.5em;
}
.wp-post-content p { margin-bottom: 1.25em; line-height: 1.75; }
.wp-post-content ul, .wp-post-content ol { margin-bottom: 1.25em; padding-left: 1.5em; }
.wp-post-content li { margin-bottom: 0.4em; }
.wp-post-content a { color: #4EB030; text-decoration: underline; }
.wp-post-content img { max-width: 100%; border-radius: 12px; margin: 1.5em 0; }
.wp-post-content blockquote {
    border-left: 3px solid #4EB030;
    padding-left: 1.25em;
    margin: 1.5em 0;
    color: #4A73AA;
    font-style: italic;
}

/* WordPress pagination */
.nav-links { display: flex; gap: 0.5rem; justify-content: center; flex-wrap: wrap; }
.nav-links a, .nav-links span {
    padding: 8px 16px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    border: 1px solid #E8EDF5;
    color: #1C2B3A;
    transition: background 0.2s ease, color 0.2s ease;
}
.nav-links a:hover { background: #4EB030; color: white; border-color: #4EB030; }
.nav-links .current { background: #4EB030; color: white; border-color: #4EB030; }
