/* RESET & VARIABLES */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --bg-dark: #0a0c10;
  --bg-sidebar: #11141c;
  --bg-card: #181c27;
  --primary-glow: #00f2fe;
  --secondary-glow: #4facfe;
  --accent-pink: #ff2a85;
  --text-main: #f0f4f8;
  --text-muted: #8e9bb0;
  --sidebar-width: 290px;
}

html {
  scroll-behavior: smooth;
}

body {
  background-color: var(--bg-dark);
  color: var(--text-main);
  font-family: 'Plus Jakarta Sans', sans-serif;
  display: flex;
  min-height: 100vh;
  overflow-x: hidden;
}

h1, h2, h3, h4, .section-title {
  font-family: 'Space Grotesk', sans-serif;
}

a {
  color: inherit;
  text-decoration: none;
}

/* BACKGROUND CANVAS */
#particleCanvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  z-index: 1;
  opacity: 0.35;
}

/* MOBILE TOGGLE */
.mobile-toggle {
  display: none;
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 200;
  background: linear-gradient(135deg, var(--primary-glow), var(--accent-pink));
  color: #fff;
  border: none;
  width: 48px;
  height: 48px;
  border-radius: 12px;
  font-size: 1.2rem;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 15px rgba(255, 42, 133, 0.4);
}

/* SIDEBAR */
aside.sidebar {
  width: var(--sidebar-width);
  background-color: var(--bg-sidebar);
  position: fixed;
  top: 0;
  bottom: 0;
  left: 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  padding: 35px 20px;
  z-index: 100;
  border-right: 1px solid rgba(255, 255, 255, 0.05);
  transition: transform 0.3s ease;
}

.sidebar-profile {
  text-align: center;
}

.avatar-glow {
  position: relative;
  width: 130px;
  height: 130px;
  margin: 0 auto 15px auto;
  border-radius: 50%;
  padding: 4px;
  background: linear-gradient(135deg, var(--primary-glow), var(--accent-pink));
  box-shadow: 0 0 20px rgba(0, 242, 254, 0.3);
}

.avatar-glow img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
}

.sidebar-profile h2 {
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.5px;
}

.sidebar-profile .tagline {
  font-size: 0.8rem;
  color: var(--primary-glow);
  margin-top: 4px;
  font-weight: 600;
}

.sidebar-nav {
  width: 100%;
}

.sidebar-nav ul {
  list-style: none;
}

.sidebar-nav li {
  margin: 8px 0;
}

.sidebar-nav a {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.95rem;
  color: var(--text-muted);
  padding: 10px 18px;
  border-radius: 10px;
  transition: all 0.3s ease;
}

.sidebar-nav a:hover,
.sidebar-nav a.active {
  color: #fff;
  background: rgba(0, 242, 254, 0.1);
  border-left: 3px solid var(--primary-glow);
}

.sidebar-nav a i {
  font-size: 1.1rem;
}

.sidebar-footer {
  text-align: center;
}

.social-links {
  display: flex;
  gap: 10px;
  justify-content: center;
  margin-bottom: 12px;
}

.social-links a {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.05);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-main);
  transition: all 0.3s ease;
}

.social-links a:hover {
  background: var(--primary-glow);
  color: #000;
  transform: translateY(-3px);
}

.copyright {
  font-size: 0.75rem;
  color: var(--text-muted);
}

/* MAIN CONTENT */
main.main-content {
  margin-left: var(--sidebar-width);
  flex: 1;
  padding: 0 60px;
  position: relative;
  z-index: 2;
}

section {
  padding: 90px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.section-title {
  font-size: 2.2rem;
  margin-bottom: 30px;
}

.section-title span {
  background: linear-gradient(135deg, var(--primary-glow), var(--accent-pink));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.section-description {
  color: var(--text-muted);
  line-height: 1.8;
  font-size: 1.05rem;
  max-width: 780px;
}

/* GRADIENTS & BUTTONS */
.gradient-text {
  background: linear-gradient(135deg, var(--primary-glow), var(--accent-pink));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 30px;
  font-weight: 600;
  transition: all 0.3s ease;
  font-size: 0.95rem;
}

.btn-glow {
  background: linear-gradient(135deg, var(--primary-glow), var(--secondary-glow));
  color: #000;
  box-shadow: 0 0 20px rgba(0, 242, 254, 0.3);
}

.btn-glow:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 30px rgba(0, 242, 254, 0.5);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: var(--text-main);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.1);
}

/* HERO SECTION */
#home {
  min-height: 100vh;
  display: flex;
  align-items: center;
}

.hero-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  gap: 50px;
}

.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  background: rgba(0, 242, 254, 0.08);
  border: 1px solid rgba(0, 242, 254, 0.2);
  border-radius: 20px;
  font-size: 0.85rem;
  color: var(--primary-glow);
  margin-bottom: 20px;
}

.pulse-dot {
  width: 8px;
  height: 8px;
  background: var(--primary-glow);
  border-radius: 50%;
  box-shadow: 0 0 10px var(--primary-glow);
  animation: pulse 1.5s infinite;
}

@keyframes pulse {
  0% { transform: scale(0.95); opacity: 0.8; }
  50% { transform: scale(1.3); opacity: 1; }
  100% { transform: scale(0.95); opacity: 0.8; }
}

.hero-text h1 {
  font-size: 3.1rem;
  line-height: 1.15;
  margin-bottom: 15px;
}

.typewriter-container {
  font-size: 1.25rem;
  color: var(--text-muted);
  margin-bottom: 25px;
  height: 30px;
}

#typewriter {
  color: var(--primary-glow);
  font-weight: 600;
}

.cursor {
  animation: blink 0.7s infinite;
  color: var(--accent-pink);
}

@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}

.hero-stats {
  display: flex;
  gap: 25px;
  margin-bottom: 30px;
}

.stat-box {
  display: flex;
  flex-direction: column;
}

.stat-number {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-main);
  font-family: 'Space Grotesk', sans-serif;
}

.stat-label {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.hero-btns {
  display: flex;
  gap: 15px;
}

.hero-img {
  flex: 1;
  position: relative;
}

.floating-card {
  position: relative;
  width: 330px;
  margin: 0 auto;
}

.floating-card img {
  width: 100%;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 20px 40px rgba(0,0,0,0.6);
}

.badge {
  position: absolute;
  padding: 10px 16px;
  background: rgba(17, 20, 28, 0.9);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  font-size: 0.85rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 10px 20px rgba(0,0,0,0.4);
}

.badge-1 { top: 20px; left: -30px; color: var(--primary-glow); }
.badge-2 { bottom: 30px; right: -30px; color: var(--accent-pink); }

/* ABOUT DETAILS */
.about-details {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin-top: 35px;
  background: var(--bg-card);
  padding: 30px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.about-item .label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.about-item .value {
  font-size: 1.05rem;
  font-weight: 600;
  margin-top: 6px;
  display: block;
}

/* TIMELINE (PROFESSIONAL EXPERIENCE) */
.timeline {
  position: relative;
  border-left: 2px solid rgba(0, 242, 254, 0.3);
  margin-left: 10px;
  padding-left: 30px;
}

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

.timeline-item:last-child {
  margin-bottom: 0;
}

.timeline-dot {
  position: absolute;
  left: -37px;
  top: 5px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--accent-pink);
  box-shadow: 0 0 10px var(--accent-pink);
}

.timeline-date {
  font-size: 0.85rem;
  color: var(--primary-glow);
  font-weight: 700;
  margin-bottom: 6px;
}

.timeline-content {
  background: var(--bg-card);
  padding: 25px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.timeline-content h3 {
  font-size: 1.25rem;
}

.timeline-content .company {
  display: inline-block;
  font-size: 0.88rem;
  color: var(--text-muted);
  margin: 4px 0 12px 0;
}

.timeline-content p {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.6;
}

/* SKILLS GRID */
.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
  gap: 20px;
}

.skill-card {
  background: var(--bg-card);
  padding: 22px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.05);
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 600;
  transition: all 0.3s ease;
}

.skill-card i {
  color: var(--primary-glow);
  font-size: 1.3rem;
}

.skill-card:hover {
  transform: translateY(-5px);
  border-color: var(--primary-glow);
  background: rgba(0, 242, 254, 0.03);
}

/* SERVICES GRID */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 30px;
}

.service-card {
  background: var(--bg-card);
  padding: 35px 25px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.05);
  transition: all 0.3s ease;
}

.service-card .icon-wrapper {
  width: 55px;
  height: 55px;
  border-radius: 12px;
  background: rgba(255, 42, 133, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}

.service-card i {
  font-size: 1.6rem;
  color: var(--accent-pink);
}

.service-card h3 {
  font-size: 1.25rem;
  margin-bottom: 12px;
}

.service-card p {
  color: var(--text-muted);
  font-size: 0.92rem;
  line-height: 1.6;
}

.service-card:hover {
  transform: translateY(-8px);
  border-color: rgba(255, 42, 133, 0.4);
}

/* PORTFOLIO GRID */
.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 25px;
}

.portfolio-item {
  position: relative;
  background: var(--bg-card);
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.05);
  transition: all 0.3s ease;
  cursor: pointer;
}

.portfolio-item img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.video-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 200px;
  background: rgba(0, 0, 0, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
  opacity: 0.8;
  transition: opacity 0.3s ease;
}

.play-btn {
  font-size: 3rem;
  color: var(--primary-glow);
  transition: transform 0.3s ease;
}

.portfolio-item:hover .play-btn {
  transform: scale(1.2);
  color: var(--accent-pink);
}

.portfolio-info {
  padding: 20px;
  position: relative;
  z-index: 3;
}

.portfolio-info .category {
  font-size: 0.75rem;
  color: var(--primary-glow);
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: 700;
}

.portfolio-info h4 {
  font-size: 1.05rem;
  margin-top: 5px;
}

.portfolio-item:hover img {
  transform: scale(1.05);
}

/* CONTACT BOX */
.contact-box {
  background: var(--bg-card);
  padding: 45px 30px;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.05);
  text-align: center;
}

.contact-box p {
  margin: 0 auto 30px auto;
}

/* RESPONSIVE DESIGN */
@media (max-width: 992px) {
  .mobile-toggle { display: flex; }
  aside.sidebar { transform: translateX(-100%); }
  aside.sidebar.active { transform: translateX(0); }
  main.main-content { margin-left: 0; padding: 0 25px; }
  .hero-container { flex-direction: column; text-align: center; }
  .typewriter-container { justify-content: center; }
  .hero-stats { justify-content: center; }
  .hero-btns { justify-content: center; }
  .about-details { grid-template-columns: 1fr; }
}

.btn-view-more:hover {
  background: var(--primary-color, #00f0ff) !important;
  color: #000 !important;
  box-shadow: 0 0 25px rgba(0, 240, 255, 0.6) !important;
  transform: translateY(-2px);
}

/* 2x2 Blog Layout Style */
.blog-grid-2x2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr); /* 2 Columns across 2 Rows = 4 Posts */
  gap: 30px;
  margin-top: 30px;
}

.blog-item {
  transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.blog-item:hover {
  transform: translateY(-5px);
  border-color: rgba(0, 242, 254, 0.4) !important;
  box-shadow: 0 10px 25px rgba(0, 242, 254, 0.15);
}

.blog-item:hover img {
  transform: scale(1.05);
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
  .blog-grid-2x2 {
    grid-template-columns: 1fr; /* Switch to single column on small screens */
  }
}