/* Fix for cut-off hero text on all screen sizes */
.slide-title {
    height: auto; /* Allow the container to resize based on content */
    padding-top: 20px; /* Add some space above the text */
    padding-bottom: 20px; /* Add some space below the text */
}

.hero-text .item {
    line-height: 1.2; /* Increases space between lines of text */
}

/* --- Mobile Font Size Fix for Hero Text --- */
@media (max-width: 768px) {
  .hero-text .item {
    font-size: 32px; /* Adjust this value as needed */
    letter-spacing: 0px; /* Reduces space between letters */
  }
}

/* Layout: constrain and align the form panel */
/* Stop the form from centering itself */
.custom-inner.contact-inner #contactform,
.custom-inner.contact-inner #contact-form {
  width: 100% !important;
  max-width: 100% !important;
  margin: 0 !important;
  float: none !important;
  text-align: left !important;
  position: static !important;
  box-sizing: border-box;
}



/* Labels: visible, accessible targets */
#contactform label {
  display: block;
  margin: 10px 0 6px;
  color: #FFFFFF;
  font-weight: 600;
}

/* Inputs and textarea: glass overlay + clear focus */
#contactform input[type="text"],
#contactform input[type="email"],
#contactform textarea {
  width: 100%;
  padding: 14px 16px;
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,0.35);
  background: rgba(20,20,20,0.35);
  color: #FFFFFF;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  box-sizing: border-box;
  outline: none;
}

/* Placeholder styling for readability */
#contactform input::placeholder,
#contactform textarea::placeholder {
  color: rgba(255,255,255,0.8);
}

/* Focus ring with strong contrast */
#contactform input:focus,
#contactform textarea:focus {
  border-color: #FFD54F;
  box-shadow: 0 0 0 3px rgba(255,213,79,0.35);
}

/* Button: high-contrast primary */
#contactform button[type="submit"],
#contactform input[type="submit"] {
  display: inline-block;
  margin-top: 12px;
  padding: 12px 18px;
  border-radius: 10px;
  border: none;
  background: #FFD54F;
  color: #1A1A1A;
  font-weight: 700;
  cursor: pointer;
}
#contactform button[type="submit"]:hover,
#contactform input[type="submit"]:hover {
  filter: brightness(0.95);
}

/* Ensure the dark overlay doesn't overpower inputs */
.content-holder .overlay {
  background: rgba(0,0,0,0.45);
}

/* Mobile: full-width and larger tap targets */
@media (max-width: 768px) {
  .custom-inner.contact-inner #contactform { max-width: 100%; }
  #contactform input, #contactform textarea { font-size: 16px; }
}
/* Contact form submit button: frosted with semi-transparent white border */
#contactform button[type="submit"],
#contactform input[type="submit"] {
  background: rgba(255,255,255,0.08);        /* subtle frosted panel */
  color: #FFFFFF;                             /* readable on darkened bg */
  border: 1.5px solid rgba(255,255,255,0.65); /* semi-transparent white */
  border-radius: 12px;
  padding: 12px 18px;
  backdrop-filter: blur(6px);                 /* blur what’s behind */
  -webkit-backdrop-filter: blur(6px);         /* Safari prefix */
  box-shadow: none;
  outline: none;
}

#contactform button[type="submit"]:hover,
#contactform input[type="submit"]:hover {
  background: rgba(255,255,255,0.14);         /* a bit more visible on hover */
  border-color: rgba(255,255,255,0.85);       /* slightly stronger border */
}

#contactform button[type="submit"]:focus-visible,
#contactform input[type="submit"]:focus-visible {
  box-shadow: 0 0 0 3px rgba(255,255,255,0.35); /* accessible focus ring */
  border-color: rgba(255,255,255,0.95);
}

#contactform {
  display: grid;              /* single-column form */
  grid-template-columns: 1fr; /* one column */
  row-gap: 14px;              /* vertical spacing */
  gap: 14px;                  /* shorthand for compatibility */
}

/* --- Custom styles for Contact Page --- */

/* This targets the main "Contact" heading */
.contact-inner h2 {
    font-size: 48px; /* Original is likely smaller, adjust as you like */
}

/* This targets the paragraph of text */
.contact-inner p {
    font-size: 16px; /* Adjust this value for the perfect size */
    line-height: 1.8em; /* Increases spacing between lines for readability */
}

/* This targets the contact details list (address, phone, email) */
.contact-list li a {
    font-size: 16px; /* Adjust this value to match the paragraph or make it different */
}


/* Style for placeholder text in Webkit browsers (Chrome, Safari) */
::-webkit-input-placeholder {
  font-family: inherit; /* Inherit the font from the parent element (e.g., body) */
  color: inherit;      /* Inherit the color from the parent element */
  opacity: 1;          /* Ensure it's not faded by default browser styles */
}

/* Style for placeholder text in Mozilla Firefox */
::-moz-placeholder {
  font-family: inherit;
  color: inherit;
  opacity: 1;
}

/* Style for placeholder text in Internet Explorer */
:-ms-input-placeholder {
  font-family: inherit;
  color: inherit;
}

/* Style for placeholder text in Microsoft Edge */
::-ms-input-placeholder {
  font-family: inherit;
  color: inherit;
}

/* Fallback/standard for more modern browsers (though usually inherited) */
::placeholder {
  font-family: inherit;
  color: inherit;
  opacity: 1;
}

/* Ensure input and textarea elements themselves inherit font properties */
input, textarea {
  font-family: inherit;
}

/* css/yourstyle.css (append at end) */
.content.full-height,
.full-height-wrap,
.media-container,
.fs-wrapper,
.video-container {
  height: 100vh;     /* fallback */
  height: 100svh;    /* when bars visible */
  height: 100dvh;    /* dynamic as bars move */
}

.bgvid {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ============================================
ABOUT ME PAGE FIX - LEFT SIDE VERSION (Absolute Left Anchor with 60% Transparent Box and Closer Signature - Mobile Full-Width No Zoom)
============================================ */

/* Base container and row setup for relative positioning (unchanged for desktop) */
body div#wrapper .content-holder .content .custom-inner {
    position: relative !important;
    top: 0 !important;
    transform: none !important;
    width: 100% !important;
    padding: 80px 0 40px !important;
    margin: 0 !important;
    z-index: 5 !important;
    overflow: visible !important;
}

body div#wrapper .content-holder .content .custom-inner .container {
    position: relative !important;
    max-width: 1170px !important;
    margin: 0 auto !important;
    padding: 0 15px !important;
    width: 100% !important;
    box-sizing: border-box !important;
}

body div#wrapper .content-holder .content .custom-inner .container .row,
body .custom-inner .row {
    display: flex !important;
    flex-wrap: wrap !important;
    align-items: flex-start !important;
    justify-content: flex-start !important;
    margin: 0 -15px !important;
    width: 100% !important;
    position: relative !important;
    height: auto !important; /* Allow natural height */
}

/* Right empty space (60% flex, no absolute - keeps face fully visible on desktop) */
body div#wrapper .content-holder .content .custom-inner .col-md-5,
body .custom-inner .col-md-5 {
    flex: 0 0 60% !important;
    max-width: 60% !important;
    width: 60% !important;
    padding: 0 15px !important;
    margin: 0 !important;
    position: static !important; /* Keep in flow, no absolute */
    z-index: 1 !important;
    background: transparent !important;
    order: 2 !important; /* Move to right side */
}

/* Left text box: Absolute left anchor (40% from left edge - desktop only) */
body div#wrapper .content-holder .content .custom-inner .col-md-7,
body .custom-inner .col-md-7 {
    position: absolute !important;
    left: 0 !important; /* Pin to left edge of container */
    top: 0 !important; /* Align top with row */
    width: 40% !important; /* Fixed width from left */
    max-width: 40% !important;
    padding: 30px !important; /* Space around text inside box */
    margin: 0 !important; /* No margin to avoid shift */
    box-sizing: border-box !important;
    z-index: 10 !important;
    border-radius: 0 12px 12px 0 !important; /* Rounded right only, flush left */
    border-right: 1px solid rgba(255, 255, 255, 0.1) !important; /* Subtle right border for definition */
    box-shadow: 2px 0 15px rgba(0, 0, 0, 0.2) !important; /* Shadow on right to separate from face */
    background: rgba(0, 0, 0, 0.4) !important; /* 60% transparent black (40% opacity) */
    backdrop-filter: blur(10px) !important;
    -webkit-backdrop-filter: blur(10px) !important;
    color: #fff !important;
    float: none !important; /* Disable float for absolute control */
    order: 1 !important; /* Move to left side */
}

/* Fallback pseudo-element for box background with matching transparency */
body .custom-inner .col-md-7::before {
    content: '' !important;
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    background: rgba(0, 0, 0, 0.4) !important; /* Matching 60% transparency */
    border-radius: 0 12px 12px 0 !important;
    z-index: -1 !important;
    backdrop-filter: blur(10px) !important;
    -webkit-backdrop-filter: blur(10px) !important;
}

/* Text elements on top (unchanged) */
body .custom-inner .col-md-7 h2,
body .custom-inner .col-md-7 h3,
body .custom-inner .col-md-7 p,
body .custom-inner .col-md-7 .signature {
    position: relative !important;
    z-index: 11 !important;
    color: #fff !important;
    text-align: left !important;
    margin: 0 !important; /* Reset margins if theme overrides */
}

body .custom-inner .col-md-7 h2 {
    font-size: 36px !important;
    margin-bottom: 20px !important;
    font-weight: 700 !important;
    line-height: 1.2 !important;
}

body .custom-inner .col-md-7 h3 {
    font-size: 20px !important;
    font-style: italic !important;
    margin: 20px 0 !important;
    line-height: 1.4 !important;
    font-weight: 400 !important;
}

body .custom-inner .col-md-7 p {
    font-size: 16px !important;
    line-height: 1.8 !important;
    margin-bottom: 20px !important;
}

body .custom-inner .col-md-7 .separator {
    background: #fff !important;
    height: 2px !important;
    width: 60px !important;
    margin: 15px 0 !important;
    display: block !important;
}

/* Signature moved closer to text (unchanged) */
body .custom-inner .col-md-7 .signature {
    width: 100% !important;
    margin-top: 15px !important; /* Adjusted from 30px for proximity to text */
    position: relative !important;
    z-index: 11 !important;
}

body .custom-inner .col-md-7 .signature img {
    max-width: 200px !important;
    display: block !important;
}

/* Tablet and Mobile: Full-width black box (no zoom, no center, full viewport span) */
@media (max-width: 991px) {
    body .custom-inner {
        padding: 60px 0 30px !important; /* Remove side padding for full width */
        width: 100vw !important; /* Force viewport width */
        margin: 0 !important;
        transform: none !important; /* Prevent any zoom/scale */
    }

    body .custom-inner .container {
        max-width: 100% !important; /* Override theme's container limit */
        padding: 0 !important; /* No padding to allow full span */
        margin: 0 !important;
        width: 100vw !important;
    }

    body .custom-inner .col-md-5 {
        display: none !important; /* Hide right space entirely */
    }

    body .custom-inner .row {
        justify-content: flex-start !important; /* Left-align, no center */
        margin: 0 !important;
        padding: 0 !important;
        width: 100vw !important;
    }

    body .custom-inner .col-md-7 {
        position: static !important; /* Remove absolute to avoid squish/zoom */
        left: auto !important;
        top: auto !important;
        width: 100vw !important; /* Full viewport width, no constraints */
        max-width: 100vw !important;
        padding: 30px 20px !important; /* Side padding for content, but box is full */
        margin: 0 !important; /* No margins to maximize */
        float: none !important;
        display: block !important; /* Force block flow */
        border-radius: 12px !important; /* Full rounded */
        border: 1px solid rgba(255, 255, 255, 0.1) !important; /* Full border */
        border-right: none !important; /* Remove desktop-specific */
        box-shadow: 0 2px 15px rgba(0, 0, 0, 0.2) !important; /* Centered shadow */
        background: rgba(0, 0, 0, 0.4) !important; /* Maintain transparency */
        backdrop-filter: blur(10px) !important;
        -webkit-backdrop-filter: blur(10px) !important;
        zoom: 1 !important; /* Anti-zoom normalization */
        transform: scale(1) !important; /* Prevent scaling issues */
        box-sizing: border-box !important;
    }

    body .custom-inner .col-md-7::before {
        position: static !important; /* Integrate with block, no absolute zoom */
        width: 100vw !important;
        border-radius: 12px !important;
        background: rgba(0, 0, 0, 0.4) !important;
        left: 0 !important;
        right: 0 !important;
    }

    body .custom-inner .col-md-7 .signature {
        margin-top: 15px !important; /* Keep consistent */
    }
}

/* Mobile-specific adjustments (under 768px - full-width with no zoom/center) */
@media (max-width: 768px) {
    body .custom-inner {
        padding: 40px 0 20px !important; /* No side padding */
        width: 100vw !important;
        margin-left: calc(50% - 50vw) !important; /* Full-bleed trick for WP themes */
        margin-right: calc(50% - 50vw) !important;
        transform: none !important;
    }

    body .custom-inner .container {
        padding: 0 !important;
        width: 100vw !important;
        max-width: 100vw !important;
    }

    body .custom-inner .col-md-7 {
        padding: 25px 20px !important; /* Content padding, box full-width */
        border-radius: 10px !important;
        margin: 0 !important;
        width: 100vw !important;
        max-width: 100vw !important;
        box-sizing: border-box !important;
        zoom: 1 !important;
        transform: scale(1) !important;
    }

    body .custom-inner .col-md-7 h2 { 
        font-size: 28px !important; 
        margin-bottom: 15px !important; /* Tighter spacing */
    }
    
    body .custom-inner .col-md-7 h3 { 
        font-size: 18px !important; 
        margin: 15px 0 !important;
    }
    
    body .custom-inner .col-md-7 p { 
        font-size: 15px !important; 
        line-height: 1.7 !important;
        margin-bottom: 15px !important;
    }

    body .custom-inner .col-md-7 .signature {
        margin-top: 10px !important; /* Closer on small screens */
    }

    body .custom-inner .col-md-7 .separator {
        width: 50px !important; /* Smaller on mobile */
    }

    /* Global mobile anti-zoom for body */
    body {
        zoom: normal !important;
        transform: none !important;
    }
}

/* Ultra-light overlay for face clarity (unchanged) */
body .content-holder .overlay,
body .overlay {
    background: rgba(0, 0, 0, 0.05) !important;
}



/* ============================================
   ABOUT ME PAGE ONLY: Move profile background left on mobile
   ============================================ */

/* Target ONLY the about.html page on mobile */
@media (max-width: 991px) {
    /* Only affects Leon_Alpeza_Profile.jpg on about.html page */
    body.about-page .parallax-section .bg[style*="Leon_Alpeza_Profile.jpg"] {
        background-position:40% center !important;
    }
    
    body.about-page .section-columns-img .bg[style*="Leon_Alpeza_Profile.jpg"] {
        background-position: 40% center !important;
    }
}

/* Smaller phones */
@media (max-width: 768px) {
    body.about-page .parallax-section .bg[style*="Leon_Alpeza_Profile.jpg"] {
        background-position: 40% center !important;
    }
    
    body.about-page .section-columns-img .bg[style*="Leon_Alpeza_Profile.jpg"] {
        background-position: 40% center !important;
    }
}

/* Very small screens */
@media (max-width: 576px) {
    body.about-page .parallax-section .bg[style*="Leon_Alpeza_Profile.jpg"] {
        background-position: 15% center !important;
    }
    
    body.about-page .section-columns-img .bg[style*="Leon_Alpeza_Profile.jpg"] {
        background-position: 15% center !important;
    }
}


/* Contact Header - Centered */
.contact-header {
    text-align: center;
    margin-bottom: 50px;
}

.contact-header h2 {
    margin-bottom: 20px;
}

.contact-header .separator {
    margin: 0 auto;
}

/* Modern Contact Form - Dark Theme */
.modern-contact-form {
    width: 100%;
}

.form-row {
    display: flex;
    flex-wrap: wrap;
    gap: 25px;
    margin-bottom: 25px;
}


@media (max-width: 768px) {
    .form-row {
        flex-direction: column;
        gap: 20px;
    }
}

.form-group {
    flex: 1 1 calc(50% - 12.5px);
    position: relative;
    min-width: 0;
}


.form-group.full-width {
    flex: 1 1 100% !important;
    width: 100% !important;
    margin-bottom: 25px;
}


/* CRITICAL: Force dark input styling */
.modern-contact-form input,
.modern-contact-form textarea {
    width: 100%;
    padding: 16px 20px;
    background: rgba(255, 255, 255, 0.05) !important;
    border: 1px solid rgba(255, 255, 255, 0.15) !important;
    color: #ffffff !important;
    font-size: 15px;
    font-family: inherit;
    transition: all 0.3s ease;
    outline: none !important;
    box-sizing: border-box;
    color-scheme: dark !important;
}

.modern-contact-form textarea {
    resize: vertical;
    min-height: 140px;
}

.modern-contact-form input:focus,
.modern-contact-form textarea:focus {
    background: rgba(255, 255, 255, 0.08) !important;
    border-color: rgba(255, 255, 255, 0.35) !important;
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.05) !important;
}

/* Placeholder */
.modern-contact-form input::placeholder,
.modern-contact-form textarea::placeholder {
    color: rgba(255, 255, 255, 0.4) !important;
    opacity: 1 !important;
}

/* Autofill Override */
.modern-contact-form input:-webkit-autofill,
.modern-contact-form input:-webkit-autofill:hover,
.modern-contact-form input:-webkit-autofill:focus,
.modern-contact-form input:-webkit-autofill:active {
    -webkit-text-fill-color: #ffffff !important;
    -webkit-box-shadow: 0 0 0 1000px rgba(255, 255, 255, 0.05) inset !important;
    box-shadow: 0 0 0 1000px rgba(255, 255, 255, 0.05) inset !important;
    transition: background-color 5000s ease-in-out 0s !important;
    caret-color: #ffffff !important;
}

/* Modern Submit Button - Full Width */
.modern-submit-btn {
    margin-top: 15px;
    width: 100%;
    padding: 16px 45px;
    background: transparent;
    border: 2px solid rgba(255, 255, 255, 0.25);
    color: #fff;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 2px;
    cursor: pointer;
    font-family: inherit;
    font-weight: 500;
    position: relative;
    overflow: hidden;
    transition: all 0.4s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.modern-submit-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.1);
    transition: left 0.4s ease;
    z-index: 0;
}

.modern-submit-btn span,
.modern-submit-btn svg {
    position: relative;
    z-index: 1;
}

.modern-submit-btn:hover {
    border-color: rgba(255, 255, 255, 0.5);
    transform: translateY(-2px);
}

.modern-submit-btn:hover::before {
    left: 0;
}

.modern-submit-btn:active {
    transform: translateY(0);
}

.modern-submit-btn svg {
    transition: transform 0.3s ease;
}

.modern-submit-btn:hover svg {
    transform: translateX(5px);
}

.modern-submit-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* Form Status */
.form-status {
    margin-top: 20px;
    padding: 15px 20px;
    border-radius: 3px;
    font-size: 14px;
    display: none;
}

.form-status.show {
    display: block;
    animation: slideIn 0.3s ease;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.form-status.success {
    background: rgba(76, 175, 80, 0.15);
    border: 1px solid rgba(76, 175, 80, 0.4);
    color: #4CAF50;
}

.form-status.error {
    background: rgba(244, 67, 54, 0.15);
    border: 1px solid rgba(244, 67, 54, 0.4);
    color: #f44336;
}



