/* ============================================
   SAEED AHMADI — Premium Luxury Style
   Awwwards winning style: Dark, high contrast, smooth
   ============================================ */

/* ---------- Variables ---------- */
:root {
  /* Colors */
  --bg-primary: #050505;
  --bg-secondary: #0a0a0a;
  --bg-tertiary: #111111;
  
  --text-primary: #ffffff;
  --text-secondary: #888888;
  --text-tertiary: #555555;
  
  --accent-gold: #c5a059;
  --accent-gold-light: #e8c784;
  --accent-gold-dark: #8b6b33;
  
  --border-color: rgba(255, 255, 255, 0.08);
  --border-hover: rgba(197, 160, 89, 0.5);
  
  /* Fonts */
  --font-en: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-fa: 'Vazirmatn', Tahoma, Arial, system-ui, sans-serif;
  
  /* Spacing */
  --section-padding: 120px 0;
  
  /* Transitions */
  --ease-out-expo: cubic-bezier(0.19, 1, 0.22, 1);
  --ease-in-out-expo: cubic-bezier(1, 0, 0, 1);
}

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

html {
  font-size: 16px;
  /* GSAP handles smooth scroll, disable native to avoid conflicts */
  scroll-behavior: auto;
  overflow-x: hidden;
}

body {
  background-color: var(--bg-primary);
  color: var(--text-primary);
  font-family: var(--font-fa);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  /* Hide cursor for custom cursor */
  cursor: none; 
}

[data-lang="en"] body {
  font-family: var(--font-en);
}

a, button, input, textarea {
  cursor: none; /* Keep hidden for custom cursor */
}

a {
  color: var(--text-primary);
  text-decoration: none;
}

.container {
  width: 90%;
  max-width: 1400px;
  margin: 0 auto;
}

.section-padding {
  padding: var(--section-padding);
}

.smooth-scroll-wrapper {
  overflow-x: hidden;
  width: 100%;
}

.dark-section {
  background-color: var(--bg-secondary);
}

.overflow-hidden {
  overflow: hidden;
  padding-bottom: 10px; /* Prevent descending letters from being cut off */
}

/* ---------- Noise Overlay ---------- */
.noise-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  z-index: 9999;
  opacity: 0.04;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
}

/* ---------- Custom Cursor ---------- */
.cursor {
  width: 8px;
  height: 8px;
  background-color: var(--accent-gold);
  border-radius: 50%;
  position: fixed;
  top: 0;
  left: 0;
  pointer-events: none;
  z-index: 10000;
  transform: translate(-50%, -50%);
  transition: width 0.3s, height 0.3s, background-color 0.3s;
}

.cursor-follower {
  width: 40px;
  height: 40px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  position: fixed;
  top: 0;
  left: 0;
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%, -50%);
  transition: width 0.3s, height 0.3s, border-color 0.3s, background-color 0.3s;
}

/* Hover States for Cursor */
body.cursor-hover .cursor {
  background-color: transparent;
}
body.cursor-hover .cursor-follower {
  width: 80px;
  height: 80px;
  border-color: var(--accent-gold);
  background-color: rgba(197, 160, 89, 0.1);
  backdrop-filter: blur(2px);
}

/* ---------- Preloader ---------- */
.preloader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: var(--bg-primary);
  z-index: 100000;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.preloader-text {
  font-size: 2rem;
  font-weight: 800;
  letter-spacing: 0.2em;
  color: var(--text-primary);
  margin-bottom: 20px;
}

.preloader-progress {
  width: 200px;
  height: 2px;
  background-color: var(--border-color);
  position: relative;
  overflow: hidden;
}

.preloader-progress::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 0%;
  background-color: var(--accent-gold);
  animation: loading 2s var(--ease-out-expo) forwards;
}

@keyframes loading {
  0% { width: 0%; }
  100% { width: 100%; }
}

/* ---------- Typography ---------- */
.text-gold {
  color: var(--accent-gold);
}

.section-heading {
  margin-bottom: 80px;
  overflow: hidden;
}

.section-title {
  font-size: 4rem;
  font-weight: 800;
  line-height: 1.1;
  text-transform: uppercase;
  color: var(--text-primary);
}

/* ---------- Navbar ---------- */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  padding: 20px 5%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 1000;
  transition: all 0.4s var(--ease-out-expo);
}

.navbar.scrolled {
  padding: 15px 5%;
  background: rgba(5, 5, 5, 0.85); /* matches --bg-primary with transparency */
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

.nav-brand {
  font-size: 1.5rem;
  font-weight: 900;
  letter-spacing: 2px;
  display: flex;
  align-items: center;
}

.header-logo {
  height: 40px;
  width: auto;
  object-fit: contain;
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 40px;
}

.nav-link {
  font-size: 0.9rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 1px;
  position: relative;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0%;
  height: 1px;
  background-color: var(--text-primary);
  transition: width 0.4s var(--ease-out-expo);
}

.nav-link:hover::after {
  width: 100%;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 20px;
}

.lang-toggle {
  background: transparent;
  border: none;
  color: var(--text-primary);
  font-size: 0.9rem;
  font-weight: 600;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  padding: 12px 30px;
  font-size: 0.9rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  border-radius: 30px;
  position: relative;
  overflow: hidden;
  transition: color 0.4s;
  border: none;
}

.btn-primary {
  background-color: var(--accent-gold);
  color: var(--bg-primary);
}

.btn-outline {
  background-color: transparent;
  color: var(--text-primary);
  border: 1px solid var(--border-color);
}

.btn-large {
  padding: 18px 45px;
  font-size: 1rem;
}

.btn::before {
  content: '';
  position: absolute;
  top: 100%;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: var(--text-primary);
  transition: top 0.4s var(--ease-out-expo);
  z-index: -1;
}

.btn-primary::before {
  background-color: #ffffff;
}

.btn:hover {
  color: var(--bg-primary);
}

.btn:hover::before {
  top: 0;
}

/* ---------- Hero Section ---------- */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  padding: 100px 5% 0 5%; /* Added top padding to clear navbar */
}

.hero-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  width: 100%;
  align-items: center;
  gap: 50px;
}

.hero-greeting {
  font-size: 1.5rem;
  font-weight: 400;
  color: var(--accent-gold);
  margin-bottom: 10px;
}

.hero-name {
  font-size: 6vw;
  font-weight: 900;
  line-height: 1.1;
  margin-bottom: 20px;
  text-transform: uppercase;
}

.hero-title {
  font-size: 2vw;
  font-weight: 300;
  color: var(--text-secondary);
  margin-bottom: 40px;
}

/* Hero Image with Parallax Mask */
.hero-image-wrapper {
  position: relative;
  width: 100%;
  display: flex;
  justify-content: flex-end; /* In RTL, end is Left */
  align-items: center;
}

[dir="rtl"] .hero-image-wrapper {
  justify-content: flex-end;
}
[dir="ltr"] .hero-image-wrapper {
  justify-content: flex-end;
}

.image-mask {
  width: 100%;
  max-width: 480px; /* Constrain max width */
  aspect-ratio: 4/5; /* Professional portrait framing */
  overflow: hidden;
  border-radius: 20px;
  position: relative;
  box-shadow: 0 20px 50px rgba(0,0,0,0.5); /* Add luxury depth */
}

.hero-image {
  width: 100%;
  height: 120%; /* Taller for parallax */
  object-fit: cover;
  object-position: center top; /* Focus on face */
  transform: translateY(-10%); /* Initial state for parallax */
  filter: grayscale(80%) contrast(1.1);
  transition: filter 0.8s;
  border-radius: 20px;
}

.hero-image-wrapper:hover .hero-image {
  filter: grayscale(0%) contrast(1);
}

.image-accent {
  position: absolute;
  bottom: -30px; /* Moved to bottom to avoid navbar overlap */
  right: -30px;
  width: 250px;
  height: 250px;
  border: 1px solid rgba(197, 160, 89, 0.5); /* Softer gold */
  border-radius: 50%;
  z-index: -1;
}

[dir="rtl"] .image-accent {
  right: auto;
  left: -30px;
}

/* Scroll Indicator */
.scroll-indicator {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  opacity: 0.6;
}

.mouse {
  width: 26px;
  height: 40px;
  border: 2px solid var(--text-primary);
  border-radius: 15px;
  position: relative;
}

.mouse::before {
  content: '';
  position: absolute;
  top: 8px;
  left: 50%;
  transform: translateX(-50%);
  width: 4px;
  height: 4px;
  background-color: var(--text-primary);
  border-radius: 50%;
  animation: scrollWheel 2s infinite;
}

@keyframes scrollWheel {
  0% { transform: translate(-50%, 0); opacity: 1; }
  100% { transform: translate(-50%, 15px); opacity: 0; }
}

/* ---------- Statement Section ---------- */
.statement-section {
  background-color: rgba(255, 255, 255, 0.02);
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.statement-text {
  font-size: 2.5rem;
  line-height: 1.6;
  font-weight: 300;
  text-align: center;
  max-width: 1000px;
  margin: 0 auto;
  color: var(--text-secondary);
}

.highlight-text {
  color: var(--text-primary);
  font-weight: 700;
  font-style: italic;
  position: relative;
  display: inline-block;
}
.highlight-text::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 100%;
  height: 2px;
  background-color: var(--accent-gold);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.6s var(--ease-out-expo);
}
.statement-section:hover .highlight-text::after {
  transform: scaleX(1);
}

@media (max-width: 768px) {
  .statement-text {
    font-size: 1.5rem;
  }
}

/* ---------- About Section ---------- */
.about-grid {
  display: grid;
  grid-template-columns: 60% 40%;
  gap: 80px;
}

.lead-text {
  font-size: 2.2rem;
  font-weight: 300;
  line-height: 1.5;
  margin-bottom: 40px;
  color: var(--text-primary);
  text-align: justify;
}

.secondary-text {
  font-size: 1.1rem;
  color: var(--text-secondary);
  line-height: 1.8;
  text-align: justify;
}

.about-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
  align-content: start;
}

.stat-item {
  border-top: 1px solid var(--border-color);
  padding-top: 20px;
}

.stat-num {
  font-size: 3rem;
  font-weight: 800;
  color: var(--accent-gold);
  margin-bottom: 5px;
}

.stat-label {
  font-size: 0.9rem;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* ---------- Expertise Section ---------- */
.expertise-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
}

.expertise-card {
  padding: 50px 40px;
  background-color: var(--bg-primary);
  border: 1px solid var(--border-color);
  border-radius: 10px;
  transition: all 0.4s var(--ease-out-expo);
  position: relative;
  overflow: hidden;
  direction: ltr;
  text-align: left;
}

.expertise-card:hover {
  border-color: var(--border-hover);
  transform: translateY(-10px);
}

.expertise-icon {
  font-size: 3rem;
  margin-bottom: 30px;
  display: block;
}

.expertise-title {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 20px;
}

.expertise-list {
  list-style: none;
}

.expertise-list li {
  color: var(--text-secondary);
  margin-bottom: 12px;
  font-size: 0.95rem;
  position: relative;
  padding-inline-start: 15px;
}

.expertise-list li::before {
  content: '';
  position: absolute;
  top: 10px;
  left: 0;
  width: 5px;
  height: 5px;
  background-color: var(--accent-gold);
  border-radius: 50%;
}
[dir="rtl"] .expertise-list li::before {
  left: auto;
  right: 0;
}

/* AI Section inside Expertise */
.ai-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.ai-card {
  padding: 30px;
  border-bottom: 1px solid var(--border-color);
  transition: border-color 0.4s;
}

.ai-card:hover {
  border-bottom-color: var(--accent-gold);
}

.ai-title {
  font-size: 1.2rem;
  margin: 15px 0 10px;
}

.ai-desc {
  font-size: 0.9rem;
  color: var(--text-secondary);
}

/* ---------- Experience Timeline ---------- */
.timeline-wrapper {
  position: relative;
  padding: 50px 0;
}

.timeline-line {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 1px;
  background-color: var(--border-color);
  transform: translateX(-50%);
}

.timeline-progress {
  position: absolute;
  top: 0;
  left: 50%;
  width: 3px;
  height: 0%; /* Animated by GSAP */
  background-color: var(--accent-gold);
  transform: translateX(-50%);
  box-shadow: 0 0 15px var(--accent-gold);
}

.timeline-items {
  position: relative;
  z-index: 2;
}

.timeline-item {
  display: flex;
  justify-content: space-between;
  margin-bottom: 100px;
  width: 100%;
  position: relative;
}

.timeline-item:nth-child(even) {
  flex-direction: row-reverse;
}

.timeline-content {
  width: 45%;
  padding: 40px;
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: 10px;
  position: relative;
}

.timeline-item:nth-child(odd) .timeline-content {
  text-align: left;
}
[dir="rtl"] .timeline-item:nth-child(odd) .timeline-content { text-align: right; }

.timeline-item:nth-child(even) .timeline-content {
  text-align: right;
}
[dir="rtl"] .timeline-item:nth-child(even) .timeline-content { text-align: left; }

/* The Dot */
.timeline-dot-wrapper {
  position: absolute;
  top: 40px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  justify-content: center;
  z-index: 3;
}

.timeline-dot {
  width: 15px;
  height: 15px;
  background-color: var(--bg-primary);
  border: 2px solid var(--accent-gold);
  border-radius: 50%;
}

/* Timeline Content Details */
.tl-period {
  font-size: 0.85rem;
  color: var(--accent-gold);
  letter-spacing: 1px;
  margin-bottom: 10px;
  display: block;
}

.tl-title {
  font-size: 1.8rem;
  margin-bottom: 5px;
}

.tl-company {
  font-size: 1.1rem;
  color: var(--text-secondary);
  margin-bottom: 20px;
}

.tl-desc {
  color: var(--text-tertiary);
  font-size: 0.95rem;
  line-height: 1.7;
}

/* ---------- Portfolio List ---------- */
.portfolio-grid {
  display: flex;
  flex-direction: column;
}

.port-row {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 40px 20px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
  text-decoration: none;
  color: inherit;
  overflow: hidden;
  transition: padding 0.4s var(--ease-out-expo);
}

.port-row:first-child {
  border-top: 1px solid rgba(255,255,255,0.1);
}

.port-row-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transform: scaleY(0);
  transform-origin: bottom;
  transition: transform 0.5s var(--ease-out-expo), opacity 0.5s;
  z-index: 0;
}

.port-row:hover .port-row-bg {
  opacity: 0.1;
  transform: scaleY(1);
}

.port-row:hover {
  padding-left: 40px;
  padding-right: 40px;
}

.port-row-content {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  flex: 1;
  gap: 50px;
}

.port-category {
  font-size: 0.85rem;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 1px;
  width: 150px;
  flex-shrink: 0;
}

.port-title {
  font-size: 2rem;
  font-weight: 700;
  margin: 0;
  flex: 1;
}

.port-tags {
  display: flex;
  gap: 10px;
  width: 250px;
  flex-shrink: 0;
  justify-content: flex-end;
}

.port-tag {
  font-size: 0.75rem;
  padding: 5px 12px;
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 20px;
  color: var(--text-secondary);
}

.port-arrow {
  position: relative;
  z-index: 1;
  opacity: 0.3;
  transition: opacity 0.4s, transform 0.4s;
  transform: translateX(0);
}
[dir="rtl"] .port-arrow {
  transform: rotate(180deg);
}

.port-row:hover .port-arrow {
  opacity: 1;
  transform: translateX(10px);
}
[dir="rtl"] .port-row:hover .port-arrow {
  transform: rotate(180deg) translateX(10px);
}

/* ---------- Products Section ---------- */
.products-header {
  margin-bottom: 60px;
  max-width: 900px;
}

.products-desc {
  font-size: 1.1rem;
  line-height: 1.8;
  color: var(--text-secondary);
  margin-top: 20px;
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
  margin-bottom: 50px;
}

.product-card {
  background-color: var(--bg-secondary);
  border: 1px solid rgba(255, 255, 255, 0.05);
  padding: 20px 25px;
  border-radius: 12px;
  transition: all 0.4s var(--ease-out-expo);
  display: flex;
  align-items: center;
  gap: 15px;
  cursor: pointer;
}

.product-card:hover {
  background-color: rgba(255, 255, 255, 0.05);
  border-color: var(--accent-gold);
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

.product-icon {
  color: var(--accent-gold);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.product-name {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-primary);
  margin: 0;
}

.products-cta {
  text-align: center;
  margin-top: 40px;
}

/* ---------- Contact Section ---------- */
.contact-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 50px;
}

.contact-title {
  font-size: 3.5rem;
  line-height: 1.2;
  margin-bottom: 60px;
}

.contact-details {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: flex-start;
  gap: 60px;
}

.contact-info-block {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.contact-label {
  font-size: 0.85rem;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.contact-value {
  font-size: 1.3rem;
  font-weight: 500;
  text-decoration: none;
  color: var(--text-primary);
  display: inline-block;
  transition: color 0.3s;
}

.contact-value:hover {
  color: var(--accent-gold);
}

.contact-subtext {
  font-size: 0.8rem;
  color: var(--text-tertiary);
  margin-top: -5px;
}

.modern-form .form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
  margin-bottom: 30px;
}

.input-group {
  position: relative;
  margin-bottom: 30px;
}

.input-group input,
.input-group textarea {
  width: 100%;
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--border-color);
  padding: 15px 0;
  color: var(--text-primary);
  font-size: 1rem;
  font-family: inherit;
  outline: none;
}

.input-group label {
  position: absolute;
  top: 15px;
  left: 0;
  color: var(--text-secondary);
  transition: all 0.3s;
  pointer-events: none;
}
[dir="rtl"] .input-group label { left: auto; right: 0; }

.input-group input:focus ~ label,
.input-group input:valid ~ label,
.input-group textarea:focus ~ label,
.input-group textarea:valid ~ label {
  top: -10px;
  font-size: 0.75rem;
  color: var(--accent-gold);
}

.focus-border {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0%;
  height: 2px;
  background-color: var(--accent-gold);
  transition: width 0.4s var(--ease-out-expo);
}
[dir="rtl"] .focus-border { left: auto; right: 0; }

.input-group input:focus ~ .focus-border,
.input-group textarea:focus ~ .focus-border {
  width: 100%;
}

/* ---------- Footer ---------- */
.footer {
  padding: 50px 0;
  border-top: 1px solid var(--border-color);
}

.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer-logo {
  font-size: 1.5rem;
  font-weight: 900;
  color: var(--text-secondary);
}

.footer-copy {
  font-size: 0.9rem;
  color: var(--text-tertiary);
}

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .hero-container { grid-template-columns: 1fr; text-align: center; }
  .hero-image-wrapper { justify-content: center; height: auto; margin-top: 40px; margin-bottom: 20px; }
  .image-mask { width: 80%; max-width: 400px; }
  
  .about-grid { grid-template-columns: 1fr; }
  .expertise-grid { grid-template-columns: repeat(2, 1fr); }
  .ai-grid { grid-template-columns: repeat(2, 1fr); }
  
  .timeline-item { flex-direction: column !important; margin-bottom: 60px; }
  .timeline-content { width: 100%; text-align: right !important; }
  [dir="ltr"] .timeline-content { text-align: left !important; }
  .timeline-line, .timeline-progress, .timeline-dot-wrapper { display: none; }
  
  .contact-wrapper { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  .section-title { font-size: 2.5rem; }
  .hero-name { font-size: 3rem; }
  .hero-title { font-size: 1.2rem; }
  .lead-text { font-size: 1.5rem; }
  
  .navbar { padding: 15px 5%; }
  .navbar.scrolled { padding: 10px 5%; }
  .nav-actions { gap: 10px; }
  .header-logo { height: 35px; }
  .nav-links { display: none; } /* Add hamburger menu logic if needed */
  
  .section-heading { margin-bottom: 30px; }
  .timeline-wrapper { padding: 20px 0; }
  
  .stat-item { text-align: center; }
  
  .image-mask { width: 90%; }
  .image-accent { width: 150px; height: 150px; bottom: -15px; right: -15px; }
  [dir="rtl"] .image-accent { left: -15px; right: auto; }
  
  .expertise-grid, .ai-grid { grid-template-columns: 1fr; }
  .modern-form .form-row { grid-template-columns: 1fr; }
  
  /* Portfolio Mobile Fix */
  .port-row {
    padding: 30px 15px;
    align-items: flex-start;
  }
  .port-row-content {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }
  .port-category {
    width: auto;
    margin-bottom: 0px;
    font-size: 0.8rem;
  }
  .port-title {
    font-size: 1.4rem;
  }
  .port-tags {
    width: 100%;
    justify-content: flex-start;
    flex-wrap: wrap;
    margin-top: 5px;
  }
  .port-arrow {
    position: absolute;
    top: 35px;
    right: 20px;
  }
  [dir="rtl"] .port-arrow {
    right: auto;
    left: 20px;
  }
}
