/*------------------------------------------------------------------
Project:	Serano - Creative Portfolio Template
Version:	1.1 (Refactored)
Primary use:	Showcase Portfolio 
-------------------------------------------------------------------*/

@import url("css/content.css");
@import url("css/showcase.css");
@import url("css/shortcodes.css");
@import url("css/assets.css");

/*------------------------------------------------------------------
01. General Styles
02. Magic Cursor
03. Page Preloader
04. Header Elements
05. Main Content 
06. Footer Elements
07. Responsive Media Queries
-------------------------------------------------------------------*/

/*--------------------------------------------------
01. General Settings
---------------------------------------------------*/
:root {
  /* Colors */
  --primary-dark: #0A0F0D;
  --primary-light: #F8F8F2;
  --secondary: #125D98;
  --accent-gold: #F4A300;
  --accent-clay: #DB3A34;
  --accent-teal: #2AA876;
  --highlight-yellow: #FFDD57;
  --alt-background: #181B1F;
  
  /* Typography - Fixed: removed property names */
  --title-font: 'Unbounded', sans-serif;
  --body-font: 'Manrope', sans-serif;
  --primary-font: 'Poppins', sans-serif;
  
  /* Spacing */
  --header-height: 120px;
  --footer-height: 120px;
  
  /* Transitions */
  --transition-fast: 0.2s ease-in-out;
  --transition-medium: 0.3s ease-in-out;
  --transition-slow: 0.5s ease-in-out;
}

@font-face {
  font-family: 'Unbounded';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src:
    url(https://blackberry-py.nyc3.cdn.digitaloceanspaces.com/Unbounded-Bold.woff2) format('woff2'),
    url(https://blackberry-py.nyc3.cdn.digitaloceanspaces.com/Unbounded-Bold.woff) format('woff');
}

html,
body {
  font-family: var(--primary-font);
  font-weight: 400;
  font-size: 16px;
  height: 100%;
  width: 100%;
  color: #444;
  background-color: #fff;
  user-select: none;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
}

html {
  box-sizing: border-box;
  margin-right: 0;
  overflow: visible;
}

*,
*::before,
*::after {
  box-sizing: inherit;
}

body {
  overflow: hidden;
  overflow-y: scroll;
  transition: opacity var(--transition-fast) 0.2s;
}

body.smooth-scroll,
body.has-slider {
  overflow: hidden;
}

body.hidden {
  opacity: 0;
}

/* Fixed: was main111 */
main {
  transition: background var(--transition-slow);
}

/* CTA Button using CSS variables */
.cta-button {
  font-family: var(--title-font);
  background-color: var(--accent-gold);
  color: var(--primary-dark);
  padding: 0.75rem 1.5rem;
  border-radius: 6px;
  text-transform: uppercase;
  font-weight: 600;
  transition: background-color var(--transition-medium);
}

.cta-button:hover {
  background-color: var(--accent-clay);
}

/* Reset styles consolidated */
html, body, div, span, applet, object, iframe, 
h1, h2, h3, h4, h5, h6, p, blockquote, pre, 
a, abbr, acronym, address, big, cite, code, 
del, dfn, em, font, ins, kbd, q, s, samp, 
small, strike, strong, sub, sup, tt, var, 
dl, dt, dd, ol, ul, li, fieldset, form, label, 
legend, table, caption, tbody, tfoot, thead, tr, th, td {
  border: 0;
  margin: 0;
  outline: 0;
  padding: 0;
  vertical-align: baseline;
}

/* Semantic HTML5 elements */
article, aside, details, figcaption, footer, 
header, hgroup, nav, section {
  display: block;
}

/* Selection colors */
::selection {
  background: #000;
  color: #fff;
  text-shadow: none;
}

::-moz-selection {
  background: #000;
  color: #fff;
  text-shadow: none;
}

/* Typography improvements */
h1, h2, h3, h4, h5, h6 {
  font-family: inherit;
  font-weight: 500;
  color: #000;
  margin-bottom: 20px;
}

h1 { font-size: clamp(2rem, 1rem + 4.15vw, 6rem); }
h2 { font-size: clamp(1.75rem, 1rem + 3vw, 5rem); }
h3 { font-size: clamp(1.5rem, 1rem + 2vw, 4rem); }
h4 { font-size: clamp(1.25rem, 1rem + 1vw, 3rem); }
h5 { font-size: clamp(1.125rem, 1rem + 0.6vw, 2rem); }
h6 { font-size: 18px; line-height: 36px; }

/* Light content overrides */
.light-content h1,
.light-content h2,
.light-content h3,
.light-content h4,
.light-content h5,
.light-content h6,
.dark-section h1,
.dark-section h2,
.dark-section h3,
.dark-section h4,
.dark-section h5,
.dark-section h6 {
  color: #fff;
}

/*--------------------------------------------------
02. Magic Cursor - Refactored
---------------------------------------------------*/
#magic-cursor {
  position: absolute;
  left: 0;
  top: 0;
  width: 30px;
  height: 30px;
  pointer-events: none;
  z-index: 10000;
  transition: opacity var(--transition-fast) 0.5s;
}

.hidden-ball #magic-cursor {
  opacity: 0;
  visibility: hidden;
}

#ball {
  position: fixed;
  width: 80px;
  height: 80px;
  border: 2px solid #999999;
  border-radius: 50%;
  pointer-events: none;
  opacity: 1;
  box-sizing: border-box;
  transform: scale(0.5);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

#ball.with-blur {
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
  transform: translate3d(0, 0, 0);
}

#ball-loader {
  width: 100px;
  height: 100px;
  position: absolute;
  background-color: transparent;
  border-right: 4px solid transparent;
  border-bottom: 4px solid #999999;
  border-left: 4px solid transparent;
  border-top: 4px solid transparent;
  border-radius: 100px;
  box-sizing: border-box;
  opacity: 0;
  transform: translate(-14px, -14px) rotate(0deg);
  animation: rotating 0.8s ease-in-out infinite;
  transition: opacity 0s ease-in-out;
}

.show-loader #ball-loader {
  opacity: 1;
  transition: opacity var(--transition-fast);
}

/* Fixed: removed extra parenthesis */
@keyframes rotating {
  0% {
    transform: translate(-14px, -14px) rotate(0deg);
  }
  95% {
    transform: translate(-14px, -14px) rotate(350deg);
  }
  100% {
    transform: translate(-14px, -14px) rotate(360deg);
  }
}

/*--------------------------------------------------
03. Page Preloader - Simplified
---------------------------------------------------*/
.preloader-wrap {
  width: 100%;
  height: 100%;
  position: fixed;
  top: 0;
  bottom: 0;
  background: #000;
  z-index: 1800;
  text-align: center;
}

.disable-ajaxload .preloader-wrap {
  display: none;
}

.percentage-wrapper {
  position: relative;
  display: block;
  text-align: center;
  float: left;
  width: auto;
  overflow: hidden;
  z-index: 10;
  mix-blend-mode: difference;
}

.percentage {
  opacity: 0;
  font-size: 16px;
  line-height: 60px;
  width: 50px;
  font-weight: 500;
  color: #fff;
  display: table;
  margin: 1px auto 0;
  text-align: center;
}

.percentage::after {
  content: "%";
}

/*--------------------------------------------------
04. Header Elements - Optimized
---------------------------------------------------*/
header {
  width: 100%;
  height: var(--header-height);
  left: 0;
  top: 0;
  background-color: transparent;
  position: fixed;
  box-sizing: border-box;
  z-index: 1000;
  pointer-events: none;
  transition: background 0s ease-in-out;
}

#header-container {
  box-sizing: border-box;
  height: inherit;
  padding: 20px 80px;
  margin: 0 auto;
  position: relative;
  width: 100%;
  z-index: 20;
  opacity: 0;
}

.header-visible #header-container {
  opacity: 1;
}

#logo {
  position: relative;
  display: table;
  pointer-events: initial;
  z-index: 10;
  top: 15px;
  float: left;
}

#logo img {
  display: block;
  height: 50px;
  width: auto;
  max-width: none;
  transition: opacity 0.15s ease-in-out;
}

/* Burger menu improvements */
#burger-wrapper {
  width: 40px;
  height: 40px;
  float: right;
  top: 0;
  right: 0;
  display: flex;
  position: relative;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  pointer-events: initial;
}

.burger-dots #menu-burger span {
  display: block;
  position: absolute;
  height: 5px;
  width: 5px;
  border-radius: 5px;
  background-color: #000;
  opacity: 1;
  top: 8px;
  left: 0;
  transform: rotate(0deg);
  transition: background-color 0.05s ease-in-out,
              transform var(--transition-fast),
              height var(--transition-fast),
              width var(--transition-fast),
              top var(--transition-fast),
              left var(--transition-fast);
}

/*--------------------------------------------------
05. Main Content
---------------------------------------------------*/
#content-scroll {
  z-index: 1;
  position: relative;
}

.smooth-scroll #content-scroll {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 1;
  overflow: hidden;
}

/*--------------------------------------------------
06. Footer Elements
---------------------------------------------------*/
footer {
  position: relative;
  width: 100%;
  height: var(--footer-height);
  z-index: 900;
  box-sizing: border-box;
  text-align: center;
  bottom: 0;
  left: 0;
  overflow: hidden;
  pointer-events: none;
}

footer.fixed,
footer.showcase-footer {
  position: fixed;
}

#footer-container {
  padding: 0 80px;
  margin: 20px auto;
  height: 80px;
  opacity: 0;
  position: absolute;
  width: 100%;
  box-sizing: border-box;
  bottom: 0;
  left: 0;
}

/*--------------------------------------------------
07. Responsive - Mobile First Approach
---------------------------------------------------*/
@media only screen and (max-width: 1466px) {
  :root {
    --header-height: 100px;
    --footer-height: 100px;
  }
  
  #header-container,
  #footer-container {
    padding: 10px 60px;
  }
}

@media only screen and (max-width: 1024px) {
  #magic-cursor {
    display: none;
  }
  
  .parallax-wrap,
  .parallax-element {
    transform: none;
  }
  
  #header-container,
  #footer-container {
    padding: 10px 40px;
  }
}

@media only screen and (max-width: 767px) {
  :root {
    --header-height: 80px;
    --footer-height: 80px;
  }
  
  /* Responsive grid */
  .one_half, .one_third, .two_third,
  .three_fourth, .one_fourth, .two_fourth,
  .one_fifth, .two_fifth, .three_fifth, .four_fifth,
  .one_sixth, .five_sixth {
    width: 100%;
    margin-bottom: 30px;
    margin-right: 0;
  }
  
  #logo {
    left: 30px;
  }
}

@media only screen and (max-width: 479px) {
  #logo {
    left: 20px;
  }
  
  #header-container,
  #footer-container {
    padding: 0 20px;
  }
}

/* Landscape orientation lock for mobile */
@media only screen 
  and (min-device-width: 375px) 
  and (max-device-width: 667px) 
  and (orientation: landscape) {
  #rotate-device {
    display: block;
  }
}
