/* Base Styles */
:root {
    --main-bg: #fafafa;
    --text-color: #2c2c2c;
    --accent-color: #444;
    --link-hover: #97754fd2;
    --focus-outline: #4a90e2;
}

* {  
    box-sizing: border-box;  
}
html {  
    scroll-behavior: smooth;  
}

body {
    font-family: 'SF Pro Display', sans-serif;
    margin: 0;
    padding: 0;
    background: var(--main-bg);
    color: var(--text-color);
    line-height: 1.8;
    font-size: 16px;
}

/* Accessibility Improvements */
*:focus {
    outline: 3px solid var(--focus-outline);
    outline-offset: 2px;
}

/* Header and Navigation with Animation */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-20px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes slideIn {
    from { transform: translateX(-20px); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

header {  
    position: fixed;  
    top: 0;  
    width: 100%;  
    z-index: 1000;  
    background-color: rgb(255, 255, 255); /* Semi-transparent background */  
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1); /* Subtle shadow */  
    transition: all 0.3s ease; /* Smooth transition for resizing */  
    padding: 0; /* Remove unnecessary padding */  
}

.navbar {  
    display: flex;  
    align-items: center;  
    justify-content: space-between;  
    padding: 5px 15px; /* Reduced padding for a more compact look */  
    opacity: 1;  
}
/* Logo Container */
.logo-container {  
    display: flex;  
    align-items: center;  
}

/* Logo Image */  
.logo {    
    height: 85px;
    max-height: 100%;
    filter: brightness(0);
    background-color: transparent;
    width: 185px;
}  
  
/* Logo Container */  
.logo-container {  
    background-color: transparent;  
    transition: all 0.3s ease;  
}  
  
/* Hover Effect for the Logo */    
.logo-container:hover {    
    transform: scale(1.05);  
    transition: all 0.3s ease;  
}  
  
.logo-container:hover .logo {  
    filter: brightness(0); /* Return to original color on hover */  
}  
  
.logo-container a {    
    text-decoration: none;  
}

.hamburger {  
    width: 30px;  
    height: 20px;  
    position: relative;  
}  
  
.hamburger span {  
    height: 2px; /* Make the hamburger lines thinner */  
    width: 20px; /* Adjust the width of the hamburger lines */  
    background-color: black;  
    margin: 3px 0; /* Reduce spacing between lines */  
    display: block;  
    transition: all 0.3s ease;  
}  
  
.hamburger span:first-child {  
    top: 0;  
}  
  
.hamburger span:nth-child(2) {  
    top: 50%;  
    transform: translateY(-50%);  
}  
  
.hamburger span:last-child {  
    bottom: 0;  
}
.menu-toggle {  
    display: none;
    background:none;
    border:none;
    cursor: pointer;
    position: absolute;
    padding: 15px;
    transform: translateY(-1%);
    right: 0px;
    z-index: 1100;
}

.menu-toggle span {
    display: block;
    width: 25px;
    height: 3px;
    background-color: var(--text-color);
    margin: 5px 0;
    transition: all 0.3s ease;
}

nav ul {
    display: flex;  
    list-style: none;  
    margin: 0;  
    padding: 0;
}

nav ul li {
    display: inline;
    animation: slideIn 0.5s ease-out forwards;
    opacity: 0;
    margin: 0 10px;
}

/* Stagger navigation items animation */
nav ul li:nth-child(1) { animation-delay: 0.1s; }
nav ul li:nth-child(2) { animation-delay: 0.2s; }
nav ul li:nth-child(3) { animation-delay: 0.3s; }
nav ul li:nth-child(4) { animation-delay: 0.4s; }
nav ul li:nth-child(5) { animation-delay: 0.5s; }
nav ul li:nth-child(6) { animation-delay: 0.6s; }

nav ul li a {
    color: var(--text-color);
    text-decoration: none;
   /*  font-weight: 500 ;*/
    font-size: 1.1rem ;
    border-radius: 4px;
    transition: all 0.3s ease;
}

nav ul li a:hover {
    background: rgba(0, 0, 0, 0.05);
    color: var(--link-hover);
}

/* Typography Improvements */
h2 {
    color: var(--text-color);
    font-size: 2rem;
    font-weight: bold;
    text-align: center;
    padding: 0px 20px;
    line-height: 1.4;
    animation: fadeInScale 0.8s ease-in-out;
}

/* Content Sections */
section {
    padding: 50px 50px;
    /*max-width: 1200px;*/
    margin: 0 auto;
    animation: fadeIn 1s ease-out;
}

/* Hero Section with Animation */
@keyframes gradientFlow {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.hero {
    position: relative;
    width: 100vw; /* Full viewport width */
    height: 100vh; /* Full viewport height */
    background: #191919;
    overflow: hidden; /* Prevent content from overflowing */
    margin: 0;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-signature {  
    position: absolute; /* Position the div relative to the hero section */  
    bottom: -80px; /* Adjust the distance from the bottom */  
    right: -10px; /* Adjust the distance from the right */  
    z-index: 10; /* Ensure it appears above other elements */  
    background-color: transparent; /* Keep the background transparent */  
}  
  
.signature-svg {  
    width: 400px; /* Adjust the size of the SVG */  
    height: auto; /* Maintain the aspect ratio */  
    filter: brightness(0) invert(1); /* Make the writing white */  
}

.hero-video {
    position: absolute; /* Fix the video to the viewport */
    display: block;
    width: 100%; /* Full width */
    height: 100%; /* Full height */
    object-fit: cover; /* Ensure the video covers the entire area */
    z-index: -1; /* Push the video behind other content */
}

.hero-content {
    position: absolute;
    bottom: 40px; /* Position the text at the bottom */
    left: 40px; /* Position the text on the left */
    color: white; /* Text color */
    z-index: 2; /* Ensure the text is above the video */
    text-align: left; /* Align text to the left */
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif; /* Clean sans-serif font */
    max-width: 400px; /* Optional: Limit the width of the text block */
}

.hero-content h1 {
    font-size: 2rem; /* Adjust the font size */
    font-weight: 500; /* Medium bold */
    font-style: italic; /* Italic text */
    margin: 0 0 10px 0; /* Add spacing below the title */
    line-height: 1.05; /* Adjust line height for readability */
}

.hero-content p {
    font-size: 1rem; /* Adjust the font size */
    font-weight: 500; /* Medium bold */
    font-style: italic; /* Italic text */
    margin: 0; /* Remove default margins */
    line-height: 1.3; /* Adjust line height for readability */
    opacity: 0.9; /* Slightly transparent for a subtle effect */
}


/*Footer*/
/* Scroll to Top Button */  
#scrollToTop {  
    position: fixed;  
    bottom: 30px;  
    right: 30px;  
    width: 50px;  
    height: 50px;  
    background-color: rgba(0, 0, 0, 0.7);  
    color: white;  
    border: none;  
    border-radius: 50%;  
    cursor: pointer;  
    opacity: 0;  
    visibility: hidden;  
    transform: translateY(20px);  
    transition: all 0.3s ease-in-out;  
    z-index: 1000;  
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);  
}  
  
#scrollToTop:hover {  
    background-color: rgba(0, 0, 0, 0.9);  
    transform: translateY(-2px) scale(1.05);  
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);  
}  
  
#scrollToTop.visible {  
    opacity: 1;  
    visibility: visible;  
    transform: translateY(0);  
}  
  
#scrollToTop.above-footer {  
    bottom: 100px; /* Adjust based on your footer height */  
}  
  
#scrollToTop.clicking {  
    animation: clickEffect 0.3s ease-out;  
}  
  
#scrollToTop i {  
    font-size: 20px;  
    line-height: 50px;  
    transition: transform 0.3s ease;  
}  
  
#scrollToTop:hover i {  
    transform: translateY(-2px);  
}
/* Click Animation */  
@keyframes clickEffect {  
    0% { transform: scale(1); }  
    50% { transform: scale(0.95); }  
    100% { transform: scale(1); }  
}
/* Optional: Add a subtle pulse animation when the button first appears */  
@keyframes pulse {  
    0% { transform: scale(1); }  
    50% { transform: scale(1.05); }  
    100% { transform: scale(1); }  
}  
  
#scrollToTop.visible {  
    animation: pulse 1s ease-out;  
}
footer {  
    background: linear-gradient(to bottom, transparent, rgba(244, 241, 237, 0.884));  
    color: #2c2c2c;  
    padding: 60px 20px 40px;  
    position: relative;  
    overflow: hidden;  
    font-family: 'Playfair Display', serif;  
}
/* Enhanced separation bar */  
footer::before {  
    content: '';  
    position: absolute;  
    top: 0;  
    left: 50%;  
    transform: translateX(-50%);  
    width: 80%; /* Makes the bar wider */  
    height: 2px; /* Makes the bar thicker */  
    background: linear-gradient(  
        to right,  
        transparent,  
        rgba(139, 115, 85, 0.3),  
        rgba(139, 115, 85, 0.5),  
        rgba(139, 115, 85, 0.3),  
        transparent  
    );  
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);  
}
/*  Add a second line for a double-line effect */  
footer::after {  
    content: '';  
    position: absolute;  
    top: 4px; /* Space between lines */  
    left: 50%;  
    transform: translateX(-50%);  
    width: 60%; /* Slightly smaller than the first line */  
    height: 1px;  
    background: linear-gradient(  
        to right,  
        transparent,  
        rgba(139, 115, 85, 0.2),  
        rgba(139, 115, 85, 0.3),  
        rgba(139, 115, 85, 0.2),  
        transparent  
    );  
}
.footer-content {  
    max-width: 1200px;  
    margin: 0 auto;  
    display: flex;  
    flex-direction: column;  
    align-items: center;  
    gap: 25px;  
}
.footer-content h3 {  
    font-size: 1.1rem;  
    font-weight: 500;  
    letter-spacing: 0.5px;  
    margin-bottom: 10px;  
    color: #8b7355;  
}
.footer-links {  
    display: flex;  
    gap: 30px;  
    flex-wrap: wrap;  
    justify-content: center;  
    margin: 20px 0;  
}
.footer-links a {  
    color: #4a4a4a;  
    text-decoration: none;  
    font-size: 0.95rem;  
    position: relative;  
    transition: color 0.3s ease;  
}
.footer-links a::after {  
    content: '';  
    position: absolute;  
    width: 0;  
    height: 1px;  
    bottom: -2px;  
    left: 50%;  
    background-color: #8b7355;  
    transition: all 0.3s ease;  
    transform: translateX(-50%);  
}
.footer-links a:hover {  
    color: #8b7355;  
}
.footer-links a:hover::after {  
    width: 100%;  
}
.social-icons {  
    display: flex;  
    gap: 20px;  
    margin: 20px 0;  
}
.social-icons a {  
    color: #4a4a4a;  
    font-size: 1.2rem;  
    transition: all 0.3s ease;  
    padding: 8px;  
    border-radius: 50%;  
    background: rgba(139, 115, 85, 0.1);  
}
.social-icons a:hover {  
    color: #8b7355;  
    transform: translateY(-3px);  
    background: rgba(139, 115, 85, 0.2);  
}
.footer-quote {  
    font-style: italic;  
    color: #666;  
    max-width: 600px;  
    margin: 30px auto 20px;  
    text-align: center;  
    font-size: 1.1rem;  
    line-height: 1.6;  
    position: relative;  
    padding: 20px;  
}
.footer-quote::before,  
.footer-quote::after {  
    content: '"';  
    font-size: 2rem;  
    color: rgba(139, 115, 85, 0.3);  
    position: absolute;  
}
.footer-quote::before {  
    left: 0;  
    top: 0;  
}
.footer-quote::after {  
    right: 0;  
    bottom: 0;  
}
/* Form Improvements */
form input, form textarea {
    width: 100%;
    margin-bottom: 20px;
    padding: 15px;
    border: 2px solid #ddd;
    border-radius: 8px;
    font-size: 1.1rem;
    transition: all 0.3s ease;
}

form input:focus, form textarea:focus {
    border-color: var(--focus-outline);
    background: #fff;
}

form label {
    display: block;
    text-align: left;
    margin-bottom: 8px;
    font-weight: bold;
    font-size: 1.1rem;
}

/*button {
    background: var(--text-color);
    color: white;
    padding: 15px 40px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1.1rem;
    font-weight: bold;
    transition: all 0.3s ease;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

button:hover {
    background: var(--accent-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}
*/
/* Grid Layout */
.grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(150px, 1fr));
    gap: 30px;
    padding: 20px;
}

.grid img {
    width: 100%;
    border-radius: 8px;
    transition: transform 0.3s ease;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.grid img:hover {
    transform: scale(1.02);
}

/* Mobile Responsive Design */
@media screen and (max-width: 768px) {
    body {
        font-size: 18px;
    }
    
    .menu-toggle {
        display: block;
    }

    body.menu-open .timeline {
        z-index: 1; /* Lower priority when menu is open */
    }

    .logo-container {  
        max-width: 250px;
        padding: 5px;
        margin: 0 auto;
        left: -88px;
        position: relative;
    }

    .logo {
        max-height: 60px;
    }

    .navbar {
        flex-direction: column;
        align-items: center;
        padding: 10px;
    }
    
    nav ul {
        position: fixed;
        z-index: 1001;
        top: 0;
        right: -100%;
        width: 80%;
        height: 100vh;
        background: white;
        flex-direction: column;
        padding: 80px 20px 20px;
        transition: right 0.3s ease;
        box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
    }
    
    nav.active ul {
        right: 0;
    }

    nav ul li {
        opacity: 1;
        animation: none;
        display: block;
        margin: 10px 0;
    }

    nav ul li a {
        display: block;
        padding: 15px;
        text-align: left;
        border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    }

    /* Hamburger menu animation */
    .menu-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }

    .menu-toggle.active span:nth-child(2) {
        opacity: 0;
    }

    .menu-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -7px);
    }

    /* Menu overlay */
    .navbar::before {
        content: '';
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0, 0, 0, 0.5);
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s ease;
    }

    .navbar.active::before {
        opacity: 1;
        visibility: visible;
    }

    .hero {
        height: 95vh;
        margin-top: 60px;
    }

    section {
        padding: 40px 20px;
    }

    h2 {
        font-size: 1.8rem;
        margin: 60px 0 0px;
    }

    form input, form textarea {
        font-size: 1.2rem;
        padding: 20px;
    }

    #scrollToTop {  
        width: 40px;  
        height: 40px;  
        bottom: 20px;  
        right: 20px;  
    }  
  
    #scrollToTop i {  
        font-size: 16px;  
        line-height: 40px;  
    }  
  
    #scrollToTop.above-footer {  
        bottom: 80px;  
    }  

}

/* High Contrast Mode */
@media (prefers-contrast: high) {
    :root {
        --text-color: #000000;
        --main-bg: #ffffff;
        --accent-color: #000000;
    }

    * {
        border-color: #000000 !important;
    }
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    * {
        animation: none !important;
        transition: none !important;
    }
}

/* Print Styles */
@media print {
    header {
        position: static;
        box-shadow: none;
    }

    .hero {
        height: 100%;
        margin-top: 0;
    }

    /*button {
        border: 1px solid #000;
    }*/
}

/* Accessibility Features */
.skip-link {
    position: absolute;
    top: -40px;
    left: 0;
    background: var(--text-color);
    color: white;
    padding: 8px;
    z-index: 1001;
}

.skip-link:focus {
    top: 0;
}

/* State Styles */
.message-box {
    padding: 15px;
    margin: 20px 0;
    border-radius: 5px;
    font-size: 1.1rem;
    font-weight: bold;
    text-align: center;
}
.error {
    color: #d32f2f;
    background: #ffebee;
    padding: 10px;
    border-radius: 4px;
    margin-bottom: 20px;
    font-weight: bold;
}

.success {
    color: #388e3c;
    background: #e8f5e9;
    padding: 10px;
    border-radius: 4px;
    margin-bottom: 20px;
    font-weight: bold;
}

/* Smooth Scrolling */  
html {  
    scroll-behavior: smooth;  
}

/* Selection Style */  
::selection {  
    background: rgba(0, 0, 0, 0.1);  
}

/* Biography Page Ethereal Styles */  
.biography-page {  
    background-color: #fcfcfc;  
    width: 100%;  
    margin: 0;  
    padding: 0;  
    overflow-x: hidden;  
}  
  
.biography-hero {  
    position: relative;  
    height: 100vh;  
    width: 100vw;  
    background: linear-gradient(  
        135deg,   
        rgba(255, 255, 255, 0.9) 0%,  
        rgba(247, 247, 250, 0.8) 50%,  
        rgba(240, 240, 245, 0.9) 100%  
    );  
    overflow: hidden;  
    display: flex;  
    align-items: center;  
    justify-content: center;  
}  
  
/* Ethereal Background Effect */  
.biography-hero::before {  
    content: '';  
    position: absolute;  
    top: 0;  
    left: 0;  
    right: 0;  
    bottom: 0;  
    background:   
        radial-gradient(circle at 20% 30%, rgba(255, 255, 255, 0.8) 0%, transparent 50%),  
        radial-gradient(circle at 80% 70%, rgba(255, 255, 255, 0.8) 0%, transparent 50%);  
    filter: blur(30px);  
    opacity: 0.7;  
    animation: etherealGlow 15s ease-in-out infinite;  
}  
  
.biography-hero .hero-content {  
    position: relative;  
    z-index: 2;  
    text-align: center;  
    padding: 4rem 2rem;  
    width: 100%;  
    max-width: 1400px;  
    margin: 0 auto;  
    background: rgba(255, 255, 255, 0.1);  
    backdrop-filter: blur(10px);  
    border: 1px solid rgba(255, 255, 255, 0.2);  
    transform: translateY(20px);  
    animation: floatIn 1.5s ease-out forwards;  
}  
  
.biography-hero h2 {  
    font-family: 'Cormorant Garamond', serif;  
    font-size: clamp(2.5rem, 5vw, 4rem);  
    font-weight: 300;  
    margin: 0;  
    color: #2c2c2c;  
    letter-spacing: 4px;  
    line-height: 1.2;  
    position: relative;  
    text-transform: uppercase;  
}  
  
.biography-hero .subtitle {  
    font-family: 'Cormorant Garamond', serif;  
    font-size: clamp(1.5rem, 3vw, 2rem);  
    color: #666;  
    margin-top: 1.5rem;  
    font-weight: 300;  
    letter-spacing: 2px;  
    opacity: 0;  
    animation: fadeIn 2s ease-out 0.5s forwards;  
}

/* Enhanced Particle Effects */
.particle-container {  
    position: absolute;  
    width: 100%;  
    height: 100%;  
    top: 0;  
    left: 0;  
    pointer-events: none;  
}

.particle {  
    position: absolute;  
    background: rgba(139, 115, 85, 0.1);  
    border-radius: 50%;  
    animation: float 15s infinite linear;  
}

.particle:nth-child(1) { width: 10px; height: 10px; left: 10%; animation-delay: 0s; }  
.particle:nth-child(2) { width: 15px; height: 15px; left: 30%; animation-delay: 2s; }  
.particle:nth-child(3) { width: 8px; height: 8px; left: 50%; animation-delay: 4s; }  
.particle:nth-child(4) { width: 12px; height: 12px; left: 70%; animation-delay: 6s; }  
.particle:nth-child(5) { width: 10px; height: 10px; left: 90%; animation-delay: 8s; }

/* Animations */
@keyframes float {  
    0% {  
        transform: translateY(0) rotate(0deg);  
        opacity: 0;  
    }  
    50% {  
        opacity: 0.5;  
    }  
    100% {  
        transform: translateY(-100vh) rotate(360deg);  
        opacity: 0;  
    }  
}

@keyframes floatIn {
    0% {
        opacity: 0;
        transform: translateY(40px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

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

@keyframes etherealGlow {
    0%, 100% {
        opacity: 0.7;
        filter: blur(30px);
    }
    50% {
        opacity: 0.5;
        filter: blur(40px);
    }
}

/* Decorative Line */
.hero-content::after {
    content: '';
    position: absolute;
    bottom: -20px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 1px;
    background: linear-gradient(
        to right,
        transparent,
        rgba(0, 0, 0, 0.2),
        transparent
    );
}


/* Responsive Design */
@media (max-width: 1024px) {
    body.menu-open .timeline {
        z-index: 1; /* Lower priority when menu is open */
    }
    .navbar {
        padding: 5px 10px;
    }
    .logo {
        height: 50px;
    }
    nav ul li {
        margin: 0 5px;
    }
    .hero-content h1 {
        font-size: 1.8rem;
    }
    .hero-content p {
        font-size: 0.95rem;
    }
    section {
        padding: 40px 30px;
    }
    .footer-content {
        max-width: 90%;
    }
}

@media screen and (max-width: 768px) {
    .hero-signature {    
        bottom: -4%; /* Adjust the position for smaller screens */    
        right: 02%;    
    }    
    
    .signature-svg {    
        width: 45vw; /* Increase the size slightly for better visibility */    
        max-width: 300px; /* Adjust the maximum size */    
    }
    .biography-hero h2 {
        font-size: 2.5rem;
        letter-spacing: 2px;
    }

    .biography-hero .subtitle {
        font-size: 1.5rem;
        letter-spacing: 1px;
    }

    .biography-hero {
        height: 80vh;
    }

    .biography-hero .hero-content {
        width: 90%;
        padding: 2rem;
    }

    .particle {
        opacity: 0.3;
    }
    footer {  
        padding: 40px 15px 30px;  
    }  
    .footer-content h3{
        text-align: center;
    }
    .footer-links {  
        gap: 20px;  
    }  
  
    .footer-links a {  
        font-size: 0.9rem;  
    }  
  
    .footer-quote {  
        font-size: 1rem;  
        padding: 15px;  
    }  
  
    .social-icons {  
        gap: 15px;  
    }  
  
    .social-icons a {  
        font-size: 1.1rem;  
        padding: 6px;  
    }
}

/* Hover Effects */
.biography-hero .hero-content:hover {
    transform: translateY(-5px);
    transition: all 0.5s ease;
    box-shadow: 
        0 15px 35px rgba(0, 0, 0, 0.1),
        inset 0 0 25px rgba(255, 255, 255, 0.6);
}
