/*!
 * Modern Enhanced Grayscale Theme
 * Based on Start Bootstrap Grayscale with 2025 modernization
 */

/* Enhanced Color Variables */
:root {
  --primary: #42DCA3;
  --primary-dark: #2EC593;
  --primary-light: #6FE5B7;
  --secondary: #6366F1;
  --accent: #F59E0B;
  
  --neutral-900: #0F0F0F;
  --neutral-800: #1A1A1A;
  --neutral-700: #2A2A2A;
  --neutral-600: #404040;
  --neutral-500: #6B7280;
  --neutral-400: #9CA3AF;
  --neutral-300: #D1D5DB;
  --neutral-200: #E5E7EB;
  --neutral-100: #F3F4F6;
  
  --font-size-xs: 0.875rem;
  --font-size-sm: 1rem;
  --font-size-base: 1.125rem;
  --font-size-lg: 1.25rem;
  --font-size-xl: 1.5rem;
  --font-size-2xl: 2rem;
  --font-size-3xl: 2.5rem;
  --font-size-4xl: 3rem;
  
  --line-height-tight: 1.2;
  --line-height-normal: 1.5;
  --line-height-relaxed: 1.7;
}

body {
  font-family: 'Lora', 'Helvetica Neue', Helvetica, Arial, sans-serif;
  position: relative;
  width: 100%;
  height: 100%;
  color: white;
  background: linear-gradient(135deg, var(--neutral-900) 0%, var(--neutral-800) 100%);
  background-attachment: fixed;
}

html {
  width: 100%;
  height: 100%;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Cabin', 'Helvetica Neue', Helvetica, Arial, sans-serif;
  font-weight: 700;
  line-height: var(--line-height-tight);
  margin: 0 0 1.5rem;
  letter-spacing: 1px;
  text-transform: uppercase;
}

h1::after, h2::after, h3::after, h4::after, h5::after, h6::after {
  content: '';
  display: block;
  width: 50px;
  height: 2px;
  background: var(--primary);
  margin: 1rem auto;
}

p {
  font-size: var(--font-size-base);
  line-height: var(--line-height-relaxed);
  color: rgba(255, 255, 255, 0.9);
  margin: 0 0 1.5rem;
}

@media(min-width: 768px) {
  p {
    font-size: var(--font-size-lg);
    line-height: var(--line-height-relaxed);
    margin: 0 0 2rem;
  }
}

a {
  -webkit-transition: all 0.2s ease-in-out;
  -moz-transition: all 0.2s ease-in-out;
  transition: all 0.2s ease-in-out;
  color: var(--primary);
}

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

/* Enhanced Navigation */
#mainNav {
  font-family: 'Cabin', 'Helvetica Neue', Helvetica, Arial, sans-serif;
  margin-bottom: 0;
  text-transform: uppercase;
  border-bottom: 1px solid rgba(66, 220, 163, 0.2);
  background: rgba(15, 15, 15, 0.8);
  backdrop-filter: blur(20px);
  padding-right: 50px;
}

#mainNav .navbar-toggler {
  font-size: 14px;
  padding: 11px;
  color: white;
  border: 1px solid white;
}

#mainNav .navbar-brand {
  font-weight: 700;
}

#mainNav a {
  color: white;
}

#mainNav .navbar-nav .nav-item {
  -webkit-transition: all 0.3s ease-in-out;
  -moz-transition: all 0.3s ease-in-out;
  transition: all 0.3s ease-in-out;
}

#mainNav .navbar-nav .nav-item .nav-link {
  position: relative;
}

#mainNav .navbar-nav .nav-item .nav-link::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 50%;
  width: 0;
  height: 2px;
  background: var(--primary);
  transition: all 0.3s ease;
  transform: translateX(-50%);
}

#mainNav .navbar-nav .nav-item .nav-link:hover::after,
#mainNav .navbar-nav .nav-item .nav-link.active::after {
  width: 100%;
}

#mainNav .navbar-nav .nav-item:hover {
  color: rgba(255, 255, 255, 0.8);
  outline: none;
  background-color: transparent;
}

#mainNav .navbar-nav .nav-item:active,
#mainNav .navbar-nav .nav-item:focus {
  outline: none;
  background-color: transparent;
}

@media(min-width: 992px) {
  #mainNav {
    padding-top: 20px;
    padding-bottom: 20px;
    -webkit-transition: background 0.3s ease-in-out, padding-top 0.3s ease-in-out, padding-bottom 0.3s;
    -moz-transition: background 0.3s ease-in-out, padding-top 0.3s ease-in-out, padding-bottom 0.3s;
    transition: background 0.3s ease-in-out, padding-top 0.3s ease-in-out, padding-bottom 0.3s;
    letter-spacing: 1px;
    border-bottom: none;
    background: transparent;
  }
  
  #mainNav.navbar-shrink {
    padding-top: 10px;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.3);
    background: var(--neutral-900);
  }
  
  #mainNav .nav-link.active {
    outline: none;
    background-color: rgba(255, 255, 255, 0.3);
  }
  
  #mainNav .nav-link.active:hover {
    color: white;
  }
}

/* Enhanced Mobile Navigation */
@media (max-width: 991px) {
  .navbar-collapse {
    background: rgba(15, 15, 15, 0.95);
    border-radius: 8px;
    margin-top: 1rem;
    padding: 1rem;
    backdrop-filter: blur(20px);
  }
}

/* Enhanced Hero Section - Mobile-First */
.masthead {
  position: relative;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  width: 100%;
  height: auto;
  min-height: 80vh;
  padding: 80px 0 60px;
  text-align: center;
  color: white;
  background: linear-gradient(135deg, rgba(0,0,0,0.6) 0%, rgba(0,0,0,0.4) 100%), url('../img/pomidorka.png') no-repeat center 20%;
  background-color: var(--neutral-900);
  background-size: cover;
  background-attachment: scroll;
}

/* Mobile viewport optimization */
@media (max-height: 700px) and (max-width: 768px) {
  .masthead {
    min-height: 90vh;
    padding: 60px 0 40px;
  }
}

@media (max-height: 600px) and (max-width: 768px) {
  .masthead {
    min-height: 100vh;
    padding: 50px 0 30px;
  }
}

/* Mobile-optimized hero section */
@media (max-width: 768px) {
  .masthead {
    min-height: 80vh;
    padding: 60px 15px 40px;
    background-size: cover;
    background-position: center 20%;
    display: flex;
    align-items: flex-end;
  }
  
  .masthead::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
      to bottom,
      rgba(0,0,0,0.3) 0%,
      rgba(0,0,0,0.5) 50%,
      rgba(0,0,0,0.8) 100%
    );
    z-index: 1;
  }
}

@media (min-width: 769px) and (max-width: 1024px) {
  .masthead {
    background-size: contain;
    min-height: 80vh;
  }
}

@media (min-width: 1025px) {
  .masthead {
    background-size: cover;
    min-height: 100vh;
    align-items: center;
  }
  
  .masthead .intro-body {
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(10px);
    border-radius: 16px;
    padding: 3rem 2rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
    text-align: center;
  }
}

.masthead .intro-body {
  z-index: 2;
  max-width: 800px;
  padding: 2rem;
}

.masthead .intro-body .brand-heading {
  font-size: clamp(1.25rem, 2.5vw, 2rem);
  margin-bottom: 1rem;
  text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

.masthead .intro-body .intro-text {
  font-size: clamp(1.1rem, 2.5vw, 1.5rem);
  margin-bottom: 2rem;
  opacity: 0.9;
}

@media(min-width: 768px) {
  .masthead {
    height: 100%;
    padding: 0;
  }
}

@media (max-width: 991px) {
  .masthead .intro-body {
    padding: 1.5rem 1rem;
    margin-top: 0;
    z-index: 2;
    position: relative;
  }
}

/* Enhanced mobile content positioning */
@media (max-width: 768px) {
  .masthead .intro-body {
    padding: 2rem 1.5rem;
    text-align: center;
    backdrop-filter: blur(8px);
    border-radius: 16px;
    background: rgba(0, 0, 0, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.1);
    margin: 0 1rem 2rem;
    margin: 0 15px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
  }
  
  .masthead .intro-body .brand-heading {
    font-size: clamp(2rem, 8vw, 3rem);
    margin-bottom: 0.75rem;
    text-shadow: 2px 2px 8px rgba(0,0,0,0.8);
    letter-spacing: 1px;
  }
  
  .masthead .intro-body .intro-text {
    font-size: clamp(0.95rem, 4vw, 1.2rem);
    margin-bottom: 1.5rem;
    opacity: 0.95;
    line-height: 1.4;
    text-shadow: 1px 1px 4px rgba(0,0,0,0.6);
  }
}

/* Enhanced Buttons */
.btn-circle {
  font-size: 26px;
  width: 55px;
  height: 55px;
  margin-top: 15px;
  line-height: 45px;
  -webkit-transition: all 0.3s ease-in-out;
  -moz-transition: all 0.3s ease-in-out;
  transition: all 0.3s ease-in-out;
  color: white;
  border: 2px solid white;
  border-radius: 100% !important;
  background: transparent;
}

.btn-circle:focus,
.btn-circle:hover {
  color: white;
  outline: none;
  background: rgba(255, 255, 255, 0.1);
  transform: translateY(-3px);
  box-shadow: 0 10px 20px rgba(255, 255, 255, 0.2);
}

/* Mobile-optimized CTA button */
@media (max-width: 768px) {
  .btn-circle {
    width: 48px;
    height: 48px;
    font-size: 20px;
    line-height: 44px;
    margin-top: 0.5rem;
    border: 2px solid rgba(255, 255, 255, 0.9);
    background: rgba(0, 0, 0, 0.3);
  }
  
  .btn-circle:hover,
  .btn-circle:focus,
  .btn-circle:active {
    background: var(--primary);
    border-color: var(--primary);
    transform: scale(1.1);
    box-shadow: 0 8px 24px rgba(66, 220, 163, 0.4);
  }
}

/* Enhanced Content Sections */
.content-section {
  position: relative;
  padding: 5rem 0;
}

.content-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 3px;
  background: var(--primary);
}

.content-section:nth-child(even):not(.download-section) {
  background: rgba(255, 255, 255, 0.02);
}

@media (max-width: 991px) {
  .content-section {
    padding: 3rem 0;
  }
}

@media(min-width: 992px) {
  .content-section {
    padding: 6rem 0;
  }
}

.download-section {
  color: white;
  background: url('../img/downloads-bg.webp') no-repeat center center scroll;
  background-color: var(--neutral-900);
  -webkit-background-size: cover;
  -moz-background-size: cover;
  -o-background-size: cover;
  background-size: cover;
}

#map {
  width: 100%;
  height: 300px;
}

@media(min-width: 992px) {
  #map {
    height: 350px;
  }
}

.btn {
  font-family: 'Cabin', 'Helvetica Neue', Helvetica, Arial, sans-serif;
  font-weight: 400;
  -webkit-transition: all 0.3s ease-in-out;
  -moz-transition: all 0.3s ease-in-out;
  transition: all 0.3s ease-in-out;
  text-transform: uppercase;
  border-radius: 0;
}

.btn-default {
  color: var(--primary);
  border: 1px solid var(--primary);
  background-color: transparent;
}

.btn-default:focus,
.btn-default:hover {
  color: var(--neutral-900);
  border: 1px solid var(--primary);
  outline: none;
  background-color: var(--primary);
}

ul.banner-social-buttons {
  margin-top: 0;
}

@media(max-width: 1199px) {
  ul.banner-social-buttons {
    margin-top: 15px;
  }
}

@media(max-width: 767px) {
  ul.banner-social-buttons li {
    display: block;
    margin-bottom: 20px;
    padding: 0;
  }
  
  ul.banner-social-buttons li:last-child {
    margin-bottom: 0;
  }
}

footer {
  padding: 50px 0;
}

footer p {
  font-size: 14px;
  margin: 0;
}

::-moz-selection {
  background: #fcfcfc;
  background: rgba(255, 255, 255, 0.2);
  text-shadow: none;
}

::selection {
  background: #fcfcfc;
  background: rgba(255, 255, 255, 0.2);
  text-shadow: none;
}

img::selection {
  background: transparent;
}

img::-moz-selection {
  background: transparent;
}

body {
  -webkit-tap-highlight-color: rgba(255, 255, 255, 0.2);
}

/* Modern Skills Grid */
.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.skill-card {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 2rem;
  text-align: center;
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
}

.skill-card:hover {
  transform: translateY(-8px);
  background: rgba(255, 255, 255, 0.08);
  border-color: var(--primary);
  box-shadow: 0 20px 40px rgba(66, 220, 163, 0.1);
}

.skill-card .skill-icon {
  font-size: 3rem;
  color: var(--primary);
  margin-bottom: 1rem;
}

.skill-card .skill-icon i {
  transition: transform 0.3s ease;
}

.skill-card:hover .skill-icon i {
  transform: scale(1.1);
}

.skill-card h4 {
  margin-bottom: 0.5rem;
  color: white;
  font-size: 1.25rem;
}

.skill-card h4::after {
  display: none;
}

.skill-card p {
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 0;
  font-size: 0.95rem;
}

@media (max-width: 991px) {
  .skills-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
}

/* Modern Social Buttons */
.social-buttons {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  margin-top: 2rem;
}

.social-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 70px;
  height: 70px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  border: 2px solid transparent;
  color: white;
  font-size: 2rem;
  text-decoration: none;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.social-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--primary);
  border-radius: 50%;
  transform: scale(0);
  transition: transform 0.3s ease;
  z-index: -1;
}

.social-btn:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 30px rgba(255, 255, 255, 0.2);
  color: white;
  text-decoration: none;
}

.social-btn:hover::before {
  transform: scale(1);
}

.social-btn.linkedin:hover {
  border-color: #0077B5;
  box-shadow: 0 15px 30px rgba(0, 119, 181, 0.3);
}

.social-btn.linkedin:hover::before {
  background: #0077B5;
}

.social-btn.instagram:hover {
  border-color: #E4405F;
  box-shadow: 0 15px 30px rgba(228, 64, 95, 0.3);
}

.social-btn.instagram:hover::before {
  background: linear-gradient(45deg, #F58529, #DD2A7B, #8134AF);
}

@media (max-width: 768px) {
  .social-buttons {
    gap: 1rem;
  }
  
  .social-btn {
    width: 60px;
    height: 60px;
    font-size: 1.5rem;
  }
}