/* assets/css/style.css - Ultra-modern dark theme */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700;800&family=Inter:wght@400;500&display=swap');

:root {
  --bg-color: #050505; /* Deep onyx, no blue */
  --bg-color-lighter: #0a0a0a;
  --surface-color: rgba(255, 255, 255, 0.03);
  --border-color: rgba(255, 255, 255, 0.08);
  --primary-accent: #10b981; /* Emerald green */
  --primary-accent-glow: rgba(16, 185, 129, 0.4);
  --secondary-accent: #8b5cf6; /* Violet */
  --secondary-accent-glow: rgba(139, 92, 246, 0.4);
  --text-primary: #f8fafc;
  --text-secondary: #94a3b8;
  --font-heading: 'Poppins', sans-serif;
  --font-body: 'Inter', sans-serif;
  --transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
  --glass-bg: rgba(255, 255, 255, 0.03);
  --glass-border: rgba(255, 255, 255, 0.08);
  --glow-color: rgba(16, 185, 129, 0.2);
}

@keyframes gridMove {
  0% { background-position: 0 0; }
  100% { background-position: 50px 50px; }
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scrollbar-width: thin;
  scrollbar-color: var(--primary-accent) var(--bg-color);
}

html::-webkit-scrollbar {
  width: 8px;
}
html::-webkit-scrollbar-track {
  background: var(--bg-color);
}
html::-webkit-scrollbar-thumb {
  background-color: var(--primary-accent);
  border-radius: 4px;
}

body {
  font-family: var(--font-body);
  background-color: var(--bg-color);
  background-image: 
    linear-gradient(var(--border-color) 1px, transparent 1px),
    linear-gradient(90deg, var(--border-color) 1px, transparent 1px);
  background-size: 50px 50px;
  background-attachment: fixed;
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
  position: relative;
}

body::before {
  content: '';
  position: fixed;
  top: 0; left: 0; width: 100%; height: 100%;
  background: radial-gradient(circle at center, transparent 0%, var(--bg-color) 100%);
  pointer-events: none;
  z-index: 0;
}

/* Custom Cursor */
.cursor-dot, .cursor-outline {
  position: fixed;
  top: 0;
  left: 0;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  z-index: 9999;
  pointer-events: none;
}
.cursor-dot {
  width: 8px;
  height: 8px;
  background-color: var(--primary-accent);
}
.cursor-outline {
  width: 40px;
  height: 40px;
  border: 1px solid var(--primary-accent-glow);
  transition: width 0.2s, height 0.2s, background-color 0.2s;
}

/* Background Blobs */
.bg-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(100px);
  z-index: -1;
  animation: float 10s infinite alternate;
  opacity: 0.15;
}
.blob-1 {
  width: 500px;
  height: 500px;
  background: var(--primary-accent);
  top: -100px;
  left: -100px;
}
.blob-2 {
  width: 400px;
  height: 400px;
  background: var(--secondary-accent);
  bottom: 10%;
  right: -50px;
  animation-delay: -5s;
}

@keyframes float {
  0% { transform: translateY(0px) scale(1); }
  100% { transform: translateY(50px) scale(1.1); }
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  color: var(--text-primary);
}

.gradient-text {
  background: linear-gradient(135deg, var(--primary-accent), var(--secondary-accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
}

.section-title {
  font-size: 3.5rem;
  font-weight: 800;
  text-align: center;
  margin-bottom: 1.5rem;
  text-transform: uppercase;
  letter-spacing: 2px;
}
.section-subtitle {
  text-align: center;
  color: var(--text-secondary);
  font-size: 1.1rem;
  margin-bottom: 4rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

/* Layout */
.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
}

section {
  padding: 100px 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

/* Preloader */
#preloader {
  position: fixed;
  top: 0; left: 0; width: 100%; height: 100%;
  background: var(--bg-color);
  z-index: 10000;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: opacity 0.5s ease;
}
.loader {
  width: 50px;
  height: 50px;
  border: 3px solid rgba(255,255,255,0.1);
  border-radius: 50%;
  border-top-color: var(--primary-accent);
  animation: spin 1s ease-in-out infinite;
}
@keyframes spin {
  to { transform: rotate(360deg); }
}

/* Scroll Progress Bar */
#scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  width: 0%;
  height: 4px;
  background: linear-gradient(90deg, var(--primary-accent), var(--secondary-accent));
  z-index: 9998;
  box-shadow: 0 0 10px var(--primary-accent-glow);
}

/* Navigation */
header {
  position: fixed;
  top: 0;
  width: 100%;
  padding: 20px 0;
  z-index: 1000;
  transition: var(--transition);
}
header.scrolled {
  padding: 15px 0;
  background: rgba(5, 5, 5, 0.8);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border-color);
}
.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.logo {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--text-primary);
  text-decoration: none;
  letter-spacing: 1px;
}
nav ul {
  display: flex;
  list-style: none;
  gap: 2rem;
}
nav a {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: var(--transition);
  position: relative;
}
nav a:hover, nav a.active {
  color: var(--text-primary);
}
nav a::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--primary-accent);
  transition: var(--transition);
  box-shadow: 0 0 8px var(--primary-accent-glow);
}
nav a:hover::after, nav a.active::after {
  width: 100%;
}

/* Hero Section */
.hero {
  position: relative;
  display: flex;
  align-items: center;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  width: 100%;
  z-index: 1;
}
.hero-content {
  max-width: 100%;
}
.hero-image {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-image::after {
  content: '';
  position: absolute;
  width: 120%;
  height: 120%;
  background: radial-gradient(circle, var(--primary-accent-glow) 0%, transparent 70%);
  z-index: -1;
  animation: pulseGlow 4s infinite alternate;
}

@keyframes pulseGlow {
  0% { transform: scale(0.8); opacity: 0.3; }
  100% { transform: scale(1.2); opacity: 0.6; }
}

.hero-image img {
  width: 100%;
  max-width: 450px;
  filter: drop-shadow(0 0 30px var(--primary-accent-glow));
  z-index: 2;
}
.hero h1 {
  font-size: 4.5rem;
  line-height: 1.1;
  margin-bottom: 1rem;
}
.hero p {
  font-size: 1.25rem;
  color: var(--text-secondary);
  margin-bottom: 2rem;
  max-width: 600px;
}
.typed-text {
  color: var(--primary-accent);
}
.typing-cursor {
  display: inline-block;
  width: 3px;
  height: 1em;
  background-color: var(--primary-accent);
  animation: blink 1s step-end infinite;
  vertical-align: text-bottom;
}
@keyframes blink { 50% { opacity: 0; } }

/* Scroll Down Indicator */
.scroll-down {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  opacity: 0.6;
}
.mouse {
  width: 25px;
  height: 40px;
  border: 2px solid var(--text-secondary);
  border-radius: 20px;
  position: relative;
}
.wheel {
  width: 3px;
  height: 8px;
  background: var(--primary-accent);
  border-radius: 2px;
  position: absolute;
  top: 8px;
  left: 50%;
  transform: translateX(-50%);
  animation: scrollWheel 2s infinite;
}
@keyframes scrollWheel {
  0% { top: 8px; opacity: 1; }
  100% { top: 25px; opacity: 0; }
}
.arrow span {
  display: block;
  width: 10px;
  height: 10px;
  border-bottom: 2px solid var(--text-secondary);
  border-right: 2px solid var(--text-secondary);
  transform: rotate(45deg);
  margin: -5px;
  animation: scrollArrow 2s infinite;
}
.arrow span:nth-child(2) {
  animation-delay: 0.2s;
}
@keyframes scrollArrow {
  0% { opacity: 0; transform: rotate(45deg) translate(-10px, -10px); }
  50% { opacity: 1; }
  100% { opacity: 0; transform: rotate(45deg) translate(10px, 10px); }
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 12px 28px;
  border-radius: 30px;
  font-weight: 600;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-size: 0.85rem;
  transition: var(--transition);
  cursor: pointer;
  border: none;
  outline: none;
  position: relative;
  overflow: hidden;
  z-index: 1;
}
.btn-primary {
  background: var(--primary-accent);
  color: #000;
  box-shadow: 0 0 20px var(--primary-accent-glow);
  border: 1px solid var(--primary-accent);
}
.btn-primary:hover {
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 0 35px var(--primary-accent-glow);
  background: transparent;
  color: var(--primary-accent);
}
.btn-outline {
  background: transparent;
  color: var(--text-primary);
  border: 1px solid var(--border-color);
}
.btn-outline:hover {
  border-color: var(--primary-accent);
  color: var(--primary-accent);
  transform: translateY(-3px);
}
.hero-buttons {
  display: flex;
  gap: 1rem;
}

/* Setup Glassmorphism */
.glass-card {
  background: var(--glass-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--glass-border);
  border-radius: 20px;
  padding: 2.5rem;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.glass-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  background: linear-gradient(135deg, rgba(255,255,255,0.05), transparent);
  pointer-events: none;
}

.glass-card:hover {
  transform: translateY(-5px);
  border-color: var(--primary-accent);
  box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.7), 0 0 20px var(--glow-color);
}

/* About Section */
.about-grid {
  display: grid;
  grid-template-columns: 45% 55%;
  gap: 4rem;
  align-items: center;
}
.about-image-premium {
  padding: 0;
  overflow: hidden;
  border-radius: 30px;
  background: linear-gradient(135deg, var(--primary-accent), var(--secondary-accent));
}
.image-wrapper {
  position: relative;
  width: 100%;
  height: 100%;
  line-height: 0;
}
.about-image-premium img {
  width: 100%;
  height: auto;
  object-fit: cover;
  transition: var(--transition);
  display: block;
}
.about-image-premium:hover img {
  transform: scale(1.02);
}


.tech-label {
  display: inline-block;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 3px;
  color: var(--primary-accent);
  margin-bottom: 1rem;
}
.about-text h3 {
  font-size: 2.5rem;
  margin-bottom: 1.5rem;
  line-height: 1.2;
}
.stats-premium {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 2.5rem;
}
.stat-box {
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--border-color);
  padding: 1.5rem;
  border-radius: 15px;
  text-align: center;
  transition: var(--transition);
}
.stat-box i {
  font-size: 1.5rem;
  color: var(--primary-accent);
  margin-bottom: 0.8rem;
}
.stat-box h4 {
  font-size: 1.5rem;
  margin-bottom: 0.3rem;
}
.stat-box p {
  font-size: 0.75rem;
  color: var(--text-secondary);
  text-transform: uppercase;
}
.stat-box:hover {
  background: var(--surface-color);
  border-color: var(--primary-accent);
  transform: translateY(-5px);
}


/* Skills Section Premium Redesign */
.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
  gap: 2rem;
}
.skill-category-premium {
  padding: 2rem;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-color);
  border-radius: 24px;
}
.cat-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 2rem;
}
.cat-header i {
  font-size: 1.2rem;
  color: var(--primary-accent);
  padding: 10px;
  background: rgba(16, 185, 129, 0.1);
  border-radius: 10px;
}
.cat-header h3 {
  font-size: 1.4rem;
  letter-spacing: 1px;
}
.skill-items-container {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 1rem;
}
.skill-pill {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-color);
  padding: 15px;
  border-radius: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}
.pill-info {
  display: flex;
  align-items: center;
  gap: 10px;
}
.pill-icon {
  font-size: 1.1rem;
  color: var(--primary-accent);
}
.pill-text {
  flex-grow: 1;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.skill-name {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-primary);
}

.skill-percent {
  font-size: 0.8rem;
  color: var(--text-secondary);
  font-family: monospace;
}
.pill-progress-bg {
  width: 100%;
  height: 4px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 2px;
  overflow: hidden;
}
.pill-progress {
  height: 100%;
  background: linear-gradient(90deg, var(--primary-accent), var(--secondary-accent));
  width: 0;
  transition: width 1.5s ease-out;
}
.skill-pill:hover {
  background: rgba(255, 255, 255, 0.07);
  border-color: var(--primary-accent);
  transform: translateY(-5px);
  box-shadow: 0 10px 20px -10px var(--primary-accent-glow);
}



/* Projects Section */
.projects-filter {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 3rem;
  flex-wrap: wrap;
}
.filter-btn {
  background: transparent;
  border: 1px solid var(--border-color);
  color: var(--text-secondary);
  padding: 8px 20px;
  border-radius: 20px;
  cursor: pointer;
  transition: var(--transition);
  font-weight: 500;
  font-size: 0.9rem;
}
.filter-btn:hover, .filter-btn.active {
  background: var(--surface-color);
  color: var(--text-primary);
  border-color: var(--primary-accent);
  box-shadow: 0 0 10px var(--primary-accent-glow);
}
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 2rem;
}
.project-card {
  position: relative;
  overflow: hidden;
  border-radius: 24px;
  cursor: pointer;
  border: 1px solid var(--glass-border);
  background: var(--bg-color-lighter);
  transition: var(--transition);
}

.project-card:hover {
  border-color: var(--primary-accent);
  box-shadow: 0 0 40px var(--primary-accent-glow);
}
.project-img {
  width: 100%;
  height: 250px;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.project-card:hover .project-img {
  filter: brightness(0.6) scale(1);
}
.project-info {
  position: absolute;
  bottom: 0; left: 0; width: 100%;
  padding: 2.5rem;
  background: linear-gradient(to top, rgba(0,0,0,0.95) 0%, rgba(0,0,0,0.7) 50%, transparent 100%);
  backdrop-filter: blur(8px);
  transform: translateY(100%);
  opacity: 0;
  transition: var(--transition);
}
.project-card:hover .project-info {
  transform: translateY(0);
  opacity: 1;
}
.project-info h3 {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
}
.project-tag {
  display: inline-block;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--primary-accent);
  background: rgba(16, 185, 129, 0.1);
  padding: 4px 10px;
  border-radius: 4px;
  border: 1px solid var(--primary-accent-glow);
  margin-bottom: 0.8rem;
}
.project-info p {
  color: var(--text-secondary);
  font-size: 0.9rem;
  margin-bottom: 1rem;
}
.project-links a {
  color: var(--text-primary);
  margin-right: 1rem;
  font-size: 1.2rem;
  transition: var(--transition);
}
.project-links a:hover {
  color: var(--primary-accent);
}

/* Contact Section */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
}
.contact-info {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}
.contact-item {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}
.contact-icon {
  width: 60px;
  height: 60px;
  background: var(--surface-color);
  border: 1px solid var(--border-color);
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 1.5rem;
  color: var(--primary-accent);
  transition: var(--transition);
}
.contact-item:hover .contact-icon {
  background: var(--primary-accent);
  color: #000;
  box-shadow: 0 0 15px var(--primary-accent-glow);
}
.contact-details h4 {
  font-size: 1.2rem;
  margin-bottom: 0.2rem;
}
.contact-details p {
  color: var(--text-secondary);
}
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}
.input-group {
  position: relative;
}
.input-group input, .input-group textarea {
  width: 100%;
  padding: 15px 20px;
  background: rgba(255,255,255,0.02);
  border: 1px solid var(--border-color);
  border-radius: 10px;
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 1rem;
  outline: none;
  transition: var(--transition);
}
.input-group textarea {
  min-height: 150px;
  resize: vertical;
}
.input-group input:focus, .input-group textarea:focus {
  border-color: var(--primary-accent);
  background: rgba(255,255,255,0.05);
  box-shadow: 0 0 20px var(--primary-accent-glow);
  transform: translateY(-2px);
}
.input-group label {
  position: absolute;
  top: 15px;
  left: 20px;
  color: var(--text-secondary);
  pointer-events: none;
  transition: var(--transition);
  font-weight: 500;
}
.input-group input:focus ~ label,
.input-group input:not(:placeholder-shown) ~ label,
.input-group textarea:focus ~ label,
.input-group textarea:not(:placeholder-shown) ~ label {
  top: -12px;
  left: 10px;
  font-size: 0.75rem;
  background: var(--bg-color);
  padding: 0 8px;
  color: var(--primary-accent);
  letter-spacing: 1px;
}

.form-msg {
  padding: 15px;
  border-radius: 10px;
  display: none;
  font-weight: 500;
}
.form-msg.success {
  display: block;
  background: rgba(16, 185, 129, 0.1);
  color: var(--primary-accent);
  border: 1px solid var(--primary-accent);
}
.form-msg.error {
  display: block;
  background: rgba(244, 63, 94, 0.1);
  color: #f43f5e;
  border: 1px solid #f43f5e;
}

/* WhatsApp Floating Button */
.whatsapp-float {
  position: fixed;
  bottom: 40px;
  right: 40px;
  background: #25d366;
  color: #fff;
  padding: 12px 25px;
  border-radius: 50px;
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  font-weight: 600;
  box-shadow: 0 10px 25px rgba(37, 211, 102, 0.4);
  z-index: 1500;
  transition: var(--transition);
  animation: whatsappBlink 3s infinite;
}
.whatsapp-icon-wrapper {
  position: relative;
  font-size: 1.8rem;
}
.notification-dot {
  position: absolute;
  top: -2px; right: -2px;
  width: 12px; height: 12px;
  background: #ff3b30;
  border: 2px solid #25d366;
  border-radius: 50%;
  animation: pulseDot 2s infinite;
}
.whatsapp-float:hover {
  transform: translateY(-10px) scale(1.05);
  box-shadow: 0 15px 35px rgba(37, 211, 102, 0.6);
  background: #20ba59;
}

@keyframes whatsappBlink {
  0%, 100% { box-shadow: 0 10px 25px rgba(37, 211, 102, 0.4); }
  50% { box-shadow: 0 0 40px rgba(37, 211, 102, 0.8); transform: scale(1.05); }
}

@keyframes pulseDot {
  0% { transform: scale(1); opacity: 1; }
  100% { transform: scale(2); opacity: 0; }
}

footer {
  text-align: center;
  padding: 4rem 0;
  border-top: 1px solid var(--border-color);
  color: var(--text-secondary);
  font-size: 0.9rem;
}


/* Admin Specific */
.admin-login {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-color);
}
.login-box {
  width: 100%;
  max-width: 400px;
}
.admin-layout {
  display: flex;
}
.admin-sidebar {
  width: 250px;
  height: 100vh;
  position: fixed;
  background: var(--surface-color);
  border-right: 1px solid var(--border-color);
  padding: 2rem;
}
.admin-content {
  margin-left: 250px;
  padding: 2rem;
  width: calc(100% - 250px);
  min-height: 100vh;
}
.admin-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
}
.admin-nav {
  margin-top: 3rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.admin-nav a {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 1rem;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px;
  border-radius: 8px;
  transition: var(--transition);
}
.admin-nav a:hover, .admin-nav a.active {
  background: rgba(255,255,255,0.05);
  color: var(--text-primary);
}
.stat-card {
  padding: 1.5rem;
  border-radius: 15px;
  background: var(--surface-color);
  border: 1px solid var(--border-color);
}
.stat-card h3 {
  color: var(--text-secondary);
  font-size: 1rem;
  margin-bottom: 10px;
}
.stat-card p {
  font-size: 2rem;
  font-weight: 700;
  color: var(--primary-accent);
}

/* Responsive */
@media (max-width: 900px) {
  .hero-grid, .about-grid, .contact-grid {
    grid-template-columns: 1fr;
  }
  .hero-image {
    order: -1; /* Image on top for mobile */
    margin-bottom: 2rem;
  }
  .hero h1 { font-size: 3rem; }
  .section-title { font-size: 2.5rem; }
  nav ul { display: none; } /* Add hamburger menu logic normally */
  .admin-sidebar { display: none; }
  .admin-content { margin-left: 0; width: 100%; }
}
