/* CSS Variables for Design System */
:root {
  --ink: #1f1233;
  --brand: #38003c;
  --neon: #00ff85;
  --paper: #f9f9fc;
  --mist: #f0f0f5;
  --section-padding: 5rem 0;
  --container-width: 1200px;
  --transition-speed: 0.3s;

  /* Responsive font sizes using clamp() */
  --font-size-small: clamp(0.8rem, 1.5vw, 1rem);
  --font-size-normal: clamp(0.9rem, 2vw, 1.1rem);
  --font-size-medium: clamp(1rem, 2.5vw, 1.3rem);
  --font-size-large: clamp(1.3rem, 3vw, 1.8rem);
  --font-size-xlarge: clamp(1.8rem, 4vw, 2.5rem);
  --font-size-xxlarge: clamp(2.5rem, 6vw, 4rem);
  --font-size-hero: clamp(3.5rem, 8vw, 9rem);

  /* Mobile-friendly spacing */
  --spacing-small: clamp(0.5rem, 2vw, 1rem);
  --spacing-medium: clamp(1rem, 3vw, 1.5rem);
  --spacing-large: clamp(1.5rem, 4vw, 2rem);
  --spacing-xlarge: clamp(2rem, 5vw, 3rem);
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Montserrat', sans-serif;
  background-color: var(--paper);
  color: var(--ink);
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 20px;
  overflow-x: hidden;
  line-height: 1.6;
}

/* Dark Mode Styles */
body.dark-mode {
  background-color: var(--ink);
  color: var(--paper);
}

/* Grid Overlay */
.grid-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: linear-gradient(rgba(200, 200, 200, 0.1) 1px, transparent 1px),
                    linear-gradient(90deg, rgba(200, 200, 200, 0.1) 1px, transparent 1px);
  background-size: 20px 20px;
  pointer-events: none;
  z-index: 1;
}

.dark-mode .grid-overlay {
  background-image: linear-gradient(rgba(100, 100, 100, 0.1) 1px, transparent 1px),
                    linear-gradient(90deg, rgba(100, 100, 100, 0.1) 1px, transparent 1px);
}

/* Geometric Shapes */
.geometric-shape {
  position: absolute;
  z-index: 1;
  transition: all var(--transition-speed) ease;
}

.shape-1 {
  width: 250px;
  height: 250px;
  top: -70px;
  right: -70px;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(233, 0, 82, 0.15), rgba(56, 0, 60, 0.1));
  animation: float 8s infinite ease-in-out;
  box-shadow: 0 0 30px rgba(233, 0, 82, 0.1);
}

.shape-2 {
  width: 180px;
  height: 180px;
  bottom: -40px;
  left: 30%;
  transform: rotate(45deg);
  background: linear-gradient(135deg, rgba(4, 245, 255, 0.15), rgba(0, 255, 133, 0.1));
  animation: rotate 12s infinite linear;
  box-shadow: 0 0 25px rgba(4, 245, 255, 0.1);
}

.shape-3 {
  width: 120px;
  height: 120px;
  top: 20%;
  left: -30px;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(0, 255, 133, 0.15), rgba(4, 245, 255, 0.1));
  animation: pulse 5s infinite alternate;
  box-shadow: 0 0 20px rgba(0, 255, 133, 0.1);
}

.shape-4 {
  width: 150px;
  height: 150px;
  bottom: 20%;
  right: 10%;
  clip-path: polygon(50% 0%, 0% 100%, 100% 100%);
  background: linear-gradient(135deg, rgba(61, 25, 91, 0.15), rgba(233, 0, 82, 0.1));
  animation: triangle 10s infinite ease-in-out;
  box-shadow: 0 0 25px rgba(61, 25, 91, 0.1);
}

.shape-5 {
  width: 100px;
  height: 100px;
  top: 40%;
  right: 20%;
  background: linear-gradient(135deg, rgba(233, 0, 82, 0.15), rgba(56, 0, 60, 0.1));
  clip-path: polygon(25% 0%, 75% 0%, 100% 50%, 75% 100%, 25% 100%, 0% 50%);
  animation: hexagon 7s infinite alternate;
  box-shadow: 0 0 20px rgba(233, 0, 82, 0.1);
}

.shape-6 {
  width: 90px;
  height: 90px;
  top: 15%;
  left: 5%;
  clip-path: polygon(50% 0%, 100% 50%, 50% 100%, 0% 50%);
  background: linear-gradient(135deg, rgba(0, 255, 133, 0.15), rgba(56, 0, 60, 0.1));
  animation: diamond-pulse 6s infinite alternate;
  box-shadow: 0 0 20px rgba(0, 255, 133, 0.1);
}



.shape-morph {
  position: absolute;
  top: 30%;
  left: 10%;
  width: 150px;
  height: 150px;
  background: linear-gradient(135deg, rgba(56, 0, 60, 0.08), rgba(0, 255, 133, 0.08));
  z-index: -1;
  animation: morph 15s infinite ease-in-out;
  box-shadow: 0 0 25px rgba(56, 0, 60, 0.05);
}

@keyframes morph {
  0% {
    border-radius: 0;
    clip-path: polygon(50% 0%, 100% 50%, 50% 100%, 0% 50%);
    transform: rotate(0deg);
  }
  25% {
    border-radius: 20%;
    clip-path: polygon(25% 0%, 75% 0%, 100% 50%, 75% 100%, 25% 100%, 0% 50%);
    transform: rotate(90deg);
  }
  50% {
    border-radius: 0;
    clip-path: polygon(0% 0%, 100% 0%, 100% 100%, 0% 100%);
    transform: rotate(180deg);
  }
  75% {
    border-radius: 30%;
    clip-path: polygon(50% 0%, 100% 38%, 82% 100%, 18% 100%, 0% 38%);
    transform: rotate(270deg);
  }
  100% {
    border-radius: 50%;
    clip-path: none;
    transform: rotate(360deg);
  }
}

.dark-mode .geometric-shape {
  opacity: 0.7;
}

/* Animations - Reduced for mobile performance */
@keyframes float {
  0%, 100% { transform: translateY(0) scale(1); }
  50% { transform: translateY(-15px) scale(1.02); }
}

@keyframes rotate {
  0% { transform: rotate(45deg); }
  100% { transform: rotate(405deg); }
}

@keyframes pulse {
  0% { transform: scale(1); opacity: 0.15; }
  100% { transform: scale(1.15); opacity: 0.25; }
}

@keyframes triangle {
  0%, 100% { transform: rotate(0deg) scale(1); }
  50% { transform: rotate(180deg) scale(1.1); }
}

@keyframes hexagon {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

@keyframes diamond-pulse {
  0% { transform: scale(1) rotate(0deg); }
  100% { transform: scale(1.05) rotate(3deg); }
}

@keyframes logo-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

/* Language Selector */
.language-selector {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 101;
  display: flex;
  align-items: center;
  gap: 10px;
}

.language-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  background-color: var(--paper);
  border: 1px solid var(--brand);
  border-radius: 50%;
  width: 36px;
  height: 36px;
  cursor: pointer;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--ink);
  transition: all var(--transition-speed) ease;
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.language-btn::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background-color: var(--brand);
  transform: translate(-50%, -50%);
  transition: width 0.3s ease, height 0.3s ease;
  z-index: -1;
}

.language-btn:hover::before {
  width: 100%;
  height: 100%;
}

.language-btn:hover {
  color: var(--paper);
  transform: rotate(15deg) scale(1.1);
}
  color: var(--paper);
  transform: scale(1.05);
}

.language-btn i {
  font-size: 0.9rem;
}

.current-language-symbol {
  font-size: 0.7rem;
  font-weight: 700;
}

.language-dropdown {
  position: absolute;
  top: 100%;
  right: 0;
  margin-top: 5px;
  background-color: var(--paper);
  border: 1px solid var(--brand);
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: all var(--transition-speed) ease;
  z-index: 100;
  min-width: 120px;
}

.language-dropdown.active {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.language-option {
  display: block;
  width: 100%;
  padding: 10px 15px;
  text-align: center;
  background: none;
  border: none;
  cursor: pointer;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--ink);
  transition: background-color var(--transition-speed) ease;
}

.language-option:hover {
  background-color: var(--mist);
}

.language-option.active {
  background-color: var(--brand);
  color: var(--paper);
}

/* RTL Support */
[dir="rtl"] .language-selector {
  right: auto;
  left: 10px;
}

[dir="rtl"] .language-dropdown {
  right: auto;
  left: 0;
}

/* Header & Navigation */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 100;
  background-color: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(10px);
  transition: all var(--transition-speed) ease;
}

.dark-mode .header {
  background-color: rgba(31, 18, 51, 0.8);
}

.swiss-nav {
  position: relative;
  padding: 1rem 2rem;
  z-index: 10;
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  position: relative;
  width: 100%;
}

[dir="rtl"] .nav-container {
  flex-direction: row;
  justify-content: space-between;
}

.nav-logo {
  display: flex;
  align-items: center;
  text-decoration: none;
  position: relative;
  margin-right: 15px;
  z-index: 10;
}

[dir="rtl"] .nav-logo {
  position: static;
  margin-left: 15px;
  margin-right: 0;
  order: 0;
}

.nav-logo-img {
  height: 30px;
  width: auto;
  transition: transform var(--transition-speed) ease;
}

.nav-logo:hover .nav-logo-img {
  transform: scale(1.1);
}

.nav-controls {
  display: flex;
  align-items: center;
  gap: 15px;
  justify-content: flex-end;
}

.nav-links {
  display: flex;
  align-items: center;
  flex: 1;
  justify-content: flex-start;
}

[dir="rtl"] .nav-links {
  order: 1;
}

.nav-link {
  margin-left: 2rem;
  text-decoration: none;
  color: var(--ink);
  font-weight: 500;
  font-size: 0.9rem;
  letter-spacing: 1px;
  text-transform: uppercase;
  position: relative;
  transition: color var(--transition-speed) ease;
  padding-bottom: 8px;
}

[dir="rtl"] .nav-link {
  margin-left: 0;
  margin-right: 3rem;
}

.dark-mode .nav-link {
  color: var(--paper);
}

.nav-link::after {
  content: "";
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--brand);
  transition: width var(--transition-speed) ease;
}

.nav-link::before {
  content: "";
  position: absolute;
  bottom: -5px;
  right: 0;
  width: 0;
  height: 2px;
  background-color: var(--brand);
  transition: width var(--transition-speed) ease;
}

.nav-link:hover {
  color: var(--brand);
}

.dark-mode .nav-link:hover {
  color: var(--neon);
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 50%;
}

.nav-link:hover::before,
.nav-link.active::before {
  width: 50%;
}

.nav-link.active {
  color: var(--brand);
}

.dark-mode .nav-link.active {
  color: var(--neon);
}

/* Dark Mode Toggle */
.dark-mode-toggle {
  position: relative;
  width: 50px;
  height: 26px;
  cursor: pointer;
}

.toggle-diamond {
  position: absolute;
  top: 0;
  left: 0;
  width: 26px;
  height: 26px;
  background-color: var(--neon);
  clip-path: polygon(50% 0%, 100% 50%, 50% 100%, 0% 50%);
  transition: all var(--transition-speed) ease;
  z-index: 2;
}

.toggle-track {
  position: absolute;
  top: 13px;
  left: 0;
  width: 50px;
  height: 2px;
  background-color: #ccc;
  border-radius: 1px;
}

.dark-mode .toggle-diamond {
  transform: translateX(24px);
  background-color: var(--brand);
}

.dark-mode .toggle-track {
  background-color: #555;
}

/* Mobile Navigation Toggle */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 44px;
  height: 34px;
  cursor: pointer;
  padding: 8px;
  border-radius: 4px;
  transition: background-color var(--transition-speed) ease;
}

.nav-toggle:hover {
  background-color: rgba(0, 0, 0, 0.05);
}

.nav-toggle span {
  display: block;
  height: 4px;
  width: 100%;
  background-color: var(--ink);
  border-radius: 2px;
  transition: all var(--transition-speed) ease;
}

/* RTL Layout Styles */
body.rtl .nav-logo {
  left: 50%;
  transform: translateX(-50%);
}

body.rtl .nav-links {
  flex-direction: row;
  justify-content: flex-start;
}

body.rtl .nav-controls {
  flex-direction: row;
  justify-content: flex-end;
}

body.rtl .logo-text {
  direction: ltr;
  display: inline-block;
}

body.rtl .glitch {
  direction: ltr;
  display: inline-block;
}

body.rtl .highlight {
  direction: ltr;
  display: inline-block;
}

body.rtl .footer-logo .logo-text {
  direction: ltr;
  display: inline-block;
}

body.rtl .section-header h2 .highlight {
  direction: ltr;
  display: inline-block;
}

.dark-mode .nav-toggle span {
  background-color: var(--paper);
}

.nav-toggle.active span:nth-child(1) {
  transform: translateY(9px) rotate(45deg);
}

.nav-toggle.active span:nth-child(2) {
  opacity: 0;
}

.nav-toggle.active span:nth-child(3) {
  transform: translateY(-9px) rotate(-45deg);
}

/* Hero Section */
.hero {
  min-height: 70vh;
  display: flex;
  position: relative;
  background: transparent;
  z-index: 2;
  margin-top: 80px;
  margin-bottom: 2rem;
}

.name-section {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  background-color: rgba(255, 255, 255, 0.5);
  padding: 4rem;
  position: relative;
  clip-path: polygon(0 0, 95% 0, 100% 100%, 0 100%);
  transition: all var(--transition-speed) ease;
}

.dark-mode .name-section {
  background-color: rgba(40, 40, 40, 0.8);
}

.logo-section {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  background-color: rgba(255, 255, 255, 0.7);
  position: relative;
  overflow: hidden;
  clip-path: polygon(5% 0, 100% 0, 100% 100%, 0 100%);
  transition: all var(--transition-speed) ease;
}

.dark-mode .logo-section {
  background-color: rgba(30, 30, 30, 0.8);
}

.logo-container {
  position: relative;
  z-index: 2;
  width: 70%;
  height: 70%;
  display: flex;
  justify-content: center;
  align-items: center;
}

.logo {
  max-width: 100%;
  max-height: 100%;
  transition: all var(--transition-speed) ease;
  clip-path: polygon(25% 0%, 100% 0%, 75% 100%, 0% 100%);
  animation: logo-float 4s infinite ease-in-out;
}

.logo:hover {
  clip-path: polygon(0% 0%, 100% 0%, 100% 100%, 0% 100%);
  transform: scale(1.05);
}

.zak-pro {
  font-size: 9rem;
  font-weight: 900;
  letter-spacing: -2px;
  color: var(--brand);
  text-transform: uppercase;
  line-height: 0.9;
  margin-bottom: 2rem;
  position: relative;
  clip-path: polygon(0 0, 100% 0, 100% 85%, 0 100%);
  transition: all var(--transition-speed) ease;
}

.dark-mode .zak-pro {
  color: var(--neon);
}

.zak-pro:hover {
  clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%);
}

.zak-pro .letter {
  display: inline-block;
  opacity: 0;
  transform: translateY(20px);
  animation: letter-appear 0.5s forwards;
}

.zak-pro .letter:nth-child(1) { animation-delay: 0.1s; }
.zak-pro .letter:nth-child(2) { animation-delay: 0.2s; }
.zak-pro .letter:nth-child(3) { animation-delay: 0.3s; }
.zak-pro .letter:nth-child(4) { animation-delay: 0.4s; }
.zak-pro .letter:nth-child(5) { animation-delay: 0.5s; }
.zak-pro .letter:nth-child(6) { animation-delay: 0.6s; }

@keyframes letter-appear {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.tagline {
  font-size: 1.2rem;
  color: var(--brand);
  margin-top: 1rem;
  font-weight: 400;
  letter-spacing: 1px;
  text-transform: uppercase;
  transition: color var(--transition-speed) ease;
}

.dark-mode .tagline {
  color: var(--paper);
}

.accent-element {
  position: absolute;
  bottom: 3rem;
  right: 0.2rem;
  width: 80px;
  height: 80px;
  background: linear-gradient(135deg, var(--neon), rgba(0, 255, 133, 0.7));
  display: flex;
  justify-content: center;
  align-items: center;
  clip-path: polygon(50% 0%, 100% 50%, 50% 100%, 0% 50%);
  transition: all var(--transition-speed) ease;
  animation: diamond-pulse 4s infinite alternate;
  font-weight: 700;
  color: var(--brand);
  box-shadow: 0 0 20px rgba(0, 255, 133, 0.3);
}

.accent-element-left {
  position: absolute;
  bottom: 3rem;
  left: 3rem;
  width: 80px;
  height: 80px;
  background: linear-gradient(135deg, var(--brand), rgba(56, 0, 60, 0.7));
  display: flex;
  justify-content: center;
  align-items: center;
  clip-path: polygon(50% 0%, 100% 50%, 50% 100%, 0% 50%);
  transition: all var(--transition-speed) ease;
  animation: diamond-pulse 4s infinite alternate;
  font-weight: 700;
  color: var(--neon);
  box-shadow: 0 0 20px rgba(56, 0, 60, 0.3);
}

[dir="rtl"] .accent-element {
  position: absolute;
  bottom: 3rem;
  left: 50%;
  right: auto;
  transform: translateX(-50%);
  margin-left: -300px;
}

[dir="rtl"] .zak-pro {
  direction: rtl;
  display: inline-block;
}

.dark-mode .accent-element {
  background-color: var(--brand);
  color: var(--neon);
}

/* Section Styles */
.section {
  padding: var(--section-padding);
  position: relative;
  z-index: 2;
}

.section-container {
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 var(--spacing-large);
}

.section-title {
  position: relative;
  text-align: center;
  margin-bottom: 3rem;
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--brand);
  text-transform: uppercase;
  letter-spacing: 2px;
}

.dark-mode .section-title {
  color: var(--neon);
}

.title-accent {
  position: absolute;
  bottom: -15px;
  left: 50%;
  transform: translateX(-50%);
  width: 50px;
  height: 50px;
  background-color: var(--neon);
  clip-path: polygon(50% 0%, 100% 50%, 50% 100%, 0% 50%);
  opacity: 0.2;
  z-index: -1;
}

.dark-mode .title-accent {
  background-color: var(--brand);
}

/* About Section */
.section-content {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
  font-size: 1.1rem;
  line-height: 1.8;
}

.dark-mode .section-content {
  color: var(--paper);
}

.pillar-container {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
  margin-bottom: 2rem;
}

.pillar {
  background-color: rgba(255, 255, 255, 0.7);
  border-radius: 8px;
  padding: var(--spacing-large);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  transition: all var(--transition-speed) ease;
}

.dark-mode .pillar {
  background-color: rgba(40, 40, 40, 0.7);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.pillar:hover {
  transform: translateY(-5px);
}

.pillar h3 {
  color: var(--brand);
  font-size: 1.3rem;
  margin-bottom: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.dark-mode .pillar h3 {
  color: var(--neon);
}

.pillar p {
  color: var(--ink);
  font-size: 0.95rem;
}

.dark-mode .pillar p {
  color: var(--paper);
}

.timeline {
  margin-top: 2rem;
  padding: 1.5rem;
  background-color: rgba(255, 255, 255, 0.5);
  border-radius: 8px;
  position: relative;
}

.dark-mode .timeline {
  background-color: rgba(40, 40, 40, 0.5);
}

.timeline::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 30px;
  height: 30px;
  background-color: var(--neon);
  clip-path: polygon(50% 0%, 100% 50%, 50% 100%, 0% 50%);
  opacity: 0.2;
}

/* Services Section */
.services-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  width: 100%;
  box-sizing: border-box;
}

@media (max-width: 992px) {
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 576px) {
  .services-grid {
    grid-template-columns: 1fr;
  }
}

.service-card {
  background-color: rgba(255, 255, 255, 0.8);
  border-radius: 8px;
  padding: var(--spacing-xlarge);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  position: relative;
  overflow: hidden;
  transition: all var(--transition-speed) ease;
  height: 100%;
  display: flex;
  flex-direction: column;
  word-wrap: break-word;
  hyphens: auto;
  z-index: 1;
}

.dark-mode .service-card {
  background-color: rgba(40, 40, 40, 0.8);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(45deg, transparent, rgba(56, 0, 60, 0.05), transparent);
  transform: translateX(-100%);
  transition: transform 0.6s;
  z-index: -1;
}

.service-card:hover::before {
  transform: translateX(100%);
}

.service-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.card-accent {
  position: absolute;
  top: -20px;
  right: -20px;
  width: 80px;
  height: 80px;
  background-color: var(--neon);
  clip-path: polygon(50% 0%, 100% 50%, 50% 100%, 0% 50%);
  opacity: 0.2;
  z-index: 0;
}

.dark-mode .card-accent {
  background-color: var(--brand);
}

.card-content {
  position: relative;
  z-index: 1;
}

.service-card h3 {
  margin-bottom: 1rem;
  color: var(--brand);
  font-size: 1.3rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  word-wrap: break-word;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: normal;
}

.dark-mode .service-card h3 {
  color: var(--neon);
}

.service-card p {
  color: var(--ink);
  font-size: 0.95rem;
  flex-grow: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.5;
}

.dark-mode .service-card p {
  color: var(--paper);
}

/* Portfolio Section */
.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: clamp(1rem, 3vw, 1.5rem);
  width: 100%;
  box-sizing: border-box;
}

/* Blog Section */
.blog-features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin: 2rem 0;
  width: 100%;
  box-sizing: border-box;
}

@media (max-width: 992px) {
  .blog-features {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 576px) {
  .blog-features {
    grid-template-columns: 1fr;
  }
}

.blog-cta {
  text-align: center;
  padding: 2rem;
  background-color: rgba(255, 255, 255, 0.8);
  border-radius: 10px;
  margin-top: 2rem;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.dark-mode .blog-cta {
  background-color: rgba(40, 40, 40, 0.8);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.cta-logo {
  margin-bottom: 1.5rem;
}

.cta-logo-img {
  height: 60px;
  width: auto;
}

.blog-cta p {
  margin-bottom: 1.5rem;
  color: var(--ink);
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.dark-mode .blog-cta p {
  color: var(--paper);
}

.cta-button {
  display: inline-block;
  background-color: var(--brand);
  color: white;
  padding: 0.8rem 2rem;
  border-radius: 30px;
  font-weight: 600;
  text-decoration: none;
  transition: all var(--transition-speed) ease;
  margin-bottom: 1.5rem;
}

.cta-button:hover {
  background-color: var(--neon);
  color: var(--ink);
  transform: translateY(-3px);
}

.dark-mode .cta-button {
  background-color: var(--neon);
  color: var(--ink);
}

.dark-mode .cta-button:hover {
  background-color: var(--brand);
  color: white;
}

.cta-social {
  display: flex;
  justify-content: center;
  gap: 1rem;
}

.social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: rgba(0, 0, 0, 0.1);
  color: var(--brand);
  font-size: 1.2rem;
  transition: all var(--transition-speed) ease;
}

.social-link:hover {
  background-color: var(--brand);
  color: white;
  transform: translateY(-3px);
}

.dark-mode .social-link {
  background-color: rgba(255, 255, 255, 0.1);
  color: var(--neon);
}

.dark-mode .social-link:hover {
  background-color: var(--neon);
  color: var(--ink);
}

.feature-card {
  background-color: rgba(255, 255, 255, 0.8);
  border-radius: 8px;
  padding: 2rem;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  transition: transform var(--transition-speed) ease, box-shadow var(--transition-speed) ease;
}

.dark-mode .feature-card {
  background-color: rgba(40, 40, 40, 0.8);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.feature-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.feature-icon {
  font-size: 2.5rem;
  color: var(--brand);
  margin-bottom: 1rem;
}

.dark-mode .feature-icon {
  color: var(--neon);
}

.feature-card h3 {
  margin-bottom: 1rem;
  color: var(--brand);
  font-size: 1.3rem;
}

.dark-mode .feature-card h3 {
  color: var(--neon);
}

.feature-card p {
  color: var(--ink);
  line-height: 1.5;
}

.dark-mode .feature-card p {
  color: var(--paper);
}

.blog-preview {
  margin: 3rem 0;
}

.blog-preview h3 {
  text-align: center;
  margin-bottom: 2rem;
  color: var(--brand);
  font-size: 1.8rem;
}

.dark-mode .blog-preview h3 {
  color: var(--neon);
}

.preview-articles {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  width: 100%;
  box-sizing: border-box;
}

@media (max-width: 992px) {
  .preview-articles {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 576px) {
  .preview-articles {
    grid-template-columns: 1fr;
  }
}

.preview-article {
  background-color: rgba(255, 255, 255, 0.6);
  border-radius: 8px;
  padding: 1.5rem;
  transition: transform var(--transition-speed) ease;
}

.dark-mode .preview-article {
  background-color: rgba(40, 40, 40, 0.6);
}

.preview-article:hover {
  transform: translateY(-3px);
}

.article-meta {
  display: flex;
  justify-content: space-between;
  margin-bottom: 0.8rem;
  font-size: 0.85rem;
}

.article-date {
  color: #666;
}

.dark-mode .article-date {
  color: #aaa;
}

.article-category {
  background-color: var(--brand);
  color: white;
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
  font-size: 0.8rem;
}

.dark-mode .article-category {
  background-color: var(--neon);
  color: var(--ink);
}

.preview-article h4 {
  margin-bottom: 0.8rem;
  color: var(--brand);
  font-size: 1.1rem;
  line-height: 1.3;
}

.dark-mode .preview-article h4 {
  color: var(--neon);
}

.preview-article p {
  color: var(--ink);
  font-size: 0.95rem;
  line-height: 1.5;
}

.dark-mode .preview-article p {
  color: var(--paper);
}

.blog-post {
  background-color: rgba(255, 255, 255, 0.8);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  transition: transform var(--transition-speed) ease, box-shadow var(--transition-speed) ease;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.dark-mode .blog-post {
  background-color: rgba(40, 40, 40, 0.8);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.blog-post:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.post-image {
  height: 200px;
  overflow: hidden;
}

.post-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-speed) ease;
}

.blog-post:hover .post-image img {
  transform: scale(1.05);
}

.post-content {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.post-meta {
  display: flex;
  justify-content: space-between;
  margin-bottom: 1rem;
  font-size: 0.85rem;
  color: #666;
}

.dark-mode .post-meta {
  color: #aaa;
}

.post-date {
  font-weight: 500;
}

.post-category {
  background-color: var(--brand);
  color: white;
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
  font-size: 0.8rem;
}

.dark-mode .post-category {
  background-color: var(--neon);
  color: var(--ink);
}

.blog-post h3 {
  margin-bottom: 1rem;
  color: var(--brand);
  font-size: 1.2rem;
  line-height: 1.3;
}

.dark-mode .blog-post h3 {
  color: var(--neon);
}

.blog-post p {
  margin-bottom: 1.5rem;
  color: var(--ink);
  flex-grow: 1;
  line-height: 1.5;
}

.dark-mode .blog-post p {
  color: var(--paper);
}

.read-more {
  color: var(--brand);
  text-decoration: none;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  transition: color var(--transition-speed) ease;
}

.read-more::after {
  content: '→';
  margin-left: 0.5rem;
  transition: transform var(--transition-speed) ease;
}

.read-more:hover {
  color: var(--neon);
}

.read-more:hover::after {
  transform: translateX(3px);
}

.dark-mode .read-more {
  color: var(--neon);
}

.dark-mode .read-more:hover {
  color: var(--brand);
}

.blog-intro {
  text-align: center;
  max-width: 800px;
  margin: 0 auto 2rem;
}

.blog-cta {
  text-align: center;
  margin-top: 2rem;
}

.cta-button {
  display: inline-block;
  background-color: var(--brand);
  color: white;
  padding: 0.8rem 2rem;
  border-radius: 4px;
  text-decoration: none;
  font-weight: 600;
  transition: background-color var(--transition-speed) ease, transform var(--transition-speed) ease;
}

.cta-button:hover {
  background-color: var(--neon);
  color: var(--ink);
  transform: translateY(-3px);
}

.dark-mode .cta-button {
  background-color: var(--neon);
  color: var(--ink);
}

.dark-mode .cta-button:hover {
  background-color: var(--brand);
  color: white;
}

.portfolio-item {
  position: relative;
  overflow: hidden;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  height: 250px;
}

.portfolio-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-speed) ease;
}

.portfolio-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(56, 0, 60, 0.8);
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0;
  transition: opacity var(--transition-speed) ease;
}

.dark-mode .portfolio-overlay {
  background-color: rgba(0, 255, 133, 0.8);
}

.portfolio-item:hover .portfolio-overlay {
  opacity: 1;
}

.portfolio-item:hover img {
  transform: scale(1.1);
}

.overlay-content {
  text-align: center;
  color: var(--paper);
  padding: 1rem;
}

.dark-mode .overlay-content {
  color: var(--ink);
}

.overlay-content h3 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.overlay-accent {
  width: 50px;
  height: 50px;
  background-color: var(--neon);
  clip-path: polygon(50% 0%, 100% 50%, 50% 100%, 0% 50%);
  margin: 0 auto;
  display: flex;
  justify-content: center;
  align-items: center;
  font-weight: 700;
  color: var(--brand);
}

.dark-mode .overlay-accent {
  background-color: var(--brand);
  color: var(--neon);
}

/* Contact Section */
.contact-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  width: 100%;
  box-sizing: border-box;
}

@media (max-width: 992px) {
  .contact-content {
    grid-template-columns: 1fr;
  }
}

.contact-form-container {
  background-color: rgba(255, 255, 255, 0.8);
  padding: var(--spacing-xlarge);
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.dark-mode .contact-form-container {
  background-color: rgba(40, 40, 40, 0.8);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--brand);
}

.dark-mode .form-group label {
  color: var(--neon);
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: var(--spacing-medium);
  border: 1px solid #ddd;
  border-radius: 4px;
  font-family: 'Montserrat', sans-serif;
  font-size: var(--font-size-normal);
  background-color: rgba(255, 255, 255, 0.9);
  color: var(--ink);
  transition: all var(--transition-speed) ease;
}

/* Mobile-friendly form inputs */
.form-group input[type="email"] {
  inputmode: email;
}

.form-group input[type="tel"] {
  inputmode: tel;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--neon);
  box-shadow: 0 0 0 2px rgba(0, 255, 133, 0.2);
}

.dark-mode .form-group input,
.dark-mode .form-group textarea {
  background-color: rgba(30, 30, 30, 0.9);
  border-color: #444;
  color: var(--paper);
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--neon);
  box-shadow: 0 0 0 2px rgba(0, 255, 133, 0.2);
}

.dark-mode .form-group input:focus,
.dark-mode .form-group textarea:focus {
  border-color: var(--brand);
  box-shadow: 0 0 0 2px rgba(56, 0, 60, 0.2);
}

.submit-btn {
  background-color: var(--brand);
  color: var(--paper);
  border: none;
  padding: 0.8rem 2rem;
  font-size: 1rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  border-radius: 4px;
  cursor: pointer;
  transition: all var(--transition-speed) ease;
  width: 100%;
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.submit-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: left 0.5s;
}

.submit-btn:hover::before {
  left: 100%;
}

.submit-btn:hover {
  background-color: var(--neon);
  color: var(--brand);
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.contact-info {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.contact-info h3 {
  font-size: 2rem;
  margin-bottom: 2rem;
  color: var(--brand);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.dark-mode .contact-info h3 {
  color: var(--neon);
}

.contact-links {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.contact-link {
  display: flex;
  align-items: center;
  text-decoration: none;
  color: var(--ink);
  font-size: 1.1rem;
  transition: all var(--transition-speed) ease;
}

.dark-mode .contact-link {
  color: var(--paper);
}

.contact-link:hover {
  transform: translateX(10px);
  color: var(--brand);
}

.dark-mode .contact-link:hover {
  color: var(--neon);
}

.link-icon {
  margin-right: 1rem;
  font-size: 1.5rem;
  width: 30px;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Tech/AI Section */
.tech-ai {
  position: relative;
}

.tech-ai .section-content {
  max-width: 900px;
}

.tech-intro {
  margin-bottom: 3rem;
  text-align: center;
}

.tech-projects {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  width: 100%;
  box-sizing: border-box;
}

@media (max-width: 992px) {
  .tech-projects {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 576px) {
  .tech-projects {
    grid-template-columns: 1fr;
  }
}

.tech-projects h3 {
  text-align: center;
  margin-bottom: 2rem;
  color: var(--brand);
  font-size: 1.5rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  grid-column: span 3;
}

.dark-mode .tech-projects h3 {
  color: var(--neon);
}

.project-placeholder {
  background-color: rgba(255, 255, 255, 0.7);
  border-radius: 8px;
  padding: 1.5rem;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  position: relative;
  overflow: hidden;
  transition: all var(--transition-speed) ease;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.dark-mode .project-placeholder {
  background-color: rgba(40, 40, 40, 0.7);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.project-placeholder:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.placeholder-accent {
  position: absolute;
  top: -15px;
  right: -15px;
  width: 60px;
  height: 60px;
  background-color: var(--neon);
  clip-path: polygon(50% 0%, 100% 50%, 50% 100%, 0% 50%);
  opacity: 0.2;
  z-index: 0;
}

.dark-mode .placeholder-accent {
  background-color: var(--brand);
}

.project-placeholder h4 {
  color: var(--brand);
  font-size: 1.2rem;
  margin-bottom: 1rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  position: relative;
  z-index: 1;
}

.dark-mode .project-placeholder h4 {
  color: var(--neon);
}

.project-placeholder p {
  color: var(--ink);
  font-size: 0.95rem;
  position: relative;
  z-index: 1;
}

.dark-mode .project-placeholder p {
  color: var(--paper);
}

/* Glowing nodes for Tech/AI section */
.tech-ai::before {
  content: "";
  position: absolute;
  width: 150px;
  height: 150px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(0, 255, 133, 0.2) 0%, rgba(0, 255, 133, 0) 70%);
  top: 10%;
  left: 5%;
  z-index: -1;
  animation: pulse 4s infinite alternate;
}

.tech-ai::after {
  content: "";
  position: absolute;
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(56, 0, 60, 0.2) 0%, rgba(56, 0, 60, 0) 70%);
  bottom: 10%;
  right: 5%;
  z-index: -1;
  animation: pulse 5s infinite alternate;
}

.dark-mode .tech-ai::before {
  background: radial-gradient(circle, rgba(56, 0, 60, 0.3) 0%, rgba(56, 0, 60, 0) 70%);
}

.dark-mode .tech-ai::after {
  background: radial-gradient(circle, rgba(0, 255, 133, 0.3) 0%, rgba(0, 255, 133, 0) 70%);
}

/* Footer */
.footer {
  background-color: var(--ink);
  color: var(--paper);
  padding: 2rem 0;
  text-align: center;
  position: relative;
  z-index: 2;
}

.footer p {
  font-size: 0.9rem;
  letter-spacing: 1px;
  text-transform: uppercase;
}

/* Interactive Element */
.interactive-element {
  position: absolute;
  pointer-events: none;
  z-index: 10;
  transform: translate(-50%, -50%);
  width: 8px;
  height: 8px;
  background-color: rgba(100, 100, 100, 0.3);
  border-radius: 50%;
}

/* Responsive Styles */
@media (max-width: 1200px) {
  body {
    max-width: 100%;
    padding: 15px;
  }

  .zak-pro {
    font-size: clamp(5rem, 8vw, 7rem);
  }
}

@media (max-width: 992px) {
  .hero {
    min-height: 60vh;
  }

  .zak-pro {
    font-size: clamp(4rem, 8vw, 6rem);
  }

  .name-section {
    padding: clamp(2rem, 4vw, 3rem);
  }

  .services-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: clamp(1.5rem, 3vw, 2rem);
  }

  .blog-features {
    grid-template-columns: repeat(2, 1fr);
  }

  .preview-articles {
    grid-template-columns: repeat(2, 1fr);
  }

  .portfolio-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .pillar-container {
    grid-template-columns: 1fr;
  }

  .tech-projects {
    grid-template-columns: 1fr;
  }

  .tech-projects h3 {
    grid-column: span 1;
  }
}

@media (max-width: 768px) {
  .hero {
    flex-direction: column;
    min-height: 50vh;
  }

  .name-section,
  .logo-section {
    clip-path: none;
  }

  .zak-pro {
    font-size: clamp(3rem, 7vw, 4.5rem);
  }

  .tagline {
    font-size: clamp(1rem, 2.5vw, 1.2rem);
  }

  .accent-element {
    width: 60px;
    height: 60px;
    bottom: 2rem;
    right: 2rem;
  }

  .nav-links {
    position: fixed;
    top: 70px;
    left: 0;
    width: 100%;
    height: 0;
    background-color: rgba(255, 255, 255, 0.95);
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    padding-top: 2rem;
    overflow: hidden;
    transition: height var(--transition-speed) ease;
  }

  .dark-mode .nav-links {
    background-color: rgba(31, 18, 51, 0.95);
  }

  .nav-links.active {
    height: 300px;
  }

  .nav-link {
    margin: 0.8rem 0;
  }

  .dark-mode-toggle {
    margin: 1.5rem 0 0 0;
  }

  .nav-toggle {
    display: flex;
  }

  .services-grid {
    grid-template-columns: 1fr;
    gap: clamp(1rem, 3vw, 1.5rem);
  }

  .blog-features {
    grid-template-columns: 1fr;
    gap: clamp(1rem, 3vw, 1.5rem);
  }

  .preview-articles {
    grid-template-columns: 1fr;
    gap: clamp(1rem, 3vw, 1.5rem);
  }

  .portfolio-grid {
    grid-template-columns: 1fr;
    gap: clamp(1rem, 3vw, 1.5rem);
  }

  .tech-projects {
    grid-template-columns: 1fr;
    gap: clamp(1rem, 3vw, 1.5rem);
  }

  .tech-projects h3 {
    grid-column: span 1;
  }

  .contact-content {
    grid-template-columns: 1fr;
    gap: clamp(1.5rem, 3vw, 2rem);
  }
}

@media (max-width: 576px) {
  .zak-pro {
    font-size: clamp(2.5rem, 6vw, 3.5rem);
  }

  .tagline {
    font-size: clamp(0.9rem, 2vw, 1rem);
  }

  .name-section {
    padding: clamp(1.5rem, 3vw, 2rem);
  }

  .section {
    padding: clamp(2rem, 4vw, 3rem) 0;
  }

  .section-title {
    font-size: clamp(1.5rem, 4vw, 2rem);
  }

  .service-card {
    padding: 1.5rem;
  }

  .contact-form-container {
    padding: 1.5rem;
  }

  .accent-element {
    width: 50px;
    height: 50px;
  }
}

/* Reduced Motion Accessibility */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .logo {
    animation: none;
  }

  .zak-pro .letter {
    animation: none;
    opacity: 1;
    transform: translateY(0);
  }
}
