/* ============================================================================
 * Erik Becker Homepage - Split Screen Layout
 * ============================================================================
 * Hero section with split layout, profile image, skill cards, and interactive
 * elements. Follows CSS best practices with variables and alphabetized properties.
 */

/* CSS Variables */
:root {
  --color-hero-bg: #2E4053;
  --color-blue-light: rgba(96, 165, 250, 0.8);
  --color-blue-primary: rgba(59, 130, 246, 0.9);
  --color-blue-dim: rgba(96, 165, 250, 0.7);
  --color-overlay-dark: rgba(10, 10, 10, 0.5);
  --color-overlay-darker: rgba(10, 10, 10, 0.9);
  --color-white: #ffffff;
  --color-text-white: rgba(255, 255, 255, 0.92);
  --color-text-white-dim: rgba(255, 255, 255, 0.82);
  
  --size-border-radius: 12px;
  --size-lightning-height: 300px;
}

/* Global resets */
body {
  margin: 0 !important;
  padding: 0 !important;
}

/* Split-screen hero layout */
.hero-split {
  background: var(--color-hero-bg);
  display: flex;
  margin: 0;
  min-height: 100vh;
  overflow: hidden;
  position: relative;
  width: 100vw;
}

/* Background animation effect */
.hero-split::before {
  animation: pulseStorm 10s ease-in-out infinite;
  background:
    radial-gradient(ellipse at 60% 40%, rgba(59, 130, 246, 0.08) 0%, transparent 50%),
    radial-gradient(ellipse at 80% 70%, rgba(30, 58, 138, 0.12) 0%, transparent 50%);
  bottom: 0;
  content: '';
  left: 0;
  pointer-events: none;
  position: absolute;
  right: 0;
  top: 0;
}

@keyframes pulseStorm {
  0%, 100% {
    opacity: 0.5;
  }
  50% {
    opacity: 0.8;
  }
}

/* Left side - profile image section */
.profile-side {
  min-height: 100vh;
  overflow: hidden;
  position: relative;
  width: 33%;
}

.profile-container {
  align-items: center;
  display: flex;
  height: 100%;
  justify-content: flex-start;
  padding-left: 20px;
  position: relative;
  width: 100%;
}

/* Profile image styling */
.profile-image-full {
  border-radius: var(--size-border-radius);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.1);
  filter: brightness(0.85) contrast(1.1);
  height: auto;
  max-height: 95vh;
  object-fit: contain;
  object-position: center;
  width: 95%;
}

/* Gradient overlay transition */
.profile-container::after {
  background: linear-gradient(to right,
    transparent 0%,
    var(--color-overlay-dark) 50%,
    var(--color-overlay-darker) 100%);
  content: '';
  height: 100%;
  pointer-events: none;
  position: absolute;
  right: 0;
  top: 0;
  width: 30%;
}

/* Lightning bolt accent */
.lightning-bolt {
  animation: flickerBolt 4s ease-in-out infinite;
  background: linear-gradient(to bottom,
    transparent 0%,
    var(--color-blue-light) 15%,
    var(--color-blue-primary) 40%,
    var(--color-blue-dim) 65%,
    transparent 100%);
  box-shadow: 0 0 30px rgba(96, 165, 250, 0.6);
  height: var(--size-lightning-height);
  position: absolute;
  right: -2%;
  top: 30%;
  transform: skewX(-8deg);
  width: 4px;
}

@keyframes flickerBolt {
  0%, 100% {
    opacity: 0.4;
  }
  50% {
    opacity: 1;
  }
}

/* Accent dot */
.accent-dot {
  position: absolute;
  bottom: 15%;
  left: 5%;
  width: 16px;
  height: 16px;
  background: #10b981;
  border-radius: 50%;
  box-shadow: 0 0 20px rgba(16, 185, 129, 0.6);
  z-index: 10;
}

/* Right Side: Content */
.content-side {
  flex: 1;
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 80px 80px 80px 100px;
}

/* Main headline */
.main-headline {
  margin-bottom: 20px;
}

.greeting {
  font-size: 1.2rem;
  color: #94a3b8;
  font-weight: 300;
  margin-bottom: 10px;
  letter-spacing: 0.5px;
}

.highlight-name {
  color: #10b981;
  font-weight: 500;
}

.main-title {
  font-size: 4.5rem;
  font-weight: 700;
  line-height: 1.2;
  margin: 0;
  color: #f8fafc;
  text-shadow: 2px 2px 10px rgba(0, 0, 0, 0.5);
}

.subtitle-role {
  font-size: 1.5rem;
  color: #10b981;
  margin-top: 20px;
  font-weight: 600;
  letter-spacing: 1px;
}

.subtitle-desc {
  font-size: 1.05rem;
  color: #94a3b8;
  margin-top: 15px;
  line-height: 1.7;
}

.accent-highlight {
  color: #10b981;
  font-weight: 600;
  position: relative;
}

.accent-highlight::before {
  content: '';
  position: absolute;
  left: -50px;
  top: 50%;
  transform: translateY(-50%);
  width: 8px;
  height: 8px;
  background: #10b981;
  border-radius: 50%;
  box-shadow: 0 0 12px rgba(16, 185, 129, 0.5);
}

/* Skills Heading */
.skills-heading {
  font-size: 1.5rem;
  font-weight: 600;
  color: #f1f5f9;
  margin-bottom: 30px;
  margin-top: 0;
  letter-spacing: 0.5px;
}

/* Skills Grid */
.skills-grid-2x2 {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr 1fr;
  gap: 15px;
  margin-top: 50px;
}

.skill-card {
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.9) 0%, rgba(30, 41, 59, 0.8) 100%);
  border: 1px solid rgba(148, 163, 184, 0.2);
  border-radius: 8px;
  padding: 25px 15px;
  text-align: center;
  transition: all 0.4s ease, height 1.2s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  position: relative;
  overflow: hidden;
  backdrop-filter: blur(10px);
  cursor: pointer;
  height: 200px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  --accent-color: currentColor;
}

.skill-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, transparent, currentColor, transparent);
  opacity: 0;
  transition: opacity 0.4s ease;
}

.skill-card:hover {
  transform: translateY(-5px);
  border-color: rgba(147, 197, 253, 0.5);
  box-shadow: 0 10px 40px rgba(59, 130, 246, 0.2);
}

.skill-card:hover::before {
  opacity: 1;
}

.skill-card.energy { 
  color: #fbbf24;
  --accent-color: #fbbf24;
}

.skill-card.meteorology { 
  color: #60a5fa;
  --accent-color: #60a5fa;
}

.skill-card.ml { 
  color: #a78bfa;
  --accent-color: #a78bfa;
}

.skill-card.data { 
  color: #34d399;
  --accent-color: #34d399;
}

.skill-card.geospatial { 
  color: #f87171;
  --accent-color: #f87171;
}

.skill-card.dashboards { 
  color: #06b6d4;
  --accent-color: #06b6d4;
}

.skill-card.markets { 
  color: #ec4899;
  --accent-color: #ec4899;
}

.skill-card.leadership { 
  color: #f59e0b;
  --accent-color: #f59e0b;
}

.skill-icon {
  font-size: 2rem;
  margin-bottom: 10px;
  filter: drop-shadow(0 0 10px currentColor);
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  min-width: 2rem;
}

.skill-icon i {
  display: flex;
  align-items: center;
  justify-content: center;
}

.skill-card h3 {
  font-size: 0.95rem;
  font-weight: 600;
  color: #f1f5f9;
  margin: 0;
  letter-spacing: 0.5px;
  transition: all 0.3s ease;
  text-align: center;
  width: 100%;
  padding: 0 10px;
}

.skill-card p {
  font-size: 0.8rem;
  color: #cbd5e1;
  line-height: 1.5;
  margin: 0;
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  transition: max-height 1.2s cubic-bezier(0.25, 0.46, 0.45, 0.94), opacity 0.2s ease-in-out;
  text-align: left !important;
  padding: 0;
}

.skill-card.active p {
  max-height: 1500px;
  opacity: 1;
  margin-top: 8px;
  padding-left: 1.2em;
  text-indent: -1.2em;
  width: 100%;
  align-self: flex-start;
  transition: max-height 1.2s cubic-bezier(0.25, 0.46, 0.45, 0.94), opacity 1.2s ease-in-out;
}

.skill-card.active {
  height: auto;
  overflow: visible;
  padding: 25px 15px;
  transition: all 1.2s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.skill-card.active .skill-icon {
  margin-bottom: 15px;
}

.skill-card.active h3 {
  margin-bottom: 15px;
}

.accent-dot-inline {
  color: var(--accent-color);
  font-weight: 600;
  margin-right: 4px;
}

/* CTA Buttons */
.cta-buttons {
  display: flex;
  gap: 20px;
  margin-top: 50px;
}

.btn-primary-noir {
  padding: 14px 35px;
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  color: #fff;
  border: none;
  font-size: 1rem;
  font-weight: 500;
  letter-spacing: 0.5px;
  transition: all 0.3s ease;
  text-decoration: none;
  display: inline-block;
}

.btn-primary-noir:hover {
  background: linear-gradient(135deg, #059669 0%, #047857 100%);
  box-shadow: 0 0 30px rgba(16, 185, 129, 0.5);
  transform: translateY(-2px);
  color: #fff;
}

.btn-secondary-noir {
  padding: 14px 35px;
  background: transparent;
  color: #cbd5e1;
  border: 2px solid #475569;
  font-size: 1rem;
  font-weight: 500;
  letter-spacing: 0.5px;
  transition: all 0.3s ease;
  text-decoration: none;
  display: inline-block;
}

.btn-secondary-noir:hover {
  border-color: #10b981;
  color: #10b981;
  box-shadow: 0 0 20px rgba(16, 185, 129, 0.3);
  transform: translateY(-2px);
}

/* Social Links */
.social-links {
  display: flex;
  gap: 20px;
  margin-top: 40px;
}

.social-link {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 2px solid #475569;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #94a3b8;
  text-decoration: none;
  transition: all 0.3s ease;
  font-size: 1.2rem;
}

.social-link:hover {
  border-color: #10b981;
  color: #10b981;
  box-shadow: 0 0 20px rgba(16, 185, 129, 0.3);
  transform: translateY(-2px);
}

/* Contact info (bottom left) */
.contact-info {
  position: absolute;
  bottom: 40px;
  left: 60px;
  font-size: 0.85rem;
  color: #64748b;
  z-index: 5;
}

.contact-info a {
  color: #94a3b8;
  text-decoration: none;
  transition: color 0.3s ease;
}

.contact-info a:hover {
  color: #10b981;
}

/* Responsive */
@media (max-width: 1200px) {
  .profile-side {
    width: 40%;
  }
  
  .main-title {
    font-size: 4rem;
  }

  .content-side {
    padding: 60px 40px 60px 80px;
  }

  .skills-grid-2x2 {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 992px) {
  .hero-split {
    flex-direction: column;
    padding-top: 56px; /* Account for fixed navbar */
  }

  .profile-side {
    width: 100%;
    min-height: 50vh;
  }

  .profile-container {
    height: 50vh;
    clip-path: polygon(0 0, 100% 0, 100% 85%, 0 100%);
  }

  /* Fix image positioning on mobile to prevent top cutoff */
  .profile-image-full {
    object-position: top center;
    height: 100%;
    width: 100%;
  }

  .content-side {
    padding: 40px 30px;
  }

  .main-title {
    font-size: 3rem;
  }

  .skills-grid-2x2 {
    grid-template-columns: 1fr;
  }

  .contact-info {
    position: static;
    margin-top: 40px;
  }
}

@media (max-width: 576px) {
  .main-title {
    font-size: 2.5rem;
  }

  .cta-buttons {
    flex-direction: column;
  }
}
