/* 
* Elke Zens Website - Main Stylesheet
* Author: Elke Zens
*/

/* Global Styles */
:root {
  --primary-color: #2C3E50;  /* dark blue */
  --secondary-color: #18BC9C;  /* teal */
  --accent-color: #E74C3C;  /* red */
  --background-color: #ECF0F1;  /* light gray */
  --text-color: #34495E;  /* dark gray */
  --white: #FFFFFF;
  --box-shadow: 0 4px 6px rgba(0,0,0,0.1);
  --transition: all 0.3s ease;
}

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

h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
  margin-bottom: 20px;
  color: var(--primary-color);
}

h1 {
  font-size: 48px;
}

h2 {
  font-size: 32px;
}

h3 {
  font-size: 24px;
}

a {
  color: var(--secondary-color);
  text-decoration: none;
  transition: var(--transition);
}

a:hover {
  color: var(--accent-color);
}

.section {
  padding: 80px 0;
}

.btn {
  padding: 10px 24px;
  font-size: 16px;
  text-transform: uppercase;
  border-radius: 8px;
  font-weight: 600;
  letter-spacing: 0.5px;
  transition: var(--transition);
}

.btn-primary {
  background-color: var(--secondary-color);
  border-color: var(--secondary-color);
  color: var(--white);
}

.btn-primary:hover {
  background-color: var(--primary-color);
  border-color: var(--primary-color);
}

.btn-accent {
  background-color: var(--accent-color);
  border-color: var(--accent-color);
  color: var(--white);
}

.btn-accent:hover {
  background-color: #c73c2d;
  border-color: #c73c2d;
}

/* Header Styles */
.header {
  background-color: var(--primary-color);
  padding: 15px 0;
  position: sticky;
  top: 0;
  z-index: 1000;
}

.logo {
  font-family: 'Montserrat', sans-serif;
  font-size: 26px;
  font-weight: 700;
  color: var(--primary-color);
}

.nav-link {
  color: var(--primary-color);
  margin: 0 12px;
  font-weight: 600;
  position: relative;
}

.nav-link:after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  background-color: var(--secondary-color);
  bottom: -5px;
  left: 0;
  transition: var(--transition);
}

.nav-link:hover, .nav-link.active {
  color: var(--secondary-color);
}

.nav-link:hover:after, .nav-link.active:after {
  width: 100%;
}

/* Language Selector Styles */
.language-selector .dropdown-toggle {
  text-transform: uppercase;
  font-weight: 600;
}

.language-selector .dropdown-menu {
  min-width: 100px;
  border-radius: 4px;
  box-shadow: var(--box-shadow);
  border: none;
  padding: 0.5rem 0;
  margin-top: 0.5rem;
}

.language-selector .dropdown-item {
  padding: 0.5rem 1rem;
  font-size: 0.9rem;
  transition: var(--transition);
}

.language-selector .dropdown-item:hover,
.language-selector .dropdown-item.active {
  background-color: var(--secondary-color);
  color: var(--white);
}

/* Hero Section */
.hero {
  background: linear-gradient(to right, var(--primary-color), var(--text-color));
  color: var(--white);
  padding: 120px 0;
}

.hero h1 {
  color: var(--white);
  margin-bottom: 20px;
}

.hero p {
  font-size: 24px;
  margin-bottom: 30px;
}

.hero-img {
  border-radius: 50%;
  width: 280px;
  height: 280px;
  object-fit: cover;
  object-position: center 0;
  border: 5px solid var(--white);
  box-shadow: var(--box-shadow);
  transform: scale(1.2);
}

/* Services Section */
.services .card {
  padding: 30px;
  margin-bottom: 30px;
  border: none;
  box-shadow: var(--box-shadow);
  height: 100%;
  transition: var(--transition);
}

.services .card:hover {
  transform: translateY(-5px);
  border-bottom: 3px solid var(--secondary-color);
}

.services .icon {
  font-size: 40px;
  color: var(--secondary-color);
  margin-bottom: 20px;
}

/* About Section */
.about-img {
  border-radius: 10px;
  box-shadow: var(--box-shadow);
}

/* Portfolio Section */
.portfolio-card {
  position: relative;
  overflow: hidden;
  margin-bottom: 30px;
  border-radius: 10px;
  box-shadow: var(--box-shadow);
}

.portfolio-img {
  width: 100%;
  height: 250px;
  object-fit: cover;
  transition: var(--transition);
}

.portfolio-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(24, 188, 156, 0.9);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  opacity: 0;
  transition: var(--transition);
}

.portfolio-card:hover .portfolio-img {
  transform: scale(1.1);
}

.portfolio-card:hover .portfolio-overlay {
  opacity: 1;
}

.portfolio-title {
  color: var(--white);
  font-size: 22px;
  margin-bottom: 10px;
}

.portfolio-category {
  color: var(--white);
  font-size: 16px;
}

/* Contact Section */
.contact-form .form-control {
  padding: 12px 15px;
  border-radius: 8px;
  border: 1px solid rgba(0, 0, 0, 0.1);
  margin-bottom: 15px;
}

.contact-info {
  background-color: var(--primary-color);
  color: var(--white);
  padding: 30px;
  border-radius: 10px;
  height: 100%;
}

.contact-info .d-flex {
  align-items: center;
  margin-bottom: 20px;
}

.contact-info i {
  width: 40px;
  height: 40px;
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  margin-right: 15px;
  margin-top: 0;
}

.contact-info .contact-text {
  display: flex;
  flex-direction: column;
}

.contact-info h4 {
  margin-bottom: 5px;
  margin-top: 0;
}

.contact-info p {
  margin-bottom: 0;
  line-height: 1.4;
}

/* Footer */
.footer {
  background-color: var(--primary-color);
  color: var(--white);
  padding: 40px 0 20px;
}

.footer a {
  color: var(--white);
}

.footer a:hover {
  color: var(--secondary-color);
}

.footer-social i {
  font-size: 24px;
  margin-right: 15px;
}

.footer-links {
  list-style: none;
  padding-left: 0;
}

.footer-links li {
  margin-bottom: 10px;
}

.footer-bottom {
  padding-top: 20px;
  margin-top: 20px;
  border-top: 1px solid rgba(255,255,255,0.1);
}

/* Timeline (for About page) */
.timeline {
  position: relative;
  padding: 0;
  list-style: none;
  margin-bottom: 30px;
}

.timeline:before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 2px;
  margin-left: -1px;
  background-color: var(--primary-color);
}

.timeline-item {
  position: relative;
  margin-bottom: 50px;
  min-height: 50px;
  clear: both;
}

.timeline-panel {
  position: relative;
  width: 46%;
  float: left;
  text-align: right;
  padding: 20px;
  background: var(--white);
  border-radius: 10px;
  box-shadow: var(--box-shadow);
  z-index: 10;
}

.timeline-item:nth-child(even) .timeline-panel {
  float: right;
  text-align: left;
}

.timeline-badge {
  position: absolute;
  width: 20px;
  height: 20px;
  left: 50%;
  top: 15px;
  margin-left: -10px;
  border-radius: 50%;
  background-color: var(--secondary-color);
  z-index: 100;
  box-shadow: var(--box-shadow);
}

.timeline-item:after {
  content: "";
  display: table;
  clear: both;
}

.timeline-heading h3 {
  margin-top: 0;
  color: var(--primary-color);
}

.timeline-heading p {
  margin-bottom: 10px;
  color: var(--text-muted);
}

/* Fancy Elements */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.fade-in.active {
  opacity: 1;
  transform: translateY(0);
}

.back-to-top {
  position: fixed;
  bottom: 20px;
  right: 20px;
  width: 40px;
  height: 40px;
  background-color: var(--accent-color);
  color: var(--white);
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  opacity: 0;
  transition: var(--transition);
  z-index: 99;
}

.back-to-top.active {
  opacity: 1;
}

/* Portfolio Stats */
.portfolio-stats .stat-box {
  background-color: var(--white);
  padding: 20px;
  border-radius: 10px;
  box-shadow: var(--box-shadow);
  text-align: center;
  height: 100%;
  transition: transform 0.3s ease;
}

.portfolio-stats .stat-box:hover {
  transform: translateY(-5px);
}

.portfolio-stats .stat-box h3 {
  color: var(--primary-color);
  font-size: 36px;
  margin-bottom: 5px;
}

.portfolio-stats .stat-box p {
  margin-bottom: 0;
  color: var(--text-muted);
}

/* Industry Tags */
.industry-box {
  background-color: var(--white);
  padding: 20px;
  border-radius: 10px;
  box-shadow: var(--box-shadow);
}

.industry-tag {
  display: inline-block;
  background-color: var(--primary-color);
  color: var(--white);
  padding: 8px 15px;
  border-radius: 20px;
  margin-right: 10px;
  margin-bottom: 10px;
  font-size: 14px;
  transition: background-color 0.3s ease;
}

.industry-tag:hover {
  background-color: var(--secondary-color);
}

/* Fixed header for single-page layout */
.header.fixed-top {
  background-color: transparent;
  transition: all 0.3s ease;
  padding: 15px 0;
}

.header.fixed-top .logo,
.header.fixed-top .nav-link {
  color: var(--primary-color);
}

.header.fixed-top .btn-accent {
  background-color: var(--secondary-color);
  border-color: var(--secondary-color);
  color: var(--white);
}

.header.fixed-top .btn-accent:hover {
  background-color: transparent;
  color: var(--secondary-color);
}

.header.fixed-top.scrolled {
  background-color: var(--white);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  padding: 10px 0;
}

.header.fixed-top.scrolled .logo,
.header.fixed-top.scrolled .nav-link {
  color: var(--primary-color);
}

.header.fixed-top.scrolled .nav-link:hover,
.header.fixed-top.scrolled .nav-link.active {
  color: var(--secondary-color);
}

.header.fixed-top.scrolled .btn-accent {
  background-color: var(--secondary-color);
  border-color: var(--secondary-color);
}

.header.fixed-top.scrolled .btn-accent:hover {
  background-color: var(--primary-color);
  border-color: var(--primary-color);
}
