html {
    scroll-behavior: smooth;
    scroll-padding-top: 5rem; /* Add padding for fixed header */
}

/* Base viewport settings */
html, body {
    width: 100%;
    min-height: 100vh;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
    -webkit-text-size-adjust: 100%;
    display: flex;
    flex-direction: column;
}

main {
    flex: 1 0 auto;
}

footer {
    flex-shrink: 0;
    width: 100%;
    overflow: hidden;
    background-color: var(--bg-pink);
}

footer .max-w-7xl {
    width: 100%;
}

/* Ensure all sections fill viewport width */
section {
    width: 100%;
    position: relative;
    box-sizing: border-box;
}

/* Background styles */
.hero {
    background: linear-gradient(to right, #EDE0D9 2%, rgba(237, 224, 217, 0.3) 12%, rgba(237, 224, 217, 0) 22%), url(../assets/hero-bg.jpeg) no-repeat, #EDE0D9;
    background-size: cover;
    background-position-x: 20vw;
    height: calc(100vh - 80px) !important;
    min-height: auto !important;
    margin-top: 80px;
    
    /* Add these flex properties */
    display: flex;
    justify-content: flex-start;
    align-items: center;
    padding-left: 5%; /* Consistent left padding */
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
    z-index: 1;
}

.hero-content {
    width: 50%; /* Control the width of the content area */
    max-width: 600px;
    text-align: left; /* Align text to the left */
    margin-right: auto; /* Push content to the left */
}

.register {
    background: url('../assets/register-bg.png') no-repeat;
    background-size: cover;
    background-position: bottom;
}

/* Reality content magnifying glass effect */
.reality-content {
    position: relative;
}

.reality-content::before {
    content: '';
    position: absolute;
    right: 10px;
    bottom: 18px;
    width: 65px;
    height: 60px;
    background: white;
    transform: rotate(45deg);
    border-radius: 0 30px 30px 0px;
    z-index: 2;
}

@media screen and (max-width: 768px) {
    .reality-content::before {
        transform: rotate(48deg);
        right: 4px;
        bottom: -10px;
        width: 56px;
        height: 48px;
    }

    .reality-content::after {
        top: -10px !important;
        left: -10px !important;
        right: -10px !important;
        bottom: -10px !important;
    }
    
    .magnifying-glass::before {
        top: -45px !important;
        left: -45px !important;
        right: -45px !important;
        bottom: -45px !important;
    }
    
    .magnifying-glass::after {
        top: -60px !important;
        left: -60px !important;
        right: -60px !important;
        bottom: -60px !important;
    }

    .hero {
        margin-top: 60px; /* Adjust for smaller header on mobile */
        height: calc(100vh - 60px) !important; /* Adjust for smaller header on mobile */
        background: linear-gradient(to right, rgba(237, 224, 217, 0.9) 0%, rgba(237, 224, 217, 0.85) 30%, rgba(237, 224, 217, 0.4) 60%), 
                    url(../assets/hero-bg.jpeg) no-repeat center center;
        background-size: cover;
        background-position: center;
        padding-left: 5%;
        padding-right: 5%;
    }

    .hero-content {
        width: 100%; /* Full width on mobile */
        text-align: center;
    }
}

.magnifying-glass {
    position: relative;
    width: 85%;
    height: 85%;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: white;
    box-shadow: 0 0 0 20px white;
    padding: 2rem;
}

.reality-content::after {
    content: '';
    position: absolute;
    top: -30px;
    left: -30px;
    right: -30px;
    bottom: -30px;
    border-radius: 50%;
    border: 3px solid white;
    animation: pulse1 3s infinite;
    opacity: 0.9;
}

.magnifying-glass::before {
    content: '';
    position: absolute;
    top: -120px;
    left: -120px;
    right: -120px;
    bottom: -120px;
    border-radius: 50%;
    border: 3px solid white;
    animation: pulse2 3s infinite;
    opacity: 0.6;
}

.magnifying-glass::after {
    content: '';
    position: absolute;
    top: -160px;
    left: -160px;
    right: -160px;
    bottom: -160px;
    border-radius: 50%;
    border: 3px solid white;
    animation: pulse3 3s infinite;
    opacity: 0.3;
}

@keyframes pulse1 {
    0% {
        transform: scale(0.6);
        opacity: 0;
    }
    50% {
        transform: scale(1);
        opacity: 0.9;
    }
    100% {
        transform: scale(1.1);
        opacity: 0;
    }
}

@keyframes pulse2 {
    0% {
        transform: scale(0.6);
        opacity: 0;
    }
    50% {
        transform: scale(1);
        opacity: 0.6;
    }
    100% {
        transform: scale(1.1);
        opacity: 0;
    }
}

@keyframes pulse3 {
    0% {
        transform: scale(0.6);
        opacity: 0;
    }
    50% {
        transform: scale(1);
        opacity: 0.3;
    }
    100% {
        transform: scale(1.1);
        opacity: 0;
    }
}

@keyframes float {
    0% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-10px);
    }
    100% {
        transform: translateY(0px);
    }
}

.hover-float {
    transition: transform 0.3s ease;
}

.hover-float:hover {
    animation: float 1s ease-in-out;
}

/* Section lighting effect */
section {
    transition: opacity 0.8s ease-in-out, filter 0.8s ease-in-out;
}

section.dimmed {
    opacity: 0.4;
    filter: brightness(0.7);
}

section.active {
    opacity: 1;
    filter: brightness(1);
}

.belief-quotes blockquote:nth-child(1)::before {
    background: url('../assets/quote-1.svg') no-repeat center;
    background-color: #FDF8F5;
    background-size: 30px;
}

.belief-quotes blockquote:nth-child(2)::before {
    top: 9px;
    background: url('../assets/quote-2.svg') no-repeat center;
    background-color: #FDF8F5;
    background-size: 30px;
}

.belief-quotes blockquote:nth-child(3)::before {
    background: url('../assets/quote-3.svg') no-repeat center;
    background-color: #FDF8F5;
    background-size: 30px;
}

/* Base quote styling */
.belief-quotes blockquote::before {
    content: '';
    position: absolute;
    left: 17px;
    top: 10px;
    width: 60px;
    height: 60px;
    opacity: 0.8;
    border-radius: 20px;
    padding: 20px;
}

/* Process section animations */
@keyframes fadeToColorAndBack {
    0% {
        color: var(--black);
    }
    5% {
        color: var(--primary-color);
    }
    20% {
        color: var(--primary-color);
    }
    25% {
        color: var(--black);
    }
    100% {
        color: var(--black);
    }
}

@keyframes lineColorChange {
    0% {
        background-color: var(--black);
    }
    5% {
        background-color: var(--primary-color);
    }
    20% {
        background-color: var(--primary-color);
    }
    25% {
        background-color: var(--black);
    }
    100% {
        background-color: var(--black);
    }
}

@keyframes iconFadeToColorAndBack {
    0% {
        filter: none;
    }
    5% {
        filter: brightness(0) saturate(100%) invert(45%) sepia(82%) saturate(385%) hue-rotate(327deg) brightness(97%) contrast(92%);
    }
    20% {
        filter: brightness(0) saturate(100%) invert(45%) sepia(82%) saturate(385%) hue-rotate(327deg) brightness(97%) contrast(92%);
    }
    25% {
        filter: none;
    }
    100% {
        filter: none;
    }
}

.process-card:nth-child(1) .process-header {
    animation: fadeToColorAndBack 20s infinite;
    animation-delay: 0s;
    transition: color 0.3s ease-in-out;
}

.process-card:nth-child(1) .process-line {
    animation: lineColorChange 20s infinite;
    animation-delay: 0s;
    transition: background-color 0.3s ease-in-out;
}

.process-card:nth-child(1) .process-icon {
    animation: iconFadeToColorAndBack 20s infinite;
    animation-delay: 0s;
    transition: filter 0.3s ease-in-out;
}

.process-card:nth-child(2) .process-header {
    animation: fadeToColorAndBack 20s infinite;
    animation-delay: 5s;
    transition: color 0.3s ease-in-out;
}

.process-card:nth-child(2) .process-line {
    animation: lineColorChange 20s infinite;
    animation-delay: 5s;
    transition: background-color 0.3s ease-in-out;
}

.process-card:nth-child(2) .process-icon {
    animation: iconFadeToColorAndBack 20s infinite;
    animation-delay: 5s;
    transition: filter 0.3s ease-in-out;
}

.process-card:nth-child(3) .process-header {
    animation: fadeToColorAndBack 20s infinite;
    animation-delay: 10s;
    transition: color 0.3s ease-in-out;
}

.process-card:nth-child(3) .process-line {
    animation: lineColorChange 20s infinite;
    animation-delay: 10s;
    transition: background-color 0.3s ease-in-out;
}

.process-card:nth-child(3) .process-icon {
    animation: iconFadeToColorAndBack 20s infinite;
    animation-delay: 10s;
    transition: filter 0.3s ease-in-out;
}

.process-card:nth-child(4) .process-header {
    animation: fadeToColorAndBack 20s infinite;
    animation-delay: 15s;
    transition: color 0.3s ease-in-out;
}

.process-card:nth-child(4) .process-line {
    animation: lineColorChange 20s infinite;
    animation-delay: 15s;
    transition: background-color 0.3s ease-in-out;
}

.process-card:nth-child(4) .process-icon {
    animation: iconFadeToColorAndBack 20s infinite;
    animation-delay: 15s;
    transition: filter 0.3s ease-in-out;
}

/* Animation classes */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes slideUp {
    from {
        transform: translateY(30px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.animate-fade-in {
    animation: fadeIn 0.8s ease-out forwards;
    opacity: 0;
}

.animate-slide-up {
    animation: slideUp 1s ease-out forwards;
}

/* Ensure animations play smoothly */
@media (prefers-reduced-motion: no-preference) {
    .animate-fade-in,
    .animate-slide-up {
        will-change: transform, opacity;
    }
}

/* Mobile proportions */
@media screen and (max-width: 768px) {
    .hero-content {
        width: 100%; /* Full width on mobile */
        text-align: center;
    }

    /* Blockquotes */
    .belief-quotes blockquote {
        width: 100%;
        margin-right: 0;
        margin-left: 0;
    }

    .belief-quotes blockquote:nth-child(2) {
        width: fit-content; /* Adjust width based on content */
        margin: 0 auto; /* Center horizontally */
    }

    /* Reality section magnifying glass */
    .reality-content {
        width: 90%;
        margin: 0 auto;
    }

    .magnifying-glass {
        width: 85%;
        height: 85%;
    }

    /* Process cards */
    .process-card {
        height: auto;
        padding: 1.5rem;
    }

    /* Service cards */
    .service-card {
        height: auto;
        min-height: 500px;
    }

    /* Advantages section */
    .advantage-item {
        padding: 1.5rem;
    }
}

/* Desktop styles */
@media screen and (min-width: 769px) {
    .content section {
        margin-bottom: 4rem;
    }

    aside nav {
        position: sticky;
        top: 140px;
    }

    footer .space-y-14 > * {
        margin-top: 3.5rem !important;
    }
}

/* Mobile aside navigation */
@media screen and (max-width: 768px) {
    main aside {
        position: fixed;
        top: 100px; /* Account for the header height */
        left: 0;
        right: 0;
        background: white;
        z-index: 40;
        padding: 1rem;
        border-bottom: 1px solid rgba(0, 0, 0, 0.1);
        box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    }

    main aside nav {
        display: flex;
        overflow-x: auto;
        gap: 1.5rem;
        padding-bottom: 0.5rem;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none; /* Firefox */
    }

    main aside nav::-webkit-scrollbar {
        display: none; /* Chrome, Safari, Edge */
    }

    /* Add padding to the content to prevent it from being hidden under the fixed nav */
    .content {
        padding-top: 4rem;
    }
}


/* Add horizontal padding */
.px-8 {
    padding-left: 2rem !important;
    padding-right: 2rem !important;
}

@media (min-width: 768px) {
    .px-8 {
        padding-left: 4rem !important;
        padding-right: 4rem !important;
    }
}

.form-group {
    position: relative;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
}

.form-group input {
    padding: 0.75rem 0.75rem 0.75rem 1rem;
    border: 1px solid rgba(255, 255, 255, 0.3);
    background: white;
    border-radius: 0.25rem;
    color: black;
    font-size: 1rem;
    height: 48px;
    display: flex;
    align-items: flex-end;
    line-height: 1;
    padding-top: 25px;
}

/* Add specific styling for the phone input to override the general styling */
#phone {
    padding: 0.75rem;
    height: auto;
    padding-top: 0.75rem;
    align-items: center;
}

/* Fix intlTelInput styling */
.iti {
    width: 100% !important;
    display: block !important;
}

.iti__flag.iti__globe {
    display: none !important;
}

.iti input {
    width: 100% !important;
    padding-left: 80px !important;
    border: 1px solid #d1d5db !important;
    border-radius: 6px !important;
}

.iti input.border-red-500 {
    border-color: #ef4444 !important;
    border-width: 2px !important;
}

/* Hide dropdown elements completely */
.iti__dropdown-content {
    display: none !important;
}

.iti__arrow {
    display: none !important;
}

.iti__country-list {
    display: none !important;
}

/* Hide any weird icons or elements */
.iti__selected-flag {
    display: flex !important;
}
.iti__selected-flag::after,
.iti__selected-flag::before,
.iti__selected-country-primary::after {
    display: initial !important;
}

/* Style the selected flag area */
.iti__selected-flag {
    border: none !important;
    background: transparent !important;
    padding: 12px 8px !important;
    position: relative !important;
    align-items: center !important;
    height: 100% !important;
    padding-top: 0 !important;
    padding-bottom: 0 !important;
}

/* Hide any additional elements in flag container */
.iti__selected-flag::after,
.iti__selected-flag::before {
    display: none !important;
}

/* Position label correctly for phone input - more to the right */
label[for="phone"] {
    left: 75px !important;
    z-index: 1;
}



.form-group label {
    position: absolute;
    top: 50%;
    left: 15px;
    transform: translateY(-50%);
    color: #9ca3af;
    transition: all 0.2s ease-out;
    pointer-events: none;
    font-size: 0.875rem;
    background-color: transparent;
    border: none;
}

@media (max-width: 768px) {
    .form-group label {
        margin-left: 0; /* Remove margin on mobile */
        left: 1rem; /* Keep consistent left padding on mobile */
    }
}

.form-group input:focus + label,
.form-group input:not(:placeholder-shown) + label {
    transform: translateY(-18px) translateX(0px);
    font-size: 12px;
    color: var(--primary-color);
    background-color: transparent;
    border: none;
}

.form-group input:focus {
    outline: none;
    border-color: var(--primary-color);
}

.form-group input:focus::placeholder,
.form-group input:not(:placeholder-shown)::placeholder {
    opacity: 0;
}


/* About page mobile styles */
@media screen and (max-width: 768px) {
    .content section {
        margin-bottom: 2rem;
    }

    aside nav {
        margin-bottom: 2rem;
        padding-bottom: 1rem;
        border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    }

    footer {
        min-height: auto;
        height: auto;
    }

    .space-y-14 {
        margin-top: 1rem;
    }
}


/* Footer mobile styles */
@media screen and (max-width: 768px) {
    footer {
        margin-top: auto;
    }
    
    footer .space-y-6 > :not([hidden]) ~ :not([hidden]) {
        margin-top: 1.5rem !important;
    }

    footer .max-w-7xl {
        text-align: center;
    }

    footer .logo,
    footer p,
    footer a,
    footer span {
        display: flex;
        justify-content: center;
        align-items: center;
    }

    footer .space-y-6,
    footer .space-y-14 {
        display: flex;
        flex-direction: column;
        align-items: center;
        text-align: center;
        margin-top: 0 !important;
    }

    footer .space-y-6 > *,
    footer .space-y-14 > * {
        margin-top: 1rem !important;
    }

    footer .space-y-6:first-child > *,
    footer .space-y-14:first-child > * {
        margin-top: 0.5rem !important;
    }
}

/* Add consistent padding for large screens */
@media screen and (min-width: 1024px) {
    .hero, section {
        padding-left: 120px !important;
        padding-right: 120px !important;
    }
    
    .hero-content {
        margin-left: 0 !important;
        text-align: left !important;
        max-width: 550px !important;
    }
}

/* About section styles */
.about-icon-border {
    position: relative;
    transition: transform 0.3s ease;
}

.about-icon-border:hover {
    transform: scale(1.05);
}

#about .rounded-full {
    backdrop-filter: blur(4px);
}

#about img {
    transition: transform 0.3s ease;
}

#about img:hover {
    transform: scale(1.1);
}

/* Ensure proper positioning on mobile */
@media screen and (max-width: 768px) {
    #about .relative {
        min-height: 400px;
    }
    
    #about .absolute {
        transform: scale(0.8);
    }
}

/* Modal styles */
.modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0,0,0,0.5);
  align-items: center;
  justify-content: center;
}

.modal-content {
  background-color: #fff;
  padding: 30px;
  border-radius: 8px;
  max-width: 500px;
  width: 90%;
  text-align: center;
  box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

.modal-title {
  font-size: 24px;
  margin-bottom: 15px;
  color: #333;
}

.modal-message {
  font-size: 16px;
  margin-bottom: 25px;
  color: #555;
  line-height: 1.5;
}

.modal-button {
  background-color: #4CAF50;
  color: white;
  border: none;
  padding: 10px 20px;
  border-radius: 4px;
  cursor: pointer;
  font-size: 16px;
}

.modal-button.error {
  background-color: #f44336;
}

button[type="submit"] {
  transition: all 0.1s ease;
}

button[type="submit"]:disabled {
  background-color: #cccccc !important;
  cursor: not-allowed !important;
  opacity: 1;
  pointer-events: none;
}

/* Language switcher styles */
.language-dropdown {
    position: relative;
    display: inline-block;
}

.language-btn {
    transition: all 0.3s ease;
}

.language-btn.active {
    color: #E3755F;
    font-weight: bold;
}

#languageDropdownButton {
    cursor: pointer;
    padding: 0.5rem;
    display: flex;
    align-items: center;
}

#languageDropdown {
    border-radius: 4px;
    min-width: 80px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

#languageDropdown button {
    transition: all 0.2s ease;
}

#languageDropdown button:hover {
    color: #E3755F;
}

/* Validation Styles */
.border-red-500 {
    border-color: #ef4444 !important;
    border-width: 2px !important;
    transition: border-color 0.3s ease;
}

/* Checkbox validation styling */
input[type="checkbox"].border-red-500 {
    outline: 2px solid #ef4444 !important;
    outline-offset: 2px;
    border-radius: 3px;
}

.validation-icon {
    display: none;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: #ef4444;
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
    animation: pulse-warning 3s infinite;
    flex-shrink: 0;
    margin-left: 12px;
}

.validation-icon:hover {
    background-color: #dc2626;
    transform: scale(1.1);
}

.validation-icon svg {
    width: 20px;
    height: 20px;
}

@keyframes pulse-warning {
    0% {
        box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.3);
    }
    70% {
        box-shadow: 0 0 0 6px rgba(239, 68, 68, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(239, 68, 68, 0);
    }
}

/* Responsive validation icon */
@media (max-width: 768px) {
    .validation-icon {
        width: 36px;
        height: 36px;
        margin-left: 8px;
    }
    
    .validation-icon svg {
        width: 18px;
        height: 18px;
    }
}

/* Remove the globe/phone icon behind the flag */
.iti__flag-container .iti__selected-flag {
    background-image: none !important;
}

/* Center the flag vertically and make sure it fits the input */
.iti__flag-container {
    display: flex !important;
    align-items: center !important;
    height: 100% !important;
}

.iti__selected-flag {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    height: 100% !important;
    padding: 0 8px !important;
    background: transparent !important;
    box-shadow: none !important;
}

/* Make sure the input text is far enough from the flag and code */
.iti input,
.iti--separate-dial-code input {
    padding-left: 90px !important;
}

/* Registration form frame */
.form-frame {
    background: rgba(25, 25, 35, 0.70); /* Dark navy/black with transparency */
    box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.18);
    border-radius: 18px;
    padding: 2.5rem 1.5rem 2rem 1.5rem;
    max-width: 520px;
    margin: 0 auto;
     /* Modern frosted glass effect -- affects the grecaptcha-badge position */
    /*backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);*/
    border: 1px solid rgba(60, 60, 80, 0.18);
}

@media (max-width: 600px) {
  .form-frame {
    padding: 1.2rem 0.5rem 1.5rem 0.5rem;
    max-width: 99vw;
  }
}



.logo-highlight {
  background: rgba(255,255,255,0.85);
  padding: 16px 32px;
  border-radius: 16px;
  display: inline-block;
  box-shadow: 0 4px 24px 0 rgba(0,0,0,0.12);
}

.form-frame, .register, .form-frame * {
    overflow: visible !important;
}