    :root {
      --primary: #1e3a5f;
      --accent: #6b7280;
      --bg: #ffffff;
      --text: #1e3a5f;
      --card: #f5f5f5;
    }

    [data-theme="dark"] {
      --primary: #aad8ff;
      --accent: #a3a3a3;
      --bg: #121212;
      --text: #e0e0e0;
      --card: #1e1e1e;
    }

    html {
      scroll-behavior: smooth;
    }

    body {
      font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
      margin: 0;
      background-color: var(--bg);
      color: var(--text);
      line-height: 1.6;
      transition: background-color 0.3s, color 0.3s;
      padding-top: 40px; /* space for ribbon */
    }

    /* --- Hero Section --- */
    .hero {
      position: relative;
      overflow: hidden;
    }

    .hero-bg {
      /*background: url('https://images.unsplash.com/photo-1605296867304-46d5465a13f1?crop=entropy&cs=tinysrgb&fit=max&fm=jpg&q=80&w=1600') no-repeat center/cover;*/
      background: url('../img/photo-1605296867304-46d5465a13f1.jpg') no-repeat center/cover;
      height: 200px;
      width: 100%;
    }

    .hero-content {
      display: flex;
      align-items: flex-start;
      padding: 40px 20px 20px;
      max-width: 900px;
      margin: -100px auto 0;
      position: relative;
      background-color: var(--bg);
      border-radius: 12px;
      box-shadow: 0 6px 20px rgba(0,0,0,0.1);
      flex-wrap: wrap;
      transition: background-color 0.3s;
	  margin-bottom: 20px;
    }

    .hero-image img {
      width: 200px;
      height: 200px;
      object-fit: cover;
      border-radius: 8px;
      border: 4px solid var(--bg);
      box-shadow: 0 2px 10px rgba(0,0,0,0.2);
      margin-right: 30px;
      background-color: white;
      transition: border-color 0.3s, background-color 0.3s;
    }

    .hero-text {
      min-width: 240px;
    }

    .hero-text h1 {
      margin: 0 0 10px;
      font-size: 1.8rem;
      color: var(--primary);
      transition: color 0.3s;
    }
	
	.hero-cv-download-container {
      width: 240px;
	  margin-top: 40px;
	}
	
	.hero-cv-download-button {
	  position: absolute;
      right: 1.5rem;
      bottom: 1.5rem;
      display: inline-block;
      padding: 0.3em 0.8em;
      background-color: #007bff;
      color: white;
      text-decoration: none;
      border-radius: 5px;
      font-weight: bold;
	}
    .hero-cv-download-button:hover {
      background-color: #0056b3;
    }

    /* Ribbon with toggle and language selector */
    #ribbon {
      position: fixed;
      top: 0;
      left: 0;
      width: 100%;
      background-color: var(--primary);
      color: white;
      padding: 8px 20px;
	  padding-bottom: 20px;
      font-weight: bold;
      font-size: 1rem;
      z-index: 9999;
      box-shadow: 0 2px 4px rgba(0,0,0,0.2);
      user-select: none;
      display: flex;
	  flex-wrap: wrap;
      justify-content: space-between;
      align-items: center;
      transition: background-color 0.3s, color 0.3s;
    }
	
    [data-theme="dark"] #ribbon {
      background-color: var(--accent);
      color: var(--bg);
      box-shadow: 0 2px 8px rgba(0,0,0,0.8);
    }

    #ribbon-photo-container {
	  margin-right: 25px;
	}
    #ribbon-photo-container img {
      width: 36px;
      height: 36px;
      border: 1px solid white;
      border-radius: 3px;
    }
	
	#ribbon-text {
	  padding-top: 6px;
	}

    .ribbon-right-controls {
      display: flex;
	  flex: 50%;
      align-items: center;
	  justify-content: right;
	  padding-right: 30px;
    }

    /* Switch Toggle Styles */
    .switch {
      position: relative;
      display: inline-block;
      width: 44px;
      height: 24px;
      margin-left: 1px;
      vertical-align: middle;
    }
    .switch input { 
      opacity: 0;
      width: 0;
      height: 0;
    }
    .slider {
      position: absolute;
      cursor: pointer;
      top: 0; left: 0; right: 0; bottom: 0;
      background-color: #ccc;
      transition: .4s;
      border-radius: 24px;
    }
    .slider:before {
      position: absolute;
      content: "";
      height: 14px;
      width: 14px;
      left: 3px;
      bottom: 3px;
      background-color: white;
      transition: .4s;
      border-radius: 50%;
    }
    input:checked + .slider {
      background-color: #2196F3;
    }
    input:checked + .slider:before {
      transform: translateX(20px);
    }

    /* Language Selector */
    #xx-lang-select {
      margin-left: 20px;
      font-size: 0.8rem;
      padding: 4px 8px;
      border-radius: 6px;
      border: none;
      background-color: var(--bg);
      color: var(--text);
      cursor: pointer;
      transition: background-color 0.3s, color 0.3s;
      height: 28px;
    }
	#lang-select {
	  background-color: transparent;
	  xx-border: 1px solid #ccc; /* Optional: keep a subtle border */
	  border: none;
	  color: inherit; /* Use text color of the parent */
	  padding: 2px 6px;
	  font-size: 0.8rem;
	  appearance: none; /* Remove default arrow for most browsers */
	  -webkit-appearance: none;
	  -moz-appearance: none;
	  outline: none;
	  cursor: pointer;
	  /* Optional: add a subtle arrow icon with background image or SVG if you want */
	}
    #lang-select:hover {
      background-color: var(--accent);
      color: var(--bg);
    }

    /* --- Side Menu --- */
    .side-menu {
      position: fixed;
      top: 60px;
      right: 0;
      background-color: var(--bg);
      border-left: 2px solid var(--accent);
      /*padding: 20px 15px;*/
	  padding: 2px 2px;
      z-index: 999;
      transition: background-color 0.3s, border-color 0.3s;
      max-width: 180px;
      height: fit-content;
      font-weight: 600;
    }

    [data-theme="dark"] .side-menu {
      background-color: #17191d;
      border-color: var(--accent);
    }

    .side-menu ul {
      list-style: none;
      padding: 0;
      margin: 0;
    }

    .side-menu li {
      margin: 0 0;
    }

    .side-menu a {
      text-decoration: none;
      color: var(--primary);
      font-weight: bold;
      transition: color 0.3s;
      display: block;
	  padding: 8px 0px;
	  padding-left: 12px;
      margin: 0 0;
    }

    .side-menu a:hover,
    .side-menu a:focus,
    .side-menu a.active {
      /*color: var(--accent);*/
	  /*filter: invert(1);*/
      background-color: var(--accent);
      color: var(--bg);
    }
    .side-menu-toggle {
      display: none;
      font-size: 1.4rem;
      cursor: pointer;
    }

    /* --- Page Sections --- */
    .page-section {
      padding: 30px 20px;
      margin: 0;
      color: var(--text);
      min-height: 60vh;
      transition: background-color 0.3s, color 0.3s;
      position: relative;
      overflow: hidden;
    }
	
    .page-section .background-image,
    .page-section .background-overlay {
      position: absolute;
      top: 0;
      left: 0;
      width: 100%;
      height: 100%;
      pointer-events: none;
      z-index: 1;
    }
    
    .page-section .background-image {
      /*background-image: url('https://www.transparentpng.com/thumb/pattern/PVl0n8-patterns-for-stencilled-stamped-concrete-mandurah-australia.png');*/
      background-size: cover;
      background-position: center;
      /*opacity: 0.2;*/ /* Dims the image slightly */
    }
    [data-theme="dark"] .page-section .background-image {
      display: none;
    }
    
    .page-section .background-overlay {
      /*
	  background-color: rgba(0, 255, 0, 0.1);
      */
      /* Black with 40% opacity */
    }

    .section-inner {
      max-width: 900px;
      margin: 0 auto;
      position: relative;
      z-index: 2;
    }
	
    .section-icon {
	  position: absolute;
  	  top: 3rem;
  	  left: 3rem;
      font-size: 5rem; /* about 5-6 lines tall */
      pointer-events: none; /* doesn't block clicks */
      color: rgba(105, 105, 105, 0.8); /* Dimmed Gray */
      pointer-events: none; /* doesn't block clicks */
    }
	[data-theme="dark"] .section-icon {
      color: rgba(255, 255, 255, 0.8); /* White */
    }

    footer {
      text-align: center;
      padding: 20px;
      background-color: var(--card);
      color: var(--accent);
    }
	
    /* Toolbox container */
    .toolbox {
      position: fixed;
      top: 50%;
      left: 0;
      transform: translateY(-50%);
      display: flex;
      flex-direction: column;
      background: #fff;
      border: 1px solid #ccc;
      border-left: none;
      border-radius: 0 8px 8px 0;
      box-shadow: 2px 2px 10px rgba(0, 0, 0, 0.1);
      z-index: 1000;
      padding: 4px 0;
    }

    /* Button style */
    .toolbox button {
      background: none;
      border: none;
      padding: 10px 14px;
      cursor: pointer;
      transition: background 0.2s ease;
      display: flex;
      align-items: center;
      justify-content: center;
    }

    .toolbox button:hover {
      background-color: #f8f9fa;
    }

    .toolbox i {
      font-size: 18px;
      color: #333;
    }
	
	.primary-button {
      display: inline-block;
      padding: 0.3em 0.8em;
      background-color: #007bff;
      color: white;
      text-decoration: none;
      border-radius: 5px;
      font-weight: bold;
	}
    .primary-button:hover {
      background-color: #0056b3;
    }

    #contact_container {
      display: flex;
      /*flex-wrap: wrap;*/ /* Allows wrapping on small screens */
	  align-items: stretch; /* Ensures equal height columns */
      gap: 20px; /* Optional: spacing between columns */
    }

    #contact_left {
      flex: 1 1 0; /* Grow and shrink freely, take remaining space */
      min-width: 0; /* Prevent overflow */
	  box-sizing: border-box;
    }
	
    #contact_right {
      flex: 0 0 30%; /* Fixed 30% width */
      max-width: 30%; /* Ensure it doesn't exceed 30% */
      box-sizing: border-box;
	  /* Make height match the left one */
	  display: flex;
	  align-items: flex-start;
      justify-content: center;
      overflow: hidden;
      /*flex-direction: column;*/ /* Ensures internal layout respects full height */
    }
	
    #contact_right img {
      height: 100%;
      width: auto;
      max-width: 100%;
      object-fit: contain;
      display: block;
	}
	
    /* Match heights using flex layout */
    #contact_left,
    #contact_right {
      align-self: stretch;
    }
	
	.span-block {
      display: inline-block;
      text-indent: -1em; /* negative indent */
      padding-left: 2em;  /* indent for first line */
      white-space: normal; /* allow wrapping */
	}

    @media (max-width: 768px) {
	  #ribbon-photo-container {
	    display: none;
	  }
      .side-menu {
        display: none;
        position: fixed;
        top: 100px;
        right: 0;
        background: var(--bg);
        width: 200px;
        box-shadow: -2px 0 6px rgba(0,0,0,0.2);

        height: calc(100vh - 100px); /* full height minus ribbon */
        overflow-y: auto; /* enable scrolling */
      }
      .side-menu.open {
        display: block;
      }
      .side-menu-toggle {
        display: block;
        margin-left: 20px;
        color: white;
      }
	  .section-icon {
	    display: none;
      }
      .toolbox {
        padding: 2px 0;
      }
      .toolbox i {
        font-size: 16px;
      }
	  #contact_container {
        flex-direction: column;
      }
      #contact_right,
      #contact_left {
        flex: 1 1 100%;
        max-width: 100%;
		align-self: auto;
      }
	  #contact_right img {
        width: 100%;
        height: auto;
      }
    }


    /*
	.bg-1 { background-color: #f7f9fb; }
    .bg-2 { background-color: #e3e7ec; }
    .bg-3 { background-color: #d5dbe3; }
	
    [data-theme="dark"] .bg-1 { background-color: #1f2226; }
    [data-theme="dark"] .bg-2 { background-color: #272b31; }
    [data-theme="dark"] .bg-3 { background-color: #2f3339; }
	*/
	
    /* Light theme - green, cyan, and grey palette */
    .bg-1 { background-color: #e3f2fd; }  /* Soft blue */
    .bg-2 { background-color: #f5e8da; }  /* Light warm beige */
    .bg-3 { background-color: #dbe4d2; }  /* Gentle olive-grey */
	
    /* Light theme - background images */
	.bg-1 .background-image {
	  background-image: url('../img/pattern-png-30769.png');
	  opacity: 0.5;
	}
	.bg-2 .background-image {
	  background-image: url('../img/pattern-png-30782.png');
	  opacity: 0.02;
	}
	.bg-3 .background-image {
	  background-image: url('../img/pattern-png-30800.png');
	  opacity: 0.05;
	}

    /* Dark theme - complementary deep tones */
    [data-theme="dark"] .bg-1 { background-color: #102027; }  /* Deep teal-blue */
    [data-theme="dark"] .bg-2 { background-color: #3b2f2a; }  /* Earthy brown */
    [data-theme="dark"] .bg-3 { background-color: #2e352e; }  /* Dark olive-grey */


    /* --- Small button for navigation --- */
	a.smallbutton {
	  display: inline-block;
	  padding: 4px 8px;              /* Smaller padding */
	  font-size: 13px;               /* Slightly smaller text */
	  font-weight: 500;
	  color: #007BFF;                /* Elegant blue */
	  background-color: transparent; /* Transparent background */
	  border: 1px solid #007BFF;     /* Subtle border */
	  border-radius: 4px;
	  text-decoration: none;
	  transition: all 0.3s ease;
	  width: 90%;
	  /*text-align: center;*/
	}

	a.smallbutton:hover {
	  background-color: #007BFF;     /* Blue background on hover */
	  color: white;                  /* Invert text color */
	}

	a.smallbutton:active {
	  background-color: #0056b3;     /* Darker blue when pressed */
	  border-color: #0056b3;
	  color: white;
	}

	a.smallbutton:focus {
	  outline: 2px solid #80bdff;
	  outline-offset: 2px;
	}
