
* { margin: 0; padding: 0; box-sizing: border-box; }
html, body { height: 100%; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
:root{
  --text:#0a0a0a;
  --muted:#666;
  --bg:#ffffff;
  --panel:#f5f5f7;
  --brand:#0071e3;       /* Apple-y blue */
  --shadow: 0 10px 30px rgba(0,0,0,.08);
  --radius: 14px;
}

body{
  font-family: -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* Prevent horizontal scrolling */
html, body {
  overflow-x: hidden;
  width: 100%;
  margin: 0;
  padding: 0;
}

/* Make sure all sections fit inside the viewport */
section, header, footer, nav, div {
  max-width: 100%;
  box-sizing: border-box;
}

/* --- Global Header & Navigation Styling (Optimized Fixed Position) --- */

header {
    /* Uses your fixed position approach */
    position: fixed; 
    top: 0;
    left: 0;
    right: 0;
    height: 64px; 
    z-index: 900; 

    /* Layout */
    display: flex;
    align-items: center;
    justify-content: space-between;
    
    /* Responsive Padding: Uses standard padding */
    padding: 0 40px; 
    
    /* Background & Effects: Uses brand variables for consistency */
    background: var(--header-bg); /* Define a variable for header background, often lighter than --bg */
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-color); /* Use a variable for subtle border */
    
    /* Ensure header content is constrained to align with main site container */
    max-width: 1400px;
    margin: 0 auto; 
    width: 100%;
}

/* Force header to be full width (needed because the inner header has max-width) */
.full-width-header-wrapper {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 899;
    /* Use transparent or a color that blends with the header content */
    background: var(--bg); 
    height: 64px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05); /* Shadow on the wrapper */
}

/* NOTE: You'll need to wrap your <header> element inside a new <div> like this:
<div class="full-width-header-wrapper">
    <header>...</header>
</div>
*/

.logo { 
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--brand); 
    letter-spacing: -0.5px;
    z-index: 901; /* Ensure logo is above mobile menu */
}

/* Desktop Navigation */
nav { 
    display: flex; 
    gap: 30px; 
    align-items: center; 
}
nav a { 
    color: var(--text);
    text-decoration: none;
    font-size: 1.05rem;
    font-weight: 500;
    padding: 5px 0;
    position: relative;
    transition: color 0.2s;
}

/* Brand Underline Effect */
nav a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px; /* Adjust position */
    left: 0;
    background-color: var(--brand);
    transition: width 0.3s ease;
}

nav a:hover::after,
nav a.active::after {
    width: 100%;
}

nav a.active { 
    color: var(--brand); 
    font-weight: 600;
}

/* --- Mobile Menu Toggle --- */
.menu-toggle { 
    display:none; 
    flex-direction: column; 
    gap:5px; /* Tighter gap for better look */
    cursor:pointer; 
    z-index: 901; /* Ensure toggle is clickable */
}

.menu-toggle span { 
    width:26px; 
    height:3px; 
    background: var(--brand); /* Brand color for hamburger lines */
    border-radius:2px;
    transition: transform 0.3s, opacity 0.3s;
}


/* --- Mobile Overlay Menu --- */
.mobile-nav {
  /* REMOVED: display: none; */
  position: fixed;
  top: 0; right: 0;
  width: 250px;
  height: 100%;
  background: var(--nav-bg);
  backdrop-filter: blur(15px);
  padding: 80px 20px;
  flex-direction: column;
  gap: 20px;
  
  /* Hides the menu off-screen */
  transform: translateX(100%); 
  transition: transform var(--transition);
  
  /* Ensure it's not clickable when closed */
  pointer-events: none; 
}
.mobile-nav.open {
  transform: translateX(0); /* Shows the menu */
  pointer-events: auto; /* Makes links clickable when open */
}
/* REMOVE .mobile-nav a styles from here, keep them in the media query */
.mobile-nav.open {
    transform: translateY(0);
}

.mobile-nav a {
    color: var(--text); 
    text-decoration: none;
    padding: 12px 0;
    width: 100%; /* Full width links */
    border-bottom: 1px solid var(--muted);
    font-size: 1.2rem;
    font-weight: 600;
}


/* --- Media Query: Mobile/Tablet --- */
@media (max-width: 768px) {
  /* Desktop nav links should still be hidden */
  nav { 
    display: none; 
  }
  
  /* The toggle button should be shown */
  .menu-toggle { 
    display: flex; 
  }
  
  /* NO .mobile-nav {} RULE HERE! Let the initial styles handle it */
}

/* Hover effect in dark mode */
body.dark nav a:hover {
  color: #33ff99; /* bright green on hover in dark mode */
}

/* Hover effect in light mode */
body:not(.dark) nav a {
  color: #222; /* darker text in light mode */
}

/* Force chat widget to stay small bottom-right */
#lc_chat_layout,
#lc_chat_layout iframe,
#livechat-compact-container,
#livechat-eye-catcher,
#livechat-full,
#livechat-wrapper {
  max-width: 60px !important;   /* small round button */
  max-height: 60px !important;
  border-radius: 50% !important;
  overflow: hidden !important;
  right: 20px !important;
  bottom: 20px !important;
}

/* Hide the big “eye catcher” popup */
#livechat-eye-catcher,
#livechat-full {
  display: none !important;
}


body:not(.dark) nav a:hover {
  color: #1435f1; /* blue accent on hover in light mode */
}

.mobile-nav.open{ transform: translateY(0); opacity:1; pointer-events:auto; z-index: 100;}
.mobile-nav a{ font-size: 1.15rem; padding: 10px 0; }

/* =========================
   Sections & Layout
   ========================= */
main{ padding-top: 64px; } /* offset for fixed header */

section{
  padding: 96px 24px;
  max-width: 1200px; margin: 0 auto;
}

/* Hero */
.hero{
  min-height: calc(100vh - 64px);
  display: grid; align-items: center;
  gap: 28px;
  text-align: center;
}
.hero h1{ font-size: clamp(2.2rem, 4vw, 3.5rem); line-height: 1.1; font-weight: 700; }
.hero p{ max-width: 780px; margin: 12px auto 24px;
  ; font-size: 1.1rem; }
.btn{
  display:inline-block; padding: 12px 22px; border-radius: 999px;
  background:#111; color:#fff; font-weight:600; transition: filter .2s;
}
.btn:hover{ filter: brightness(.9); }
.link{ color: var(--brand); font-weight: 600; }

/* Gentle gradient backdrops for “chapter” sections */
.gradient-bg{
  position: relative; isolation: isolate;
}
.gradient-bg::before{
  content:""; position:absolute; inset:-10% -10% 0 -10%; z-index:-1;
  background:
    radial-gradient(60rem 40rem at 50% -10%, rgba(96,165,250,.18), transparent 60%),
    radial-gradient(40rem 28rem at 10% 120%, rgba(34,197,94,.16), transparent 60%);
}

/* Split (text + image) */
.split{
  display: grid; grid-template-columns: 1.1fr 1fr; gap: 40px; align-items: center;
}
.split.reverse{ grid-template-columns: 1fr 1.1fr; }
.split .image img{
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}


/* --- Support/Donation Button Styling --- */

/* Wrapper for spacing */
.support-section {
    text-align: center;
    padding: 60px 24px; /* More vertical padding for importance */
}

/* The Button itself */
.support-btn {
    /* High Visibility Styling */
    padding: 15px 35px; /* Generous padding */
    border: none;
    border-radius: 50px; /* Fully rounded pill shape */
    
    /* Brand Colors */
    background: var(--brand); /* Uses your Coral/Warm Sunset color */
    color: white; /* White text for maximum contrast and readability */
    
    /* Typography */
    font-size: 1.15em;
    font-weight: 700; /* Bold text */
    text-transform: uppercase;
    letter-spacing: 0.5px;
    
    /* Trust and Interaction */
    cursor: pointer;
    /* Large, brand-colored shadow to make it pop off the page */
    box-shadow: 0 10px 30px rgba(255, 107, 107, 0.6); 
    transition: background 0.3s, transform 0.3s, box-shadow 0.3s;
}

/* Hover effect to encourage the click */
.support-btn:hover {
    background: #e85a5a; /* Slightly darker coral on hover */
    transform: translateY(-4px); /* Lift the button */
    box-shadow: 0 15px 35px rgba(255, 107, 107, 0.8); /* Stronger shadow */
}

/* Active state for instant feedback */
.support-btn:active {
    transform: translateY(-1px);
    box-shadow: 0 5px 15px rgba(255, 107, 107, 0.5);
}

/* Showcase / Cards */
.showcase h2, .section-title{ font-size: clamp(1.8rem, 3vw, 2.4rem); margin-bottom: 10px; }
.muted{ color: var(--muted); }
.cards{
  margin: 24px 0 8px;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px;
}
.card{
  background: var(--panel);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow);
  transition: transform .25s ease, box-shadow .25s ease;
  display: flex; flex-direction: column; gap: 10px;
}
.card:hover{ transform: translateY(-6px); box-shadow: 0 16px 40px rgba(0,0,0,.12); }
.card img{ border-radius: 12px; }

/* Gallery (for Work page) */
.gallery{
  display: grid; grid-template-columns: repeat(12, 1fr); gap: 16px; margin-top: 24px;
}
.tile{
  grid-column: span 4;
  background: var(--panel);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  display:flex; flex-direction: column;
  background-color: var(--card); color: var(--text);
}
.tile.large{ grid-column: span 8; }
.tile .tile-body{ padding: 18px 18px 22px; }

/* Feature grid (Services) */
.features{
  margin-top: 24px;
  display: grid; grid-template-columns: repeat(12,1fr); gap: 16px; 
}
.feature{
  grid-column: span 6; background: var(--panel); border-radius: var(--radius);
  padding: 22px; box-shadow: var(--shadow); background-color: var(--card); color: var(--text);
}
.feature.small{ grid-column: span 4; }

/* Timeline (About) */
.timeline{ margin-top: 24px; display: grid; gap: 16px; 
}
.timeline .row{
  background: var(--panel); border-radius: var(--radius); padding: 18px 20px; box-shadow: var(--shadow);
  display:flex; justify-content: space-between; gap: 16px; background: var(--card);
color: var(--text);

}
.kv{ display:grid; grid-template-columns: 150px 1fr; gap: 14px; align-items: start; }

/* Contact */
.contact-grid{
  display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-top: 24px;
}
input, textarea{
  width: 100%; padding: 12px 14px; border-radius: 10px; border: 1px solid #e5e5e7; font-size: 1rem;
  background: #fff;
}
button[type="submit"]{ margin-top: 10px; }


:root {
  --bg: #ffffff;
  --text: #000000;
  --card: #f5f5f7;  /* light cards */
}

body.dark {
  --bg: #0b0b10;
  --text: #f5f5f7;
  --card: rgba(255,255,255,0.08); /* dark cards */
}

/* =========================
   Animations (scroll reveal)
   ========================= */
.reveal{ opacity: 0; transform: translateY(36px); transition: opacity .8s ease, transform .8s ease;  
}
.reveal.visible{ opacity: 1; transform: translateY(0); 
}
/* Future / Reveal / Showcase Section */
.future-section {
  padding: 100px 20px;
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
}

.future-card {
  background: var(--card);
  color: var(--text);
  border-radius: 20px;
  padding: 30px;
  box-shadow: 0 6px 20px rgba(0,0,0,.08);
  text-align: center;
  transition: background .3s ease, color .3s ease, transform .2s ease;
}

.future-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 10px 25px rgba(0,0,0,.15);
}

.future-card h2 {
  font-size: 1.5rem;
  margin-bottom: 15px;
  background: linear-gradient(90deg,#ff5f6d,#ffc371);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.future-card p {
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text);
  opacity: 0.85;
}


/* =========================
   Responsive
   ========================= */
@media (max-width: 1024px){
  .cards{ grid-template-columns: 1fr 1fr; }
  .gallery .tile.large{ grid-column: span 12; }
  .gallery .tile{ grid-column: span 6; }
  .feature.small{ grid-column: span 6; }
}
@media (max-width: 820px){
  nav{ display:none; }
  .menu-toggle{ display:flex; }
  .split, .split.reverse{ grid-template-columns: 1fr; text-align: center; }
  .cards{ grid-template-columns: 1fr; }
  .gallery .tile{ grid-column: span 12; }
  .features{ grid-template-columns: 1fr; }
  .feature, .feature.small{ grid-column: span 12; }
  .contact-grid{ grid-template-columns: 1fr; }
  .kv{ grid-template-columns: 1fr; }
}
/* ------------------------------
   Root Variables (Light Mode)
------------------------------ */
:root {
  --bg: #ffffff;
  --text: #000000;
  --card: #f5f5f7;
  --accent: linear-gradient(90deg,#ff5f6d,#ffc371);
  --shadow: 0 6px 20px rgba(0,0,0,.08);
  --radius: 20px;
  --transition: 0.3s ease;
  --nav-bg: rgba(255,255,255,0.7);
}

/* Dark Mode */
body.dark {
  --bg: #0b0b10;
  --text: #f5f5f7;
  --card: rgba(255,255,255,0.08);
  --nav-bg: rgba(15,15,20,0.8);
}

/* ------------------------------
   Base Styles
------------------------------ */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  line-height: 1.6;
  transition: background var(--transition), color var(--transition);
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  display: block;
  border-radius: var(--radius);
}

h1, h2, h3, h4 {
  font-weight: 700;
}

button {
  cursor: pointer;
}

/* Accent text */
.gradient-text {
  background: var(--accent);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* ------------------------------
   Header / Nav
------------------------------ */
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background: var(--nav-bg);
  backdrop-filter: blur(10px);
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 30px;
  z-index: 1000;
  box-shadow: var(--shadow);
}

.logo {
  font-weight: 700;
  font-size: 1.4rem;
  width: 40px;
  height: auto;
}

nav {
  display: flex;
  gap: 20px;
}

nav a {
  font-weight: 500;
  position: relative;
  padding: 5px 0;
}

nav a.active::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 100%;
  height: 2px;
  background: var(--accent);
  border-radius: 2px;
}

.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
}
.menu-toggle span {
  width: 25px;
  height: 3px;
  background: var(--text);
  border-radius: 2px;
}

.mobile-nav {
  display: none;
  position: fixed;
  top: 0; right: 0;
  width: 250px;
  height: 100%;
  background: var(--nav-bg);
  backdrop-filter: blur(15px);
  padding: 80px 20px;
  flex-direction: column;
  gap: 20px;
  transform: translateX(100%);
  transition: transform var(--transition);
}
.mobile-nav.open {
  transform: translateX(0);
}
.mobile-nav a {
  font-size: 1.2rem;
}

@media (max-width: 768px) {
  nav { display: none; }
  .menu-toggle { display: flex; }
  .mobile-nav { display: flex; }
}

/* ------------------------------
   Hero / Cover
------------------------------ */
.hero-grid {
  display: grid;
  grid-template-columns: 1.2fr .8fr;
  gap: 40px;
  align-items: center;
  padding: 120px 20px 60px;
  max-width: 1200px;
  margin: 0 auto;
}

.cover {
  border-radius: var(--radius);
  background-size: cover;
  background-position: center;
  box-shadow: var(--shadow);
  aspect-ratio: 1/0.9;
}

@media (max-width: 768px) {
  .hero-grid {
    grid-template-columns: 1fr;
  }
  .cover {
    width: 100%;
    height: 300px;
    aspect-ratio: auto;
  }
}

/* ------------------------------
   Section Blocks (Future, Reveal, Showcase)
------------------------------ */
.section {
  padding: 100px 20px;
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px,1fr));
  gap: 30px;
}

.card {
  background: var(--card);
  color: var(--text);
  border-radius: 25px;
  padding: 30px;
  box-shadow: var(--shadow);
  text-align: center;
  transition: transform .2s ease, box-shadow .2s ease, background var(--transition);
}
.card:hover {
  transform: translateY(-6px);
  box-shadow: 0 10px 25px rgba(0,0,0,.15);
}
.card h2 {
  font-size: 1.5rem;
  margin-bottom: 15px;
  background: var(--accent);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* ------------------------------
   Music Page
------------------------------ */
.playlist {
  max-width: 900px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding: 40px 20px;
}

.track {
  display: grid;
  grid-template-columns: 120px 1fr auto;
  align-items: center;
  gap: 20px;
  background: var(--card);
  border-radius: var(--radius);
  padding: 15px;
  transition: transform .2s ease, box-shadow .2s ease;
}
.track:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 20px rgba(0,0,0,.3);
}
.track .cover {
  width: 120px;
  height: 120px;
}
.track iframe {
  border: none;
  border-radius: 12px;
}
@media (max-width: 768px) {
  .track {
    grid-template-columns: 80px 1fr;
    grid-template-rows: auto auto;
  }
  .track .cover {
    width: 80px;
    height: 80px;
  }
  .track iframe {
    grid-column: span 2;
    margin-top: 10px;
  }
}

/* ------------------------------
   Contact Page
------------------------------ */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  max-width: 1000px;
  margin: 0 auto;
  padding: 100px 20px;
}
.contact-form,
.socials a {
  background: var(--card);
  color: var(--text);
  border-radius: var(--radius);
  padding: 30px;
  box-shadow: var(--shadow);
  transition: transform .2s ease, box-shadow .2s ease;
}
.contact-form:hover,
.socials a:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0,0,0,.2);
}
.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 12px;
  margin-bottom: 20px;
  border: 1px solid #ddd;
  border-radius: 12px;
  font-size: 1rem;
  background: var(--bg);
  color: var(--text);
}
.contact-form button {
  background: var(--accent);
  border: none;
  padding: 12px 20px;
  border-radius: 12px;
  font-size: 1rem;
  color: white;
  cursor: pointer;
  transition: var(--transition);
}
.contact-form button:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0,0,0,.2);
}
.socials {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 20px;
}
.socials a {
  display: block;
  text-align: center;
  text-decoration: none;
  font-weight: 600;
}

@media (max-width: 768px) {
  .contact-grid {
    grid-template-columns: 1fr;
  }
}




#skills {
  margin: 60px auto;
  padding: 20px;
  max-width: 1000px;
}

#skills h2 {
  margin-bottom: 20px;
  text-align: center;
  font-size: 28px;
}

.skills {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
  justify-content: center;
  text-align: center;
}

.skill-card {
  background: rgba(255,255,255,0.08);
  border-radius: 12px;
  padding: 20px;
  text-align: center;
}

.skill-card i {
  font-size: 32px;
  margin-bottom: 10px;
}

.skill-card h3 {
  margin: 0;
  font-size: 20px;
}

.skill-card p {
  font-size: 14px;
  margin: 6px 0 14px;
  color: #ccc;
}

.bar {
  height: 14px;
  background: rgba(255,255,255,0.2);
  border-radius: 6px;
  overflow: hidden;
  position: relative;
}

.bar span {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  height: 100%;
  border-radius: 6px;
  width: 0; /* Start empty for animation */
  transition: width 2s ease;
  padding-right: 6px;
  color: #0b0b10;
  font-size: 12px;
  font-weight: bold;
}

#work {
  margin: 60px auto;
  padding: 20px;
  max-width: 1100px;
}

#work h2 {
  text-align: center;
  margin-bottom: 10px;
  font-size: 28px;
}

.work-intro {
  text-align: center;
  margin-bottom: 30px;
  color: #ccc;
  font-size: 16px;
}

.work-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
}

.work-card {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  background: #111;
  box-shadow: 0 4px 12px rgba(0,0,0,0.4);
  height: 200px;
}

.work-card img {
  width: 100%;
  height: 100%;            /* Force it to fill card height */
  object-fit: cover;       /* Crop instead of stretching */
  display: block;
  transition: transform 0.4s ease;
}

.work-card:hover img {
  transform: scale(1.1);
}

.overlay {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(0,0,0,0.75);
  color: #fff;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  opacity: 0;
  transition: opacity 0.4s ease;
  text-align: center;
  padding: 15px;
}

.work-card:hover .overlay {
  opacity: 1;
}

.overlay a {
  margin-top: 12px;
  background: #ffcc00;
  color: #000;
  padding: 8px 16px;
  border-radius: 6px;
  text-decoration: none;
  font-weight: bold;
  transition: background 0.3s;
}

.overlay a:hover {
  background: #ffaa00;
}

#testimonials {
  margin: 60px auto;
  padding: 20px;
  max-width: 1000px;
}

#testimonials h2 {
  text-align: center;
  margin-bottom: 30px;
  font-size: 28px;
}

.testimonials-grid {
  margin-top: 36px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}

.testimonial-card {
  /* Use variables for consistent light/dark mode styling */
    background: var(--card); 
    color: var(--text);
    padding: 24px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex; /* Makes the card expand to the height of the tallest card */
    flex-direction: column;
    justify-content: space-between;}

.testimonial-card:hover {
  transform: translateY(-6px);
    box-shadow: 0 12px 30px rgba(0,0,0,0.1);
}

.testimonial-card p {
  font-style: italic;
    font-size: 0.95rem;
    color: var(--text); /* Use main text color */
    opacity: 0.85;
    margin-bottom: 15px;
}

.testimonial-card h4 {
  font-style: italic;
  text-align: center;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--brand); /* Use your defined brand color */
}
.testimonial-card h4 a {
    color: inherit;
    text-decoration: dotted;
}



/* Pricing */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  margin-top: 30px;
}
.pricing-card {
  background: #111;
  padding: 30px 20px;
  border-radius: 14px;
  text-align: center;
  box-shadow: 0 4px 12px rgba(0,0,0,0.4);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  color: #0ea5e9;
}
.pricing-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 16px rgba(0,0,0,0.6);
}
.pricing-card .price {
  font-size: 28px;
  color: #ffcc00;
  margin: 10px 0 20px;
}
.pricing-card ul {
  list-style: none;
  padding: 0;
  margin-bottom: 20px;
}
.pricing-card ul li {
  margin: 8px 0;
  color: #ccc;
}

/* Downloads */
.downloads-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
  margin-top: 30px;
}
.download-card {
  background: #111;
  padding: 20px;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.4);
  text-align: center;
}
.download-card i {
  font-size: 32px;
  margin-bottom: 10px;
  color: #ffcc00;
}
.download-card a {
  display: inline-block;
  margin-top: 10px;
  padding: 8px 16px;
  background: #ffcc00;
  color: #000;
  text-decoration: none;
  border-radius: 6px;
  font-weight: bold;
  transition: background 0.3s;
}
.download-card a:hover {
  background: #ffaa00;
}

/* Modal styles */
.modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0; top: 0;
  width: 100%; height: 100%;
  background: rgba(0,0,0,0.7);
  justify-content: center;
  align-items: center;
}

.modal-content {
  background: #111;
  padding: 20px;
  border-radius: 12px;
  width: 90%;
  max-width: 500px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.6);
  color: #fff;
  animation: fadeIn 0.3s ease;
}

.modal-content h3 {
  margin-bottom: 15px;
  font-size: 22px;
}

.modal-content label {
  display: block;
  margin: 10px 0 5px;
}

.modal-content input,
.modal-content textarea {
  width: 100%;
  padding: 10px;
  border-radius: 6px;
  border: none;
  margin-bottom: 15px;
  background: #222;
  color: #fff;
}

.modal-content button {
  width: 100%;
}

.close {
  float: right;
  font-size: 24px;
  cursor: pointer;
}

@keyframes fadeIn {
  from {opacity: 0; transform: translateY(-10px);}
  to {opacity: 1; transform: translateY(0);}
}

/* Modal Overlay */
.modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  justify-content: center;
  align-items: center;
  backdrop-filter: blur(4px);
}

/* Modal Box */
.modal-content {
  background: linear-gradient(135deg, #0f172a, #1e293b);
  padding: 30px;
  border-radius: 16px;
  width: 90%;
  max-width: 500px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.6);
  color: #fff;
  animation: fadeIn 0.3s ease;
  position: relative;
}

/* Title */
.modal-content h3 {
  margin-bottom: 20px;
  font-size: 22px;
  text-align: center;
  color: #38bdf8;
}

/* Labels */
.modal-content label {
  display: block;
  margin: 10px 0 5px;
  font-weight: 500;
}

/* Inputs + Textarea */
.modal-content input,
.modal-content textarea {
  width: 100%;
  padding: 12px;
  border-radius: 8px;
  border: none;
  margin-bottom: 15px;
  background: #0f172a;
  color: #fff;
  font-size: 14px;
  outline: none;
  transition: all 0.2s ease;
}

.modal-content input:focus,
.modal-content textarea:focus {
  background: #1e293b;
  box-shadow: 0 0 0 2px #38bdf8;
}

/* Submit Button */
.modal-content button {
  width: 100%;
  background: #38bdf8;
  color: #0f172a;
  border: none;
  padding: 12px;
  border-radius: 8px;
  font-size: 16px;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.2s ease;
}

.modal-content button:hover {
  background: #0ea5e9;
  color: #fff;
}

/* Close Button (X) */
.close {
  position: absolute;
  top: 10px;
  right: 15px;
  font-size: 28px;
  cursor: pointer;
  color: #fff;
  transition: color 0.2s ease;
}

.close:hover {
  color: #38bdf8;
}

/* Success/Error Text */
#form-status {
  margin-top: 10px;
  font-size: 14px;
  text-align: center;
}

/* Animation */
@keyframes fadeIn {
  from {opacity: 0; transform: translateY(-20px);}
  to {opacity: 1; transform: translateY(0);}
}

/* Default button */
.service-btn {
  display: inline-block;
  padding: 10px 18px;
  border-radius: 8px;
  font-weight: 600;
  background: #38bdf8;
  color: #0f172a; /* dark text on light button */
  transition: all 0.2s ease;
  text-decoration: none;
}

/* Hover effect */
.service-btn:hover {
  background: #0ea5e9;
  color: #fff;
}

/* Dark mode button style */
body.dark .service-btn {
  background: #38bdf8;
  color: #fff; /* ✅ Fix: make text white in dark mode */
}

body.dark .service-btn:hover {
  background: #0ea5e9;
}

/* Contact Page Layout */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  margin-top: 30px;
  align-items: flex-start;
}

/* Form Styling */
.contact-grid form input,
.contact-grid form textarea {
  width: 100%;
  padding: 12px;
  margin-bottom: 15px;
  border-radius: 8px;
  border: none;
  background: #0f172a;
  color: #fff;
  font-size: 15px;
  transition: all 0.2s ease;
}

.contact-grid form input:focus,
.contact-grid form textarea:focus {
  background: #1e293b;
  outline: 2px solid #38bdf8;
}

/* Contact Info */
.contact-info h3 {
  margin-top: 20px;
  margin-bottom: 10px;
  color: #38bdf8;
}

.contact-info p {
  margin: 8px 0;
  font-size: 15px;
}

.contact-info a {
  color: #38bdf8;
  text-decoration: none;
}

.contact-info a:hover {
  text-decoration: underline;
}

/* Social Links */
.social-links {
  margin-top: 15px;
}

.social-links a {
  display: inline-block;
  margin-right: 12px;
  font-size: 24px;
  color: #38bdf8;
  transition: color 0.2s ease, transform 0.2s ease;
}

.social-links a:hover {
  color: #0ea5e9;
  transform: scale(1.1);
}

/* Mobile Responsive */
@media(max-width: 768px) {
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
}

/* CTA Button Glow in Dark Mode */
body.dark .service-btn {
  background: #38bdf8;
  color: #fff;
  box-shadow: 0 0 10px rgba(56, 189, 248, 0.6);
}

body.dark .service-btn:hover {
  background: #0ea5e9;
  box-shadow: 0 0 15px rgba(14, 165, 233, 0.9);
}

/* Preloader container */
#preloader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: #fff; /* background color */
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  padding: 20px;
  box-sizing: border-box;
}

/* Logo styling */
#preloader img {
  max-width: 120px;   /* shrink for mobile */
  width: 30%;
  height: auto;
  margin-bottom: 20px;
}

/* Progress bar container */
/* --- Language Proficiency: MINIMALIST & CLEAN --- */

.skills-grid {
    max-width: 900px;
    margin: 40px auto 0;
    display: flex;
    flex-direction: column; /* Stack skills vertically for a cleaner look */
    gap: 25px;
}

.skill-item {
    padding: 5px 0;
    /* Use flexbox to align name and percentage on the same line */
    display: flex;
    flex-wrap: wrap; /* Allow wrapping on very small screens */
    align-items: baseline;
    justify-content: space-between;
}

.skill-name {
    font-weight: 600;
    font-size: 1.05rem;
    color: var(--text);
}

.skill-percent {
    font-weight: 700;
    color: var(--brand); /* Highlight the percentage */
    font-size: 1.05rem;
    margin-left: 10px; /* Space from the name */
}

/* Progress Bar Container (The Track) */
.progress-bar-container {
    width: 100%;
    /* Use the contrasting panel/muted color for the background track */
    background: var(--panel); 
    border-radius: 2px; /* Very subtle rounding */
    height: 4px; /* Very thin bar */
    margin-top: 5px;
    overflow: hidden;
}

/* Progress Bar (The Fill) */
.progress-bar {
    background: var(--brand); 
    height: 100%;
    width: 0%; /* Initial state for animation */
    transition: width 1.9s ease-out; /* Longer, smoother animation */
}

/* --- WORK PAGE: Professional Tabbed Navigation --- */

/* --- WORK PAGE: Client Clarity Checklist CTA (Option 4) --- */

.client-clarity-cta {
    /* Use the contrasting gradient-bg class to make it stand out */
    background: var(--brand); 
    color: white; /* Ensure text is white for high contrast */
    text-align: center;
    padding: 60px 20px;
    margin-bottom: 50px;
}

.clarity-content {
    max-width: 900px;
    margin: 0 auto;
}

.clarity-headline {
    font-size: clamp(2rem, 4vw, 3.5rem);
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 15px;
    color: white; /* Keep white for the headline */
}

.clarity-subhead {
    font-size: 1.25rem;
    max-width: 700px;
    margin: 0 auto 35px;
    opacity: 100%;
    color: white;
    font-weight: 400;
}

.clarity-cta {
    /* Override the primary-cta style to remove the shadow (since the whole section is colorful) */
    box-shadow: none;
    padding: 15px 40px;
    background: var(--accent); /* Use a secondary accent color for the button */
    font-size: 1.15rem;
}

.clarity-cta:hover {
    background: #fff; /* White background on hover */
    color: var(--brand); /* Brand color text on hover */
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}
/* --- Language Proficiency: Final Logo Alignment --- */

.skill-label {
    /* Ensure the logos and name are aligned centrally with the text baseline */
    display: flex;
    align-items: center;
    gap: 6px; /* Reduced space between logo and name/other logos */
    max-width: 65%; /* Ensure there is room for the percentage on the right */
}

.skill-logo {
    /* Set a small, consistent size for most logos */
    width: 20px;
    height: 20px;
    /* This filter is CRUCIAL for making colored/dark logos legible in dark mode */
    filter: drop-shadow(0 0 1px rgba(0, 0, 0, 0.2)); 
}

/* Dark Mode Logo Inversion (Crucial for a clean look) */
.dark .skill-logo {
    /* Slight inversion and drop shadow for a clean look on the dark background */
    filter: invert(100%) hue-rotate(180deg) brightness(0.9) drop-shadow(0 0 1px rgba(255, 255, 255, 0.4));
}
/* Ensure track color is appropriate in dark mode */
.dark .progress-bar-container {
    background: #3a3a3a;
}

/* --- Final Logo Alignment Fix (Logos after Name) --- */
.skill-name {
    /* Use margin-right to create space between the name and the first logo */
    margin-right: 10px; 
    font-weight: 600;
    font-size: 1.05rem;
    color: var(--text);
}

/* The existing .skill-label and .skill-logo rules handle the alignment beautifully:
.skill-label { 
    display: flex; 
    align-items: center; 
    gap: 6px; 
} 
*/
/* Actual progress bar */

.support-btn {
  display: inline-block;
  padding: 12px 24px;
  background: #ff6b6b;
  color: #fff;
  font-weight: bold;
  border-radius: 30px;
  border: none;
  cursor: pointer;
  transition: background 0.3s ease;
}

.support-btn:hover {
  background: #e84141;
}
/* Dropdown wrapper */
.dropdown {
  position: relative;
  display: inline-block;
}

/* Dropdown content hidden by default */
/* Dropdown wrapper */
.dropdown {
  position: relative;
  display: inline-block;
}

/* Dropdown content */
.dropdown-content {
  display: none;
  position: absolute;
  background: #fff;
  min-width: 180px;
  box-shadow: 0px 8px 16px rgba(0,0,0,0.2);
  z-index: 1000;
  border-radius: 8px;
  overflow: hidden;
}

/* Dropdown links */
.dropdown-content a {
  color: #333;
  padding: 12px 16px;
  text-decoration: none;
  display: block;
  transition: background 0.3s;
}

.dropdown-content a:hover {
  background: #f0f0f0;
}

/* Show dropdown on hover */
.dropdown:hover .dropdown-content {
  display: block;
}

/* Style navbar links */
nav a {
  padding: 10px 16px;
  color: white;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s;
}

nav a:hover {
  color: #ffcc00;
}
/* Dropdown wrapper */
.dropdown {
  position: relative;
  display: inline-block;
}

/* Dropdown content */
.dropdown-content {
  display: none;
  position: absolute;
  background: #fff;
  min-width: 180px;
  box-shadow: 0px 8px 16px rgba(0,0,0,0.2);
  z-index: 1000;
  border-radius: 8px;
  overflow: hidden;
}

/* Dropdown links */
.dropdown-content a {
  color: #333;
  padding: 12px 16px;
  text-decoration: none;
  display: block;
  transition: background 0.3s;
}

.dropdown-content a:hover {
  background: #f0f0f0;
}

/* Show dropdown on hover */
.dropdown:hover .dropdown-content {
  display: block;
}

/* Style navbar links */
nav a {
  padding: 10px 16px;
  color: white;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s;
}

nav a:hover {
  color: #ffcc00;
}


  /* Progress bar */
  #scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    height: 4px;
    background: linear-gradient(90deg, #00cc66, #33ff99);
    width: 0%;
    z-index: 10000;
    transition: width 0.2s ease;
  }

  /* Scroll-down arrow */
  .scroll-down {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 24px;
    color: white;
    animation: bounce 1.5s infinite;
    cursor: pointer;
  }
  @keyframes bounce {
    0%, 100% { transform: translate(-50%, 0); }
    50% { transform: translate(-50%, 10px); }
  }

  /* Reveal animation */
  .reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease;
  }
  .reveal.visible {
    opacity: 1;
    transform: translateY(0);
  }

  /* Navbar hover fix for light mode */
  body:not(.dark) header nav a:hover {
    color: #1435f1;
  }

/* Colors */
.html span { background: #E34F26; }
.js span { background: #F7DF1E; }
.php span { background: #777BB4; color: #fff; }
.python span { background: #3776AB; color: #fff; }
/* --- New Service Grid Styling (Index) --- */

/* Container for the 3 service items */
.service-grid {
    margin-top: 36px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); /* Responsive 3-column */
    gap: 30px;
}

/* Individual Service Item Styling */
.service-item {
    background: var(--card);
    border-radius: var(--radius);
    padding: 30px;
    box-shadow: var(--shadow);
    transition: transform .3s ease, box-shadow .3s ease;
    text-align: center; /* Center the icon and text */
}

.service-item:hover {
    transform: translateY(-8px); /* Lift higher on hover for a premium feel */
    box-shadow: 0 18px 45px rgba(0,0,0,.15);
}

.service-item h3 {
    margin-top: 15px;
    margin-bottom: 10px;
    font-size: 1.3rem;
}

/* Styling for the Icon Box (The Font Awesome icons) */
.icon-box {
    font-size: 2.5rem; 
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 60px; 
    height: 60px;
    border-radius: 50%;
    /* Use a gradient/brand color for the icon */
    background: linear-gradient(135deg, var(--brand), #38bdf8); /* Bright gradient */
    color: var(--bg); /* White/light text inside the circle */
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
}

.service-item p {
    color: var(--muted);
    font-size: 0.95rem;
}

/* Mobile: Stack items */
@media (max-width: 768px) {
    .service-grid {
        grid-template-columns: 1fr;
    }
}

/* --- New Work Page Styles --- */

/* Unified Grid Styling */
.work-grid {
    display: grid;
    /* This creates a responsive grid: 2 columns on tablets, 3 on desktop */
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    padding: 20px 0;
    margin-top: 40px;
}

/* Card Styling */
.work-card {
    position: relative;
    overflow: hidden;
    border-radius: var(--radius); /* Uses your global radius variable */
    box-shadow: var(--shadow); /* Uses your global shadow variable */
    height: 300px; /* Gives all cards a consistent height */
    transition: transform 0.3s ease-out, box-shadow 0.3s ease-out;
}

.work-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

.work-card img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: transform 0.5s ease;
}

.work-card:hover img {
    transform: scale(1.05); /* Zoom effect on hover */
}
/* --- WORK PAGE: Client Clarity Checklist CTA --- */

.client-clarity-cta {
    /* Use the contrasting brand color background to make it stand out */
    background: var(--brand); 
    color: white; 
    text-align: center;
    padding: 60px 20px;
    margin-bottom: 50px; /* Space between this CTA and the project grid below */
    /* Ensure the padding class works correctly */
}

.clarity-content {
    max-width: 900px;
    margin: 0 auto;
}

.clarity-headline {
    font-size: clamp(2rem, 4vw, 3.5rem);
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 15px;
    color: white; 
}

.clarity-subhead {
    font-size: 1.25rem;
    max-width: 700px;
    margin: 0 auto 35px;
    opacity: 0.9;
}

.clarity-cta {
    /* Use the existing primary-cta button style */
    box-shadow: none; /* Override primary shadow */
    padding: 15px 40px;
    background: var(--accent); /* Secondary accent color for the button */
    font-size: 1.15rem;
    font-weight: 700;
}

.clarity-cta:hover {
    background: #fff; /* White background on hover */
    color: var(--brand); /* Brand color text on hover */
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}
/* Overlay Details */
.work-card .overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 20px;
    background: linear-gradient(to top, rgba(0,0,0,0.85), rgba(0,0,0,0));
    color: white;
    transform: translateY(100%); /* Start hidden */
    transition: transform 0.4s ease;
}

.work-card:hover .overlay {
    transform: translateY(0); /* Reveal on hover */
}

.work-card h3 {
    margin-top: 0;
    color: var(--brand); /* Highlight title with Coral */
    text-shadow: 0 0 5px rgba(0,0,0,0.5);
}

.work-card a {
    display: inline-block;
    background: var(--brand); /* Coral button */
    color: white;
    padding: 6px 15px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 600;
    margin-top: 10px;
    transition: background 0.2s;
}

.work-card a:hover {
    background: #e85a5a;
}

/* You might need to adjust your existing .tile styles if you kept any of the old HTML */

/* --- UNIFIED ABOUT & SPLIT SECTION STYLING --- */

/* 1. Base Two-Column Layout (Applies to both sections) */
.about-flex-container {
  
    display: grid;
    grid-template-columns: 0fr 1.5fr; /* Image takes less space, content takes more */
    gap: 60px;
    align-items: center;
    padding-bottom: 80px;

    /* **CRITICAL FIX:** Define the base grid areas for default order [Image] [Text] */
    grid-template-areas: "image text";
}

/* 2. Content Column Styling (Applies to both) */
.about-content-column {
    /* **CRITICAL FIX:** Assign the grid area */
    grid-area: text;
    text-align: left; 
    display: grid;
}

/* 3. Image Column Styling (Applies to both) */
.about-image-column {
    /* **CRITICAL FIX:** Assign the grid area */
    grid-area: image;
    display: flex;
    justify-content: center;
}

/* --- About ME Section (Profile Picture) Specific Styles --- */

/* These target the image-wrapper ONLY in the first About section */
.image-wrapper {
    width: 280px;
    height: 280px;
    position: relative;
    overflow: hidden;
    
    /* Apply the circle shape */
    border-radius: 50%;
    border: 6px solid var(--brand);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover; 
}

/* --- Selected Work Section (Computer Image) Specific Styles --- */

/* This overrides the circular style for the image in the second (Selected Work) section */
.about-flex-container:not(.reverse-flex) .about-image-column img,
.about-flex-container.reverse-flex .about-image-column img {
    /* **CRITICAL FIX:** Override the circular style from the image-wrapper above */
    border-radius: var(--radius); 
    width: 100%;
    height: auto;
    object-fit: cover;
    box-shadow: var(--shadow);
    /* Ensure the raw image in this section doesn't inherit circle properties */
    border: none;
}


/* 4. Reverse Columns for Selected Work (Desktop) */
.about-flex-container.reverse-flex {
    /* Reverses the desktop order to: [Text] [Image] */
    grid-template-areas: "text image";
}

/* 5. Mobile Responsiveness */
@media (max-width: 768px) {
    .about-flex-container {
        /* Stack the columns vertically on smaller screens (Image on top, Text below) */
        grid-template-columns: 1fr;
        gap: 40px;
        grid-template-areas: 
            "image"
            "text";
    }
    
    .about-content-column {
        text-align: center; /* Center text for mobile view */
    }

    .about-content-column .intro-line {
        border-left: none;
        padding-left: 0;
    }
}

/* --- Hero Section V2 Styling (Rank 10/10) --- */

.hero-v2 {
    /* Use a linear gradient from your brand color to a deeper tone */
    background: linear-gradient(135deg, var(--brand), #a33838); 
    color: white; 
    min-height: 85vh; 
    padding: 100px 20px 80px;
    display: flex;
    align-items: center;
    overflow: hidden;
}

/* Split Layout Container */
.hero-split-container {
    display: grid;
    /* Two columns: 1.1x for text, 0.9x for image */
    grid-template-columns: 1.1fr 0.9fr; 
    gap: 40px;
    align-items: center;
    max-width: 1200px; /* Optional: Constrain width for large screens */
    margin: 0 auto;
}

/* Text Column */
.hero-text-column {
    text-align: left; /* Text alignment for high readability */
}

.tagline {
    font-size: 1.1em;
    font-weight: 600;
    color: #ffc2b3; /* Lighter coral for subtle contrast */
    margin-bottom: 10px;
}

.headline {
    font-size: clamp(2.5rem, 6vw, 4.8rem); 
    font-weight: 900;
    line-height: 1.05;
    margin-bottom: 25px;
}

.coral-highlight {
    color: #ffe8d6; /* Very light color for maximum punch */
    text-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

.subhead {
    font-size: 1.25em;
    max-width: 550px;
    margin: 0 0 40px;
    opacity: 0.9;
}

/* CTA Buttons */
.hero-ctas {
    display: flex;
    gap: 20px;
    align-items: center;
}

/* Redefine Primary CTA for better contrast on the dark background */
.primary-cta {
    background: #ffe8d6; /* Use the light highlight color */
    color: var(--brand); /* Use the main coral for text contrast */
    font-weight: 700;
    padding: 15px 30px;
    border-radius: 50px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
    transition: transform 0.2s, background 0.2s;
}

.primary-cta:hover {
    background: white;
    transform: translateY(-3px);
}

/* Secondary Link style */
.secondary-link {
    color: #ffc2b3; /* Matches the tagline */
    text-decoration: none;
    font-weight: 500;
    opacity: 0.8;
    transition: opacity 0.3s;
}

.secondary-link:hover {
    opacity: 1;
    text-decoration: underline;
}

/* Visual Column */
.hero-visual-column {
    display: flex;
    justify-content: flex-end; /* Align to the right */
    align-items: center;
}

.hero-mockup {
    width: 100%;
    max-width: 500px; 
    height: auto;
    /* Optional: Add a subtle perspective shadow */
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
    border-radius: var(--radius);
}

/* Mobile Responsiveness: Stack columns */
@media (max-width: 992px) {
    .hero-split-container {
        /* Stack columns vertically */
        grid-template-columns: 1fr;
        text-align: center;
    }
    .hero-text-column {
        order: 2;
    }
    .hero-visual-column {
        order: 1; /* Place image above text on mobile */
        justify-content: center;
        margin-bottom: 30px;
    }
    .hero-ctas {
        justify-content: center;
    }
}
/* --- SERVICES PAGE V2: LAYOUT OVERHAUL --- */

/* 1. Services Hero */
.services-hero {
    min-height: 50vh; 
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    background: linear-gradient(135deg, var(--brand), #a33838); /* Deeper Sunset */
    color: white;
}

.services-hero .headline {
    font-size: clamp(2.2rem, 5vw, 4rem);
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 15px;
    text-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.services-hero .subhead {
    font-size: 1.15em;
    max-width: 800px;
    opacity: 0.9;
    color: whitesmoke;
}

/* 2. Core Offerings Grid */
/* --- 2. Core Offerings Grid --- */
.core-offerings-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.service-icon-card {
    background: var(--panel);
    padding: 30px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    transition: transform 0.3s, background 0.3s;
    border: 1px solid rgba(var(--text-rgb), 0.1); /* Use border for separation */
}

.service-icon-card i {
    font-size: 2.5em;
    color: var(--brand);
    margin-bottom: 15px;
}

.service-icon-card h3 {
    font-size: 1.4em;
    color: var(--text);
    margin-top: 0;
}

.service-icon-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, var(--shadow-opacity, 0.15));
}


/* --- 3. Pricing & CTA Split Screen --- */

/* Alternate background gradient (uses the new variables) */
.gradient-bg-alt {
    background: linear-gradient(45deg, var(--alt-start), var(--alt-end)); 
    color: var(--text);
}

.pricing-cta-split {
    color: var(--text);
}

.split-content-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.column-title {
    font-size: clamp(1.8rem, 3vw, 2.5rem);
    color: var(--brand);
    margin-bottom: 30px;
}

/* Pricing List Styling (Small version) */
.pricing-grid-small {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-bottom: 30px;
    border-left: 3px solid var(--muted);
    padding-left: 20px;
}

.pricing-plan-small {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
}

.pricing-plan-small h4 {
    font-size: 1.1em;
    font-weight: 600;
    margin: 0;
}

.price-small {
    font-size: 1.1em;
    font-weight: 700;
    color: var(--brand);
    margin: 0;
}

/* FIX: Highlighted state must adapt to dark mode */
.pricing-plan-small.highlighted {
    background: var(--brand);
    color: white; /* Text is white on brand color */
    padding: 10px;
    border-radius: 5px;
    transform: scale(1.05);
}

.pricing-plan-small.highlighted h4, .pricing-plan-small.highlighted .price-small {
    color: white; 
}

.split-note {
    font-size: 0.9em;
    color: var(--muted);
    line-height: 1.5;
}

/* CTA Column */
.cta-column p {
    font-size: 1.1em;
    margin-bottom: 40px;
}

/* Mobile Responsiveness for Split */
@media (max-width: 900px) {
    .split-content-container {
        grid-template-columns: 1fr; /* Stack on mobile */
        gap: 50px;
    }
    .pricing-column, .cta-column {
        text-align: center;
    }
    .pricing-grid-small {
        border-left: none; /* Remove vertical line on mobile */
        padding-left: 0;
        /* Center the list content */
        width: fit-content;
        margin: 0 auto 30px auto; 
    }
}

/* --- Services Page: Downloads/Resources Section --- */

/* --- Services Page: Downloads/Resources Section --- */

#downloads {
    padding-top: 40px;
    padding-bottom: 80px; 
    text-align: center;
}

.downloads-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.download-card {
    text-align: center;
    background: var(--panel);
    padding: 30px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    transition: transform 0.3s, background 0.3s, box-shadow 0.3s;
    border: 1px solid rgba(var(--text-rgb), 0.1);
}

.download-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, var(--shadow-opacity, 0.15));
}

.download-card i {
    font-size: 3em;
    color: var(--accent); /* Use accent color for icons */
    margin-bottom: 15px;
}

.download-card h3 {
    color: var(--text);
    margin-bottom: 10px;
}

.download-card p {
    color: var(--muted);
    font-size: 0.95em;
    flex-grow: 1; 
}

.download-card a {
    display: inline-block;
    margin-top: 25px; 
    color: white; 
    background: var(--brand); 
    padding: 10px 20px;
    text-decoration: none;
    border-radius: 8px; 
    font-weight: 600;
    transition: background 0.3s, transform 0.2s;
}

.download-card a:hover {
    background: var(--accent); /* Change hover to accent color for visual variety */
    transform: translateY(-1px);
}

/* --- WORK PAGE: LAYOUT & HERO --- */

.work-hero {
    text-align: center;
    padding-top: 50px;
    padding-bottom: 50px;
}

.work-hero .headline {
    font-size: clamp(2.2rem, 5vw, 3.5rem);
    margin-bottom: 10px;
    color: var(--brand);
}

.work-hero .subhead {
    font-size: 1.1em;
    max-width: 700px;
    margin: 0 auto;
    color: var(--text);
}


/* --- FILTERING SYSTEM --- */
.work-filters {
    text-align: center;
    padding: 20px 0 50px;
}

.filter-buttons {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
}

.filter-btn {
    background: var(--panel);
    color: var(--text);
    border: 1px solid var(--muted);
    padding: 10px 20px;
    border-radius: 50px;
    cursor: pointer;
    font-weight: 500;
    transition: background 0.2s, color 0.2s, border-color 0.2s;
}

.filter-btn:hover {
    border-color: var(--brand);
}

.filter-btn.active {
    background: var(--brand);
    color: white;
    border-color: var(--brand);
}

/* --- PROJECT GRID (Masonry-like) --- */

.work-grid {
    display: grid;
    /* Responsive Grid: 2 columns on tablet, 3 on desktop */
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    padding-bottom: 80px;
}

/* Optional: Make some cards span 2 columns on desktop for visual variety */
@media (min-width: 1024px) {
    .work-grid {
         grid-template-columns: repeat(3, 1fr);
    }
    .work-card.wide {
        grid-column: span 2;
    }
}


/* --- WORK CARD STYLING --- */

.work-card {
    position: relative;
    overflow: hidden;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    background: var(--panel);
    cursor: pointer;
    /* Hide filtered items initially (opacity is handled by JS) */
    display: block; 
}

.work-card img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.4s ease;
}

/* Overlay Styling */
.overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7); /* Dark semi-transparent background */
    color: white;
    display: flex;
    flex-direction: column;
    justify-content: flex-end; /* Align content to the bottom */
    padding: 20px;
    opacity: 0; /* Hidden by default */
    transition: opacity 0.4s ease;
    text-align: left;
}

/* Hover Effect */
.work-card:hover img {
    transform: scale(1.05);
}

.work-card:hover .overlay {
    opacity: 1; /* Overlay appears on hover */
}

.overlay h3 {
    font-size: 1.6rem;
    margin-top: 5px;
    margin-bottom: 5px;
}

.overlay p {
    font-size: 0.95rem;
    opacity: 0.8;
    margin-bottom: 10px;
}

.category-tag {
    align-self: flex-start; /* Align tag to the left */
    background: var(--brand);
    padding: 4px 10px;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    margin-bottom: 10px;
}

.project-link {
    color: #ffe8d6; /* Light, bright link color */
    text-decoration: underline;
    font-weight: 600;
    transition: color 0.2s;
}

.project-link:hover {
    color: white;
}

/* --- Footer Styling --- */
/* --- FOOTER: Professional, Structured, & Light/Dark Mode Ready --- */

/* --- FOOTER: FINAL PROFESSIONAL STYLING --- */

footer {
    /* Base styles - Cleaned up conflicting padding */
    background: var(--footer-dark-bg, #1e1e1e); 
    color: white; 
    padding: 40px 20px; /* Reduced vertical padding for better framing */
    border-top: 5px solid var(--brand); 
    font-size: 0.95rem;
}

/* Fallbacks for Dark Mode */
body:not(.dark) { --footer-dark-bg: #1e1e1e; }
body.dark { --footer-dark-bg: #121212; }

.footer-content {
    /* Desktop Grid Setup */
    display: grid;
    grid-template-columns: 2fr 1fr 1.5fr; 
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto; /* Centers content */
}

/* Column Structure and Text */
.footer-col h4 {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 20px;
    color: #ffc2b3;
}
.branding-col .logo { font-size: 2rem; font-weight: 900; margin-bottom: 10px; }
.tagline { opacity: 0.8; font-style: italic; margin-bottom: 20px; }
.copyright-text { font-size: 0.85rem; opacity: 0.6; }

/* Links & Social */
.links-col ul { list-style: none; padding: 0; }
.links-col ul li a { color: white; display: block; padding: 5px 0; opacity: 0.8; transition: color 0.2s; }
.links-col ul li a:hover, .social-icons a:hover { color: var(--brand); opacity: 1; }
.social-icons { display: flex; gap: 15px; margin-bottom: 30px; }
.social-icons a { color: white; font-size: 1.4rem; }

/* CTA Button */
.footer-cta {
    background: #ffe8d6; 
    color: var(--brand); 
    padding: 12px 25px;
    font-weight: 700;
    border-radius: 50px;
    text-decoration: none;
    display: inline-block;
    transition: transform 0.2s, background 0.2s;
}
.footer-cta:hover { transform: translateY(-2px); background: white; }


/* --- MOBILE RESPONSIVENESS (The final compact fix) --- */
@media (max-width: 768px) {
    .footer-content {
        grid-template-columns: 1fr; 
        text-align: center;
        gap: 0; 
    }
    
    .footer-col {
        /* EXTREME COMPACTNESS: Padding is the only vertical separator */
        padding-top: 15px; 
        padding-bottom: 15px; 
        margin: 0; 
        border-bottom: 1px dashed rgba(255, 255, 255, 0.1);
    }
    
    .links-col ul {
        width: fit-content;
        margin: 0 auto; 
    }

    .social-icons {
        justify-content: center; 
        margin-top: 10px; 
        margin-bottom: 10px; 
    }

    /* Final section cleanup */
    .social-col {
        border-bottom: none;
        padding-bottom: 0;
    }
}
/* --- Mobile Responsiveness (Applied below 768px) --- */
@media (max-width: 768px) {

    /* 1. Base Container Stack */
    .about-flex-container {
        /* Stack the columns vertically on smaller screens */
        grid-template-columns: 1fr;
        gap: 40px;
        /* Force a single column stack on mobile, always Image on top, Text below */
        grid-template-areas: 
            "image"
            "text";
    }

    /* 2. Content Column Alignment */
    .about-content-column {
        /* Assign the correct grid area */
        grid-area: text; 
        text-align: center; /* Center text for mobile view */
    }

    /* 3. Image Column Alignment */
    .about-image-column {
        /* Assign the correct grid area */
        grid-area: image;
        /* Ensure the image remains centered */
        justify-content: center;
    }
    
    /* 4. Reset Specific Styles */
    .about-content-column .intro-line {
        border-left: none;
        padding-left: 0;
    }
    
    /* The reverse-flex class now has NO effect on mobile layout due to the explicit grid-template-areas definition above */
  }