
/* styles.css
Professional, security-themed styling with subtle flare (glow, gradients, depth)
Replace your entire styles.css with this version.
*/

:root {
  --bg: #070a0f;
  --bg2: #0b1220;
  --panel: rgba(255, 255, 255, 0.06);
  --panel2: rgba(255, 255, 255, 0.08);
  --border: rgba(0, 204, 255, 0.22);
  --border2: rgba(255, 255, 255, 0.12);
  --text: #f3f7ff;
  --muted: rgba(243, 247, 255, 0.72);
  --muted2: rgba(243, 247, 255, 0.58);
  --accent: #00ccff;
  --accent2: #7c4dff;
  --shadow: 0 18px 42px rgba(0, 0, 0, 0.55);
  --shadow2: 0 16px 38px rgba(0, 204, 255, 0.12);
  --radius: 14px;
}

* {
  box-sizing: border-box;
  scroll-behavior: smooth;
}

html,
body {
  height: 100%;
}

body {
  background: radial-gradient(1100px 520px at 10% 0%, rgba(0, 204, 255, 0.08), transparent 60%),
    radial-gradient(900px 520px at 90% 10%, rgba(124, 77, 255, 0.08), transparent 55%),
    linear-gradient(180deg, var(--bg) 0%, #05070c 100%);
  color: var(--text);
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, sans-serif;
  line-height: 1.6;
  margin: 0;
  padding: 0;
  overflow-x: hidden;
}

.text-center {
  text-align: center;
}

.container {
  width: 100%;
  max-width: 1200px;
  padding: 0 18px;
  margin: 0 auto;
}

.accent-color {
  color: var(--accent);
}

a {
  color: var(--text);
  text-decoration: none;
}

a:hover {
  color: var(--accent);
}

::selection {
  background: rgba(0, 204, 255, 0.25);
}

/* Header */
.qk_header {
  background: rgba(9, 12, 18, 0.72);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  padding: 16px 0;
  position: sticky;
  top: 0;
  z-index: 1000;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
}

.qk_header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo a {
  font-size: 1.35rem;
  font-weight: 750;
  letter-spacing: 0.2px;
}

.qk_header nav ul {
  display: flex;
  list-style: none;
  padding: 0;
  margin: 0;
  gap: 18px;
  justify-content: flex-end;
}

.qk_header nav ul li a {
  position: relative;
  padding: 8px 2px;
  font-weight: 600;
  color: rgba(243, 247, 255, 0.86);
  transition: color 0.25s ease;
}

.qk_header nav ul li a::after {
  content: "";
  position: absolute;
  bottom: 3px;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--accent), rgba(124, 77, 255, 0.8));
  transition: width 0.25s ease;
  border-radius: 999px;
}

.qk_header nav ul li a:hover {
  color: var(--text);
}

.qk_header nav ul li a:hover::after {
  width: 100%;
}

/* Mobile menu */
.mobile_menu {
  display: none;
  background: rgba(9, 12, 18, 0.9);
  padding: 16px 0;
  position: sticky;
  top: 0;
  z-index: 1001;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.mobile_menu_inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.hamburger {
  display: none;
  cursor: pointer;
  background: transparent;
  border: 0;
  padding: 8px;
}

.hamburger div {
  width: 26px;
  height: 3px;
  background-color: var(--text);
  margin: 5px 0;
  transition: all 0.25s ease;
  border-radius: 999px;
}

.hamburger:hover div {
  background-color: var(--accent);
}

.mobile_nav {
  display: none;
  padding-top: 12px;
}

.mobile_nav.show {
  display: block;
}

.mobile_nav ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.mobile_nav li {
  margin: 10px 0;
}

.mobile_nav a {
  display: block;
  padding: 12px 14px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  transition: all 0.25s ease;
}

.mobile_nav a:hover {
  border-color: rgba(0, 204, 255, 0.35);
  background: rgba(0, 204, 255, 0.06);
  transform: translateX(4px);
}

/* Hero */
.hero {
  padding: 86px 0 72px;
  position: relative;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(650px 280px at 18% 18%, rgba(0, 204, 255, 0.16), transparent 60%),
    radial-gradient(520px 260px at 82% 15%, rgba(124, 77, 255, 0.12), transparent 60%);
  opacity: 0.75;
}

.hero .container {
  position: relative;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 34px;
}

.hero-content {
  flex: 1;
  max-width: 640px;
}

.hero h1 {
  font-size: 3rem;
  line-height: 1.12;
  margin: 0 0 12px 0;
  font-weight: 800;
  letter-spacing: -0.6px;
}

.hero h2 {
  font-size: 2.05rem;
  line-height: 1.2;
  margin: 0 0 18px 0;
  font-weight: 700;
  letter-spacing: -0.35px;
  color: rgba(243, 247, 255, 0.92);
}

.hero p {
  font-size: 1.05rem;
  line-height: 1.75;
  margin: 0 0 22px 0;
  max-width: 62ch;
  color: var(--muted);
}

/* Buttons */
.hero-buttons {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.cta-button {
  display: inline-block;
  background: linear-gradient(180deg, rgba(0, 204, 255, 1), rgba(0, 180, 230, 1));
  color: #021018;
  padding: 12px 28px;
  border-radius: 999px;
  transition: transform 0.22s ease, box-shadow 0.22s ease, filter 0.22s ease, background 0.22s ease;
  border: 1px solid rgba(0, 204, 255, 0.85);
  font-weight: 750;
  cursor: pointer;
  box-shadow: 0 10px 22px rgba(0, 204, 255, 0.18);
}

.cta-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 34px rgba(0, 204, 255, 0.22);
  filter: brightness(1.02);
}

.cta-button:active {
  transform: translateY(0);
}

.cta-button.transparent {
  background: rgba(255, 255, 255, 0.03);
  color: var(--text);
  border: 1px solid rgba(0, 204, 255, 0.35);
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.25);
}

.cta-button.transparent:hover {
  background: rgba(0, 204, 255, 0.08);
  border-color: rgba(0, 204, 255, 0.55);
}

/* Hero image */
.hero-image {
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-img {
  width: 380px;
  height: 380px;
  border-radius: var(--radius);
  border: 1px solid rgba(0, 204, 255, 0.5);
  object-fit: cover;
  object-position: top;
  box-shadow: var(--shadow), 0 0 0 6px rgba(0, 204, 255, 0.06);
  transition: transform 0.28s ease, box-shadow 0.28s ease;
}

.hero-img:hover {
  transform: translateY(-2px) scale(1.01);
  box-shadow: var(--shadow), 0 0 0 8px rgba(0, 204, 255, 0.08);
}

/* Section styling */
.skills-section,
.projects-section {
  padding: 84px 0;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0.02));
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.about-section,
.contact-section {
  padding: 84px 0;
}

/* Section headers */
.section-header,
.skills-section h2,
.about-text h2 {
  color: var(--accent);
  margin: 0 0 10px 0;
  font-size: 2.5rem;
  font-weight: 850;
  letter-spacing: -0.5px;
}

.section-header {
  text-align: center;
  margin-bottom: 54px;
}

/* Fade-in animation (subtle) */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.skills-section,
.about-section,
.projects-section,
.contact-section {
  animation: fadeIn 0.7s ease-in both;
}

/* Skills grid */
.skills-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
  margin-top: 40px;
  justify-items: center;
}

.skill-card {
  width: 240px;
  min-height: 190px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 10px;

  background: linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.03));
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius);
  padding: 22px 18px;
  text-align: center;
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.35);

  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.skill-card:hover {
  transform: translateY(-6px);
  border-color: rgba(0, 204, 255, 0.35);
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.45), 0 10px 30px rgba(0, 204, 255, 0.1);
}

.skill-card i {
  font-size: 2.6rem;
  color: var(--accent);
}

.skill-card h3 {
  margin: 0;
  font-size: 1.08rem;
  letter-spacing: 0.2px;
}

.skill-card p {
  margin: 0;
  color: var(--muted2);
  font-size: 0.95rem;
  line-height: 1.45;
}

/* About */
.about-content {
  display: flex;
  gap: 40px;
  align-items: center;
}

.about-image {
  width: 360px;
  max-width: 40%;
  height: auto;
  border-radius: var(--radius);
  border: 1px solid rgba(0, 204, 255, 0.5);
  object-fit: cover;
  flex-shrink: 0;
  box-shadow: var(--shadow), 0 0 0 6px rgba(0, 204, 255, 0.05);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.about-image:hover {
  transform: translateY(-2px) scale(1.01);
  box-shadow: var(--shadow), 0 0 0 8px rgba(0, 204, 255, 0.08);
}

.about-text {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.about-text p {
  color: var(--muted);
  font-size: 1.03rem;
  line-height: 1.75;
  margin: 0 0 14px 0;
  max-width: 72ch;
}

/* Social icons */
.social-icons {
  display: flex;
  gap: 16px;
  margin-top: 10px;
}

.social-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: rgba(243, 247, 255, 0.9);
  transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.social-icon:hover {
  transform: translateY(-2px);
  border-color: rgba(0, 204, 255, 0.4);
  background: rgba(0, 204, 255, 0.07);
  color: var(--text);
}

/* Projects */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
  justify-items: center;
}

.project-card {
  width: 100%;
  max-width: 340px;
  display: flex;
  flex-direction: column;
  overflow: hidden;

  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.03));
  border: 1px solid rgba(255, 255, 255, 0.08);

  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.35);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.project-card:hover {
  transform: translateY(-6px);
  border-color: rgba(0, 204, 255, 0.35);
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.45), 0 10px 30px rgba(0, 204, 255, 0.1);
}

.project-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  object-position: center;
  display: block;
  transition: transform 0.28s ease;
}

.project-card:hover img {
  transform: scale(1.04);
}

.project-card h3 {
  padding: 16px 18px 8px 18px;
  margin: 0;
  font-size: 1.08rem;
  font-weight: 750;
  letter-spacing: 0.2px;
  text-align: left;
}

.project-card p {
  padding: 0 18px 18px 18px;
  margin: 0;
  color: var(--muted2);
  font-size: 0.95rem;
  line-height: 1.55;
  text-align: left;
}

/* Banner */
.banner-section {
  background: linear-gradient(90deg, rgba(0, 204, 255, 1), rgba(124, 77, 255, 0.9));
  color: #07101a;
  padding: 30px 0;
  text-align: center;
}

.banner-text {
  font-size: 1.15rem;
  font-weight: 800;
  color: #07101a;
  display: inline-block;
  transition: transform 0.2s ease;
}

.banner-text:hover {
  transform: translateY(-2px);
}

/* Contact */
#contact-form {
  display: grid;
  gap: 14px;
  max-width: 620px;
  margin: 0 auto;
}

#contact-form input,
#contact-form textarea {
  width: 100%;
  padding: 14px 16px;
  border: 1px solid rgba(0, 204, 255, 0.35);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  transition: border-color 0.22s ease, box-shadow 0.22s ease, background 0.22s ease;
  font-family: inherit;
  font-size: 1rem;
}

#contact-form input[name="_gotcha"] {
  display: none !important;
}

#contact-form input:focus,
#contact-form textarea:focus {
  outline: none;
  border-color: rgba(0, 204, 255, 0.6);
  background: rgba(255, 255, 255, 0.06);
  box-shadow: 0 0 0 4px rgba(0, 204, 255, 0.14);
}

#contact-form input::placeholder,
#contact-form textarea::placeholder {
  color: rgba(243, 247, 255, 0.42);
}

#contact-form textarea {
  min-height: 140px;
  resize: vertical;
}

.contact-status {
  margin: 0 0 16px 0;
  text-align: center;
  color: rgba(0, 204, 255, 0.9);
  font-size: 0.95rem;
}

/* Footer */
.footer {
  background: rgba(9, 12, 18, 0.85);
  color: var(--text);
  padding: 22px 0;
  text-align: center;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.social-links a {
  color: rgba(243, 247, 255, 0.9);
  margin-left: 12px;
  font-size: 1.3rem;
  transition: transform 0.22s ease, color 0.22s ease;
  display: inline-block;
}

.social-links a:hover {
  color: var(--accent);
  transform: translateY(-2px) scale(1.06);
}

/* Accessibility focus */
a:focus,
button:focus,
input:focus,
textarea:focus {
  outline: 2px solid rgba(0, 204, 255, 0.9);
  outline-offset: 3px;
}

/* Responsive */
@media (max-width: 900px) {
  .projects-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .skills-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .qk_header {
    display: none;
  }

  .mobile_menu {
    display: block;
  }

  .hamburger {
    display: inline-block;
  }

  .hero {
    padding: 58px 0 50px;
  }

  .hero .container {
    flex-direction: column;
    align-items: flex-start;
  }

  .hero h1 {
    font-size: 2.45rem;
  }

  .hero h2 {
    font-size: 1.75rem;
  }

  .hero-img {
    width: 320px;
    height: 320px;
  }

  .section-header,
  .skills-section h2 {
    font-size: 2rem;
  }

  .about-content {
    flex-direction: column;
    align-items: center;
    gap: 30px;
  }

  .about-image {
    max-width: 100%;
    width: 320px;
  }

  .about-text {
    text-align: center;
  }

  .project-card h3,
  .project-card p {
    text-align: left;
  }
}

@media (max-width: 520px) {
  .projects-grid {
    grid-template-columns: 1fr;
  }

  .skills-grid {
    grid-template-columns: 1fr;
  }

  .hero-img {
    width: 280px;
    height: 280px;
  }

  .footer-content {
    justify-content: center;
  }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  * {
    scroll-behavior: auto;
  }

  .skills-section,
  .about-section,
  .projects-section,
  .contact-section {
    animation: none;
  }

  .project-card,
  .skill-card,
  .hero-img,
  .cta-button,
  .social-icon,
  .social-links a,
  .banner-text {
    transition: none;
  }
}

