:root {
  --onyx: #0d0d0d;
  --walnut: #592816;
  --taupe: #cca097;
  --offwhite: #f5f3f1;
  --yellow: #E5A93C;
  --white: #ffffff;
}

/* Dark Mode (default) */
[data-theme="dark"] {
  --bg-primary: var(--onyx);
  --bg-secondary: var(--walnut);
  --surface: var(--taupe);
  --text-primary: var(--offwhite);
  --text-secondary: #cccccc;
  --text-accent: var(--taupe);
  --button-primary: var(--offwhite);
}

/* Light Mode */
[data-theme="light"] {
  --bg-primary: var(--offwhite);
  --bg-secondary: #d4b5ad; /* Lightened taupe */
  --surface: #ffffff;
  --text-primary: var(--onyx);
  --text-secondary: var(--white);
  --text-accent: var(--yellow);
  --button-primary: var(--yellow);
}

body {
  margin: 0;
  padding: 0;
  font-family: "Bai Jamjuree", sans-serif;
  background-color: var(--bg-primary);
  color: var(--text-primary);
  transition: background-color 0.3s ease, color 0.3s ease;
}

.nav {
  /* Fixed positioning for sticky header effect */
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  margin: 0 20px;
  padding: 10px;
  border-radius: 20px;
  box-shadow: 0 2px 5px rgba(255, 1, 1, 0.1);
  background-color: var(--surface);
  transition: all 0.3s ease;
}

.nav.expanded {
  padding-bottom: 24px;
}

.nbar {
  margin: 0;
  padding: 0;
  position: relative;
}

.nav-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px;
}

/* Theme Toggle Button */
.theme-toggle {
  background: transparent;
  border: 2px solid var(--text-primary);
  border-radius: 50%;
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  margin-left: auto; 
  padding: 0;
}

.theme-toggle:hover {
  background-color: var(--text-primary);
  transform: rotate(20deg);
}

.theme-toggle:hover svg {
  color: var(--surface);
}

.theme-toggle svg {
  color: var(--text-primary);
  transition: all 0.3s ease;
}

.sun-icon {
  display: none;
}

.moon-icon {
  display: block;
}

[data-theme="light"] .sun-icon {
  display: block;
}

[data-theme="light"] .moon-icon {
  display: none;
}

.icon-hamburger,
.icon-close {
    width: 20px;
    height: 20px;
    padding: 10px;
    cursor: pointer;
    transition: opacity 0.3s ease;
    filter: var(--icon-filter);
    position: absolute;
}

.icon-hamburger {
  display: block;
}

.icon-close {
  display: none;
}

.icon-hamburger:hover,
.icon-close:hover {
  background-color: var(--offwhite);
  border-radius: 10px;
}

.nav.expanded .icon-hamburger {
  display: none;
}

.nav.expanded .icon-close {
  display: block;
}

.nav-links{
  display: none; /* Hide by default */
  flex-direction: column;
  justify-content: left;
  gap: 12px;
  padding: 18px 2px;
}

.nav-links.active {
  display: flex; /* Show when active */
}

.nav-links a {
  text-decoration: none;
  cursor: pointer;
  font-size: 18px;
  color: var(--text-primary);
  padding: 8px;
  border-radius: 8px;
  transition: background-color 0.2s ease;
}

.nav-links a:hover {
  background-color: var(--offwhite);
  color: var(--surface);
}



/* HERO SECTION (index.html) */

.hero-section {
  background-image: url('Images/ranurte.jpg');
  position: relative;
  width: 100%;
  max-width: 100%;
  height: 100vh;
  object-fit: cover;
  background-size: cover;
  background-position: center; 
  background-repeat: no-repeat;
}

.content-wrapper {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding-bottom: 5rem;
  z-index: 2;
}

.overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  background-color: rgba(0, 0, 0, 0.4); /* Dark overlay */
}

.content {
  width: 90%;
  max-width: 1200px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--offwhite);
}

.description{
  margin: 0;
  padding: 0;
  text-align: left;
}

.drop-in{
  margin: 0;
  padding: 0;
  font-size: 35px;
}

.description p{
  font-size: 12px;
}

/* Keyframe animation for hero text entry */
.drop-in {
  opacity: 0;
  transform: translateY(-50px);
  animation: dropIn 1s ease-out forwards;
}

@keyframes dropIn {
  to {
      opacity: 1;
      transform: translateY(0);
  }
}

.s-icons{
  display: flex;
  flex-direction: column;
  gap: 20px;
  flex-shrink: 0;
  margin-right: 20px;
  justify-content: center;
}

.social-icons {
  display: block;
  width: 25px;
  height: auto;
  max-width: 100%;
}

.social-icons:hover{
  transform: translateY(-3px) scale(1.1);
}

.it-container{
  margin: 70px 20px 0 20px;
}

/* Stylish Backend IT Berries Widget Container */
.it-berry-card {
    background: linear-gradient(145deg, #16100d 0%, #0d0a08 100%);
    border: 1px solid rgba(204, 160, 151, 0.2);
    border-radius: 16px;
    padding: 35px;
    max-width: 900px;
    margin: 0 auto;
    box-shadow: 0 15px 35px rgba(0,0,0,0.4);
    position: relative;
}

.it-berry-header {
    display: flex;
    justify-content: space-between;
    font-size: 11px;
    letter-spacing: 2px;
    color: var(--text-accent);
    text-transform: uppercase;
    margin-bottom: 15px;
    border-bottom: 1px solid rgba(255,255,255,0.06);
    padding-bottom: 10px;
}

#berry-title {
    font-size: 1.5rem;
    color: var(--offwhite);
    margin: 0 0 15px 0;
    font-weight: 700;
}

#berry-excerpt {
    font-size: 14px;
    line-height: 1.8;
    color: var(--text-secondary);
    margin-bottom: 25px;
    max-height: 280px; /* Equivalent to roughly 15 lines */
    overflow: hidden;
    text-align: left;
}

.it-berry-preview-box {
    background: rgba(0, 0, 0, 0.3);
    border-left: 3px solid var(--text-accent);
    padding: 15px;
    margin-bottom: 25px;
    border-radius: 4px;
}

#berry-body-preview {
    font-size: 13.5px;
    line-height: 1.7;
    color: var(--text-secondary);
    margin: 0;
    max-height: 180px; /* ~10-15 lines preview */
    overflow: hidden;
    text-align: left;
}

.it-berry-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid rgba(255,255,255,0.06);
    padding-top: 20px;
}

.read-more-btn {
    color: var(--text-accent);
    font-weight: bold;
    font-size: 13px;
    text-decoration: none;
    letter-spacing: 0.5px;
}

@media (max-width: 375px) {
  .read-more-btn {
    font-size: 7px;
  }
}

@media (min-width: 425px) {
  .read-more-btn {
    font-size: 10px;
  }
}

.read-more-btn:hover {
    text-decoration: underline;
}

.shuffle-action-btn {
    background: transparent;
    border-left: 1px solid rgba(255, 255, 255, 0.2);
    border-right: 1px solid rgba(255, 255, 255, 0.2);
    border-top: transparent;
    border-bottom: transparent;
    color: var(--button-primary);
    padding: 8px 14px;
    border-radius: 6px;
    font-family: inherit;
    font-size: 11px;
    font-weight: bold;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.2s ease;
}

@media (max-width: 375px) {
  .shuffle-action-btn {
    font-size: 7px;
  }
}

@media (min-width: 425px) {
  .shuffle-action-btn {
    font-size: 10px;
  }
}

.shuffle-action-btn:hover {
    border-color: var(--text-accent);
    color: var(--text-accent);
}

.flex-more{
  display: flex;
  flex-direction: row;
  justify-content: center;
  margin: 50px 0;
  gap: 10px;
  cursor: pointer;
}

.line-1{
  border-left: 3px solid var(--text-primary);
  width: 30px;
  height: 30px;
}

.flex-more a{
  text-decoration: none;
  margin: 0;
  padding-top: 5px;
  color: var(--text-primary);
}

.line-2{
  border-right: 3px solid var(--text-primary);
  width: 30px;
  height: 30px;
}



/* ABOUT SECTION */

.about-section{
  margin: 100px 20px 0 20px;
  padding: 0 20px;
}

a{
  text-decoration: none;
}

.About{
  text-align: center;
}

.design-about{
  border: 8px solid var(--text-primary);
  border-radius: 5px;
  width: 160px;
  height: 50px;
  display: flex;
  justify-content: center;
  justify-items: center;
  align-items: center;
  margin: 0 auto 30px auto;
}

.design-about h2{
  text-align: center;
  font-size: 15px;
  text-transform: uppercase;
  color: var(--text-primary);
  letter-spacing: 5px;
}

.About p {
  text-align: justify;
  font-size: 15px;
  color: var(--text-primary);
  line-height: 1.5;
}

.flex-more2{
  display: flex;
  flex-direction: row;
  justify-content: center;
  margin: 50px 0;
  gap: 10px;
  cursor: pointer;
}

.flex-more2 p{
  text-decoration: none;
  margin: 0;
  padding-top: 5px;
  color: var(--text-primary);
}

.design1{
  margin: 70px 20px 100px 20px;
}

.design2{
  display: flex;
  flex-direction: row;
  justify-content: center;
  margin: 50px 0;
  gap: 10px;
}

.line-3{
  border-bottom: 3px solid var(--text-primary);
  width: 30px;
  height: 30px;
}

.slanted{
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 2px;
  margin: 0;
  padding: 0;
}

.slanted div {
  width: 10px;   /* key fix */
  height: 10px;  /* makes them shorter */
  margin-top: auto;
}

.line-4{
  border-left: 3px solid var(--text-primary);
  transform: rotate(-25deg);
}

.line-5{
  border-left: 3px solid var(--text-primary);
  transform: rotate(-25deg);
}

.line-6{
  border-left: 3px solid var(--text-primary);
  border-bottom: 3px solid var(--text-primary);
  transform: rotate(-45deg);
  height: 26px;
}

.line-7{
  border-right: 3px solid var(--text-primary);
  transform: rotate(25deg);
}

.line-8{
  border-right: 3px solid var(--text-primary);
  transform: rotate(25deg);
}

.line-9{
  border-bottom: 3px solid var(--text-primary);
  width: 30px;
  height: 30px;
}

.design-container{
  margin: 50px 0 70px 0;
}

.flex-img-h {
  display: flex;
  flex-direction: row;
  flex-shrink: 0;
}

.image-x{
  width: 30px;
  max-width: 100%;
  display: block;
  height: auto;
  margin-left: -30px;
}

.flex-img-h h2{
  font-size: 18px;
}

.design-container p{
  text-align: justify;
  font-size: 15px;
  color: var(--text-primary);
  line-height: 1.5;
}

.fog-item {
  /* Initial state for Intersection Observer animation */
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.fog-item.visible {
  opacity: 1;
  transform: translateY(0);
}

.skills-container {
  max-width: 1200px;
  margin: 0 auto;
}

.skills-container h2{
  text-align: center;
  letter-spacing: 5px;
  margin: 40px 0;
}

.language {
  position: relative;
  overflow: hidden;
  height: 400px;
  display: flex;
  flex-direction: column;
  padding: 20px 0;
  margin: 0 auto 100px auto;
  max-width: 100%;
  width: 100%;
}

.language-scroll {
  display: flex;
  flex-direction: column;
  animation: scroll-y 15s linear infinite;
}

.mobile-version .language-scroll {
  animation: scroll-y 15s linear infinite;
}

@keyframes scroll-y {
  from { transform: translateY(0); }
  to   { transform: translateY(-50%); }
}

.img-z {
  width: 70px;
  max-width: 100%;
  display: block;
  height: auto;
}

.flex-textimg {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  margin-bottom: 30px;
  flex-shrink: 0;
}

.flex-textimg h5 {
  margin-top: 15px;
  letter-spacing: 1px;
  font-size: 14px;
}


/* --- BESPOKE EDITORIAL PROJECTS SECTION --- */

.projects-page {
  background-color: var(--bg-primary);
  min-height: 100vh;
  padding-top: 100px; /* Provides top offset so header doesn't overlap */
  padding-bottom: 80px;
}

/* Ensure mobile header offset is clear */
@media (max-width: 1023px) {
  .projects-page {
    padding-top: 110px;
  }
}

.project-backg {
  justify-content: center;
  text-align: center;
}

/* --- 1. PORTFOLIO Banner Corner Splashes --- */

.design-about2 {
  position: relative;
  border: none; /* Removed the outer box border */
  background: transparent;
  width: auto;
  height: auto;
  display: inline-block;
  margin: 30px auto 20px auto;
  padding: 10px 25px;
  text-align: center;
}

.design-about2 h2 {
  font-family: inherit;
  font-size: 2rem;
  font-weight: 800;
  text-transform: uppercase;
  color: var(--text-primary);
  letter-spacing: 6px;
  margin: 0;
  position: relative;
  z-index: 2;
}

/* --- Top-Left Edge: Double Paint Splashes (Mustard & Terracotta) --- */
.design-about2::before {
  content: '';
  position: absolute;
  top: -6px;
  left: -8px;
  width: 22px;
  height: 22px;
  background-color: #E5A93C; /* Primary Mustard Splash */
  z-index: 1;
  /* Organic fluid splash shape using rounded border-radius variations */
  border-radius: 40% 60% 70% 30% / 40% 50% 60% 50%;
  /* Creates the second smaller drop splash directly adjacent */
  box-shadow: -10px 6px 0 -3px #9E2A2B, -4px -8px 0 -4px #E5A93C;
  transform: rotate(-12deg);
}

/* --- Bottom-Right Edge: Double Paint Splashes (Crimson & Mustard) --- */
.design-about2::after {
  content: '';
  position: absolute;
  bottom: -6px;
  right: -8px;
  width: 22px;
  height: 22px;
  background-color: #9E2A2B; /* Primary Crimson Splash */
  z-index: 1;
  /* Organic fluid splash shape */
  border-radius: 60% 40% 30% 70% / 50% 60% 40% 60%;
  /* Creates the second smaller drop splash directly adjacent */
  box-shadow: 10px -6px 0 -3px #E5A93C, 5px 8px 0 -4px #9E2A2B;
  transform: rotate(15deg);
}

/* Project Filters Styling */
.project-filters {
  display: flex;
  flex-direction: column;
  gap: 12px;
  justify-content: center;
  align-items: center;
  margin: 60px 20px;
}

.flex-filters1, .flex-filters2 {
  display: flex;
  flex-direction: row;
  gap: 12px;
}

.project-filters button {
  border: 1px solid rgba(255, 255, 255, 0.1);
  width: 140px;
  height: 46px;
  border-radius: 8px;
  color: var(--text-primary);
  background-color: var(--surface);
  cursor: pointer;
  font-size: 13px;
  font-family: inherit;
  font-weight: 600;
  transition: all 0.3s ease;
}

.project-filters button:hover {
  border-color: var(--text-accent);
  color: var(--button-primary);
  transform: translateY(-2px);
}

.project-filters button.active {
  background-color: var(--text-primary);
  color: var(--bg-primary);
  border-color: var(--text-primary);
}

/* Projects Grid with 3D Perspective */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 40px;
  max-width: 1200px;
  margin: 60px auto 40px auto;
  padding: 0 20px;
  perspective: 1600px;
}

/* --- The Dark Brown Artistic Project Card --- */
.project-card {
  position: relative;
  background: linear-gradient(145deg, #2b1b17 0%, #1c110e 100%); /* Rich deep dark brown */
  border: 1px solid rgba(204, 160, 151, 0.15);
  border-radius: 20px;
  padding: 30px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3), 
              inset 0 1px 0 rgba(255, 255, 255, 0.08);
  transform-style: preserve-3d;
  transform-origin: center center;
  transition: transform 0.15s ease-out, box-shadow 0.3s ease, border-color 0.3s ease;
  will-change: transform;
}

.project-card:hover {
  border-color: rgba(204, 160, 151, 0.4);
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.4),
              0 0 25px rgba(204, 160, 151, 0.1);
}

.card-inner {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  height: 100%;
}

/* Card Header Top: Number & Badges */
.card-header-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  transform: translateZ(20px);
}

.project-number {
  font-family: serif;
  font-size: 1.25rem;
  font-weight: 700;
  color: #cca097; /* Accent taupe tone */
  opacity: 0.8;
}

.tech-badges {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.tech-badges span {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #f5f3f1;
  border-radius: 6px;
  padding: 3px 8px;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.5px;
}

/* Restructured Text Hierarchy */
.card-text-block {
  margin-bottom: 25px;
  transform: translateZ(25px);
}

/* --- ARTISTIC TOUCH 1: Title Highlight Paint Splash --- */
.project-title {
  position: relative;
  display: inline-block;
  color: #f5f3f1;
  font-size: 1.4rem;
  font-weight: 700;
  margin: 0 0 12px 0;
  letter-spacing: -0.5px;
  z-index: 2;
}

/* Vibrant artistic highlight swatch behind title */
.project-title::after {
  content: '';
  position: absolute;
  bottom: 2px;
  left: -4px;
  width: 102%;
  height: 8px;
  background-color: #E5A93C; /* Solid Mustard Yellow */
  opacity: 0.85;
  border-radius: 2px;
  z-index: -1;
  transform: rotate(-1deg);
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.project-card:hover .project-title::after {
  opacity: 1;
  transform: rotate(0deg) scaleX(1.04);
}

.project-desc {
  font-size: 13.5px;
  line-height: 1.6;
  color: #d1c5c1;
  margin: 0;
  text-align: left;
}

/* --- Compact Image Container with Artistic Color Splashes --- */
.card-visual-wrapper {
  position: relative;
  width: 100%;
  margin-bottom: 25px;
  display: flex;
  justify-content: center;
  align-items: center;
  transform: translateZ(35px);
}

/* Vibrant Artistic Color Splash Behind Image */
.color-splash {
  position: absolute;
  width: 75%;
  height: 75%;
  background: radial-gradient(circle, rgba(255, 107, 107, 0.35) 0%, rgba(78, 205, 196, 0.25) 50%, rgba(255, 230, 109, 0.15) 100%);
  filter: blur(35px);
  z-index: 1;
  pointer-events: none;
  border-radius: 50%;
  opacity: 0.7;
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.project-card:hover .color-splash {
  opacity: 1;
  transform: scale(1.1);
}

/* Compact Image Styling */
.img-project {
  position: relative;
  z-index: 2;
  width: 75%; /* Makes the image compact as requested */
  max-width: 100%;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
  transition: transform 0.3s ease;
}

.project-card:hover .img-project {
  transform: scale(1.03);
}

/* --- ARTISTIC TOUCH 2: Colorful Edges on GITHUB / LIVE DEMO --- */
.links {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 15px;
  margin-top: auto;
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  transform: translateZ(30px);
}

.links a {
  text-decoration: none;
  margin: 0;
  color: #f5f3f1;
  font-weight: bold;
  transition: color 0.3s;
  cursor: pointer;
}

.links a:hover {
  color: #cca097;
}

.flex-more3 {
  position: relative;
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.03);
  transition: all 0.3s ease;
}

.flex-more3 p {
  margin: 0;
  padding: 0;
  color: #f5f3f1;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1px;
}

/* Vibrant edge splashes for action buttons */
.links a:nth-child(1) .flex-more3 {
  border-left: 4px solid #E5A93C; /* Solid Mustard left border */
  box-shadow: -4px 0 12px rgba(229, 169, 60, 0.15);
}

.links a:nth-child(2) .flex-more3 {
  border-right: 4px solid #9E2A2B; /* Solid Crimson right border */
  box-shadow: 4px 0 12px rgba(158, 42, 43, 0.15);
}

.flex-more3:hover {
  background: rgba(255, 255, 255, 0.08);
  transform: translateY(-2px);
}

.line-10, .line-11 {
  display: none; /* Replaced by sleek color-bordered badges */
}

.line-10 {
  border-left: 2px solid #cca097;
  width: 12px;
  height: 12px;
  margin: 0;
  padding: 0;
}

.line-11 {
  border-right: 2px solid #cca097;
  width: 12px;
  height: 12px;
  margin: 0;
  padding: 0;
}



/* CONTACT FORM SECTION (index.html) */

.contact-section{
  margin: 100px 0 0 0;
  padding: 0 20px;
  text-align: center;
}

.contact-container{
  margin: 50px 20px 0 20px;
  text-align: center;
  justify-content: center;
  display: flex;
  flex-direction: column;
  gap: 50px;
}

.contact-container a:hover{
  opacity: 0.5;
}

.con-act {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  text-decoration: none;
  color: inherit; 
  cursor: pointer;
  color: var(--text-primary);
}

.con-act h2{
  text-align: center;
  font-size: 15px;
  color: var(--text-primary);
  margin-top: 0;
  margin-bottom: 0;
}

.con-act span{
  margin-top: 0;
  color: var(--text-accent);
}

.con-act:hover {
  opacity: 0.8;
  color: black;
}

.contact-form{
  padding: 0;
  margin: 0;
}

.FRM {
  border: 1px solid transparent;
  margin-top: 150px;
  padding-bottom: 20px;
  background-color: var(--bg-primary);
  color: var(--text-primary);
  display: flex;
  gap: 8px;
  flex-direction: column;
}

.label-names label{
  display: flex;
  justify-content: center;
  margin-bottom: 10px;
}

.label-names input,
.label-names textarea {
  padding: 12px;
  margin-bottom: 15px;
  width: 80%;
  max-width: 320px;
  resize: none;
  
  /* Use theme surface or card background so inputs stand out nicely in dark mode */
  background-color: var(--surface, #16100d);
  color: var(--text-primary);
  font-family: inherit;
  font-size: 14px;

  /* Explicit editorial corner edge borders */
  border: none;
  border-left: 4px solid var(--text-accent);
  border-bottom: 4px solid var(--text-accent);

  box-sizing: border-box;
  transition: background-color 0.3s ease, border-color 0.3s ease;
}

/* Remove focus border + glow */
.label-names input::placeholder,
.label-names textarea::placeholder {
  color: var(--text-secondary);
  opacity: 0.7;
}

/* Clear focus highlight */
.label-names input:focus,
.label-names textarea:focus {
  outline: none;
  border-color: var(--text-primary);
  background-color: rgba(255, 255, 255, 0.03);
}

.FRM textarea {
  height: 100px; 
}

.FRM button {
  padding: 8px 16px;
  background-color: var(--bg-primary);
  cursor: pointer;
  font-weight: bold;
  width: 150px;
  height: 36px;
  font-size: 12px;
  color: var(--text-primary);
  margin: 20px auto 10px auto;
  border: 1px solid transparent;
  border-left: 2px solid var(--text-secondary);
  border-right: 2px solid var(--text-secondary);
  transition: all 0.3s;
}

.FRM button:hover {
  color: var(--text-accent);
}

.mobile-version {
  display: block !important;
}

.desktop-version {
  display: none !important;
}

/* FOOTER STYLES */

footer {
  padding: 30px 0 50px 0;
  background-color: var(--onyx);
  color: var(--lightgray);
}

.footer-text{
  margin: 0;
  padding: 20px 0 0 0;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
}

.footer-text p{
  font-size: 14px;
  color: var(--text-secondary);
}

.footer-socials {
  display: flex;
  justify-content: center;
  gap: 50px;
  align-items: center;
  cursor: pointer;
}

.img-t {
  width: 24px;
  height: 24px;
  transition: transform 0.3s;
}

.img-t:hover {
  transform: translateY(-3px) scale(1.1);
}


/* THANK YOU PAGE STYLES (thankyou.html) */
.Thank-you {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
}

.Thank-you p{
  font-size: 80px;
  text-align: center;
  margin-top: 150px;
  margin-bottom: 0;
  padding-bottom: 0;
}

.Thank-you span{
  margin-top: 0;
  padding-top: 0;
}


/* MEDIA QUERY */

@media (min-width: 520px){
  .drop-in {
    font-size: 40px;
  }

  .description p{
    font-size: 15px;
  }
}

@media (min-width: 1024px) {
  
  .mobile-version {
      display: none !important;
  }

  .desktop-version {
      display: block !important;
  }

  body {
    margin: 0;
    padding: 0;
  }

  .nav3 {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: 0 20px;
    flex-wrap: nowrap;
  }
  
  .nav-links1 {
    display: flex;
    align-items: center;
    gap: 40px;
    padding: 20px;
    white-space: nowrap;
  }
  
  .nav-links1 a {
    text-decoration: none;
    color: var(--text-primary);
    display: flex;
    align-items: center;
  }
  
  .nav-links1 .cont {
    background-color: var(--onyx);
    color: var(--offwhite);
    padding: 0 20px;
    height: 30px;
    border-radius: 20px;
  }

  .cont:hover {
    background-color: var(--text-primary);
    color: var(--surface);
  }
  
  .theme-toggle {
    background: transparent;
    border: 2px solid var(--text-primary);
    border-radius: 50%;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
  }

  .content-wrapper {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding-bottom: 5rem;
    z-index: 2;
  }

  .content {
    width: 90%;
    max-width: 1200px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--offwhite);
  }
  
  .description{
    margin: 0;
    padding: 0;
    text-align: left;
  }

  .drop-in {
    font-size: 50px;
  }

  .description p{
    font-size: 15px;
  }

  .it-container{
    margin: 70px 20px 0 20px;
  }
  
  .IT{
    text-align: left;
  }

  .flex-more{
    justify-content: left;
  }

  .it-container{
    padding: 0 20px;
  }

  .about-section{
    margin: 60px 20px 0 20px;
    max-width: 2000px;
  }

  .About p{
    padding: 20px 100px 0 100px;
  }

  .design-about{
    border: 4px solid var(--text-primary);
    width: 200px;
  }

  .design-container{
    max-width: 400px;
  }

  .grid{
    display: flex;
    flex-direction: row;
    padding: 0 100px;
    gap: 100px;
    justify-content: center;
  }

  .desktop-align{
    display: flex;
    justify-content: center;
    align-items: center;
  }
  
  .skills-container h2{
    text-align: left;
  }

  .desktop-version .language-scroll {
    flex-direction: row;
    gap: 150px;
    animation: scroll-x 20s linear infinite;
    width: max-content;
}

.language-row {
    display: grid;
    grid-template-columns: repeat(2, 2, 2, 2);
    gap: 60px;
    min-width: auto;
}

.language-row2 {
    display: grid;
    grid-template-columns: repeat(4, auto);
    gap: 150px;
    min-width: auto;
}

@keyframes scroll-x {
    from { transform: translateX(0); }
    to { transform: translateX(-50%); }
}

.contact-section{
  margin: 60px 20px 0 20px;
  max-width: 2000px;
}


}