/*--------------------------------------------------------------
  Patryk Peters - Portfolio Website Styles
  Based on Davis Template
--------------------------------------------------------------*/

:root {
  --primary-color: #ff4d4d;
  --primary-hover: #ff3333;
  --secondary-color: #1a1a2e;
  --dark-bg: #16213e;
  --darker-bg: #0f0f23;
  --text-color: #ffffff;
  --text-muted: #b0b0b0;
  --border-color: rgba(255, 255, 255, 0.1);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Poppins', sans-serif;
  font-size: 16px;
  line-height: 1.7;
  color: var(--text-color);
  background-color: var(--secondary-color);
  overflow-x: hidden;
}

a {
  text-decoration: none;
  color: inherit;
  transition: all 0.3s ease;
}

a:hover {
  text-decoration: none;
  color: var(--primary-color);
}

img {
  max-width: 100%;
  height: auto;
}

ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.container {
  max-width: 1200px;
}

/*--------------------------------------------------------------
  Spacing Utilities
--------------------------------------------------------------*/
.st-height-b100 { height: 100px; }
.st-height-b80 { height: 80px; }
.st-height-b70 { height: 70px; }
.st-height-b50 { height: 50px; }
.st-height-b40 { height: 40px; }
.st-height-b30 { height: 30px; }
.st-height-b25 { height: 25px; }
.st-height-b0 { height: 0; }

@media (max-width: 991px) {
  .st-height-lg-b80 { height: 80px; }
  .st-height-lg-b50 { height: 50px; }
  .st-height-lg-b40 { height: 40px; }
  .st-height-lg-b30 { height: 30px; }
  .st-height-lg-b0 { height: 0; }
}

/*--------------------------------------------------------------
  Header
--------------------------------------------------------------*/
.st-site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  transition: all 0.3s ease;
}

.st-site-header.st-sticky-header {
  background: rgba(22, 33, 62, 0.95);
  backdrop-filter: blur(10px);
}

.st-site-header.scrolled {
  background: rgba(22, 33, 62, 0.98);
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
}

.st-main-header-in {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 0;
}

.st-site-branding {
  display: flex;
  align-items: center;
}

.st-logo-text {
  font-size: 24px;
  font-weight: 700;
  color: var(--text-color);
  letter-spacing: 1px;
}

.st-nav {
  display: flex;
  align-items: center;
  gap: 40px;
}

.st-nav-list {
  display: flex;
  gap: 30px;
}

.st-nav-list li a {
  font-size: 14px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-color);
  position: relative;
  padding: 5px 0;
}

.st-nav-list li a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--primary-color);
  transition: width 0.3s ease;
}

.st-nav-list li a:hover::after,
.st-nav-list li a.active::after {
  width: 100%;
}

.sp-phone {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text-color);
}

.sp-phone i {
  color: var(--primary-color);
}

.sp-phone-no {
  font-weight: 500;
}

/* Mobile Menu Toggle */
.st-munu-toggle {
  display: none;
  width: 30px;
  height: 20px;
  position: relative;
  cursor: pointer;
}

.st-munu-toggle span,
.st-munu-toggle::before,
.st-munu-toggle::after {
  content: '';
  position: absolute;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--text-color);
  transition: all 0.3s ease;
}

.st-munu-toggle span {
  top: 50%;
  transform: translateY(-50%);
}

.st-munu-toggle::before {
  top: 0;
}

.st-munu-toggle::after {
  bottom: 0;
}

@media (max-width: 991px) {
  .st-munu-toggle {
    display: block;
  }

  .st-nav {
    position: fixed;
    top: 70px;
    left: 0;
    width: 100%;
    background: var(--dark-bg);
    flex-direction: column;
    padding: 30px;
    gap: 20px;
    transform: translateX(-100%);
    transition: transform 0.3s ease;
  }

  .st-nav.active {
    transform: translateX(0);
  }

  .st-nav-list {
    flex-direction: column;
    text-align: center;
  }
}

/*--------------------------------------------------------------
  Hero Slideshow Section
--------------------------------------------------------------*/
.st-hero-accordion {
  position: relative;
  height: 100vh;
  min-height: 600px;
  overflow: hidden;
}

.st-accordion-wrap {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.st-accordion-item {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transform: scale(1.1);
  transition: opacity 1s ease, transform 1s ease;
  z-index: 1;
}

.st-accordion-item::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(0,0,0,0.3), rgba(0,0,0,0.6));
}

.st-accordion-item.active {
  opacity: 1;
  transform: scale(1);
  z-index: 2;
}

/* Hero CTA Overlay */
.st-hero-cta {
  z-index: 999;
  position: absolute;
  top: 30%;
  left: 0;
  right: 0;
  padding: 40px 0;
}

.st-hero-cta-content {
  text-align: center;
}

.st-hero-cta h1 {
  font-size: 48px;
  font-weight: 700;
  margin-bottom: 15px;
  text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.8), 0 0 30px rgba(0, 0, 0, 0.5);
}

.st-hero-cta h1 span {
  color: var(--primary-color);
  text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.8), 0 0 20px rgba(255, 77, 77, 0.3);
}

.st-hero-cta p {
  font-size: 18px;
  color: var(--text-color);
  margin-bottom: 25px;
  text-shadow: 1px 1px 6px rgba(0, 0, 0, 0.8);
}

@media (max-width: 991px) {
  .st-hero-cta h1 {
    font-size: 32px;
  }

  .st-hero-cta {
    top: 25%;
  }
}

@media (max-width: 576px) {
  .st-hero-cta h1 {
    font-size: 26px;
  }

  .st-hero-cta p {
    font-size: 14px;
  }
}

/*--------------------------------------------------------------
  Buttons
--------------------------------------------------------------*/
.st-btn {
  display: inline-block;
  padding: 14px 35px;
  font-size: 14px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  border: none;
  border-radius: 50px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.st-btn.st-style1.st-color1 {
  background: var(--primary-color);
  color: var(--text-color);
}

.st-btn.st-style1.st-color1:hover {
  background: var(--primary-hover);
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(255, 77, 77, 0.3);
}

/*--------------------------------------------------------------
  Section Headings
--------------------------------------------------------------*/
.st-section-heading {
  text-align: center;
  position: relative;
}

.st-section-heading-subtitle {
  font-size: 42px;
  font-weight: 700;
  color: var(--text-color);
  margin: 0;
}

.st-section-heading::after {
  content: '';
  display: block;
  width: 60px;
  height: 3px;
  background: var(--primary-color);
  margin: 20px auto 0;
}

@media (max-width: 768px) {
  .st-section-heading-subtitle {
    font-size: 32px;
  }
}

/*--------------------------------------------------------------
  About Section
--------------------------------------------------------------*/
.st-about-wrap {
  background: var(--secondary-color);
}

.st-about-img-wrap {
  position: relative;
}

.st-about-img {
  position: relative;
  overflow: hidden;
  border-radius: 10px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
}

.st-about-img img {
  width: 100%;
  height: auto;
  display: block;
}

.st-about-img::before {
  content: '';
  position: absolute;
  top: -20px;
  left: -20px;
  right: 20px;
  bottom: 20px;
  border: 3px solid var(--primary-color);
  border-radius: 10px;
  z-index: -1;
}

.st-vertical-middle {
  display: flex;
  align-items: center;
  min-height: 100%;
}

.st-text-block-title {
  font-size: 32px;
  font-weight: 700;
  margin-bottom: 10px;
}

.st-text-block-subtitle {
  font-size: 18px;
  color: var(--primary-color);
  font-weight: 500;
  margin-bottom: 20px;
}

.st-text-block-text {
  color: var(--text-muted);
  margin-bottom: 25px;
}

.st-text-block-text p {
  margin-bottom: 15px;
}

.st-text-block-details {
  margin-bottom: 30px;
}

.st-text-block-details li {
  padding: 8px 0;
  border-bottom: 1px solid var(--border-color);
  display: flex;
  gap: 10px;
}

.st-text-block-details li span:first-child {
  color: var(--text-muted);
  min-width: 120px;
}

.st-mp0 {
  margin: 0;
  padding: 0;
}

/*--------------------------------------------------------------
  Dark Background
--------------------------------------------------------------*/
.st-dark-bg {
  background: var(--dark-bg);
}

/*--------------------------------------------------------------
  Services / Iconbox
--------------------------------------------------------------*/
.st-iconbox {
  text-align: center;
  padding: 40px 30px;
  background: var(--secondary-color);
  border-radius: 10px;
  transition: all 0.3s ease;
  height: 100%;
}

.st-iconbox:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.st-iconbox-icon {
  width: 80px;
  height: 80px;
  margin: 0 auto 25px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--primary-color), #ff6b6b);
  border-radius: 50%;
  font-size: 32px;
  color: var(--text-color);
}

.st-iconbox-title {
  font-size: 22px;
  font-weight: 600;
  margin-bottom: 15px;
}

.st-iconbox-text {
  color: var(--text-muted);
  font-size: 15px;
  line-height: 1.7;
}

/*--------------------------------------------------------------
  Portfolio
--------------------------------------------------------------*/
#portfolio {
  background: var(--secondary-color);
}

.st-portfolio-single {
  position: relative;
  overflow: hidden;
  border-radius: 10px;
}

.st-portfolio {
  display: block;
  position: relative;
}

.st-portfolio-img {
  overflow: hidden;
  border-radius: 10px;
}

.st-portfolio-img img {
  width: 100%;
  height: 280px;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.st-zoom:hover .st-zoom-in {
  transform: scale(1.1);
}

.st-portfolio-item-hover {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(255, 77, 77, 0.9), rgba(255, 77, 77, 0.7));
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
  border-radius: 10px;
}

.st-portfolio:hover .st-portfolio-item-hover {
  opacity: 1;
}

.st-portfolio-item-hover i {
  font-size: 40px;
  margin-bottom: 15px;
}

.st-portfolio-item-hover h5 {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 5px;
}

.st-portfolio-item-hover p {
  font-size: 14px;
  opacity: 0.9;
  margin: 0;
}

/*--------------------------------------------------------------
  Contact Section
--------------------------------------------------------------*/
.st-contact-title {
  font-size: 28px;
  font-weight: 600;
  margin-bottom: 25px;
}

.st-contact-form {
  margin-bottom: 30px;
}

.st-form-field {
  margin-bottom: 20px;
}

.st-form-field input,
.st-form-field textarea {
  width: 100%;
  padding: 15px 20px;
  background: var(--secondary-color);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  color: var(--text-color);
  font-family: inherit;
  font-size: 15px;
  transition: all 0.3s ease;
}

.st-form-field input:focus,
.st-form-field textarea:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(255, 77, 77, 0.1);
}

.st-form-field input::placeholder,
.st-form-field textarea::placeholder {
  color: var(--text-muted);
}

.st-form-field textarea {
  min-height: 150px;
  resize: vertical;
}

.st-contact-text {
  color: var(--text-muted);
  margin-bottom: 30px;
}

.st-contact-info-wrap {
  display: flex;
  flex-direction: column;
  gap: 25px;
}

.st-single-contact-info {
  display: flex;
  align-items: flex-start;
  gap: 20px;
}

.st-single-contact-info i {
  font-size: 24px;
  color: var(--primary-color);
  margin-top: 5px;
}

.st-single-info-details h4 {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 5px;
}

.st-single-info-details a,
.st-single-info-details span {
  color: var(--text-muted);
  display: block;
}

.st-single-info-details a:hover {
  color: var(--primary-color);
}

/* Social Links */
.st-social-info {
  margin-top: 20px;
  padding-top: 25px;
  border-top: 1px solid var(--border-color);
}

.st-social-text {
  color: var(--text-muted);
  margin-bottom: 15px;
}

.st-social-link {
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
}

.st-social-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  background: var(--secondary-color);
  border-radius: 50px;
  transition: all 0.3s ease;
}

.st-social-btn:hover {
  background: var(--primary-color);
  color: var(--text-color);
}

.st-social-icon {
  font-size: 16px;
}

.st-icon-name {
  font-size: 13px;
  font-weight: 500;
}

/*--------------------------------------------------------------
  Footer
--------------------------------------------------------------*/
footer {
  background: var(--darker-bg);
  padding: 30px 0;
}

.st-copyright-text {
  color: var(--text-muted);
  font-size: 14px;
}

/*--------------------------------------------------------------
  Alert Messages
--------------------------------------------------------------*/
#st-alert {
  margin-bottom: 20px;
}

#st-alert .alert {
  padding: 15px 20px;
  border-radius: 8px;
  font-size: 14px;
}

/*--------------------------------------------------------------
  Animations
--------------------------------------------------------------*/
.animate__animated {
  opacity: 0;
}

.animate__animated.animated {
  opacity: 1;
}

/*--------------------------------------------------------------
  Responsive Adjustments
--------------------------------------------------------------*/
@media (max-width: 768px) {
  .st-text-block-title {
    font-size: 26px;
  }

  .st-about-img::before {
    display: none;
  }

  .st-iconbox {
    padding: 30px 20px;
  }

  .st-portfolio-img img {
    height: 220px;
  }
}

/*--------------------------------------------------------------
  Placeholder Styles (for missing images)
--------------------------------------------------------------*/
.st-accordion-item {
  background-color: var(--dark-bg);
}

.st-portfolio-img img {
  background: linear-gradient(135deg, var(--dark-bg), var(--secondary-color));
}

/* Placeholder pattern for missing images */
.st-accordion-item:nth-child(1) {
  background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
}

.st-accordion-item:nth-child(2) {
  background: linear-gradient(135deg, #0f3460 0%, #16213e 50%, #1a1a2e 100%);
}

.st-accordion-item:nth-child(3) {
  background: linear-gradient(135deg, #16213e 0%, #0f3460 50%, #1a1a2e 100%);
}

/*--------------------------------------------------------------
  Header CTA Button
--------------------------------------------------------------*/
.st-header-cta {
  padding: 10px 25px !important;
  font-size: 12px !important;
}

@media (max-width: 991px) {
  .st-header-cta {
    display: none;
  }
}

/*--------------------------------------------------------------
  Hero Buttons Group
--------------------------------------------------------------*/
.st-hero-buttons {
  display: flex;
  gap: 15px;
  justify-content: center;
  flex-wrap: wrap;
}

.st-btn i {
  margin-right: 8px;
}

.st-btn.st-style2 {
  background: transparent;
  border: 2px solid var(--text-color);
  color: var(--text-color);
}

.st-btn.st-style2:hover {
  background: var(--text-color);
  color: var(--secondary-color);
  transform: translateY(-2px);
}

.st-btn.st-btn-sm {
  padding: 10px 25px;
  font-size: 12px;
}

.st-btn.st-btn-full {
  width: 100%;
  text-align: center;
}

/*--------------------------------------------------------------
  Service Card CTA Link
--------------------------------------------------------------*/
.st-iconbox-cta {
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid var(--border-color);
}

.st-link {
  color: var(--primary-color);
  font-size: 14px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all 0.3s ease;
}

.st-link:hover {
  color: var(--primary-hover);
  gap: 12px;
}

.st-link i {
  font-size: 12px;
  transition: transform 0.3s ease;
}

.st-link:hover i {
  transform: translateX(4px);
}

/*--------------------------------------------------------------
  Showreel Section
--------------------------------------------------------------*/
.st-showreel-wrap {
  max-width: 900px;
  margin: 0 auto;
}

.st-showreel-placeholder {
  position: relative;
  padding-top: 56.25%; /* 16:9 aspect ratio */
  background: linear-gradient(135deg, var(--dark-bg) 0%, var(--secondary-color) 100%);
  border-radius: 15px;
  overflow: hidden;
  border: 2px dashed var(--border-color);
}

.st-showreel-content {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 20px;
}

.st-showreel-content i {
  font-size: 64px;
  color: var(--primary-color);
  margin-bottom: 20px;
  opacity: 0.7;
}

.st-showreel-content h3 {
  font-size: 24px;
  font-weight: 600;
  margin-bottom: 10px;
  color: var(--text-color);
}

.st-showreel-content p {
  color: var(--text-muted);
  font-size: 14px;
}

/*--------------------------------------------------------------
  Contact Improvements
--------------------------------------------------------------*/
.st-contact-subtitle {
  color: var(--primary-color);
  font-size: 14px;
  font-weight: 500;
  margin-bottom: 25px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.st-contact-subtitle::before {
  content: '';
  display: inline-block;
  width: 8px;
  height: 8px;
  background: var(--primary-color);
  border-radius: 50%;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(1.2); }
}

/*--------------------------------------------------------------
  Available Badge
--------------------------------------------------------------*/
.st-available {
  color: #4ade80 !important;
  font-weight: 500;
}

.st-available::before {
  content: '';
  display: inline-block;
  width: 8px;
  height: 8px;
  background: #4ade80;
  border-radius: 50%;
  margin-right: 8px;
  animation: pulse 2s infinite;
}

/*--------------------------------------------------------------
  Mobile Sticky CTA
--------------------------------------------------------------*/
.st-mobile-cta {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 15px 20px;
  background: var(--darker-bg);
  box-shadow: 0 -5px 20px rgba(0, 0, 0, 0.3);
  z-index: 999;
  transform: translateY(100%);
  opacity: 0;
  transition: transform 0.3s ease, opacity 0.3s ease;
  display: none;
}

.st-mobile-cta .st-btn {
  width: 100%;
  text-align: center;
  padding: 16px 30px;
}

@media (max-width: 768px) {
  .st-mobile-cta {
    display: block;
  }

  .st-mobile-cta.visible {
    transform: translateY(0);
    opacity: 1;
  }

  footer {
    padding-bottom: 100px;
  }
}

/*--------------------------------------------------------------
  Better Alert Styles
--------------------------------------------------------------*/
.alert-success {
  background: rgba(74, 222, 128, 0.1);
  border: 1px solid #4ade80;
  color: #4ade80;
}

.alert-danger {
  background: rgba(255, 77, 77, 0.1);
  border: 1px solid var(--primary-color);
  color: var(--primary-color);
}

/*--------------------------------------------------------------
  About Details Links
--------------------------------------------------------------*/
.st-text-block-details a {
  color: var(--text-color);
  transition: color 0.3s ease;
}

.st-text-block-details a:hover {
  color: var(--primary-color);
}

/*--------------------------------------------------------------
  Better Responsive for Hero
--------------------------------------------------------------*/
@media (max-width: 576px) {
  .st-hero-buttons {
    flex-direction: column;
    align-items: center;
  }

  .st-hero-buttons .st-btn {
    width: 100%;
    max-width: 280px;
  }
}
