* {
  margin: 0;
  padding: 0;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 100px;
}

body {
    color: #000000;
    font-size: 14pt;
    font-family: Arial, sans-serif;

    background-color: #ffffff00;
    text-align: left;
    padding: 0;
    margin: 0;
    min-width: 300pt;
	height:100%;
}


a {
    color: inherit;
    text-decoration: none;
}
a:visited {
    color: inherit;
    text-decoration: none;
}
a:hover {
    color:#f700ff;
    mix-blend-mode: normal;
}
a:active {
    color: inherit;
    text-decoration: none;
}



div {
    display: inline-block;
    font-size: 28pt;
    margin:20pt;
    margin-bottom:20pt;
    /*margin-left:200pt;*/
    margin-left:auto;
    margin-right:auto;
    max-width:750pt;
    position: relative;
    z-index: 6;
}

h1 {
    font-weight: normal;
    display:block;
    font-size: 28pt;
    margin:0pt;
    margin-bottom:20pt;
    /*margin-left:200pt;*/
    margin-left:30;
    margin-right:30;
    max-width:750pt;
    position: relative;
    z-index: 6;
}


h2 {
    font-weight: normal;
    display:inline-block;
    font-size: 24pt;
    margin:10pt;
    margin-bottom:20pt;
    /*margin-left:200pt;*/
    
    margin-left:30;
    margin-right:30;
    max-width:750pt;
	position: relative;
	z-index: 6;
}

h3 {
	font-weight: normal;
    display:block;
    font-size: 20pt;
    margin:0pt;
    margin-bottom:10pt;
    /*margin-left:200pt;*/
    margin-left:30;
    margin-right:30;
    max-width:750pt;
    position: relative;
    z-index: 6;
}

ul {
    margin-top: -30pt;
    position: relative;
    z-index: 6;
}

li {
    list-style: none;
    text-align: center;
    margin-top: 10pt;
    margin-top: 15pt;

}



.light{
  color: #898989;
  font-size: 14px;
  vertical-align: top;
}

.left-menu,.right-menu
{
    position: absolute;
    text-decoration: none;
    top: 0px;
    mix-blend-mode: difference;
    color: #000000;
    z-index: 10;
}

.right-menu { 
	right: 0px; 
	text-align: right;
}

.left-menu { 
	left: 0px; 
	text-align: left;
}

.left-menu ul, .right-menu ul
{
    list-style-type: none;
    margin: 0px;
    padding: 0px;
    display: block;
}

.left-menu ul {
	text-align: left;
}

.right-menu ul {
	text-align: right;
}

.footer {
  position: fixed;
  bottom: 15px;
  right: 20px;
  text-align: right;
  color: #000000;
  z-index: 15;
  font-size: 14pt;
  pointer-events: none;
  background-color: rgba(255, 255, 255, 0);
  padding: 8px 12px;
}

.footer a {
  pointer-events: auto;
  color: #000000;
  margin: 0 8px;
}

.footer h3 {
  display: inline;
  font-size: inherit;
  margin: 0;
}


/* Background Image System */
#background-images {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: -10;
  pointer-events: none;
}

.bg-image {
  position: fixed;
  top: 50%;
  left: 50%;
  width: 50vw;
  height: 50vh;
  background-size: contain;
  background-position: center center;
  background-repeat: no-repeat;
  opacity: 0;
  transition: opacity 0.8s ease-in-out;
  transform: translate(-50%, -50%);
  z-index: -5;
}

.bg-image.active {
  opacity: 1;
}

/* Scroll indicator for landing page */
.scroll-indicator {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 20;
    color: #000000;
    font-size: 12px;
    text-align: center;
    cursor: pointer;
    opacity: 0.7;
    transition: opacity 0.3s ease;
    animation: pulse 2s infinite;
}

.scroll-indicator:hover {
    opacity: 1;
}

.scroll-indicator::after {
    content: "✦";
    display: block;
    font-size: 20px;
    margin-top: 5px;
    animation: simple-spin 2s linear infinite;
}

@keyframes simple-spin {
    0% { 
        transform: rotate(0deg); 
    }
    100% { 
        transform: rotate(360deg); 
    }
}

@keyframes pulse {
    0%, 100% { opacity: 0.7; }
    50% { opacity: 1; }
}


.scroll-indicator.hidden {
    opacity: 0;
    pointer-events: none;
}

/* Large Cursive v for landing page */
.cursive-v {
    position: fixed;
    top: 10px;
    left: 30px;
    transform: none;
    z-index: 10;
    font-family: 'Times New Roman', serif;
    font-style: italic;
    font-size: 40vw;
    font-weight: 1;
    color: #000000;
    opacity: 1;
    pointer-events: none;
    user-select: none;
    transition: opacity 5s ease, transform 5s ease;
}

/* Hide cursive v when content is revealed */
.cursive-v.hidden {
    opacity: 0;
}

/* Image caption overlay */
.image-caption {
    position: fixed;
    top: calc(50% + 25vh + 10px);
    left: calc(50% + 25vw);
    transform: translateX(-100%);
    z-index: 15;
    color: #000000;
    font-size: 10px;
    font-family: Arial, sans-serif;
    background: rgba(255, 255, 255, 0.85);
    padding: 4px 8px;
    opacity: 0;
    transition: opacity 0.5s ease;
    pointer-events: none;
    max-width: 200px;
    text-align: right;
}

.image-caption.visible {
    opacity: 1;
}


/* Clean spans with simple background */
span {
    position: relative;
    z-index: 6;
    background: rgba(255, 255, 255, 0.85);
    color: #000000;
    padding: 2px 5px;
    display: inline-block;
    margin: 1px;
}

/* Section spacing for single page layout */
article {
    position: relative;
    width: 100%;
    clear: both;
    margin-bottom: 200px;
    padding-bottom: 100px;
    z-index: 5;
}

#about-section {
    min-height: 120vh;
    margin-top: 100vh;
    padding-top: 50px;
    margin-bottom: 500px;
    opacity: 0;
    transform: translateY(50px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

#about-section.visible {
    opacity: 1;
    transform: translateY(0);
}

#cv-section {
    min-height: 100vh;
    margin-top: 0;
    padding-top: 200px;
    margin-bottom: 350px;
    opacity: 0;
    transform: translateY(50px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

#cv-section.visible {
    opacity: 1;
    transform: translateY(0);
}

#contact-section {
    min-height: 60vh;
    margin-top: 0;
    padding-top: 150px;
    margin-bottom: 150px;
    opacity: 0;
    transform: translateY(50px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

#contact-section.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Ensure menus are contained within their sections */
article .left-menu,
article .right-menu {
    position: absolute;
    top: 0;
}

/* Additional spacing and clearance rules */
#about-section::after {
    content: "";
    display: block;
    height: 200px;
    clear: both;
}

#cv-section::after {
    content: "";
    display: block;
    height: 100px;
    clear: both;
}

/* Ensure proper section separation */
article + article {
    border-top: 1px solid transparent;
}


/* ===== RESPONSIVE DESIGN - MOBILE ===== */
@media screen and (max-width: 820px) {
    /* Mobile-first: Disable smooth scrolling on mobile for better performance */
    html {
        scroll-behavior: auto;
    }
    
    /* Force stack menus vertically on mobile */
    .left-menu, .right-menu {
        position: static !important;
        width: 100% !important;
        max-width: none !important;
        text-align: left !important;
        margin-bottom: 30px;
        padding: 20px;
        left: auto !important;
        right: auto !important;
        top: auto !important;
    
    }
    
    .right-menu {
        margin-top: 30px;
    }
    
    .right-menu ul, .left-menu ul {
        text-align: left !important;
    }
    
    /* Fix article layout for mobile */
    article .left-menu,
    article .right-menu {
        position: static !important;
        top: auto !important;
    }
    
    /* Reduce font sizes for mobile */
    h1 {
        font-size: 22pt;
        margin-bottom: 15pt;
    }
    
    h2 {
        font-size: 18pt;
        margin: 5pt;
        margin-bottom: 15pt;
        margin-left: 15px;
        margin-right: 15px;
    }
    
    h3 {
        font-size: 16pt;
        margin-left: 15px;
        margin-right: 15px;
    }
    
    /* Optimize section spacing and layout for mobile */
    article {
        margin-bottom: 60px;
        padding: 30px 0;
        min-height: auto;
    }
    
    #about-section {
        min-height: auto;
        margin-bottom: 40px;
        padding: 20px 0 40px 0;
    }
    
    #cv-section {
        min-height: auto;
        margin-bottom: 40px;
        padding: 20px 0;
    }
    
    #contact-section {
        min-height: auto;
        margin-bottom: 40px;
        padding: 20px 0 60px 0;
    }
    
    /* Improve menu layout and spacing */
    .left-menu, .right-menu {
        margin: 15px 0 30px 0 !important;
        padding: 15px 20px !important;
    }
    
    /* Better link spacing for touch targets */
    a {
        padding: 3px 0;
        display: inline-block;
        min-height: 44px;
        min-width: 44px;
        text-align: center;
    }
    
    /* Improve list spacing */
    .left-menu ul, .right-menu ul {
        margin: 0;
        padding: 0;
    }
    
    /* Make background images more mobile-friendly */
    .bg-image {
        width: 80vw;
        height: 40vh;
    }
    
    /* Mobile footer - clean and compact */
    .footer {
        position: fixed;
        bottom: 10px;
        right: 10px;
        text-align: right;
        padding: 6px 10px;
        font-size: 14pt;
        background-color: rgba(255, 255, 255, 0.8);
    }
    
    /* Mobile scroll indicator */
    .scroll-indicator {
        bottom: 20px;
        font-size: 11px;
    }
    
    .scroll-indicator::after {
        font-size: 16px;
    }
    
    /* Mobile image caption */
    .image-caption {
        top: calc(50% + 20vh + 8px);
        left: calc(50% + 40vw);
        font-size: 9px;
        padding: 3px 6px;
        max-width: 150px;
    }
    
    /* Mobile cursive v adjustments */
    .cursive-v {
        font-size: 20vw;
        top: 20px;
        left: 20px;
        font-weight: 100;
    }
}

/* ===== WIDER MOBILE/TABLET RESPONSIVE ===== */
@media screen and (max-width: 1024px) and (min-width: 821px) {
    /* Prevent overlap on larger mobile/tablet screens */
    .left-menu {
        max-width: 45% !important;
        overflow: hidden;
    }
    
    .right-menu {
        max-width: 45% !important;
        overflow: hidden;
    }
    
    /* Slightly reduce font sizes */
    h1 {
        font-size: 28pt;
    }
    
    h2 {
        font-size: 22pt;
    }
}

/* ===== VERY SMALL SCREENS ===== */
@media screen and (max-width: 480px) {
    /* Extra aggressive mobile layout for small phones */
    body {
        font-size: 11pt;
    }
    
    .left-menu, .right-menu {
        position: relative !important;
        display: block !important;
        width: 100% !important;
        padding: 12px 15px !important;
        margin: 8px 0 25px 0 !important;
    }
    
    h1 {
        font-size: 18pt !important;
        margin-bottom: 15pt;
    }
    
    h2 {
        font-size: 13pt !important;
        margin: 4pt 0 10pt 0 !important;
        margin-left: 15px !important;
        margin-right: 15px !important;
        line-height: 1.4;
    }
    
    h3 {
        font-size: 11pt !important;
    }
    
    /* Adjust sections for very small screens */
    article {
        margin-bottom: 40px;
        padding: 20px 0;
    }
    
    .footer a {
        margin: 0 6px;
        font-size: 11pt;
        color: #000000;
    }
    
    /* Minimal bottom padding since footer is compact */
    #contact-section {
        padding-bottom: 60px !important;
    }
    
    /* Reset article padding since no contact bar */
    article {
        padding-top: 30px;
    }
    
    #about-section {
        padding-top: 50px !important;
    }
}


/* ===== MOBILE PERFORMANCE & UX ENHANCEMENTS ===== */
@media screen and (max-width: 820px) {
    /* Improve tap targets and interactions */
    h2 a, h3 a {
        display: inline-block;
        padding: 8px 0;
        margin: 2px 0;
        min-height: 44px;
        line-height: 1.2;
    }
    
    /* Optimize animations for mobile */
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
    
    /* Prevent horizontal overflow */
    body {
        overflow-x: hidden;
        width: 100vw;
    }
    
    /* Better text rendering on mobile */
    h1, h2, h3 {
        text-rendering: optimizeLegibility;
        -webkit-font-smoothing: antialiased;
        -moz-osx-font-smoothing: grayscale;
    }
    
    /* Add visual feedback for touch */
    a:active {
        transform: scale(0.98);
        transition: transform 0.1s ease;
    }
}