/*
Theme Name: Zahida Portfolio
Theme URI: https://zahidamumtaz.com
Author: Zahida Mumtaz
Description: High-converting dark-mode portfolio theme for Website Developers & AI Automation Consultants. Customizer enabled.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: zahida-portfolio
*/

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Space+Grotesk:wght@400;500;600;700&display=swap');

:root {
  --radius: 0.875rem;
  --background: #050505;
  --foreground: #ffffff;
  --surface: #0a0a0a;
  --card: rgba(255, 255, 255, 0.04);
  --card-foreground: #ffffff;
  --popover: #0a0a0a;
  --popover-foreground: #ffffff;
  --primary: #be45ee;
  --primary-foreground: #ffffff;
  --secondary: #491a6a;
  --secondary-foreground: #ffffff;
  --highlight: #be45ee;
  --muted: rgba(255, 255, 255, 0.05);
  --muted-foreground: #a1a1aa;
  --accent: #491a6a;
  --accent-foreground: #ffffff;
  --border: rgba(255, 255, 255, 0.08);
  --input: rgba(255, 255, 255, 0.08);
  --ring: #be45ee;

  --font-sans: "Inter", ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-display: "Space Grotesk", ui-sans-serif, system-ui, sans-serif;
}

/* Reset & Base */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  border-color: var(--border);
}

html {
  scroll-behavior: smooth;
  font-family: var(--font-sans);
  background-color: var(--background);
  color: var(--foreground);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  background-color: var(--background);
  color: var(--foreground);
  font-family: var(--font-sans);
  overflow-x: hidden;
  position: relative;
  min-height: 100vh;
  line-height: 1.5;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  letter-spacing: -0.02em;
}

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

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

ul, ol {
  list-style: none;
}

img, svg, video {
  display: block;
  max-width: 100%;
}

::selection {
  background: var(--primary);
  color: #ffffff;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: #050505;
}
::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.15);
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--primary);
}

/* Layout Utilities */
.container {
  width: 100%;
  max-width: 1280px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}

/* Typography & Visual Utilities */
.font-display { font-family: var(--font-display); }

.text-gradient {
  background: linear-gradient(135deg, #be45ee 0%, #491a6a 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.text-gradient-hero {
  background: linear-gradient(135deg, #ffffff 0%, #be45ee 50%, #491a6a 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.glass {
  background: rgba(255, 255, 255, 0.04);
  backdrop-filter: blur(24px) saturate(140%);
  -webkit-backdrop-filter: blur(24px) saturate(140%);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.glass-strong {
  background: rgba(10, 10, 10, 0.75);
  backdrop-filter: blur(28px) saturate(160%);
  -webkit-backdrop-filter: blur(28px) saturate(160%);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.glow-purple { box-shadow: 0 0 60px -10px rgba(190, 69, 238, 0.5); }
.glow-cyan { box-shadow: 0 0 60px -10px rgba(6, 182, 212, 0.5); }
.glow-pink { box-shadow: 0 0 60px -10px rgba(236, 72, 153, 0.5); }

.noise {
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='200' height='200'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 1  0 0 0 0 1  0 0 0 0 1  0 0 0 0.6 0'/></filter><rect width='200' height='200' filter='url(%23n)' opacity='0.35'/></svg>");
}

/* Animations */
@keyframes blob {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(40px, -60px) scale(1.15); }
  66% { transform: translate(-30px, 40px) scale(0.9); }
}
.animate-blob { animation: blob 18s ease-in-out infinite; }

@keyframes float-slow {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-20px); }
}
.animate-float { animation: float-slow 6s ease-in-out infinite; }

@keyframes marquee {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}
.animate-marquee {
  display: flex;
  width: max-content;
  animation: marquee 40s linear infinite;
}

@keyframes gradient-shift {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}
.animate-gradient {
  background-size: 200% 200%;
  animation: gradient-shift 8s ease infinite;
}

@keyframes ping {
  75%, 100% {
    transform: scale(2);
    opacity: 0;
  }
}
.animate-ping { animation: ping 1.5s cubic-bezier(0, 0, 0.2, 1) infinite; }

@keyframes pulse {
  50% { opacity: .5; }
}
.animate-pulse { animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite; }

/* Custom Cursor */
.custom-cursor-follower {
  position: fixed;
  top: 0;
  left: 0;
  width: 40px;
  height: 40px;
  margin-top: -20px;
  margin-left: -20px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.8);
  pointer-events: none;
  z-index: 9999;
  mix-blend-mode: difference;
  transition: transform 0.15s ease-out, opacity 0.15s ease-out;
  transform: translate3d(-100px, -100px, 0);
}

.custom-cursor-follower.hovering {
  transform: scale(2.2);
  opacity: 0.6;
  background-color: rgba(255, 255, 255, 0.1);
}

.custom-cursor-dot {
  position: fixed;
  top: 0;
  left: 0;
  width: 8px;
  height: 8px;
  margin-top: -4px;
  margin-left: -4px;
  border-radius: 50%;
  background-color: #ffffff;
  pointer-events: none;
  z-index: 10000;
  transform: translate3d(-100px, -100px, 0);
}

/* Preloader */
#preloader {
  position: fixed;
  inset: 0;
  z-index: 99999;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background-color: var(--background);
  transition: opacity 0.7s cubic-bezier(0.65, 0, 0.35, 1), transform 0.7s cubic-bezier(0.65, 0, 0.35, 1), filter 0.7s ease;
}

#preloader.preloader-hidden {
  opacity: 0;
  filter: blur(10px);
  transform: scale(0.98);
  pointer-events: none;
}

/* Navigation */
.navbar {
  position: fixed;
  top: 1rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1000;
  border-radius: 9999px;
  transition: all 0.5s ease;
  padding: 0.75rem 1rem;
}

.navbar.scrolled {
  background: rgba(10, 10, 10, 0.75);
  backdrop-filter: blur(28px) saturate(160%);
  -webkit-backdrop-filter: blur(28px) saturate(160%);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 0.5rem 0.5rem;
  box-shadow: 0 20px 40px -15px rgba(0,0,0,0.5);
}

.nav-link {
  border-radius: 9999px;
  padding: 0.375rem 1rem;
  font-size: 0.875rem;
  color: var(--muted-foreground);
  transition: all 0.2s ease;
}

.nav-link:hover {
  background-color: rgba(255, 255, 255, 0.05);
  color: var(--foreground);
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  border-radius: 9999px;
  background: linear-gradient(to right, var(--primary), #be45ee);
  padding: 0.5rem 1.25rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: #ffffff;
  box-shadow: 0 10px 25px -5px rgba(190, 69, 238, 0.3);
  transition: all 0.3s ease;
}

.btn-primary:hover {
  filter: brightness(1.15);
  box-shadow: 0 15px 30px -5px rgba(190, 69, 238, 0.5);
  transform: translateY(-1px);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  border-radius: 9999px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  background: rgba(255, 255, 255, 0.05);
  padding: 0.75rem 1.5rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: #ffffff;
  backdrop-filter: blur(12px);
  transition: all 0.3s ease;
}

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

/* Hero Section */
.hero-section {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: 7rem;
  padding-bottom: 4rem;
}

.rotator-text {
  transition: opacity 0.4s ease, transform 0.4s ease, filter 0.4s ease;
  display: inline-block;
}
.rotator-text.fade-out {
  opacity: 0;
  transform: translateY(-20px);
  filter: blur(8px);
}
.rotator-text.fade-in {
  opacity: 1;
  transform: translateY(0);
  filter: blur(0px);
}

/* Sections */
.section-padding {
  padding-top: 8rem;
  padding-bottom: 8rem;
  position: relative;
}

/* Skill / Service Cards */
.skill-card {
  position: relative;
  overflow: hidden;
  border-radius: 1rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.03);
  padding: 1.25rem;
  backdrop-filter: blur(16px);
  transition: all 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}

.skill-card:hover {
  transform: translateY(-6px);
  border-color: rgba(255, 255, 255, 0.25);
  background: rgba(255, 255, 255, 0.06);
}

.service-card {
  position: relative;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-radius: 1.5rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: linear-gradient(to bottom, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.01));
  padding: 2rem;
  backdrop-filter: blur(20px);
  transition: all 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}

.service-card:hover {
  transform: translateY(-8px);
  border-color: rgba(255, 255, 255, 0.2);
  box-shadow: 0 20px 40px -15px rgba(0, 0, 0, 0.7);
}

/* Project Work Cards */
.work-card {
  position: relative;
  display: block;
  overflow: hidden;
  border-radius: 1.5rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.02);
  padding: 0.5rem;
  transition: all 0.4s ease;
}

.work-card:hover {
  border-color: rgba(255, 255, 255, 0.25);
}

.work-card-thumb {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  border-radius: 1rem;
}

.work-card-thumb-bg {
  position: absolute;
  inset: 0;
  transition: transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}

.work-card:hover .work-card-thumb-bg {
  transform: scale(1.08);
}

/* FAQ Accordion */
.faq-item {
  overflow: hidden;
  border-radius: 1rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(16px);
  transition: border-color 0.3s ease;
}

.faq-button {
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 1.25rem 1.5rem;
  text-align: left;
  transition: background-color 0.2s ease;
}

.faq-button:hover {
  background-color: rgba(255, 255, 255, 0.03);
}

.faq-icon {
  display: flex;
  height: 2rem;
  width: 2rem;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.05);
  transition: transform 0.35s ease;
}

.faq-item.active .faq-icon {
  transform: rotate(45deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition: max-height 0.4s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.35s ease, padding 0.35s ease;
  padding: 0 1.5rem;
}

.faq-item.active .faq-answer {
  max-height: 200px;
  opacity: 1;
  padding: 0 1.5rem 1.5rem 1.5rem;
}

/* Form Controls */
.form-input, .form-textarea {
  width: 100%;
  border-radius: 1rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.03);
  padding: 1rem 1.25rem;
  font-size: 0.875rem;
  color: var(--foreground);
  outline: none;
  transition: all 0.25s ease;
}

.form-input:focus, .form-textarea:focus {
  border-color: rgba(190, 69, 238, 0.6);
  background: rgba(255, 255, 255, 0.06);
  box-shadow: 0 0 0 3px rgba(190, 69, 238, 0.2);
}

.form-input::placeholder, .form-textarea::placeholder {
  color: rgba(161, 161, 170, 0.6);
}

.checkbox-pill {
  cursor: pointer;
  border-radius: 9999px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.03);
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
  color: var(--muted-foreground);
  user-select: none;
  transition: all 0.2s ease;
  display: inline-block;
}

.checkbox-pill:hover {
  border-color: rgba(190, 69, 238, 0.5);
  background: rgba(190, 69, 238, 0.1);
}

.checkbox-pill.checked {
  border-color: var(--primary);
  background: rgba(190, 69, 238, 0.2);
  color: #ffffff;
}

/* Responsive Utilities */
@media (max-width: 1024px) {
  .hero-section {
    padding-top: 6rem;
  }
}

@media (max-width: 768px) {
  .section-padding {
    padding-top: 5rem;
    padding-bottom: 5rem;
  }
  .navbar {
    top: 0.5rem;
    width: calc(100% - 2rem);
  }
}
