<?php

  $software_it_company_color_palette_css = '';

	// Global Color

	$software_it_company_first_color = software_it_company_get_option('software_it_company_first_color');

	if($software_it_company_first_color != false){
		$software_it_company_color_palette_css .=':root {';
			$software_it_company_color_palette_css .='--primary-color: '.esc_attr($software_it_company_first_color).'!important;';
		$software_it_company_color_palette_css .='}';
	}

	// Footer Background Color
	$software_it_company_footer_background_color = software_it_company_get_option('software_it_company_footer_background_color');
	$software_it_company_color_palette_css .='#footer-widgets {';
	$software_it_company_color_palette_css .='background: '.esc_attr($software_it_company_footer_background_color);
	$software_it_company_color_palette_css .='}';

  	/*-------------- Copyright Text Align-------------------*/

	$software_it_company_copyright_text_align = software_it_company_get_option('software_it_company_copyright_text_align');
	$software_it_company_color_palette_css .='.site-footer{';
	$software_it_company_color_palette_css .='text-align: '.esc_attr($software_it_company_copyright_text_align).' !important;';
	$software_it_company_color_palette_css .='}';
	$software_it_company_color_palette_css .='
	@media screen and (max-width:575px) {
	.site-footer{';
	$software_it_company_color_palette_css .='text-align: center !important;';
	$software_it_company_color_palette_css .='} }';

  // copyright font size
	$software_it_company_copyright_text_font_size = software_it_company_get_option('software_it_company_copyright_text_font_size');
	$software_it_company_color_palette_css .='#colophon p, #colophon a , #colophon{';
	$software_it_company_color_palette_css .='font-size: '.esc_attr($software_it_company_copyright_text_font_size).'px;';
	$software_it_company_color_palette_css .='}';

	// Copyright Background Color
	$software_it_company_copyright_background_color = software_it_company_get_option('software_it_company_copyright_background_color');
	$software_it_company_color_palette_css .='#colophon {';
	$software_it_company_color_palette_css .='background: '.esc_attr($software_it_company_copyright_background_color);
	$software_it_company_color_palette_css .='}';

	// Copyright Text Color
	$software_it_company_copyright_text_color = software_it_company_get_option('software_it_company_copyright_text_color');
	$software_it_company_color_palette_css .='#colophon a , #colophon{';
	$software_it_company_color_palette_css .='color: '.esc_attr($software_it_company_copyright_text_color);
	$software_it_company_color_palette_css .='}';
	
	// Site title And tagline Option
	$software_it_company_site_title_font_size = software_it_company_get_option('software_it_company_site_title_font_size');
	$software_it_company_site_title_color = software_it_company_get_option('software_it_company_site_title_color');
	$software_it_company_color_palette_css .='.site-title>a , .site-title {';
		$software_it_company_color_palette_css .='font-size: '.esc_attr($software_it_company_site_title_font_size).'px;';
		$software_it_company_color_palette_css .='color: '.esc_attr($software_it_company_site_title_color).';';
	$software_it_company_color_palette_css .='}';
	
	$software_it_company_site_tagline_font_size = software_it_company_get_option('software_it_company_site_tagline_font_size');
	if($software_it_company_site_tagline_font_size != false){
		$software_it_company_color_palette_css .='.site-description {';
			$software_it_company_color_palette_css .='font-size: '.esc_attr($software_it_company_site_tagline_font_size).'px;';
		$software_it_company_color_palette_css .='}';
	}

	//First Cap
	$software_it_company_show_first_caps = software_it_company_get_option('software_it_company_show_first_caps', false);
	if($software_it_company_show_first_caps == 'true' ){
	$software_it_company_color_palette_css .='.blog-content .text-content p:nth-of-type(1)::first-letter{';
	$software_it_company_color_palette_css .=' font-size: 50px; font-weight: 600;';
	$software_it_company_color_palette_css .=' margin-right: 5px;';
	$software_it_company_color_palette_css .=' line-height: 1;';
	$software_it_company_color_palette_css .='}';
	}elseif($software_it_company_show_first_caps == 'false' ){
	$software_it_company_color_palette_css .='.blog-content .text-content p:nth-of-type(1)::first-letter {';
	$software_it_company_color_palette_css .='display: none;';
	$software_it_company_color_palette_css .='}';
	}

	// preloader background image
	$software_it_company_show_preloader_background_image = software_it_company_get_option('software_it_company_show_preloader_background_image');
	if($software_it_company_show_preloader_background_image != false){
		$software_it_company_color_palette_css .='#preloader {';
			$software_it_company_color_palette_css .='background: url('.esc_attr($software_it_company_show_preloader_background_image).');-webkit-background-size: cover; -moz-background-size: cover; -o-background-size: cover; background-size: cover;';
		$software_it_company_color_palette_css .='}';
	}

	// Sticky Copyright
	$software_it_company_resp_stickycopyright = software_it_company_get_option( 'software_it_company_stickycopyright_hide_show',false);
    if($software_it_company_resp_stickycopyright == true && software_it_company_get_option( 'software_it_company_copyright_sticky',false) != true){
        $software_it_company_color_palette_css  .='.copyright-sticky{';
            $software_it_company_color_palette_css  .='position:static;';
        $software_it_company_color_palette_css  .='} ';
    }

	/* Featured Image Hover Effect */
	$software_it_company_hover_effect = software_it_company_get_option( 'software_it_company_featured_image_hover', 'none' );

	if ( $software_it_company_hover_effect !== 'none' ) {

		$software_it_company_color_palette_css .= '.blog-post-img{';
		$software_it_company_color_palette_css .= 'transition: all 0.4s ease-in-out;';
		$software_it_company_color_palette_css .= '}';

		switch ( $software_it_company_hover_effect ) {

			case 'zoom-in':
				$software_it_company_color_palette_css .= '.blog-post-img:hover{transform:scale(1.2);}';
			break;

			case 'zoom-out':
				$software_it_company_color_palette_css .= '.blog-post-img{transform:scale(1.2);}';
				$software_it_company_color_palette_css .= '.blog-post-img:hover{transform:scale(1);}';
			break;

			case 'scale':
				$software_it_company_color_palette_css .= '.blog-post-img:hover{transform:scale(1.1);}';
			break;

			case 'grayscale':
				$software_it_company_color_palette_css .= '.blog-post-img{filter:grayscale(100%);}';
				$software_it_company_color_palette_css .= '.blog-post-img:hover{filter:grayscale(0);}';
			break;

			case 'sepia':
				$software_it_company_color_palette_css .= '.blog-post-img:hover{filter:sepia(100%);}';
			break;

			case 'blur':
				$software_it_company_color_palette_css .= '.blog-post-img:hover{filter:blur(3px);}';
			break;

			case 'bright':
				$software_it_company_color_palette_css .= '.blog-post-img:hover{filter:brightness(1.3);}';
			break;

			case 'translate':
				$software_it_company_color_palette_css .= '.blog-post-img:hover{transform:translateY(-10px);}';
			break;
		}
	}

	/* Product Featured Image Hover Effect */
	$software_it_company_hover_effect = software_it_company_get_option( 'software_it_company_product_featured_image_hover', 'none' );

	if ( $software_it_company_hover_effect !== 'none' ) {

		$software_it_company_color_palette_css .= '.product-img{';
		$software_it_company_color_palette_css .= 'transition: all 0.4s ease-in-out;';
		$software_it_company_color_palette_css .= '}';

		switch ( $software_it_company_hover_effect ) {

			case 'zoom-in':
				$software_it_company_color_palette_css .= '.product-img:hover{transform:scale(1.2);}';
			break;

			case 'zoom-out':
				$software_it_company_color_palette_css .= '.product-img{transform:scale(1.2);}';
				$software_it_company_color_palette_css .= '.product-img:hover{transform:scale(1);}';
			break;

			case 'scale':
				$software_it_company_color_palette_css .= '.product-img:hover{transform:scale(1.1);}';
			break;

			case 'grayscale':
				$software_it_company_color_palette_css .= '.product-img{filter:grayscale(100%);}';
				$software_it_company_color_palette_css .= '.product-img:hover{filter:grayscale(0);}';
			break;

			case 'sepia':
				$software_it_company_color_palette_css .= '.product-img:hover{filter:sepia(100%);}';
			break;

			case 'blur':
				$software_it_company_color_palette_css .= '.product-img:hover{filter:blur(3px);}';
			break;

			case 'bright':
				$software_it_company_color_palette_css .= '.product-img:hover{filter:brightness(1.3);}';
			break;

			case 'translate':
				$software_it_company_color_palette_css .= '.product-img:hover{transform:translateY(-10px);}';
			break;
		}
	}