@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800&display=swap');

:root {
  --primary: #F8F9FA;
  --secondary: #FFFFFF;
  --accent: #FF3366;
  --accent-glow: rgba(255, 51, 102, 0.4);
  --text-main: #1A1A1A;
  --text-muted: #5A5A5A;
  --card-bg: rgba(255, 255, 255, 0.9);
  --glass-border: rgba(0, 0, 0, 0.08);
  /* Arshad custom gradient */
  --gradient-1: linear-gradient(135deg, #FF3366 0%, #FF9933 100%);
  --gradient-text: linear-gradient(to right, #1A1A1A, #5A5A5A);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Outfit', sans-serif;
  background-color: var(--primary);
  color: var(--text-main);
  overflow-x: hidden;
  line-height: 1.6;
  cursor: none;
  position: relative;
}

/* 
  -----------------------------------------------
  arshad's custom typography settings
  do not overide
  -----------------------------------------------
*/
h1,
h2,
h3,
h4,
h5,
h6 {
  font-weight: 700;
  line-height: 1.2;
}

.text-gradient {
  background: var(--gradient-1);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

p {
  color: var(--text-muted);
  font-size: 1.1rem;
}

/* Layout Blocks - MAIN */
.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1.5rem;
  width: 100%;
}

section {
  padding: 8rem 0;
  position: relative;
}

.page-header {
  padding: 10rem 0 4rem;
  /* Desktop padding */
  position: relative;
  overflow: hidden;
}

/* Glassmorphism Utilities */
.glass {
  background: var(--card-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--glass-border);
  border-radius: 24px;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 1rem 2rem;
  font-weight: 600;
  border-radius: 50px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
  text-decoration: none;
  border: none;
  font-size: 1.1rem;
  letter-spacing: 0.5px;
}

.btn i {
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn:hover i {
  transform: translateX(6px);
}

.btn-primary {
  background: var(--gradient-1);
  color: white;
  /* Keep primary btn text white for contrast against gradient */
  box-shadow: 0 8px 32px var(--accent-glow);
  position: relative;
  overflow: hidden;
}

.btn-primary::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to right, transparent, rgba(255, 255, 255, 0.2), transparent);
  transform: translateX(-100%);
  transition: transform 0.6s ease;
}

.btn-primary:hover::before {
  transform: translateX(100%);
}

.btn-primary:hover {
  transform: translateY(-4px) scale(1.02);
  box-shadow: 0 15px 40px rgba(255, 51, 102, 0.7);
}

.btn-outline {
  background: transparent;
  color: var(--text-main);
  border: 1px solid var(--glass-border);
}

.btn-outline:hover {
  background: var(--card-bg);
  border-color: var(--accent);
  color: var(--text-main);
  transform: translateY(-4px) scale(1.02);
  box-shadow: 0 10px 25px rgba(255, 51, 102, 0.3);
}

/* Navigation */
nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  padding: 1.5rem 0;
  transition: all 0.3s ease;
}

nav.scrolled {
  padding: 1rem 0;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--glass-border);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.05);
  /* subtle shadow for light mode navbar */
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-size: 1.8rem;
  font-weight: 800;
  text-decoration: none;
  color: var(--text-main);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.logo span {
  font-size: 0.8rem;
  font-weight: 500;
  background: var(--card-bg);
  padding: 0.2rem 0.6rem;
  border-radius: 20px;
  color: var(--text-muted);
  border: 1px solid var(--glass-border);
}

.nav-links {
  display: flex;
  gap: 2.5rem;
  align-items: center;
}

.nav-links a {
  text-decoration: none;
  color: var(--text-main);
  font-weight: 500;
  font-size: 1.1rem;
  transition: color 0.3s ease;
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--gradient-1);
  transition: width 0.3s ease;
}

.nav-links a:hover::after,
.nav-links a.active::after {
  width: 100%;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--text-main);
}

.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  color: var(--text-main);
  font-size: 1.5rem;
  cursor: pointer;
}

/* Hero Section */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  padding-top: 6rem;
}

.hero-glow {
  position: absolute;
  width: 600px;
  height: 600px;
  background: var(--accent);
  filter: blur(150px);
  opacity: 0.15;
  border-radius: 50%;
  top: 50%;
  right: -100px;
  transform: translateY(-50%);
  z-index: 0;
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 800px;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1.2rem;
  background: var(--card-bg);
  border: 1px solid var(--glass-border);
  border-radius: 50px;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-muted);
  margin-bottom: 2rem;
  animation: slideDown 0.8s ease backwards;
}

.badge i {
  color: var(--accent);
}

.hero h1 {
  font-size: 4.5rem;
  margin-bottom: 1.5rem;
  letter-spacing: -1px;
  line-height: 1.2;
  animation: slideUp 0.8s ease 0.2s backwards;
}

.dynamic-text {
  display: inline-block;
  min-width: 10px;
}

.blinking-cursor {
  font-weight: 100;
  font-size: 4.5rem;
  color: var(--accent);
  animation: blink 1s step-end infinite;
  vertical-align: text-bottom;
}

@keyframes blink {

  from,
  to {
    opacity: 1;
  }

  50% {
    opacity: 0;
  }
}

.hero p {
  font-size: 1.3rem;
  margin-bottom: 3rem;
  max-width: 600px;
  animation: slideUp 0.8s ease 0.4s backwards;
}

.hero-btns {
  display: flex;
  gap: 1rem;
  animation: slideUp 0.8s ease 0.6s backwards;
}

/* Custom Animated Cursor */
.custom-cursor {
  position: fixed;
  top: 0;
  left: 0;
  width: 8px;
  height: 8px;
  background-color: var(--accent);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9999;
  will-change: transform;
}

.custom-cursor-follower {
  position: fixed;
  top: 0;
  left: 0;
  width: 40px;
  height: 40px;
  border: 2px solid var(--accent);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9998;
  will-change: transform;
  transition: width 0.2s, height 0.2s, background-color 0.2s;
}

.custom-cursor-follower.hovering {
  width: 60px;
  height: 60px;
  background-color: rgba(255, 51, 102, 0.05);
  border-color: transparent;
  backdrop-filter: blur(2px);
}

.custom-cursor-follower.clicking {
  background-color: rgba(255, 51, 102, 0.2);
}

a,
button,
.btn {
  cursor: none !important;
}

/* Hide Custom Cursor on Mobile */
@media (max-width: 768px) {

  body,
  a,
  button,
  .btn {
    cursor: auto !important;
  }

  .custom-cursor,
  .custom-cursor-follower {
    display: none !important;
  }
}

/* Abstract Tech Elements */
.tech-element {
  position: absolute;
  border: 1px solid var(--glass-border);
  border-radius: 50%;
  z-index: 0;
}

.te-1 {
  width: 400px;
  height: 400px;
  top: -100px;
  left: -100px;
  opacity: 0.3;
}

.te-2 {
  width: 800px;
  height: 800px;
  bottom: -400px;
  right: -200px;
  border-style: dashed;
  opacity: 0.2;
  animation: rotate 60s linear infinite;
}

/* Services Overview Grid */
.section-header {
  text-align: center;
  margin-bottom: 5rem;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.section-header h2 {
  font-size: 3rem;
  margin-bottom: 1rem;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.service-card {
  padding: 3rem 2rem;
  transition: transform 0.4s ease, background 0.4s ease;
  position: relative;
  overflow: hidden;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--gradient-1);
  opacity: 0;
  transition: opacity 0.4s ease;
  z-index: 0;
}

.service-card:hover {
  transform: translateY(-10px);
  border-color: rgba(255, 51, 102, 0.3);
}

.service-card:hover::before {
  opacity: 0.03;
}

.service-card:hover .btn,
.service-card:hover .portfolio-link {
  transform: translateY(-4px) scale(1.02);
  box-shadow: 0 12px 30px rgba(255, 51, 102, 0.4);
  border-color: var(--accent);
}

.service-card:hover .btn i {
  transform: translateX(6px);
}

.service-icon {
  width: 60px;
  height: 60px;
  background: var(--card-bg);
  border: 1px solid var(--glass-border);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  color: var(--accent);
  margin-bottom: 1.5rem;
  position: relative;
  z-index: 1;
  transition: transform 0.3s ease;
}

.service-card:hover .service-icon {
  transform: scale(1.1) rotate(5deg);
  background: rgba(255, 51, 102, 0.1);
  border-color: var(--accent);
}

.service-card h3 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  position: relative;
  z-index: 1;
}

.service-card p {
  color: var(--text-muted);
  position: relative;
  z-index: 1;
  flex-grow: 1;
}

/* Portfolio Highlight */
.portfolio-preview {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
}

.portfolio-item {
  border-radius: 24px;
  overflow: hidden;
  position: relative;
  transform: translateZ(0);
  /* Force hardware accel */
}

.portfolio-img {
  width: 100%;
  height: 400px;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.portfolio-item:hover .portfolio-img {
  transform: scale(1.05);
}

.portfolio-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(10, 10, 10, 0.9) 0%, rgba(10, 10, 10, 0.2) 50%, transparent 100%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 2.5rem;
  opacity: 0.8;
  transition: opacity 0.3s ease;
}

.portfolio-item:hover .portfolio-overlay {
  opacity: 1;
}

.portfolio-content h3 {
  font-size: 1.8rem;
  margin-bottom: 0.5rem;
  transform: translateY(20px);
  transition: transform 0.4s ease;
}

.portfolio-content p {
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 1.5rem;
  transform: translateY(20px);
  opacity: 0;
  transition: transform 0.4s ease 0.1s, opacity 0.4s ease 0.1s;
}

.portfolio-item:hover .portfolio-content h3,
.portfolio-item:hover .portfolio-content p {
  transform: translateY(0);
  opacity: 1;
}

.portfolio-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--accent);
  text-decoration: none;
  font-weight: 600;
  transform: translateY(20px);
  opacity: 0;
  transition: transform 0.4s ease 0.2s, opacity 0.4s ease 0.2s;
}

.portfolio-link i {
  transition: transform 0.3s ease;
}

.portfolio-item:hover .portfolio-link i {
  transform: translateX(6px);
}

.portfolio-item:hover .portfolio-link {
  transform: translateY(0) scale(1.05);
  opacity: 1;
  text-shadow: 0 0 12px rgba(255, 51, 102, 0.6);
}

/* Problem vs Solution Section */
.problem-solution-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  margin-top: 2rem;
}

.problem-card,
.solution-card {
  padding: 3rem;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.card-icon {
  font-size: 3rem;
  margin-bottom: 1.5rem;
}

.chart-container {
  margin-top: auto;
  padding-top: 2rem;
  border-top: 1px solid var(--glass-border);
}

.bar-chart {
  display: flex;
  align-items: flex-end;
  gap: 15px;
  height: 120px;
  margin-top: 2rem;
  padding-bottom: 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  position: relative;
}

.bar {
  flex: 1;
  border-radius: 6px 6px 0 0;
  position: relative;
  animation: growUp 1.5s ease-out forwards;
  transform-origin: bottom;
  opacity: 0;
}

.bar span {
  position: absolute;
  top: -25px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-main);
  white-space: nowrap;
}

.bar label {
  position: absolute;
  bottom: -25px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 0.75rem;
  color: var(--text-muted);
  white-space: nowrap;
}

@keyframes growUp {
  0% {
    transform: scaleY(0);
    opacity: 0;
  }

  100% {
    transform: scaleY(1);
    opacity: 1;
  }
}

@media (max-width: 900px) {
  .problem-solution-grid {
    grid-template-columns: 1fr;
  }
}

/* CTA Section */
.cta-section {
  text-align: center;
  padding: 6rem 2rem;
  margin: 4rem 0;
  position: relative;
  overflow: hidden;
}

.cta-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(255, 51, 102, 0.1) 0%, transparent 100%);
  z-index: 0;
}

.cta-content {
  position: relative;
  z-index: 1;
  max-width: 600px;
  margin: 0 auto;
}

.cta-content h2 {
  font-size: 3rem;
  margin-bottom: 1rem;
}

/* Footer */
footer {
  border-top: 1px solid var(--glass-border);
  padding: 4rem 0 2rem;
  background: var(--secondary);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 4rem;
  margin-bottom: 4rem;
}

.footer-col h4 {
  font-size: 1.2rem;
  margin-bottom: 1.5rem;
  color: var(--text-main);
}

.footer-col p {
  margin-bottom: 1.5rem;
}

.footer-links {
  list-style: none;
}

.footer-links li {
  margin-bottom: 1rem;
}

.footer-links a {
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-links a:hover {
  color: var(--accent);
}

.social-links {
  display: flex;
  gap: 1rem;
}

.social-links a {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--card-bg);
  border: 1px solid var(--glass-border);
  border-radius: 50%;
  color: var(--text-main);
  text-decoration: none;
  transition: all 0.3s ease;
}

.social-links a:hover {
  background: var(--accent);
  border-color: var(--accent);
  transform: translateY(-3px);
}

.footer-bottom {
  text-align: center;
  padding-top: 2rem;
  border-top: 1px solid var(--glass-border);
  color: var(--text-muted);
  font-size: 0.9rem;
}

/* Animations */
@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes rotate {
  from {
    transform: rotate(0deg);
  }

  to {
    transform: rotate(360deg);
  }
}

/* Responsive */
@media (max-width: 1024px) {
  .hero h1 {
    font-size: 3.5rem;
  }

  .services-grid,
  .portfolio-preview,
  .footer-grid,
  .problem-solution-grid,
  .contact-container {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .about .container {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .about .feature-list li {
    justify-content: center;
  }
}

@media (max-width: 768px) {
  .nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    width: 100%;
    height: 100vh;
    background: var(--card-bg);
    flex-direction: column;
    justify-content: center;
    transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 999;
    padding: 2rem;
  }

  .nav-links.active {
    right: 0;
  }

  .mobile-menu-btn {
    display: block;
    z-index: 1000;
  }

  .hero h1 {
    font-size: 2.5rem;
    word-break: break-word;
  }

  .blinking-cursor {
    font-size: 2.5rem;
  }

  .tech-element {
    display: none;
  }

  .hero p {
    font-size: 1rem;
  }

  .hero-btns {
    flex-direction: column;
    width: 100%;
  }

  .hero-btns .btn {
    width: 100%;
    justify-content: center;
  }

  .section-header h2 {
    font-size: 2rem;
  }

  section {
    padding: 3rem 0;
  }

  .page-header {
    padding: 8rem 0 4rem;
    position: relative;
    overflow: hidden;
  }

  .page-header h1 {
    font-size: 3rem;
  }

  .portfolio-preview {
    grid-template-columns: 1fr !important;
    gap: 2rem !important;
  }

  .service-card {
    padding: 2rem 1.5rem !important;
  }
}

@media (max-width: 480px) {
  .hero h1 {
    font-size: 2rem;
  }

  .blinking-cursor {
    font-size: 2rem;
  }

  .bar span {
    font-size: 0.7rem;
    top: -20px;
  }

  .bar label {
    font-size: 0.6rem;
    bottom: -20px;
  }

  .bar-chart {
    gap: 8px;
  }

  .problem-card,
  .solution-card {
    padding: 2rem 1.5rem;
  }

  .page-header h1 {
    font-size: 2.5rem;
  }

  .service-card {
    padding: 2rem 1rem !important;
  }
}

/* Page Headers (Services, Portfolio, Contact) */
.page-header {
  padding: 12rem 0 6rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.page-header h1 {
  font-size: 4rem;
  margin-bottom: 1rem;
  animation: slideUp 0.8s ease backwards;
}

.page-header p {
  font-size: 1.2rem;
  max-width: 600px;
  margin: 0 auto;
  animation: slideUp 0.8s ease 0.2s backwards;
}

/* Lists */
.feature-list {
  list-style: none;
  margin-top: 1.5rem;
}

.feature-list li {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  margin-bottom: 0.8rem;
  color: var(--text-main);
}

.feature-list i {
  color: var(--accent);
}

/* Contact Form */
.contact-container {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 4rem;
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.info-item {
  display: flex;
  gap: 1.5rem;
}

.info-icon {
  width: 50px;
  height: 50px;
  background: var(--card-bg);
  border: 1px solid var(--glass-border);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  color: var(--accent);
  flex-shrink: 0;
}

.info-content h4 {
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 500;
}

.form-control {
  width: 100%;
  padding: 15px 20px;
  background: var(--card-bg);
  border: 1px solid var(--glass-border);
  border-radius: 12px;
  color: var(--text-main);
  font-family: inherit;
  font-size: 1rem;
  transition: all 0.3s ease;
}

.form-control:focus {
  outline: none;
  border-color: var(--accent);
  background: #FFFFFF;
  box-shadow: 0 0 10px rgba(255, 51, 102, 0.1);
}

.form-control::placeholder {
  color: #888888;
}

.form-control option {
  background-color: var(--secondary);
  color: var(--text-main);
  padding: 10px;
}

textarea.form-control {
  min-height: 150px;
  resize: vertical;
}

@media (max-width: 900px) {
  .contact-container {
    grid-template-columns: 1fr;
  }
}

/* Utility Animations for JS */
.fade-in-section {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.4s ease-out, transform 0.4s ease-out;
  /* Sped up from 0.8s to remove 'lazy' feel */
  will-change: opacity, visibility;
}

.fade-in-section.is-visible {
  opacity: 1;
  transform: none;
}

@media (max-width: 768px) {
  .fade-in-section {
    transform: none !important;
    transition: opacity 0.5s ease-out;
  }
}

/* Floating Cookie Consent Popup */
.cookie-consent-overlay {
  position: fixed;
  bottom: 20px;
  left: 20px;
  max-width: 320px;
  z-index: 9999;
  display: flex;
  pointer-events: none;
}

.cookie-consent-box {
  background: var(--card-bg);
  padding: 1.5rem;
  border-radius: 15px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
  pointer-events: auto;
  transform: translateY(150%);
  animation: slideUpCookie 0.5s forwards ease-out;
  border: 1px solid var(--glass-border);
  border-bottom: 3px solid var(--accent);
}

@keyframes slideUpCookie {
  to {
    transform: translateY(0);
  }
}

.cookie-consent-box h4 {
  margin-bottom: 0.5rem;
  font-size: 1.1rem;
  color: var(--text-main);
}

.cookie-consent-box p {
  margin-bottom: 1rem;
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.4;
}

.cookie-btns {
  display: flex;
  gap: 0.5rem;
}

.cookie-btns button {
  flex: 1;
}

@media (max-width: 600px) {
  .cookie-consent-overlay {
    bottom: 15px;
    left: 15px;
    right: 15px;
    max-width: none;
  }
}