/* Syne font */
@import url("https://fonts.googleapis.com/css2?family=Syne:wght@400..800&display=swap");

/* Variables */
:root {
  --size: 1.6rem;
  --font-default: "Syne", sans-serif;
  --font-accent: "Syne", sans-serif;
  --radius-s: 1.5rem;
  --radius-m: 2.2rem;
  --radius-l: 3rem;
  --radius-xl: 3.6rem;
  --animspeed-fast: 0.1s;
  --animspeed-medium: 0.3s;
  --animspeed-slow: 0.6s;
  --animbezier: cubic-bezier(0.23, 0.65, 0.74, 1.09);
  
  /* Sky Blue Theme Colors */
  --base: #111111;
  --base-tint: #161616;
  --base-shade: #000000;
  --accent: #87CEEB;
  --secondary: #87CEEB;
  --secondary-rgba: rgba(135, 206, 235, 0.3);
  --stroke-controls: #4B4B51;
  --stroke-controls-neutral: rgba(255,255,255,0.3);
  --stroke-elements: #303033;
  --t-bright: #e9e9f1;
  --t-medium: #C7C6D3;
  --t-muted: #A1A1AF;
  --t-accent: #87CEEB;
  --t-secondary: #87CEEB;
  --t-disabled: #8B8A91;
  --t-placeholder: #58585E;
  --base-opp: #fafafa;
  --t-opp-bright: #121319;
  --t-opp-medium: #626577;
  --t-opp-muted: #717586;
  --gradient-one: #87CEEB;
  --gradient-two: #B0E0E6;
  --gradient-three: #87CEEB;
  
  /* permanent colors */
  --per-base: #111111;
  --per-base-tint: #212121;
  --per-stroke-controls: rgba(255,255,255,0.4);
  --per-stroke-elements: #333333;
  --per-t-bright: #ffffff;
  --per-t-medium: #C7C6D3;
  --per-t-muted: #A1A1AF;
  --per-t-accent: #87CEEB;
  --per-t-secondary: #87CEEB;
  --per-base-opp: #fafafa;
  --per-t-opp-bright: #121319;
  --per-t-opp-medium: #626577;
  --per-t-opp-muted: #717586;
}

/* Dark Mode Variables */
body.dark-mode {
  --base: #fafafa;
  --base-tint: #f0f0f0;
  --base-shade: #e0e0e0;
  --accent: #4a90e2;
  --secondary: #4a90e2;
  --secondary-rgba: rgba(74, 144, 226, 0.3);
  --stroke-controls: #b0b0b0;
  --stroke-controls-neutral: rgba(0,0,0,0.3);
  --stroke-elements: #d0d0d0;
  --t-bright: #121319;
  --t-medium: #626577;
  --t-muted: #717586;
  --t-accent: #4a90e2;
  --t-secondary: #4a90e2;
  --t-disabled: #8B8A91;
  --t-placeholder: #a0a0a0;
  --base-opp: #111111;
  --t-opp-bright: #e9e9f1;
  --t-opp-medium: #C7C6D3;
  --t-opp-muted: #A1A1AF;
  --gradient-one: #4a90e2;
  --gradient-two: #6bb6ff;
  --gradient-three: #4a90e2;
}

/* Gradient Background */
.gradient-background {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: -1;
  overflow: hidden;
}

.gradient-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(100px);
  animation: float 20s ease-in-out infinite;
}

/* Light Mode Gradient Orbs */
.gradient-orb-1 {
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(135, 206, 235, 0.4) 0%, rgba(135, 206, 235, 0.1) 50%, transparent 70%);
  top: 10%;
  left: 10%;
  animation-delay: 0s;
}

.gradient-orb-2 {
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(176, 224, 230, 0.3) 0%, rgba(176, 224, 230, 0.1) 50%, transparent 70%);
  top: 40%;
  right: 10%;
  animation-delay: 7s;
}

.gradient-orb-3 {
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(135, 206, 235, 0.35) 0%, rgba(135, 206, 235, 0.1) 50%, transparent 70%);
  bottom: 10%;
  left: 30%;
  animation-delay: 14s;
}

/* Dark Mode Gradient Orbs */
body.dark-mode .gradient-orb-1 {
  background: radial-gradient(circle, rgba(74, 144, 226, 0.5) 0%, rgba(74, 144, 226, 0.2) 50%, transparent 70%);
}

body.dark-mode .gradient-orb-2 {
  background: radial-gradient(circle, rgba(107, 182, 255, 0.4) 0%, rgba(107, 182, 255, 0.15) 50%, transparent 70%);
}

body.dark-mode .gradient-orb-3 {
  background: radial-gradient(circle, rgba(74, 144, 226, 0.45) 0%, rgba(74, 144, 226, 0.15) 50%, transparent 70%);
}

@keyframes float {
  0%, 100% {
    transform: translateY(0px) translateX(0px) rotate(0deg);
  }
  33% {
    transform: translateY(-30px) translateX(20px) rotate(120deg);
  }
  66% {
    transform: translateY(20px) translateX(-20px) rotate(240deg);
  }
}

@media (max-width: 768px) {
  .gradient-orb-1 {
    width: 300px;
    height: 300px;
  }
  
  .gradient-orb-2 {
    width: 400px;
    height: 400px;
  }
  
  .gradient-orb-3 {
    width: 350px;
    height: 350px;
  }
}

/* Reset */
*,
*::before,
*::after {
  box-sizing: border-box;
}

* {
  margin: 0;
  padding: 0;
}

html {
  font-size: 62.5%;
  scroll-behavior: smooth;
}

/* Improve base font size for better mobile readability */
@media (max-width: 768px) {
  html {
    font-size: 65%;
  }
}

@media (max-width: 480px) {
  html {
    font-size: 67.5%;
  }
}

@media (max-width: 375px) {
  html {
    font-size: 70%;
  }
}

body {
  font-family: var(--font-default);
  font-size: var(--size);
  font-weight: 400;
  line-height: 1.5;
  color: var(--t-bright);
  background-color: var(--base);
  -webkit-text-size-adjust: 100%;
  -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-accent);
  font-weight: 700;
  line-height: 1.2;
  color: var(--t-bright);
}

h1 { font-size: 4.8rem; }
h2 { font-size: 3.6rem; }
h3 { font-size: 2.4rem; }
h4 { font-size: 2rem; }
h5 { font-size: 1.8rem; }
h6 { font-size: 1.6rem; }

p {
  margin-bottom: 1.5rem;
  color: var(--t-medium);
}

a {
  color: var(--t-accent);
  text-decoration: none;
  transition: color var(--animspeed-medium) ease;
}

a:hover {
  color: var(--accent);
}

/* Better content spacing */
.content {
  margin-left: 30rem;
  padding-top: 8rem;
  min-height: 100vh;
}

.content__wrapper {
  padding: 0 4rem;
}

.content__block {
  margin-bottom: 6rem;
}

.inner {
  padding: 6rem 0;
}

.inner-first {
  padding-top: 4rem;
}

.section-grid-title {
  text-align: center;
  margin-bottom: 6rem;
}

/* Specific spacing adjustments */
.services {
  padding: 4rem 0;
}

.resume {
  padding: 4rem 0;
}

.contact {
  padding: 4rem 0;
}

@media (max-width: 1200px) {
  .content {
    margin-left: 0;
    padding-top: 8rem;
  }
  
  .content__wrapper {
    padding: 0 3rem;
  }
}

@media (max-width: 768px) {
  .content {
    padding-top: 7rem;
  }
  
  .content__wrapper {
    padding: 0 2rem;
  }
  
  .content__block {
    margin-bottom: 4rem;
  }
  
  .inner {
    padding: 4rem 0;
  }
  
  .section-grid-title {
    margin-bottom: 4rem;
  }
  
  .services {
    padding: 3rem 0;
  }
  
  .resume {
    padding: 3rem 0;
  }
  
  .contact {
    padding: 3rem 0;
  }
}

@media (max-width: 480px) {
  .content {
    padding-top: 6rem;
  }
  
  .content__wrapper {
    padding: 0 1.5rem;
  }
  
  .content__block {
    margin-bottom: 3rem;
  }
  
  .inner {
    padding: 3rem 0;
  }
  
  .section-grid-title {
    margin-bottom: 3rem;
  }
  
  .services {
    padding: 2rem 0;
  }
  
  .resume {
    padding: 2rem 0;
  }
  
  .contact {
    padding: 2rem 0;
  }
}

/* Better header spacing */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 2rem 3rem;
  background: rgba(17, 17, 17, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 0.1rem solid var(--stroke-elements);
  min-height: 7rem;
  display: flex;
  align-items: center;
}

@media (max-width: 768px) {
  .header {
    padding: 1.5rem 2rem;
    min-height: 6rem;
  }
}

@media (max-width: 480px) {
  .header {
    padding: 1.2rem 1.5rem;
    min-height: 5.5rem;
  }
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
  padding: 1.2rem 2.4rem;
  font-family: var(--font-default);
  font-size: 1.4rem;
  font-weight: 600;
  line-height: 1.5;
  color: var(--t-bright);
  text-decoration: none;
  background: transparent;
  border: 0.1rem solid var(--stroke-controls);
  border-radius: var(--radius-m);
  cursor: pointer;
  transition: all var(--animspeed-medium) var(--animbezier);
  user-select: none;
  white-space: nowrap;
}

/* Better mobile button styles */
.mobile-vertical {
  width: 100%;
  justify-content: center;
  text-align: center;
  min-height: 5rem;
}

.btn-group {
  display: flex;
  gap: 1.5rem;
  justify-content: center;
  flex-wrap: wrap;
}

@media (max-width: 768px) {
  .btn-group {
    flex-direction: column;
    align-items: center;
  }
  
  .mobile-vertical {
    min-width: 28rem;
    max-width: 100%;
  }
}

@media (max-width: 480px) {
  .mobile-vertical {
    min-width: 25rem;
    font-size: 1.5rem;
    padding: 1.5rem 2rem;
  }
}

.btn:hover {
  color: var(--t-bright);
  background: var(--accent);
  border-color: var(--accent);
  transform: translateY(-0.2rem);
}

.btn-default {
  background: var(--base-tint);
  border-color: var(--stroke-elements);
}

.btn-hover-accent:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--base);
}

.btn-hover-outline:hover {
  background: transparent;
  border-color: var(--accent);
  color: var(--accent);
}

.btn-hover-accent-mobile:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--base);
}

.btn-hover-outline-mobile:hover {
  background: transparent;
  border-color: var(--accent);
  color: var(--accent);
}

.btn-caption {
  display: inline-block;
}

.btn i {
  font-size: 1.6rem;
}

/* Layout */
.header__navigation {
  flex: 1;
}

.menu__list {
  display: flex;
  gap: 2rem;
  list-style: none;
}

.menu__item {
  position: relative;
}

.menu__link {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  padding: 0.8rem 1.6rem;
  color: var(--t-medium);
  text-decoration: none;
  border-radius: var(--radius-s);
  transition: all var(--animspeed-medium) ease;
}

.menu__link:hover {
  color: var(--accent);
  background: var(--base-tint);
}

.menu__caption {
  font-size: 1.4rem;
  font-weight: 500;
}

.header__controls {
  display: flex;
  align-items: center;
  gap: 1.2rem;
}

.header__switcher {
  width: 4rem;
  height: 4rem;
  border-radius: 50%;
  position: relative;
  background: var(--base-tint);
  border: 0.1rem solid var(--stroke-elements);
  cursor: pointer;
  transition: all var(--animspeed-medium) ease;
}

.header__switcher:hover {
  background: var(--accent);
  border-color: var(--accent);
}

/* Language Switcher */
.language-switcher {
  width: 4rem;
  height: 4rem;
  border-radius: 50%;
  position: relative;
  background: var(--accent);
  border: 0.1rem solid var(--accent);
  cursor: pointer;
  transition: all var(--animspeed-medium) ease;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--base);
}

.language-switcher:hover {
  background: var(--base-tint);
  border-color: var(--accent);
  color: var(--accent);
}

.language-switcher i {
  font-size: 1.6rem;
  margin-right: 0.3rem;
}

.language-switcher .lang-text {
  position: relative;
  z-index: 1;
  display: block;
  line-height: 1;
  text-align: center;
  font-family: var(--font-default);
  font-weight: 700;
  letter-spacing: 0.05em;
  font-size: 0.9rem;
}

.language-switcher:hover i,
.language-switcher:hover .lang-text {
  color: var(--accent);
}

/* Enhanced Dark Mode Switcher */
.color-switcher {
  width: 4rem;
  height: 4rem;
  border-radius: 50%;
  position: relative;
  background: var(--base-tint);
  border: 0.1rem solid var(--stroke-elements);
  cursor: pointer;
  transition: all var(--animspeed-medium) ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.color-switcher:hover {
  background: var(--accent);
  border-color: var(--accent);
}

.color-switcher .theme-icon {
  font-size: 1.8rem;
  color: var(--t-bright);
  transition: all var(--animspeed-medium) ease;
}

.color-switcher:hover .theme-icon {
  color: var(--base);
}

/* Dark mode theme icon */
body.dark-mode .color-switcher .theme-icon {
  color: var(--t-bright);
}

body.dark-mode .color-switcher:hover .theme-icon {
  color: var(--base);
}

/* RTL Support for Arabic */
body.rtl {
  direction: rtl;
}

body.rtl .header {
  flex-direction: row-reverse;
}

body.rtl .header__navigation {
  order: 2;
}

body.rtl .header__controls {
  order: 1;
  justify-content: flex-start;
}

body.rtl .menu__list {
  flex-direction: row-reverse;
}

body.rtl .menu__link {
  flex-direction: row-reverse;
}

body.rtl .menu__link i {
  margin-left: 0.8rem;
  margin-right: 0;
}

body.rtl .avatar__logo {
  flex-direction: row-reverse;
}

body.rtl .avatar__logo-caption {
  margin-left: 0;
  margin-right: 1.5rem;
  text-align: right;
}

body.rtl .headline__btnholder {
  flex-direction: row-reverse;
}

body.rtl .btn {
  flex-direction: row-reverse;
}

body.rtl .btn i {
  margin-left: 0.8rem;
  margin-right: 0;
}

body.rtl .about-info__item {
  text-align: right;
}

body.rtl .contact-grid {
  direction: rtl;
}

body.rtl .contact-item {
  flex-direction: row-reverse;
}

body.rtl .contact-details {
  text-align: right;
}

body.rtl .achievement__item {
  text-align: right;
}

body.rtl .timeline-item {
  direction: rtl;
}

body.rtl .timeline-date {
  text-align: left;
  padding-left: 30px;
  padding-right: 0;
}

body.rtl .timeline-item::before {
  left: auto;
  right: 190px;
}

body.rtl .timeline-item::after {
  left: auto;
  right: 185px;
}

body.rtl .skill-tags {
  flex-direction: row-reverse;
}

body.rtl .card__tags {
  flex-direction: row-reverse;
}

body.rtl .header__trigger {
  flex-direction: row-reverse;
}

body.rtl .language-switcher {
  flex-direction: row-reverse;
}

body.rtl .language-switcher i {
  margin-left: 0.3rem;
  margin-right: 0;
}

@media (max-width: 768px) {
  body.rtl .headline__btnholder {
    align-items: center;
  }
  
  body.rtl .mobile-menu-toggle {
    order: 1;
  }
  
  body.rtl .header__controls {
    order: 2;
  }
}
.languages-list {
  background: var(--base-tint);
  border: 0.1rem solid var(--stroke-elements);
  border-radius: var(--radius-l);
  padding: 3rem;
}

.language-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.5rem 0;
  border-bottom: 0.1rem solid var(--stroke-elements);
}

.language-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.language-item:first-child {
  padding-top: 0;
}

.language-info {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

.language-info h6 {
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--t-bright);
  margin: 0;
}

.language-level {
  font-size: 1.4rem;
  color: var(--accent);
  font-weight: 600;
  margin: 0;
}

/* Contact Section - Fix spacing */
.contact-info,
.contact-form {
  margin-bottom: 3rem;
}

.contact .row.g-0 {
  gap: 3rem;
}

.contact .col-12.col-xl-6 {
  flex: 0 0 auto;
  width: calc(50% - 1.5rem);
}

@media (max-width: 1199px) {
  .contact-info,
  .contact-form {
    margin-bottom: 4rem;
  }
  
  .contact .row.g-0 {
    gap: 2rem;
  }
  
  .contact .col-12.col-xl-6 {
    width: 100%;
    margin-bottom: 2rem;
  }
}

@media (max-width: 768px) {
  .language-switcher {
    width: 3.5rem;
    height: 3.5rem;
    font-size: 1rem;
  }
  
  .languages-list {
    padding: 2rem;
  }
  
  .language-info h6 {
    font-size: 1.5rem;
  }
  
  .language-level {
    font-size: 1.3rem;
  }
  
  .contact-info,
  .contact-form {
    margin-bottom: 2rem;
  }
}

@media (max-width: 480px) {
  .language-switcher {
    width: 3rem;
    height: 3rem;
    font-size: 0.9rem;
  }
  
  .languages-list {
    padding: 1.5rem;
  }
  
  .language-info h6 {
    font-size: 1.4rem;
  }
  
  .language-level {
    font-size: 1.2rem;
  }
  
  /* Mobile text overflow fixes */
  .contact-info__item-content h6,
  .contact-form h6 {
    font-size: 1.4rem;
    word-wrap: break-word;
    overflow-wrap: break-word;
    hyphens: auto;
  }
  
  .contact-info__item-content p {
    font-size: 1.3rem;
    word-wrap: break-word;
    overflow-wrap: break-word;
  }
  
  .input {
    font-size: 1.3rem;
    padding: 1.2rem;
    width: 100%;
    box-sizing: border-box;
  }
  
  .btn-caption {
    font-size: 1.3rem;
    word-wrap: break-word;
    overflow-wrap: break-word;
  }
  
  /* Fix text overflow in all sections */
  h1, h2, h3, h4, h5, h6 {
    word-wrap: break-word;
    overflow-wrap: break-word;
    hyphens: auto;
  }
  
  p {
    word-wrap: break-word;
    overflow-wrap: break-word;
    hyphens: auto;
  }
  
  .menu__caption {
    font-size: 1.3rem;
    word-wrap: break-word;
    overflow-wrap: break-word;
  }
  
  .header {
    padding: 1rem 1.5rem;
  }
  
  .header__controls {
    gap: 0.8rem;
  }
}

.header__trigger {
  padding: 1rem 2rem;
  background: var(--accent);
  color: var(--base);
  border: none;
}

.header__trigger:hover {
  background: var(--accent);
  color: var(--base);
  transform: translateY(-0.2rem);
}

/* Avatar */
.avatar {
  position: fixed;
  top: 0;
  left: 0;
  width: 30rem;
  height: 100vh;
  background: var(--base-tint);
  border-right: 0.1rem solid var(--stroke-elements);
  z-index: 40;
  padding: 3rem 2rem;
  padding-top: 10rem; /* Add padding to avoid header overlap */
}

.avatar__container {
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.avatar__block {
  margin-bottom: 3rem;
}

.avatar__logo {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.avatar__logo-image {
  width: 6rem;
  height: 6rem;
  border-radius: 50%;
  overflow: hidden;
}

.avatar__logo-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.avatar__logo-caption {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--accent);
}

.avatar__block h6 {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--t-muted);
  text-transform: uppercase;
  letter-spacing: 0.1rem;
  margin-bottom: 1rem;
}

.avatar__block p {
  font-size: 1.4rem;
  color: var(--t-medium);
  margin-bottom: 0;
}

.avatar__socials {
  display: flex;
  gap: 1rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.avatar__social {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 4rem;
  height: 4rem;
  background: var(--base);
  border: 0.1rem solid var(--stroke-elements);
  border-radius: var(--radius-s);
  color: var(--t-medium);
  font-size: 1.8rem;
  transition: all var(--animspeed-medium) ease;
}

.avatar__social:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--base);
  transform: translateY(-0.2rem);
}

/* Content */
.content {
  margin-left: 30rem;
  padding-top: 8rem;
}

.content__wrapper {
  padding: 0 3rem;
}

.main {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 6rem 0;
}

.inner {
  padding: 8rem 0;
}

.inner-first {
  padding-top: 4rem;
}

.content__block {
  margin-bottom: 6rem;
}

.section-grid-title {
  text-align: center;
  margin-bottom: 8rem;
}

.h2__subtitle {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--accent);
  margin-bottom: 2rem;
}

.h2__subtitle svg {
  width: 1.3rem;
  height: 1.3rem;
}

.h2__title {
  font-size: 4rem;
  font-weight: 700;
  color: var(--t-bright);
  max-width: 60rem;
  margin: 0 auto;
}

/* Headline */
.headline {
  text-align: center;
  margin-bottom: 4rem;
}

.headline__subtitle {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  font-size: 1.6rem;
  font-weight: 600;
  color: var(--accent);
  margin-bottom: 2rem;
}

.headline__subtitle svg {
  width: 1.3rem;
  height: 1.3rem;
}

.headline__title {
  font-size: 6rem;
  font-weight: 800;
  color: var(--t-bright);
  line-height: 1.1;
  margin-bottom: 3rem;
}

.headline__btnholder {
  display: flex;
  justify-content: center;
  gap: 2rem;
  margin-top: 4rem;
}

/* Rotating Button */
.rotating-btn {
  position: fixed;
  bottom: 4rem;
  right: 4rem;
  z-index: 90;
}

.rotating-btn__link {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 12rem;
  height: 12rem;
  background: var(--accent);
  border-radius: 50%;
  color: var(--base);
  font-size: 2.4rem;
  transition: all var(--animspeed-medium) ease;
  box-shadow: 0 8px 32px rgba(135, 206, 235, 0.3);
}

.rotating-btn__link:hover {
  transform: scale(1.05);
  box-shadow: 0 12px 48px rgba(135, 206, 235, 0.5);
}

.rotating-btn__link svg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  animation: rotate 25s linear infinite;
}

.rotating-btn__link svg text {
  font-size: 1.2rem;
  font-weight: 700;
  fill: var(--base);
  letter-spacing: 0.1rem;
}

.rotating-btn__link i {
  position: relative;
  z-index: 1;
}

@keyframes rotate {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

@media (max-width: 768px) {
  .rotating-btn {
    bottom: 3rem;
    right: 3rem;
  }
  
  .rotating-btn__link {
    width: 10rem;
    height: 10rem;
    font-size: 2rem;
  }
  
  .rotating-btn__link svg text {
    font-size: 1rem;
  }
}

@media (max-width: 480px) {
  .rotating-btn {
    bottom: 2rem;
    right: 2rem;
  }
  
  .rotating-btn__link {
    width: 8rem;
    height: 8rem;
    font-size: 1.8rem;
  }
  
  .rotating-btn__link svg text {
    font-size: 0.9rem;
  }
}

/* Gallery */
.inner__gallery {
  margin: 0 -1.5rem;
}

.gallery__item {
  position: relative;
  margin-bottom: 3rem;
  padding: 0 1.5rem;
  cursor: pointer;
  transition: all var(--animspeed-medium) ease;
}

.gallery__item:hover {
  transform: translateY(-0.5rem);
}

.gallery__image-container {
  position: relative;
  width: 100%;
  height: 30rem;
  border-radius: var(--radius-l);
  overflow: hidden;
  background: var(--base-tint);
  border: 0.1rem solid var(--stroke-elements);
}

.gallery__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.project-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--base-tint);
  color: var(--accent);
  font-size: 4rem;
}

.gallery__descr {
  padding: 2rem 0;
}

.gallery__descr h5 {
  font-size: 2rem;
  font-weight: 700;
  color: var(--t-bright);
  margin-bottom: 1rem;
}

.gallery__descr.opposite h5 {
  color: var(--t-bright);
}

.card__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-bottom: 1.5rem;
}

.rounded-tag {
  padding: 0.4rem 1.2rem;
  background: var(--accent);
  color: var(--base);
  border-radius: var(--radius-s);
  font-size: 1.2rem;
  font-weight: 600;
}

.rounded-tag.opposite {
  background: var(--base-tint);
  color: var(--accent);
  border: 0.1rem solid var(--stroke-elements);
}

/* Achievements */
.achievements {
  display: flex;
  gap: 3rem;
  margin-bottom: 4rem;
}

.achievements__item {
  flex: 1;
}

.achievements__card {
  text-align: center;
  padding: 3rem 2rem;
  background: var(--base-tint);
  border: 0.1rem solid var(--stroke-elements);
  border-radius: var(--radius-l);
  transition: all var(--animspeed-medium) ease;
}

.achievements__card:hover {
  transform: translateY(-0.5rem);
  border-color: var(--accent);
}

.achievements__number {
  font-size: 4rem;
  font-weight: 800;
  color: var(--accent);
  margin-bottom: 1rem;
}

.achievements__descr {
  font-size: 1.6rem;
  color: var(--t-medium);
  margin: 0;
}

/* About */
.about-descr {
  margin-bottom: 4rem;
}

.about-descr__text {
  font-size: 1.8rem;
  line-height: 1.6;
  color: var(--t-medium);
  margin-bottom: 2rem;
}

.about-descr__btnholder {
  margin-top: 3rem;
}

.about-info {
  padding-left: 3rem;
}

.about-info__item {
  margin-bottom: 3rem;
}

.about-info__item h6 {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--t-bright);
  margin-bottom: 0.5rem;
}

.about-info__item small {
  display: block;
  font-size: 1.2rem;
  color: var(--t-muted);
  text-transform: uppercase;
  letter-spacing: 0.1rem;
  margin-bottom: 0.5rem;
}

/* Resume */
.resume-column {
  margin-bottom: 4rem;
}

.resume-column__title {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 3rem;
}

.resume-column__title h3 {
  font-size: 2.4rem;
  font-weight: 700;
  color: var(--t-bright);
  display: flex;
  align-items: center;
  gap: 1rem;
}

.resume-column__title i {
  font-size: 2rem;
  color: var(--accent);
}

.resume-column__content {
  padding-left: 0;
}

.resume-item {
  display: flex;
  gap: 2rem;
  margin-bottom: 3rem;
  padding-bottom: 3rem;
  border-bottom: 0.1rem solid var(--stroke-elements);
}

.resume-item:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

.resume-item__date {
  min-width: 12rem;
  padding: 0.8rem 1.2rem;
  background: var(--accent);
  color: var(--base);
  font-size: 1.2rem;
  font-weight: 600;
  border-radius: var(--radius-s);
  text-align: center;
  height: fit-content;
}

.resume-item__data h5 {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--t-bright);
  margin-bottom: 0.5rem;
}

.resume-item__data p {
  font-size: 1.4rem;
  color: var(--t-medium);
  margin-bottom: 0.5rem;
}

.resume-item__data p:last-child {
  margin-bottom: 0;
}

/* Skills */
.skills-list {
  background: var(--base-tint);
  border: 0.1rem solid var(--stroke-elements);
  border-radius: var(--radius-l);
  padding: 3rem;
}

.skills-list__item {
  margin-bottom: 2rem;
}

.skills-list__item:last-child {
  margin-bottom: 0;
}

.skills-list__item h6 {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--t-bright);
  margin-bottom: 1rem;
}

.skills-list__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
}

/* Certifications */
.certifications-list {
  background: var(--base-tint);
  border: 0.1rem solid var(--stroke-elements);
  border-radius: var(--radius-l);
  padding: 3rem;
}

.certifications-list .resume-item {
  margin-bottom: 2.5rem;
  padding-bottom: 2.5rem;
}

.certifications-list .resume-item:last-child {
  margin-bottom: 0;
  padding-bottom: 0;
}

/* Better spacing for resume sections */
.resume-section-spacing {
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}

.resume-column + .resume-column {
  margin-top: 0;
}

@media (max-width: 1199px) {
  .resume-section-spacing {
    padding-left: 0;
    padding-right: 0;
  }
  
  .resume-column {
    margin-bottom: 6rem;
  }
  
  .resume-column + .resume-column {
    margin-top: 2rem;
  }
}

@media (max-width: 768px) {
  .resume-section-spacing {
    padding-left: 0;
    padding-right: 0;
  }
  
  .resume-column {
    margin-bottom: 5rem;
  }
  
  .resume-column__title h3 {
    font-size: 2rem;
  }
  
  .resume-item {
    gap: 1.5rem;
  }
  
  .resume-item__date {
    min-width: 10rem;
    font-size: 1.1rem;
  }
  
  .resume-item__data h5 {
    font-size: 1.6rem;
  }
  
  .skills-list,
  .certifications-list {
    padding: 2rem;
  }
}

@media (max-width: 480px) {
  .resume-column {
    margin-bottom: 4rem;
  }
  
  .resume-column__title h3 {
    font-size: 1.8rem;
  }
  
  .resume-item {
    gap: 1rem;
  }
  
  .resume-item__date {
    min-width: 8rem;
    font-size: 1rem;
    padding: 0.6rem 1rem;
  }
  
  .resume-item__data h5 {
    font-size: 1.4rem;
  }
  
  .resume-item__data p {
    font-size: 1.3rem;
  }
  
  .skills-list,
  .certifications-list {
    padding: 1.5rem;
  }
  
  .skills-list__item h6 {
    font-size: 1.3rem;
  }
}

/* Service Offerings */
.services {
  padding: 8rem 0;
  background: var(--base);
}

.services-container {
  width: 100%;
  overflow: hidden;
  border-radius: var(--radius-l);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
}

.services-black {
  background: var(--base);
  padding: 3rem 0;
  border-bottom: 0.1rem solid var(--stroke-elements);
  overflow: hidden;
}

.services-black-wrapper {
  display: flex;
  animation: slide-left 30s linear infinite;
  width: max-content;
}

.service-black-item {
  flex-shrink: 0;
  padding: 2rem 4rem;
  min-width: 280px;
  background: var(--base);
  border-right: 0.1rem solid var(--stroke-elements);
  transition: all var(--animspeed-medium) ease;
  cursor: pointer;
}

.service-black-item:hover {
  background: var(--base-tint);
  transform: translateY(-2px);
}

.service-item-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.service-white-text {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--t-bright);
  white-space: nowrap;
}

.service-arrow {
  font-size: 2rem;
  color: var(--accent);
  font-weight: 700;
  transition: all var(--animspeed-medium) ease;
}

.service-black-item:hover .service-arrow {
  transform: translateX(5px);
}

.services-color {
  background: linear-gradient(135deg, var(--accent) 0%, var(--secondary) 100%);
  padding: 3rem 0;
  overflow: hidden;
}

.services-color-wrapper {
  display: flex;
  animation: slide-right 35s linear infinite;
  width: max-content;
}

.services-color-item {
  flex-shrink: 0;
  padding: 2rem 4rem;
  min-width: 280px;
  background: transparent;
  border-right: 0.1rem solid rgba(255, 255, 255, 0.2);
  transition: all var(--animspeed-medium) ease;
  cursor: pointer;
}

.services-color-item:hover {
  background: rgba(255, 255, 255, 0.1);
  transform: translateY(-2px);
}

.service-arrow-black {
  font-size: 2rem;
  color: var(--base);
  font-weight: 700;
  transition: all var(--animspeed-medium) ease;
}

.services-black-text {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--base);
  white-space: nowrap;
}

.services-color-item:hover .service-arrow-black {
  transform: translateX(5px);
}

@keyframes slide-left {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

@keyframes slide-right {
  0% {
    transform: translateX(-50%);
  }
  100% {
    transform: translateX(0);
  }
}

/* Service Offerings Responsive */
@media (max-width: 768px) {
  .services {
    padding: 6rem 0;
  }
  
  .service-black-item,
  .services-color-item {
    min-width: 220px;
    padding: 1.5rem 2rem;
  }
  
  .service-white-text,
  .services-black-text {
    font-size: 1.5rem;
  }
  
  .service-arrow,
  .service-arrow-black {
    font-size: 1.8rem;
  }
}

@media (max-width: 480px) {
  .services {
    padding: 4rem 0;
  }
  
  .service-black-item,
  .services-color-item {
    min-width: 180px;
    padding: 1.2rem 1.5rem;
  }
  
  .service-white-text,
  .services-black-text {
    font-size: 1.4rem;
  }
  
  .service-arrow,
  .service-arrow-black {
    font-size: 1.6rem;
  }
}

/* Contact */
.contact-info {
  background: var(--base-tint);
  border: 0.1rem solid var(--stroke-elements);
  border-radius: var(--radius-l);
  padding: 3rem;
}

.contact-info h6 {
  font-size: 2rem;
  font-weight: 700;
  color: var(--t-bright);
  margin-bottom: 3rem;
}

.contact-info__item {
  display: flex;
  align-items: center;
  gap: 2rem;
  margin-bottom: 2rem;
}

.contact-info__item:last-child {
  margin-bottom: 0;
}

.contact-info__item-icon {
  width: 5rem;
  height: 5rem;
  background: var(--accent);
  border-radius: var(--radius-s);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--base);
  font-size: 2rem;
}

.contact-info__item-content h6 {
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--t-bright);
  margin-bottom: 0.5rem;
}

.contact-info__item-content p {
  font-size: 1.4rem;
  color: var(--t-medium);
  margin: 0;
}

.contact-form {
  background: var(--base-tint);
  border: 0.1rem solid var(--stroke-elements);
  border-radius: var(--radius-l);
  padding: 3rem;
}

.contact-form h6 {
  font-size: 2rem;
  font-weight: 700;
  color: var(--t-bright);
  margin-bottom: 3rem;
}

.input {
  width: 100%;
  padding: 1.5rem;
  background: var(--base);
  border: 0.1rem solid var(--stroke-elements);
  border-radius: var(--radius-s);
  color: var(--t-bright);
  font-size: 1.4rem;
  font-family: var(--font-default);
  margin-bottom: 2rem;
  transition: all var(--animspeed-medium) ease;
}

.input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 0.3rem rgba(135, 206, 235, 0.2);
}

.input::placeholder {
  color: var(--t-placeholder);
}

textarea.input {
  height: 12rem;
  resize: vertical;
}

/* Animations */
@keyframes animate-in-up {
  from {
    opacity: 0;
    transform: translateY(3rem);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate-in-up {
  animation: animate-in-up 0.8s ease-out forwards;
}

.animate-headline {
  animation: animate-in-up 0.8s ease-out forwards;
}

.animate-card-2 {
  animation: animate-in-up 0.8s ease-out forwards;
}

.animate-card-3 {
  animation: animate-in-up 0.8s ease-out forwards;
}

.grid-item {
  animation: animate-in-up 0.8s ease-out forwards;
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
  display: none;
  flex-direction: column;
  cursor: pointer;
  padding: 0.5rem;
  background: transparent;
  border: none;
  width: 3.5rem;
  height: 3.5rem;
  justify-content: center;
  align-items: center;
  gap: 0.4rem;
  position: relative;
  z-index: 300;
}

.mobile-menu-toggle span {
  width: 2.2rem;
  height: 0.25rem;
  background: var(--t-bright);
  border-radius: 0.15rem;
  transition: all var(--animspeed-medium) ease;
  transform-origin: center;
}

.mobile-menu-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(0.6rem, 0.6rem);
}

.mobile-menu-toggle.active span:nth-child(2) {
  opacity: 0;
  transform: scale(0);
}

.mobile-menu-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(0.6rem, -0.6rem);
}

.mobile-menu-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(17, 17, 17, 0.98);
  backdrop-filter: blur(15px);
  z-index: 250;
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  opacity: 0;
  visibility: hidden;
  transition: all var(--animspeed-medium) ease;
}

.mobile-menu-overlay.active {
  display: flex;
  opacity: 1;
  visibility: visible;
}

.mobile-menu-overlay .menu__list {
  flex-direction: column;
  gap: 3rem;
  text-align: center;
  list-style: none;
  padding: 0;
  margin: 0;
}

.mobile-menu-overlay .menu__link {
  font-size: 2.2rem;
  padding: 1.5rem 3rem;
  color: var(--t-bright);
  text-decoration: none;
  border-radius: var(--radius-m);
  transition: all var(--animspeed-medium) ease;
  border: 2px solid transparent;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
}

.mobile-menu-overlay .menu__link:hover {
  color: var(--accent);
  background: rgba(135, 206, 235, 0.1);
  border-color: var(--accent);
  transform: translateY(-2px);
}

.mobile-menu-close {
  position: absolute;
  top: 3rem;
  right: 3rem;
  background: transparent;
  border: none;
  color: var(--t-bright);
  font-size: 4rem;
  cursor: pointer;
  z-index: 260;
  transition: all var(--animspeed-medium) ease;
  width: 5rem;
  height: 5rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.mobile-menu-close:hover {
  color: var(--accent);
  transform: rotate(90deg);
}

/* Responsive */
@media (max-width: 1400px) {
  .avatar {
    width: 25rem;
  }
  
  .content {
    margin-left: 25rem;
  }
}

@media (max-width: 1200px) {
  .avatar {
    position: relative;
    width: 100%;
    height: auto;
    min-height: auto;
    background: var(--base-tint);
    border-right: none;
    border-bottom: 0.1rem solid var(--stroke-elements);
    padding: 2rem;
    transform: none;
    transition: none;
  }
  
  .avatar__container {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    height: auto;
    flex-wrap: wrap;
    gap: 2rem;
  }
  
  .avatar__block {
    margin-bottom: 0;
    flex: 0 0 auto;
  }
  
  .avatar__logo {
    margin-bottom: 0;
  }
  
  .content {
    margin-left: 0;
    padding-top: 0;
  }
  
  .achievements {
    flex-direction: column;
    gap: 2rem;
  }
  
  .resume-item {
    flex-direction: column;
    gap: 1rem;
  }
  
  .resume-item__date {
    min-width: auto;
    width: fit-content;
  }
}

@media (max-width: 992px) {
  .header__navigation {
    display: none;
  }
  
  .mobile-menu-toggle {
    display: flex;
  }
  
  .headline__title {
    font-size: 4.5rem;
    line-height: 1.1;
  }
  
  .h2__title {
    font-size: 3.2rem;
  }
  
  .achievements {
    flex-direction: column;
    gap: 2rem;
  }
  
  .gallery__image-container {
    height: 25rem;
  }
  
  .contact-info,
  .contact-form {
    padding: 2.5rem;
  }
}

@media (max-width: 768px) {
  .header {
    padding: 1.5rem 2rem;
  }
  
  .avatar {
    padding: 1.5rem;
  }
  
  .avatar__container {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 1.5rem;
  }
  
  .avatar__logo {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 1rem;
  }
  
  .avatar__logo-image {
    width: 8rem;
    height: 8rem;
  }
  
  .content__wrapper {
    padding: 0 2rem;
  }
  
  .headline__title {
    font-size: 3.8rem;
    line-height: 1.1;
    margin-bottom: 2rem;
  }
  
  .h2__title {
    font-size: 2.8rem;
    line-height: 1.2;
  }
  
  .headline__btnholder {
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
  }
  
  .about-info {
    padding-left: 0;
    margin-top: 3rem;
  }
  
  .rotating-btn {
    bottom: 2rem;
    right: 2rem;
  }
  
  .rotating-btn__link {
    width: 6rem;
    height: 6rem;
  }
  
  .gallery__image-container {
    height: 22rem;
  }
  
  .gallery__descr h5 {
    font-size: 1.8rem;
  }
  
  .achievements__card {
    padding: 3rem 2rem;
  }
  
  .achievements__number {
    font-size: 4rem;
  }
  
  .contact-info,
  .contact-form {
    padding: 2rem;
  }
  
  .btn {
    padding: 1.4rem 2.8rem;
    font-size: 1.5rem;
  }
  
  .main {
    padding: 4rem 0;
  }
  
  .inner {
    padding: 4rem 0;
  }
  
  .content__block {
    margin-bottom: 4rem;
  }
  
  .section-grid-title {
    margin-bottom: 4rem;
  }
}

@media (max-width: 480px) {
  .header {
    padding: 1.2rem 1.5rem;
  }
  
  .avatar {
    padding: 1rem;
  }
  
  .avatar__logo {
    gap: 0.8rem;
  }
  
  .avatar__logo-image {
    width: 6rem;
    height: 6rem;
  }
  
  .avatar__logo-caption {
    font-size: 1.6rem;
  }
  
  .content__wrapper {
    padding: 0 1.5rem;
  }
  
  .headline__title {
    font-size: 3.2rem;
    line-height: 1.1;
    margin-bottom: 2rem;
  }
  
  .h2__title {
    font-size: 2.4rem;
    line-height: 1.2;
  }
  
  .headline__subtitle {
    font-size: 1.4rem;
    margin-bottom: 1.5rem;
  }
  
  .inner__gallery {
    margin: 0 -1rem;
  }
  
  .gallery__item {
    padding: 0 1rem;
  }
  
  .gallery__image-container {
    height: 20rem;
  }
  
  .gallery__descr h5 {
    font-size: 1.6rem;
  }
  
  .contact-info,
  .contact-form {
    padding: 1.5rem;
  }
  
  .skills-list {
    padding: 1.5rem;
  }
  
  .achievements__card {
    padding: 2.5rem 1.5rem;
  }
  
  .achievements__number {
    font-size: 3.5rem;
  }
  
  .btn {
    padding: 1.2rem 2.4rem;
    font-size: 1.4rem;
  }
  
  .rotating-btn__link {
    width: 5rem;
    height: 5rem;
    font-size: 1.6rem;
  }
  
  .rotating-btn__link svg {
    display: none;
  }
  
  .main {
    padding: 3rem 0;
  }
  
  .inner {
    padding: 3rem 0;
  }
  
  .content__block {
    margin-bottom: 3rem;
  }
  
  .section-grid-title {
    margin-bottom: 3rem;
  }
  
  .h2__subtitle {
    font-size: 1.3rem;
  }
  
  .resume-item__date {
    font-size: 1.1rem;
    padding: 0.6rem 1rem;
  }
  
  .resume-item__data h5 {
    font-size: 1.5rem;
  }
  
  .resume-item__data p {
    font-size: 1.3rem;
  }
  
  .contact-info h6 {
    font-size: 1.8rem;
  }
  
  .contact-form h6 {
    font-size: 1.8rem;
  }
  
  .input {
    font-size: 1.3rem;
    padding: 1.3rem;
  }
  
  .mobile-menu-toggle {
    width: 3rem;
    height: 3rem;
  }
  
  .mobile-menu-toggle span {
    width: 1.8rem;
    height: 0.2rem;
  }
  
  .mobile-menu-overlay .menu__link {
    font-size: 2rem;
    padding: 1.2rem 2rem;
  }
  
  .mobile-menu-close {
    font-size: 3rem;
    width: 4rem;
    height: 4rem;
    top: 2rem;
    right: 2rem;
  }
}

@media (max-width: 375px) {
  .language-switcher {
    width: 2.8rem;
    height: 2.8rem;
    font-size: 0.8rem;
  }
  
  .languages-list {
    padding: 1.2rem;
  }
  
  .language-info h6 {
    font-size: 1.3rem;
  }
  
  .language-level {
    font-size: 1.1rem;
  }
  
  /* Additional mobile text overflow fixes */
  .contact .row.g-0 {
    gap: 1.5rem;
  }
  
  .contact-info,
  .contact-form {
    padding: 1.2rem;
  }
  
  .contact-info__item {
    gap: 1.5rem;
  }
  
  .contact-info__item-icon {
    width: 4rem;
    height: 4rem;
    font-size: 1.8rem;
  }
  
  .header__controls {
    gap: 0.5rem;
  }
  
  .header__trigger {
    padding: 0.8rem 1.5rem;
    font-size: 1.2rem;
  }
  
  .header__trigger .btn-caption {
    font-size: 1.2rem;
  }
  
  .menu__caption {
    font-size: 1.2rem;
  }
  
  /* Ensure proper spacing between columns */
  .contact .col-12.col-xl-6 {
    width: 100%;
    margin-bottom: 1.5rem;
  }
  
  /* Fix any potential horizontal overflow */
  .container-fluid {
    overflow-x: hidden;
  }
  
  .row {
    margin-left: 0;
    margin-right: 0;
  }
}
}