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

/* ============================
   PRELOADER — Cyberpunk Style
=============================== */
#preloader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: #0a0c14;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  animation: preloaderFadeOut 0.6s ease forwards;
  animation-delay: 1.2s; /* Time preloader stays visible */
}

.loader-bar {
  width: 180px;
  height: 6px;
  border: 1px solid #00ffff;
  border-radius: 6px;
  box-shadow: 0 0 12px #00ffff60, inset 0 0 8px #00ffff40;
  overflow: hidden;
  position: relative;
}

.loader-bar::before {
  content: "";
  position: absolute;
  top: 0;
  left: -40%;
  width: 40%;
  height: 100%;
  background: #00ffff;
  box-shadow: 0 0 10px #00ffff;
  animation: loaderSlide 1.2s ease-in-out infinite;
}

.loader-text {
  margin-top: 18px;
  color: #00ffff;
  font-size: 14px;
  letter-spacing: 3px;
  text-shadow: 0 0 8px #00ffff80, 0 0 12px #ff00ff50;
  animation: flickerText 2s infinite;
}

/* Animation: sliding bar */
@keyframes loaderSlide {
  0% { left: -40%; }
  50% { left: 100%; }
  100% { left: -40%; }
}

/* Text flicker effect */
@keyframes flickerText {
  0%, 100% { opacity: 1; }
  45% { opacity: 0.6; }
  50% { opacity: 1; }
  90% { opacity: 0.7; }
}

/* Fade-out of preloader */
@keyframes preloaderFadeOut {
  to { opacity: 0; visibility: hidden; }
}

/* ===========================================================
   BACKGROUND – Cyberpunk CRT
=========================================================== */
body {
  font-family: Arial, sans-serif;
  background: #0a0c14;

  background-image:
    radial-gradient(circle at 20% 30%, rgba(0,255,255,0.12), transparent 60%),
    radial-gradient(circle at 80% 70%, rgba(255,0,200,0.15), transparent 55%),
    repeating-linear-gradient(90deg, rgba(0,255,255,0.04) 0px, rgba(0,255,255,0.04) 2px, transparent 2px, transparent 60px),
    repeating-linear-gradient(0deg, rgba(255,0,200,0.04) 0px, rgba(255,0,200,0.04) 2px, transparent 2px, transparent 60px);

  animation: bgMove 12s linear infinite;

  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  padding: 20px;
  color: #fff;
}

@keyframes bgMove {
  0% { background-position: 0 0, 0 0, 0 0, 0 0; }
  100% { background-position: 100px 80px, -100px -60px, 60px 120px, -80px -140px; }
}

.container {
  text-align: center;
  max-width: 800px;
}

.profile-pic {
  width: 110px;       
  height: 110px;      
  border-radius: 50%; 
  object-fit: cover;
  border: 1.5px solid #00eaff; /* neon cyan */
  box-shadow: 0 0 7px #00eaff, 0 0 15px #8a2be2; /* dual glow */  
}

/* ===========================================================
   CYBERPUNK CRT TITLE
=========================================================== */
.cyber-title {
  font-size: 36px;
  font-weight: 600;
  text-align: center;
  margin-bottom: 25px;

  color: #00ffff;
  text-shadow:
      0 0 8px #00ffff,
      0 0 14px #00eeff,
      0 0 22px #cc00ff80,
      2px 0px 2px #00ffff,
     -2px 0px 2px #cc00ff;

  /* Flicker + CRT distort blend */
  animation:
    titleFlicker 2.8s infinite,
    titleGlitch 4s infinite,
    fadeIn 0.8s ease forwards; 
  opacity: 0;
}

/* Glitch colored shadow offsets */
@keyframes titleGlitch {
  0%   { text-shadow: 2px 0 #00ffff, -2px 0 #cc00ff; }
  20%  { text-shadow: -2px 0 #00ffff, 2px 0 #cc00ff; }
  40%  { text-shadow: 3px 0 #00ffff, -3px 0 #cc00ff; }
  60%  { text-shadow: -3px 0 #00ffff, 3px 0 #cc00ff; }
  80%  { text-shadow: 1px 0 #00ffff, -1px 0 #cc00ff; }
  100% { text-shadow: 2px 0 #00ffff, -2px 0 #cc00ff; }
}

/* CRT flicker effect */
@keyframes titleFlicker {
  0%   { opacity: 1; }
  5%   { opacity: 0.6; }
  6%   { opacity: 1; }
  10%  { opacity: 0.5; }
  11%  { opacity: 1; }
  30%  { opacity: 0.95; }
  31%  { opacity: 0.8; }
  32%  { opacity: 1; }
  70%  { opacity: 0.9; }
  71%  { opacity: 1; }
  100% { opacity: 1; }
}

@media (max-width: 600px) {
  .cyber-title {
    font-size: 38px;
    letter-spacing: 2px;
  }
}

/* ===========================================================
   INTRO
=========================================================== */
.intro {
  margin-bottom: 40px;
  font-size: 18px;
  color: #a0f0f0;
  opacity: 0;
  animation: fadeIn 0.8s ease forwards 0.5s;
  text-shadow: 0 0 4px #00ffff30;
}

/* ===========================================================
   SOCIAL ICONS
=========================================================== */
.social-icons {
  display: flex;
  justify-content: center;
  gap: 30px;
  margin-bottom: 50px;
  opacity: 0;
  animation: fadeIn 0.8s ease forwards 0.8s;
}

.icon-button {
  width: 48px;
  height: 48px;
  cursor: pointer;
  transition: filter 0.3s;
  animation: cyberFloat 4.8s ease-in-out infinite;
}

.icon-button:hover {
  filter: drop-shadow(0 0 8px #00ffff);
}

/* ===========================================================
   CTA BUTTON
=========================================================== */
.cta-button {
  display: inline-block;
  padding: 16px 32px;
  background: transparent;
  color: #00FFFF;
  text-decoration: none;
  border: 2px solid #00FFFF;
  border-radius: 8px;
  font-size: 18px;
  font-weight: bold;
  text-transform: uppercase;
  opacity: 0;
  transition: all 0.3s ease;

  animation:
    fadeIn 0.8s ease forwards 1.1s,   /* fade & slide */
    neonPulse 2.5s ease-in-out infinite 1.9s,  
    cyberFloat 5s ease-in-out infinite 1.9s,
    glitchButton 3s infinite 1.9s;
}

.cta-button:hover {
  background: #00ffff15;
  box-shadow: 0 0 20px #00FFFF, 0 0 40px #00FFFF60;
  transform: scale(1.08);
}

/* ===========================================================
   CONTACT WINDOW
=========================================================== */
.contact-window {
  display: none;
  flex-direction: column;
  gap: 15px;
  width: 350px;
  margin: 20px auto 0 auto;
  padding: 20px;
  border: 2px solid #00FFFF;
  border-radius: 8px;
  background: #00ffff0a;
  box-shadow: 0 0 20px #00FFFF40;
  animation:
    neonPulse 2.5s ease-in-out infinite,
    cyberFloat 5s ease-in-out infinite,
    fadeIn 0.4s ease forwards;
}

.contact-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: #00FFFF;
  font-weight: bold;
}

.close-btn {
  background: transparent;
  border: none;
  color: #00FFFF;
  font-size: 20px;
  cursor: pointer;
  transition: 0.3s;
}
.close-btn:hover {
  filter: drop-shadow(0 0 8px #00ffff);
}

/* Inputs */
.contact-window input,
.contact-window textarea {
  width: 100%;
  padding: 10px;
  background: #00000040;
  border: 1px solid #00FFFF60;
  border-radius: 6px;
  color: #00FFFF;
  font-size: 16px;
  outline: none;
  resize: none;
}

.contact-window input:focus,
.contact-window textarea:focus {
  border-color: #00FFFF;
  box-shadow: 0 0 10px #00FFFF80;
}

.small-btn {
  margin-top: 10px;
  padding: 12px 20px;
  font-size: 16px;
}

/* Contact Form Text Styling */
.contact-window label {
  color: #00ffff;
  font-size: 16px;
  font-weight: bold;
  margin-bottom: 6px;
  text-shadow: 0 0 6px #00ffff50;
  letter-spacing: 1px;
  margin-top: 12px; 
  display: block; 
}

.contact-window input,
.contact-window textarea {
  font-family: inherit; 
  color: #00ffff;
  font-size: 16px;
  letter-spacing: 0.5px;
  background: #00000060;
  border: 1px solid #00ffff80;
  border-radius: 6px;
  padding: 10px;
  outline: none;
  transition: 0.3s;
  box-shadow: 0 0 4px #00ffff30 inset;
}

.contact-window input::placeholder,
.contact-window textarea::placeholder {
  color: #00ffff80;
  text-shadow: 0 0 4px #00ffff40;
}

.contact-window input:focus,
.contact-window textarea:focus {
  border-color: #00ffff;
  box-shadow: 0 0 12px #00ffff90;
}

/* ===========================================================
   ANIMATIONS
=========================================================== */
@keyframes cyberFloat {
  0%   { transform: translateY(0px); }
  50%  { transform: translateY(-6px); }
  100% { transform: translateY(0px); }
}

@keyframes neonPulse {
  0%, 100% { box-shadow: 0 0 8px #00FFFF50; }
  50%      { box-shadow: 0 0 20px #00FFFFA0; }
}

@keyframes glitchButton {
  0%   { transform: translate(0,0); opacity: .3; }
  50%  { transform: translate(-3px,2px); opacity: .6; }
  100% { transform: translate(0,0); opacity: .3; }
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ===========================================================
   FOOTER
=========================================================== */
.site-footer {
  margin-top: 60px;
  text-align: center;
  color: #00ffffb0;
  font-size: 13px;
  letter-spacing: 1px;
  text-shadow: 0 0 6px #00ffff50;
  opacity: 0;
  animation: fadeIn 0.8s ease forwards 1.4s;
}

/* ===========================================================
   RESPONSIVE
=========================================================== */
@media (max-width: 600px) {
  h1 { font-size: 32px; }
  .intro { font-size: 16px; }
  .icon-button { width: 40px; height: 40px; }
  .cta-button { font-size: 14px; padding: 12px 24px; }
  .contact-window { width: 90%; }
}
