/* Custom Style to Reduce Hero Top Margin */
.cs_hero.cs_style_1 {
  padding-top: 200px !important;
}
@media (max-width: 1550px) {
  .cs_hero.cs_style_1 {
    padding-top: 160px !important;
  }
}
@media (max-width: 1199px) {
  .cs_hero.cs_style_1 {
    padding-top: 100px !important;
  }
}
.cs_hero_img {
  position: relative;
}
.cs_hero_accent_shape {
  position: absolute;
  width: 200px;
  height: 200px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(59, 158, 255, 0.4) 0%, rgba(59, 158, 255, 0) 70%);
  top: 15%;
  right: 5%;
  z-index: 1;
  pointer-events: none;
  animation: pulse 3s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { 
    transform: scale(1); 
    opacity: 0.5; 
  }
  50% { 
    transform: scale(1.15); 
    opacity: 0.2; 
  }
}
@media (max-width: 1199px) {
  .cs_hero_accent_shape {
    width: 150px;
    height: 150px;
    top: 10%;
    right: 10%;
  }
}
.cs_hero_accent_shape_2 {
  position: absolute;
  width: 120px;
  height: 120px;
  border: 3px solid rgba(59, 158, 255, 0.5);
  border-radius: 50%;
  bottom: 20%;
  left: -5%;
  z-index: 1;
  pointer-events: none;
  animation: rotate 8s linear infinite;
}
.cs_hero_accent_shape_2::before {
  content: '';
  position: absolute;
  width: 80px;
  height: 80px;
  border: 2px solid rgba(59, 158, 255, 0.3);
  border-radius: 50%;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  animation: rotate 6s linear infinite reverse;
}
@keyframes rotate {
  0% { 
    transform: rotate(0deg); 
  }
  100% { 
    transform: rotate(360deg); 
  }
}
@media (max-width: 1199px) {
  .cs_hero_accent_shape_2 {
    width: 100px;
    height: 100px;
    bottom: 15%;
    left: -3%;
  }
  .cs_hero_accent_shape_2::before {
    width: 60px;
    height: 60px;
  }
}
/* Fix text color for hero title and subtitle - ensure white */
.cs_hero.cs_style_1 .cs_hero_title {
  color: #ffffff !important;
}
.cs_hero.cs_style_1 .cs_hero_subtitle {
  color: #ffffff !important;
}
.cs_hero.cs_style_1 h1.cs_hero_title {
  color: #ffffff !important;
}
.cs_hero.cs_style_1 p.cs_hero_subtitle {
  color: #ffffff !important;
}
/* Additional specificity to override any accent color rules */
.cs_hero.cs_style_1 .cs_hero_text h1.cs_hero_title {
  color: #ffffff !important;
}
.cs_hero.cs_style_1 .cs_hero_text p.cs_hero_subtitle {
  color: #ffffff !important;
}

/* Fix navigation menu links - ensure white */
.cs_site_header.cs_style_1 .cs_nav_list > li > a,
.cs_site_header.cs_style_1.cs_transparent_header .cs_nav_list > li > a,
.cs_transparent_header .cs_nav_list > li > a,
.cs_site_header .cs_nav_list a {
  color: #ffffff !important;
}

/* Fix all section titles - ensure white (section subtitles intentionally keep accent color) */
.cs_section_title,
h2.cs_section_title,
.cs_section_heading h2,
.cs_section_heading .cs_section_title {
  color: #ffffff !important;
}

/* Fix all headings (h1-h6) - ensure white, except those with accent color class */
h1:not(.cs_accent_color),
h2:not(.cs_accent_color),
h3:not(.cs_accent_color),
h4:not(.cs_accent_color),
h5:not(.cs_accent_color),
h6:not(.cs_accent_color) {
  color: #ffffff !important;
}

/* Fix specific heading classes that should be white */
.cs_fs_67:not(.cs_accent_color),
.cs_fs_37:not(.cs_accent_color),
.cs_fs_28:not(.cs_accent_color) {
  color: #ffffff !important;
}

/* Fix paragraph text to use secondary color (except hero subtitle and accent-colored ones) */
p:not(.cs_hero_subtitle):not(.cs_accent_color):not(.cs_section_subtitle),
section p:not(.cs_accent_color):not(.cs_hero_subtitle),
.cs_about_info p,
.cs_list p,
li p {
  color: #cdcbd1 !important;
}

/* Ensure body text and general paragraphs use secondary color */
body p:not(.cs_hero_subtitle):not(.cs_accent_color),
section p:not(.cs_hero_subtitle):not(.cs_section_subtitle):not(.cs_accent_color) {
  color: #cdcbd1 !important;
}

/* Fix list items (cs_list cs_style_3) - use secondary color */
.cs_list.cs_style_3 li,
.cs_list.cs_style_3 {
  color: #cdcbd1 !important;
}
.cs_list.cs_style_3 a {
  color: #cdcbd1 !important;
}

/* Fix regular buttons (Download Resume, More Projects) - Default: transparent bg, white text */
.cs_btn.cs_style_1:not(.cs_type_2) {
  color: #ffffff !important;
  background-color: transparent !important;
  border-color: #3d3d3d !important;
}
button.cs_btn.cs_style_1:not(.cs_type_2),
a.cs_btn.cs_style_1:not(.cs_type_2) {
  color: #ffffff !important;
  background-color: transparent !important;
  border-color: #3d3d3d !important;
}

/* Fix regular buttons hover - Hover: white bg, black text */
.cs_btn.cs_style_1:not(.cs_type_2):hover {
  color: #000000 !important;
  background-color: #ffffff !important;
  border-color: #ffffff !important;
}
button.cs_btn.cs_style_1:not(.cs_type_2):hover,
a.cs_btn.cs_style_1:not(.cs_type_2):hover {
  color: #000000 !important;
  background-color: #ffffff !important;
  border-color: #ffffff !important;
}

/* Fix type 2 button (Send Message) - Default state: white bg, white border, black text */
.cs_btn.cs_style_1.cs_type_2 {
  color: #000000 !important;
  background-color: #ffffff !important;
  border-color: #ffffff !important;
}
button.cs_btn.cs_style_1.cs_type_2 {
  color: #000000 !important;
  background-color: #ffffff !important;
  border-color: #ffffff !important;
}

/* Fix type 2 button hover - Hover state: black bg, white border, white text */
form button.cs_btn.cs_style_1.cs_type_2.cs_radius_15:hover,
button.cs_btn.cs_style_1.cs_type_2.cs_radius_15:hover,
.cs_btn.cs_style_1.cs_type_2.cs_radius_15:hover,
form button.cs_btn.cs_style_1.cs_type_2:hover,
button.cs_btn.cs_style_1.cs_type_2:hover,
.cs_btn.cs_style_1.cs_type_2:hover {
  color: #ffffff !important;
  background-color: #000000 !important;
  border-color: #ffffff !important;
}

/* Fix testimonial blockquotes - ensure white (they have cs_primary_color class) */
.cs_testimonial_blockquote,
blockquote.cs_testimonial_blockquote.cs_primary_color {
  color: #ffffff !important;
}

/* Fix text buttons (Read More links) - use secondary color by default */
.cs_text_btn:not(:hover) {
  color: #cdcbd1 !important;
}
a.cs_text_btn:not(:hover) {
  color: #cdcbd1 !important;
}

/* Fix form labels - use secondary color */
form label,
.cs_form_field + label,
label:not(.cs_accent_color) {
  color: #cdcbd1 !important;
}

/* Fix form inputs and textareas - ensure white text and correct borders */
input.cs_form_field,
textarea.cs_form_field,
.cs_form_field {
  color: #ffffff !important;
  border-color: #cdcbd1 !important;
  outline: none !important;
}
input[type="text"],
input[type="email"],
textarea {
  color: #ffffff !important;
  border-color: #cdcbd1 !important;
  outline: none !important;
}

/* Fix form field border colors - use secondary color when not focused */
.cs_form_field:not(:focus) {
  border-color: #cdcbd1 !important;
}

/* Allow accent color on focus for form fields */
.cs_form_field:focus {
  border-color: #3B9EFF !important;
  outline: none !important;
}

/* Fix button borders - use correct colors */
.cs_btn.cs_style_1:not(.cs_type_2) {
  border-color: #3d3d3d !important;
}
.cs_btn.cs_style_1.cs_type_2 {
  border-color: #ffffff !important;
}
button.cs_btn.cs_style_1:not(.cs_type_2) {
  border-color: #3d3d3d !important;
}
button.cs_btn.cs_style_1.cs_type_2 {
  border-color: #ffffff !important;
}

/* Fix SVG elements that use currentColor - ensure they inherit correct colors */
svg[fill="currentColor"] {
  color: inherit;
}

/* Fix logo image size in navigation bar */
.cs_site_branding {
  position: relative;
  display: inline-block;
}
.cs_site_branding img {
  max-width: 180px;
  max-height: 60px;
  width: auto;
  height: auto;
  object-fit: contain;
  position: relative;
  z-index: 2;
}
@media (max-width: 1199px) {
  .cs_site_branding img {
    max-width: 150px;
    max-height: 50px;
  }
}

/* Logo accent element behind the logo */
.cs_logo_accent_shape {
  position: absolute;
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(59, 158, 255, 0.3) 0%, rgba(59, 158, 255, 0) 70%);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 1;
  pointer-events: none;
  animation: logoPulse 3s ease-in-out infinite;
}
@keyframes logoPulse {
  0%, 100% { 
    transform: translate(-50%, -50%) scale(1); 
    opacity: 0.4; 
  }
  50% { 
    transform: translate(-50%, -50%) scale(1.1); 
    opacity: 0.2; 
  }
}
@media (max-width: 1199px) {
  .cs_logo_accent_shape {
    width: 100px;
    height: 100px;
  }
}

