/*!
Theme Name: WP Kalem
Theme URI: http://underscores.me/
Author: WordPress
Author URI: https://wordpress.org
Description: A custom theme for WP Kalem.
Version: 1.0.0
Tested up to: 5.4
Requires PHP: 5.6
License: GNU General Public License v2 or later
License URI: LICENSE
Text Domain: wp-kalem
Tags: custom-background, custom-logo, custom-menu, featured-images, threaded-comments, translation-ready

This theme, like WordPress, is licensed under the GPL.
Use it to make something cool, have fun, and share what you've learned.

WP Kalem is based on Underscores https://underscores.me/, (C) 2012-2020 Automattic, Inc.
Underscores is distributed under the terms of the GNU GPL v2 or later.

Normalizing styles have been helped along thanks to the fine work of
Nicolas Gallagher and Jonathan Neal https://necolas.github.io/normalize.css/
*/

/*! normalize.css v8.0.1 | MIT License | github.com/necolas/normalize.css */
button,hr,input{overflow:visible}progress,sub,sup{vertical-align:baseline}[type=checkbox],[type=radio],legend{box-sizing:border-box;padding:0}html{line-height:1.15;-webkit-text-size-adjust:100%}body{margin:0}details,main{display:block}h1{font-size:2em;margin:.67em 0}hr{box-sizing:content-box;height:0}code,kbd,pre,samp{font-family:monospace,monospace;font-size:1em}a{background-color:transparent}abbr[title]{border-bottom:none;text-decoration:underline;text-decoration:underline dotted}b,strong{font-weight:bolder}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative}sub{bottom:-.25em}sup{top:-.5em}img{border-style:none}button,input,optgroup,select,textarea{font-family:inherit;font-size:100%;line-height:1.15;margin:0}button,select{text-transform:none}[type=button],[type=reset],[type=submit],button{-webkit-appearance:button}[type=button]::-moz-focus-inner,[type=reset]::-moz-focus-inner,[type=submit]::-moz-focus-inner,button::-moz-focus-inner{border-style:none;padding:0}[type=button]:-moz-focusring,[type=reset]:-moz-focusring,[type=submit]:-moz-focusring,button:-moz-focusring{outline:ButtonText dotted 1px}fieldset{padding:.35em .75em .625em}legend{color:inherit;display:table;max-width:100%;white-space:normal}textarea{overflow:auto}[type=number]::-webkit-inner-spin-button,[type=number]::-webkit-outer-spin-button{height:auto}[type=search]{-webkit-appearance:textfield;outline-offset:-2px}[type=search]::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}summary{display:list-item}[hidden],template{display:none}


/* Box sizing
--------------------------------------------- */

/* Inherit box-sizing to more easily change it's value on a component level.
@link http://css-tricks.com/inheriting-box-sizing-probably-slightly-better-best-practice/ */
*,
*::before,
*::after {
	box-sizing: inherit;
}

html {
	box-sizing: border-box;
}

/* Accessibility
--------------------------------------------- */
/* Text meant only for screen readers. */
.screen-reader-text {
	border: 0;
	clip: rect(1px, 1px, 1px, 1px);
	clip-path: inset(50%);
	height: 1px;
	margin: -1px;
	overflow: hidden;
	padding: 0;
	position: absolute !important;
	width: 1px;
	word-wrap: normal !important;
}

.screen-reader-text:focus {
	background-color: #f1f1f1;
	border-radius: 3px;
	box-shadow: 0 0 2px 2px rgba(0, 0, 0, 0.6);
	clip: auto !important;
	clip-path: none;
	color: #21759b;
	display: block;
	font-size: 0.875rem;
	font-weight: 700;
	height: auto;
	left: 5px;
	line-height: normal;
	padding: 15px 23px 14px;
	text-decoration: none;
	top: 5px;
	width: auto;
	z-index: 100000;
}

/* Do not show the outline on the skip link target. */
#primary[tabindex="-1"]:focus {
	outline: 0;
}

/* Alignments
--------------------------------------------- */
.alignleft {

	/*rtl:ignore*/
	float: left;

	/*rtl:ignore*/
	margin-right: 1.5em;
	margin-bottom: 1.5em;
}

.alignright {

	/*rtl:ignore*/
	float: right;

	/*rtl:ignore*/
	margin-left: 1.5em;
	margin-bottom: 1.5em;
}

.aligncenter {
	clear: both;
	display: block;
	margin-left: auto;
	margin-right: auto;
	margin-bottom: 1.5em;
}

/* Styles */
  :root {
    --black: #000000;
    --white: #FFFFFF;
    --pink: #FF427A;
    --cyan: #7BFBFF;
    --green: #25D366;
  }
  * { margin: 0; padding: 0; box-sizing: border-box; }
  html { scroll-behavior: smooth; }
  body {
    background: var(--black);
    color: var(--white);
    font-family: 'Futura', 'Century Gothic', 'Trebuchet MS', sans-serif;
    overflow-x: hidden;
    cursor: none;
  }
  html[lang="ar"] body { font-family: 'Almarai', sans-serif; }

  .hamburger { display: none; }
  .mobile-menu { display: none; }
  .cursor { width: 16px; height: 16px; border: 2.5px solid var(--pink); border-radius: 50%; position: fixed; pointer-events: none; z-index: 9999; transform: translate(-50%, -50%); transition: opacity 0.15s ease; }
  .cursor-hover { position: fixed; pointer-events: none; z-index: 9999; width: 36px; height: 7px; background: var(--cyan); border-radius: 3px; transform: translate(-50%, -50%) skewX(-20deg) rotate(-8deg); opacity: 0; transition: opacity 0.15s ease; }
  .cursor-hover.active { opacity: 1; }
  .cursor.hidden { opacity: 0; }

  nav { position: fixed; top: 0; left: 0; right: 0; z-index: 100; padding: 14px 48px; display: flex; align-items: center; justify-content: space-between; background: var(--black); }
  .nav-logo img { height: 80px; width: auto; display: block; }
  .nav-right { display: flex; align-items: center; gap: 36px; }
  .nav-links { display: flex; gap: 36px; list-style: none; }
  .nav-links a { color: var(--white); text-decoration: none; font-size: 11px; letter-spacing: 0.15em; text-transform: uppercase; opacity: 0.6; transition: opacity 0.2s; }
  .nav-links a:hover { opacity: 1; }

  .lang-toggle { display: flex; align-items: center; background: rgba(255,255,255,0.08); border-radius: 999px; padding: 4px; gap: 2px; border: 1px solid rgba(255,255,255,0.12); cursor: none; }
  .lang-btn { font-size: 11px; font-weight: 700; letter-spacing: 0.1em; padding: 6px 14px; border-radius: 999px; border: none; background: transparent; color: rgba(255,255,255,0.45); cursor: none; transition: all 0.25s ease; font-family: inherit; }
  .lang-btn.active { background: var(--pink); color: var(--white); }

  .en-content { display: block; }
  .ar-content { display: none; }
  html[lang="ar"] .en-content { display: none; }
  html[lang="ar"] .ar-content { display: block; }
  span.en-content { display: inline; }
  span.ar-content { display: none; }
  html[lang="ar"] span.en-content { display: none; }
  html[lang="ar"] span.ar-content { display: inline; }

  #hero { min-height: 100vh; display: grid; grid-template-columns: 1fr 1fr; position: relative; overflow: hidden; }
  .hero-left { background: var(--black); display: flex; flex-direction: column; justify-content: center; padding: 200px 48px 80px; position: relative; z-index: 2; min-height: 100vh; }
  .hero-eyebrow { font-size: 10px; letter-spacing: 0.3em; text-transform: uppercase; color: var(--pink); margin-bottom: 32px; opacity: 0; animation: fadeUp 0.8s ease 0.3s forwards; }
  html[lang="ar"] .hero-eyebrow { letter-spacing: 0.05em; }
  .hero-title { font-size: clamp(34px, 4vw, 60px); font-weight: 900; line-height: 1.1; margin-bottom: 28px; opacity: 0; animation: fadeUp 0.8s ease 0.5s forwards; }
  html[lang="ar"] .hero-title { line-height: 1.6; }
  html[lang="ar"] .hero-dash-anchor { transform: translateX(-50%) skewX(-20deg) rotate(-8deg) translateY(8px); }
  html[lang="ar"] .hero-slash-cyan { transform: translateX(-22%) skewX(-20deg) rotate(-8deg) translateY(8px); }
  .hero-title .accent-pink { color: var(--pink); }
  .hero-title .accent-cyan { color: var(--cyan); }
  .hero-sub { font-size: 16px; line-height: 1.6; opacity: 0; max-width: 400px; color: rgba(255,255,255,0.75); animation: fadeUp 0.8s ease 0.7s forwards; margin-bottom: 48px; font-weight: 600; }
  .hero-cta { display: inline-flex; align-items: center; gap: 12px; background: var(--pink); color: var(--white); padding: 16px 32px; font-size: 12px; letter-spacing: 0.15em; text-transform: uppercase; text-decoration: none; font-weight: 700; opacity: 0; animation: fadeUp 0.8s ease 0.9s forwards; transition: background 0.2s; width: fit-content; }
  .hero-cta:hover { background: var(--cyan); color: var(--black); }
  html[lang="ar"] .hero-cta { letter-spacing: 0.05em; }

  .hero-right { position: relative; overflow: hidden; background: var(--black); min-height: 100vh; }
  .hero-person { position: absolute; bottom: 22%; left: 50%; transform: translateX(-50%); width: 85%; max-height: 72vh; object-fit: contain; object-position: bottom center; z-index: 2; animation: fadeIn 0.8s ease 0.3s both; }
  .hero-dash-anchor { position: absolute; bottom: 22%; left: 50%; transform: translateX(-50%) skewX(-20deg) rotate(-8deg); width: 55%; height: 22px; background: var(--pink); z-index: 3; animation: fadeIn 1s ease 0.5s both; }
.hero-slash-cyan { position: absolute; bottom: calc(22% - 28px); left: 50%; transform: translateX(-22%) skewX(-20deg) rotate(-8deg); width: 30%; height: 13px; background: var(--cyan); z-index: 3; opacity: 0.85; animation: fadeIn 1s ease 0.7s both; }
  .hero-circle { display: none; }

  .section-label { font-size: 10px; letter-spacing: 0.3em; text-transform: uppercase; color: var(--pink); margin-bottom: 20px; display: block; }
  html[lang="ar"] .section-label { letter-spacing: 0.05em; font-size: 12px; }

  #about { background: var(--black); color: var(--white); padding: 120px 48px; display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: center; scroll-margin-top: 210px; }
  .about-heading { font-size: clamp(32px, 3.5vw, 54px); font-weight: 900; line-height: 1.35; margin-bottom: 32px; }
  .about-body { font-size: 15px; line-height: 1.9; color: rgba(255,255,255,0.6); max-width: 480px; }
  .about-body p + p { margin-top: 20px; }
  .about-right { display: flex; flex-direction: column; }
  .about-img-block { width: 100%; line-height: 0; }
  .about-img-block img { width: 100%; height: auto; max-height: 500px; object-fit: contain; object-position: top center; display: block; }
  .about-arabic-text { display: block; margin-top: 20px; font-family: 'Almarai', sans-serif; font-weight: 800; font-size: 22px; color: var(--pink); direction: rtl; text-align: left; line-height: 1.4; position: static; background: none; padding: 0; }
  html[lang="ar"] #about { direction: rtl; }
  html[lang="ar"] .about-body { text-align: right; }

  #services { background: var(--black); padding: 120px 48px; border-top: 1px solid rgba(255,255,255,0.08); scroll-margin-top: 210px; }
  .services-header { margin-bottom: 72px; }
  .services-section-label { font-size: 10px; letter-spacing: 0.3em; text-transform: uppercase; color: var(--pink); margin-bottom: 20px; display: block; }
  html[lang="ar"] .services-section-label { letter-spacing: 0.05em; font-size: 12px; text-align: right; }
  .services-title { font-size: clamp(32px, 3.5vw, 54px); font-weight: 900; line-height: 1.1; max-width: 600px; margin-bottom: 16px; }
  .services-sub { font-size: 15px; color: rgba(255,255,255,0.5); max-width: 400px; line-height: 1.6; }
  html[lang="ar"] .services-title, html[lang="ar"] .services-sub { text-align: right; direction: rtl; max-width: 100%; }
  .services-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 2px; }
  .service-item { background: #0c0c0c; padding: 36px 28px; border-top: 2px solid transparent; transition: border-color 0.2s, background 0.2s; }
  .service-item:hover { border-color: var(--pink); background: #131313; }
  .service-number { font-size: 10px; letter-spacing: 0.2em; color: var(--pink); margin-bottom: 20px; display: block; }
  .service-name { font-size: 15px; font-weight: 700; margin-bottom: 12px; }
  .service-desc { font-size: 12px; color: rgba(255,255,255,0.4); line-height: 1.7; }
  html[lang="ar"] .service-name, html[lang="ar"] .service-desc { text-align: right; direction: rtl; }

  #how { background: var(--black); color: var(--white); padding: 120px 48px; display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: center; border-top: 1px solid rgba(255,255,255,0.08); scroll-margin-top: 210px; }
  html[lang="ar"] #how { direction: rtl; }
  .how-title { font-size: clamp(32px, 3.5vw, 54px); font-weight: 900; line-height: 1.1; margin-bottom: 32px; }
  .how-body { font-size: 15px; line-height: 1.9; color: rgba(255,255,255,0.55); max-width: 480px; }
  .how-body p + p { margin-top: 20px; }
  .how-right { display: flex; flex-direction: column; gap: 2px; }
  .how-point { border-left: 2px solid rgba(255,255,255,0.08); padding: 24px 28px; display: flex; gap: 20px; align-items: flex-start; transition: border-color 0.2s; }
  .how-point:hover { border-left-color: var(--pink); }
  html[lang="ar"] .how-point { border-left: none; border-right: 2px solid rgba(255,255,255,0.08); flex-direction: row; }
  html[lang="ar"] .how-point:hover { border-right-color: var(--pink); }
  .how-point-num { font-size: 11px; font-weight: 700; color: var(--pink); min-width: 20px; padding-top: 2px; flex-shrink: 0; }
  .how-point-text { font-size: 14px; line-height: 1.5; color: var(--white); font-weight: 700; }
  html[lang="ar"] .how-point-text { text-align: right; }
  .how-point-sub { font-size: 12px; color: rgba(255,255,255,0.45); margin-top: 4px; font-weight: 400; }
  html[lang="ar"] .how-point-sub { text-align: right; }

  #startups { background: var(--black); padding: 120px 48px; position: relative; overflow: hidden; border-top: 1px solid rgba(255,255,255,0.08); scroll-margin-top: 210px; }
  .startups-inner { position: relative; z-index: 2; display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: center; }
  html[lang="ar"] .startups-inner { direction: rtl; }
  .startups-eyebrow { font-size: 10px; letter-spacing: 0.3em; text-transform: uppercase; color: var(--pink); margin-bottom: 20px; display: block; }
  html[lang="ar"] .startups-eyebrow { letter-spacing: 0.05em; font-size: 12px; }
  .startups-title { font-size: clamp(32px, 3.5vw, 54px); font-weight: 900; line-height: 1.1; margin-bottom: 32px; }
  .startups-body { font-size: 15px; line-height: 1.9; color: rgba(255,255,255,0.55); margin-bottom: 16px; }
  .package-box { position: relative; padding: 10px; background: linear-gradient(135deg, var(--pink) 0%, var(--cyan) 100%); }
  .package-box-inner { background: var(--black); padding: 36px 40px; color: var(--white); }
  html[lang="ar"] .package-box-inner { direction: rtl; text-align: right; }
  .package-title { font-size: 10px; letter-spacing: 0.2em; text-transform: uppercase; margin-bottom: 24px; color: rgba(255,255,255,0.5); }
  html[lang="ar"] .package-title { letter-spacing: 0.05em; font-size: 12px; }
  .package-items { list-style: none; display: flex; flex-direction: column; gap: 16px; }
  .package-items li { display: flex; align-items: center; gap: 14px; font-size: 15px; font-weight: 700; color: var(--white); }
  .package-items li:nth-child(odd)::before { content: ''; width: 22px; height: 4px; background: var(--pink); flex-shrink: 0; transform: skewX(-20deg) rotate(-8deg); display: inline-block; }
  .package-items li:nth-child(even)::before { content: ''; width: 22px; height: 4px; background: var(--cyan); flex-shrink: 0; transform: skewX(-20deg) rotate(-8deg); display: inline-block; }
  .package-note { margin-top: 28px; font-size: 12px; color: rgba(255,255,255,0.45); line-height: 1.6; white-space: normal; }

  #contact { background: var(--black); color: var(--white); padding: 120px 48px; display: grid; grid-template-columns: 1fr 1fr; gap: 80px; border-top: 1px solid rgba(255,255,255,0.08); scroll-margin-top: 210px; }
  html[lang="ar"] #contact { direction: rtl; }
  .contact-title { font-size: clamp(32px, 3.5vw, 54px); font-weight: 900; line-height: 1.1; margin-bottom: 20px; }
  .contact-sub { font-size: 14px; line-height: 1.8; color: rgba(255,255,255,0.5); margin-bottom: 40px; max-width: 380px; }
  .contact-sub-line2 { display: block; margin-top: 12px; color: rgba(255,255,255,0.35); font-size: 13px; }
  .whatsapp-btn { display: inline-flex; align-items: center; gap: 10px; background: var(--green); color: var(--white); padding: 14px 28px; font-size: 12px; letter-spacing: 0.15em; text-transform: uppercase; font-weight: 700; text-decoration: none; transition: background 0.2s, transform 0.2s; }
  .whatsapp-btn:hover { background: #1ebe59; transform: translateY(-2px); }
  html[lang="ar"] .whatsapp-btn { letter-spacing: 0.05em; }
  .contact-form { display: flex; flex-direction: column; }
  #gform_wrapper_1 .gfield, .form-field { border-bottom: 1px solid rgba(255,255,255,0.12); padding: 20px 0; }
  #gform_wrapper_1 .gfield label,.form-field label { display: block; font-size: 10px; letter-spacing: 0.2em; text-transform: uppercase; color: rgba(255,255,255,0.35); margin-bottom: 10px; }
  html[lang="ar"] #gform_wrapper_1 .gfield label,html[lang="ar"] .form-field label { letter-spacing: 0.05em; font-size: 12px; text-align: right; }
  #gform_wrapper_1 .gfield input, #gform_wrapper_1 .gfield textarea,.form-field input, .form-field textarea { padding-left: 0;width: 100%; background: transparent; border: none; outline: none; font-size: 15px; color: var(--white); font-family: inherit; resize: none; }
  html[lang="ar"] #gform_wrapper_1 .gfield input, html[lang="ar"] #gform_wrapper_1 .gfield textarea, html[lang="ar"] .form-field input, html[lang="ar"] .form-field textarea { text-align: right; direction: rtl; }
  #gform_wrapper_1 .gfield ::placeholder, .form-field input::placeholder, .form-field textarea::placeholder { color: rgba(255,255,255,0.2); }
  #gform_wrapper_1 .gfield textarea, .form-field textarea { min-height: 80px; }
  #gform_wrapper_1 .gform_button, .form-submit { margin-top: 32px; background: var(--pink); color: var(--white); border: none; padding: 18px 40px; font-size: 12px; letter-spacing: 0.15em; text-transform: uppercase; font-weight: 700; cursor: none; font-family: inherit; transition: background 0.2s; width: fit-content; }
  #gform_wrapper_1 .gform_button:hover, .form-submit:hover { background: var(--cyan); color: var(--black); }
  html[lang="ar"] #gform_wrapper_1 .gform_button, html[lang="ar"] .form-submit { letter-spacing: 0.05em; align-self: flex-end; }
  div#gform_fields_1 {gap: 0;}

  div#gform_fields_1 .gfield_required {
	display: none;
  }

  footer { background: var(--black); color: rgba(255,255,255,0.3); padding: 32px 48px; display: flex; justify-content: space-between; align-items: center; font-size: 11px; letter-spacing: 0.1em; border-top: 1px solid rgba(255,255,255,0.08); }
  .footer-logo img { height: 48px; width: auto; display: block; }
  html[lang="ar"] footer { direction: rtl; }

  @keyframes fadeUp { from { opacity:0; transform:translateY(24px); } to { opacity:1; transform:translateY(0); } }
  @keyframes fadeIn { from { opacity:0; } to { opacity:1; } }
  .reveal { opacity:0; transform:translateY(30px); transition:opacity 0.7s ease,transform 0.7s ease; }
  .reveal.visible { opacity:1; transform:translateY(0); }

	.mobile-menu.open > div {
		display: flex;
		flex-direction: column;
		gap: 32px;
		justify-content: center;
		align-items: center;
	}

  @media (max-width: 768px) {
    nav { padding: 14px 20px; flex-wrap: nowrap; align-items: center; justify-content: space-between; }
    .nav-logo img { height: 60px; }
    .nav-right { gap: 12px; align-items: center; }
    .nav-links { display: none; }
    .hamburger { display: flex; flex-direction: column; gap: 5px; cursor: pointer; padding: 4px; }
    .hamburger span { display: block; width: 22px; height: 2px; background: var(--white); border-radius: 2px; transition: all 0.3s; }
    .mobile-menu { display: none; position: fixed; top: 0; left: 0; right: 0; bottom: 0; background: var(--black); z-index: 200; flex-direction: column; align-items: center; justify-content: center; gap: 32px; }
    .mobile-menu.open { display: flex; }
    .mobile-menu a { color: var(--white); text-decoration: none; font-size: 20px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; opacity: 0.8; }
    html[lang="ar"] .mobile-menu a { font-family: "Almarai", sans-serif; letter-spacing: 0; }
    .mobile-menu-close { position: absolute; top: 24px; right: 24px; font-size: 28px; color: var(--white); cursor: pointer; background: none; border: none; font-family: inherit; }
    .lang-btn { font-size: 11px; padding: 6px 12px; }
    #hero { grid-template-columns: 1fr; min-height: auto; }
    .hero-left { padding: 100px 20px 20px; order: 1; min-height: auto; }
    .hero-right { order: 2; height: 85vw; min-height: auto; margin-top: -20px; }
    .hero-title { font-size: clamp(28px, 7vw, 44px); }
    .hero-sub { font-size: 14px; }
    .hero-person { width: 78%; max-height: 100%; bottom: 16%; }
    .hero-dash-anchor { width: 65%; height: 14px; bottom: 16%; }
    .hero-slash-cyan { width: 38%; height: 8px; bottom: calc(16% - 20px); }
    .hero-circle { display: none; }
    .hero-eyebrow { margin-bottom: 20px; }
    #about { grid-template-columns: 1fr; padding: 80px 24px; gap: 40px; scroll-margin-top: 110px; }
    #services { padding: 80px 24px; scroll-margin-top: 110px; }
    .services-grid { grid-template-columns: 1fr 1fr; }
    .services-title { font-size: clamp(26px, 6vw, 40px); }
    #how { grid-template-columns: 1fr; padding: 80px 24px; gap: 40px; scroll-margin-top: 110px; }
    .how-title { font-size: clamp(26px, 6vw, 40px); }
    #startups { padding: 80px 24px; scroll-margin-top: 110px; }
    .startups-inner { grid-template-columns: 1fr; gap: 48px; }
    .startups-title { font-size: clamp(26px, 6vw, 40px); }
    #contact { grid-template-columns: 1fr; padding: 80px 24px; gap: 48px; scroll-margin-top: 110px; }
    .contact-title { font-size: clamp(26px, 6vw, 40px); }
    footer { flex-direction: column; gap: 16px; text-align: center; padding: 28px 24px; }
    .footer-logo img { height: 60px; }
    .cursor, .cursor-hover { display: none; }
    body { cursor: auto; }
    a, button { cursor: pointer; }
  }
  @media (max-width: 480px) {
    .services-grid { grid-template-columns: 1fr; }
    .nav-links { gap: 10px; }
    .nav-links a { font-size: 9px; letter-spacing: 0.08em; }
    .hero-right { height: 72vw; }
  }