/* ==================================================
               Mehdi Dimyadi Portfolio
   ================================================== */

/* ==========================
   Root Variables
========================== */
:root {
    --bg-color: #0b1120;
    --text-color: #f1f5f9;
    --card-bg: rgba(24, 33, 54, 0.85);
    --card-border: rgba(100, 116, 139, 0.3);
    --accent-color: #60a5fa;
    --border-color: rgba(255, 255, 255, 0.1);
    --link-color: #93c5fd;
    --shadow-color: rgba(96, 165, 250, 0.3);
    --header-bg: rgba(15, 23, 42, 0.85);
    --hero-gradient: linear-gradient(135deg,
            #0b1120 0%,
            #1e1b4b 25%,
            #312e81 50%,
            #1e40af 75%,
            #0b1120 100%);
    --mountain-color: #7f8c8d;
    --mountain-shadow: rgba(0, 0, 0, 0.2);
    --cloud-color: #ecf0f1;
    --flag-pole: #9E6D4D;
    --flag-flag: #e74c3c;
    --dash-color: #c0392b;
    --overlay-bg: rgba(0, 0, 0, 0.2);
    --overlay-text: #ffffff;
    --flag-bg: rgba(25, 50, 80, 0.5);
    --avatar-border: #60a5fa;
    --avatar-glow: rgba(96, 165, 250, 0.8);
    --avatar-glow-alt: rgba(96, 180, 255, 0.6);
    --loading-ring-color: #fff000;
    --loading-circle-color: #fff000;    
    --loading-text-color: #ffffff;
    --vh: 1vh;
}

/* ==========================
   Light Theme
========================== */
body.light {
    --bg-color: #f8fafc;
    --text-color: #0f172a;
    --card-bg: rgba(255, 255, 255, 0.95);
    --card-border: rgba(148, 163, 184, 0.25);
    --accent-color: #0ea5e9;
    --border-color: rgba(0, 0, 0, 0.1);
    --link-color: #0284c7;
    --shadow-color: rgba(2, 132, 199, 0.15);
    --header-bg: rgba(255, 255, 255, 0.8);
    --hero-gradient: linear-gradient(135deg,
            #c0e0f8 0%,
            #9acdf5 25%,
            #63b3f0 50%,
            #38a1e5 75%,
            #c0e0f8 100%);
    --mountain-color: #95a5a6;
    --mountain-shadow: rgba(0, 0, 0, 0.1);
    --cloud-color: #f0f4f8;
    --flag-pole: #d69d7c;
    --flag-flag: #f87171;
    --dash-color: #e53e3e;
    --overlay-bg: rgba(255, 255, 255, 0.2);
    --overlay-text: #1e293b;
    --flag-bg: rgba(100, 160, 220, 0.4);
    --avatar-border: #0ea5e9;
    --avatar-glow: rgba(14, 165, 233, 0.5);
    --avatar-glow-alt: rgba(30, 180, 250, 0.35);
    --loading-ring-color: #d4aa00;
    --loading-circle-color: #b38600;
    --loading-text-color: #333333;
}

/* ==========================
   Global Styles
========================== */
body::before {
    content: "";
    position: fixed;
    top: -20%;
    left: -20%;
    width: 140%;
    height: 140%;
    background: radial-gradient(circle at center,
            rgba(56, 189, 248, 0.05),
            transparent 70%);
    z-index: -1;
}

* {
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    margin: 0;
    overflow-x: hidden;
    transition: all 0.3s ease;
}

html {
    -behavior: smooth;
}

h1, h2, h3, p, a {
    margin: 0;
    padding: 0;
}

a {
    text-decoration: none;
    color: var(--link-color);
}
a:hover {
    text-decoration: underline;
}

/* ==========================
   RTL/LTR Support
========================== */
body[dir="rtl"] {
    direction: rtl;
    text-align: right;
}

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

[lang="fa"] body {
    font-family: 'Vazirmatn', Tahoma, Arial, sans-serif;
    line-height: 1.5;
}

body[lang="en"] {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.5;
}

[lang="en"] #langSwitch {
    font-family: 'Vazirmatn', Tahoma, Arial, sans-serif;
}

/* ==========================
   No Script Screen Styles
========================== */
.noscript-container {
    position: fixed;
    inset: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(8px);
    z-index: 9999;
    padding: 20px;
    box-sizing: border-box;
}

.noscript-box {
    background: #f8d7da;
    color: #721c24;
    padding: 25px 30px;
    border-radius: 10px;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.15);
    max-width: 550px;
    width: 100%;
    text-align: center;
    user-select: none;
}

.noscript-box::before {
    content: "⚠️";
    font-size: 32px;
    display: block;
    margin-bottom: 15px;
}

.noscript-box p {
    margin: 8px 0;
    font-size: 16px;
    line-height: 1.4;
}

.noscript-box strong {
    font-size: 18px;
}

.noscript-box hr {
    border: none;
    border-top: 1.5px solid #721c24;
    margin: 20px 0;
    opacity: 0.4;
}

.noscript-message[dir="rtl"] {
    font-family: 'Vazirmatn', Tahoma, Arial, sans-serif;
}

/* ==========================
   Header & Navbar
========================== */
header {
    position: fixed;
    top: 0;
    width: 100%;
    background-color: var(--header-bg);
    z-index: 50;
}

header.scrolled {
    border-radius: 0 0 1rem 1rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(4px);
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    max-width: 1280px;
    margin: 0 auto;
    padding: .5rem 1rem;
    height: 100%;
    position: relative;
    line-height: 1.5;
}

.nav-link {
    position: relative;
    color: var(--text-color);
    cursor: pointer;
    transition: color 0.3s ease;
    padding: 0.25rem 0.5rem;
    text-decoration: none !important;
    display: block;
}

.nav-link::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 100%;
    height: 2px;
    background-color: var(--accent-color);
    border-radius: 2px;
    transform: translateX(-50%) scaleX(0);
    transform-origin: center;
    transition: transform 0.3s ease;
}

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

.nav-link:hover::after {
    transform: translateX(-50%) scaleX(1);
}

.nav-controls {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

#navMenu {
    display: flex;
    gap: .5rem;
}

#menuToggle {
    color: var(--text-color);
    font-size: 1.5rem;
    cursor: pointer;
}

#menuToggle:hover {
    background-color: var(--link-color);
    color: var(--bg-color);
}

/* ==========================
   Responsive Navbar
========================== */
@media (max-width: 768px) {
    #menuToggle {
        display: flex !important;
    }

    #navMenu {
        display: none;
        position: absolute;
        top: 100%;
        right: 10px;
        left: 10px;
        margin-top: 10px;
        box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
        width: auto;
        background-color: var(--header-bg);
        border-top: 1px solid var(--card-border);
        padding: 1rem 0 1rem 1rem;
        z-index: 100;
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
        overflow: hidden;
        border-radius: 12px;
        transition: all 0.3s ease-in-out;
    }

    #navMenu.active {
        display: flex;
        max-height: 400px;
    }

    .nav-link {
        display: flex;
        text-align: center;
        margin: 0;
        font-size: 1.1rem;
        transition: all 0.3s ease;
    }

    .nav-link:last-child {
        border-bottom: none;
    }

    .nav-controls {
        gap: 0.5rem;
    }

    button {
        padding: 0.5rem;
        min-width: 44px;
        height: 44px;
        align-items: center;
        justify-content: center;
    }
}

@media (min-width: 769px) {
    #navMenu {
        display: flex !important;
        position: static !important;
        max-height: none !important;
    }

    #menuToggle {
        display: none !important;
    }
}
/* ==========================
   Mountain Flag Section
========================== */
.mountain-flag {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    position: relative;
    margin: 0 auto;
    overflow: hidden;
    background: var(--flag-bg);
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 4px solid var(--accent-color);
    box-shadow: 0 0 15px var(--mountain-shadow);
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;  
}
    
.mountain-flag div, .mountain-flag div::after, .mountain-flag div::before {
    position: absolute;
}

.mountain-flag:hover {
    transform: scale(1.05);    
    box-shadow: 0 0 5px var(--avatar-glow), 0 0 15px var(--avatar-glow-alt);
    border-color: var(--avatar-border);    
}
    
.mountain-flag:hover .overlay {
    animation: none;
    opacity: 1;
    backdrop-filter: blur(3px);
    background: rgba(0, 0, 0, 0.2);
}

.mountain-flag:hover #climber-quote {
    transform: scale(1.10);
}

.mountain {
    width: 0;
    height: 0;
    border-left: 100px solid transparent;
    border-right: 100px solid transparent;
    bottom: 0;
    left: 0;
}
.mountain::after, .mountain::before {
    content: "";
    width: 0;
    height: 0;
    border-left: 100px solid transparent;
    border-right: 100px solid transparent;
}
.mountain::after {
    bottom: -170px;
    left: -130px;
}
.mountain::before {
    bottom: -200px;
    left: -50px;
}

.cloud, .cloud2 {
    border-radius: 50%;
}
.cloud {
    width: 36px;
    height: 30px;
    top: 50px;
    left: 110px;
    animation: cloud 20s linear infinite;
}
.cloud::before, .cloud::after {
    content: "";
    position: absolute;
    border-radius: 50%;
}
.cloud::before {
    width: 50px;
    height: 50px;
    bottom: 0;
    left: -25px;
}
.cloud::after {
    width: 40px;
    height: 40px;
    bottom: 0;
    left: 15px;
}
@keyframes cloud {
    0% {
        transform: translateX(-200px);
    }
    100% {
        transform: translateX(200px);
    }
}

.cloud2 {
    width: 18px;
    height: 15px;
    top: 30px;
    left: 125px;
    animation: cloud2 40s linear infinite;
}
.cloud2::before {
    width: 25px;
    height: 25px;
    bottom: 0;
    left: 7px;
}
.cloud2::after {
    width: 20px;
    height: 20px;
    bottom: 0;
    left: -8px;
}
@keyframes cloud2 {
    0% {
        transform: translateX(-300px);
    }
    100% {
        transform: translateX(300px);
    }
}

.flag {
    width: 4px;
    height: 0;
    top: 54px;
    left: calc(50% - 2px);
    animation: pole 10s linear infinite;
}
@keyframes pole {
    0%, 20% {
        height: 0;
        top: 54px;
    }
    30%, 70% {
        height: 30px;
        top: 24px;
    }
    80%, 100% {
        height: 0;
        top: 54px;
    }
}
.flag::before, .flag::after {
    content: "";
    position: absolute;
    top: 0;
}
.flag::before {
    height: 16px;
    width: 0;
    left: 4px;
    animation: flag 10s linear infinite;
}
@keyframes flag {
    30% {
        width: 0;
    }
    35%, 60% {
        width: 10px;
    }
    65%, 100% {
        width: 0;
    }
}
.flag::after {
    left: 8px;
    border-top: 8px solid #e74c3c;
    border-bottom: 8px solid #e74c3c;
    border-right: 0 solid transparent;
    animation: tip 10s linear infinite;
}
@keyframes tip {
    31% {
        border-right: 0 solid transparent;
        left: 8px;
    }
    37%, 58% {
        border-right: 8px solid transparent;
        left: 14px;
    }
    64%, 100% {
        border-right: 0 solid transparent;
        left: 8px;
    }
}

.dash {
    height: 10px;
    width: 3px;
    opacity: 0;
    animation: dash 10s linear infinite;
}
@keyframes dash {
    0%, 1%, 51%, 100% {
        opacity: 0;
    }
    2%, 50% {
        opacity: 1;
    }
}
.dash1 {
    top: 60px;
    left: 100px;
    transform: rotate(-10deg);
    animation-delay: 1.8s;
}
.dash2 {
    top: 74px;
    left: 100px;
    transform: rotate(10deg);
    animation-delay: 1.6s;
}
.dash3 {
    top: 88px;
    left: 96px;
    transform: rotate(20deg);
    animation-delay: 1.4s;
}
.dash4 {
    top: 102px;
    left: 93px;
    transform: rotate(0deg);
    animation-delay: 1.2s;
}
.dash5 {
    top: 116px;
    left: 96px;
    transform: rotate(-20deg);
    animation-delay: 1s;
}
.dash6 {
    top: 130px;
    left: 102px;
    transform: rotate(-30deg);
    animation-delay: 0.8s;
}
.dash7 {
    top: 144px;
    left: 109px;
    transform: rotate(-20deg);
    animation-delay: 0.6s;
}
.dash8 {
    top: 158px;
    left: 112px;
    transform: rotate(-10deg);
    animation-delay: 0.4s;
}
.dash9 {
    top: 172px;
    left: 113px;
    transform: rotate(0deg);
    animation-delay: 0.2s;
}
.dash10 {
    top: 186px;
    left: 112px;
    transform: rotate(10deg);
    animation-delay: 0s;
}

.overlay {
    position: absolute;
    inset: 0;
    backdrop-filter: blur(0);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    /*animation: blurOverlay 10s linear infinite;*/
}

/*@keyframes blurOverlay {
    0%, 40% {
        backdrop-filter: blur(0);
        background: rgba(0, 0, 0, 0);
        opacity: 0;
    }
    41%, 50% {
        backdrop-filter: blur(3px);
        background: rgba(0, 0, 0, 0.2);
        opacity: 1;
    }
    60%, 100% {
        backdrop-filter: blur(0);
        background: rgba(0, 0, 0, 0);
        opacity: 0;
    }
}*/

.flag-scene {
    position: relative;
    width: 200px;
    height: 200px;
    transform-origin: center center;
    transition: transform 0.4s ease;
}

.mountain, .mountain::before, .mountain::after {
    border-bottom: 150px solid var(--mountain-color);
}

.cloud, .cloud2, .cloud::before, .cloud::after, .cloud2::before, .cloud2::after {
    background: var(--cloud-color);
}

.flag {
    background: var(--flag-pole);
}
.flag::before, .flag::after {
    background: var(--flag-flag);
    border-top-color: var(--flag-flag);
    border-bottom-color: var(--flag-flag);
}

.dash {
    background: var(--dash-color);
}

#climber-quote {
    white-space: pre-line;
    transition: transform 2s ease, box-shadow 1s ease;
}

@media (max-width: 768px) {
    .mountain-flag {
        width: 130px;
        height: 130px;
    }
    .flag-scene {
        transform: scale(0.65);
    }
}
    
/* ==========================
   Hero Section
========================== */
#hero {
    height: calc(var(--vh) * 100);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    background: var(--hero-gradient);
    position: relative;
    padding-inline: 1rem;
}

.hero-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 1.2rem;
    padding: 2rem 1rem;
    position: relative;
    z-index: 2;
}

.avatar-wrapper {
  position: relative;
  display: inline-block;
}

#hero-avatar {
  width: 300px;
  height: 300px;
  border-radius: 50%;
  border: 4px solid var(--avatar-border);
  box-shadow: 0 0 15px var(--avatar-glow);
  object-fit: cover;
  display: block;
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

#hero-avatar:hover {
    transform: scale(1.05);
    box-shadow: 0 0 40px var(--avatar-glow), 0 0 60px var(--avatar-glow-alt);
    border-color: var(--avatar-border);
}

.loading-overlay {
  position: absolute;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(4px);
  border-radius: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  opacity: 1;
  transition: opacity 0.6s ease;
}

.loading-ring {
    position: relative;
    width: 300px;
    height: 300px;
    background: transparent;
    border: 3px solid #3c3c3c;
    border-radius: 50%;
    text-align: center;
    font-size: 20px;
    letter-spacing: 4px;
    text-transform: uppercase;
    box-shadow: 0 0 20px rgba(0, 0, 0, .5)
    animation: animate 2s linear infinite;
}

.loading-ring:before {
    content: '';
    position: absolute;
    top: -3px;
    left: -3px;
    width: 100%;
    height: 100%;
    border: 3px solid transparent;
    border-top: 3px solid var(--loading-ring-color);
    border-right: 3px solid var(--loading-ring-color);
    border-radius: 50%;
    animation: animateC 2s linear infinite;
}

.loading-overlay span {
    display: block;
    position: absolute;
    top: calc(50% - 2px);
    left: 50%;
    width: 50%;
    height: 4px;
    background: transparent;
    transform-origin: left;
    animation: animate 2s linear infinite;
}

.loading-overlay span:before {
    content: '';
    position: absolute;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: var(--loading-circle-color);
    top: -6px;
    right: -6px;
    box-shadow: 0 0 20px var(--loading-circle-color);
}

.loading-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: var(--loading-ring-color);
    font-size: 1.2rem;
    font-weight: bold;
    z-index: 10;
    text-align: center;
    width: 100%;
    margin: 0;
    white-space: nowrap;
    pointer-events: none;
}

.avatar-wrapper:not(.loading) .loading-overlay {
  opacity: 0;
  pointer-events: none;
}

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

@keyframes animate {
    0% {
        transform: rotate(45deg);
    }
    100% {
        transform: rotate(405deg);
    }
}
    
#hero-title {
    font-size: 2.3rem;
    font-weight: 700;
}

.hero-layout {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    margin-top: 1rem;
    max-width: 900px;
    width: 100%;
}

#hero-subtitle {
    flex: 1;
    font-size: 1.1rem;
    line-height: 1.8;
    text-align: justify;
    opacity: 0.9;
    max-width: 500px;
}

.scroll-down {
    position: absolute;
    bottom: 10px;
    animation: bounce 2s infinite;
    font-size: 2rem;
    cursor: pointer;
    z-index: 5;
}

.scroll-down i {
    transition: transform 0.3s ease;
}

.scroll-down:hover i {
    transform: translateY(5px);
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(10px);
    }
    60% {
        transform: translateY(5px);
    }
}

@media (max-width: 768px) {
  
  .hero-content {
      gap: 1rem;
      padding: 0rem;
  }
    
  #hero-avatar {
      width: 200px;
      height: 200px;
  }
    
  .loading-ring {
      width: 200px;
      height: 200px;
  }
    
  .loading-text {
      font-size: 1rem;
  }
    
  .hero-layout {
    gap: 1rem;
    margin-top: 0rem;
  }
  
  [lang="fa"] #hero-subtitle {
      font-size: 1.12rem;
      line-height: 1.1;
  }
  
  [lang="en"] #hero-subtitle {
      font-size: 1rem;
      line-height: 1.1;
  }

}

/* ==========================
   Cards (Skills, Projects, Experience)
========================== */
.skill-card, .project-card, .experience-card {
    background-color: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 1rem;
    box-shadow: 0 0 10px var(--shadow-color);
    transition: all 0.3s ease;
    color: var(--text-color);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    overflow: hidden;
    padding: 1rem;
}

.skill-card:hover, .project-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 0 20px rgba(96, 165, 250, 0.4);
    border-color: rgba(147, 197, 253, 0.5);
}

.skill-card {
    align-items: center;
    text-align: center;
}

.skill-card h3 {
    margin: 0.5rem 0;
    font-size: 1.2rem;
    color: var(--text-color);
    font-weight: 600;
}

.experience-card {
    display: grid;
    grid-template-columns: 70px 1fr;
    align-items: center;
    padding: 0rem;
}

#experience {
    padding-bottom: 3rem;
}

.experience-icon {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    to right,
    rgba(255, 255, 255, 0.05),
    rgba(255, 255, 255, 0)
  );
  box-shadow: inset -4px 0 8px rgba(0, 0, 0, 0.2);   
}

.experience-icon i {
  font-size: 2.2rem;
  color: var(--accent-color);
  transition: transform 0.3s ease;
}

.experience-card:hover .experience-icon i {
  transform: scale(1.15);
}

.experience-card:hover {
    border-color: var(--accent-color);
    box-shadow: 0 0 20px var(--shadow-color);
    transform: scale(1.02);
}

.experience-text {
  width: auto;
  height: 100%;
  padding: 1rem .5rem 0rem .5rem;
}

.experience-text h3 {
  margin-bottom: 0.3rem;
}

.experience-text p {
  text-align: justify;
}
/* ==========================
   Section H2 Title
========================== */
.section-title {
    text-align: center;
    margin-top: 3rem;
    margin-bottom: 1.5rem;
    font-size: 2rem;
    font-weight: bold;
    color: var(--text-color);
}

/* ==========================
   Containers (Grid Layouts)
========================== */
#skills-container, #projects-container, #experience-container {
    max-width: 1280px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(1, 1fr);
    gap: 1.5rem;
    padding: 0 1rem;
}

@media (min-width: 768px) {
    #skills-container, #projects-container, #experience-container {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    #skills-container, #projects-container, #experience-container {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* ==========================
   Skill Bars
========================== */
.skill-bar-container {
    width: 100%;
    background-color: rgba(56, 189, 248, 0.1);
    border-radius: 0.5rem;
    height: 20px;
    position: relative;
    overflow: hidden;
    direction: ltr;
    margin-top: 1rem;
}
body[dir="rtl"] .skill-bar-container {
    direction: rtl;
}

.skill-bar-fill {
    height: 100%;
    width: 0;
    border-radius: 0.5rem;
    background-color: var(--accent-color);
    transition: width 1.5s ease-in-out;
}

.skill-percent {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    font-weight: bold;
    font-size: 0.85rem;
    color: var(--text-color);
    inset-inline-end: 8px;
}

/* ==========================
   Project Cards & Slider
========================== */
.project-card {
    position: relative;
    overflow: hidden;
}

.project-slider {
    position: relative;
    width: 100%;
    height: 200px;
    overflow: hidden;
    border-radius: 0.75rem;
}

.project-slider img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: opacity 0.5s ease;
    border-radius: inherit;
}

.project-card h3 {
    margin: 1rem 0 0.5rem 0;
}

.project-card p {
    margin: 0 0 1rem 0;
}

.project-card button {
    margin-top: 0;
}

.project-card button i {
    font-size: 1.5rem;
}

.opacity-0 {
    opacity: 0;
}
.opacity-100 {
    opacity: 1;
}

/* ==========================
   Buttons
========================== */
button {
    cursor: pointer;
    transition: all 0.3s ease;
    background-color: var(--border-color);
    color: var(--text-color);
    border: 0px;
    padding: 0;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    height: 36px;
    min-width: 36px;
    font-size: 1.2rem;
    line-height: 1;
    display: inline-block;
}

button:hover {
    background-color: var(--link-color);
    color: var(--bg-color);
    transform: scale(1.1);
}

/* ==========================
   Font Awesome
========================== */
.skill-card i {
    display: block;
    margin: 0 auto 1rem;
    font-size: 2.5rem;
    color: var(--accent-color);
    transition: all 0.3s ease;
    text-shadow: 0 0 10px rgba(56, 189, 248, 0.3);
}
.skill-card:hover i {
    transform: scale(1.2) rotate(5deg);
    color: var(--link-color);
    text-shadow: 0 0 15px var(--accent-color);
}

/* ==========================
   Inputs & Textareas
========================== */
input, textarea {
    outline: none;
    transition: all 0.3s ease;
    color: var(--text-color);
    background-color: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 0.375rem;
    padding: 0.75rem;
    width: 100%;
}
input:focus, textarea:focus {
    border-color: var(--accent-color);
    box-shadow: 0 0 8px var(--accent-color);
}

/* ==========================
   Footer
========================== */
footer {
    font-size: 0.9rem;
    letter-spacing: 0.5px;
    color: var(--text-color);
    background-color: var(--bg-color);
    text-align: center;
    padding: 1.5rem 1rem;
    user-select: none;
    border-radius: 1rem 1rem 0 0;
    box-shadow: 0 -4px 15px rgba(0, 0, 0, 0.3);
}

.footer-container {
    max-width: 1280px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.footer-left, .footer-center, .footer-right {
    flex: 1 1 0;
    display: flex;
    align-items: center;
}

.footer-center {
    justify-content: center;
}

.footer-right {
    justify-content: flex-start;
    gap: 1rem;
}

.footer-right {
    justify-content: flex-end;
}

/* ==========================
   Footer links buttons (social)
========================== */
.footer-right a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background-color: var(--border-color);
    border-radius: 50%;
    color: var(--text-color);
    box-shadow: 0 0 8px rgba(0, 0, 0, 0.1);
    transition:
        transform 0.3s ease,
        background-color 0.3s ease,
        box-shadow 0.3s ease,
        color 0.3s ease;
    position: relative;
    cursor: pointer;
    text-decoration: none;
}

.footer-right a:hover {
    background-color: var(--link-color);
    color: var(--bg-color);
    transform: scale(1.1);
}

.footer-right a:focus-visible {
    outline: 2px solid var(--accent-color);
    outline-offset: 2px;
}

@media (max-width: 600px) {
    .footer-container {
        flex-direction: column;
        gap: 1rem;
    }

    .footer-left, .footer-center, .footer-right {
        justify-content: center !important;
        flex: unset;
    }
}

/* ==========================
   Landscape Mode (Mobile)
========================== */
@media (max-width: 900px) and (orientation: landscape) {
    #hero {
      flex-direction: row;
      justify-content: center;
      align-items: center;
      height: auto;
      min-height: 100vh;
      padding: 2rem 1rem;
      text-align: center;
    }
  
    .hero-content {
      flex-direction: row;
      flex-wrap: wrap;
      justify-content: center;
      gap: 1.2rem;
    }
  
    #hero-avatar {
      width: 160px;
      height: 160px;
    }
  
    .loading-ring {
      width: 160px;
      height: 160px;
    }
  
    #hero-title {
      font-size: 1.6rem;
    }
  
    #hero-subtitle {
      font-size: 0.9rem;
      max-width: 400px;
      line-height: 1.4;
      text-align: justify;
    }
  
    .hero-layout {
      flex-direction: row;
      gap: 1rem;
      margin-top: 0;
    }
  
    .scroll-down {
      display: none;
    }
}
