:root {
  --clr-bg-dark: #0a0a0a;
  --clr-bg-light: #1e1e1e;
  --clr-white: #e5e5e5;
  --clr-grey: #999999;
  --clr-accent: #6c3d9e;
  --accent-hover-dark: #5a3282;
  --accent-hover-light: #8a56b8;
  --secondary-hover-bg-dark: rgba(108, 61, 158, 0.1);
  --secondary-hover-bg-light: rgba(108, 61, 158, 0.05);

  --clr-text-dark: #111111;
  --clr-text-light: #f4f4f4;
  --clr-text: var(--clr-text-light); 

  --border-color-dark: rgba(255, 255, 255, 0.2);
  --border-color-light: rgba(0, 0, 0, 0.2); 
  --clr-success: #61b752;

  --ff-main: 'Poppins', Arial, Helvetica, sans-serif;

  --fz-small: 14px;
  --fz-medium: 16px;
  --fz-large: 18px;
  --fz-xl: 22px;
  --fz-xxl: 32px;
  --fz-title: 50px;

  --transition: 0.5s ease;
  --border-radius: 10px;
}

/* Optional Dark Theme CSS for contact form */
:root[data-theme="dark"] input,
:root[data-theme="dark"] textarea {
  background-color: #1a1a1a;  /* slightly lighter than bg for contrast */
  color: #f4f4f4;             /* light text */
  border: 1px solid #444;     /* subtle but visible border */
}

:root[data-theme="dark"] input:focus,
:root[data-theme="dark"] textarea:focus {
  border-color: var(--clr-accent);
  outline: none;
  background-color: #222;
}

:root[data-theme="dark"] ::placeholder {
  color: #888;
  opacity: 1;
}


/* Light Theme Styling */
:root[data-theme="light"] {
  --clr-bg-dark: #e9ebee;
  --clr-bg-light: #ffffff;
  --clr-white: #111111;
  --clr-grey: #666666;
  --clr-accent: #6c3d9e;
  --clr-success: #3d994f;
  --clr-text: var(--clr-text-dark);
}

/* Optional Light Theme CSS for contact form */
:root[data-theme="light"] input,
:root[data-theme="light"] textarea {
  background-color: #f0f0f0; /* light gray background */
  color: #111;               /* dark text */
  border: 1px solid #ccc;    /* subtle border */
}

/* Optional: improve focus state */
:root[data-theme="light"] input:focus,
:root[data-theme="light"] textarea:focus {
  border-color: var(--clr-accent);
  outline: none;
  background-color: #e8e8e8;
}

/* Placeholder styling */
:root[data-theme="light"] ::placeholder {
  color: #777;  /* slightly darker gray for readability */
  opacity: 1;   /* ensure visibility */
}

/* Smooth transitions on background and color */
body,
section,
nav,
header,
footer,
article,
input,
textarea,
button {
  transition: background-color var(--transition), color var(--transition), border-color var(--transition);
}


/*-------------------------- Global Styles -------------------------*/
* {
  margin: 0;
  padding: 0;
  font-family: var(--ff-main);
  box-sizing: border-box;
}

#theme-toggle {
  outline: none;
  box-shadow: none;
}

#theme-toggle:focus {
  outline: none;
  box-shadow: none;
}


html {
  scroll-behavior: smooth;
}

body {
  background: var(--clr-bg-dark);
  color: var(--clr-white);
}

/*-------------------------- Header / Hero -------------------------*/
header {
  display: block;
  width: 100%;
  padding-top: 10px;
 /*background-image: url();*/
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  position: relative;
  overflow: hidden;
}



.container {
  max-width: 1440px;
  margin-left: auto;
  margin-right: auto;
  padding: 0px 40px;
}

/* =====================================================
   Hero Section - Entry Animations for Text
   (Applies smooth slide-up + fade-in animation to:
    1. Intro Paragraph
    2. Name/Heading
    3. Dynamic Rotating Roles)
====================================================== */

/* Base styles for animation entry (shared by all) */
.header-text p,
.header-text h1,
.dynamic-roles {
  opacity: 0;                        /* Start invisible */
  transform: translateY(30px);       /* Start 30px lower */
  animation: slideIn 0.8s ease-out forwards;
  /* slideIn = keyframe name (defined below)
     0.8s = duration
     ease-out = easing for smooth finish
     forwards = maintain final state after animation */
}

/* Left-side text */
.header-text {
  flex: 1 1 500px;
  padding: 0 60px;
  font-size: var(--fz-xxl);
  position: relative;
  z-index: 1;
}

/* Entry delay for intro paragraph (e.g., "Hello,") */
.header-text p {
  animation-delay: 0.2s;
  font-size: clamp(1.5rem, 4vw, var(--fz-xxl)); /* ~32px max */
}

/* Entry delay for main name heading (e.g., "I'm Shuno Lolo") */
.header-text h1 {
  animation-delay: 0.4s;
  font-size: clamp(2.5rem, 6vw, var(--fz-title)); /* ~50px max */
   margin: 10px 0 20px; 
}

/* Entry delay and setup for rotating roles (e.g., "I design websites.") */
.dynamic-roles {
  animation-delay: 0.6s;

  /* Retain dynamic roles structure */
  position: relative;
  height: 3.5rem;
  margin-top: 1rem;
  margin-bottom: 1.5rem;
  overflow: hidden;
  text-align: left;
}

/* Layout container to hold text and image side by side */
.hero-flex {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap; /* stacks on smaller screens */
  gap: 3rem;
  min-height: 100vh;
  padding: 60px 10px;             /* ✅ Top/bottom breathing space */
  margin-top: 30px;
  box-sizing: border-box;
}

/* Right-side image block */
.hero-image {
  flex: 1 1 320px;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
}


/* Circle frame & profile image */
.profile-wrapper {
  position: relative;
  width: clamp(300px, 38vw, 480px);
  height: clamp(300px, 38vw, 480px);
  display: flex;
  align-items: center;
  justify-content: center;
}

.profile-frame {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  overflow: hidden;
  border: 8px solid var(--clr-accent);
  
  /* ✨ Gradient border effect */
  background: linear-gradient(145deg, var(--clr-accent), #6c3d9e, var(--clr-accent));
  padding: 6px;

  /* 👇 Inner white frame to center image */
  display: flex;
  align-items: center;
  justify-content: center;

  box-shadow:
    0 0 20px rgba(255, 125, 74, 0.5),        /* Soft glow */
    0 0 0 10px rgba(255, 255, 255, 0.04);    /* Inner ring (faint) */
    transition: transform 0.3s ease;
}

@keyframes zoomFadeIn {
  0% {
    transform: scale(0.85);
    opacity: 0;
  }
  100% {
    transform: scale(1);
    opacity: 1;
  }
}

.profile-frame:hover {
  transform: scale(1.03);
}

.profile-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: 50%;
  border: 4px solid #fff; /* Inner white ring */
  box-shadow: 0 4px 12px rgba(0,0,0,0.15); /* Optional depth */
}

@keyframes pulseGlow {
  0%, 100% {
    box-shadow: 0 0 20px rgba(255, 120, 90, 0.3);
  }
  50% {
    box-shadow: 0 0 30px rgba(255, 120, 90, 0.5);
  }
}

.profile-frame {
  animation: pulseGlow 4s ease-in-out infinite;
}

/* -----------------------------
   Call-to-Action Button Style
   ----------------------------- */
.cta-btn {
  display: inline-block;
  margin-top: 1.5rem;
  padding: 14px 32px;
  font-size: 1.1rem;
  font-weight: 500;
  color: #fff;
  background-color: var(--clr-accent); /* Brand accent color */
  text-decoration: none;
  border: none;
  border-radius: 8px;
  transition: all 0.3s ease;
  cursor: pointer;

  /* Animation on load */
  opacity: 0;
  transform: translateY(30px);
  animation: slideIn 0.8s ease-out forwards;
  animation-delay: 0.8s; /* Delayed to follow dynamic text */
}

/* On hover: lighten background slightly */
.cta-btn:hover {
  background-color: var(--accent-hover-dark); /* optional fallback */
  transform: translateY(25px); /* slight lift on hover */
  box-shadow: 0 6px 20px rgba(0,0,0,0.15);
}

/* On hover: Optional light theme cta button override */
[data-theme="light"] .cta-btn {
  /* Uncomment these lines in future if needed */
    background-color: #6c3d9e;
    color: #fff; 
}
/* Consistent hover behavior in light mode */
[data-theme="light"] .cta-btn:hover {
  background-color: var(--accent-hover-light); /* Matches dark theme hover color */
}


/* ---------------------------------------------
   KEYFRAMES: slideIn Animation
   (Fades in & moves element upward smoothly)
---------------------------------------------- */
@keyframes slideIn {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.header-text h1 {
  font-size: clamp(2.5rem, 6vw, var(--fz-title));
  margin: 10px 0 20px;
}

/* -------------------------------------
   Dynamic Roles Wrapper (holds rotating text)
-------------------------------------- */
.dynamic-roles {
  position: relative; /* Needed to position inner .role-text absolutely */
  height: 3.5rem;      /* Adjusts vertical space reserved for dynamic text */
  margin-top: 1rem;    /* Space between this and the element above (like your name) */
  margin-bottom: 1.5rem; /* Adds breathing room from elements below like images */
  overflow: hidden;    /* Hides non-active (fading out) text */
  text-align: left;    /* Aligns text left to match h1 (was center before) */
}

/* -------------------------------------
   Individual Role Text (rotating lines)
-------------------------------------- */
.role-text {
  position: absolute;  /* Positioned on top of each other inside .dynamic-roles */
  opacity: 0;          /* Hidden by default */
  transform: scale(0.9); /* Slightly smaller when hidden */
  transition: opacity 0.6s ease, transform 0.6s ease; /* Smooth fade & scale animation */
  
  /* Responsive font size:
     - Minimum 1rem (mobile)
     - Scales up to 1.25rem max (large screens) */
  font-size: clamp(1.5rem, 4vw, 2rem); 
  
  font-weight: 500;
  color: var(--clr-accent); /* Uses CSS variable (set by theme) */
  left: 0;
  width: 100%;
}

/* -------------------------------------
   Active Role Text (currently shown)
-------------------------------------- */
.role-text.active {
  opacity: 1;           /* Fully visible */
  transform: scale(1);  /* Normal size when active */
}

/* -------------------------------------
   Default Theme: Dark
   (Text appears light on dark background)
-------------------------------------- */
:root {
  --role-text-color: #f2f2f2; /* Light gray/white text for dark background */
}

/* -------------------------------------
   Light Theme Override
   (Activated when data-theme="light" is on <html> or <body>)
-------------------------------------- */
[data-theme="light"] {
  --role-text-color: #222; /* Dark text color for light background */
}


.main-nav {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 1000;
  margin: 0 auto;
  padding: 12px 20px; /* Top/bottom padding */
  min-height: 60px;   /* Ensures compact nav */
  display: flex;
  flex: 1;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  width: 100%;
  transition: transform 0.3s ease, background-color 0.3s ease;
  background-color: transparent; 
  will-change: transform;
}

.main-nav.scrolled {
  background-color: rgba(20, 20, 20, 0.5); /* Transparent when scrolling */
  backdrop-filter: blur(10px);          /* Subtle blur behind */
   -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

[data-theme="light"] .main-nav.scrolled {
  background-color: rgba(255, 255, 255, 0.75); /* Light mode transparency */
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.main-nav.scroll-down {
  transform: translateY(-100%);
}

.main-nav.scroll-up {
  transform: translateY(0);
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  padding: 0 20px;
  max-width: 1400px;
  min-height: 60px;
  flex-wrap: wrap; 
  margin: auto;
  gap: 1rem;
}

.nav-right {
  flex: 0 1 auto;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 1rem;
  flex-wrap: wrap;
}


.nav-left {
  flex: 1;
  display: flex;
  align-items: center;
}


.logo img {
  width: auto;
  height: clamp(24px, 4vw, 45px);
  max-height: 50px;
  min-height: 24px;
}

nav ul li {
  display: inline-block;
  list-style: none;
  margin: 10px 20px;
}

nav ul li a {
  color: var(--clr-white);
  text-decoration: none;
  font-size: var(--fz-large);
  position: relative;
}

nav ul li a::after {
  content: '';
  width: 0%;
  height: 3px;
  background: var(--clr-accent);
  position: absolute;
  left: 0;
  bottom: -6px;
  transition: var(--transition);
}

nav ul li a:hover::after {
  width: 100%;
}

/*-------------------------- About -------------------------*/
section#about {
  padding: 80px 0;
  color: var(--clr-grey);
}

.row {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
}

.about-column-1 {
  flex-basis: 35%;
}

.about-column-1 img {
  width: 100%;
  border-radius: 15px;
}

.about-column-2 {
  flex-basis: 60%;
}

[data-theme="light"] .about-column-2 p {
  color: var(--clr-text-dark);
}

.sub-title {
  font-size: var(--fz-title);
  font-weight: 600;
  color: var(--clr-white);
}

.about-text {
  padding-top: 1rem;
  font-size: var(--fz-medium);
  line-height: 1.6;
  text-align: left;
}

/*---------------- Tabs Container ----------------*/
.about-tabs {
  max-width: 1000px; /* balance section on desktop */
  margin: 40px auto 0;
  margin-top: 6rem;
  padding: 30px 20px 40px;
  background: rgba(255, 255, 255, 0.02);
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

/*---------------- Tab Titles ----------------*/
.tab-titles {
  display: flex;
  justify-content: space-evenly;
  align-items: center;
  margin-bottom: 20px;
  gap: 15px; /* spacing between buttons */
}

.tab-links {
  flex: 1 1 auto;
  min-width: 0;
  white-space: nowrap;
  text-align: center;
  justify-content: center;
  overflow: hidden;
  font-size: var(--fz-large);
  font-weight: 600;
  cursor: pointer;
  background: transparent;
  border: 2px solid var(--clr-accent);
  border-radius: 8px;
  padding: 10px 0;
  color: var(--clr-grey);
  transition: all 0.3s ease;
}

/* -------------------------
   LIGHT THEME TAB STYLES
-------------------------- */
[data-theme="light"] .tab-links {
  background: transparent;
  color: var(--clr-text-dark); /* black/inactive */
  border: 2px solid var(--clr-accent);
  transition: all 0.3s ease;
}

/* Active tab → purple box */
[data-theme="light"] .tab-links.active-link {
  background: var(--clr-accent);
  color: var(--clr-text-light);
  border-color: var(--clr-accent);
}

/* Hover → faint purple bg + black text */
[data-theme="light"] .tab-links:hover:not(.active-link) {
  background: rgba(128, 0, 128, 0.1); /* faint purple */
  color: var(--clr-grey); /* black for readability */
}

/* Remove outline for light mode */
[data-theme="light"] .tab-links:focus {
  outline: 2px dashed var(--clr-accent);
  outline-offset: 4px;
}


/* -------------------------
   DARK THEME TAB STYLES
-------------------------- */
[data-theme="dark"] .tab-links {
  background: transparent;
  color: var(--clr-text-light); /* light gray/white inactive */
  border: 2px solid var(--clr-accent);
  transition: all 0.3s ease;
}

/* Active tab → purple box */
[data-theme="dark"] .tab-links.active-link {
  background: var(--clr-accent);
  color: var(--clr-white);
  border-color: var(--clr-accent);
}

/* Hover → subtle purple overlay */
[data-theme="dark"] .tab-links:hover:not(.active-link) {
  background: rgba(128, 0, 128, 0.2);
  color: var(--clr-white);
}

/* Focus ring (keyboard navigation) */
[data-theme="dark"] .tab-links:focus {
  outline: 2px dashed var(--clr-accent);
  outline-offset: 4px;
}


/*---------------- Tab Contents ----------------*/
.tab-contents {
  max-width: 750px; /* keeps text readable */
  margin: 0 auto;
  text-align: left;
  font-size: var(--fz-medium);
  line-height: 1.6;
  display: none;
}

.tab-contents.active-tab {
  display: block;
}

/* Custom Bullets for All Tabs */
.tab-contents ul {
  list-style: none;       /* remove browser bullets */
  padding-left: 0;        /* reset padding */
  margin-top: 10px;
}

.tab-contents ul li {
  position: relative;
  padding-left: 1.5rem;   /* space for custom bullet */
  margin-bottom: 15px;
  font-size: var(--fz-medium);
  color: var(--clr-white);
  line-height: 1.5;
}

.tab-contents ul li::before {
  content: "•";             /* custom bullet */
  position: absolute;
  left: 0;
  top: 0;
  color: var(--clr-accent); /* purple bullet */
  font-size: 1.2rem;        /* slightly larger */
  line-height: 1.5;
}

.tab-contents ul li span {
  font-size: var(--fz-medium);
  color: var(--clr-accent);
  font-weight: 600;
  display: inline-block;
  margin-bottom: 3px;
  line-height: 1.4;
}

.tab-contents ul li p {
  font-size: var(--fz-medium);
  padding-top: 5px;
  line-height: 1.4;
  color: var(--clr-grey);
}

/* ---------------- Tab Content Transitions ---------------- */
.tab-contents {
  max-width: 750px;
  margin: 0 auto;
  text-align: left;
  font-size: var(--fz-medium);
  line-height: 1.6;

  /* animation setup */
  opacity: 0;
  transform: translateX(20px); /* slide in from right */
  pointer-events: none; /* disable inactive tabs */
  position: absolute; /* stack all tabs in the same space */
  left: 0;
  right: 0;
  transition: opacity 0.4s ease, transform 0.4s ease;
}

.tab-contents.active-tab {
  opacity: 1;
  transform: translateX(0); /* reset to normal */
  pointer-events: auto;
  position: relative; /* return flow for the active one */
}


/*-------------------------- Services -------------------------*/
section#services {
  padding: 30px 0;
}

.services-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 40px;
  margin-top: 50px;
}

.services-list article {
  background: var(--clr-bg-light);
  padding: 40px;
  font-size: var(--fz-medium);
  font-weight: 300;
  border-radius: var(--border-radius);
  transition: background var(--transition), transform var(--transition);
}

.services-list article i {
  font-size: 50px;
  margin-bottom: 30px;
}

.services-list article h3 {
  font-size: var(--fz-xl);
  font-weight: 600;
  margin-bottom: 15px;
}

.services-list article p{
  font-size: var(--fz-medium);
  line-height: 1.6;
  text-align: left;
  font-weight: 300;
}

:root[data-theme="light"] .services-list article:hover {
  color: #ffffff;
}

.services-list article a {
  text-decoration: none;
  color: var(--clr-white);
  font-size: var(--fz-small);
  margin-top: 20px;
  display: none;
}

.services-list article:hover {
  background: var(--clr-accent);
  transform: translateY(-10px);
}

/*-------------------------- Portfolio -------------------------*/
section#portfolio {
  padding: 30px 0;
}

.work-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 40px;
  margin-top: 50px;
}

.work {
  display: flex;
  flex-direction: column;
  padding: 20px;
  border: 2px solid rgba(255, 255, 255, 0.05);
  border-radius: var(--border-radius);
 /* background-color: var(--clr-bg-light);  theme-aware */
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.05);
  overflow: hidden;
  transition:
  background-color var(--transition),
  color var(--transition),
  transform 0.3s ease,
  box-shadow 0.3s ease;
}

:root[data-theme="light"] .work {
   border: 2px solid rgba(51, 51, 51, 0.07);
   background-color: var(--clr-bg-light);
}

.work:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.08),
              0 0 0 1px rgba(255, 255, 255, 0.05);
}

.portfolio-instruction {
    padding: 10px 0 8px 0;
    font-style: italic;
    text-align: left;
    font-size: 14px;
    color: #555;
}

.img-scroll {
  height: 380px;
  overflow-y: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
  border-radius: var(--border-radius);
  position: relative;
}

.img-scroll img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;
  border-radius: var(--border-radius);
  transition: transform 0.4s ease;
}

.img-scroll:hover img {
  transform: scale(1.05);
}

.img-scroll::-webkit-scrollbar {
  display: none;
  width: 6px;
}

.img-scroll::-webkit-scrollbar-thumb {
  background-color: rgba(0, 0, 0, 0.2);
  border-radius: 4px;
}

.work h3 {
  font-size: 1.25rem;
  font-weight: 600;
  margin-top: 30px;
  color: var(--clr-white);
}

.work p {
  font-size: 1rem;
  line-height: 1.6;
  margin-top: 10px;
  color: var(--clr-grey);
}

.tech-stack {
  font-size: 0.85rem;
  color: var(--clr-grey);
  margin-top: 8px;
  font-style: italic;
}

.work a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 500;
  font-size: 0.95rem;
  text-decoration: none;
  color: var(--clr-accent);
  margin-top: 16px;
  transition: color 0.3s ease;
}

[data-theme="dark"] .work a:hover {
  color: #cfcfff; 
}

[data-theme="light"] .work a:hover {
  color: #222;
}

/* "See More" transparent button - unchanged per your request */
.btn.transparent {
  display: block;
  padding: 14px 50px;
  margin: 50px auto;
  width: fit-content;
  border: 2px solid var(--clr-accent);
  background-color: transparent;
  color: var(--clr-accent);
  font-weight: 500;
  cursor: pointer;
  transition: background-color var(--transition), color var(--transition), border-color var(--transition);
  border-radius: var(--border-radius);
  text-decoration: none;
}

.btn.transparent:hover {
  background-color: var(--clr-accent);
  color: #fff;
}

/*-------------------cta-after-portfolio----------------------*/
.cta-inquiry {
  position: relative;
  overflow: hidden;
  margin: 2rem auto 4rem;
  padding: 3rem 2rem;
  max-width: 900px;
  border-radius: var(--border-radius);
  text-align: center;
  transition: background-color var(--transition), border-color var(--transition);
  z-index: 0;
}

.cta-inquiry::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(135deg, rgba(108, 61, 158, 0.3), rgba(40, 0, 75, 0.5));
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(108, 61, 158, 0.25);
  border-radius: var(--border-radius);
}

[data-theme="light"] .cta-inquiry::before {
  background: linear-gradient(135deg, rgba(108, 61, 158, 0.15), rgba(200, 180, 255, 0.25));
  border-color: rgba(108, 61, 158, 0.2);
}

.cta-inquiry .cta-content h2 {
  font-size: var(--fz-xxl);
  margin-bottom: 1rem;
  color: var(--clr-white);
}

.cta-inquiry .cta-content p {
  font-size: var(--fz-large);
  color: var(--clr-grey);
  margin-bottom: 2rem;
  max-width: 700px;
  margin-inline: auto;
}

.cta-inquiry .cta-btn {
  background: var(--clr-accent);
  color: white;
  padding: 0.9rem 2rem;
  font-size: var(--fz-medium);
  font-weight: 600;
  border-radius: var(--border-radius);
  text-decoration: none;
  display: inline-block;
  transition: background var(--transition), transform 0.3s ease;
}

.cta-inquiry .cta-btn:hover {
  background: #592b88;
  transform: translateY(-2px);
}

@media (max-width: 768px) {
  .cta-inquiry {
    padding: 2rem 1.2rem;
    margin: 2rem auto 4rem;
  }

  .cta-inquiry .cta-content h2 {
    font-size: var(--fz-xl);
  }

  .cta-inquiry .cta-content p {
    font-size: var(--fz-medium);
  }
}

/*-------------------------- Contact -------------------------*/
section#contact {
  padding: 30px 0;
}

.contact-left {
  flex-basis: 35%;
}

.contact-right {
  flex-basis: 60%;
}

.contact-left p,
address p {
  margin-top: 30px;
}

.contact-left p i,
address p i {
  color: var(--clr-accent);
  margin-right: 15px;
  font-size: 25px;
}

address {
  font-style: normal;
}

.social-icons {
  margin-top: 30px;
}

.social-icons a {
  text-decoration: none;
  font-size: 30px;
  margin-right: 15px;
  color: var(--clr-grey);
  display: inline-block;
  transition: transform var(--transition);
}

.social-icons a:hover {
  color: var(--clr-accent);
  transform: translateY(-5px);
}

.btn {
  display: block;
  margin: 50px auto;
  width: fit-content;
  border: 1px solid var(--clr-accent);
  padding: 14px 50px;
  border-radius: 6px;
  text-decoration: none;
  color: var(--clr-white);
  transition: background var(--transition);
}

.btn.btn2 {
  display: inline-block;
  background: var(--clr-accent);
  color: #fff;
  padding: 12px 30px;
  border-radius: var(--border-radius);
  font-size: var(--fz-medium);
  font-weight: 500;
  border: none;
  cursor: pointer;
  transition: background-color var(--transition), color var(--transition);
}

:root[data-theme="light"] .btn.btn2 {
  background-color: var(--clr-accent);
  color: #fff; /* Or #fff if you want white text */
}


.contact-right form {
  width: 100%;
}

form input,
form textarea {
  width: 100%;
  border: 0;
  outline: none;
  background: var(--clr-bg-light);
  padding: 15px;
  margin: 15px 0;
  color: var(--clr-white);
  font-size: var(--fz-large);
  border-radius: 6px;
}

form .btn2 {
  padding: 14px 60px;
  font-size: var(--fz-large);
  margin-top: 20px;
  cursor: pointer;
}

/*-------------------------- Footer -------------------------*/
footer.copyright {
  width: 100%;
  background: var(--clr-accent);
  font-weight: 300;
  padding: 1.25rem 1rem;
  font-size: 0.95rem;
  line-height: 1.5;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  text-align: center;
  margin-top: 3rem;
  transition: background-color 0.3s ease, color 0.3s ease;
}

.footer-text,
.footer-link,
.footer-center {
  margin: 0;
}

/* Animated link underline */
.footer-link a {
  position: relative;
  text-decoration: none;
  font-weight: 400;
  color: inherit;
  transition: color 0.3s ease;
}

.footer-link a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -2px;
  height: 2px;
  width: 0;
  background-color: currentColor;
  transition: width 0.3s ease;
}

.footer-link a:hover::after {
  width: 100%;
}

/* Theme-specific styling */
:root[data-theme="light"] footer.copyright {
  background-color: #7e4bb3;
  color: #ffffff;
}

:root[data-theme="light"] .footer-link a:hover {
  color: #ddd;
}

/* Desktop: Side-by-side layout */
@media (min-width: 600px) {
  footer.copyright {
    flex-direction: row;
    justify-content: space-between;
    text-align: left;
    padding: 1rem 2rem;
  }
}



/*----------------------Light and dark theme toggle css-----------------*/


/* === NAV RIGHT SECTION === */
.nav-right {
  display: flex;
  align-items: center;
  gap: 20px;
}

/* === Toggle icon Style === */

#theme-toggle {
  font-size: 24px;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--clr-white);
  transition: transform 0.3s ease, color 0.3s ease;
}

#theme-toggle:hover {
  transform: scale(1.15);
  color: var(--clr-accent);
}

.fa-bars,
.fa-square-xmark {
  display: none;
  font-size: 24px;
  color: var(--clr-white);
  cursor: pointer;
}

/* === Inquiry Page Styles === */
.inquiry-container {
  max-width: 720px;
  margin: 4rem auto;
  padding: 2rem;
}

.inquiry-header h1 {
  font-size: 2.25rem;
  margin-bottom: 0.5rem;
}

.inquiry-header p {
  font-size: 1rem;
  color: var(--text-muted, #aaa);
  margin-bottom: 2rem;
}

.inquiry-form {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 600;
}

.form-group label span {
  color: var(--accent-color, #e63946);
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 0.75rem;
  background: var(--bg-secondary, #1e1e1e);
  border: 1px solid var(--border-color, #333);
  color: var(--text-color, #fff);
  border-radius: 6px;
  font-size: 1rem;
}

.form-actions {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.btn-primary,
.btn-secondary {
  text-align: center;
  padding: 0.75rem 1.5rem;
  border-radius: 8px;
  font-weight: 600;
  font-size: 1rem;
  transition: background 0.3s;
  text-decoration: none;
}

.btn-primary {
  background-color: var(--accent-color, #e63946);
  color: #fff;
  border: none;
}

.btn-primary:hover {
  background-color: var(--accent-color-hover, #c92c3d);
}

.btn-secondary {
  background: transparent;
  border: 2px solid var(--accent-color, #e63946);
  color: var(--accent-color, #e63946);
}

.btn-secondary:hover {
  background-color: var(--accent-color);
  color: #fff;
}

.footer {
  text-align: center;
  padding: 2rem 1rem;
  font-size: 0.875rem;
  color: var(--text-muted, #aaa);
}


/*-------------------------- Responsive -------------------------*/
nav .fa-solid {
  display: none;
}

@media only screen and (max-width: 600px) {
  
  .container {
    padding: 0 20px;
  }

   /* Navigation + Toggle (preserved from tablet) */
  nav .fa-solid {
    position: relative;
    display: block;
    font-size: 25px;
  }

  nav ul {
    background: var(--clr-accent);
    position: fixed;
    top: 0;
    right: -200px;
    width: 200px;
    height: 100vh;
    padding-top: 50px;
    z-index: 2;
    transition: right var(--transition);
  }

  #sidemenu {
  display: flex;
  flex-direction: column;  /* Makes sure links stack vertically */
  align-items: flex-start; /* Align links to the left for readability */
  gap: 0.2rem;
  max-height: 90vh;        /* Prevent it from being too tall */
  overflow-y: auto;        /* Scroll only if needed */
  margin: 0;
  padding: 4rem 1rem 1rem; /* top, right/left, bottom */
}

  :root[data-theme="light"] #sidemenu a {
  color: var(--clr-text-light);
}

  :root[data-theme="light"] #sidemenu .fa-square-xmark {
  color: var(--clr-text-light);
}

  nav ul li {
    display: block;
    margin: 25px;
  }

  nav ul .fa-solid {
    position: absolute;
    top: 25px;
    left: 25px;
    cursor: pointer;
  }

  .nav-right .fa-bars {
    position: relative;
    top: 2px;
    font-size: 24px;
    display: block;
    gap: 15px;
  }

  .hamburger {
  font-size: 20px;         /* Or match other icons' size */
  vertical-align: middle;  /* Aligns with text baseline */
  line-height: 1;          /* Prevents weird spacing */
  display: inline-block;   /* Ensures vertical-align works */
  cursor: pointer;
  margin-bottom: 3px;
}

  #theme-toggle {
    font-size: 20px;
    background: none;
    border: none;
    cursor: pointer;
    color: var(--clr-white);
    transition: transform 0.3s ease, color 0.3s ease;
  }

  #theme-toggle:hover {
    transform: scale(1.15);
    color: var(--clr-accent);
  }

  .hero-flex {
    padding: 48px 24px;
    gap: 1rem;
    min-height: auto;
    flex-direction: column-reverse; /* Ensure stacking on mobile */
    align-items: center;
    justify-content: center;
    text-align: center;
    margin-top: 40px;
    margin-bottom: 40px;
  }

  header {
    min-height: unset !important; /* Now properly applies because header is block-level */
  }

  /* Specific control for the glowing pseudo-element on mobile */
  header::before {
    height: 150%; /* Ensures the gradient covers the full height of the header */
    bottom: 0;    /* Aligns the pseudo-element to the bottom of the header */
    /* Dark Theme Gradient: Fades from a very subtle white tint to transparent */
    background: none;
  }

  /* Specific control for the light theme glow on mobile */
  [data-theme="light"] header::before {
    background: radial-gradient(circle at 20% 20%, rgba(0, 0, 0, 0.06), transparent 60%);
  }

  .header-text {
    margin-top: 0px;
    margin-bottom: 32px;
    font-size: var(--fz-medium);
    padding: 0;
    width: 100%;
    max-width: 500px;
    height: auto;
    flex-basis: auto;
    animation: fadeUp 0.8s ease-out forwards;
    opacity: 0;
    animation-delay: 0.5s;
  }

  .header-text p{
    font-size: 20px;
    margin-bottom: 8px;
    line-height: 1.4;
    opacity: 0.85; /* subtle downplay of intro text */
  }

  .header-text h1 {
    font-size: clamp(32px, 6vw, var(--fz-xl));
    margin-bottom: 12px;
    line-height: 1.2;
  }

  .dynamic-roles {
    margin: 16px 0 24px;
    text-align: center;
    font-size: 16px;
    line-height: 1.4;
    font-weight: 500;
  }

    .dynamic-roles .role-text.active {
  text-shadow: 0 0 6px rgba(255, 255, 255, 0.3);
  }

  :root[data-theme="light"] .dynamic-roles .role-text.active {
  text-shadow: 0 0 8px rgba(0, 0, 0, 0.3);
  }

   .cta-btn {
    font-size: 1rem;
    padding: 12px 28px;
    animation: fadeUp 0.8s ease-out forwards;
    opacity: 0;
    animation-delay: 0.8s;
    border-radius: 8px;
   }

   @keyframes fadeDown {
  0% {
    opacity: 0;
    transform: translateY(-20px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

  @keyframes fadeUp {
  0% {
    opacity: 0;
    transform: translateY(20px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

   .profile-wrapper {
    /* Example 1: Reduce the preferred and max size slightly */
    width: clamp(200px, 50vw, 300px); /* Smaller overall */
    height: clamp(200px, 50vw, 300px);
    max-width: 80vw;
    max-height: 80vw;
  }

  .profile-img {
    object-fit: cover;
  }

  .hero-image {
    padding: 0; /* Add some vertical padding around the image */
    width: 100%; /* Ensure image takes full width when stacked */
    margin-bottom: 0rem;
    animation: fadeDown 0.8s ease-out forwards;
    opacity: 0;
    animation-delay: 0.2s;
  }

  .sub-title {
    font-size: var(--fz-xxl);
  }

  .about-column-1,
  .about-column-2,
  .contact-left,
  .contact-right {
    flex-basis: 100%;
  }

  .about-column-1 {
    margin-bottom: 30px;
  }

  .about-column-2 {
    font-size: var(--fz-small);
  }

  .tab-titles {
    display: flex;
    justify-content: space-between;
    gap: 0.5rem; /* small gap between buttons */
  }

  .tab-links {
    font-size: var(--fz-medium);
    padding: 0.7rem;
    text-align: center;
  }

  footer.copyright {
    font-size: var(--fz-small);
  }

  .work-list {
    grid-template-columns: 1fr !important;
  }
  
   /* Specific adjustment for about section spacing on mobile */
  section#about {
    padding-top: 0px; /* Reduced top padding for mobile */
    margin-top: 0%;
  }
}

@media only screen and (min-width:601px) and (max-width: 992px) {

  nav .fa-solid {
    position: relative;
    display: block;
    font-size: 25px;
  }

  nav ul {
    background: var(--clr-accent);
    position: fixed;
    top: 0;
    right: -200px;
    width: 200px;
    height: 100vh;
    padding-top: 50px;
    z-index: 2;
    transition: right var(--transition);
  }

#sidemenu {
  display: flex;
  flex-direction: column;  /* Makes sure links stack vertically */
  align-items: flex-start; /* Align links to the left for readability */
  gap: 0.2rem;
  max-height: 90vh;        /* Prevent it from being too tall */
  overflow-y: auto;        /* Scroll only if needed */
  margin: 0;
  padding: 4rem 1rem 1rem; /* top, right/left, bottom */
}



  :root[data-theme="light"] #sidemenu a {
  color: var(--clr-text-light);
}

  :root[data-theme="light"] #sidemenu .fa-square-xmark {
  color: var(--clr-text-light);
}

  nav ul li {
    display: block;
    margin: 25px;
  }

  nav ul .fa-solid {
    position: absolute;
    top: 25px;
    left: 25px;
    cursor: pointer;
  }

.nav-right .fa-bars {
   position: relative;
  top: 2px; /* 🔧 Adjust this value as needed (try 0px, 2px, -1px, etc.) */
  font-size: 24px;
  display: block;
  font-size: 24px;
  gap: 15px;
}

#theme-toggle {
  font-size: 20px;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--clr-white);
  transition: transform 0.3s ease, color 0.3s ease;
}

#theme-toggle:hover {
  transform: scale(1.15);
  color: var(--clr-accent);
}

  .work-list {
    grid-template-columns: repeat(2, 1fr);
  }

  .hero-flex {
    flex-direction: column-reverse; /* Image below text */
    align-items: center;
    justify-content: center;
    padding: 40px 2px 0px 2px;
    margin-top: 100px;
    gap: 2rem;
    text-align: center;
  }

  .header-text {
    padding: 0 20px;
    text-align: center;
  }

   .dynamic-roles {
    margin-bottom: 1rem; /* Reduce bottom space on smaller screens */
    text-align: center;
  }

  .dynamic-roles .role-text.active {
  text-shadow: 0 0 6px rgba(255, 255, 255, 0.3);
  }

   :root[data-theme="light"] .dynamic-roles .role-text.active {
  text-shadow: 0 0 8px rgba(0, 0, 0, 0.3);
  }

   .hero-image {
    width: 100%;
    justify-content: center;
    padding: 0 !important;
    margin: 0 !important;
    flex-shrink: 1 !important; /* Allow hero-image to shrink */
    flex-grow: 0 !important; /* Prevent hero-image from growing unnecessarily */
  }

  /* Soft radial light behind header text effect for Default Dark Theme */
  header::before {
  content: '';
  background: none;
}

section#about {
  padding-top: 0px;
  color: var(--clr-grey);
}

}
