/*
Theme Name: Dachimsafi Premium
Description: Premium modern portfolio theme matching Dachimsafi design - dark, gradient, expandable menu, mobile-friendly.
Author: BLACKBOXAI
Version: 1.0
*/

@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&family=Montserrat:wght@400;500;700&display=swap');

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Poppins', sans-serif;
  background: linear-gradient(135deg, #0a0a0a 0%, #1a1a2e 50%, #16213e 100%);
  color: #ffffff;
  line-height: 1.6;
  overflow-x: hidden;
}

a { text-decoration: none; color: inherit; }

/* Header & Nav */
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background: rgba(10,10,10,0.95);
  backdrop-filter: blur(10px);
}

.hamburger {
  display: none;
  flex-direction: column;
  cursor: pointer;
  padding: 20px;
}

.hamburger span {
  width: 25px;
  height: 3px;
  background: #6a4bc9;
  margin: 3px 0;
  transition: 0.3s;
}

nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 5%;
}

nav ul {
  display: flex;
  list-style: none;
}

nav li {
  margin-left: 3rem;
  position: relative;
  cursor: pointer;
}

nav li::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, #6a4bc9, #ff6b9d);
  transition: width 0.3s;
}

nav li:hover::after { width: 100%; }

/* Sidebar for mobile */
.sidebar {
  position: fixed;
  top: 0;
  left: -100%;
  width: 300px;
  height: 100vh;
  background: rgba(26,26,46,0.98);
  backdrop-filter: blur(20px);
  transition: left 0.3s ease;
  z-index: 999;
  padding: 100px 20px;
}

.sidebar.active { left: 0; }

.sidebar ul {
  list-style: none;
}

.sidebar li {
  margin: 2rem 0;
  font-size: 1.2rem;
}

.sidebar-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease;
}

.sidebar-content.active {
  max-height: 500px; /* Adjust as needed */
}

/* Sections */
section {
  padding: 100px 5%;
  min-height: 100vh;
}

.hero {
  background: radial-gradient(ellipse at center, rgba(106,75,201,0.3) 0%, transparent 70%);
  display: flex;
  align-items: center;
  text-align: center;
  position: relative;
}

.hero h1 {
  font-family: 'Montserrat', sans-serif;
  font-size: clamp(3rem, 8vw, 6rem);
  background: linear-gradient(135deg, #ffffff, #ff6b9d);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 1rem;
}

.tagline { font-size: 1.5rem; opacity: 0.9; }

/* Services Grid */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-top: 4rem;
}

.service-card {
  background: rgba(255,255,255,0.05);
  backdrop-filter: blur(10px);
  border-radius: 20px;
  padding: 2rem;
  text-align: center;
  transition: transform 0.3s, box-shadow 0.3s;
  border: 1px solid rgba(106,75,201,0.2);
}

.service-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 40px rgba(106,75,201,0.3);
}

.service-icon { font-size: 4rem; color: #6a4bc9; margin-bottom: 1rem; }

/* Skills */
.skills-container {
  margin-top: 4rem;
}

.skill-bar {
  margin: 2rem 0;
}

.skill-name { margin-bottom: 0.5rem; font-weight: 500; }

.skill-progress {
  height: 10px;
  background: rgba(255,255,255,0.1);
  border-radius: 5px;
  overflow: hidden;
}

.skill-fill {
  height: 100%;
  background: linear-gradient(90deg, #6a4bc9, #ff6b9d);
  border-radius: 5px;
  transition: width 2s ease;
  width: 0;
}

.skill-fill.animate { width: var(--width); }

/* Contact */
.contact-info { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 2rem; }

.contact-item { text-align: center; }

/* Mobile Responsive */
@media (max-width: 768px) {
  .hamburger { display: flex; }

  nav ul { display: none; }

  section { padding: 80px 5%; }

  .services-grid { grid-template-columns: 1fr; }
}

/* Animations */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}

section { animation: fadeInUp 1s ease; }
