/* Reset and base styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  scroll-behavior: smooth;
}

@import url('https://fonts.googleapis.com/css2?family=Orbitron:wght@400;700&display=swap');

body {
  font-family: 'Orbitron', sans-serif;
  background-color: #000;
  color: #fff;
  overflow-x: hidden;
}

/* Sidebar styles */
.sidebar {
  position: fixed;
  left: 0;
  top: 0;
  width: 240px;
  height: 100vh;
  background: radial-gradient(circle at 60% 40%, #162447 60%, #0f3460 100%);
  box-shadow: 0 0 20px 10px #0f3460, 2px 0 12px rgba(240, 235, 235, 0.514);
  color: #ffffff;
  display: flex;
  flex-direction: column;
  align-items: center;
  z-index: 200;
  transition: transform 0.3s;
  border-right: 2px solid #141414;
}

.sidebar-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-top: 32px;
  margin-bottom: 32px;
}

.sidebar-profile {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  border: 2px solid #f3f3f3;
  margin-bottom: 12px;
  object-fit: cover;
}

.sidebar-name {
  font-weight: bold;
  font-size: 1.1rem;
  text-align: center;
}

.sidebar-nav {
  flex: 1;
  display: flex;
  align-items: center;
}

.sidebar-nav ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.sidebar-nav a {
  color: #ebe8e8;
  text-decoration: none;
  font-size: 1.05rem;
  transition: color 0.2s;
}

.sidebar-nav a:hover {
  color: #ecc01f;
}

.sidebar-nav a.active {
  color: #ecc01f;
  font-weight: bold;
  background: rgba(0, 217, 255, 0.08);
  border-radius: 8px;
  padding: 6px 16px;
  transition: background 0.2s, color 0.2s;
}

.sidebar-footer {
  margin-bottom: 32px;
  width: 100%;
}

.hireme-button {
  background: #000;
  color: #fff;
  font-size: 18px;
  padding: 14px 0;
  margin: 10px 20px;
  border-radius: 0 0 24px 24px;
  border: none;
  font-weight: bold;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
  width: 80%;

  display: block;
  text-align: center;
  box-sizing: border-box;
}

.hireme-button:hover {
  background: #181818;
  color: #ffd600;
}

/* Hamburger menu button */
.sidebar-toggle {
  display: none;
  position: fixed;
  top: 18px;
  left: 18px;
  background: #0f3460;
  border: none;
  color: #fff;
  font-size: 2.2rem;
  cursor: pointer;
  z-index: 300;
  border-radius: 8px;
  padding: 4px 12px;
  box-shadow: 0 2px 8px #0f346088;
  transition: background 0.2s;
}

.sidebar-toggle:active,
.sidebar-toggle:focus {
  background: #162447;
}

/* Main content */
.content {
  margin-left: 240px;
  width: calc(100% - 240px);
  transition: margin-left 0.3s, width 0.3s;
}

section {
  height: 100vh;
  padding: 40px;
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
}

/* Example Backgrounds for Sections */
#projects { background: #0f3460; }
#certificates { background: #53354a; }
#contact { background: #2c2e43; }

.section-intro {
  position: relative;
  min-height: 100vh;
  background: linear-gradient(to bottom right, #ffffff, #c7c2c2);
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 40px 20px;
  overflow: hidden;
}

/* Code lines in background */
.code-background {
  position: absolute;
  top: 10%;
  left: 5%;
  width: 90%;
  max-height: 80%;
  font-family: 'Courier New', monospace;
  font-size: 16px;
  color: rgba(172, 172, 172, 0.408);
  z-index: 0;
  pointer-events: none;
  white-space: pre-wrap;
  line-height: 1.8;
}

.code-background pre {
  filter: blur(0.9px);
  background: none;
  margin: 0;
  padding: 0;
}

/* Layout */
.intro-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 40px;
  flex-wrap: wrap;
  max-width: 1200px;
  margin: auto;
  z-index: 1;
  position: relative;
}

.intro-text {
  flex: 1 1 400px;
}

.intro-text h1 {
  font-size: 52px;
  color: #313131;
}

.intro-text p {
  font-size: 20px;
  color: #1a1a1adb;
  margin-top: 10px;
}

/* Right Photo */
.intro-photo {
  flex: 1 1 250px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.photo-glow {
  width: 250px;
  height: 250px;
  border-radius: 50%;
  padding: 8px;
  background: radial-gradient(circle, #041b20, #0d1b2a);
  box-shadow: 0 0 25px #636667;
  display: flex;
  justify-content: center;
  align-items: center;
}

.intro-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
  border: 4px solid #2f2f2f;
}

/* Social Icons */
.intro-social {
  margin-top: 40px;
  text-align: center;
  display: flex;
  justify-content: center;
  gap: 30px;
  z-index: 1;
  position: relative;
}

.intro-social a {
  width: 50px;
  height: 50px;
  background: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.3s ease, background 0.3s ease;
  box-shadow: 0 0 10px #3c3c3caa;
}

.intro-social a:hover {
  transform: scale(1.2);
  box-shadow: 0 0 15px #000000aa;
  filter: brightness(0.8);
}

.intro-social img {
  width: 24px;
  height: 24px;
  filter: brightness(0);
}

.intro-buttons {
  margin-top: 30px;
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

/* Shared button style */
.button {
  padding: 12px 24px;
  border: none;
  text-decoration: none;
  font-size: 11px;
  font-weight: bold;
  color: #fff;
  border-radius: 10px;
  box-shadow: 0 0 10px rgba(0,255,255,0.15);
  transition: all 0.3s ease;
  text-align: center;
}

/* CV Button */
.cv-button {
  background: #0f3460;
}

.cv-button:hover {
  background: #1a4fa0;
  transform: scale(1.05);
}

/* WhatsApp Button */
.whatsapp-button {
  background: #25D366;
}

.whatsapp-button:hover {
  background: #1ebc58;
  transform: scale(1.05);
}

/* Timeline/Education Section */
.education-section {
  background: #0f0f1b;
  font-size: 14px;
  padding: 80px 20px;
  position: relative;
  color: white;
  font-family: Arial, Helvetica, sans-serif;
}

.section-title {
  text-align: center;
  font-family: 'Orbitron', sans-serif;
  font-size: 36px;
  margin-bottom: 60px;
  margin-left: 30px;
  color: #00d9ff;
  padding-left: 60px;
}

.timeline {
  position: relative;
  max-width: 1000px;
  margin: auto;
  padding-left: 20px;
  border-left: 2px solid #00d9ff88;
}

.timeline-item {
  position: relative;
  margin-bottom: 60px;
  padding-left: 40px;
}

.timeline-dot {
  width: 14px;
  height: 14px;
  background-color: #00d9ff;
  border-radius: 50%;
  position: absolute;
  left: -8px;
  top: 5px;
  box-shadow: 0 0 12px #00d9ff88;
}

.timeline-content {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(0, 217, 255, 0.2);
  border-radius: 16px;
  padding: 20px 30px;
  box-shadow: 0 0 12px rgba(0, 217, 255, 0.1);
  backdrop-filter: blur(10px);
}

.timeline-content h3 {
  font-family: 'Orbitron', sans-serif;
  font-size: 20px;
  color: #00d9ff;
  margin-bottom: 5px;
}

.timeline-content h4 {
  font-family: 'Orbitron', sans-serif;
  font-size: 14px;
  color: #a5f3fc;
  margin-bottom: 5px;
}

.timeline-date {
  display: block;
  font-size: 14px;
  color: #ccc;
  margin-bottom: 10px;
}

/* Responsive Styles */
@media (max-width: 1200px) {
  .intro-container {
    flex-direction: column-reverse;
    text-align: center;
    gap: 24px;
  }
  .content {
    margin-left: 240px;
    width: calc(100% - 240px);
  }
}

@media (max-width: 900px) {
  .sidebar {
    width: 200px;
  }
  .content {
    margin-left: 200px;
    width: calc(100% - 200px);
  }
}

@media (max-width: 700px) {
  .sidebar {
    position: fixed;
    top: 0;
    left: 0;
    width: 80vw;
    min-width: 180px;
    max-width: 320px;
    height: 100vh;
    transform: translateX(-100%);
    transition: transform 0.3s;
    box-shadow: 2px 0 12px rgba(0,0,0,0.2);
    z-index: 200;
  }
  .sidebar.open {
    transform: translateX(0);
  }
  .sidebar-toggle {
    display: block;
  }
  .content {
    margin-left: 0;
    width: 100vw;
  }
  /* Overlay for sidebar */
  .sidebar-backdrop {
    display: block;
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.4);
    z-index: 150;
    opacity: 1;
    transition: opacity 0.3s;
  }
}

@media (max-width: 768px) {
  .intro-container {
    flex-direction: column-reverse;
    text-align: center;
  }
  .intro-text h1 {
    font-size: 36px;
  }
  .intro-text p {
    font-size: 16px;
  }
  .photo-glow {
    width: 180px;
    height: 180px;
  }
  .intro-social img {
    width: 32px;
    height: 32px;
  }
  .section-title {
    font-size: 28px;
    padding-left: 0;
    margin-left: 0;
  }
  .timeline {
    padding-left: 10px;
  }
  .timeline-content {
    padding: 15px 20px;
  }
}

@media (max-width: 480px) {
  .intro-text h1 {
    font-size: 28px;
  }
  .intro-text p {
    font-size: 14px;
  }
  .photo-glow {
    width: 120px;
    height: 120px;
  }
  .intro-social {
    gap: 20px;
  }
  section {
    padding: 16px;
    font-size: 18px;
  }
}