/* Self-hosted fonts */
@font-face {
  font-family: 'Inter';
  src: url('../fonts/Inter-Variable.woff2') format('woff2');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Poppins';
  src: url('../fonts/Poppins-600.woff2') format('woff2');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Poppins';
  src: url('../fonts/Poppins-800.woff2') format('woff2');
  font-weight: 800;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Saira Semi Condensed';
  src: url('../fonts/SairaSemiCondensed-700.woff2') format('woff2');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

/* NavidMC Styles */
:root {
  --bg-overlay: rgba(0,0,0,0.55);
  --text: #ffffff;
  --muted: rgba(255,255,255,0.78);
  /* Professional blue & purple brand */
  --brand-1: #3b82f6; /* blue-500 */
  --brand-2: #8b5cf6; /* violet-500 */
  --brand-3: #60a5fa; /* blue-400 */
  /* Buttons */
  --btn-start: #3b82f6; /* blue-500 */
  --btn-end: #8b5cf6;   /* violet-500 */
  --btn-hover: #7c3aed; /* violet-600 */
  --ring: rgba(99,102,241,0.45);
}
.tm-btn-outline { background: transparent; border: 1px solid var(--btn-end); color: var(--text); border-radius: 9999px; }
.tm-btn-outline:hover { background: rgba(99,102,241,0.12); box-shadow: 0 8px 24px rgba(125, 211, 252, 0.15); }

html { scroll-behavior: smooth; }

body {
    font-family: 'Inter', Helvetica, Arial, sans-serif;
    font-size: 20px;
    font-weight: 300;
    line-height: 1.6;
    overflow-x: hidden;
    color: var(--text);
}

/* Fixed top navigation */
.site-nav {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 1100;
    background: rgba(10, 12, 16, 0.55);
    border-bottom: 1px solid rgba(255,255,255,0.06);
    backdrop-filter: blur(8px);
}
.site-nav .nav-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 18px;
}
.site-logo { display: block; }
.nav-links { list-style: none; margin: 0; padding: 0; display: flex; gap: 18px; }
.nav-links a { color: #e6f3ff; text-decoration: none; font-weight: 600; font-size: 0.95rem; opacity: .9; }
.nav-links a:hover { opacity: 1; color: #ffffff; text-shadow: 0 0 18px rgba(96, 165, 250, 0.35); }
.nav-links a { position: relative; }
.nav-links a::after {
  content: '';
  position: absolute;
  left: 0; bottom: -6px;
  width: 0; height: 2px;
  background: linear-gradient(90deg, var(--brand-1), var(--brand-2));
  transition: width .25s ease;
}
.nav-links a:hover::after { width: 100%; }

/* Language toggle removed */

/* (Removed preload overlay) */

/* RTL support (kept minimal for compatibility) */
[dir="rtl"] body { direction: rtl; }
[dir="rtl"] .nm-section { text-align: right; }

/* Offset main content for fixed nav */
.cb-slideshow-text-container { padding-top: 72px; }

/* Prevent headings from hiding under the fixed nav when anchored */
.nm-section { scroll-margin-top: 90px; }

/* Hero polish */
.hero-intro { opacity: .95; max-width: 60ch; margin-left: auto; margin-right: auto; font-size: 1.05em; }
.tm-btn-primary + .tm-btn-outline { margin-left: 8px; }

/* Headings scale */
h1 { color: #FFFFFF; font-size: 3.1rem; font-weight: 800; letter-spacing: -.01em; }
h2 { font-size: 1.45rem; font-weight: 800; letter-spacing: .01em; }
h3 { font-size: 1.1rem; font-weight: 800; letter-spacing: .01em; }
@media (max-width: 768px) {
  h1 { font-size: 2.6rem; }
  h2 { font-size: 1.3rem; }
  h3 { font-size: 1.05rem; }
}

a, button {
	transition: all 0.3s ease;
	color: #FFFFFF;
}

button:focus {
    outline: none;
}

a:hover {
	color: #FFFF00;
	text-decoration: underline;
}

a:focus {
	text-decoration: none;
	outline: none;
}

h1 { color: #FFFFFF; font-size: 3rem; }
h2 { font-size: 1.35rem; }

p {
	color: #FFFFFF;	
}

#particles-js {
    position: absolute;
    top: 0;
    left: 0;
    z-index: 1000;
    width: 100%;
    height: 99%;
}

.cb-slideshow-text-container {
    height: 100vh;
    display: flex;
    align-items: center;
}

.tm-content {
    z-index: 1001;
    text-align: center; /* center the main content */
}

.logo-svg { display: block; margin: 0 auto; height: auto; max-width: 90vw; }

/* Branding */
.brand-logo {
    font-weight: 800;
    letter-spacing: 0.5px;
    line-height: 1;
    display: inline-block;
    background: linear-gradient(135deg, var(--brand-1), var(--brand-2) 40%, var(--brand-3));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    filter: drop-shadow(0 6px 24px rgba(34, 211, 238, 0.25));
}

.hero-intro {
    color: var(--muted);
}

/* Accessibility helpers */
.sr-only {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}

.form-control::-webkit-input-placeholder { /* Chrome/Opera/Safari */
  color: white;
}
.form-control::-moz-placeholder { /* Firefox 19+ */
  color: white;
}
.form-control:-ms-input-placeholder { /* IE 10+ */
  color: white;
}
.form-control:-moz-placeholder { /* Firefox 18- */
  color: white;
}

.form-control::placeholder {
    color: white;
}

.form-control{  
    color: #FFFFFF;
    border-radius: .5rem;
    background-color: transparent;
    border: 1px solid #FFFFFF;
    padding-top: 10px;
    padding-bottom: 10px;
    font-size: 1rem;
    font-weight: 300;
    padding: 0.75rem 1.2rem;
}

.form-control:focus {
    border-color: var(--brand-3);
    box-shadow: 0 0 0 0.2rem rgba(34, 211, 238, 0.25);
}

.form-section {  
    color: #FFFFFF;
    background-color: transparent;
    margin-bottom: 32px;
}

.contact_email {
	color: #FFFFFF;
}

/* Primary CTA */
.tm-btn-primary {
    display: inline-block;  
    padding: 12px 28px;
    background: linear-gradient(135deg, var(--btn-start), var(--btn-end));
    border: none;
    border-radius: 9999px;
    color: white;
    text-decoration: none;
    font-weight: 800;
    font-family: 'Poppins', 'Inter', Helvetica, Arial, sans-serif;
    letter-spacing: .25px;
    box-shadow: 0 10px 30px rgba(59,130,246, 0.20), 0 4px 12px rgba(139, 92, 246, 0.18);
}
.tm-btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 12px 36px rgba(124, 58, 237, 0.30), 0 6px 18px rgba(59, 130, 246, 0.24);
    background: linear-gradient(135deg, var(--btn-end), var(--btn-start));
}

/* Animated gradient on buttons */
.tm-btn-primary {
  background-size: 200% 200%;
  transition: background-position .6s ease, transform .2s ease, box-shadow .3s ease;
  position: relative;
  overflow: hidden;
}
.tm-btn-primary:hover { background-position: 100% 0; }
.tm-btn-primary:active { transform: translateY(0); }

/* Subtle shine effect */
.tm-btn-primary::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(120deg, transparent 0%, rgba(255,255,255,0.2) 20%, transparent 40%);
  transform: translateX(-150%);
  transition: transform .8s ease;
  pointer-events: none;
}
.tm-btn-primary:hover::after { transform: translateX(150%); }
.tm-btn-primary:focus { outline: 2px solid transparent; box-shadow: 0 0 0 6px var(--ring); }

.tm-btn-outline { font-family: 'Poppins', 'Inter', Helvetica, Arial, sans-serif; font-weight: 700; position: relative; overflow: hidden; }
.tm-btn-outline { 
  background: transparent; color: #fff; border: 1px solid rgba(255,255,255,.5);
}
.tm-btn-outline::after {
  content: '';
  position: absolute; inset: 0; border-radius: inherit;
  background: linear-gradient(135deg, rgba(59,130,246,.18), rgba(139,92,246,.18));
  transform: translateX(-120%);
  transition: transform .45s ease;
}
.tm-btn-outline:hover { border-color: rgba(255,255,255,.9); box-shadow: 0 8px 24px rgba(59,130,246,.25); }
.tm-btn-outline:hover::after { transform: translateX(0); }

.tm-social-icons-container {
    margin: 10px;
}

.tm-social-link {
    border-color: #FFFFFF;
    color: black;
    display: inline-block;
    width: 50px;
    height: 50px;
    text-align: center;
}

.fa {
    color: #FFFFFF;
}

.footer-link {
    margin: 40px 0 20px;
	font-size: 16px;
    position: static; /* allow natural flow for longer pages */
    color: white;
    text-align:center;
    width:100%;
    z-index: 1001;
}

/* Custom Enhancements */
.contact-form textarea {
    resize: vertical;
}

/* Noscript notice */
.noscript-note { 
    margin-top: 2rem; 
    padding: 12px 16px; 
    background: rgba(255,255,255,0.06); 
    border: 1px solid rgba(255,255,255,0.12); 
    border-radius: 8px;
}

/* Form status messages */
.form-status { 
    margin-top: 10px; 
    min-height: 24px; 
    font-size: 0.95rem; 
    opacity: 0; 
    transition: opacity .25s ease; 
}
.form-status.show { opacity: 1; }
.form-status.alert-success { color: #a7f3d0; }
.form-status.alert-error { color: #fecaca; }

.cb-slideshow:after {
    content: '';
    position: fixed;
    inset: 0;
    background: var(--bg-overlay);
    z-index: 0;
}

/* Animation */
.cb-slideshow,
.cb-slideshow:after {
    position: fixed;
    width: 100%;
    height: 100%;
    top: 0px;
    left: 0px;
    z-index: 0;
}

.cb-slideshow li {
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0px;
    left: 0px;
    color: transparent;
    background-size: cover;
    background-position: 50% 50%;
    background-repeat: none;
    opacity: 0;
    z-index: 0;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden; /* lint fix */
    -webkit-animation: imageAnimation 72s linear infinite 0s;
    -moz-animation: imageAnimation 72s linear infinite 0s;
    -o-animation: imageAnimation 72s linear infinite 0s;
    -ms-animation: imageAnimation 72s linear infinite 0s;
    animation: imageAnimation 72s linear infinite 0s;
}

.cb-slideshow li:nth-child(1) { 
    background-image: url(../img/letter_bg_01.jpg)
}
.cb-slideshow li:nth-child(2) { 
    background-image: url(../img/letter_bg_02.jpg);
    -webkit-animation-delay: 12s;
    -moz-animation-delay: 12s;
    -o-animation-delay: 12s;
    -ms-animation-delay: 12s;
    animation-delay: 12s; 
}
.cb-slideshow li:nth-child(3) { 
    background-image: url(../img/letter_bg_03.jpg);
    -webkit-animation-delay: 24s;
    -moz-animation-delay: 24s;
    -o-animation-delay: 24s;
    -ms-animation-delay: 24s;
    animation-delay: 24s; 
}
.cb-slideshow li:nth-child(4) { 
    background-image: url(../img/letter_bg_01.jpg);
    animation-delay: 36s; 
}
.cb-slideshow li:nth-child(5) { 
    background-image: url(../img/letter_bg_02.jpg);
    animation-delay: 48s; 
}
.cb-slideshow li:nth-child(6) { 
    background-image: url(../img/letter_bg_03.jpg);
    animation-delay: 60s; 
}

@keyframes imageAnimation { 
	0% {
	    opacity: 0;
	    animation-timing-function: ease-in;
	}
	8% {
	    opacity: 1;
	    transform: scale(1.15);
	    animation-timing-function: ease-out;
	}
	17% {
	    opacity: 1;
	    transform: scale(1.20);
	}
	25% {
	    opacity: 0;
	    transform: scale(1.40);
	}
	100% { opacity: 0 }
}

@media screen and (max-width: 1140px) { 
    .cb-slideshow li div h3 { font-size: 140px }
}
@media screen and (max-width: 600px) { 
    .cb-slideshow li div h3 { font-size: 80px }
	.tm-content {
		margin-top: 80px;
	}
}

@media screen and (max-width: 576px) { 
    .cb-slideshow li div h3 { font-size: 80px }
	.tm-btn-subscribe {
		margin-top: 20px;
	}
}

/* Sections */
.nm-sections {
    margin-top: 16px;
}
.nm-section {
    margin: 36px 0;
    padding: 20px 0;
    border-top: 1px solid rgba(255,255,255,0.08);
    text-align: center; /* center section content */
}
.nm-section h2 {
    font-size: 1.4rem;
    font-weight: 700;
    letter-spacing: .04em;
    margin-bottom: 12px;
    color: var(--brand-2);
    display: flex; /* block-level to stack above content */
    align-items: center;
    gap: 10px;
}
.nm-section h2 .icon { 
    color: var(--brand-1);
    filter: drop-shadow(0 4px 14px rgba(96, 165, 250, 0.28));
    transition: transform .25s ease, filter .25s ease;
 }
.nm-section h2:hover .icon { transform: translateY(-2px) scale(1.05); filter: drop-shadow(0 6px 16px rgba(139, 92, 246, 0.35)); }

/* Animated gradient text utility */
.animated-gradient-text {
  background: linear-gradient(90deg, var(--brand-1), var(--brand-3), var(--brand-2));
  background-size: 200% 200%;
  -webkit-background-clip: text; background-clip: text; color: transparent;
  animation: gradientMove 6s ease infinite;
  text-shadow: 0 0 0 transparent;
}
@keyframes gradientMove {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

/* Logo stroke draw animation */
.logo-stroke path {
  stroke-dasharray: 320;
  stroke-dashoffset: 320;
  animation: logoDraw 2.2s ease forwards 0.2s;
}
@keyframes logoDraw {
  to { stroke-dashoffset: 0; }
}

/* Logo subtle glow */
.logo-stroke {
  filter: drop-shadow(0 6px 14px rgba(59,130,246,.18));
  animation: logoGlow 6s ease-in-out infinite 1.6s;
}
@keyframes logoGlow {
  0%,100% { filter: drop-shadow(0 6px 14px rgba(59,130,246,.18)); }
  50% { filter: drop-shadow(0 10px 24px rgba(139,92,246,.25)); }
}

/* NMC brand text animation */
.brand-text-nmc {
  letter-spacing: .01em;
  animation: nmcPulse 4s ease-in-out infinite;
}
@keyframes nmcPulse {
  0%, 100% { filter: drop-shadow(0 0 0 rgba(139,92,246,0)); transform: translateY(0); }
  40% { filter: drop-shadow(0 6px 12px rgba(59,130,246,.25)); transform: translateY(-1px); }
  60% { filter: drop-shadow(0 4px 10px rgba(139,92,246,.25)); transform: translateY(0); }
}


/* Expertise cards */
.expertise-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0,1fr));
  gap: 18px;
  max-width: 1000px;
  margin: 0 auto;
}
@media (max-width: 992px) {
  .expertise-grid { grid-template-columns: 1fr; }
}
.expertise-item {
  padding: 16px 16px;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,0.08);
  background: linear-gradient(180deg, rgba(255,255,255,0.06), rgba(255,255,255,0.02));
  text-align: left;
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.expertise-title {
  margin: 0 0 6px;
  font-size: 1.05rem;
  font-weight: 800;
  letter-spacing: .01em;
}
.expertise-title { 
  background: linear-gradient(90deg, var(--brand-1), var(--brand-3), var(--brand-2));
  background-size: 200% 200%;
  -webkit-background-clip: text; background-clip: text; color: transparent;
  animation: gradientMove 7s ease infinite;
}
.expertise-item p { color: var(--muted); margin: 0; }
.expertise-item:hover { transform: translateY(-3px); box-shadow: 0 14px 28px rgba(0,0,0,.35); border-color: rgba(99,102,241,.35); }

/* Ensure section headings are above content properly */
.section-title { display: flex; align-items: center; gap: 10px; }

/* Expertise titles (strong) styled as themed chips */
.nm-list li strong {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 9999px;
    background: linear-gradient(135deg, rgba(59,130,246,.15), rgba(139,92,246,.15));
    border: 1px solid rgba(99,102,241,.35);
    color: #e6f0ff;
    margin-right: 6px;
    font-weight: 700;
}
.nm-list {
    margin: 0;
    padding-left: 1.1rem;
    display: block;
    text-align: left;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}
.nm-list li { margin: 8px 0; }
.nm-list.two-col {
    columns: 2;
    column-gap: 32px;
}
@media (max-width: 768px) {
    .nm-list.two-col { columns: 1; }
}

.nm-media {
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: start;
    gap: 16px;
}
.nm-image {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.35);
}
.nm-actions { display: flex; align-items: center; gap: 10px; }

/* Stats */
.nm-stats {
    display: grid;
    grid-template-columns: repeat(4, minmax(0,1fr));
    gap: 20px;
    margin: 12px 0 6px;
    justify-items: center;
}
.nm-stats li {
    display: grid;
    justify-items: center;
    background: linear-gradient(180deg, rgba(255,255,255,0.06), rgba(255,255,255,0.02));
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 12px;
    padding: 16px 10px;
    backdrop-filter: blur(2px);
}
.nm-stats .num {
    font-size: 1.8rem;
    font-weight: 800;
    letter-spacing: .02em;
    background: linear-gradient(135deg, var(--brand-1), var(--brand-3) 40%, var(--brand-2));
    -webkit-background-clip: text; background-clip: text; color: transparent;
}
.nm-stats .icon { color: var(--brand-3); margin-bottom: 6px; opacity: .9; }
.nm-stats .icon { color: var(--brand-1); }
.nm-stats .label {
    margin-top: 6px;
    font-size: .85rem;
    color: var(--muted);
}
/* General icon polish */
.icon { transition: transform .2s ease, opacity .2s ease, color .2s ease; }
.icon:hover { transform: translateY(-1px); opacity: .95; }
@media (max-width: 768px) {
    body { font-size: 18px; }
    .nm-stats { grid-template-columns: repeat(2, minmax(0,1fr)); gap: 16px; }
    .tm-btn-primary { padding: 11px 24px; }
}

/* Profile Section Styles */
.about-content {
    max-width: 1000px;
    margin: 0 auto;
}

.profile-section {
    display: grid;
    grid-template-columns: 200px 1fr;
    gap: 32px;
    align-items: start;
    text-align: left;
    margin-top: 24px;
}

.profile-image {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    object-fit: cover;
    object-position: center;
    border: 4px solid transparent;
    background: linear-gradient(135deg, var(--brand-1), var(--brand-2));
    padding: 4px;
    box-shadow: 
        0 20px 40px rgba(0,0,0,0.3),
        0 0 0 1px rgba(255,255,255,0.1),
        inset 0 0 0 4px #000;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    will-change: transform;
    backface-visibility: hidden;
}

.profile-image:hover {
    transform: translateY(-8px) scale(1.05);
    box-shadow: 
        0 30px 60px rgba(0,0,0,0.4),
        0 0 30px rgba(59,130,246,0.3),
        0 0 0 1px rgba(255,255,255,0.2),
        inset 0 0 0 4px #000;
}

.profile-image::before {
    content: '';
    position: absolute;
    inset: -8px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--brand-1), var(--brand-3), var(--brand-2));
    background-size: 200% 200%;
    animation: gradientMove 6s ease infinite;
    z-index: -1;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.profile-image:hover::before {
    opacity: 0.6;
}

.profile-text {
    display: flex;
    flex-direction: column;
    gap: 16px;
    justify-content: center;
}

.profile-text p {
    margin: 0;
    line-height: 1.7;
}

.profile-highlight {
    font-style: italic;
    color: var(--brand-3) !important;
    font-weight: 500;
    padding: 16px;
    border-left: 3px solid var(--brand-1);
    background: linear-gradient(135deg, rgba(59,130,246,0.08), rgba(139,92,246,0.05));
    border-radius: 0 8px 8px 0;
    position: relative;
}

.profile-highlight::before {
    content: '"';
    position: absolute;
    left: -8px;
    top: -8px;
    font-size: 3rem;
    color: var(--brand-1);
    opacity: 0.3;
    font-family: serif;
}

/* Responsive design for profile section */
@media (max-width: 768px) {
    .profile-section {
        grid-template-columns: 1fr;
        gap: 24px;
        text-align: center;
        justify-items: center;
    }
    
    .profile-image {
        width: 160px;
        height: 160px;
        margin: 0 auto;
    }
    
    .profile-text {
        text-align: center;
    }
}

@media (max-width: 480px) {
    .profile-image {
        width: 140px;
        height: 140px;
    }
    
    .profile-section {
        gap: 20px;
    }
}

/* Scroll reveal */
.reveal {
    opacity: 0;
    transform: translateY(18px);
    transition: opacity .6s ease, transform .6s ease;
}
.reveal-visible {
    opacity: 1;
    transform: none;
}
