:root {
  --accent-color: #1877f2;
  --bg-color: #f0f2f5;
  --card-bg: #fff;
  --text-color: #111;
  --subtext-color: #65676b;
}

/* Body və arxa plan */
body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  margin: 0;
  padding: 0;
  color: var(--text-color);
  background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
}

/* Banner */
.banner {
  position: relative;
  width: 100%;
  height: 250px;
  background: url('https://encrypted-tbn0.gstatic.com/images?q=tbn:ANd9GcT5H6hOmnz3I9pKF7YtneBZjhsZ6UnT98Icmg&s') center/cover no-repeat;
}



/* Portfolio Container */
.portfolio-container {
  max-width: 900px;
  margin: -50px auto 40px auto;
  padding: 30px;
  background: var(--card-bg);
  border-radius: 12px;
  box-shadow: 0 6px 25px rgba(0,0,0,0.15);
  position: relative;
  text-align: center;
}

/* Profile Avatar */
.profile-avatar {
  position: absolute;
  top: -60px;
  left: 50%;
  transform: translateX(-50%);
  width: 120px;
  height: 120px;
  border: 4px solid var(--bg-color);
  border-radius: 50%;
  overflow: hidden;
  background: #fff;
  transition: transform 0.3s;
}
.profile-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.profile-avatar:hover { transform: translateX(-50%) scale(1.05); }

/* Header */
.header-card {
  margin-top: 50px;
}
.header-card h1 {
  margin: 0 0 5px 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
}
.header-card h1 i {
  color: var(--accent-color);
  margin-left: 8px;
  font-size: 22px;
}
.header-card p {
  color: var(--subtext-color);
  margin: 0 0 20px 0;
  font-size: 16px;
}

/* Nav Buttons */
.nav-buttons {
  margin-bottom: 25px;
}
.nav-buttons a, .nav-buttons button {
  display: inline-block;
  margin: 5px 10px;
  padding: 12px 18px;
  color: #fff;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  transition: transform 0.3s, opacity 0.3s;
}
.nav-buttons a.phone { background: #25D366; }
.nav-buttons a.whatsapp { background: #128C7E; }
.nav-buttons a.email { background: #D44638; }
.nav-buttons a.cv { background: #333; }
.nav-buttons a.vcard { background: var(--accent-color); }
.nav-buttons a.site-btn { background: #20c997; }
.nav-buttons button.share-btn { background: #6f42c1; }

.nav-buttons a:hover, .nav-buttons button:hover {
  transform: scale(1.05);
  opacity: 0.9;
}
.nav-buttons .share-btn i { margin-right: 6px; }

/* Accordion */
.accordion-item {
  margin-bottom: 12px;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 3px 8px rgba(0,0,0,0.05);
}
.accordion-header {
  width: 100%;
  background: var(--accent-color);
  color: #fff;
  padding: 14px 22px;
  border: none;
  outline: none;
  cursor: pointer;
  font-size: 18px;
  display: flex;
  align-items: center;
  gap: 12px;
  transition: 0.3s;
}
.accordion-header i { flex-shrink: 0; }
.accordion-header.active { background: #145dbf; }
.accordion-content {
  background: var(--card-bg);
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.5s ease;
  padding: 0 22px;
}
.accordion-content p {
  margin: 12px 0;
  font-size: 15px;
  line-height: 1.6;
}

/* Social Buttons */
.social-buttons {
  margin-top: 30px;
}
.social-buttons a {
  display: inline-block;
  margin: 5px;
  padding: 10px 14px;
  color: #fff;
  border-radius: 6px;
  text-decoration: none;
  font-weight: bold;
  transition: transform 0.3s, box-shadow 0.3s;
}
.social-buttons a.instagram { background: #E1306C; }
.social-buttons a.linkedin { background: #0077B5; }
.social-buttons a.telegram { background: #0088cc; }
.social-buttons a.facebook { background: #1877f2; }
.social-buttons a:hover { transform: scale(1.1); box-shadow: 0 4px 12px rgba(0,0,0,0.2); }

/* QR kod bölməsi */
.qr-code {
  text-align: center;
  margin-top: 35px;
}
.qr-code img {
  width: 150px;
  height: 150px;
  border-radius: 12px;
  box-shadow: 0 6px 18px rgba(0,0,0,0.25);
  margin-bottom: 10px;
}
.qr-code p {
  color: var(--subtext-color);
  font-size: 14px;
  margin: 0;
}

/* Main Navigation */
.main-nav {
  width: 100%;
  background: rgba(255,255,255,0.95);
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
  position: fixed;
  top: 0;
  z-index: 1000;
}
.nav-container {
  max-width: 900px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 5px 20px;
}
.nav-container .logo {
  font-weight: bold;
  font-size: 20px;
  color: var(--accent-color);
}
.nav-links {
  list-style: none;
  display: flex;
  gap: 20px;
}
.nav-links li a {
  text-decoration: none;
  color: var(--text-color);
  font-weight: 500;
  transition: 0.3s;
}
.nav-links li a:hover { color: var(--accent-color); }

/* Hamburger */
.hamburger {
  display: none;
  font-size: 28px;
  cursor: pointer;
  color: var(--accent-color);
}

/* Responsive */
@media(max-width: 800px){
  .nav-links {
    position: fixed;
    top: 60px;
    right: -250px;
    width: 200px;
    background: var(--card-bg);
    flex-direction: column;
    padding: 15px;
    gap: 15px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    transition: right 0.3s ease;
    z-index: 1001;
  }
  .nav-links.active { right: 20px; }
  .hamburger { display: block; }
}



.page-views {
  position: absolute;
  top: 80px;
  right: 20px;
  background: rgba(0,0,0,0.6);
  color: #fff;
  padding: 6px 12px;
  border-radius: 12px;
  font-weight: bold;
  font-size: 14px;
}









/* Light theme default */
body {
  background: #f0f2f5;
  color: #111;
  transition: all 0.3s ease;
}

.portfolio-container {
  background: #fff;
  transition: all 0.3s ease;
}

.nav-buttons a, .nav-buttons button {
  transition: all 0.3s ease;
}

/* Dark mode */
body.dark {
  background: #121212;
  color: #f0f0f0;
}

body.dark .portfolio-container {
  background: #1e1e1e;
}

body.dark .nav-buttons a,
body.dark .nav-buttons button {
  background: #4e94ff;
  color: #fff;
}

/* Dark mode toggle button styling */
.dark-mode-toggle {
  text-align: center;
  margin-top: 20px;
}

#darkModeBtn {
  padding: 10px 20px;
  border: none;
  border-radius: 8px;
  background: #1877f2;
  color: #fff;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.3s ease;
}

#darkModeBtn:hover {
  opacity: 0.85;
  transform: scale(1.05);
}







.banner {
  position: relative;
  width: 100%;
  height: 250px;
  background: linear-gradient(rgba(0,0,0,0.3), rgba(0,0,0,0.3)), 
              url('https://www.offshore-technology.com/wp-content/uploads/sites/20/2020/10/Feature-Image-Top-ten-oil-and-gas-companies.jpg') center/cover no-repeat;
}









#backToTop {
  position: fixed;
  bottom: 20px;
  right: 20px;
  width: 50px;
  height: 50px;
  background: #1877f2;
  color: #fff;
  border: none;
  border-radius: 50%;
  font-size: 22px;
  cursor: pointer;

  opacity: 0;               /* Başda gizli */
  transform: scale(0);      /* Başda kiçik */
  pointer-events: none;

  transition: opacity 0.4s ease, transform 0.4s ease;
  z-index: 99999;
}

#backToTop.show {
  opacity: 1;
  transform: scale(1);      /* Böyüyərək görünür */
  pointer-events: auto;
}
