:root {
    --amber: #D4AF37;
    --warm-orange: #FF8C00;
    --deep-red: #8B0000;
    --chemical-green: #338782;
    --soft-white: #FAFAFA;
    --rich-black: #0A0A0A;
    --gradient-colors: #553737, #338782, #A1A57F, #DCE187;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    background: var(--soft-white);
    color: var(--rich-black);
    font-family: 'Libertinus Mono', monospace;
    font-weight: 400;
    line-height: 1.6;
    overflow-x: hidden;
}


.hero-section {
    height: 100vh;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--soft-white);
    overflow: hidden;
}



.name-elements {
    position: absolute;
    top: 2rem;
    left: 2rem;
    z-index: 10;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.profile-image {
    width: 100%;
    max-width: min(65vw, 550px);
    height: auto;
    margin-bottom: 1rem;
}

.name-left {
    font-size: 1.8rem;
    font-weight: 400;
    letter-spacing: 0;
    opacity: 0.85;
    transform: none;
    color: var(--rich-black);
    margin-bottom: 0.5rem;
}

.name-right {
    font-family: 'Tuladha Jejeg', serif;
    font-size: 1.8rem;
    opacity: 0.85;
    transform: none;
    color: var(--rich-black);
}

.hero-content {
    position: relative;
    z-index: 5;
    text-align: center;
    max-width: 85vw;
}

.hero-image {
    width: 100%;
    max-width: min(65vw, 550px);
    height: auto;
    box-shadow: none;
    filter: none;
    transition: none;
    transform: none;
    opacity: 0.95;
}

.hero-signup {
    position: absolute;
    bottom: 2rem;
    right: 2rem;
    z-index: 10;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.8rem;
}

.signup-title {
    font-size: 1rem;
    color: var(--rich-black);
    opacity: 0.8;
    margin-bottom: 0.5rem;
}

.hero-form {
    display: flex;
    flex-direction: row;
    gap: 0.6rem;
    align-items: center;
}

.hero-input {
    font-size: 0.9rem;
    padding: 0.6rem 0.8rem;
    border: 1px solid var(--rich-black);
    background: var(--soft-white);
    color: var(--rich-black);
    border-radius: 0;
    outline: none;
    width: 180px;
    opacity: 0.9;
    transition: border-color 0.3s ease, opacity 0.3s ease;
}

.hero-input:focus {
    border-color: var(--chemical-green);
    opacity: 1;
}

.hero-input::placeholder {
    color: var(--rich-black);
    opacity: 0.5;
}

.hero-submit {
    font-family: 'Libertinus Mono', monospace;
    font-size: 0.9rem;
    padding: 0.6rem 1.2rem;
    background: var(--rich-black);
    color: var(--soft-white);
    border: none;
    border-radius: 0;
    cursor: pointer;
    transition: background-color 0.3s ease;
    opacity: 0.9;
}

.hero-submit:hover {
    background: var(--chemical-green);
    opacity: 1;
}


.content-section {
    height: 100vh;
    background: var(--soft-white);
    position: relative;
    padding: 2vh 2vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

/* Flowing background elements */
.content-section::before {
    content: '';
    position: absolute;
    top: 20%;
    right: -10%;
    width: 40%;
    height: 30%;
    background: radial-gradient(ellipse, rgba(51, 135, 130, 0.03), transparent 70%);
    border-radius: 60% 40% 80% 20%;
    animation: gentleFloat 30s ease-in-out infinite;
}

@keyframes gentleFloat {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(-30px, 20px) scale(1.1); }
}

.content-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 1fr 1fr;
    gap: 2rem;
    max-width: none;
    width: 100%;
    height: 96vh;
    position: relative;
    z-index: 2;
}

.bio-section {
    grid-column: 1;
    grid-row: 1;
    height: fit-content;
}

.contact-section {
    grid-column: 1;
    grid-row: 2;
    height: fit-content;
    align-self: end;
}

.projects-section {
    grid-column: 2;
    grid-row: 2;
    height: fit-content;
    align-self: end;
    text-align: right;
}

.graphic-section {
    grid-column: 2;
    grid-row: 1;
    height: fit-content;
    align-self: start;
    text-align: right;
}

.ylang-section {
    position: absolute;
    bottom: 0px;
    left: 50%;
    transform: translateX(-50%);
    height: fit-content;
    text-align: center;
    display: flex;
    align-items: end;
}

.ylang-graphic {
    height: 8rem;
    width: auto;
}

.bio-content, .contact-content, .projects-content {
    font-family: 'Libertinus Mono', monospace;
    font-size: 1.3rem;
    padding: 0;
    background: none;
    border: none;
}

.bio-text {
    margin: 0;
    padding: 0;
    border: none;
}

.bio-text p {
    font-size: 1.3rem;
    line-height: 1.4;
    font-weight: 400;
    opacity: 0.95;
    margin: 0;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
}

.contact-item {
    font-size: 1.3rem;
}

.contact-item a {
    color: var(--rich-black);
    text-decoration: none;
}

.contact-item a:hover {
    color: var(--amber);
}

.projects-list {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
    font-family: 'Libertinus Mono', monospace;
    font-size: 1.3rem;
    align-items: flex-end;
}

.project-link {
    color: var(--rich-black);
    text-decoration: none;
    font-size: 1.3rem;
    line-height: 1.2;
    display: block;
}

.project-link:hover {
    color: var(--amber);
}


/* Responsive design */
@media (max-width: 1000px) {
    .content-section {
        height: auto;
        min-height: 100vh;
        padding: 3vh 3vw;
    }
    
    .content-grid {
        grid-template-columns: 1fr 1fr;
        grid-template-rows: auto auto;
        gap: 3rem;
        height: auto;
    }
    
    .bio-content, .contact-content, .projects-content {
        font-size: 1.4rem;
    }
    
    .bio-text p {
        font-size: 1.4rem;
        line-height: 1.3;
    }
    
    .contact-item {
        font-size: 1.4rem;
    }
    
    .projects-list {
        font-size: 1.4rem;
    }
    
    .project-link {
        font-size: 1.4rem;
        line-height: 1.3;
    }
    
    .ylang-graphic {
        height: 5.6rem;
        width: auto;
    }
}

@media (min-width: 769px) {
    .mobile-only {
        display: none;
    }
}

@media (max-width: 768px) {
    .name-left, .name-right {
        top: 1rem;
        font-size: 0.8rem;
    }
    
    .name-left {
        left: 1rem;
    }
    
    .name-right {
        right: 1rem;
    }
    
    .desktop-only {
        display: none;
    }
    
    .hero-content {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 2rem;
    }
    
    .mobile-only {
        position: static;
        margin: 0 auto;
        max-width: 300px;
        text-align: center;
    }
    
    .mobile-only .hero-form {
        flex-direction: column;
        gap: 0.8rem;
        align-items: center;
    }
    
    .mobile-only .hero-input {
        width: 100%;
        max-width: 250px;
    }
    
    .mobile-only .hero-submit {
        width: auto;
    }
    
    .signup-title {
        text-align: center;
        margin-bottom: 1rem;
    }
    
    .hero-form {
        flex-direction: column;
        gap: 0.8rem;
        align-items: center;
    }
    
    .hero-input {
        font-size: 0.9rem;
        padding: 0.6rem 0.8rem;
        width: 100%;
        max-width: 250px;
    }
    
    .hero-submit {
        font-size: 0.9rem;
        padding: 0.6rem 1.2rem;
        width: auto;
    }
}
    
@media (max-width: 768px) {
    .content-section {
        padding: 2vh 2vw 1vh 2vw;
        height: auto;
        min-height: 100vh;
    }
    
    .content-grid {
        grid-template-columns: 1fr;
        grid-template-rows: auto auto auto auto;
        gap: 1rem;
        height: auto;
    }
    
    .bio-section {
        grid-column: 1;
        grid-row: 2;
    }
    
    .contact-section {
        grid-column: 1;
        grid-row: 3;
    }
    
    .projects-section {
        grid-column: 1;
        grid-row: 4;
        text-align: left;
        align-self: end;
    }
    
    .graphic-section {
        grid-column: 1;
        grid-row: 1;
        text-align: center;
        margin-bottom: 1rem;
    }
    
    .ylang-section {
        position: absolute;
        grid-column: unset;
        grid-row: unset;
        transform: none;
        right: 2vw;
        bottom: 0px;
        text-align: right;
        margin-top: 0;
        align-self: end;
        display: block;
        align-items: unset;
    }
    
    .projects-list {
        align-items: flex-start;
    }
    
    .bio-content, .contact-content, .projects-content {
        font-size: 1rem;
    }
    
    .bio-text p {
        font-size: 1rem;
        line-height: 1.3;
    }
    
    .contact-item {
        font-size: 1rem;
    }
    
    .projects-list {
        font-size: 1rem;
    }
    
    .project-link {
        font-size: 1rem;
    }
    
    .contact-info {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .ylang-graphic {
        height: 4.8rem;
        width: auto;
    }
}

@media (max-width: 480px) {
    .content-section {
        padding: 2vh 4vw;
    }
    
    .bio-content, .contact-content, .projects-content {
        font-size: 1rem;
    }
    
    .bio-text p {
        font-size: 1rem;
        line-height: 1.4;
    }
    
    .contact-item {
        font-size: 1rem;
    }
    
    .projects-list {
        font-size: 1rem;
    }
    
    .project-link {
        font-size: 1rem;
    }
    
    .ylang-graphic {
        height: 4rem;
        width: auto;
    }
}

/* Mailing List Page Styles */
.mailing-form-section {
    min-height: 100vh;
    background: var(--soft-white);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 4rem 2rem;
}

.form-container {
    max-width: 600px;
    width: 100%;
    text-align: center;
}

.form-title {
    font-family: 'Libertinus Mono', monospace;
    font-size: 2.5rem;
    color: var(--rich-black);
    margin-bottom: 1rem;
    opacity: 0.9;
}

.form-container p {
    font-size: 1rem;
    color: var(--rich-black);
    opacity: 0.7;
    line-height: 1.4;
    margin-bottom: 1.5rem;
    margin-top: -0.5rem;
    text-align: center;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

.form-description {
    font-family: 'Libertinus Mono', monospace;
    font-size: 1.2rem;
    color: var(--rich-black);
    margin-bottom: 3rem;
    line-height: 1.5;
    opacity: 0.8;
}

.signup-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    align-items: center;
}

.form-group {
    display: flex;
    flex-direction: column;
    width: 100%;
    max-width: 400px;
}

.form-input {
    font-size: 0.9rem;
    padding: 0.6rem 0.8rem;
    border: 1px solid var(--rich-black);
    background: var(--soft-white);
    color: var(--rich-black);
    border-radius: 0 !important;
    outline: none;
    width: 180px;
    opacity: 0.9;
    transition: border-color 0.3s ease, opacity 0.3s ease;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
}

.form-input:focus {
    border-color: var(--chemical-green);
    opacity: 1;
}

.form-input::placeholder {
    color: var(--rich-black);
    opacity: 0.5;
}

.submit-btn {
    font-size: 0.9rem;
    padding: 0.6rem 1.2rem;
    background: var(--rich-black);
    color: var(--soft-white);
    border: none;
    border-radius: 0 !important;
    cursor: pointer;
    transition: background-color 0.3s ease;
    opacity: 0.9;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
}

.submit-btn:hover {
    background: var(--chemical-green);
    opacity: 1;
}

.back-link {
    position: absolute;
    top: 2rem;
    left: 2rem;
    font-family: 'Libertinus Mono', monospace;
    font-size: 1rem;
    color: var(--rich-black);
    text-decoration: none;
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

.back-link:hover {
    opacity: 1;
    color: var(--amber);
}

@media (max-width: 768px) {
    .form-title {
        font-size: 1.8rem;
    }
    
    .form-description {
        font-size: 1rem;
        margin-bottom: 2rem;
    }
    
    .mailing-form-section {
        padding: 2rem 1rem;
    }
}
